Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine selected files via Common Dialog
Message
De
10/07/2009 10:11:09
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
10/07/2009 10:02:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
01411386
Message ID:
01411395
Vues:
23
>>I'm trying to parse the "Filename" property of the common dialog control in order to determine the selected files. It appears to contain the folder name as the first part of the string followed by each selected file separated by a space!
>>
>>When I try the solution samples under the ActiveX controls section, there is a "Customize the open dialog box" example. I put a break point in the cmdFIles.Click() code to inspect the .Filename property. The VFP debugger does not reveal any special characters used as the delimiter, however, when the property value is put into the editbox control, it shows a "special" character as a delimiter!!!
>>
>>How is the latter done? Does anyone know what the "trick" is to parse the selected files easily?
>>
>>TIA,
>>Mike
>
>i believe they are all separated out by CHR(0) a quick way to get it into an array is
>
>
>ln_files = ALINES(la_files, .FileName, 1, CHR(0))
>
>
>The first element in the array will be the path the rest will be the file names.

Thanks for the reply Chuck, but, Naomi just beat you out for the stars :)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform