Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the right table
Message
 
 
À
21/04/2005 12:40:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01007092
Message ID:
01007096
Vues:
18
You can use FCOUNT() to get the number of fields in the table, FIELDS() to get a field name by its position, AFIELD() to get the table fields into an array. To check if field 'myfield' exists in the alias 'mytable',
? TYPE("mytable.myfield") <> "U"
>Is there a way to determine if a person chooses the right table? I mean when the user gets a GETFILE('DBF') and he/she chooses a VFP table. How can I check if it's the right table (I need in that specific procedure) the user have chosen? I think I can check the structure of the table, but how can I do that? Anybody have an idea?
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform