value_new_from_string


Description:


public Value? value_new_from_string (string as_string, Type type)

Makes a new Value of type type from its string representation.

For more information about the string format, see the value_set_from_string function. This function is typically used when reading configuration files or other non-user input that should be locale independent.

Parameters:

as_string

stringified representation of the value.

type

the new value type.

Returns:

the newly created Value or null if the string representation cannot be converted to the specified type.

Free-function: gda_value_free


Namespace: Gda
Package: libgda-6.0