TEXT_INSERT

TEXT_INSERT N,P,T$

INSERTS THE TEXT T$ FROM POSITION P IN THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameters: 3
  • Group: System Objects

ACTION

The command TEXT_INSERT N,P,T$ inserts the text T$ from position P (that is from the P-th character) in the system object number N.

The system object is of type : EDIT, MEMO, COMBO, SPIN, MEMO_RICH, SYNEDIT.

SYNTAX: TEXT_INSERT N,P,T$

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • P = position of the first character to insert.
  • T$ = string, text to be inserted.

USE

  • The command TEXT_INSERT is used to insert a text from a certain position in a system object.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If number N is not of the type : EDIT, MEMO, COMBO, SPIN, MEMO_RICH, SYNEDIT.
  • If P is not a correct expression.
  • If P is less than or equal to 0.
  • If T$ is not a correct string expression.

EXAMPLE

rem create an EDIT

edit 1

rem display a text

text 1,"Helrld"

wait 1000

rem insert text from the 4th character

text_insert 1,4,"lo wo"

SEE ALSO

EDIT

MEMO

COMBO

SPIN

MEMO_RICH

SYNEDIT

SELECT_READ$()

TEXT_DELETE