Hmmm... A data entry program which goes from prompt#20 backward thru prompt#1 ... the users'd LOVE that!
-Keith ----Original Message---- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin King Sent: Friday, September 30, 2005 7:03 AM To: [email protected] Subject: RE: [U2] Good Programming Practice Question......... >> FOR X = 1 TO PROMPT.CNT >> *some code here* >> *Back up one prompt* >> X = X - 1 - (X # 1) >> NEXT X > > One more case for looping backwards! It amazes me how much complex > code folks have written over the years to backup after removing a > value from a list, when all the time if the loop were written to go > from the back to the front the backing up logic is completely > unnecessary. > > -K ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
