New topic: 

Protected method .Name?

<http://forums.realsoftware.com/viewtopic.php?t=46844>

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        JimPitchford          Post subject: Protected method 
.Name?Posted: Wed Feb 06, 2013 12:40 pm                         
Joined: Mon Apr 11, 2011 2:01 pm
Posts: 133                I have a window (wOwners) with a containerControl 
(cOEntry).

On compiling it gives me this error:

wOwners.cOEntry.Name Layout(property name) - This method is protected. It can 
only be called from within its class.

I can't think what I've got to do to get rid of it. Seems to imply that the 
name property (set within the IDE) is protected, but how?

Jim      
_________________
Jim
OSX 10.8.2, rb2012r2  
                             Top                JimPitchford          Post 
subject: Re: Protected method .Name?Posted: Wed Feb 06, 2013 12:49 pm           
              
Joined: Mon Apr 11, 2011 2:01 pm
Posts: 133                Ah, found it. The Constructor in cOEntry was marked 
as local.

Problem solved.

Jim      
_________________
Jim
OSX 10.8.2, rb2012r2  
                             Top                ktekinay          Post subject: 
Re: Protected method .Name?Posted: Wed Feb 06, 2013 12:49 pm                    
             
Joined: Mon Feb 05, 2007 5:21 pm
Posts: 429
Location: New York, NY                Open the container control itself, find 
the Name method and check its scope. It was set to "private" or "protected" so 
you have to change it to "public".      
_________________
Kem Tekinay
MacTechnologies Consulting
http://www.mactechnologies.com/

Need to develop, test, and refine regular expressions? Try RegExRX.
  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to