Subject | Sort Order Problem |
---|---|
Author | lee@leeway-be.com |
Post date | 2001-03-09T09:59:27Z |
Hi,
I got a TIB_Query and a TIB_Grid.
I like to sort the grid in three different ways.
with OrderingItems do begin
Clear;
Add('KlantNaam=NAME, FIRST_NAME');
Add('Geb Datum=DATE_BIRTH');
Add('Voornaam=FIRST_NAME, NAME');
end;
with OrderingLinks do begin
Clear;
Add('NAME=1');
Add('DATE_BIRTH=2');
Add('FIRST_NAME=3');
end;
The DATE_BIRTH field is a date time field.
With the NAME and FIRST_NAME sort order I have no problems, this
works fine.
When I click in the grid on the DATE_BIRTH field, it does not sort
it, I get the same date in every field.
What am I doing wrong ?
Regards
Lee
I got a TIB_Query and a TIB_Grid.
I like to sort the grid in three different ways.
with OrderingItems do begin
Clear;
Add('KlantNaam=NAME, FIRST_NAME');
Add('Geb Datum=DATE_BIRTH');
Add('Voornaam=FIRST_NAME, NAME');
end;
with OrderingLinks do begin
Clear;
Add('NAME=1');
Add('DATE_BIRTH=2');
Add('FIRST_NAME=3');
end;
The DATE_BIRTH field is a date time field.
With the NAME and FIRST_NAME sort order I have no problems, this
works fine.
When I click in the grid on the DATE_BIRTH field, it does not sort
it, I get the same date in every field.
What am I doing wrong ?
Regards
Lee