I can't figure out to access the record variables once I store them in a vector. For example, I store three integer variables in a record:
TmyRecord = record
id : Integer;
x : integer;
y : integer;
end;
var
myRecord : TmyRecord
{ store integers in the three vars here }
Then I flush the record to the to a vector:
So far, so good. But for the life of me, I can't puzzle out how I'm suppose to retrieve that information.
I've tried stuff like this:
Query1.Params.ParamByName('id').AsInteger:= iVec[i].myRecord.id; // i is a counter
...which obviously doesn't work. The thing is, I haven't found anything online abt this. Which makes me think that, while I'm able to store a record inside a vector, calling the variables individually from the vector isn't possible. So there's no need to discuss it, hence the complete lack of online content on it.
I can't figure out why I'm able to store a record in a vector and not be able to individually access the record variables. Is it even possible?