VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

PadString Any Side

VisualProgman  (2 Submissions)   String Manipulation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Pads a string with any character you like. I usually use it to pad numbers with leading zeros. But you can use it for other things.

Inputs
Input ltring, length of return string, pad character, and side to pad

Returns
a string

Side Effects
No matter howmany characters in the pstrChar your pad character is the first character of pstrChar.

API Declarations
Public Enum enPadString
pdLeft
pdRight
End Enum

Rate PadString Any Side (3(3 Vote))
PadString Any Side.bas

PadString Any Side Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters