Previous Topic: getPartialAttachmentContentNext Topic: getResourceName


getResourceAvail

The getResourceAvail function returns the value of the free field of a resource in a resources object.

Syntax

nAvail = getResourceAvail(resourcePath, resourceName)

Arguments

resourcePath (String)

Specifies the path of the resource object.

resourceName (String)

Specifies the name of the resource in the resources object whose free field needs to be returned.

Return Value

nAvail (Int)

This function returns the number of resources available from the specified resource in the resource object found on the specified path.

Example

nAvail = getResourceAvail("/Resources/Locks", "DiskLock");