Yes, as I said before because of the limitation of U2 Basic sometimes one has to use functions for different reasons but only if this allows to avoid passing parameters in COMMONs. In my example having program that does several things means that COMMON will be used only in one program to store data between different calls to the program. This is not ideal but it is much better then to have the same COMMON in many different programs.
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, February 16, 2006 3:35 PM 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/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
