[Gambas-user] exception 11
Benoît Minisini
gambas at ...1...
Mon Feb 7 20:17:58 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
>
Please provide the project (and its database), and explain how to reproduce it
exactly. Otherwise I can't fix it!
Regards,
--
Benoît Minisini
More information about the User
mailing list