Method XbpMetaFile():save() Foundation

Saves graphic data in a metafile.

:save( <cFileName> ) --> lSuccess
<cFileName> is a character expression containing the file name for the metafile where the graphic data is saved. The file name must be specified including the extension. If the file already exists, it is not overwritten and the graphic data is not saved.

This method returns the value .T. (true) if the metafile could be created, otherwise .F. (false) is returned.


The :save() method writes the graphic data of an XbpMetaFile object to a metafile. This method is used only when a metafile is initially created. An existing metafile can only be displayed using Xbase++, and cannot be changed.

To create a metafile, the graphic output must be recorded by an XbpFileDev object. The :metaFile() method of this object generates an XbpMetaFile object that can save the graphic data in a new metafile (see XbpFileDev()).


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.