Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar usage
Message
 
To
25/11/1998 09:51:09
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00161339
Message ID:
00161367
Views:
23
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform