So really happy with connecting to the DB and all that. My Grid object is fine and showing all records etc. Really happy with SQL. And the concept "DBs are all about sets"
My issue is:
I create an ADO query or dataset object where the SQL returns one record only. I know I have done that by interrogating MyFrame.ADOQuery1.RecordCount (it returns 1) But how do I then get access to the record fields simply ?
I want to write
MyRecord[] := MyFrame.ADOQuery1.ReturnRecord; // could be current record as I know there is only one
Questions are : is there/can I create a var type I can use to read that record into ? And how do I do that ? Kinda thought there would be a ADOQuery method that would return a record into an array of the same type (though not sure how to specify that type) (emphasises to show reserved words versus natural english)
Anyway, I have been trying to do this for days and clearly missing something. Help, as ever, appreciated.