New topic: 

programmmically acessing objects through control

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Dave_          Post subject: programmmically acessing objects 
through controlPosted: Thu May 30, 2013 5:16 pm                         
Joined: Wed Sep 15, 2010 1:48 pm
Posts: 82                dim x,i as integer
dim selected,y as string
For i=0 to ListBox1.ListCount
  If ListBox1.Selected(i) then
  selected = listbox1.list(i)
  End if
  
Next

//list all it could be

for x = 0 to self.ControlCount -1
  if selected = Self.Control(x).Name Then
  y = Self.Control(x).Name
  W_debug.run(y)
  
  if self.control(x) isa listbox then
  
  msgbox "listbox found"
  
  ???? self.control(x).Name.HasHeading // properties of self.control(x).name, 
in this case a listbox
  
  
  
  end if
  
  
  end if
next x


My goal is to read and write object properties programmically, place object 
properties in a database. If you can iterate through all of the controls using 
control, how do you access the control properties without spelling out 
listbox1? 

or does every control have to be a control array?      
_________________
RS2012r2 Pro Win  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
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