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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user