Represents a collection of volumes on a NetWare server.
Finds the volume specified by the Volume parameter.
object.Element(
Volume As Variant)
Can be string or integer. The string represents the name of the Volume.The integer represents the number starting from 0 for volume Sys and moves upwards.
Volume.
This example returns name of the volume Barney.
’Get all information about Barney
Set volmgr = CreateObject ("UCX:VolumeMgr")
Set vols = volmgr.Volumes
Set volume = Vols.Element("Barney")
If ( Err.Number=0) then
print "The volume is: "&volume.Name
else
print("Error is " & Err.Description)
endif
Determines whether the collection contains more Volume objects.
object.HasMoreElements()
None.
Boolean. Returns TRUE if the collection contains more Volume objects else returns FALSE.
For more details on HasMoreElements () see Example.
Returns the next volume.
object.Next()
None.
Volume. Returns the next volume, or NULL if no more volumes exist.
see for a sample in Example.
Resets the collection of volume objects.
object.Reset()
None.
None.
This is the first operation while iterating over all the volumes on the default file server.
see for a sample in Example.