Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot call my.app from launcher.exe
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00148759
Message ID:
00148777
Views:
13
Chuck,
You say you set the PATH of both the app location and the DBC/Tables location. Set the DEFAULT to the the DBC/Tables location, and paths relative to this folder for any other files you need. Unless there are other files you need in the EXE folder you won't need to have this folder in the path. We do this for a program that has the data on the network but individual EXEs on users' C drives.

HTH
Barbara

>I am using an executable to give user access to only "in house programs" that user is responsible for. A table has application name and path and user group. The object form has a list box that gives the user a list of applications to select from. When user selects from list box the application is launched passing 3 parameters (logical isdevelope,1(c) production or being modified, string for misc info) to set the environment. When the app is started a ini file is used to set the path of the app location and the dbc/tables location. Everything works up until the function opendbf(). the app is using the default directory of the executable and not searching the path set from the ini to find the app directory or the dbc/tables directory. Both the exe and the app work fine independently. I put the do with statement in a varible as in:
>lstBox.click
>some code to trap parameters
>set default to &appdir
>do &myapp (myapp='prog with p1,p2,p3')
>another ini file runs at beginning of main.prg to set path for the app to search for the dbc/tables.
>Any ideas why the path does not work and the program bombs?
>Sorry its so long, but I thought the info would be helpful.
>Thanks
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform