Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
You are going to laugh when you read this easy question!
Message
 
À
15/02/2002 11:16:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00620702
Message ID:
00620703
Vues:
18
Chris;

There are a number of ways to do this. Look in the help file for Config.fpw file. Do a Set Path and place this file in the root directory of each project folder. All will be well :)

Tom

>Hi,
>
>I am still fairly new to VFP. This is one thing that has been bothering me for a while now. Basically for my VFP projects I have a directory for each project. Underneath that I have I have seperate directories for each program file, form, etc. So for example the project I am currently working on is called "acc_pay" So I have these directories... j:\mis\projects\acc_pay has project file and test .exe file. j:\mis\projects\acc_pay\progs for the program files, j:\mis\projects\acc_pay\forms for forms, etc. Anyway, if I set up a prg as a function VFP has problems finding it. For example I have a prg called doform.prg which is a function that returns a value. However when I call it say, llContinue = doform("forms/frmCal.scx") VFP complains that it can't find doform.prg. I have worked around this in two ways. I have set up a procedure file that has a bunch of functions and procedures and in the main.prg I say set proced to progs/procedfile.prg. But sometimes I don't want a
>function in the procedfile.prg - I want it on its own. When thats the case I have to:
>
>set default to j:\mis\projects\acc_pay\progs
>llContinue = doform("j:\mis\projects\acc_pay\forms\frmCal.scx")
>set default to
>
>Notice doing it that way I have to type out the whole path...Anyways, there must be a better way to do this.
>
>I have my default directory set to j:\mis\projects\acc_pay and my search path set to j:\mis\projects\acc_pay. All the other file locations in tools->options->file locations are the defaults.
>
>Thanks,
>Chris
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform