Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field in a table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00099789
Message ID:
00099801
Vues:
30
You have two choices the simplest is the TYPE() function:
TYPE("latable.lafield")
will return the data type of the field. It returns "U" if the field does not exist.

Or you can use
AFIELDS(laFields)
to put the structure in an array and then
ASCAN(laFields, "LAFIELD")
will return the element number of the array that contains that field name or 0 if it can't find that field.

HTH,
-cjh

>>Augusto, you can use AFIELDS() function, for example and scan the resulting array which contains all info about fields in a table.
>>
>>Nick
>
>
>Excuse me Nick
>but i wanna know how to scan an array.. maybe in the same way that i scan a table?
>
>select array
> scan
> ....
> endscan
-cjh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform