Limits

 

Remarks Properties Methods Samples

ED
avaliable
RT
avaliable

Remarks:Top

The collection Limits contains the defined limits of a variable. With this collection you can access the defined limits.

Properties:Top

Count Parent  

Methods:Top

Item    

Samples:Top

Public Sub zenOn_Limits()
	Dim zVAR As Variable
	Dim zLimit As Limit
	Dim i As Integer

	'set variable object to get the limits collection
	Set zVAR = thisProject.Variables.Item("WIZ_VAR_10")

	'enumerate all limits of the variable
	For i = 0 To zVAR.Limits.Count - 1
		Set zLimit = zVAR.Limits.Item(i)
		Debug.Print "LIMIT " & (i + 1) & ":"
		With zLimit
			'generate some output information
			Debug.Print "Text:		" & .Text
			Debug.Print "Value:	 " & .Value
			Debug.Print "AlarmClass:  " & .AlarmClass
			Debug.Print "AlarmGroup:  " & .AlarmGroup
			Debug.Print "Status:	" & .DynProperties("Status")
		End With
	Next i
End Sub