New topic: 

Populating Enumerations

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Jason_Adams          Post subject: Populating 
EnumerationsPosted: Wed Jan 12, 2011 11:00 am                         
Joined: Fri Nov 10, 2006 4:10 pm
Posts: 617                I don't think this is possible, but I wanted to ask 
and make sure I'm not simply missing the possibility. Can one populate an 
enumeration, say, into a PopupMenu? For example I have an enumeration for 
available velocities (deg/sec, ft/min, in/sec, etc.) It'd be great to be able 
to write a method which receives an enumeration, and populates a control based 
on the name and enumerated value.

Again, I'm pretty sure RS thinks of enumerations as constants, so the name 
cannot be extracted as a string—it's meaningless outside of design-time. But 
it'd be neat if it were possible. 

Thanks!      
_________________
Windows 7 Ultimate
RS Pro 2010r2.1

"Christianity has not been tried and found wanting; it has been found difficult 
and not tried." - G.K. Chesterton  
                             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