Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if a field exists within a table ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00367896
Message ID:
00367901
Vues:
18
>Type() doesn't seem to work for a table field.
>

It works to see if it's a resolveable reference, but not to get the field's field type. You can use AFIELDS() to extract this information. TYPE() will not distinguish between various numeric types (Integer, Float, Numeric) - it sees them as an 'N' reference; AFIELDS() contains the exact field types.

TYPE() will tell you if the reference is unresolvable as either a field or memvar; it doesn't distinguish between the two, and will take a field in the current work area in preference to a memvar of the same name.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform