Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error when creating object from class?? Weird..
Message
From
04/07/1999 13:02:00
 
 
To
04/07/1999 12:54:21
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00237303
Message ID:
00237344
Views:
11
Okie, I have found the problem. The problem is that I didn't open the table in Load event of the form class. It runs well if I'm dealing with one table in the form. But the problem is that I'm using data from 2 tables in the class. So in the Load event, I put :

use table1
use table2

And I think this doesn't make sense.
So how do I need to make this out? Perhaps should I just use this first form class (only dealing with data for table1) as the base class for another form class (dealing with the data for table2) . So that, I can load 2 tables in my Load event?



>I doubt you are getting the same error as you reported before changing your calling syntax. What error are you getting?
>
>If ou want to have bound controls in a form class then you have to make sure that the tables are opened from the load event of the form, because form classes don't have DataEnvironments.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform