[gnome-db] gda_data_model_remove_row



Hallo,

I have a problem by using gda_data_model_remove_row. I get a datamodel
from my database and I want delete a row in this datamodel. If I use
gda_data_model_remove_row, it doesnt work.

Here is my code:

GdaDataModel *Datenmodell=daten->execute_command(conn, sqlSelect);
GdaRow* GdaReihe;
GdaReihe=gda_row_new(Datenmodell,2);

for (row_id = 0; row_id <
gda_data_model_get_n_rows(Datenmodell);row_id++)
		{
GdaReihe= (GdaRow *)gda_data_model_get_row (Datenmodell, row_id);
okay = gda_data_model_remove_row(Datenmodell,GdaReihe);
gda_data_model_freeze (Datenmodell);
}
Can anybody help me? Whats my problem? I get for okay everytime as
return 0. It dont execute gda_data_model_get_row.


Thanx, nice greetings, Peggy





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]