Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable numeric or character
Message
From
10/01/2014 16:05:53
 
 
To
10/01/2014 09:14:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01591614
Message ID:
01591686
Views:
44
From following these threads, the only issue I can see that might arise with vartype() is that a variable might sneak in that is blank - apart from that, the values are guaranteed to be either C or N since I select the scope - so if I understand correctly adding a provision to deal with 'X' would cover all my bases. Correct?
k

>Added for speed was vartype(), which sometimes barfs where slower Type() works. returning wrong resulst I have not witnessed, it had the "X" for .null. as difference
>>
>>Beware, do not use TYPE(). It was added for speed but makes little difference and is known for returning the wrong result at times. I have seen this myself.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform