Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect when another form is closed?
Message
De
30/11/2008 07:47:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01364669
Message ID:
01364678
Vues:
18
>Hi everybody,
>
>I have a class based form calling another class based non-modal form. The first forms has a grid and the second form is called from that grid. Somehow after I close the second form the record pointer moves. I want it to stay on the same record.
>
>My question is - how can I detect from the calling form when the second form is closed?
>
>Thanks in advance.

Hi Nadya,

You mean, when you close the CHILD form, the record pointer in the PARENT form moves? That sounds as if your forms don't use independent data sessions. Try to set a private datasession for both forms, and don't include them in the same formset.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform