>Hello All,
>
>The getfile() function is handy in coding but is there any way to force it to initially look at a specific directory?
Hi There
You can also use 'Set default' to preset starting directory.
Here is my wrapper function accepting start dir and also
targeted file extensions. Default directory is restored within function.
function svgetfile
lparameters cPath,cExt
local cPath,cExt,sv_path,cFile
sv_path=allt(sys(5)) + allt(sys(2003))
if !directory(cPath)
wait wind 'Directory not found'
return ''
endif
set default to (cPath)
cFile=getfile(iif(empty(cExt),'',cExt))
set default to (sv_path)
return cFile
Rgds++