Re: [Gambas-user] 'Null object' when loading image from a .jpg file

2012-01-20 Thread John Rose
Matti, Thanks for that. You were c orrect. I never thought that picture and image are reserved keywords. I assumed that they would not be as they are not the same as Picture & Image. PS Please ignore my follow up message on this topic sent 5 minutes ago! --

Re: [Gambas-user] 'Null object' when loading image from a .jpg file

2012-01-20 Thread Matti
You can't do Dim picture As Picture picture = Picture.Load(Dialog.Path) image = picture.Image as picture and image are reserved keywords. use "mypicture" and "myimage" instead, and it works. Am 20.01.2012 19:03, schrieb John Rose: > This project might be more help to this

Re: [Gambas-user] 'Null object' when loading image from a .jpg file

2012-01-20 Thread John Rose
This project might be more help to this issue as it's much smaller than my original one. When it crashes (in ButtonImportImage_Click()) on the Picture.Load command (I've also tried Image.Load with thsame result), a message box pops up wth 'Null object' displayed but not showing line number or anyth

Re: [Gambas-user] 'Null object' when loading image from a .jpg file

2012-01-18 Thread John Rose
Project attached as requested. JewishHeritage.tar.gz Description: GNU Zip compressed data -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is

Re: [Gambas-user] 'Null object' when loading image from a .jpg file

2012-01-18 Thread Benoît Minisini
Le 18/01/2012 19:42, John Rose a écrit : > I get a popup window containing 'Null object' at runtime (which > unfortunately does not point at problem line of code, though I think that > it must be 'image = Image.Load(Dialog.Path)') with following code, when I > click ButtonImportImage: > CodePub

[Gambas-user] 'Null object' when loading image from a .jpg file

2012-01-18 Thread John Rose
I get a popup window containing 'Null object' at runtime (which unfortunately does not point at problem line of code, though I think that it must be 'image = Image.Load(Dialog.Path)') with following code, when I click ButtonImportImage: CodePublic Sub ButtonImportImage_Click() Dim image As Imag