New topic: 

Creating names for new class object on the fly?

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        tseyfarth          Post subject: Creating names for new class 
object on the fly?Posted: Fri Mar 18, 2011 7:15 pm                         
Joined: Sat Dec 04, 2010 9:14 pm
Posts: 172                Hello all.

I am very very green with this OOP stuff. What I have to do, is to read a 
database of remote devices. For each address of these remote devices (each 
device has only 1 address), I want to (or at least I "think" I want to) create 
a new instance of a class object.

What I have now is 

1.  Read DB and load a record set
2. iterate through the record set for only the "type" of remote I want.
3. For each type I find I want to 

RemoteDevice = new clsRemoteDevice

The trouble I have, is how to distinuish between the 20 or more RemoteDevices 
by name programatically?  Each clsRemoteDevice has the properties to 
distinguish between them, but not clear if this is the best way or not.  

Thoughts and suggestions?

Thank you
Tim   
                             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