Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Load() and init() methods
Message
De
30/10/1996 18:45:23
 
 
À
29/10/1996 14:08:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00011101
Message ID:
00011178
Vues:
39
>I don't still really know when to use place my "init" code when loading a form or formSet, either in the init() or load() methods. Can anyone give me some advice on how and when to use one or the other?
>
>Thanks,
>Javier.
Hola Javier! Practico mi inglés!

An interesting use of load() methods, came when you need to setup the data environment, or open database and use tables, in a form class. You can define controns in the form class, with ControlSources like "customer.name", but you don't have a data enviroment in the class. Generally, you can set up a private dataenviroment (with a property in the form), and in the load method put:

open database sales
use customers

and perhaps, adds some cursorsetprop(....). I think that you can add a Data Environment class, too. The data enviroment class must be defined in a prog (no vcxs for DE class.... snif). Check the Griver "CodeBook" or the "Visual Fox Unleashed" from SAMS, where all this is explained and used....

Angel "Java" Lopez (a.k.a. "Me Tarzan....")
ajlopez@ajlopez.com

desde Argentina
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform