New topic: PushButton
<http://forums.realsoftware.com/viewtopic.php?t=47302> Page 1 of 1 [ 6 posts ] Previous topic | Next topic Author Message John Cooper Post subject: PushButtonPosted: Fri Mar 15, 2013 7:47 pm Joined: Fri Mar 15, 2013 7:35 pm Posts: 3 Hi Folks, I am revisiting a program I wrote with RB Version 4, I am now using Version 4.3 and have problems with PushButton. The original had a line PushButton_action and it worked fine, in 4.3 it tells me "This method requires more parameters than were passed" If I go to the help it shows PushButton.action, if I try this i I get told "This property does not exist" despite being in the Language Reference. It also shows it as PushButton.action () but I get the same results with either the "_" or the "." with the appropriate error message as I add the (). Any ideas or pointers to where I am going wrong. BTW I think I am going to stop with the upgrades, they keep moving the goalposts and it is extremely frustrating getting my applications to run again. Top HMARROQUINC Post subject: Re: PushButtonPosted: Fri Mar 15, 2013 11:19 pm Joined: Sun Jan 25, 2009 5:11 pm Posts: 531 Location: Guatemala, Central America Could we see some example code where it's failing? _________________ Future RS guru. Ride the world! Top John Cooper Post subject: Re: PushButtonPosted: Sat Mar 16, 2013 12:11 am Joined: Fri Mar 15, 2013 7:35 pm Posts: 3 This code works fine on a machine running Ver 4 but fails on another running 4.3 OpWeightEntryBox.Text = MTOMBox.Text cmdCalculate_action Top HMARROQUINC Post subject: Re: PushButtonPosted: Sat Mar 16, 2013 12:19 am Joined: Sun Jan 25, 2009 5:11 pm Posts: 531 Location: Guatemala, Central America Move the code to a method. I always thought that having code in the action event would eventually lead to problems. _________________ Future RS guru. Ride the world! Top John Cooper Post subject: Re: PushButtonPosted: Sat Mar 16, 2013 12:25 am Joined: Fri Mar 15, 2013 7:35 pm Posts: 3 Thanks, I will try that. Cheers, John. Top timhare Post subject: Re: PushButtonPosted: Sat Mar 16, 2013 2:32 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 12155 Location: Portland, OR USA Quote:cmdCalculate_action This is relying on an internal implementation detail that should never have been disclosed. If you want to programatically push a button use cmdCalculate.Push But putting the code in a method is preferred. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 6 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]
