I initially thought that same thing :) However, since READ and WRITE are both I/O functions and the name of the routine is IO.PROGRAM which fit the description
Whereas, GetCustomerBalance and PaintScreen are two unrelated (supposedly) subroutines. I'm guessing the answer is it's ok to combine like subroutines into one subroutine with a passed function variable but not ok to combine unlike subroutines with a passwd subroutine variable?? George > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > [EMAIL PROTECTED] > Sent: Thursday, February 16, 2006 10:35 AM > To: [email protected] > Subject: Re: [U2] [UV] GOSUB variable-name? > > > On 14 Feb 2006, "Serguei" <[EMAIL PROTECTED]> wrote: > > > Why not instead of CALL SomeProg('GetCustomerBalance',...) > > and CALL SomeProg('PaintScreen',...) > > do: > > CALL GetCustomerBalance > > Call PaintScreen > > On 16 Feb 2006, "Serguei" <[EMAIL PROTECTED]> wrote: > > > ... never again anywhere in your programs you will > > have to write > > READ RECORD FROM FILE,KEY THEN > > or > > READ RECORD TO FILE,KEY THEN > > Just do: > > CALL IO.PROGRAM('READ',TABLE.NAME,KEY,RECORD,OK) > > or > > CALL IO.PROGRAM('WRITE',TABLE.NAME,KEY,RECORD,OK) > > Okay - which is it? Should one write a single routine to > handle multiple > functions or not? > > You have promoted both viewpoints as absolutes. > > --Tom Pellitieri > Century Equipment ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
