Hi Ian,
When you do a “:getValues()” call on the picker row, you’ll get both a “value” and “index” property. The “value” is the label that you defined, and “index” is simply the number of the row that was created, so for a series of months, it would be 1 for January, 2 for February, etc. If this is your basic setup (a date picker), you can use that index.
If you need to associate other values (not like a basic index-to-row setup), I’d suggest just creating a relational lookup table, something like this:
[lua]
local pickerLookup = {
{ “A1”, “B1”, “C1”, “D1”, “E1” },
{}, --column 2 lookup value
{}, --column 3 lookup value
}
local values = pickerWheel:getValues()
local columnIndex1 = values[1].index
local lookupValue = pickerLookup[1][columnIndex1]
[/lua]
Hope this helps,
Brent