VP Get active cell
VP Get active cell ( vpAreaName : Text { ; sheet : Integer } ) : Object
| Parâmetro | Tipo | Descrição | ||
|---|---|---|---|---|
| vpAreaName | Text | -> | Nome de objeto formulário área 4D View Pro | |
| sheet | Integer | -> | Índice da folha (folha atual se omitida) | |
| Resultados | Object | <- | Objeto intervalo de uma única célula | 
Descrição
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).
Em vpAreaName, passe o nome da área 4D View Pro. Se passar um nome que não existe, é devolvido um erro.
No parâmetro opcional sheet, pode designar uma folha específica onde o intervalo será definido (a contagem começa em 0). Se omitido ou se você passar vk current sheet, a planilha atual será usada.
Exemplo
O código seguinte irá obter as coordenadas da célula ativa:
$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
Veja também
VP ADD SELECTION
VP Get selection
VP RESET SELECTION
VP SET ACTIVE CELL
VP SET SELECTION
VP SHOW CELL