Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check for ***********************
Message
 
To
17/07/2000 13:43:36
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00389944
Message ID:
00393420
Views:
25
>>Since you have the data type, you could use a SELECT CASE statement to examine the individual data types and set a the type variable accordingly. For example, VAL() for numerics, EVALUATE() for Booleans, etc.
>
>Evaluate for them all - they'll just turn out into their proper data type. Type('eval(".f.")') gives you a "L", and Ttype('eval("1")') gives you a "N"; therefore Eval(".f.") does give you a real Boolean .f. and no problems.

Unfortunately, this won't work in all cases. If the SQLSETPROP() statement needs to accept a character (DataSource, for example), using EVALUATE() will generate an error. You might be able to trim it down to an IF..ELSE statement, but you're going to have to check the data regardless.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform