Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Load() and init() methods
Message
From
30/10/1996 18:45:23
 
 
To
29/10/1996 14:08:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00011101
Message ID:
00011178
Views:
32
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform