I have a table in a datasource module using MyDAC. I want to load the contents of the table, column months with 50 rows into an Array [1..50] of Float. How can I do this?
This is the code of my datamodule unit:
unit Unit2;
interface
uses
System.SysUtils, System.Classes, Data.DB, DBAccess, MyAccess, MemDS;
type
TDataModule2 = class(TDataModule)
MyConnection1: TMyConnection;
MyQuery1: TMyQuery;
MyQuery1Months: TFloatField;
MyQuery1Qob: TFloatField;
MyQuery1Qcalc: TFloatField;
MyDataSource1: TMyDataSource;
MyTable1: TMyTable;
private
{ Private declarations }
public
{ Public declarations }
end;
var
DataModule2: TDataModule2;
implementation
{%CLASSGROUP 'Vcl.Controls.TControl'}
{$R *.dfm}
end.