Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic replacement by one DBC on another
Message
From
20/10/1998 08:09:43
 
 
To
19/10/1998 14:39:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00148230
Message ID:
00148433
Views:
14
>>>Basically, you don't need in SET PATH at all. Instead of this you keep actual data location locally (e.g. in config.dbf) and reset programmatically DE.Cursor.Database property in DE.BeforeOpenTables event(s).
>>
>>Privet Edward.
>>Unfortunately DE. is not a container, also has not property CursorCount :(( I should describe all cursors manually or there is a best solution?
>
>If all cursors are dbc-tables, then you just:
>Thisform.SetAll("Database",cNewdatapath,"Cursor")
>If some DE.Cursors are free tables then you should go through all cursors (e.g using AMEMBERS(...,2) and reset CursorSource property for 'free' cursors.

Hi again.
At me two databases in one directory.
In DE of each form I write :
DE...BeforeOpenTables:
LOADFORMTABLED(THIS)

FUNCTION LOADFORMTABLE
PARAMETERS oDataEnvironment
AMEMBERS (aObjects, oDataEnvironment, 2)
,,,
FOR i = 1 TO ALEN(aObjects)

Everything works superb, as you have told.
But... In the database I have the LocalView... And when it is loaded I constantly receive the message

"Table tablename" " as not marked as belonging to the " database name " Would you like to create the back link to mark it."
Thanks again.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform