GetNextHypertext()

For a Text object named Text 1, use the following syntax:

var Link = Text_1.GetFirstHypertext()
Debug.trace(Link.GetText() + "\n")
var nextLink = Text_1.GetNextHypertext(Link)
Debug.trace(nextLink.GetText() + "\n")

Note:
The GetText function displays the hyperlink’s text – in this example, the text is displayed in a Debug window. If the GetFirstHypertext function has not previously been used for the Text object named Text 1, the GetNextHypertext link would not work.

To show the text for each hyperlink in a Text object, use the for loop with the GetNumberHypertext function – see GetNumberHypertext example for more information.

Close