Topic complex |
Ramtext functions |
Function |
ramtext_copy() |
Short |
Copies an area from within a ramtext |
Syntax |
ramtext_copy(ramtext : STRING; startpos,count : INTEGER) : INTEGER |
Parameter |
ramtext : Name of the ramtext formatted like "ramtext:..."
startpos : Position of the first char to be copied
count : Number of chars to be copied |
Return |
Number of actually copied characters |
See also: |
|
Description |
This functions copies count chars from startpos into the system ramtext "ramtext:~clip".
The functions return value is the number of moved chars or 0 if the combination of startpos and count was invalid.
startpos may be set from 1 to getsize(ramtext).
count can take values from 0 to GetSize(ramtext) -startpos
|