Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Common Dialog - is there a way to return Path and lis
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00299346
Message ID:
00299362
Vues:
33
>Hi everyone,
>
>I wrote in my previous message about the problem, I found, using MS Common Dlg. For multiple selection it returns string like:
>DirName File1 File2...
>So, for obtaining only list of files I parse the string and start from the second element. However, if a directory name contains a space within it, this technique doesn' work.
>
>Help me, please.

Does the directory name contain a \ ? If so, you could use this as a starting place...

x= "c:\program files\ file1.xxx file2.xxx"

filedir = SUBSTR(x,1,RAT('\',x))
filelist = SUBSTR(x,filedir,'')

I didn't test this, but you should get the gist...

HTH
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform