Get Position - INPUTT SENDMSG() Function 24

Syntax

POSITION$=SENDMSG(sysgui,id,24,0,$${,context{,ERR=lineref}})

Description

In BBj 24.00 and higher, this function returns the INPUTT control's caret position.

Parameter

Description

sysgui

SYSGUI channel.

id

INPUTT control ID.

24

Number of this SENDMSG() function.

0

Always zero.

$$

Always null.

The caret position is relative to the returned title string. The first and last positions are to the left of the first character and right of the last character that Get Title - INPUTT SENDMSG() Function 20 returns, respectively. Use the returned string with the DEC() function to obtain the caret position in decimal format.