Aller au contenu principal
Version: Next

VP INSERT TABLE COLUMNS

Historique
ReleaseModifications
19 R7Ajout

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

ParamètresTypeDescription
vpAreaNameText->Nom d'objet formulaire zone 4D View Pro
tableNameText->Nom de table
columnInteger->Index dans la table de la colonne de départ à insérer
countText->Number of columns to add (must be >0)
insertAfterInteger->vk table insert before or vk table insert after column
sheetInteger->Numéro d'indice de la feuille (feuille courante si omis)

Description

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:

ConstanteValeurDescription
vk table insert before0Insert column(s) before the column (default if omitted)
vk table insert after1Insert column(s) after the column

This command inserts some columns in the tableName table, NOT in the sheet. The total number of columns of the sheet is not impacted by the command. Data present at the right of the table (if any) are automatically moved right according to the number of added columns.

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

Exemple

See examples for VP INSERT TABLE ROWS and VP SET TABLE COLUMN ATTRIBUTES.

Voir également

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