Information générale
Titre:
How to Loop through cursors in dataenvironment & chg DBC
When instantiating a form in the BeforeOpenTables() method I place the following code:
"=SETDATA(thisform)" which calls the following function:
FUNCTION SETDATA
*
LPARAMETER oForm
LOCAL lcDBCPathName
* gcUNC is a global variable containing the UNC path to the database container
lcDBCPathName = gcUNC + 'fanmail\data\fanmail.dbc'
oForm.SETALL("database",lcDBCPathName,"cursor")
This works great except for one specific form in which I use tables from two different database containers.
How can I loop through the data environment. I realize I can access it via:
ThisForm.dataenvironment.cursor1.database = " your database "...
But I have no clue how to loop through each database property within the dataenvironment, check which dbc it is and point it to the correct network table instead of the development one. Can anyone help ?
TIA
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement