Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving code from de.beforeopentables to form.load
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00186197
Message ID:
00186254
Vues:
16
>I am moving the code that points my dataenvironment's cursors to the proper directory from the dataenvironments beforeopentables event to the forms (actually the class's) load event. The code is
>
>thisform.SetAll("Database",gcAppPath+"\database\patdb.dbc","Cursor")
>
>I am getting the error "property setting will not take effect until the data environment is loaded". I assume is is because the cursors are already open before the load event. How do I delay the opening opening of the cursors and then open them manually?

Evan,

Call Thsiform.dataenvironemnt.CloseTables()

then set your properties and then call the Opentables method

That is the safe way of doing it. Depending on the developer to set autoopentables to .F. in the de is not as safe.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform