Android Question Pad a string to the right or left with another string

William Hunter

Active Member
Licensed User
Longtime User
Is there a way to pad a string to the right or left with another short string, without specifying the length of the final padded string? Any help greatly appreciated.

Best regards :)

Edit: Over thinking again - this is resolved :rolleyes:
B4X:
MyString = (LeftPadding & MyString)
MyString = (MyString & RightPadding)
 
Last edited:
Top