Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Handling
Message
De
23/07/2004 08:02:00
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
23/07/2004 07:58:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00927316
Message ID:
00927318
Vues:
16
Try
var1=123456
var2=substr(alltrim(str(var1)),1,3)
HTH

Agnes
>Dear Sir,
>
>var1=123456
>var2=?
>
>In var2, I want to get last three digits from var1 as string but the command must be in only one line.
>
>I have checked following codes but failed
>
>
>var1=123456
>var2=alltrim(str(substr(var1,1,3)))
>
>
>How is it possible?
>
>Please help
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform