Change UseNumbers dynamically
Posted: Fri 15 Feb 2008 15:00
TOraSession.UseNumbers := True does not work properly if you use ODAC in conjunction with DevExpress Grids and define grid totals such as SUM below the grid. You will get an error like cannot convert OleStr to Double.
I need long numbers only for one query. The totals are needed for a bunch of other queries. Thats why I would like to have UseNumbers as a property of the dataset rather than of the session. My idea for a workaround was to change the session property temporarily to true while the appropriate query is beeing opened and the turn it back to false.
My questions are:
- Can this have any side effects?
- Would you consider to adding a new property UseNumbers to TOraDataset in a future version?
- An alternative would be that you could reconcile the TOraNumber data type with OleStr and make it working together with DevExpress grid totals computation.
Regards,
Holger
I need long numbers only for one query. The totals are needed for a bunch of other queries. Thats why I would like to have UseNumbers as a property of the dataset rather than of the session. My idea for a workaround was to change the session property temporarily to true while the appropriate query is beeing opened and the turn it back to false.
My questions are:
- Can this have any side effects?
- Would you consider to adding a new property UseNumbers to TOraDataset in a future version?
- An alternative would be that you could reconcile the TOraNumber data type with OleStr and make it working together with DevExpress grid totals computation.
Regards,
Holger