OK, I've found it...
Here's how to set cursor/selection in a textfield (probably a textarea too).
Remember:
startPos/endPos are 0 based,
use the same value for startPos/endPos to position the cursor,
use different startPos/endPos values to select some of the text
EDIT:
...and now i find this:
http://www.blitzbasic.com/Community/posts.php?topic=25196
Here's how to set cursor/selection in a textfield (probably a textarea too).
EM_SETSEL = $B1 SendMessage(QueryObject(textField,1), EM_SETSEL, startPos, endPos)
Remember:
startPos/endPos are 0 based,
use the same value for startPos/endPos to position the cursor,
use different startPos/endPos values to select some of the text
EDIT:
...and now i find this:
http://www.blitzbasic.com/Community/posts.php?topic=25196