General information
Category:
Forms & Form designer
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only