[gnome-db] How do I read a GdaNumeric as a gdouble?
- From: Juan Pablo <jpdborgna yahoo com ar>
- To: GNOME-DB List <gnome-db-list gnome org>
- Subject: [gnome-db] How do I read a GdaNumeric as a gdouble?
- Date: Wed, 15 Mar 2006 08:19:56 -0300
With v=(GdaValue *)
gda_data_model_get_value_at(dm,gda_data_model_get_column_position(dm,"stock1a"),0);
i get a numeric (from database) and i want to use it like this (in the
ideal world...)
gtk_spin_button_set_value(GTK_SPIN_BUTTON(lookup_widget(widget,"stock1a")),
gda_value_get_double(v));
But it is numeric, so im afraid i have to stringify it and then
g_strotod it (it works but its ugly).
¿Is there any direct way to do it?
Saludos, Juan Pablo.
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]