>Hi
>
>How displays the name of the primary key field 'Cod' for the table1 table if the name of an index is not equal to the name of a field
>
>For example:
>Table1.dbf
>Name Cod
>
>Index
>Name Type Expression
>IDCod Primary Cod
>
>
>cResults = DBGETPROP("table1", "Table", "PrimaryKey")
>=MESSAGEBOX(cResults) && Displays 'IDCod'
>
>
>Thanks
You can find the tag name with the method you used above, and then get the expression for that tag with SYS(14).
Erik Moore
Clientelligence