Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String Handling
Message
From
23/07/2004 08:02:00
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
23/07/2004 07:58:08
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00927316
Message ID:
00927318
Views:
17
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]
Previous
Reply
Map
View

Click here to load this message in the networking platform