New topic: Containercontrol editfield not accessible
<http://forums.realsoftware.com/viewtopic.php?t=27995> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Beowulf Post subject: Containercontrol editfield not accessiblePosted: Tue May 12, 2009 5:37 am Joined: Sun Mar 09, 2008 6:38 am Posts: 15 Location: Oldenzaal, NL I have a problem that my containercontrol editfield is not accessible within the window that im creating it on.. The code that im using to show the editfield: Code:dim n as new dynamicEDbox n.EmbedWithin Firehol n.top = 14 + (r * 23) n.Left = 515 n.Visible = true n.Enabled = true n.EDbox.text = lines(i) Where dynamicEDbox is the containercontrol and EDbox the editfield This is going allright and the editfields are being displayed with the right data. Then after editing a field I want to save it again by the push of a button. I tried numorous attempts of getting the data in the first place but no success. If I try using edbox as an array to get my text: Code:dim i as integer for i=0 to Ubound(DynamicEDbox.EDbox(i)) if EDbox(i).text <> "" then EDfirehol1.appendtext EDbox(i).text + chr(13) end next EDfirehol1.text = trim(EDfirehol1.text) then I get the error: "this type is private, and can only be used within its module" I found a workaround by not using a containercontrol but I need to create multiple editfield later on and with an containercontrol its so much easier.. just getting the data back is what troubles me. Thx in advance 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]
