Re: *** GMX Spamverdacht *** Re: [U2] DO/WHILE vs IF THEN

2009-03-31 Thread Scott Ballinger
wrote: LOOP WHILE READNEXT does not work on D3. Mark Johnson - Original Message - From: Keith Johnson [DATACOM] kei...@datacom.co.nz To: u2-users@listserver.u2ug.org Sent: Monday, March 02, 2009 7:38 PM Subject: Re: [U2] DO/WHILE vs IF THEN Mark Johnson suggested the following

Re: *** GMX Spamverdacht *** Re: [U2] DO/WHILE vs IF THEN

2009-03-31 Thread Mecki Foerthmann
does not work on D3. Mark Johnson - Original Message - From: Keith Johnson [DATACOM] kei...@datacom.co.nz To: u2-users@listserver.u2ug.org Sent: Monday, March 02, 2009 7:38 PM Subject: Re: [U2] DO/WHILE vs IF THEN Mark Johnson suggested the following change Before GOOD.ANS=FALSE LOOP UNTIL

Re: *** GMX Spamverdacht *** Re: [U2] DO/WHILE vs IF THEN

2009-03-30 Thread Mecki Foerthmann
have you tried LOOP WHILE READNEXT ID DO ? MAJ Programming wrote: LOOP WHILE READNEXT does not work on D3. Mark Johnson - Original Message - From: Keith Johnson [DATACOM] kei...@datacom.co.nz To: u2-users@listserver.u2ug.org Sent: Monday, March 02, 2009 7:38 PM Subject: Re: [U2] DO

Re: [U2] DO/WHILE vs IF THEN

2009-03-30 Thread Charlie Noah
SETTING P.AM THEN P.AM -= 1 ; EXIT NEXT X - Original Message From: Keith Johnson [DATACOM] kei...@datacom.co.nz To: u2-users@listserver.u2ug.org Sent: Monday, March 2, 2009 7:38:16 PM Subject: Re: [U2] DO/WHILE vs IF THEN Mark Johnson suggested the following change Before GOOD.ANS=FALSE LOOP

RE: [U2] DO/WHILE vs IF THEN

2009-03-30 Thread George Gallen
[mailto:owner-u2- us...@listserver.u2ug.org] On Behalf Of Laurie Blain Sent: Monday, March 30, 2009 10:54 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] DO/WHILE vs IF THEN Another 2 cents I agree with Charlie. You have to think like an end user when you ask for input. At one time I

Re: *** GMX Spamverdacht *** Re: [U2] DO/WHILE vs IF THEN

2009-03-30 Thread MAJ Programming
*** Re: [U2] DO/WHILE vs IF THEN have you tried LOOP WHILE READNEXT ID DO ? MAJ Programming wrote: LOOP WHILE READNEXT does not work on D3. Mark Johnson - Original Message - From: Keith Johnson [DATACOM] kei...@datacom.co.nz To: u2-users@listserver.u2ug.org Sent: Monday

Re: [U2] DO/WHILE vs IF THEN

2009-03-30 Thread MAJ Programming
is (are?). Mark - Original Message - From: Charlie Noah cwn...@comcast.net To: u2-users@listserver.u2ug.org Sent: Monday, March 30, 2009 4:00 AM Subject: Re: [U2] DO/WHILE vs IF THEN Another 2 cents here. If not using a global input routine, I usually use this syntax: LOOP prompt

Re: [U2] DO/WHILE vs IF THEN

2009-03-29 Thread MAJ Programming
LOOP WHILE READNEXT does not work on D3. Mark Johnson - Original Message - From: Keith Johnson [DATACOM] kei...@datacom.co.nz To: u2-users@listserver.u2ug.org Sent: Monday, March 02, 2009 7:38 PM Subject: Re: [U2] DO/WHILE vs IF THEN Mark Johnson suggested the following change

Re: [U2] DO/WHILE vs IF THEN

2009-03-29 Thread MAJ Programming
/Enter=Y) :;INPUT ANS. But for a pure Y or N, the null value passes. - Original Message - From: Jacques G. jacque...@yahoo.com To: u2-users@listserver.u2ug.org Sent: Monday, March 02, 2009 8:46 PM Subject: Re: [U2] DO/WHILE vs IF THEN The case can be tested also if n/y are acceptable

Re: [U2] DO/WHILE vs IF THEN

