Página 1 de 1

new DataSet prblem with TBrwColumn:OnDrawCell

Publicado: Lun Ago 10, 2009 9:18 am
por Ingo
Ignacio,
in many TDBBrowses I'm using TBrwColumn:OnDrawCell to modify the text of a
column like this:
METHOD BrwColumn1DrawCell( oSender, cText, nClrText, nClrPane, lHighLite,
hDC, aRect ) CLASS TForm1
cText += " " + ::oDataSet:LAST
RETURN Nil
But when I call AddNew() ::oDataSet:LAST returns NIL because each element of
oDataSet:aFldEdit in FieldGet() contains NIL.
A modified sample (DataControlsDbfData2) is attached.
Regards
Ingo

--

Attached files DbfTest.zip (7 KB)Â