General information
Category:
Coding, syntax & commands
Title:
Comparing .dbf stuctures
I need to check the structure of a dbf so that a user can open a table if the structures is correct.
The current code uses 2 criteria, the existence of a specific logical field and the total no of fields.
In practice this works fine excepting that the table needs to be opened to perform the validation.
lValidTable = .F. && Return value
IF ASCAN(laTemp,[PROJECT_2]) > 0 AND ALEN(laTemp,1) = 20 && Check for logical field & total fields
lValidTable = .T. && Return value
ENDI
If there any better way of doing this validation through examining the .dbf header file for example?
TIA
Dennis
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only