Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to GETFILE() more than one file ?
Message
De
19/06/2002 02:32:14
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00669997
Message ID:
00670024
Vues:
23
>I am currently using getfile to let the user select a file. I would like to let him select several files (like when you add an attachment to an email).
>Any idea ?

Use Common Dialog Control instead. Something like this:
THISFORM.OleControl1.Flags = 0x8200 && Explorer-like, multiple selections
THISFORM.OleControl1.Filter = "All files (*.*)|*.*"
THISFORM.OleControl1.FileName = ""
THISFORM.OleControl1.ShowOpen()
m.lcResult = STRTRAN(THISFORM.OleControl1.FileName,CHR(0),CHR(13))
If there is more than one selected file, the first line in m.lcResult is the path, the other lines are the selected filenames; otherwise you'll get a single full path filename.
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform