Saltar para o conteúdo principal
Version: v19

On VP Ready

CodePode ser chamado porDefinição
9Área 4D View ProThe loading of the 4D View Pro area is complete


This event is generated when the 4D View Pro area loading is complete.

You need to use this event to write initialization code for the area. Any 4D View Pro area initialization code, for loading or reading values from or in the area, must be located in the On VP Ready form event of the area. This form event is triggered once the area loading is complete. Testing this event makes you sure that the code will be executed in a valid context. An error is returned if a 4D View Pro command is called before the On VP Ready form event is generated.

4D View Pro areas are loaded asynchronously in 4D forms. It means that the standard On load form event cannot be used for 4D View Pro initialization code, since it could be executed before the loading of the area is complete. Em VP Ready é sempre gerado após On load.