CodeItBetter Programming Another VB Programming Blog

How to return a Padded String with Blanks on Right

Posted on January 4, 2009
1
2
3
4
5
6
'String Manipulation - How to return return a Padded String with Blanks on Right
Option Explicit
 
Public Function PadR(ByVal strExpression As String, ByVal iWidth As Integer) As String
   PadR = Left$(RTrim(strExpression) & Space(iWidth), iWidth)
End Function
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.