Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Difference between forms and class based forms?
Message
De
24/03/2009 22:57:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/03/2009 19:12:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01391221
Message ID:
01391276
Vues:
126
>Fair enough. Why? What difference does it make?

First off, class-based forms don't have a dataenvironment object (it's null, I guess - never checked). You can add it after instantiation (I guess again, never tried that). If you have your own way to open the tables for your forms, then you just make sure that code runs from form's .load() and you're done. In a .scx, there's usually some pathing info stored in the DE, code that you don't see immediately (as the DE is a separate object, not really a part of the form, just saved with it, but you don't see it in the PEM window until you specifically rightclick on no particular control and select DE from there, but then you don't see the form).

Also, if you already have a form class, then instantiating just one form off that class is just adding two unneeded files to your project. If you can, or prefer to, manage without a DE, forget scx and live happily.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform