Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi-file getfile()
Message
 
À
24/05/2005 16:17:40
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01017251
Message ID:
01017273
Vues:
19
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).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform