Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate structure?
Message
 
 
To
19/03/2002 15:27:04
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00634649
Message ID:
00634652
Views:
17
This message has been marked as the solution to the initial question of the thread.
>Is there a way to evaluate the name of the first field in a table, or some other structure issue, programatically? During a program, I would like to make sure that a user is not opening a table with the wrong structure.
>
>Just wonderin'
* Check the name of the first field in the table
IF FIELD(1, "mytable") = "mytable_id"
* Check the # of fileds in the table
IF FCOUNT("mytable") = 25 
* Get fields info into an array
DIME laFields[1]
= AFILEDS(laFields, "mytable") 
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform