Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a PADL bug?
Message
De
26/07/2002 09:42:29
 
 
À
26/07/2002 09:21:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00682949
Message ID:
00682961
Vues:
13
Randy,

n=0
? STR(n)

Doesn't returns "0", returns " 0" ...
So, with ?PADL(STR(n),2,"0") you select only the first two characters (" ")...

Got it ?

To have it working, do it like this:

? PADL(AllTrim(str(n)),2,"0")

[]'s





*--------------------------*
n=0
?STR(n)
Returns "0"


n = 0
?PADL(STR(n),2,"0")
Returns ""
Should this not return "00"?
Juliano Martins Terterola
Microsoft Certified Professional
Porto Alegre - RS - Brazil
9 years of Visual FoxPro experience

"Though we know that time has wings
We're the ones who have to fly..."
Neil Peart - Rush
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform