How to insert a text at the cursor position in a textArea?

Hi,
I have a textArea. I want the user to specify the location to insert a text in the message using the cursor to set the position.
Once the cursor is in place. A button is clicked. The cursor position in the message will be inserted by a text defined by the button clicked action?

Benny

Read up on SELSTART, SELLENGTH and SELTEXT

Thank you.
Got that! Working perfectly.