display varchar in dbgrid and ORA error lazarus / 16-Databases ---------------------------------------------------------------------- Hansvb · 2014-05-22 19:45 I am using a zeos query component, a datasource and a dbgrid. Numbers wich are stored as a varchar show in the dbgrid like 8E2. It should be 800. How to avoid this. The problem is de zeos query component. When i use de standard lazarus query component the numbers show correct in the dbgrid.  The lazarus query component dus not execute some query's. I have a few query's that work correct with SQLPLUS, SQLdeveloper or TOAD but not in de lazarus query component. I stops with the warning: "ora-24347 warning of a null column in an aggregate function". So i have 2 questions. How to avoid the E notation in the zeos component and how to avoid the Oracle warning in de standard query component without changing the query ---------------------------------------------------------------------- Mike.Cornflake · 2014-05-27 17:23 ?  Didn't I just reply to this?  Wierd. Read this; http://forum.lazarus.freepascal.org/index.php/topic,20696.msg120291.ht ml#msg120291 In short, add a TField.OnGetText, simply return the TField.AsString, which will contain the correctly formatted value... I see - cross post.  Here's my answer in other location; http://forum.lazarus.freepascal.org/index.php/topic,24674.msg148844.ht ml#msg148844 And I further see, you asked two questions here. To answer the other:  no idea - what are the SQLs that raise errors in ZEOS?