Perhaps a little explanation is in order here.

There are no global variables in u2.
Thus the need to pass the variables to the subroutine.

If you have truly global variables - used in many subroutines - you could
put them in a common block.
(  add a line
  COMMON  /name/  REC, VAR
  in every program that use them )


If the program stays as simple (small) as it is now a gosub is neater than an external
routine:

   ...
  read  x from y else null
 gosub sub
 ...

 sub:
    print ...
    return

...
end


hth
--  mats

Hi

You need to pass  REC as a parameter to the subroutine see below:
-- mats
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to