Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding table to a form from a class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Adding table to a form from a class
Divers
Thread ID:
00045276
Message ID:
00045276
Vues:
66
I am instantiating a form from a class that has a grid with .ColumnCount = -1. I'm trying to figure out how to assign it a table. I have learned that I cannot use oForm.AddObject('Dataenvironment','Dataenvironment') because it is not a member. Should I not use a data environment at all? Should I just say oForm.MyGrid.Recordsource = 'Mytable'? That's what I'm doing at the moment. For whatever reason, the instantiated form flashes for an instant and control returns to the calling form. I did not put a CLEAR EVENTS in my class. What are the requirements for getting a table into the form and making it stay there?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform