Application.Quit statement resets Variables? 
Author Message
 Application.Quit statement resets Variables?

When Access hits the Application.Quit statement in code does it reset all
variables at that point? I was having a few problems with some code that
would suggest it does. deadlines being as they are I managed a quick
workaround to the problem, but would appreciate a definite answer if anyone
out there has come across this before.

thanks in advance

Susan



Fri, 05 Apr 2002 03:00:00 GMT  
 Application.Quit statement resets Variables?
Susan,

  Typically, you shouldn't have any lines of code executing after you issue
Application.Quit.  What are you trying to do after the app terminates?

  -- Dev

Quote:

>When Access hits the Application.Quit statement in code does it reset all
>variables at that point? I was having a few problems with some code that
>would suggest it does. deadlines being as they are I managed a quick
>workaround to the problem, but would appreciate a definite answer if anyone
>out there has come across this before.

>thanks in advance

>Susan



Sat, 06 Apr 2002 03:00:00 GMT  
 Application.Quit statement resets Variables?
Dev,

The code that gets executed is sat on the Close event of a couple of forms.
To stop this code from executing I was using a global var to indicate that
the system was closing down but this appeared to be getting reset by the
Application.Quit. In the end  I used a Database Property to hold the value.

Cheers Susan


Quote:
> Susan,

>   Typically, you shouldn't have any lines of code executing after you
issue
> Application.Quit.  What are you trying to do after the app terminates?

>   -- Dev


> >When Access hits the Application.Quit statement in code does it reset all
> >variables at that point? I was having a few problems with some code that
> >would suggest it does. deadlines being as they are I managed a quick
> >workaround to the problem, but would appreciate a definite answer if
anyone
> >out there has come across this before.

> >thanks in advance

> >Susan



Sun, 07 Apr 2002 03:00:00 GMT  
 Application.Quit statement resets Variables?
Where did u declare that global var?
Public vars should be declared in standard modules only.

--
HTH/EQTA
'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'
   Mario Osorio  (Hot Budare)
'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'_'-'
===============================
You'll find good answer to common and not so
common questions at Dev Ashish's page:
http://www.mvps.org/access
En la pgina de Dev Ashish, indicada arriba,
Ud. encontrar buenas respuestas
a preguntas comunes y no tan comunes.
===============================



: Dev,
:
: The code that gets executed is sat on the Close event of a couple of
forms.
: To stop this code from executing I was using a global var to indicate that
: the system was closing down but this appeared to be getting reset by the
: Application.Quit. In the end  I used a Database Property to hold the
value.
:
: Cheers Susan
:


: > Susan,
: >
: >   Typically, you shouldn't have any lines of code executing after you
: issue
: > Application.Quit.  What are you trying to do after the app terminates?
: >
: >   -- Dev
: >
: > >When Access hits the Application.Quit statement in code does it reset
all
: > >variables at that point? I was having a few problems with some code
that
: > >would suggest it does. deadlines being as they are I managed a quick
: > >workaround to the problem, but would appreciate a definite answer if
: anyone
: > >out there has come across this before.
: > >
: > >thanks in advance
: > >
: > >Susan
: > >
: > >
: >
: >
:
:



Sun, 07 Apr 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Resetting original system colors on quitting application

2. script quit/exit statement

3. 2 questions: glob. variables and quitting script

4. update a variable before quitting the web

5. Reset value of variables in a Select Case loop

6. Reset Public Variables

7. Resetting variables

8. Access RESETS my global variables

9. Global variable resets in Access 2.0

10. reset variables

11. Resetting variables

12. Is there an easy way to reset variables

 

 
Powered by phpBB® Forum Software