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

Advertising
background image

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

15-1

String append (concatenation)

CALL 61

15-2

Number to string conversion

CALL 62

15-3

String to number conversion

CALL 63

15-4

Find a string in a string.

CALL 64

15-6

Replace a string in a string.

CALL 65

15-7

Insert a string in a string.

CALL 66

15-8

Delete a string from a string.

CALL 67

15-9

Determine the length of a string.

CALL 68

15-10

Allocate memory for strings.

STRING

15-11

Advertising