Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Handling
Message
 
À
23/07/2004 07:58:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00927316
Message ID:
00927320
Vues:
18
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform