I'm trying to fetch a couple of values from a listview.
The listview has two columns: "fermentable" and "grams".
I have entered two test rows:
Row 0: "Fermentable1", "123"
Row 2: "Fermentable2", "234"
Using a button I made I want to write those to a file, so to debug I wrote this code:
Code: Select all
;Add Fermentables to a Table (array)
fermentablesTable = {}
For local a = 0 to (moai.Get("fermentlistview","Entries")-1)
fermentablesTable[a] = moai.DoMethod("fermentlistview", "GetEntry", a)
DebugPrint(fermentablesTable[a])
next
Code: Select all
Fermentable1
Fermentable2
Erlend