Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Numeric
Message
From
08/09/2004 04:09:21
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00939224
Message ID:
00940197
Views:
14

Isn't the EMPTY(LEN()) a bit redundant?

Just EMPTY(CHRTRAN(myValue, allowedChars, "")) should be sufficient.


No.

EMPTY() return .t. for:

The empty string,
spaces,
tabs,
carriage returns,
linefeeds,
or any combination of these.


then for allowedChars = '0123456789', spaces,tabs... are not allowed.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform