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