|
Previous Top Next |
| Prototype: | (Long pFEQ, Long pProperty, String pValue) |
| pFEQ | Field EQuate label for the control to change |
| pProperty | Property to set |
| pValue | Value to set the Property to. |
This method does simple property assignment, but only if the property value has changed. This can reduce flicker caused by setting properties on controls repeatedly inside of a loop. This method simply sets the property only if it has changed.
Example:
ITW ITWindowsClass
Code
If EVENT() = EVENT:Timer
If TimerActive
Loop 100 Times
Next(MyFile)
If ErrorCode()
TimerActive = False
Close(MyFile)
Break
End
ITW.SetControlProp(?String1,PROP:Text,MYF:Name) ! Only changes PROP:Text if MYF:Name has changed
End
End
End