4D v16.3

Is compiled mode

Home

 
4D v16.3
Is compiled mode

Is compiled mode 


 

Is compiled mode {( * )} -> Function result 
Parameter Type   Description
Operator in Returns information about host database
Function result  Boolean in Compiled (True), Interpreted (False)

Is compiled mode tests whether you are running in compiled mode (True) or interpreted mode (False).

The optional * parameter is useful in the case of an architecture using components: it can be used to determine the database (host or component) for which you want to find out the running mode.

  • When the command is called from a component:
    • If the * parameter is passed, the command returns True or False depending on the mode in which the host database is running,
    • If the * parameter is not passed, the command returns True or False depending on the mode in which the component is running.
  • When the command is called from a method of the host database, it returns True or False depending on the mode in which the host database is running.

Example  

In one of your routines, you include debugging code useful only when you are running in interpreted mode, so surround this debugging code with a test that calls Is compiled mode:

  ` ...
 If(Not(Is compiled mode))
  ` Include debugging code here
 End if
  ` ...



See also 

IDLE
Undefined

 
PROPERTIES 

Product: 4D
Theme: 4D Environment
Number: 492

This command can be run in preemptive processes

 
HISTORY 

Modified: 4D v11 SQL

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)