Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

using padleft function in VB.net

I am trying to understand the usage of Padleft function. I wrote this code but when I display the xstring variable it doesn't show any change.

any idea?

thanks


 Dim xstring As String = "abcadabraheroColorado"
        xstring = xstring.PadLeft(4, "PPPP")
        MsgBox(xstring)

SOLUTION
Avatar of List244
List244

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial