VP Get table column index
História
Release | Mudanças |
---|---|
18 R6 | Adicionado |
VP Get table column index ( vpAreaName : Text ; tableName : Text ; columnName : Text {; sheet : Integer } ) : Integer
Parâmetro | Tipo | Descrição | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nome de objeto formulário área 4D View Pro | |
tableName | Text | -> | Nome da tabela | |
columnName | Text | -> | Nome da coluna da tabela | |
sheet | Integer | -> | Índice da folha (folha atual se omitida) | |
Resultados | Integer | <- | Í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