VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Lpad And Rpad (Pading the Character)

by OMKAR K. YADAV (4 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 23rd September 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Lpad And Rpad (Pading the Character)

Rate Lpad And Rpad (Pading the Character)



                For i = 1 To Size - Len(Expresion)
                Expresion = Expresion & Pad
                Rpad = Expresion

End Function

Public Function Lpad(Expresion As String, Size As Integer, Pad As String) As String
                For i = 1 To Size - Len(Expresion)
                Expresion = Pad & Expresion
                Lpad = Expresion

End Function



Download this snippet    Add to My Saved Code

Lpad And Rpad (Pading the Character) Comments

No comments have been posted about Lpad And Rpad (Pading the Character). Why not be the first to post a comment about Lpad And Rpad (Pading the Character).

Post your comment

Subject:
Message:
0/1000 characters