Item

<< Click to Display Table of Contents >>

 

Item

Item(ItemId)

This method returns a Link object from a specific property of an object. If it is a text, the ItemId parameter specifies the name of the property whose Link users want to access. This Link can also be accessed by using a number index. This index must be between 1 (one) and Count. In case there is no Link to the property, or the index is invalid, then a script error occurs. As in other collections, The Links collection allow using VBScript's For Each statement. Example:

Sub Texto1_Click()
  For Each Link In Links
    MsgBox "Link source: " & Link.Source
  Next
End Sub

Was this page useful?