Dee
asked on
Getting "file does not exist" when call prg file in from vfp 5
I am trying to streamline some old clunky VFP procs that I am having to run manually and manually edit variable values in prg's.
So ... I am loading the prg names and locations into a list box and grabbing them from there to kick off the prgs with a command button.
Too much info ..
The problem is I am getting "File Name does not exist" - not so.
It is the same whether I get the filename from the list box and call the it using a variable name or hard code the prg name.
Here's my code:
vFileName = THISFORM.list1.value
vParmName = thisform.text1.value **not using parameter in call yet
*set default to "C:\Users\Denise\Dropbox\B oomerang\T estCode"
*do C:\Users\Denise\Dropbox\Bo omerang\Te stCode\&vF ileName
** error = "test1.prg does not exist
do C:\Users\Denise\Dropbox\Bo omerang\Te stCode\tes t1.prg
** error = "test1.prg Name does not exist
So ... I am loading the prg names and locations into a list box and grabbing them from there to kick off the prgs with a command button.
Too much info ..
The problem is I am getting "File Name does not exist" - not so.
It is the same whether I get the filename from the list box and call the it using a variable name or hard code the prg name.
Here's my code:
vFileName = THISFORM.list1.value
vParmName = thisform.text1.value **not using parameter in call yet
*set default to "C:\Users\Denise\Dropbox\B
*do C:\Users\Denise\Dropbox\Bo
** error = "test1.prg does not exist
do C:\Users\Denise\Dropbox\Bo
** error = "test1.prg Name does not exist
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
When I run any other prgs that doesn't begin with "Test" in the name, it runs.
It also ran when I renamed the test.prg to poo.prg , or anything but test.