Dennis, You didn't mention if you're on UV or UD, but the FORMAT command in AE (in UD) has options for margin and indent. You can do FORMAT -M0 -I2 to get the format you specified.
Larry Hiscock Western Computer Services -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of dennis bartlett Sent: Saturday, April 21, 2012 4:06 PM To: U2 Users List Subject: Re: [U2] Case Statement with only two cases... or for that matter... one case @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://listserv > er.u2ug.org/mailman/listinfo/u2-users> > _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org 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