Retrieving a decimal value from an OResultSet

I have a variable Results of type com.sun.star.sdb.oResultSet that is the result of a query where I know the 9th field of the result is a decimal value. I know how to use

Results.getInt(9)

and

Results.getString(9)

but how would I retreive a decimal value?

Use

Results.getDouble(9)

Note: If you don’t use the result for calculating, only for reading and writing into a database, getString(9) will work without problems.

1 Like