[lazarus] TDBgrid float: bug?

2007-05-08 Thread Andrea Mauri
Dear all, I have some problems with TDBgrid and float values. Firebird database. I have a table with two fields. One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION (FIELD_DOUBLE). I tried some inserts and I show the table using DBGrid. If I exec this: insert into TABLE1 (FIELD_FLO

Re: [lazarus] TDBgrid float: bug?

2007-05-08 Thread Jesus Reyes
--- Andrea Mauri <[EMAIL PROTECTED]> escribió: > Dear all, > I have some problems with TDBgrid and float values. > Firebird database. > I have a table with two fields. > One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION > (FIELD_DOUBLE). > I tried some inserts and I show the tabl

RE: [lazarus] TDBgrid float: bug?

2007-05-08 Thread Pieter Valentijn
@miraclec.com Onderwerp: [lazarus] TDBgrid float: bug? Dear all, I have some problems with TDBgrid and float values. Firebird database. I have a table with two fields. One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION (FIELD_DOUBLE). I tried some inserts and I show the table using DBGrid

Re: [lazarus] TDBgrid float: bug?

2007-05-09 Thread Andrea Mauri
PROTECTED] Verzonden: dinsdag 8 mei 2007 17:33 Aan: lazarus@miraclec.com Onderwerp: [lazarus] TDBgrid float: bug? Dear all, I have some problems with TDBgrid and float values. Firebird database. I have a table with two fields. One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION

Re: [lazarus] TDBgrid float: bug?

2007-05-09 Thread Andrea Mauri
I am checking the displayformat property. Checking it I found in DBGrids unit: procedure TColumn.Assign(Source: TPersistent); begin if Source is TColumn then begin //DebugLn('Assigning TColumn[',dbgs(Index),'] a TColumn') Collection.BeginUpdate; try inherited Assign(Source); F

Re: [lazarus] TDBgrid float: bug?

2007-05-09 Thread Andrea Mauri
How can I access the DisplayFormat property? I can see it only in the object inspector and not by code: DBGrid1.Columns[0] .displayformat Doesn't exist. a. Jesus Reyes wrote: --- Andrea Mauri <[EMAIL PROTECTED]> escribió: Dear all, I have some problems with TDBgrid and float values. Fir

Re: [lazarus] TDBgrid float: bug?

2007-05-09 Thread Jesus Reyes
--- Andrea Mauri <[EMAIL PROTECTED]> escribió: > I am checking the displayformat property. > Checking it I found in DBGrids unit: > > procedure TColumn.Assign(Source: TPersistent); > begin > if Source is TColumn then begin > //DebugLn('Assigning TColumn[',dbgs(Index),'] a TColumn') > C

Re: [lazarus] TDBgrid float: bug?

2007-05-09 Thread Jesus Reyes
--- Andrea Mauri <[EMAIL PROTECTED]> escribió: > How can I access the DisplayFormat property? > > I can see it only in the object inspector and not by code: > > DBGrid1.Columns[0] .displayformat > > Doesn't exist. > a. try TColumn(DBGrid1.Columns[0]).DisplayFormat Jesus Reyes A. ___