Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: Khurram Tahir
  Where is Khurram Tahir?
 Karachi
 Pakistan
 Khurram Tahir
 Tags
Subject: RE: Build Project and Adir() with variable
Thread ID: 209218 Message ID: 209251 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Projects and Design
Date: Friday, December 26, 2008 11:28:06 AM         
   


> Rindxlfl.Prg
>
>
gnDbfnumber = ADIR(FreeTable, '*.DBF')  && Create array

>
> If code like the following
>
>
Fp99 = 'D:\OMMNU\P'
> 
> gnDbfnumber = ADIR(FreeTable, '&Fp99\*.DBF')  && Create array
> 
> BUILD PROJECT rindxlfl FROM rindxlfl

>
> Give following message
>
> q. How can i solve this i can not avoid Fp99 variable because program is running on the network and on the client Fp99 variable value is 'N:\OMMNU\P'
>

Your description sounds as if there might be a better way to do what seem to want to do, as Koen pointed out.
You can however add missing files to a project programamtically, e.g.:

_vfp.ActiveProject.Files.Add(m.lcYourFile)




hth
-Stefan

ENTIRE THREAD

Build Project and Adir() with variable Posted by Khurram Tahir @ 12/26/2008 7:44:15 AM
RE: Build Project and Adir() with variable Posted by Anil Sharma @ 12/26/2008 9:06:31 AM
RE: Build Project and Adir() with variable Posted by Koen Piller @ 12/26/2008 9:54:04 AM
RE: Build Project and Adir() with variable Posted by Stefan Wuebbe @ 12/26/2008 11:28:06 AM
RE: Build Project and Adir() with variable Posted by tushar @ 12/26/2008 1:00:46 PM