Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Same function PADL in VBScript ???
Message
From
20/11/2001 09:34:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00583883
Message ID:
00583896
Views:
30
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform