I have the following code in MAIN.prg:
SET CLASSLIB TO test
PUBLIC oApp
oApp = CREATEOBJECT("APP")
This runs the INIT which in turn fires my METHOD this.startup() which creates the menu and the READ EVENTS.
I launch a form from the menu with 1 button CLICK oApp.cMsg = "test" This generates an error the oApp is not an object.
Also, within the methods of oApp, I can refer to cMsg as this.cMsg, but oApp.cMsg returns the same error.
cMsg is initialized with a value "test1" and appears to be set PUBLIC.
I'm very confused at this point
Previous
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