Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to manage controls init processes?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01096110
Message ID:
01098369
Views:
12
Hi,

>So, AFAIU, the best way to do is create object of my class inside Form.Load and reference to it using memory (i.e. m.oSQL.exec)?

If you assign the reference to a memory variable, the object would only be available in the Load method. Objects you need during the initialization of the form, you have to create it in the Load event. Either use CREATEOBJECT() as Mike suggested, or use AddObject:
Thisform.AddObject("SQL","MySQlClass")
THisform.SQl.Exec(...)
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform