Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Possible
Divers
Thread ID:
00608666
Message ID:
00608666
Vues:
52
I am using VFP 7.0 SP1 and just came accross a pathing problem with VFP 7.0 that doesn't occur in 6.0.

We have three main servers, one for source code (I:), test data (H:) and production data (F:). I normally use the following code in my main *.prg so that I can run a program directly from development without compiling between each change:

IF SYS(5) = 'I:'
____SET DEFA TO 'I: \ DEVELOPMENT'
____SET PATH TO 'DATA, LIBS, REPORTS, PROGS, H:'
ELSE
____SET DEFA TO 'F:'
____SET PATH TO
ENDIF

Later in my project I open [H: \ SUBDIR \ MYTABLE.DBF] with the following code:

USE \ SUBDIR \ MYTABLE

Which works fine in VFP 6.0. I've used this in hundreds of programs. It will not work in VFP 7.0 unless I exclude the first backslash:

USE SUBDIR \ MYTABLE

It doesn't matter if I set path to [H:] or [H:\] it still doesn't like the first backslash. Am I missing something? I can't go back and change every occurence of this so my legacy code will run in VFP 7.0.

TIA,
Mike Coop
MIU - Data Analyst III
Kemper a Unitrin Business
(904) 245-5949
mcoop@eKemper.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform