Having a ListBox issue

I’m trying to do something that should be fairly simple and following the docs. Why would it say that that it has number member CellVallueAt when that is spelled out in the docs as part of DesktopListBox?

Confused

var x as integer = 0
For Each row As DesktopListBoxRow In lst_task.Rows
  app.TaskList(x)=wintasklist.lst_task.CellValueAt(x,0)
  x=x+1
Next

Getting this error:
winTaskList.btn_save.Pressed, line 5
Type “DesktopListBox” has no member named “CellValueAt”
app.TaskList(x)=wintasklist.lst_task.CellValueAt(x,0)

CellTextAt()

2 Likes

What Tim said. But you can also simplify your code:

Var x As Integer
For Each row As DesktopListBoxRow In lst_task.Rows
    app.TaskList(x) = row.CellTextAt(0)
    x = x + 1
Next 

Thanks!

This did the trick! I don’t know how I overlooked that other than my brain was focused on the word Value.