SELECT_TEXT

SELECT_TEXT N,P,C

SELECTS C CHARACTERS FROM POSITION P IN THE SYSTEM OBJECT NUMBER N

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

ACTION

The command SELECT_TEXT N,P,C selects C characters 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: SELECT_TEXT N,P,C

  • 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 select.
  • C = number of characters to be selected.

USE

  • The command SELECT_TEXT is used to select the text of an objet handling text.

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 C is not a correct expression.
  • If C is less than or equal to 0.

EXAMPLE

rem create an EDIT

edit 1

rem display a text

text 1,"Hello world"

rem select 3 characters from the 2sd

select_text 1,2,3

rem display the selected text

print select_read$(1)

SEE ALSO

EDIT

MEMO

COMBO

SPIN

MEMO_RICH

SYNEDIT

SELECT_DELETE

SELECT_READ$()