String functions, Call 60 – string repeat, Chapter 15 – Rockwell Automation 1746-BAS BASIC LANGUAGE User Manual
Page 243: Call 60 – string repeat -1, Chapter, Purpose, Syntax

1
Publication 1746-RM001A-US-P
Chapter
15
String Functions
This chapter describes and illustrates commands used to manipulate string data
structures within the BASIC program or from the command line. Table 15.1 lists
the corresponding mnemonics.
CALL 60 – String Repeat
Purpose
Use CALL 60 to repeat a character and place it in a string. You can use the String
Repeat when designing output formats. First PUSH the number of times to repeat
the character, then PUSH the number of the string containing the repeated
character. No arguments are POPped. You cannot repeat more characters than the
string’s maximum length.
Syntax
PUSH [number of times to repeat character]
PUSH [base string number]
CALL 60
Table 15.1 Chapter Reference Guide
If you need (to)
Use this mnemonic
Page
String repeat
CALL 60
String append (concatenation)
CALL 61
Number to string conversion
CALL 62
String to number conversion
CALL 63
Find a string in a string.
CALL 64
Replace a string in a string.
CALL 65
Insert a string in a string.
CALL 66
Delete a string from a string.
CALL 67
Determine the length of a string.
CALL 68
Allocate memory for strings.
STRING