Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Codebase > Index Structure...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 300 of 310
Post > Topic >>

Index Structure collection

by Piero Salandin <piero.nospam.salandin@[EMAIL PROTECTED] > May 19, 2008 at 09: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,
			    PFIELD4INFO(lfiPtr),
			    PTAG4INFO(ltiPtr));

actually, the TAG4INFO structure is as following:

  TAG4INFO = Record
     name       : PChar;
     expression : PChar;
     filter     : PChar;
     unique     : SmallInt;
     descending : Word;
  end;

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 ****NTION FOR THE DESCENDING 
attribute of a tag! How can I know if an index is ascending or descending?


Best regards and thank you
Piero Salandin
P.S.: remove the nospam from the address to write directly.
 




 1 Posts in Topic:
Index Structure collection
Piero Salandin <piero.  2008-05-19 09:00:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 11:33:34 CST 2008.