Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if a field exists within a table ?
Message
From
09/05/2000 19:00:20
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00367896
Message ID:
00367901
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform