DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: ReservedSize for AssignmentChannel <Data>

Property: ReservedSize for AssignmentChannel <Data>

Specifies the number of values that DIAdem reserves for an assignment channel, in the script interface for internal data. DIAdem automatically adjusts the value of the ReservedSize property if an assignment channel requires more values than specified.

Object.ReservedSize
ObjectAssignmentChannel <Data>
Object with this property
Object.ReservedSizeLongInteger with read and write access

The following example generates an assignment channel and displays the number of reserved values. The example then assigns a value to the tenth channel position in the channel and displays the new number of reserved values:

VBScriptPython

 

Dim oMyChn, oMyGrp
Set oMyGrp = Data.Root.ChannelGroups(1)
Set oMyChn = oMyGrp.Channels.AddAssignmentChannel("MyAssignmentChn","Default Value")
Call MsgBoxDisp("Reserved Size: " & oMyChn.ReservedSize)
oMyChn.dValues(10) = 15
Call MsgBoxDisp("Value(10) = " &  oMyChn.dValues(10) & vbCrLf & "Reserved Size = " & oMyChn.ReservedSize)
In This Section
Was this information helpful?