Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a PADL bug?
Message
De
26/07/2002 09:38:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00682949
Message ID:
00682959
Vues:
15
Thanks everyone. Makes sense now.



>Hi Randy,
>
>No bug here. STR(n) returns not "0" but "_________0" (nine spaces + 0) and PADL(STR(n),2,"0") takes 2 left charactes from it.
? PADL(ALLT(STR(n)),2,"0")
>* or
>? PADL(TRANS(n),2,"0")
should return result you wanted.
>
>>We are using VFP7 SP1.
>>Here's what we are seeing...
>>
>>
>>?PADL("0",2,"0")
>>
>>Returns "00"
>>
>>
>>n=0
>>?STR(n)
>>
>>Returns "0"
>>
>>
>>n = 0
>>?PADL(STR(n),2,"0")
>>
>>Returns ""
>>Should this not return "00"?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform