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

Home

 
4D v19
VP SUSPEND COMPUTING

VP SUSPEND COMPUTING 


 

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

The VP SUSPEND COMPUTING command stops the calculation of all formulas in vpAreaName. This command is useful when you want to suspend calculations in this 4D View Pro area so you can manually make modifications to formulas without encountering errors before you've finished making the changes.

The command pauses the calculation service in 4D View Pro. Formulas that have already been calculated remain unchanged, however any formulas added after VP SUSPEND COMPUTING is executed are not calculated. 

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: The 4D View Pro calculation service maintains a counter of suspend/resume actions. Therefore, each execution of VP SUSPEND COMPUTING must be balanced by a corresponding execution of the command. Any formula impacted by modifications made while calculations are suspended will be recalculated when the command is executed.

Example  

You've added two buttons to the form so that the user can suspend/resume calculations: 

The Suspend Computing button code:

  //pause calculations while users enter information
 If(FORM Event.code=On Clicked)
 
    VP SUSPEND COMPUTING("ViewProArea")
 
 End if

 

 If(FORM Event.code=On Clicked)
 
    VP RESUME COMPUTING("ViewProArea")
 
 End if



See also 

VP RECOMPUTE FORMULAS
VP RESUME COMPUTING

 
PROPERTIES 

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

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v18 R4

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)