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

VP INSERT TABLE COLUMNS

História
ReleaseMudanças
18 R6Adicionado

VP INSERT TABLE COLUMNS ( vpAreaName : Text ; tableName : Text ; column : Integer {; count : Integer {; insertAfter : Integer {; sheet : Integer }}} )

ParâmetroTipoDescrição
vpAreaNameText->Nome de objeto formulário área 4D View Pro
tableNameText->Nome da tabela
columnInteger->Índice na tabela da coluna inicial a inserir
countText->Number of columns to add (must be >0)
insertAfterInteger->vk table insert before or vk table insert after column
sheetInteger->Índice da folha (folha atual se omitida)

Descrição

The VP INSERT TABLE COLUMNS command inserts one or count empty column(s) in the specified tableName at the specified column index.

When a column has been inserted with this command, you typically modify its contents using the VP SET TABLE COLUMN ATTRIBUTES command.

In the insertAfter parameter, you can pass one of the following constants to indicate if the column(s) must be inserted before or after the column index:

ParâmetrosValorDescrição
vk table insert before0Insert column(s) before the column (default if omitted)
vk table insert after1Inserir coluna(s) após a coluna

This command inserts some columns in the tableName table, NOT in the sheet. O número total de colunas da folha não é impactado pelo comando. Dados presentes à direita da tabela (se houver) são movidos para a direita automaticamente de acordo com o número de colunas adicionadas.

If tableName does not exist or if there is not enough space in the sheet, nothing happens.

Exemplo

Consulte os exemplos de VP INSERT TABLE ROWS e VP SET TABLE COLUMN ATTRIBUTES.

Veja também

VP INSERT TABLE ROWS
VP REMOVE TABLE COLUMNS
VP SET TABLE COLUMN ATTRIBUTES