Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub string
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00791512
Message ID:
00791525
Vues:
15
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform