Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a PADL bug?
Message
De
26/07/2002 09:29:51
 
 
À
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:
00682952
Vues:
16
You're padding left to something that is already 10 characters long. Try:
Padl(Alltrim(Str(n)), 2, "0")
In fact, you can just use
Padl(n, 2, "0")
Alan

>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
Répondre
Fil
Voir

Click here to load this message in the networking platform