The lockResource function locks or unlocks one or more resources in a resource object. If you specify a value for resourceName, it resets only that resource. If you leave resourceName empty, it resets all of the resources in the resources object.
Notes:
Syntax
bSuccess = lockResource(resourcePath, resourceName, state)
Arguments
Specifies the path of the resources object.
Specifies the name of the resource in the resources object.
Specifies whether the resource should be locked or unlocked. Set to true for locked and false for unlocked.
Return Value
Returns true if the function succeeds or false if it fails.
Example
bSuccess = lockResource("/Resources/Locks", "InvLock", true);
|
Copyright © 2014 CA.
All rights reserved.
|
|