https://learn.microsoft.com/en-us/dotne ... es/padding
PadLeft
The String.PadLeft method creates a new string by concatenating enough leading pad characters to an original string to achieve a specified total length. The String.PadLeft(Int32) method uses white space as the padding character and the String.PadLeft(Int32, Char) method enables you to specify your own padding character.
The following code example uses the PadLeft method to create a new string that is twenty characters long. The example displays "--------Hello World!" to the console.
C#
Copy
string MyString = "Hello World!";
Console.WriteLine(MyString.PadLeft(20, '-'));
in PB , RSET from doc :
RSet()
Syntax
Result$ = RSet(String$, Length [, Character$])
Description
Pads a string to the right by adding extra characters to fit the specified length.
so , sometimes i always confuse , like driving a car , left or right it should call ?
thanks guy
// Moved from "Coding Questions" to "General Discussion" (Kiffi)