Iostable.scrolltorow error

I am trying to use scrolltorow and I get an error saying not enough arguments missing integer value for parameter “section”

Code is

Table1.AddSection("")
for x as integer = 1 to 20
Table1.AddRow 0,x.totext
next
Table1.ScrollToRow(0,Table1.RowCount)

try

Table1.ScrollToRow(0,Table1.RowCount-1)

the row and section are 0-based NOT 1-based.

I think your problem in in the RowCount method which takes a section as a parameter. Try this:

Table1.AddSection("")
For x As Integer = 1 To 20
  Table1.AddRow(0, x.ToText)
Next
Table1.ScrollToRow(0,Table1.RowCount(0) - 1)
1 Like