4D View v16PV SAVE DOCUMENT |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v16
PV SAVE DOCUMENT
PV SAVE DOCUMENT
The PV SAVE DOCUMENT command saves the 4D View area as a disk document. Pass in document the name and the full access path of the document to save. If you pass an empty string in this parameter, a standard save file dialog box will appear and the user can select the name and the path of the document. If the user clicks the Cancel button, the document is not saved. The template parameter allows you to set whether the document should be saved as a standard document (template=0) or as a template (template=1). For more information on templates, refer to the PV OPEN DOCUMENT command description. If a document of the same name exists in the indicated area, PV SAVE DOCUMENT may overwrite the existing file depending on the value of the erase parameter. In this event, if erase is set to 0, error #26 is returned: "This document already exists." If the name was set by the user (empty string in document), the operating system will display the usual "This document already exists" confirmation regardless of the erase value. If the target document is used by another 4D View area, PV SAVE DOCUMENT returns an error if it is a template or not. Use the PV Document format constants theme to define the format parameter, which allows you to set the format in which to save the document:
After opening an external document with the PV OPEN DOCUMENT command, we will first install a callback method detecting any change to the active cell. C_BOOLEAN(FlagModifiedArea) The code for the EventMethod project method is as follows : C_LONGINT($1) `4D View area reference If the document was modified, the user is then able to save the modified document and name it as desired: If(FlagModifiedArea) `Document modified? The system variable OK is set to 1 if the document has been saved correctly.
See also
|
PROPERTIES
Product: 4D View HISTORY
Created: 4D View 6.8 ARTICLE USAGE
4D View Language ( 4D View v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||