Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Same function PADL in VBScript ???
Message
De
20/11/2001 09:34:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00583883
Message ID:
00583896
Vues:
32
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>I'm getting a recordset from a VFP table in an ASP page.
>I need to write a number with the leading zeros.
>I use normally in VFP PadL( number, 8, "0" ).
>How to get the same result in VBScript ??
>Thanks in advance!

I don't know a direct way. You could do this :

myStr = "00000000000000000"
myNumber = 302
myPadl = right(mystr & FormatNumber(myNumber,0), 8)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform