RETURNS THE CARET POSITION OF THE SYSTEM OBJECT NUMBER N
ACTION
The function CARET_POSITION(N) returns the caret position P of the system object number N.
The system object is of type : EDIT, MEMO, COMBO, SPIN, MEMO_RICH, SYNEDIT.
SYNTAX:
Result=CARET_POSITION(N)
USE ERROR EXAMPLE
rem create an EDIT
edit 1
rem display a text
text 1,"Hello"
rem put the caret between "e" and "l"
set_focus 1
caret_position 1,2
print
print
print caret_position(1)
print 2
CARET_POSITION()
CARET_POSITION(N)
SEE ALSO
EDIT
MEMO
COMBO
SPIN
MEMO_RICH
SYNEDIT