Xbasic
A5_field_getKeyColumns Function
Syntax
A5_field_getKeyColumns(dbfTableName)
Arguments
- dbfTableName
The table to query for 'primary key' columns.
Description
Return the name of the 'primary key' columns of a .dbf table. .dbf tables do not use primary keys. However, you can infer the 'primary key' if the table has an auto-increment column, or a 'unique value' field rules.
Example (for tables in Alphasports):
?a5_field_getKeyColumns("customer") = "CUSTOMER_ID" ?a5_field_getKeyColumns("invoice_items") = INVOICE_NUMBER PRODUCT_iD
Last Modification: Friday 19 of March, 2010 20:08:44 UTC by mheller.