Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to AddObject Cursor to DE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00231092
Message ID:
00231381
Vues:
16
I think you may need to explicitly call the OpenTables() method. The BeforeOpenTables() method is kind of misleading, because it doesn't run before the OpenTables() method, it runs at the beginning of the OpenTables() method. So if OpenTables() does not get called (AutoOpenTables = .F.), BeforeOpenTables() does not get called. Hope this makes sense.

>When entering a form, the user has to select which database they will be working within. I have put the selector screen (modal) in the init method of the DE. Then, I do a number of AddObjects to give the proper properties to the cursors. The last line of the Init method is This.OpenTables(). Only the last table that I have AddObject'd is actually instantiated. When I look in the DE through the debugger, all of the cursors are defined - seemingly correctly.
>
>I do have the DE property AutoOpenTables set to .F.
>
>I have to call the modal select form in the init method of the DE because it will not populate properly if I do it in the BeforeOpenTables method.
>
>I'm using Visual MaxFrame as my framework.
>
>Any Ideas?
>
>Dick Harrold
Chris McCandless
Red Sky Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform