Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHRTRAN
Message
From
09/03/2001 15:13:34
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00483544
Message ID:
00483656
Views:
8
You could try,

if at(" ", id) = 0


>CHRTRAN() is for characters but it sounds as though the field is a character type since it allows non-digit characters and spaces. The ten digits (0 - 9) are characters as much as letters and punctuation marks.
>
>>Is the CHRTRAN() for character and not numbers? I am trying to use this for to check for an ID field that must have every number (and/or with a possibly characters) and must have no space in between. While testing, I could type all numbers, sometimes it works, sometimes not, and if I mix numbers with characters, sometimes it works, sometimes not, all that? This is what I have in my code:
>>
>>LEN(CHRTRAN(id," ",""))=8
>>
>>Chuck
Previous
Reply
Map
View

Click here to load this message in the networking platform