REPLICATE()
Repeats a single character expression
- Syntax
-
- REPLICATE( <cString>, <nSize> ) --> cReplicateString
- Arguments
-
- <cString> Character string to be replicated
- <nSize> Number of times to replicate <cString>
- Returns
-
- <cReplicateString> A character expression containg the <cString> fill character.
- Description
-
- This function returns a string composed of <nSize> repetitions of <cString>.The lenght of the character string returned by this function is limited to the memory avaliable.
- A value of 0 for <nSize> will return a NULL string.
Examples
? REPLICATE( 'a', 10 ) // aaaaaaaaaa
? REPLICATE( 'b', 100000 )
Tests
See Examples
- Status
- Ready
- Compliance
-
- This function is Ca-Clipper compliant in all aspects, with the exception don't have the Clipper 64Kb string length.
- Platforms
-
- All
- Files
-
- Library is rtl
- See Also