Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 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: 209257 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 Category: Projects and Design
Date: Friday, December 26, 2008 1:00:46 PM         
   


> 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'
>
>

Anil has given the answer that you require. However, instead of
gnDbfnumber = ADIR(FreeTable, '&Fp99\*.DBF')

you can use
gnDbfnumber = ADIR(FreeTable, ADDBS(Fp99)+'*.DBF')

so you don't need macro substitution.

Regards
Tushar

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