Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper way to close programs
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00659737
Message ID:
00659742
Views:
23
Because your datasession is set to default. I would prefer making it private and open your tables using the DE or Load event of the form. This way you have no worry what's happening outside the form.

>Most of the code I write revolves around forms and formsets. The problem I have is in exiting them. I have one application that consists of about 200 forms and reports. As users move from one to another they sometimes get an error of alias xxx not found. The xxx sometimes refers to a table and sometimes a cursor. If a cursor is referenced it is always from the program that is being shutdown.
>
>I have tried using the following command to close forms.
>
>Thisformset.release
>do form next1
>
>or..
>
>thisformset.release
>close tables all
>do form next1
>
>or..
>
>close tables all
>thisformset.release
>do form next1
>
>I have played with the autoclose and autoopen settings.
>
>I have one instance where if I set autoclose to .T. and run another form there is a grid in the form that will not populate. However if I call this same from a different form I can use autoclose set to .T.
>
>I am getting really frustrated here. It seems as exiting from a form should be a no brainer. I would love to get some kind of consistant behavior here. However, my experience with other MS products leads me to believe that this to much to hope for. Barring that, how about an explanation of what goes on when exiting forms and the best way to handle.
>
>Thanks
>
>Dennis Tarkir
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform