New topic: Clone Instance of a class
<http://forums.realsoftware.com/viewtopic.php?t=34277> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Amando Post subject: Clone Instance of a classPosted: Mon Jun 14, 2010 5:55 pm Joined: Tue Jan 31, 2006 5:22 am Posts: 69 Location: La Coruña, Spain This is driving my crazy. I request your help to solve this problem. I have the following code Dim SpiderStats as new Stats SpiderStats.Strength = 75 SpiderStats.Constitution = 90 SpiderStats.Dexterity = 90 SpiderStats.Inteligence = 60 SpiderStats.Agility = 90 SpiderStats.Wisdom = 50 Dim Mob1 as new Monster(SpiderStats,"Araña 1") Dim Mob2 as new Monster(SpiderStats,"Araña 2") mob1.Statistics.Strength = 5 Monster Stats will be retrieve from a MySQL field, with the stats of each monster. I would need to Mob1 retain Strength value as 75, while Mob2 be changed to 5. I am really lost how to achieve this. Praying for your help... Regards, Amando _________________ ¡No lo intentes! Hazlo o no lo hagas, pero no lo intentes. 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]
