Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want to check a value in a field for spaces?
Message
 
 
To
05/10/2000 16:42:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00425496
Message ID:
00425803
Views:
15
>>>>>I want to check a value in a field for the first occurrence of a space
>>>>>and report back the character length of that field value.
>>>>>any idea?
>>>>
>>>>iLength = AT( " ", FieldName )
>>>works....thanks...:)
>>
>>Actually, there is an off-by-one error. Line should be:
>>
>>iLength = AT( " ", FieldName ) -1
>Hi, Are you saying off-by-one because...
>iLength = AT( " ", FieldName ) returns value plus 1 and 1 is a space?

In the command window type:
? AT( " ", "The cat" )
Is the result three or four - and how many letters ar in the word "The" ?
censored.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform