ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Table,Add (External language)
In french: Table,Ajoute
Adds an element to a Table control.
Note: To add an element at a specific position, use the Table,Insert function.
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.
After function Table,Add, the Table field is not in edit: to enter in the Table field, call function 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: you need to execute function Table,Save to modify the file.
After function Table,Add, the Table field is not in input mode: to enter in the Table field, 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: 09/30/2024

Send a report | Local help