Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-file getfile()
Message
 
To
24/05/2005 16:17:40
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01017251
Message ID:
01017273
Views:
18
Here's an runnable example of how to do that:
#DEFINE CDLOFNALLOWMULTISELECT 512
#DEFINE CDLOFNFILEMUSTEXIST 4096

LOCAL loDialogContainer

loDialogContainer = NewObject("form")
loDialogContainer.AddObject("ComDialog","oleControl","mscomdlg.commondialog")
loDialogContainer.ComDialog.Filter = "All Files (*.*)|*.*"
loDialogContainer.ComDialog.Flags = CDLOFNALLOWMULTISELECT + CDLOFNFILEMUSTEXIST
loDialogContainer.ComDialog.ShowOpen()

? "Selected FILE(s): " + loDialogContainer.ComDialog.FileName
>Thanks Fred.
>
>
>>>Hi All
>>>
>>>Is there a way to have getfile() pick more that one file at a time?
>>>
>>>Thanks.
>>
>>Use the CommonDialog ActiveX control and set the Flags to 0x200 (MultiSelect).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform