Inserts the contents of one string into another.
source
If not of type string, source is converted to string using PV-WAVE's default formatting rules. (These rules are described in Free Format Output in Chapter 8 of the PV-WAVE Programmer's Guide.)
a = 'Strings are fun'
Create a string in the variable a.
STRPUT, a, 'PV-WAVE is '
Insert the string "PV-WAVE is" into
a
, starting at position 0.
PRINT, a
PV-WAVE is fun
Display the result.
STRPUT, a, 'fun to use', 12
Insert a string into
a
that would extend its length.
PRINT, a
PV-WAVE is fun
Display the result. Note that the inserted string was clipped so the
; length of
a
did not change.