SAVE( ) method
Return type:
Applies to:
SAVE ( mode , file stream stream-handle memptr longchar )A character expression that evaluates to one of the following: “FILE”, “STREAM”, “STREAM-HANDLE”, “MEMPTR”, or “LONGCHAR”. The mode indicates whether the XML target is a file, a stream, a MEMPTR, or a LONGCHAR variable.A character expression that represents the absolute or relative pathname of a new file created to save the XML text. If you specify a relative pathname, it is relative to the current working directory of the underlying operating system’s file system. If a file with the specified name already exists, the AVM verifies that the file is writeable and overwrites the file.A character expression that represents the name of an ABL stream. If stream is "", the AVM saves the document to the ABL session unnamed stream.A MEMPTR variable to contain the saved XML text in memory. The SAVE method allocates the required amount of memory and sets the size of the variable. You must release the memory later with a SET-SIZE( ) = 0.If the LONGCHAR variable’s code page is fixed (that is, set using the FIX-CODEPAGE statement) and the fixed code page is not compatible with the encoding specified in the XML document’s ENCODING attribute, the SAVE( ) method returns an error and the XML document is not saved to the LONGCHAR.If the LONGCHAR variable’s code page is not fixed, the AVM converts from the XML document’s codepage to the -cpinternal code page and saves it to the LONGCHAR variable.
See also:
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |