Board index » delphi » Determining Paradox Primary Index's Key Field(s)

Determining Paradox Primary Index's Key Field(s)

How do you determine a Paradox table's primary index's key field(s) at
runtime? Fields[0] can't be trusted, because users reorder that array if
they reorder fields in a grid.

Thanks,

Steve Wash
Zane & Associates. Inc

 

Re:Determining Paradox Primary Index's Key Field(s)


look at TIndexDefs and search for an index with an IndexOption of
[ixPrimary]

HTH,

--
Paul Motyer
pa...@linuxserver.pccity.com.au
SoftStuff, Croydon, Vic,  Australia, 3136.

Steve Wash <sw...@{*word*104}enet.net> wrote in article
<32919B14.1...@{*word*104}enet.net>...

Quote
> How do you determine a Paradox table's primary index's key field(s) at
> runtime? Fields[0] can't be trusted, because users reorder that array if
> they reorder fields in a grid.

> Thanks,

> Steve Wash
> Zane & Associates. Inc

Other Threads