PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Add Collumn to table
Add Collumn to table
Iniciado por guest, 30,may. 2015 20:30 - 4 respuestas
Publicado el 30,mayo 2015 - 20:30
Hello,

I want to make a table dynamic.

So there are some columns. But depending on some issues I want to add severall columns.

I thought there was a TableAddColumn() but that is something else.

Is there a to reset the columns and chosse different colums

something like

TTableDeleColumn(Table_Dynamic,3) to delete column 3
TTableAddColumn(Table_Dynamic,"MyHeadername",INT,MyContent)

Thanks,

Willy Hermans
Publicado el 30,mayo 2015 - 21:16
Hi Willy

what you are loking for is ControlClone

Best regards
Publicado el 04,junio 2015 - 15:03
Hello,

Adding columns seems to work perfect.

Thanks.

But there is still a problem whern adding data to it.

Sometimes there will be added 1 collumn but then there are 2, 3 maybe 10 collums

TabeleAddline works with a variable number of parameters. It does not work with an array as CollumnParameter

TableaddLine(MyTable, Col1)

TableaddLine(MyTable, Col1,Col2)

TableaddLine(MyTable, Col1.Col2,Col3)

...

It is not an elegant method to use
If MyTable..NumberColum = 5
TableaddLine(MyTable, Col1.Col2,Col3,Col4,Col5)
else if ...

Is'nt there a possibillity to add a column via something like tableaddline(mytable,myarray)

Thanks,
Willy
Publicado el 04,junio 2015 - 15:08
If you use tabeladd it's easy.
http://doc.windev.com/en-US/…
Publicado el 04,junio 2015 - 15:51
This works perfect.

Thanks.