Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String Handling
Message
 
To
23/07/2004 07:58:08
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00927316
Message ID:
00927320
Views:
17
var1=123456
var2=RIGHT(ALLTRIM(STR(var1)),3)
var1=123456
var2=alltrim(str(substr(var1,1,3))) && Here You try to get first 3 symbols from var1 but substr wotks ONLY on string. You must change the sequence of the functions
var2=SUBSTR(ALLTRIM(STR(var1)),1,3)  && First 3 digits (in Your post you said You want the LAST ones. So first example gives you the last 3 digits
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform