Descend() index function does not work
Posted by RGriffin on 2002-02-08 10:56:26
The Descend() index function does not work properly. If the expression is a date or number, it converts. For text expressions it fails to change the sort order.
status: CLOSED Urgency: MEDIUM As Of: 2002-02-08 10:56:26
Comment:
A line of code has been lost in gs6_fctn.pas that prevents the conversion of string data (date and numbers convert properly).
You can add the missing code in gs6_fctn.pas in the TgsUDFDescend.FunctionResult method at line 836 in the current version.:
end
else
if r = rtText then
begin
s := BufVar;
for i := 1 to length(s) do
begin
s[i] := chr(-ord(s[i]));
end;
--> BufVar := s; {add this}
end
else

