4D v14.3EXECUTE FORMULA |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
EXECUTE FORMULA
|
EXECUTE FORMULA ( statement ) | ||||||||
Parameter | Type | Description | ||||||
statement | String |
![]() |
Code to be executed | |||||
EXECUTE FORMULA executes statement as a line of code. The statement string must be one line. If statement is an empty string, EXECUTE FORMULA does nothing.
The rule of thumb is that if the statement can be executed as a one line method, then it will execute properly. Use EXECUTE FORMULA sparingly, as it slows down execution speed. In a compiled database, the line of code is not compiled. This means that statement will be executed, but it will not have been checked by the compiler at compilation time.
The statement can be in the following:
The formula can include process variables and interprocess variables. However, the statement cannot contain control of flow statements (If, While, etc.), because it must be in one line of code.
See examples for the Command name command.
Product: 4D
Theme: Formulas
Number:
63
Modified: 4D v11 SQL
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)