AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Gestión de lenguajes externos / Funciones Objeto
  • Adding rows to a Table control populated programmatically
  • Adding records to a Table control based on a data file
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Adds an element to a Table control.
Note: To add an element at a specific position, use the Table,Insert function.
Ejemplo
// In C
CALLWD("Table,Add,ProductTable=%s",Row);
// In Pascal
CALLWD('Table,Add,ProductTable='+Row);
// In VB
call CALLWD("Table,Add,ProductTable="+Row)
Sintaxis
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.
Observaciones

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")
Versión mínima requerida
  • Versión 14
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

Señalar un error o enviar una sugerencia | Ayuda local