Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How determine entered value type
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00383408
Message ID:
00383499
Views:
14
Nadya,

TYPE() returns the data type of an expression. Your variable needs to be in quotes as in;
lcDat = "ABC"
? TYPE("lcDat") && C
? TYPE(lcDat) && U

lcDat = "12/31/90"
? TYPE("lcDat") && C
? TYPE(lcDat) && N because 12 is a number
Previous
Reply
Map
View

Click here to load this message in the networking platform