Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Restricting GETFILE() & PUTFILE() in VFP6.0
Message
From
06/10/2004 03:12:39
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00948721
Message ID:
00949040
Views:
21
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)
>      && Your code here
>   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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform