Type mismatch in SelStart property datatype

M

Monty

Why, when a textbox bound to a memo field or an unbound textbox can contain
over 32767 characters, would the textbox.SelStart property be an Integer
rather than a Long Integer? This makes it almost impossible to use the
SelStart property in these circumstances. Surely this is a bug in VB/VBA
that could be fixed simply by changing this property to a Long Integer
datatype.

I am using Access 2007, and I need to set the cursor position of a textbox
in rich text format to a the last character position, that is frequently in
excess of 32767. I have tried the SendMessage EM_SETSEL API call with no
success - it just selects the entire text regardless of the input parameters.

Has anyone any ideas how to accomplish this until this bug is fixed?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top