Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for field name
Message
From
30/09/2012 16:42:55
 
 
To
30/09/2012 16:23:50
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01554003
Message ID:
01554006
Views:
49
that works - thanks Al. btw should i set compatible ON after this - i assume that is the default.

>>i am creating link to past records and as time has passed i have added new fields to the more recent databases.
>>is there a way i can test for the presence of a field before i display it so i don't get the error message [variable 'newfield' not found].
>
>You can check the size of the field using FSIZE() - be sure SET COMPATIBLE is OFF before trying to use it for this purpose.
>
>If the field exists it will return a value greater than zero, if it doesn't, the return value is zero.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform