ProSoft Technology MVI56-BAS User Manual
Page 148
Advertising

BASIC CALLs Syntax
MVI56-BAS ♦ ControlLogix Platform
User Manual
BASIC Module (DB/BAS Compatible)
Page 148 of 234
ProSoft Technology, Inc.
December 13, 2011
CALL 61: Concatenating a String
CALL 61 concatenates a string to another:
PUSH [A]
PUSH [B]
CALL 61
Where:
A = string number to be appended
B = string number where A will be appended to
Example:
Ready
>list
10 STRING 200, 20
20 $ ( 1) = "How are "
30 $ ( 2) = "you?"
40 PRINT "Before:"
50 PRINT $ ( 1)
60 PRINT $ ( 2)
70 PUSH 2, 1: CALL 61
100 PRINT "After:"
110 PRINT $ ( 1)
120 PRINT $ ( 2)
130 END
Ready
>run
Before:
How are
you?
After:
How are you?
you?
Ready
>
Advertising