Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Truncate question
Message
 
 
To
15/08/2001 12:04:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00544131
Message ID:
00544160
Views:
15
>Is there an obvious way to eliminate the last four characters of a string variable? Like somehow use the RIGHT() function? The number of characters of the string vary, but the string always has the same four characters at the end. Like an extension.
>
>Thanks for putting up with newbie questions.

To combine the suggestions, here is another option:

strtran(lcString, right(lcString, 4), '')

As you can see, in VFP there are usually 3 ways of coming up with the same result.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform