[Gambas-user] Problem with Image.Load

Benoît Minisini gambas at ...1...
Tue May 1 00:32:31 CEST 2012


Le 01/05/2012 00:07, Willy Raets a écrit :
> Hi all,
>
> I get an error 'Null object in SysInfo' on the LibIconImage.Load() line
> The 'SysInfo-24.png' is present in the user home.
> SysInfo is a class
> ----
> 'Class SysInfo
>
> Static Public LibIconImage As Image
>
> Public Sub ReadLibInfo(()
>
>     LibIconImage.Load(User.Home&  "/SysInfo-24.png")
>
> End
>
> What am I doing wrong? According to the Gambas 3 documentation this
> should do the job.
>
> I am using Gambas 3.1.1
>
>
> Thanks,
>
> Willy
>

Load() is a static method. You must write "Image.Load(...)".

Regards,

-- 
Benoît Minisini




More information about the User mailing list