Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Protecting a _screen property from CLEAR ALL
Message
 
 
À
30/04/2004 15:14:46
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00899904
Message ID:
00899924
Vues:
22
This message has been marked as the solution to the initial question of the thread.
Hi Gary,

Take a look at Developer-defined Btn(s) on Standard VFP toolbar Thread #611029.

>We develop applications that go against multiple back ends, sometimes in a single form. I created a connection class that that has a collection of connections. For ease of use in the development environment, I instantiate a developer toolbar that has a combo box that allows selection of the desired connection handle so that builders have the proper connection after the initial login.
>
>So far, so good. The problem comes when we CLEAR ALL, which happens about a zillion times a day. The tool bar and the connection-collection object evaporates, causing us to re-login over and over. In a single back-end environment, I would just put the connection handle on a _screen level property and it was immune to CLEARing. When I put the toolbar or collection object reference in a _screen level property, the object reference evaporates leaving the property NULL.
>
>What would be nice would be a way to "protect" the _screen property. I suppose I could have a clean up proc issue a RELEASE ALL EXCEPT... instead of the CLEAR ALL, but I'd sure like to keep the ability to CLEAR ALL. All suggestions welcomed.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform