reset_resource_object

Reset all resource memory of the P2Resource object that is linked to a P2Project object and a P2Schedule object.
 
This function clears all the memory that was used at the current P2Resource object and makes the object ready for use again. It deletes all resources, both the availability and the resource demand of the activities of the project. The pointer to the P2Project and P2Schedule objects are not deleted. An alternative to this method is to delete the resource object and create a new one using the P2Resource:new function.
 
Note: This function will often be used in combination with the P2Schedule:reset_schedule_object function. However, when using the P2Resource:reset_resource_object function, only the resources are deleted and not the project activity information.
 
Parameters: 

None

Learn More: 

Step inside PMKC.

Example: 
function ()
        io.write('\n')
end
Class: 
P2Resource