This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
VP RECOMPUTE FORMULAS

VP RECOMPUTE FORMULAS 


 

VP RECOMPUTE FORMULAS ( vpAreaName ) 
Parameter Type   Description
vpAreaName  Text in 4D View Pro area form object name

The VP RECOMPUTE FORMULAS command immediately evaluates all formulas in vpAreaName. By default, 4D automatically computes formulas when they are inserted, imported, or exported. VP RECOMPUTE FORMULAS allows you to force the compute at any time (e.g, in case modifications are made to the formulas or if the formulas contain calls to the database). The command launches the execution of the VP FLUSH COMMANDS command to execute any stored commands and clear the command buffer, then calculates all formulas in the workbook.

In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.

Note: Be sure the  command has not been executed before using VP RECOMPUTE FORMULAS, otherwise the command does nothing.

Example  

To refresh all formulas in the workbook, use this code:

 VP RECOMPUTE FORMULAS("ViewProArea")



See also 

VP RESUME COMPUTING
VP SUSPEND COMPUTING

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language
Number: 905268

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)