Tiny sidebar to this request.
If there are dozens of programs calling the same sub and you need a new
variable passed by one for e new purpose and don't want to visit the other
calling programs, I've found that one of the variables could have its second
attribute utilized for this new value.

The sub itself should grab the second attribute and reset the variable to
itself. Thus you only change the calling program in question and the sub.

SUBROUTINE ABC (X,Y)
NEW.THING=X<2>
X=X<1>
blah, blah, blah.

Maybe this helps.
Mark Johnson
----- Original Message -----
From: "Dianne Ackerman" <[EMAIL PROTECTED]>
To: "U2 List Server" <[email protected]>
Sent: Friday, July 29, 2005 1:16 PM
Subject: [U2] [UV] get program name


> Is there a way in basic to get the name of the program you're in?  I
> want to pass the name of the program to a subroutine for error reporting
> and I don't want to have to set a variable PROG.NAME = "THIS.PROG.NAME"
> in every program.  I was hoping for some kind of @PROGNAME variable, but
> I can't find one.
> Thanks!
> -Dianne
> -------
> 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/

Reply via email to