Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining a Fields datatype
Message
De
10/09/1999 14:43:38
 
 
À
10/09/1999 14:40:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00263476
Message ID:
00263477
Vues:
18
You might want to use VARTYPE() instead if you are using VFP 6.0. TYPE() in VFP 3.0/5.0

HTH
>I am writing an HTML output class and want to
>right justify all numeric (N, I, Y) fields.
>
>My original thought was to create an array that
>would contain the data type of the first record
>using EVAL(FIELD(x)). However, I ran into a
>problem when one of the numeric fields was .NULL..
>
>As a result of the NULL value, the non-null fields
>are left aligned. I wanted to use the array to
>evaluate the field type only once - no need to
>do it every time.
>
>Is there a way to determine a fields data type
>so that .NULL. values will show the true field
>data type? I guess I can use something like
>AFIELDS() unless there is a better way.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform