Aller au contenu principal
Version: Next

VP Get active cell

VP Get active cell ( vpAreaName : Text { ; sheet : Integer } ) : Object

ParamètresTypeDescription
vpAreaNameText->Nom d'objet formulaire zone 4D View Pro
sheetInteger->Numéro d'indice de la feuille (feuille courante si omis)
RésultatObject<-Objet plage d'une seule cellule

Description

The VP Get active cell command returns a new range object referencing the cell which has the focus and where new data will be entered (the active cell).

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

In the optional sheet parameter, you can designate a specific spreadsheet where the range will be defined (counting begins at 0). If omitted or if you pass vk current sheet, the current spreadsheet is used.

Exemple

Le code suivant récupèrera les coordonnées de la cellule active :

$activeCell:=VP Get active cell("myVPArea")

//returns a range object containing:
//$activeCell.ranges[0].column=3
//$activeCell.ranges[0].row=4
//$activeCell.ranges[0].sheet=0

Voir également

VP ADD SELECTION
VP Get selection
VP RESET SELECTION
VP SET ACTIVE CELL
VP SET SELECTION
VP SHOW CELL