AllowRead

<< Click to Display Table of Contents >>

 

AllowRead

Enum Defines whether this I/O Block is read by the I/O Driver. If the AllowRead property is enabled, the I/O Driver automatically updates all I/O Block Elements inserted in this I/O Block, in time spans defined by the Scan property. Otherwise, this I/O Block is neither read nor updated. Default value is True. The next script contains an example of using this property.

Sub Button1_Click()
  'Stops block reading
  Set obj = Application.GetObject("Driver1.block1")
  obj.AllowRead = False
End Sub

Was this page useful?