>I have a vfp program which uses about 30 files - when run it brings up an error index does not match file
>
>When I connect into this machine remotely via Logmein and run the program I do not get the error and the program runs ok
>
>
>
>How can I find out which file the system is referring to - I would guess its referring to a file on the c: drive hence it runs on other machines but why is it OK when I run it remotely?
>
>>Has anyone heard of a fault like this before?
I don't have an idea about the reason. To find out the file, using it locally (so you would get the error) you could try opening all data files in a loop (they are all under a given folder I guess). At least finding the file in question would be a start for solving. Something like:
local lcDir, ix
local array laData[1]
lcDir = getdir()
for ix = 1 to adir(laData, addbs(m.lcDir)+'*.dbf')
on error ? laData[m.ix], ' ..... Faulty'
use (addbs(m.lcDir)+laData[m.ix,1])
use
on error
endfor