Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stumped
Message
 
To
24/04/1998 16:38:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00094441
Message ID:
00094884
Views:
27
>>I would do RIGHT(ALLTRIM(cField),2) FOR state and SUBSTR(cField,1, LEN(cFiled)-2) for city
>
>So do it :)

The key here is that you have to trim the field before you start evaluating it. The second part of your statement without the trim on cField starts its evaluation from the end of the field(including spaces)

Bill
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform