On 04/02/12 17:42, nando wrote: > PUBLIC myint is only exactly one variable. > It's public. > > > ---------- Original Message ----------- > From: Shane Powell<shanep1...@tpg.com.au> > To: nand...@nothingsimple.com, mailing list for gambas users > <gambas-user@lists.sourceforge.net> > Sent: Sat, 04 Feb 2012 17:16:17 +1100 > Subject: Re: [Gambas-user] inheritance problems > >> On 04/02/12 15:57, nando wrote: >>> How can it be empty AND have elements in it? >>> >>> >>> ---------- Original Message ----------- >>> From: Shane Powell<shanep1...@tpg.com.au> >>> To: mailing list for gambas users<gambas-user@lists.sourceforge.net> >>> Sent: Sat, 04 Feb 2012 12:05:24 +1100 >>> Subject: [Gambas-user] inheritance problems >>> >>>> I have this in my program >>>> >>>> class 1 >>>> public array of class 2 >>>> >>>> class 2 >>>> inherits class 1 >>>> access array of class 2 in class 1 >>>> but array is empty but i know it has elements in it >>>> >>>> what am i doing wrong ? >>>> >>>> ------------------------------------------------------------------------------ >>>> Try before you buy = See our experts in action! >>>> The most comprehensive online learning library for Microsoft developers >>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>>> Metro Style Apps, more. Free future releases when you subscribe now! >>>> http://p.sf.net/sfu/learndevnow-dev2 >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------- End of Original Message ------- >>> >>> >>> ------------------------------------------------------------------------------ >>> Try before you buy = See our experts in action! >>> The most comprehensive online learning library for Microsoft developers >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>> Metro Style Apps, more. Free future releases when you subscribe now! >>> http://p.sf.net/sfu/learndevnow-dev2 >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >>> >> thats what i want to know it seems that public variables are copy when a >> class is inherited >> and the value they where when you inherit them is only used from then on >> >> i made a test app i must be doing something wrong >> this app just uses integers > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > sorry don't know what you mean
------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user