Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate structure?
Message
 
 
À
19/03/2002 15:27:04
Scott Starkey
Tindall Record Storage
Fort Worth, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00634649
Message ID:
00634652
Vues:
19
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform