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
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
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
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
[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: [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
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
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
/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
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
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
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
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
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
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
-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
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
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
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:
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
...@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
] 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
, 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
23 matches
Mail list logo