There is a test project group that demonstrates some of the
features of this class.
qvTest will appear in the Object combo box of the code
window. Initialise the variable using:
| qWatch Properties |
| Condition |
[R/W] Sets the condition for how
events are handled when a value is passed to the class.
See Condition information below. |
| Match |
[R/W] The
value that the class value is compared against in conjunction
with the qualifier. If the match value is passed when
the qualifier is already set, the class value will be compared
with the new value |
| Qualifier |
[R/W] The
comparison operator (=, <, >, <=, >=) as an enum
that is used to compare the class value against the match
value. |
| Value |
[R/W]
[Default] The class value. If new value meets the
condition or matches the match and qualifier criteria the
events are fired. |
| ValueNoEvent |
[W]
Changes the class value without firing any events. |
| qWatch Conditions |
| qreNone |
No events
raised |
| qreChanged |
'Change'
event raised only if new value is different |
| qreAll |
'Change'
event raised every time value is referenced |
| qreMatchOnly |
'Change'
event not raised |
| qreSuspendChange |
No event
raised until 'Condition' is changed. When the
'Condition' is changed the value is compared against the value
held when the condition was set to 'suspend change' and events
are fired depending on new 'condition' |
| qreSuspendMatch |
No event
raised. Once a value is passed that meets the match
criteria the value is suspended and further values passed to
the class are ignored |
| qWatch Events |
| ValueChange |
Raised
when the class value changes depending on the value of
'condition' |
| ValueMatch |
Raised when the class value meets the criteria
set by 'match', 'qualifier' and 'condition' |
| |
|