VP Get selection
VP Get selection ( vpAreaName : Text {; sheet : Integer } ) : Object
| Parâmetro | Tipo | Descrição | ||
|---|---|---|---|---|
| vpAreaName | Text | -> | Nome da área 4D View Pro no formulário | |
| sheet | Integer | -> | Índice da folha (folha atual se omitida) | |
| Resultados | Object | <- | Objeto intervalo de células |
Descrição
O comando VP Get selection retorna um novo objeto de intervalo que faz referência às células selecionadas atualmente.
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 recuperará as coordenadas de todas as células na seleção atual:
$currentSelection:=VP Get selection("myVPArea")
//returns a range object containing:
//$currentSelection.ranges[0].column=5
//$currentSelection.ranges[0].columnCount=2
//$currentSelection.ranges[0].row=8
//$currentSelection.ranges[0].rowCount=6
Veja também
VP ADD SELECTION
VP Get active cell
VP SET ACTIVE CELL
VP SET SELECTION
VP SHOW CELL