get_typed_value_at


Description:

public unowned Value? get_typed_value_at (int col, int row, Type expected_type, bool nullok) throws Error

Upon errors null will be returned and throws will be assigned a Error from the DataModelError domain.

This method is similar to get_value_at, except that it also allows one to specify the expected Type of the value to get: if the data model returned a Value of a type different than the expected one, then this method returns null and an error code.

Note: the same limitations and usage instructions apply as for get_value_at.

Upon errors null will be returned and throws will be assigned a Error from the DataModelError domain.

Parameters:

this

a DataModel object.

col

a valid column number.

row

a valid row number.

expected_type

the expected data type of the returned value

nullok

if TRUE, then NULL values (value of type gda_type_null) will not generate any error

Returns:

a Value containing the value stored in the given position, or null on error (out-of-bound position, wrong data type, etc).