General information
Category:
Coding, syntax & commands
Title:
How to get an Form/Object Reference via a Prg Class
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only