Hi,
DatabaseUpdate() needs an update!
At the weekend I was fighting for ours with SQLite and the example in the (german) help.
Code: Select all
; Zuerst stellen wir eine Verbindung zu der 'employee' (Angestellten) Tabelle her
;
If DatabaseQuery(#Datenbank, "SELECT * FROM employee") ; Ermittelt alle Einträge in der 'employee' Tabelle
While NextDatabaseRow(#Datenbank) ; alle Einträge durchlaufen
; Aktualisieren des 'checked' Felds für jeden Eintrag, vorausgesetzt
; das 'id' Feld ist das erste in der 'employee' Tabelle
;
DatabaseUpdate(#Datenbank, "UPDATE employee SET checked=1 WHERE id="+GetDatabaseString(#Datenbank, 0))
Wend
FinishDatabaseQuery(#Datenbank)
EndIf
This example tells you, that it is possible to update
each entry in the database inside the loop.
But it is not working.
There is already a posting about that, but nothing is changed.
http://www.purebasic.fr/english/viewtop ... te#p248148
So please change the helpfile, or if it is a bug with SQLite, write it inside this help.
Best regards,
Bernd