>>>>>Hello all!
>>>>>I am haveing a problem in complining an exe in my project.
>>>>>I am getting an error 'C:\windows\desktop\mydb.dbf does not exist'
>>>>>Error 1 (there are 11 of the) Method:embossedform.dataenvironment.cursor1 (thru 11. ie: error appears 11 times)
>>>>>when attempting to run the exe.
>>>>>
>>>>>I am not useing a config.fpw file currently as most of my settings are in my startup program.
>>>>>
>>>>>my path statement in the startup prg is like so:
>>>>>set path = sys(5) + sys(2003)
>>>>>
>>>>>Also, I am running the exe from a different dir than the appdev dir,
>>>>>ie: c:\myprg vs c:\appdev.
>>>>>
>>>>>I believe my problem may lie herein, but am not sure.
>>>>>Can anyone advise??
>>>>>
>>>>>TIA,
>>>>>Dan
>>>>
>>>>Do you have dbc- or free tables in DataEnvironment?
>>>
>>>Ed,
>>>I have NO free tables in my app...
>>>all are under drop.dbc.
>>>
>>>Dan
>>
>>It seems to me that you have problem with DE.Cursor.Database property pointed to wrong directory. You may check in design mode, and reset in run-time programmatically from DE.BeforeOpenTables event.
>
>Ed,
>Forgive my inexperience, but HOW might I accomplish this??
>
>Dan
***DE.BeforeOpentable event
Thisform.SetAll("Database",oApp.dbcpathname,"Cursor")
Here, 'oApp.dbcpathname' is application object property holding DBC file path+name.
Edward Pikman
Independent Consultant