Thanks Steven - I did get this working  - I hadn't realised that Delphi
supported a few xbase functions for index expressions.

Is there any documentation on this?

I tried str() and dtos() OK, but others like descend() wouldn't work.

Any code fragments on creating indexes would be good, ta. Especially on the
different handling of production and non-production index files.

regards,

Steve.


-----Original Message-----
From: Steven Wild <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Tuesday, 16 March 1999 20:55
Subject: Re: [DUG]: dbf indexes


Steve

I have and am using dbase .dbf tables and Delphi/BDE with delphi
since the beta of Delphi 1 (with the exception of a short excursion
into Apollo).

Delphi with create an xbase expression as an index so that an
expression like
           'fld1 + str(fld2,8,0) + dtos(fld3)'
will work fine.

I use 'locate' as my main find tool.  Syntax like
      table1.locate('fld1', MyValue, []);
works fine.

If you continue to have trouble - particularly with creating the
index using either the TTable method or the BDE method, let me know
and I will send code segments!

Alternatively send me some code fragments to audit.

Steven


Wild Software Ltd
P O Box 33-216
Christchurch
NEW ZEALAND

=========================================================
I haven't lost my mind; it's backed up on tape somewhere.
=========================================================
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to