Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.EXE Errors!
Message
 
À
14/12/1998 10:04:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00167154
Message ID:
00167177
Vues:
21
>>>>>>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

hmmmm.... that looks like you are hard-codeing the path. Is there a way to use the SYS() functions in case the user decides to put the prg into a different dir??

Dan

>Thisform.SetAll("Database",oApp.dbcpathname,"Cursor")
>
>Here, 'oApp.dbcpathname' is application object property holding DBC file path+name.
Dan Gilliland
ICQ# 15695715


"Man is still the most extraordinary computer of all."
John F. Kennedy (1917-1963)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform