bizaro wrote:

> 
> You could also use something like this...
> 
> myVar = 1
> Ae = event.create(Ax,Ay,"myVar = '"'" 'r event.destroythis")
>  ...
> 
> if (myVar == 1) do
> ; something
> endif
> quit

mmmm, what do you think about the following idioms

; when Ae == -1 event self-destroyed
; when Ae ==  0 event was destroyed
; when Ae >   0 event exists

; to create an event which will eventually self-destroy
; omit "Ae = -1 'r event.destroythis" in events that won't self-destroy
global Ae = -1
Ae = event.create(Ax,Ay,"Ae = -1 'r event.destroythis")
if (not Ae) do
  ; event.create failed
endif

; replace event.exists() with the following
if (Ae > 0) do
  ; event exists
endif

; to destroy an event
Ae = event.destroy(Ae)




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/JV_rlB/TM
---------------------------------------------------------------------~->

****  EDIT YOUR POSTINGS !!!! ****
Please remove as much as possible from original messages before replying to them.
________________________________________________ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to