Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IsNumeric - VFP analogue?
Message
From
18/01/2000 14:23:01
 
 
To
18/01/2000 00:40:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307922
Message ID:
00319560
Views:
30
Roelaux, this might help.


>>MAGIC = 42
>>MyNumber = "MAGIC"
>>? TYPE(MyNumber)
>>? LEN(MyNumber)
>>
>This part I get!!
>It is N because of the lack of " " around 42. Correct?

This should be;
MAGIC = 42
MyNumber = "MAGIC"
?TYPE(&MyNumber) <-- The '&' creates an indirection to Magic's value.
?LEN(&MyNumber)

Another example, would be;

lc_alias = ALIAS() && the currently selected table

SELECT 100 && select some other table

SELECT &lc_alias && If lc_alias is empty, this will cause an error.


Rob.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform