ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / Object functions
  • Adding rows to a Table control populated programmatically
  • Adding records to a Table control based on a data file
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Table,Add (External language)
In french: Table,Ajoute
Adds an element to a Table control.
Remark: To add an element at a specific position, you must use Table,Insert.
Example
// In C
CALLWD("Table,Add,ProductTable=%s",Row);
// In Pascal
CALLWD('Table,Add,ProductTable='+Row);
// In VB
call CALLWD("Table,Add,ProductTable="+Row)
Syntax
Table,Add(<Table control> , <Row value>)
<Table control>: Control name
Name of the Table control to be used.
<Row value>: Character string
Value of the row to add.
Remarks

Adding rows to a Table control populated programmatically

<Row value> is added to the last row of the Table control populated programmatically, even if it is not displayed.
When Table,Add is used, the Table control is not in edit mode: to enter values in the Table control, you must call Screen,Input.

Adding records to a Table control based on a data file

<Row value> is added to the first available row of the Table control or, if no row is available, to the last visible row in the control.
The file is not modified: Call Table,Save to modify the file.
When Table,Add is used, the Table control is not in edit mode: to enter values in the Table control, you must call Screen,Input.
In a Table control based on a data file, Table,Save or Table,Delete must be called after Table,Add before Table,Add (or Table,Insert) can be called again. Otherwise, the content of the row is lost.
If the Table control contains multiple columns, the initialization values must be separated by the value of the [TAB] character (binary code 9):
  • Example in C:
    CALLWD("Table,Add,CustomerTab=SMITH\tJohn");
  • Example in Pascal:
    CALLWD('Table,Add,CustomerTab=SMITH'+#9+'John');
  • Example in VB:
    call CALLWD("Table,Add,CustomerTab=SMITH"+CHR$(9)+"John")
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 07/03/2023

Send a report | Local help