Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EXE troubles
Message
 
 
To
15/02/2000 06:27:01
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00332016
Message ID:
00332282
Views:
11
Glen,

Are you doing development across multiple drives? If so VFP is hardcoding drive letters into your stuff. If you have all of the source on a single drive VFP just uses relative pathing, even though VFP will display fullpath on the property sheet it's not usually stored that way.

>>
>>The EXE is starting with an environment totally different than your developer time mode. You should examine stuff like SET PATH etc.
>
>In my startup program I capture the drive and folder name into a global variable I call Basic_Path. I set the paths to data and reports from this value as global variables Data_Path and Reports_Path etc. Here is the code for the EXE version (in the dev version I include paths for libs, progs, forms, help, menus etc).
>
>=====================
>PUBLIC App_Path,Basic_Path,Data_path,ToImport_Path,ToExport_Path,;
> Reports_Path
>
>Basic_Path=justpath(SYS(16))+'\'
>
>Data_path=Basic_Path+'DATA'
>ToImport_Path=Basic_Path+'DATA\TOIMPORT'
>ToExport_Path=Basic_Path+'DATA\TOEXPORT'
>Reports_Path=Basic_Path+'Reports'
>
>App_Path="DATA, DATA\TOIMPORT, DATA\TOEXPORT, REPORTS"
>
>SET DEFAULT TO (Basic_Path)
>SET PATH TO (App_Path)
>=============== anything wrong with that?
>
>
>I finally got one to work but it only works if I install it into the defalult path I gave it during the compile. If I install it with any other path name, I get errors.
>
>Glen
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform