| View previous topic :: View next topic |
| Author |
Message |
orditeck Newbie
Joined: 10 Jun 2005 Posts: 5
|
Posted: Fri Jun 10, 2005 12:37 am Post subject: @event() |
|
|
Hi all.
First, i speak french. My english is very bad. If anyone speak french here, check the message bottom.
---------------------
English (try ^^)
---------------------
I have a problem when i execute my program. It gets the error (french) " Erreur Rune Time 12 " or, in english, " Rune Time error 12 ".
My code is :
| Code: | :Evloop
wait event
goto @event() |
Thanks a lot !!!!
---------------------
French
---------------------
J'ai un problème quand j'éxécute mon programme. J'ai une erreur " Erreur Rune Time 12 ".
Mon code est :
| Code: | :Evloop
wait event
goto @event() |
Merci beaucoup ^^. Si vous avez besoin de plus d'info n'hésitez pas  |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Fri Jun 10, 2005 3:35 am Post subject: |
|
|
Try
:Evloop
wait event,0
goto @event()
or
:Evloop
wait event,1
goto @event()
or
:Evloop
Wait Event,0
%E = @event()
If %E
goto %E
End
goto evloop |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Fri Jun 10, 2005 5:56 am Post subject: |
|
|
Your program is probably generating an event that does not have a corresponding label in your code.
Try to do this:
| Code: | :Evloop
wait event,1
%%event = @event()
info %%event
goto %%event |
Then you'll get an info box with the event and you can check that you also have a label called [eventname]LABEL.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
orditeck Newbie
Joined: 10 Jun 2005 Posts: 5
|
Posted: Fri Jun 10, 2005 8:02 pm Post subject: |
|
|
filip, your councils do not function...
Dr. Dread => Now, when i run my program, i have the info box " Resize " and the error " Rune Time 12 ".
Thanks  |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Jun 11, 2005 12:32 am Post subject: |
|
|
| Code: | DIALOG CREATE,New Dialog,-1,0,240,160,RESIZABLE
DIALOG SHOW
:EVLOOP
WAIT EVENT
GOTO @event()
:CLOSE
EXIT
:RESIZE
GOTO EVLOOP |
When you use "RESIZABLE", an event is made called "RESIZE". You
need a branch called ":RESIZE" as seen above.
Hope this helps you.
-Garrett |
|
| Back to top |
|
 |
orditeck Newbie
Joined: 10 Jun 2005 Posts: 5
|
Posted: Sun Jun 12, 2005 2:39 am Post subject: |
|
|
| Garrett wrote: | | Code: | DIALOG CREATE,New Dialog,-1,0,240,160,RESIZABLE
DIALOG SHOW
:EVLOOP
WAIT EVENT
GOTO @event()
:CLOSE
EXIT
:RESIZE
GOTO EVLOOP |
When you use "RESIZABLE", an event is made called "RESIZE". You
need a branch called ":RESIZE" as seen above.
Hope this helps you.
-Garrett |
YA !!! THANKS !!!!! |
|
| Back to top |
|
 |
|