Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to KEEP reading events?
Message
 
To
12/12/2003 04:05:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00858174
Message ID:
00858534
Views:
16
>This is a SWAG, but maybe you could experiment with DOEVENTS, since you're working with Outlook and not just VFP.

I did get this working. I did the following:
...

loSysTray = createobject("mySysTray")
loSysTray.Tag = "Run"

do while loSysTray.Tag == "Run"
   read events
enddo

...

* Proc Of Class Definition for mySysTray
   PROCEDURE icondblclickevent
      this.RemoveIconFromSysTray
      this.Tag = "End"
      CLEAR EVENTS 
   ENDPROC 
It works but I'm still not sure why the read events doesn't continue to read the systray events. According to Fox Help, read events is supposed to read events until a clear events is issued. My code never issued the clear events. So the mystery remains but the program works.

BTW, I wasn't quite sure where I'd use the DoEvents ... had the above not worked, I would've at least started toying with that thought. <g>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform