Aller au contenu principal
Version: 20 R5 BETA

VP SUSPEND COMPUTING

VP SUSPEND COMPUTING ( vpAreaName : Text )

ParamètresTypeDescription
vpAreaNameText->Nom d'objet formulaire zone 4D View Pro

Description

The VP SUSPEND COMPUTING command stops the calculation of all formulas in vpAreaName. Cette commande est utile lorsque vous souhaitez suspendre les calculs dans cette zone 4D View Pro, afin de modifier manuellement les formules sans générer d'erreurs avant la fin de vos modifications.

La commande met en pause les calculs dans 4D View Pro. Formulas that have already been calculated remain unchanged, however any formulas added after VP SUSPEND COMPUTING command is executed are not calculated.

In vpAreaName, pass the name of the 4D View Pro area. Si vous passez un nom inexistant, une erreur est retournée.

Le service de calcul de 4D View Pro maintient un compteur d'actions de suspension/reprise. Therefore, each execution of VP SUSPEND COMPUTING command must be balanced by a corresponding execution of the VP RESUME COMPUTING command. Toute formule modifiée durant la phase de suspension des calculs sera recalculée lorsque la commande sera exécutée.

Exemple

Vous avez ajouté deux boutons au formulaire afin que l'utilisateur puisse suspendre/reprendre les calculs :

Le code du bouton Suspend Computing :

 //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

Voir également

VP RECOMPUTE FORMULAS
VP RESUME COMPUTING