Saltar para o conteúdo principal
Versão: Próximo

VP Get column attributes

História
ReleaseMudanças
18 R6Adicionado

VP Get table column attributes ( vpAreaName : Text ; tableName : Text ; column : Integer {; sheet : Integer } ) : Object

ParâmetroTipoDescrição
vpAreaNameText->Nome de objeto formulário área 4D View Pro
tableNameText->Nome da tabela
columnInteger->Índice da coluna na tabela
sheetInteger->Índice da folha (folha atual se omitida)
ResultadosObject<-Atributos da coluna

Descrição

The VP Get table column attributes command returns the current attributes of the specified column in the tableName.

Em vpAreaName, passe o nome da área 4D View Pro.

In sheet, pass the index of the target sheet. Se nenhum indice for especcificado ou se passar -1, o comando se aplica a folha atual.

A indexação começa em 0.

The command returns an object describing the current attributes of the column:

PropriedadeTipoDescrição
dataFieldtextNome da propriedade da coluna da tabela no contexto de dados. Não devolvido se a tabela for apresentada automaticamente
nametextNome da coluna da tabela.
footerTexttextValor do rodapé da coluna.
footerFormulatextFórmula do rodapé da coluna.
filterButtonVisiblebooleanTrue se o botão de filtro da coluna da tabela for exibido, senão False

If tableName is not found or if column index is higher than the number of columns, the command returns null.

Exemplo

var $attributes : Object
$attributes:=VP Get table column attributes("ViewProArea"; $tableName; 1)
If ($attributes.dataField#"")
...
End if

Veja também

VP CREATE TABLE
VP Find table
VP SET TABLE COLUMN ATTRIBUTES
VP RESIZE TABLE