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

VP Get table column index

História
ReleaseMudanças
18 R6Adicionado

VP Get table column index ( vpAreaName : Text ; tableName : Text ; columnName : Text {; sheet : Integer } ) : Integer

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

Descrição

The VP Get table column index command returns the index of the columnName in the tableName.

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

In columnName, pass the name of the table column for which you want to get the index.

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.

If tableName or columnName is not found, the command returns -1.

Exemplo

	// Search the column id according the column name
var $id : Integer
$id:=VP Get table column index($area; $tableName; "Weight price")
// Remove the column by id
VP REMOVE TABLE COLUMNS($area; $tableName; $id)

Veja também

VP CREATE TABLE
VP Find table
VP Get table column attributes
VP SET TABLE COLUMN ATTRIBUTES