I’m having an issue using the new UserIntefaceUpdate process. The goal of the thread is to change a text field and wait 2 seconds.
My thread Run event:
[b]Dim theEnd, wait15 as Integer
'Set up a 2 second delay
theEnd = System.Ticks + 120
While System.Ticks < theEnd
'Set up a 1/4 second delay
wait15 = System.Ticks + 15
'Delay a 1/4 second
While System.Ticks < wait15
Wend
’ Update Window Fields
Me.AddUserInterfaceUpdate(“LblStatus”:gtheUIDelayLblStatus)
Me.AddUserInterfaceUpdate(“dlStatus”:gtheUIDelaydlStatus)
Wend[/b]
I set the global variables (gtheUIDelayLblStatus, gtheUIDelaydlStatus) prior to thread start.
The UserInterfaceUpdate event:
[b]For Each arg As Dictionary In data
If arg.HasKey(“LblStatus”) Then
LblStatus.Value = arg.Value(“LblStatus”).StringValue
End If
If arg.HasKey(“dlStatus”) then
dlStatus.Value = arg.Value(“dlStatus”).StringValue
End If
Next[/b]
The UserInterfaceUpdate event is never triggered during the 2 sec delay.
Any thoughts?