| 4D v18WP TABLE DELETE ROWS | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v18
 WP TABLE DELETE ROWS 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WP TABLE DELETE ROWS ( targetObj ) | ( tableRef ; rowNumber {; numRows} ) | ||||||||
| Parameter | Type | Description | ||||||
| targetObj | Object |   | Range or element or 4D Write Pro document | |||||
| tableRef | Object |   | Table reference | |||||
| rowNumber | Longint |   | Row index number | |||||
| numRows | Longint |   | Number of rows to delete (default value = 1) | |||||
The WP TABLE DELETE ROWS command removes one or several row(s) from a 4D Write Pro table.
This command supports two syntaxes:
Removing all rows of a table will remove the entire table.
You want to delete two rows from the Invoice table. This code:
 C_OBJECT($table)
 
 $table:=WP Get element by ID(WParea;"Invoice") //retrieve "Invoice" table
 
 WP TABLE DELETE ROWS($table;3;2) //remove 2 rows after 2nd row (3rd position)Will remove the two rows from the correct location:

	Product:  4D
	Theme:  4D Write Pro Language
	Number:  
        1693
        
        
        
	

	Created:  4D v18
	4D Write Pro Reference ( 4D v18)
	
	
	
 Add a comment
Add a comment