[REBOL] Re: Newbie stuck again...
From: didec:tiscali at: 10-Oct-2003 12:25
Re: Newbie stuck again...
Simple and usual error : you use "view" instead of "view/new".
As you can see by yourself with "source view" (read carrefully, there is a trap), "View"
use the "do-events" function that is the same as "wait []".
So it's "View" that do the wait. The program continue just when you close the window
and do your wait.
Use "View/new" to not doing the "do-events" and continue the execution.
So use :
; --------------------------------------------------------------------------------
unview/all
view/NEW center-face main_window
forever [
wait 5
either do-scan? [ do_services ] [ do_cancel ]
]
DideC