2009-03-02 Thread Keith Johnson [DATACOM]
Mark Johnson suggested the following change Before GOOD.ANS=FALSE LOOP UNTIL GOOD.ANS DO PRINT ENTER 'Y' OR 'N' :;INPUT ANS IF ANS=Y OR ANS=N THEN GOOD.ANS=TRUE REPEAT after LOOP WHILE TRUE DO PRINT ENTER 'Y' OR 'N' :;INPUT ANS IF ANS=Y OR ANS=N THEN EXIT REPEAT These forms all work

Re: [U2] DO/WHILE vs IF THEN

2009-03-02 Thread Jacques G.
THEN P.AM -= 1 ; EXIT NEXT X - Original Message From: Keith Johnson [DATACOM] kei...@datacom.co.nz To: u2-users@listserver.u2ug.org Sent: Monday, March 2, 2009 7:38:16 PM Subject: Re: [U2] DO/WHILE vs IF THEN Mark Johnson suggested the following change Before GOOD.ANS=FALSE LOOP UNTIL

[U2] DO/WHILE vs IF THEN

2009-02-27 Thread George Gallen
OK Aside from programming styles Is there any functional difference between WHILE expression DOand IF NOT(expression) THEN EXIT and UNTIL expression DOand IF expression THEN EXIT First I thought that the DO/WHILE would activate as soon as the condition occurred and drop out of

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Martin Phillips
Hi George, Is there any functional difference between WHILE expression DOand IF NOT(expression) THEN EXIT and UNTIL expression DOand IF expression THEN EXIT None at all. Use of WHILE/UNTIL is sometimes easier to read. Conversely, some exit conditions can only be done using

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Jacques G.
increment. Repeating the increment and print statement like your example does defeats the purpose of the loop. - Original Message From: George Gallen ggal...@wyanokegroup.com To: Ardent u2-users@listserver.u2ug.org Sent: Friday, February 27, 2009 11:20:15 AM Subject: [U2] DO/WHILE vs

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread George Gallen
To: u2-users@listserver.u2ug.org Subject: Re: [U2] DO/WHILE vs IF THEN CTR =0 LOOP WHILE CTR 4 CTR+=1 PRINT CTR REPEAT FOR CTR = 0 TO 4 PRINT CTR NEXT CTR CTR = 0 LOOP CTR += 1 PRINT CTR IF CTR 4 THEN EXIT REPEAT If you're going to use a counter, might as well use

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread David A. Green
-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of George Gallen Sent: Friday, February 27, 2009 9:20 AM To: Ardent Subject: [U2] DO/WHILE vs IF THEN OK Aside from programming styles Is there any functional difference between WHILE expression DO

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Israel, John R.
Israel -Original Message- From: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of David A. Green Sent: Friday, February 27, 2009 1:25 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] DO/WHILE vs IF THEN George, In my opinion you lose

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Nick Gettino
See below. Nicholas M Gettino | Director of Development | EnRoute Emergency Systems, an Infor company | office: 813-207-6998 | fax: 678-393-5389 nick.gett...@infor.com | www.enroute911.com First time through... Example: 0001: CTR=0 0002: LOOP First pass

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Dianne Ackerman
I actually think, from the distant reaches of my memory, that this might behave differently depending on the uv flavor... -Dianne Nick Gettino wrote: See below. Nicholas M Gettino | Director of Development | EnRoute Emergency Systems, an Infor company | office: 813-207-6998 | fax:

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread MAJ Programming
the Jurrasic Pick era. My 1 cent, Mark Johnson Maybe I follow poor programmers who got flag-crazy. - Original Message - From: David A. Green dgr...@dagconsulting.com To: u2-users@listserver.u2ug.org Sent: Friday, February 27, 2009 1:25 PM Subject: RE: [U2] DO/WHILE vs IF THEN George, In my

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread George Gallen
...@listserver.u2ug.org] On Behalf Of Nick Gettino Sent: Friday, February 27, 2009 2:34 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] DO/WHILE vs IF THEN See below. Nicholas M Gettino | Director of Development | EnRoute Emergency Systems, an Infor company | office: 813-207-6998 | fax: 678-393

Re: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Jeff Schasny
] On Behalf Of David A. Green Sent: Friday, February 27, 2009 1:25 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] DO/WHILE vs IF THEN George, In my opinion you lose the elegance and readability of the LOOP construct when you use EXIT. Code is easier to debug and enhance when Loops

RE: [U2] DO/WHILE vs IF THEN

2009-02-27 Thread Israel, John R.
, February 27, 2009 3:23 PM To: u2-users@listserver.u2ug.org Subject: Re: [U2] DO/WHILE vs IF THEN I should offer a contrary opinion. I support many sets of differently developed code with all my clients. When properly indented, the EXIT is a logical way to conclude the visit in the loop without