Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where's my oApp?
Message
From
06/04/1999 11:19:08
 
 
To
05/04/1999 22:20:52
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00205449
Message ID:
00205589
Views:
16
>Hi All ---
>
>Strange one here. I have an application with a main.prg that has:
>
>PUBLIC oApp
>oApp=NEWOBJECT("appclass","myclasslib")

Well... I don't have ALL your code here... but, where is your read events? It seems to me like you never complete creating 'AppClass' so control is never returned to the above line to assign oApp with an object reference. Try this...

PUBLIC oApp

oApp = NEWOBJECT("appclass","myclasslib")

* DO NOT CREATE YOU LAUNCHER FORM IN THE INIT OF YOUR APPCLASS!!! CONTROL HAS TO RETURN HERE. THEN DO...

oApp.NewObject("launcher","blahlib")
read events

OR...

oApp.Do() && in the DO create your launcher and then call read events.

***********

I am assuming here you have read events in your oApp's init or your Launcher Form Init... so, as I said before, control never returns to your oApp = line.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform