Subject | Column ordering |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2003-03-21T15:15Z |
IBO 4.2Hc
I thought to save the ordering of Grid columns into INI file so that users could set their prefered order.
I tried to use FieldsIndex->SafeCommaText. For saving it's 'OK, but in loading it behaves very strangely.
Query->FieldsIndex->SafeCommaText=NULL;
Query->FieldsIndex->SafeCommaText="NAME,UID,BDATE";
String Str=Query->FieldsIndex->SafeCommaText;
And suddenly in next line
Str="UID,BDATE,NAME";
How come????
Riho-Rene Ellermaa
senior programmer
Hansabank
I thought to save the ordering of Grid columns into INI file so that users could set their prefered order.
I tried to use FieldsIndex->SafeCommaText. For saving it's 'OK, but in loading it behaves very strangely.
Query->FieldsIndex->SafeCommaText=NULL;
Query->FieldsIndex->SafeCommaText="NAME,UID,BDATE";
String Str=Query->FieldsIndex->SafeCommaText;
And suddenly in next line
Str="UID,BDATE,NAME";
How come????
Riho-Rene Ellermaa
senior programmer
Hansabank