Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error when creating object from class?? Weird..
Message
De
04/07/1999 13:02:00
 
 
À
04/07/1999 12:54:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00237303
Message ID:
00237344
Vues:
12
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform