Topic complex |
Ramtext functions |
Function |
ramtext_delete() |
Short |
Deletes an area in a ramtext |
Syntax |
ramtext_delete(ramtext : STRING; startpos,count : INTEGER) : INTEGER |
Parameter |
ramtext : name of the ramtext in the form "ramtext:..."
startpos : position of the first char that is to delete
count : number of chars that are to delete |
Return |
Number of the really deleted charakters
|
See also: |
|
Description |
This functions deletes count chars from startpos in the ramtext.
Again the return value is the number of the moved chars or 0 if the combination of startpos and count was not valid.
startpos can get values between 1 and getsize(ramtext).
count has to be between 0 and getsize(ramtext)-startpos.
The deleted text is transmitted to the system ramtext "ramtext:~clip"
|