New topic: Is there a cleaner way to write this reeeeeally long line?
<http://forums.realsoftware.com/viewtopic.php?t=25248> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message XStylus Post subject: Is there a cleaner way to write this reeeeeally long line?Posted: Sat Nov 15, 2008 12:09 am Joined: Wed Nov 12, 2008 11:56 pm Posts: 8 I've got a single line of code that stretches reeeeeeeeeeeeaally long. I'm trying to determine if there is a cleaner way to write it. if s =hidden.editfield1.text then s=hidden.editfield2.text editfield2.text=editfield2.text+s s =hidden.editfield1.text // Between here goes LOTS of the above in elseifs that count all the way up to... elseif s=hidden.editfield159.text then s=hidden.editfield160.text editfield2.text=editfield2.text+s s=hidden.editfield159.text // And here's the reeeeeeally long line that I want to find a better way of implementing. elseif s<> hidden.editfield1.text or s<> hidden.editfield3.text or s<> hidden.editfield5.text or [continues...] s<> hidden.editfield159.text then editfield2.text=editfield2.text+s end Any suggestions would be welcomed. 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]
