|
|
|
|
|
- RepeatString and UNICODE (syntax 1)
RepeatString (Function) In french: Répète Concatenates N number of copies of the same specified string or buffer.
Res = RepeatString("x", 4) Â Â // Returns "xxxx" Res = RepeatString("Boby", 2) Â // Returns "BobyBoby" Res = RepeatString("", 2) Â Â Â // Returns "" Res = RepeatString("", 0) Â Â Â // Returns ""
Syntax
Concatenating N number of copies of the same character string Hide the details
<Result> = RepeatString(<Initial string> , <Number of copies>)
<Result>: Character string - New string containing the specified number of copies of the initial string,
- Empty string ("") if <Number of copies> is negative or null.
<Initial string>: Character string Character string to repeat. <Number of copies>: Integer Number of times the <Initial string> must be repeated.
Concatenating N number of copies of the same buffer Hide the details
<Result> = RepeatString(<Initial buffer> , <Number of copies>)
<Result>: Buffer - New buffer containing the specified number of copies of the initial buffer,
- Empty buffer if <Number of copies> is negative or null.
<Initial buffer>: Buffer Buffer to repeat. <Number of copies>: Integer Number of times the <Initial buffer> must be repeated. Remarks RepeatString and UNICODE (syntax 1) If the string passed as a parameter is an ANSI string, the result will be an ANSI string. If the string passed as a parameter is a UNICODE string, the result will be a UNICODE string. Remark: If the result of RepeatString on an ANSI string is assigned to a UNICODE string (and vice versa), the conversion will be implicitly performed.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|