Previous Topic: setProcessProgressNext Topic: today


setResourceTotal

The setResourceTotal function sets the total amount of resources with the resource name "resName" to the "amount" specified in the resource object on the path "resPath".

Notes:

Syntax

bSuccess = setResourceTotal(resPath, resName, amount)

Arguments

resPath (String)

Specifies the path of the resource object.

resName (String)

Specifies the resource name that you set in the resources object.

amount (Int)

Specifies the total amount that you set on the resource.

Return Value

bSuccess (Boolean)

Returns true if the function is successful or false if the function fails.

Example

bSuccess1=setResourceTotal(Process.ResObjName, Process.ResName_1, 1);
bSuccess2=setResourceTotal(Process.ResObjName, Process.ResName_3, 3);