Hi Borislav,
The problem I'm having is that I'm getting C0000005 errors one some machines if the user tries to select a directory. I want to restrict the user to a specified directory, but I want to give them the PUTFILE() dialog.
Regards,
Gavin.
>Hi Gavin,
>If I understood You right, You want the user to save file, but You decide from which dir You import the file. Am I right?
>If so, You can use the GETFILE() or PUTFILE(), after that You get just a file name & make the fullpath to it, i.e.
>
>
> user_f_name = GETFILE()
> IF .NOT. EMPTY(user_f_name)
> my_file = folder_of_your_own + JUSTFNAME(user_f_name)
>
> ENDIF
>
>
>
>
>>Hi All,
>>
>>Is it possible to restrict GETFILE() & PUTFILE() so that the default directory can't be changed? E.g I want to restrict a user to exporting files to E:\APPS\OUTPUTFILES, but I still want the GETFILE() dialog to appear so that they can name their file, but not choose another directory. Similarly I want to restrict users to importing files from a certain directory. Is this possible in VFP6?
>>
>>Hope this makes sense
>>
>>Thanks,
>>Gavin.