Imperfect Understanding

new topic     » topic index » view thread      » older message » newer message

I thought Euphoria was a procedural language. When one calls a procedure the procedure must complete and return prior to continuing program execution.

Apparently this is not true. To wit:

if fn < 1 then 
	MsgBox = message_box("Unable to open taa.cfg file", "Fatal Error", #10) 
	closeApp()  
end if 

In practice MsgBox executes it moves to closeApp() but before closeApp() finishes execution moves to following code. resulting in the application never closing.

These are win32lib routines:

global procedure closeApp() 
    if mainWindow != 0 then 
        closeWindow(mainWindow) 
    end if 
end procedure 

Any help with my limited understanding would be appreciated.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu