Function GraSegDestroy() Foundation
Deletes a specific graphic segment.
GraSegDestroy( [<oPS>], <nSegmentID> ) --> lSuccess
The argument <oPS> specifies the presentation space in which a graphic segment is released. If the current window is an XbpCrt window, <oPS> is optional. If it is NIL, the return value of SetAppWindow():presSpace() is used. In all other cases <oPS> is not optional. It must be created using XbpPresSpace():new(). A "Micro PS" cannot be used for this function.
The parameter <nSegmentID> must have a numeric value which identifies the segment to be released. Each graphic segment receives a numeric code as the return value of the function GraSegOpen(). This value is used for <nSegmentID>.
The return value of GraSegDestroy() is .T. (true) when the segment was deleted, otherwise it is .F. (false). If the return value equals .F., the cause of error can be determined by GraError().
A graphic segment is deleted by GraSegDestroy(). This is always recommended when a segment contains extensive calls of graphic primitives and has been displayed. After display, the segment should be deleted if it is not needed again.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.