HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func strrpt

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

String repeat. Returns a string composed of repeated occurrences of a source string.

Syntax



   strrpt (source count)

Formal Declaration



   strrpt:str (source:str count:u32)

Parameters


source

The source string to repeat.

count

The number of times to repeat source.

Examples



 $nmdebug > var digits:str "0123456789"
 $nmdebug > wl strrpt(digits, 7)
 0123456789012345678901234567890123456789012345678901234567890123456789

Print out the string of digits "0 .. 9" repeated seven times.

Limitations, Restrictions


If the resultant string is larger than the maximum supported string length (see the STRMAX function), it is truncated at the maximum length.




func strpos


func strrtrim