Sorry, but I'm sure of what I said ! Inheriting from any class will create an instance of that class into the current object. You can access this with ::Nameofsuperclass of ::Super when you have only one inherited class.
In your case : ::XbpSLE exist as ::XbpListBox So doing DATA oSLE ACCESS XbpSLE INLINE ::oSLE DATA oLB ACCESS XbpListBox INLINE ::oLB Would overload the automatically created ::XbpSLE as ::XbpListBox. It is possible that in your case you need a local instance, working as new instance object but from my point of view, you should NOT use the same name for you local instance as the inherited VAR ! JF, -----Message d'origine----- De : harbour-boun...@harbour-project.org [mailto:harbour-boun...@harbour-project.org] De la part de Pritpal Bedi Envoyé : dimanche 21 juin 2009 11:17 À : harbour@harbour-project.org Objet : RE: [Harbour] CLASSES - What this mean ? Hi J. Lefebvre wrote: > > METHOD XbpComboBox:new( ... ) > ::XbpSLE:New( ... ) // could also be written Super:New(...) as in > harbour Super will call the first inherited super class > // this code _is_ valid in harbour > RETURN Self > > METHOD XbpComboBox:create( ... ) > ::XbpSLE:create( ... ) // same here, this is just the same as calling > Super:Create(..) > RETURN Self > No, this does not work as intended. I need the instance of XbpSLE. Please look at other post in reply to Przemek's message. Regards Pritpal Bedi -- View this message in context: http://www.nabble.com/CLASSES---What-this-mean---tp24131028p24132747.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour