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
Title:
Cannot call my.app from launcher.exe
Miscellaneous
Thread ID:
00148759
Message ID:
00148759
Views:
53
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
Extreme Programming = Plan -> Design -> Code -> Test
Next
Reply
Map
View

Click here to load this message in the networking platform