Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub string
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00791512
Message ID:
00791525
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>How can I get the first 4 characters and the last 4 characters of
>the expression below
>
>
> "ADBACD CCCADS DCFGGT"
>
> ps. the number of letter can vary
>
>
> TIA
>
> Moise

if you have this string in a variable called mystring

1st 4
substr(alltrim(mystring),1,4)
last 4
substr(alltrim(mystring),len(alltrim(mystring))-3)
Hth
Jeff

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Previous
Reply
Map
View

Click here to load this message in the networking platform