Link Search Menu Expand Document

Object.Truncate Method

Explanation Deletes all the elements of the arrayed object.

This method only attaches array objects. This method has no effect on non-arrayed objects.

It works faster than repeating the Delete method for individual array elements.
Unlike calling the Delete method on an array object, the definition is not deleted, so it it possible to recreate the array element with the Insert method later.
Call format obj.Truncate( )
Return value None
Arguments None
Exception None
Example of use
Record arrayRec[5] {
    Number numItem;
    String strItem;
}
arrayRec.Truncate(); 
 
Related item Insert method