Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Big 'O'
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00115108
Message ID:
00115114
Vues:
19
>Object, that is. :)
>
>At VFP class, the instructor told us that it's a good idea to make the whole application into an object. He did it using the application wizard. I tried that, but kept running into problems. I'd rather do it myself, anyway. I don't like wizards because I like to know what all the code in my app means. The best way for me to figure something out is to do it myself.
>
>So, could someone give me some pointers about how I go about making an application object and what to do with it when I got one?
>
>Do I still do a "read events"? Where do I put it if I do?
>
>Basically, I need the steps to turn a collection of forms into a runnable application.
>
>Easy question, right?
>
>Thanks,

Issuing READ EVENTS in an application handles all READS including that of custom objects, forms, etc. READ EVENTS enables you to have an independent read on your application instead of the default VFP read event foundation.

**mymainprog.prg

DO MYMENU.MPR
SET CLASSLIB TO myclasslib ADDITIVE
myformObject = CREATEOBJECT("myclasslib.myform")
READ EVENTS
CLEAR ALL
CLOSE ALL
SET SYSM TO DEFAULT

Your main menu handles all calls on forms, programs etc.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform