> 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
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user