4D v13.4Executing methods |
||
|
4D v13.4
Executing methods
Executing methods
Project methods written in your application are usually called automatically during the use of the application via menu commands, buttons, other methods, and so on. As for database methods, they are executed in relation to specific events that occur in the application. However, for testing and debugging purposes, 4D lets you manually execute project methods and certain database methods in Design mode. In this case, it is possible to run the method in a new process and/or directly in Debug mode, in order to check its execution step by step. Moreover, with 4D Server, you can indicate whether 4D Server should execute a project method on the server machine or on other clients’ machines. You can execute methods in two ways:
Each Method editor window has a button that can be used to run the current method. Using the menu associated with this button, you can choose the type of execution desired:
This button is only active for project methods and for the following database methods:
The following execution modes are available:
When you select the Method... command of the Run menu, displays the Execute Method dialog box: This dialog box lists all the project methods of the database, including shared project methods of components. On the other hand, project methods that have been declared invisible will not appear. To execute a project method, simply select its name in the list and click on Execute. To run a method step by step in Debug mode, click on Debug. For more information about the 4D debugger, refer to the Debugging chapter the 4D Language Reference manual. 4D Server Note: The Debug option is not available if you execute the method on the server. If you check the New Process check box, the method you selected executes in another process. If the method is performing a time-consuming task such as printing a large set of records, you can continue to work with your database, adding records to a table, creating a graph to display data, and so on. For more information about processes, refer to Processes the 4D Language Reference manual. 4D Server Note:
|
PROPERTIES
Product: 4D TAGS Procédures stockées*** |