Hi. I want to use a unique ID as part of a SQL statement on a following view based on the specific cell the user pushes in the table. I’ve used the following for a similar use on another table but I do not want to show the ID on the table
Using this on another table
dim oCell as iOSTableCellData = me.RowData(section, row)
SetName = oCell.Text
I thought using Tag, but this doesn’t seem to work, such as ID = oCell.Tag.
dim i as integer
dim oCell as iOSTableCellData = me.RowData(section, row)
i = oCell.Tag
I have verified that this works (at least in the simulator).
Are you sure you’re actually putting something in the RowTag? Since it’s an Auto you’ll need to verify that it contains something. If you want to find out what’s in an Auto variable you can do something like the following:
[code]Function FindType(extends au as Auto) As Text
dim oTypeInfo as xojo.Introspection.TypeInfo = Xojo.Introspection.GetType(au)
return oTypeInfo.FullName
End Function
[/code]
The action event would then be something like:
dim i as integer
dim oCell as iOSTableCellData = me.RowData(section, row)
if oCell.Tag.FindType = "Int32" then
i = oCell.Tag
else
//not an integer! Do something different.
end