*++ *[2007/02/22 09:10:05] dragan - for oddball paths, set path to available paths in the project. *[2007/02/23 16:00:53] dragan - no need to have the pjx open *[2007/02/26 10:48:59] dragan - added the parameter *-- LPARAMETERS tcPjx DO CASE CASE _vfp.Projects.Count>0 oPjx=_vfp.Projects[1] lcPjx=oPjx.Name CASE PCOUNT()>0 lcPjx=DEFAULTEXT(tcPjx, "pjx") OTHERWISE lcPjx= (Getfile("pjx")) ENDCASE If !Empty(lcPjx) Use (lcPjx) In 0 Alias pjx Shared Again Noupdate Select Distinct PADR(Justpath(Name),100) ; FROM pjx ; INTO Array aPaths For i= 1 To Alen(aPaths) Do addpath With aPaths[i] Endfor Use In Select("pjx") Endif proc addpath lparam cPath try cPath=fullp(addbs(cPath)) if dire(cPath) if atc(cPath+',', set('path')+',')=0 cPath=set('path')+','+cPath set path to (cPath) endif endif catch to oEx assert .f. message oEx.message endtry