Posted by Barbara Brazil on May 01, 2008 at 13:34:39:
In Reply to: EVENTSUB question posted by Grant Foraker on May 01, 2008 at 12:23:15:
Well, Grant, this question has sparked quite a discussion here (no I'm not talking to myself!). Jim reminded me that there are 2 scenarios here.
1) doing the ENTER from within your parent program's event handler
2) doing the ENTER outside of your event handler.
If you were inside your event handler, then your eventsub address was cleared by the event. This is why at the bottom of your event handler you always reset it unless you don't want to handle any more events. So, in this case, there was nothing to lose. You have to reset it anyway.
If you were outside your event handler then this points out that the value probably should be restored when you return from the sub-program. Apparently it's not now? We're looking in to this further.
So, your best bet is to reset your EventSub address when control returns from the sub-program. There is no stack for this value so there's no danger in setting it multiple times.
bb
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.