Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar usage
Message
 
À
25/11/1998 09:51:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00161339
Message ID:
00161367
Vues:
24
>I have a Visual 3.0 app using a toolbar with a form that is not part of a form set. What's the proper usage to refer to methods in this form from the toolbar. If I use the form object.method it works if the form is modal but gives me an error if nonmodal. Of course, I want to use the non-modal mode. Any help would be appreciated. Thanks.
>
>Stan Symons

Try the following:
IF TYPE('_SCREEN.ActiveForm.Name') = 'C'						&& Is there an active form?
	IF PEMSTATUS(_SCREEN.ActiveForm, mymethod, 5)				&& Does ActiveForm have .(tcMethod)?
		RETURN EVALUATE(_SCREEN.ActiveForm.mymethod())	&& Execute ActiveForm.(tcMethod)
	ENDIF
ENDIF
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform