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