Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get an Form/Object Reference via a Prg Class
Message
From
11/01/1999 14:09:04
Anthony Test
Microcomputer Engineering Services, Llc
Huntington Beach, California, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to get an Form/Object Reference via a Prg Class
Miscellaneous
Thread ID:
00174742
Message ID:
00174742
Views:
71
I have a PRG based class that gets call from several different places, but in each cause I need to change something on a form called 'ShwSch4' When I run the form by itself (not via a menu etc, but just typing the command DO FORM SHWSCH4) everything works ok. In the PRG I can do things like ShwSch4.Caption = 'Hi Mom' ( I can not for reasons of my program do things like _screen.Active.Caption = 'Hi Dad')

When I try running this via the Menu I do not have a ShwSch4 object (I think because I am using the V.M.P. framework). Anyhow my question is this how can I get a reference to a screen as an object in a prg class? I want to do something like.

oShwSch4 = ObjRef(shwSch4)

Any Ideas?
Next
Reply
Map
View

Click here to load this message in the networking platform