Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DIR?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: DIR?
Divers
Thread ID:
00323604
Message ID:
00323722
Vues:
20
>>>And let's not forget the all-important Scripting.FileSystemObject!!!!! Getting files from a Files or SubFolders collection is easy...
>>
>>I thought that was "...increasingly popular and all-important...". That's what my WSH advertising campaign manual says< g >.
>>
>
>< BLUSH > You are of course correct. I'm so ashamed. I'll put a SET LIBRARY TO FOXTOOLS ADDITIVE in the mainline of my next app, I promise!

You don't currently? Ed! I'm ashamed.< g >

>>Oh certainly it is. But in this case it may be the equivalent of using a low yield thermo-nuclear device to swat a fly.:-)
>
>GREAT IDEA. It's easier to hit the fly that way than with an AP round from a 16" naval rifle!

Well, provided the delivery is OK, it certainly is effective.

In this instance, Ed, I think the utility of the WSH can best be shown in how it can agument the listing, rather than just generating it. As we all know, one thing that the WSH doesn’t do is allow you to filter the files collection. This you have to do yourself.Using ADIR() in conjunction with the WSH, would allow you to call the FileSystemObject's GetFile() method to get things like the actual case of the file name, rather than ADIR()' all upper, or the file type, such as application, text file, etc. You could even setup the list so that a context menu could invoke a dialog much like the properties from the Explorer. Of course, this is all dependent on what you want to do.

See WSH Advertising Manual Section title, "How to deal with the short comings of the WSH"
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform