Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataenvironment
Message
From
21/08/1997 18:31:48
 
 
To
21/08/1997 02:44:42
Renel Castro
Ingram Strategic, Ltd
Kowloon, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00046050
Message ID:
00046306
Views:
27
>>>Hi all,
>>>
>>> How can I change the "THISFORM.DATAENVIRONMENT.CURSOR1.DATABASE = "________"?
>>>I've tried to control in the Dataenvironment object method BeforeOpenTables, but
>>>still not working properly, sometimes it work and sometimes not.
>>>
>>> Pls. help.
>>>
>>>Thanks,
>>>Renel
>>Renel,
>>
>>Ok this one's is certainly not intuitive. The OpenTables fires before the BeforeOpenTables and opens the tables. So your reseting of the databse pointer property is happening too late to affect the opening of the tables by the DE. Move your code to the OpenTables method or the Init of the DE.
>
>It didn't work.........any other way?

Renel,
Try explicitly including the .DBC extention. For example, in the BeforeOpenTable method:

this.Cursor1.Database = "MyDB.DBC"

John.
It's "my" world. You're just living in it.
Previous
Reply
Map
View

Click here to load this message in the networking platform