VarAssignments.Item



Item(vID As Variant) As VarAssignment

Parameters

vID As Variant
Index or name. If the parameter is a numerical value, the template is searched by its index (>= 0 and <= Count-1). If it is an alphanumerical value, the template is searched by its unique name.
ED
avaliable
RT
not used

Remarks

Returns a object at a position or by a specified key

Sample:


'Enumerate all Assignements of the active project
Sub EnumAssignments()
Dim zVarAssign As VarAssignment
Dim zVarAssigns As VarAssignments
Dim i As Integer

	Set zVarAssigns = MyWorkspace.ActiveDocument.VarAssignments
	For i = 0 To zVarAssigns.Count - 1
		Set zVarAssign = zVarAssigns.Item(i)
		Debug.Print zVarAssign.Name & " [" & _
					zVarAssign.DynProperties("SourceVariable").Name & " > " & _
					zVarAssign.DynProperties("TargetVariable").Name & "]"
	Next i
End Sub

See Also

VarAssignments, VarAssignment