Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Loop through cursors in dataenvironment & chg DBC
Message
From
27/05/1998 11:34:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to Loop through cursors in dataenvironment & chg DBC
Miscellaneous
Thread ID:
00102387
Message ID:
00102387
Views:
54
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
Next
Reply
Map
View

Click here to load this message in the networking platform