K
ksr
Hi all,
I have the following question.
I have text hyperlinks, bookmarks and pictures in my word document.
For a text hyperlink,
selObj = Field.Selection()
selObj.GetText()
returns the text of the selection. (for ex. "www.google.com")
If I do the following,
pos1 = selObj.GetStart()
pos2 = selObj.GetEnd()
selObj.SetStart(pos1+ 4)
selObj.SetEnd(pos2+ 4)
selObj.GetText()
It still returns the same text for me.
My question is, will it change the selection? Will it return the text
"google.com "?
Pls. let me know.
Thankyou.
I have the following question.
I have text hyperlinks, bookmarks and pictures in my word document.
For a text hyperlink,
selObj = Field.Selection()
selObj.GetText()
returns the text of the selection. (for ex. "www.google.com")
If I do the following,
pos1 = selObj.GetStart()
pos2 = selObj.GetEnd()
selObj.SetStart(pos1+ 4)
selObj.SetEnd(pos2+ 4)
selObj.GetText()
It still returns the same text for me.
My question is, will it change the selection? Will it return the text
"google.com "?
Pls. let me know.
Thankyou.