Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement