Information générale
Catégorie:
Programmation Orientée Object
Titre:
Check that the object exists
I need to do the following:
I have a form that has a toolbar associated but I will like to disable a button of the toolbar based on certain conditions, i have the code in the refresh of the form, the problem is that when the form is created the toolbar still does not exists so if i do
oapp.otoolbar.cmdedit.enabled=.f. and error occurs
how can I check that the object exists before attempting this.?
Thanks all
Norman Avila
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement