database publishing GASSENHUBER DATAform DBP  
 
   
First page  <<  >> Last page
First page  <<  >> Last page
IV. Message system 119 Developer handbook DATAformXTension © 1992-2004 www.gassenhuber.de CLOSE FROM: Benutzer TO: DATAFORM SUBJECT: CLOSE DFTEXT: 1 The command closes the current (top level) QuarkXPress document. DFTEXT: 0 Closes the document without saving it. DFTEXT: 1 Saves the document and closes it. Only documents, which have been saved once, can be saved. Newly created documents cannot be saved with this command. (For saving documents cf. the functional object *T109.) If no error occurs DATAformXTension responds with: FROM: DATAFORM TO: Benutzer SUBJECT: CLOSE DFTEXT: 0 DOCUMENT: RESULT: 0, Error number: 0 CLOSE message in the DATAform 4D interface The CLOSE command is transferred to DX_Message as follows: $err:=DX_Message ($Cmd;$Save;$XPDoc;$XPFolder;$Timeout;=>T1) $Cmd "CLOSE" $Save "0" = do not save; "1" = save $XPDoc Is always ""; no QuarkXPress document file is called here. $XPFolder The valid path to the QuarkXPress folder $Timeout Timeout e.g. after 3 seconds of waiting time T1 Timeout text and variable for the response error text. Example close without save: $err:=DX_Message ("CLOSE";"0";"";$XPFolder;3;=>T1) Example close with save: $err:=DX_Message ("CLOSE";"1";"";$XPFolder;3;=>T1) DX_Message creates a message file in the folder DATAform/Eingang, waits for the response of DATAformXTension and processes it. If the document was closed, $err will become Zero.