Hmm... Not sure why Outlook put the subroutine code all on one line.
I'll try again:

CALL NON.MODIFYING.SUB (THIS.VAR)

SUBROUTINE NON.MODIFYING.SUB (GLOBAL.THIS.VAR)
THIS.VAR = GLOBAL.THIS.VAR
THIS.VAR = THAT.VAR
RETURN

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of John Hester
Sent: Thursday, January 26, 2012 9:56 AM
To: U2 Users List
Subject: Re: [U2] Passing by Value

Well, that's a neat trick I've never known about.  Once again, this list
proves it's an invaluable resource.

I've always done it on the subroutine side like so:

CALL NON.MODIFYING.SUB (THIS.VAR)

SUBROUTINE NON.MODIFYING.SUB (GLOBAL.THIS.VAR) THIS.VAR =
GLOBAL.THIS.VAR THIS.VAR = THAT.VAR RETURN

-John
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to