Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getfile from a unique directory
Message
De
27/07/2011 18:44:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01519398
Message ID:
01519402
Vues:
47
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform