Link to home
Start Free TrialLog in
Avatar of Dee
DeeFlag for United States of America

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\Boomerang\TestCode"
      


      *do C:\Users\Denise\Dropbox\Boomerang\TestCode\&vFileName
      ** error = "test1.prg does not exist

      do C:\Users\Denise\Dropbox\Boomerang\TestCode\test1.prg
      ** error = "test1.prg Name does not exist
Avatar of Dee
Dee
Flag of United States of America image

ASKER

I may have this solved but it still is baffling ..

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.
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial