HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func strrpt

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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.

Feedback to webmaster