4D v20WP TABLE DELETE COLUMNS |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20
WP TABLE DELETE COLUMNS
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WP TABLE DELETE COLUMNS ( targetObj ) | ( tableRef ; colNumber {; numColumns} ) | ||||||||
| Parameter | Type | Description | ||||||
| targetObj | Object |
|
Range or element or 4D Write Pro document | |||||
| tableRef | Object |
|
Table reference | |||||
| colNumber | Longint |
|
Column number | |||||
| numColumns | Longint |
|
Number of columns to delete (default value = 1) | |||||
The WP TABLE DELETE COLUMNS command removes one or several column(s) from a 4D Write table.
This command supports two syntaxes:
Removing all columns of a table will remove the entire table.
You want to delete one column from the Invoice table. This code:
C_OBJECT($table)
$table:=WP Get element by ID(WParea;"Invoice") //retrieve "Invoice" table
WP TABLE DELETE COLUMNS($table;2;1) //remove the second column
Will remove the column from the correct location:

Product: 4D
Theme: 4D Write Pro Language
Number:
1694
Created: 4D v18
4D Write Pro Reference ( 4D v20)
Add a comment