Pause within my code

Funkyaccess

Registered User.
Local time
Yesterday, 18:00
Joined
Oct 8, 2009
Messages
69
Hi,

I have an autoexec function which runs but I want it to pause and bring up a login form and if the login is successfully then continue with the rest of the autoexec.

How can I make autoexec function wait for a response from a form before continuing?
 
not to worry I did it the messy way created a global variable then displayed the form and exitted the function then run the function again if the user logged in and if the variable is set then jump down the code to the label I declared.
 
Personally I would have broken the function in two. Let it do whatever it should do until the point of opening the login form, then let code in the login form or a second function do the rest upon a successful login.
 

Users who are viewing this thread

Back
Top Bottom