Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PC has VFP fault but when connected by Logmein it is OK
Message
From
26/01/2017 08:19:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01647008
Message ID:
01647013
Views:
59
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform