4D v13.4QUIT 4D |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
QUIT 4D
QUIT 4D
The QUIT 4D command exits the current 4D application and returns to the Desktop. The command processing is different whether it is executed on 4D or on 4D Server. After you call QUIT 4D, the current process stops its execution, then 4D acts as follows:
If the user is performing data entry, the records will be cancelled and not saved. If you want to let the user save data entry modifications made in the current open windows, you can use interprocess communication to signal all the other user processes that the database is going to be exited. To do so, you can adopt two strategies:
A third strategy is also possible. Before calling QUIT 4D, you check whether a window will need validation; if that is the case, you ask the user to validate or cancel these windows and then to choose Quit again. However, from a user interface standpoint, the first two strategies are preferable. Note: The time parameter cannot be used with 4D. The QUIT 4D command can be executed on the server machine, in a stored procedure. In this case, it accepts the time optional parameter. Unlike 4D, the processing of QUIT 4D by 4D Server is asynchronous: the method where the command is called is not interrupted after is has been executed. If there is an On Server Shutdown Database Method, it is executed after the delay set by the time parameter, or after all clients have disconnected, depending on your parameters. The action of the QUIT 4D command used in a stored procedure is the same as the one for the Quit command of the 4D Server File menu: it causes a dialog box to appear on each client machine indicating that the server is about to quit. The project method listed here is associated with the Quit or Exit menu item in the File menu. ` M_FILE_QUIT Project Method |
PROPERTIES
Product: 4D
INDEX HISTORY
Modified: 4D v6.8 SEE ALSO |
||||||||||||||||||||||||||||||||||||||||||||||||||||||