Variable.SetValueWithStatus



SetValueWithStatus(TimeMilliSec As short,Status As Long,Time As Long,Value As Variant)

Parameters

TimeMilliSec As short
Milliseconds of time stamp for set value.
Status As Long
Lower 32 status bits.
For definition of Statis see StatusValue.
Time As Long
Time stamp for set value.
Value As Variant
Set value as Variant.
ED
not used
RT
avaliable

Remarks

This method sets a value in combination with a status and a timestamp.

Sample:


Sub SetValue()

Dim zVariables As Variables 'Object from type Variables
Dim zVariable As Variable 'Child object from type Variables

'Fill the objects
Set zVariables = thisProject.Variables
'Take the first variable
Set zVariable = zVariables.Item(0)
'Write value 10, status I-BIT, with the actual time and 333 ms onto the variable
zVariable.SetValueWithStatus 10, 262144, Now, 333

End Sub

See Also

Variable