Index Structure collection - 05-19-2008 , 02:00 AM
Hi there! I hope someone can help me with this question.
The short form is:
how can I know when an index i sascending or descending?
The long form is:
I have a Codebase Delphi Application (actually Delphi 5.0), in which
I have to check and, in case, modify, the structure of fields and tags
in a collection of tables.
Regadring tags/indexes, which is the problem, I use the TAG4INFO structure
to build indexes:
lData4File := d4Create(lcb,PFileName,
actually, the TAG4INFO structure is as following:
TAG4INFO = Record
name : PChar;
expression : PChar;
filter : PChar;
unique : SmallInt;
descending : Word;
Yhe problem arises when I have to check the tag/index structure for an
existing table; I use the tag info functions to retrieve these informations,
which can be invoked once a pointer to the tag is captured:
lsTAlias := t4alias(MyT4);
lsTExpr := t4expr(MyT4);
lsTFiltr := t4filter(MyT4);
liTUnique := t4Unique(MyT4);
The problem is that there seems to be NO FUCNTION FOR THE DESCENDING
attribute of a tag! How can I know if an index is ascending or descending?
Best regards and thank you
P.S.: remove the nospam from the address to write directly.