Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to GETFILE() more than one file ?
Message
From
19/06/2002 02:32:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00669997
Message ID:
00670024
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform