Adds a new row to a Table.
Syntax: AddRow ([Value1, Value2,...])
If the number of values is less than the number of columns, then empty cells will be added.
Example:
Table1.AddCol (cNumber, "ID", 50, True)
Table1.AddCol (cString, "Name", 50)
Table1.AddRow (234564, "John")
the above demonstrates how to add new data rows to a table. if you want to change the data in an existing row, use the Table1.Cell("ColName", RowNumver) property. you'll be able to find an example in the desktop ide help file under Table in the Controls section.
OK So If I had DATA1$="1,2,3,4,5" is there a way I could add this to a new row in a table.
obviously
Table1.Addrow(Data1$) does not work.
Will I have to break it down to the individual values to addRow?
i.e.
Table1.AddRow("1","2","3","4","5")
Shame as using a variable string is so much less typing!
Thanks for your replys. I'll be giving them a go, but suspect it will be the split string method. Lists are ook, but I'll be needing to filter it - I'll stick with a table.
thanks guys.