The getResourceTotal function returns the value of total amount for a particular resource in a resources automation object.
Syntax
nTotal = getResourceTotal(resourcePath, resourceName)
Arguments
Specifies the path of the resource object.
Specifies the name of the resource in the resources object whose total amount needs to be returned.
Return Value
Returns the total number for the specified resource. If the resource does not exist, -1 is returned.
Example
nTotal = getResourceTotal("/Resources/Locks", "DiskLock");
|
Copyright © 2014 CA.
All rights reserved.
|
|