Save method: Tree class
Syntax
Save()
Description
The Save method writes any changes to the tree executing the method to the database. It also performs audits.
The Save method can be used only on an open tree, not on a closed tree. This means you must have opened the tree with the Open method before you can save it.
The tree object remains open after executing Save. You must execute the Close method on the object before it is closed and the memory freed.
This method returns an optional Boolean value: True if the tree was saved with no errors, False if there are one or more errors.
Note:
If you’re calling the Tree API from an Application Engine program, the data won’t actually be committed to the database until the Application Engine program performs a COMMIT.
Parameters
None.
Returns
An integer: 0 if save successfully.