Great, thanks, in VFPX there is a project and one of the classes is.....
VFP2C32 2.0.0.9
GetOpenFileName
Creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to be opened.
GetOpenFileName([nFlags [, cFileFilters [, cFileName [, cInitialDirectory [, cDialogTitle [, nFlagsEx [, cArrayName [, cCallbackFunc]]]]]]]])
Parameters
nFlags (optional, additive)
if you omit nFlags parameter or pass 0 these flags are used:
OFN_EXPLORER | OFN_NOCHANGEDIR | OFN_NODEREFERENCELINKS | OFN_FILEMUSTEXIST | OFN_DONTADDTORECENT
OFN_NOCHANGEDIR !
Thanks Naomi
>>Hello all. Is there a way to get a file name but just for one directori? My user should be able to get any image from my Icons directory and none other, so they should not be able to browse the file system.
>
>I don't believe it's available with GetFile. There may be other classes or ActiveX available to get the file from the directory only, check CommonDialog, for example.
>
>BTW, check
Re: Restricting GETFILE() & PUTFILE() in VFP6.0 Thread #
948721, but this thread confirms what I said.