Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

change selected text

36 views
Skip to first unread message

Jason Henderson

unread,
Jul 14, 2003, 11:36:48 AM7/14/03
to
Use the Pos function to find the postion of the text in the column then replace the selected text and use SetText to put it back in.
"Mathieu Gendron" <no_spamfor...@siq.gouv.qc.ca> wrote in message news:OCsCDdhSDHA.346@forums-2-dub...
Hi,
 
That should be a simple one but since I can't figure out how to solve this...
 
I use the function SelectedText() to get the text selected by the user in a column of a dw. I manipulate this text then I just want to replace the selected text by this manipulated text. SetText change the whole column. And I don't find a function to get the position of the selected text.
 
 

Mathieu Gendron

unread,
Jul 14, 2003, 11:47:15 AM7/14/03
to
That will not work every time... suppose the string could be found twice and the user selected the last one...
 
I am working right now to a solution with SelectedStart, I'll tell you if it works...
"Jason Henderson" <jhenders_t...@consolidated.net> a écrit dans le message de news: #mKxq7hSDHA.346@forums-2-dub...

Philip_Salgannik

unread,
Jul 14, 2003, 12:33:58 PM7/14/03
to
ReplaceText().

Mathieu Gendron

unread,
Jul 14, 2003, 10:42:03 AM7/14/03
to
0 new messages