Should be a fairly easy solutioin but I must be missing something obvious.
Ive got a new class created
TCBRecord = class
Variable1, Variable2, etc
<Procedures to set variables, functions to read>
TMyForm = class(TForm)
MyBook : TList
I create a TCBRecord and then add it to MyBook
The thing is that MyBook is not linked to TCBRecord, but to the form it is on.
Im trying to now read the entries from MyBook but I cant access the records.
Obvisouly Im putting the variables in the wrong places but I cant see how to re-arrange things.
The TList must be linked to the form as I want to try and read variables from the records in MyList to display in a stringgrid
Why cant I do
For iCnt := 0 to (MyBook.Count - 1) do
Stringgrid.Cells[Col, Row] := MyBook[iCnt].variable1
So MyBook[iCnt].variable1 is incorrect, how can I now access the data