I’m working on a project for the University, on process synchronization and I need to sleep a process until an event happen.
I did something like this but it didn’t work

Dim A as Boolean
----------------------
Sub Wait ()
A= false
While not(A)
doevents
Wend
EndSub
----------------------
Sub Signal()
A= true
EndSub

Thank you very much

Sebastian