Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ActiveForm is not an object
Message
 
À
18/12/1999 23:52:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00305647
Message ID:
00305795
Vues:
27
>Hi,
> Yes, I use this command to verify the _screen.activeform either an object or not. It works fine and not cause VFP Error. However, user will not able to perform task like save, delete and.... from toolbar for the form focused at that moment. User have to terminate the program and run it again. How could I prevent this happen ? I think it is too bad to ask user re-run the application...
>
>Thank you

John,

My form manager knows the currently active form and my toolbars know the form manager. The fomr manager has a property named oForm that is a reference to the currently active form. My toolbars have a property oCreator that refers to the form manager that created them. So thebuttons in the toolbars all say;

This.oCreator.oForm.Whatever

That way the toolbar works for any and every formthat is created.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform