>Hi Brenda,
>
>Yes u need to save default folder and reset it afterwards.
Huh? Getfile() does
not change directory in my versions of vfp: 7 and 9.
So, IMO, no wrapper is required.
>Here is my wrapper function handling this isuue.
>Next to saving current folder it also lets u start search starting from particular path.
>
>
>function svgetfile
> lparameters cPath,cExt
> local sv_path,aa
> sv_path=allt(sys(5)) + allt(sys(2003))
> if directory(cPath)
> set default to (cPath)
> endif
> aa=getfile(iif(empty(cExt),'',cExt))
> set default to (sv_path)
> return aa
>
>
>
>Rgds++
>Sergio
>
>>When I issue a GETFILE() and the client navigates to a new folder, does that have any affect on my VFP application? Do I need to save something prior to the GETFILE() and then reset it?
>>
>>Brenda
Groet,
Peter de Valença
Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.