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:
00659778
Views:
29
Dennis,

>... 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.

That's the reason why I programmed "modal-like" until we had
private datasession. Apart from always keeping all tables open
or writing Your own very very complex Table-handlers, using
private datasessions is the only way to make this bulletproof.

Using private datasessions is very simple (just set the forms'
Datasession-Property to 2-Private Datasession) and causes every
form (more or less) to behave like an isolated workstation in a
network. There are some minor traps You might fall into but
nothing severe.

If You have subsequent form-calls (i.e. form1 calls form2) where
form 2 should use the data of form1, You can leave the Datasession-
property of the second form in its default-setting. The second form
will be in the same datasession as the first one. Both together
protected from the outside world.

Just have a look at the SET... settings (SET CENTURY, SET DECIMALS
etc.). Some of them only work for the current datasession. So You
might have to set them for each form You call. But that can be
done via a global procedure.

HTH
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Reply
Map
View

Click here to load this message in the networking platform