Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Padding a String in VB .NET 1

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
571
US
I guess that the answer is "Yes", but still need to know for sure.
Here's the Q.: does VB .NET (specifically - in MS VS 2012) support String.PadRight/Left?
IOW:
would the following work in VB?
Code:
Dim cStr As String
cStr = "qwerty"
If LEN(cStr) < 10 Then
   cStr = cStr.PadRight(10)
End If

Regards,

Ilya
 
Thank you, colleague!
That's exactly what I needed!

Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top