JOTHA Well-Known Member Licensed User Longtime User Aug 10, 2009 #1 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 ???
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 ???
Z Zenerdiode Active Member Licensed User Aug 10, 2009 #2 In a similar way: B4X: For i = 0 to Table1.Rowcount-1 Table1.Cell(ColName,i)="FillData" Next
JOTHA Well-Known Member Licensed User Longtime User Aug 10, 2009 #3 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.
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 Aug 10, 2009 #4 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!
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!