inserttext
inserttext |
Purpose
Paste a text or string into a text.
Synopsis
procedure inserttext(txt:text, str:string, start:integer)
procedure inserttext(txt:text, src:text, start:integer)
Arguments
txt
|
A text object
|
src
|
A text object
|
str
|
A string
|
start
|
Insert position
|
Example
The following:
t:=text("abcdefgh") inserttext(t,"123",2) writeln(t) inserttext(t,"456",8) writeln(t)
produces this output:
a123bcdefgh a123bcd456efgh
Related topics
Module