| || |
Exit Calling Function or Sub
I would like to know how to exit a calling function from a called function.
Open a window("1").
'In General events i have
Sub EventControl1_OnLogWarning(Sender, LogParams)
Call Log.Message(LogParams.Str,"",pmNormal,nothing,Sys. Desktop)
''' I want to write a code to exit the function open
'' so that it can carry out Function open2
the reason i want to exit the calling function is that I call the event when an ambiuous window is displayed.
Since this is a general event i cant specify FLAG variable cos i have to change all the previous functions nor i can specify the function name cos this is called from any or many functions
Any suggestions is much appreciated.
Re: Exit Calling Function or Sub
There's no way to do this without using global flags. The callee routine has no control over the caller.