Purpose
Returns a string built by repeating a specified character some number of times. You can call this function from the MapBasic window in MapInfo Pro.
Syntax
String$( num_expr, string_expr )
num_expr is a positive smallint numeric expression.
string_expr is a string expression.
Return Value
String
Description
The String$() function returns a string num_expr characters long; this result string consists of num_expr occurrences of the first character from the string_expr string. Thus, the num_expr expression should be a positive smallint value, indicating the desired length of the result (in characters).
Example
Dim filler As String
filler = String$(5, "ABCDEFGH")
' at this point, filler contains the string "AAAAA"
' (5 copies of the 1st character from the string)
See Also:
Space$() function