Hi!
In the editbox code:
this.Value = STUFF(this.Value,this.SelStart,this.SelLength,lcStringToInsert)
HTH.
>Hi Folks -
>I have an interesting one:
>We would like to take a memo, display it in an edit box. Now when the user types into the edit box, give them the ability to activate what we call a picklist, right mouse click activates a list from which the user can select from. Once the user selects from the picklist, the value needs to be inserted into the memo field, exactly where the cursor was prior to activating the picklist.
>
>The activation of the picklist no-problem, getting the selected value from the picklist no problem, the problem is placing the picklist value in the memo field exactly where the user activated the picklist. The only idea I can come up with is to insert a hidden character just befor activating the list, then parsing the memo field replacing the hidden character the picklist value. The main issue is if the insert is in the middle of a sentence and not at the end.
>
>Has anyone have any other ideas ?
>
>Thanks,
>
>Larry
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.