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
B4X:
MyString = (LeftPadding & MyString)
MyString = (MyString & RightPadding)
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…