[Lazarus] getting values from a DBGrid
Chris Jennings
cjvanbc at gmail.com
Mon Dec 14 04:08:41 CET 2009
Thanks - that did the trick
Diwakoe wrote:
> On Mon, Dec 14, 2009 at 7:47 AM, Chris Jennings <cjvanbc at gmail.com> wrote:
>
>> Thanks but
>>
>> DBMemo3.Lines.Add(datGrid.FieldByName('crs_courseName').AsString)
>>
>> returns
>>
>> u_courses.pas(124,30) Error: identifier idents no member "FieldByName"
>>
>> where "datGrid" is the name of my TDatasourse and "crs_courseName" is a
>> column in my db
>>
>>
>
> Do not use TDatasource use TDataset (TSQL Query SQLDB component or
> TSQL Query Zeoslib component).
>
> Ex:
> DBMemo3.Lines.Add(SQLQuery.FieldByName('crs_courseName').AsString)
>
>
> Cheers,
> Diwa
>
More information about the Lazarus
mailing list