Method: SetBoundaryLimits for AssignmentList <Data>
- Updated2024-09-12
- 2 minute(s) read
Internal Data > Methods > Method: SetBoundaryLimits for AssignmentList <Data>
Method: SetBoundaryLimits for AssignmentList <Data>
Specifies the behavior at the interval limits of the minimum and maximum values of an assignment, in the script interface for internal data.
Object.SetBoundaryLimits(LimitsLeft, LimitsRight)
| Object | AssignmentList <Data> Object with this method | ||||||
| LimitsLeft | Enumeration with the following selection terms:
| ||||||
| LimitsRight | Enumeration with the following selection terms:
|
![]() | Note Specify the interval limits in a script before you generate individual assignments. |
![]() | Note If you define assignments with single values, use the BoundsClose setting for the minimum and the maximum. |
The following example specifies the interval limits for the minimum and the maximum, generates an assignment channel with three assignments, and displays the settings for the interval limits:
| VBScript | Python |
Dim oMyGrp, oMyChn, oMyAssgnList Set oMyGrp = Data.Root.ChannelGroups(1) Set oMyChn = oMyGrp.Channels.AddAssignmentChannel("MyAssignmentChn","Default Value") Set oMyAssgnList = oMyChn.AssignmentList Call oMyAssgnList.SetBoundaryLimits(BoundsOpen, BoundsClose) Call oMyAssgnList.Add("text1",10) Call oMyAssgnList.Add("text2",20) Call oMyAssgnList.Add("text3",30) Call MsgBoxDisp("Left Limits: " & LimitsAsText(oMyAssgnList.BoundaryLimitsLeft) & vbCrLf & _ "Right Limits: " & LimitsAsText(oMyAssgnList.BoundaryLimitsRight)) ' Function to convert Boundary Limits from integer into text Function LimitsAsText(eMyType) Select Case eMyType Case BoundsOpen LimitsAsText = "BoundsOpen" Case BoundsClose LimitsAsText = "BoundsClose" End Select End Function
