Data Grid - getting current line data
Posted: Mon Feb 15, 2010 11:23 am
I am starting out with Revolution and I want to use Data Grids with a mySQL database. I have created a data grid on a card and put the following into the data grid group:
getProp uSelectedID
put the dgHilitedLines of me into theLine
put the dgDataOfLine[theLine] of me into myArray
put myArray["SuitcaseName"] into myAmount
return myAmount
end uSelectedID
Looking at the values in debug, I get a value of 2 for theLine, but myArray remains blank.
I assume that I have missed something somewhere, but what?
Any help would be appreciated.
getProp uSelectedID
put the dgHilitedLines of me into theLine
put the dgDataOfLine[theLine] of me into myArray
put myArray["SuitcaseName"] into myAmount
return myAmount
end uSelectedID
Looking at the values in debug, I get a value of 2 for theLine, but myArray remains blank.
I assume that I have missed something somewhere, but what?
Any help would be appreciated.