Get Position - INPUTD SENDMSG() Function 24

Syntax

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

Description

In BBj 4.00 and higher, this function returns the INPUTD control's caret position.

Parameter

Description

sysgui

SYSGUI channel.

id

INPUTD 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 - INPUTD SENDMSG() Function 20 returns, respectively. Use the returned string with the DEC() function to obtain the caret position in decimal format.