Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Same function PADL in VBScript ???
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00583883
Message ID:
00583958
Views:
25
>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!

For VBScript version 5 you can also use:
strPadded = String(8 - Len(strNoPad), "0") & strNoPad
Where strNoPad is the string you want to add characters to.
Previous
Reply
Map
View

Click here to load this message in the networking platform