@Mecki.. What is your editor of choice, ie can you get it to indent 1 space? I've always been a standard FORMAT in ED fella, but the site I've just joined doesn't want that, code must start right up against the edge, & have 2 space indenting.. So hard to not instinctively FORMAT, & equally hard to find that missing 'END' when I can't simply format, since the code structure looks so foreign & squashed up.
Thanks Dennis On Apr 22, 2012 6:50 AM, "Mecki Foerthmann" <mec...@gmx.net> wrote: > Well, > > I prefer: > > IF A = "TEST" THEN > GOSUB DO.SOMETHING ;* Say why > END ELSE > GOSUB DO.SOMETHING.ELSE ;* The reason > END > > IMO much more readable - because you see immediately that is is a > conditional branching. > It is also easier maintainable if you want to add some more code later or > you need more conditions and want to change branching into case. > > And of course it will auto-indent correctly in my editor of choice ;-). > > On 20/04/2012 23:05, Kate Stanton wrote: > >> Rather than: >> >> BEGIN CASE >> CASE A = "TEST"; GOSUB DO.SOMETHING >> CASE 1; GOSUB DO.SOMETHING.ELSE >> END CASE >> >> or >> >> IF A = "TEST" THEN GOSUB DO.SOMETHING ELSE GOSUB DO.SOMETHING.ELSE >> >> I prefer: >> >> IF A = "TEST" THEN GOSUB DO.SOMETHING ;* Say why >> ELSE GOSUB DO.SOMETHING.ELSE ;* The reason >> >> lining up the GOSUBs under each other, with comment making it clear why. >> > ______________________________**_________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/**mailman/listinfo/u2-users<http://listserver.u2ug.org/mailman/listinfo/u2-users> > _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users