KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Setting an active cell on load of the 4D View Pro Area
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: April 15, 2020

If you have a 4D View Pro Area in your form and would like to set a particular active cell when the area is loaded, below is a way you could do that.

If (Form event code=On VP Ready)
   VP SET ACTIVE CELL(VP CELL("ViewProArea";5;8)) // Cell F9 (column 5, row 8)
End if

This example code would be placed in the View Pro Area object method. When the area is loaded, the active cell will become Cell F9. Note that it utilizes the On VP Ready form event, so make sure that is checked on in the property list.