AllowRead

<< Click to Display Table of Contents >>

 

AllowRead

Enum Defines whether this Block is read by the I/O Driver. If the AllowRead property is enabled, the Driver automatically updates all I/O 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. Example:

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

Was this page useful?