>Is there a way to programmatically check if a table has a link to a database?
You can use CURSORGETPROP("Database","myalias") if the table is open. I don't know of way to do it without the table being open.
Of course, if you are feeling brave (and lucky), you could always open the DBF file using low level file operations and check for the backlink information contained in the header block.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao