New topic: Dynamic Control Arrays
<http://forums.realsoftware.com/viewtopic.php?t=26359> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message DaveS Post subject: Dynamic Control ArraysPosted: Sat Feb 07, 2009 12:41 pm Joined: Sun Aug 05, 2007 10:46 am Posts: 824 Location: San Diego, CA This subject has been touched alot , and up to now I have had no problem using Control Arrays... I am working on a project using the CustomEditField from Alex Restrepo [which BTW is amazing ] In my main window I have 3 controls TextEditor [Alex's control] SBVertical [scrollbar] SBHorizontal [scrollbar] Each of these has an Index of 0 to make them control arrays. I am trying to create a new instance at runtime like this Code: dim hsb as scrollbar dim vsb as scrollbar dim cef as CustomEditField hsb=new horizontalsb vsb=new verticalsb cef=new texteditor It creates the new scrollbars, but I get a NILOBJECT EXCEPTION on the "new texteditor" line Texteditor(0) is there, it does exist... it displays.. it works. Has anyone else experienced this? or done this with the CustomEditField? I have also tried using just a single TEXTEDITOR control...... and having an array of customeditfields But saying TEXTEDITOR=myArrayofCEF(1) doesn't seem to work either _________________ Dave Sisemore MacPro, RB2008r3.1 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 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
