Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OApp - it's all gone horribly wrong
Message
De
23/03/1998 10:34:25
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00086235
Message ID:
00086401
Vues:
44
Hi, Sarah. I had a rocky time getting my app object working, too, but it finally is and was worth the pain :-). I have some questions though about your posting.

Does OnStart.prg do a form?

When the form releases, it sets the oApp.NextTask to a form name? If so, in which method?

Are your forms SCXs or classes? If classes, where do you createObject?

Is DO (oApp.NextTask) a prg? or a form? I assume prg...Your syntax works for me for forms...i.e. DO FORM (CFORM)

At what line/method do you get the error about instantiating the class? From your example, the only class I see is clApp...


>My app is a series of modal forms which are released when another form is called. My main program pretty much looks like this:
>
>set classlib to 'bkclass'
>oApp = createobject('clApp')
>DO onstart &&other procedures for startup, separate program file
>DO WHILE oApp.NextTask != 'QUIT'
> m.lctask = oApp.NextTask
> *do (oApp.NextTask) && how to use macro substitution here?
> suspend
> &lctask
>ENDDO
>
>I just discovered oApp and that's the only change I've made to my program. I tested each bit I added to my custom class by going into my initial form and they are all fine - UNTIL I try to move from that form to another form. Then I get an error instantiating object. last time I got this I had a typo lurking but I can't find any. For a while yesterday the problem was intermittent but couldn't find what changed!

...snip
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform