I forgot completely Delphi. Stopped at "list index out of bounds". I do something like this:
begin ADOQuery1.Close; ADOQuery1.SQL.Clear; ADOQuery1.SQL.Add('SELECT text_answer FROM `answer` WHERE `question_id` = 1'); ADOQuery1.Open; DataSource1.DataSet:=ADOQuery1; RadioButton1.Caption:=AdoQuery1.Fields[0].asString; RadioButton2.Caption:=AdoQuery1.Fields[1].asString; RadioButton3.Caption:=AdoQuery1.Fields[2].asString; end; First AdoQuery1.Fields[0].asString; and everything works.
The query gets three lines.
A SQL query always stores data as an array.
Why it can be addressed only to the first index.
How to refer to the following records of the executed query?