12-27-2011 03:27 PM
Hi you all,
I have been working on a app that uses local database. After I get the data I would love to get one one value from the record set without having to loop.
If the result set only returned one value I could call the value using this for example:
However if the record set has more than one value or rows this would not work. Is there a way I could just call a value without having to loop like how in php we do this $row['some_row_name']; and we get the first result from the result set?
01-04-2012 12:32 PM
Why wouldn't your code work when there are multiple items in the resultRowSet? As long as there is atleast 1 item, there will be a 0th item.