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
Divers
Thread ID:
00045276
Message ID:
00045321
Vues:
28
>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?
Bret,

First ot get the new fomr to keep focus you need to make it modal. To open your table you can do that in the form's Load event.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform