Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you fill a char variable with zeros?
Message
 
À
07/06/1999 15:25:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00227138
Message ID:
00227221
Vues:
28
>>Would something like ABC = REPLICATE('0',10) help? Or abc = '0000000'?
>>Mark
>---
>yea, thanks...

Or if your dealing with numeric values that needs to have
left side padding (in this sample, lenght needed is 8 with 2 decimal)

abc = strtran( str( mynum, 8, 2 ), ' ', '0' )
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform