clear
clear() updating;
The clear method of the JadeBytes class clears the binary content of the receiver and removes any virtual storage previously allocated to the object. The clear method is operationally identical to the purge method.
A singleFile instance has its associated disk file truncated to zero-length.
The following example shows the use of the clear method.
vars bytes : JadeBytes; begin create bytes; bytes.setContent("JADE".Binary); bytes.clear; write bytes.getLength; // Writes 0 epilog delete bytes; end;