Ask a Question related to ASP.NET General, Design and Development.
-
Duncan Welch #1
legacy String command
Hi,
Back in classic ASP, there used to be a string function that generated x
occurances of a given character. Does anyone know the equivalient in
ASP.NET?
Thanks in advance
Dunc
---/ snip /---
' Old ASP function to keep strings all the same length...
Function PadNumber(sNumber, iLength)
If Len(sNumber) >= iLength Then
PadNumber = sNumber
Else
PadNumber = String(iLength - Len(sNumber), "0") & sNumber
End If
End Function
Duncan Welch Guest
-
Legacy Migrations
I am being asked to migrate and application from a 4.5 environment to a 5.0 environment. The client insists on this approach despite other advice to... -
Legacy saving
I teach at an impoverished college and we still have Illustrator 10, and thet's also the version I have at home. But some of the students have CS at... -
Converting a string to a movie command
I have three movies "a" , "b" and "c" I have a piece of code that checks for when a keyboard key is pressed I can find what key the user has... -
Running command from string variable as if part of script
I'm reading another perl script into array and want to commands from the the array as if normal perl commands. How do I do it? -
Legacy Parallel PCI
"Dale Stover" <dale@stpsoft.com> wrote in message news:vh86f0qplqnd56@corp.supernews.com... Check out... -
Ravikanth[MVP] #2
legacy String command
Hi Dunc,
you can use String.PadLeft and String.PadRight methods to
pad left/right with specified length.
HTH
Ravikanth
that generated x>-----Original Message-----
>Hi,
>
>Back in classic ASP, there used to be a string functionequivalient in>occurances of a given character. Does anyone know thesNumber>ASP.NET?
>
>Thanks in advance
>
>Dunc
>
>---/ snip /---
>
>' Old ASP function to keep strings all the same length...
>Function PadNumber(sNumber, iLength)
> If Len(sNumber) >= iLength Then
> PadNumber = sNumber
> Else
> PadNumber = String(iLength - Len(sNumber), "0") &> End If
>End Function
>
>
>.
>Ravikanth[MVP] Guest



Reply With Quote

