[Gambas-user] Bad loop.
Jack
jscops at ...11...
Wed Jun 2 19:51:53 CEST 2004
Bonjour,
I have a loop which work well but i don't can log out .
Please, see my code below. What is wrong ? (Ecrit1 is a columnView with many
lines that i want read with my program to update a database.)
Is it "LOOP UNTIL Ecrit1.MoveNext() = TRUE" which is bad ?
----- My code ---------
IF rResult.Available THEN
Ecrit1.MoveFirst()
DO
Numcpt = Ecrit1.Item[0]
Numdoc.Text = Ecrit1.Item[2]
rResult = DB.Exec("UPDATE "&Tab&" SET Jour = '"& Journal.Text &"',Numero
= '" & Numecrit.Text & "' , Compte = '" & Numcpt & "'")
Ecrit1.MoveNext()
Ecrit1.MoveCurrent()
LOOP UNTIL Ecrit1.MoveNext() = TRUE
ENDIF
----- End of Code --------
Thank you very much for your answer.
°~ Jack ~°
More information about the User
mailing list