Microsoft KB Archive/136771

= How to Verify If a Table Is Free or Belongs to a Database =

Article ID: 136771

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q136771



SUMMARY
This article explains how to determine if a table (.dbf file) is a free table or belongs to a database.



Programmatic Test
Run the following code to determine if a table is free or belongs to a database: xyz = CURSORGETPROP("database") IF EMPTY(xyz) WAIT WINDOW "This is a free table!" ELSE WAIT WINDOW "This database " + xyz +" is open!" ENDIF You can use a low-level utility or Visual FoxPro low-level functions to verify the content of the .dbf header.

