Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PC has VFP fault but when connected by Logmein it is OK
Message
De
26/01/2017 08:19:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01647008
Message ID:
01647013
Vues:
60
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform