[Gambas-user] exception 11
Steven revimmo
steven at ...1652...
Mon Feb 7 18:01:20 CET 2011
Hi,
I'm doing this :
PUBLIC SUB Close_Click()
' save the images and close
DIM PicE AS Picture
DIM PicM AS Picture
DIM StrPicE, StrPicM AS String
DIM resP AS Result
PicE = DrawingArea1.Grab()
PicE.Save("Z-energy.jpg")
PicM = DrawingArea2.Grab()
PicM.Save("Z-emission.jpg")
' and into the database
resP = db.Edit("dpe", "id = &1", current_dpe) <- HERE
resP["energy"] = File.Load("Z-energy.jpg")
resP["emission"] = File.Load("Z-emission.jpg")
resP.Update()
ME.Close
CATCH
Message.Error("<b>Update database record error</b><hr>Error:<br>" &
DConv(Error.Text))
END
I'm using Gambas 2.22 (just downloaded, because i thought my old 2.8 was
the cause).
It gives me a 11 exception on the line marked.
current_dpe = 51 (correct), the record exists.
Any ideas ?
Steven
More information about the User
mailing list