New topic: Returning the draworder in CustomTabPanelTabs
<http://forums.realsoftware.com/viewtopic.php?t=46427> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message asiammyself Post subject: Returning the draworder in CustomTabPanelTabsPosted: Thu Jan 03, 2013 1:11 pm Joined: Mon Dec 31, 2012 1:31 pm Posts: 3 Trying to get CustomTabPaneltabs to have drag and drop tabs. Still a long way from that, but right now trying to concentrate on this problem. Currently I'm just trying to return whatever the Method drawIndex returns. So I guess it is a newbie question but drawIndex returns an integer named i. I want to return i in a text box. So I made a button with the following code on activate: textfield.Text = drawIndex So I run and get an error saying drawIndex does not exist but it does and I made it public? Maybe I'm just not assigning it correctly? Could anyone help me out in returning an integer from a method? Top Akiland Post subject: Re: Returning the draworder in CustomTabPanelTabsPosted: Fri Jan 04, 2013 6:40 am Joined: Tue Jan 04, 2011 3:02 am Posts: 1070 Location: Jönköping, Sweden You can set the Return Type of your Method to Integer. In that Method you return the value that you want. Return your_integer_value textField.text = Str(YourMethod()) Hope it helps a bit I may have gor your question wrong _________________ http://www.linkedin.com/in/albinkiland Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8 REAL.Studio Web Edition 2011r3 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ]
-- 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]
