found an example!!
Take the Drives collection of the FileSystemObject. It is a collection of the Drive object and yet this Drives collection has no add,remove methods only Count and Item properties. In other words it is read-only and you can go:
This is how I want to able to make my collection. (no add or remove method)Code:For each Drive in Drives msgbox Drive.AvailableSpace Next
Thanks in advance
Shaun




Reply With Quote