Skip to main content
Version: 20 R6

VP FLUSH COMMANDS

VP FLUSH COMMANDS ( vpAreaName : Text )

ParameterTypeDescription
vpAreaNameText->4D View Pro area form object name

Description

The VP FLUSH COMMANDS command immediately executes stored commands and clears the command buffer.

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

In order to increase performance and reduce the number of requests sent, the 4D View Pro commands called by the developer are stored in a command buffer. When called, VP FLUSH COMMANDS executes the commands as a batch when leaving the method and empties the contents of the command buffer.

Example

You want to trace the execution of the commands and empty the command buffer:


VP SET TEXT VALUE(VP Cell("ViewProArea1";10;1);"INVOICE")
VP SET TEXT VALUE(VP Cell("ViewProArea1";10;2);"Invoice date: ")
VP SET TEXT VALUE(VP Cell("ViewProArea1";10;3);"Due date: ")

VP FLUSH COMMANDS(("ViewProArea1")
TRACE