What has the length of the program to do with it?
I always abide to the rule that a for next counter in any internal subroutine has to be unique. That way even if the sub is called from within a for next loop the counters never conflict. So it doesn't make any difference whatsoever if a program is 80 or 8000 lines long.


BTW a program with 8000 lines is usually a sign of poor design.

On 26/01/2012 19:02, Wjhonson wrote:
You've never worked on programs that are 8000 lines long I take it :)




-----Original Message-----
From: John Hester<jhes...@momtex.com>
To: U2 Users List<u2-users@listserver.u2ug.org>
Sent: Thu, Jan 26, 2012 10:49 am
Subject: Re: [U2] Passing by Value


I like to use increasing roman numerals:
FOR I = 1 TO COUNTER
  GOSUB PROCESS
EXT I
PROCESS:
OR II = 1 TO COUNTER2
  FOR III = 1 TO COUNTER3
    FOR IV = 1 TO COUNTER4

    NEXT IV
  NEXT III
EXT II
ETURN
-----Original Message-----
rom: u2-users-boun...@listserver.u2ug.org
mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
ent: Thursday, January 26, 2012 10:09 AM
o: u2-users@listserver.u2ug.org
ubject: Re: [U2] Passing by Value

n a related note, any clever ideas to localize a variable to a local
ubroutine?
For I = 1 to 10
   GOSUB PROCESS
ext I
top
3000 Lines of code later....
PROCESS:
OR I = 1 TO 20
RINT I
EXT I
ETURN
______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.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

Reply via email to