I need some help in putting a result set into an array. First, I have a query that returns time. Assuming it returns 4 values, how would I go about reading the values into an array? (If I would be better off to use a vector I would appreciate that help too.) Also, let's say the query returned time, person, and event such as:
Time1.25 PersonX EventA
Time2.25 PersonY EventB
What can I use so that I could loop through and be able to see time '1.25' ,person 'X', and event 'A' and so on?
Example: If the first row were say row[1] I could say something to the effect of:
if (row[1].time < row [2].time) and (row[2].person != EventC)
do something
I hope I'm making myself somewhat clear..... Please help if you can.
Time1.25 PersonX EventA
Time2.25 PersonY EventB
What can I use so that I could loop through and be able to see time '1.25' ,person 'X', and event 'A' and so on?
Example: If the first row were say row[1] I could say something to the effect of:
if (row[1].time < row [2].time) and (row[2].person != EventC)
do something
I hope I'm making myself somewhat clear..... Please help if you can.