Filling a column in a table ...

JOTHA

Well-Known Member
Licensed User
Longtime User
Hi Forum,

when I want to fill a row with the same data, I use this code:
B4X:
For i = 0 To Table1.ColCount-1
     Table1.Cell (Table1.ColName(i),0) = "Something"
Next

... but how can I fill a column ??? :confused:
 

JOTHA

Well-Known Member
Licensed User
Longtime User
Hello Zenerdiode,

thank you for your answer!

I did this now:
B4X:
For i = 0 To Table1.RowCount-1
Table1.Cell ("ColName", ((i-0)+0)) = "Data"
Next

I also works, but it adds a row at the end of the table.
 

JOTHA

Well-Known Member
Licensed User
Longtime User
Hello Zenerdiode,

your code is correct.

I was experimenting about 2 hours and the mistake was my fault because I had a "AddRow-Code" after this code (that was the reason). :sign0137:

THANKS again!
 
Top