The answer is no, and as was mentioned before you could use a CASE to
check for input values and gosub accordingly.  Still, seems like an
awefully perilous way to code, especially six months later when you're
trying to figure out what the thing is intended to be doing.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Barry Brevik
Sent: Wednesday, February 08, 2006 12:04 PM
To: U2-users (E-mail)
Subject: [U2] [UV] GOSUB variable-name?

I would like to pass a variable (let's call it "SUBNAME") to a
subroutine, and this variable would contain the name of an existing
label which I will call "TEST".

The subroutine can then do GOSUB TEST, but GOSUB SUBNAME will not
compile.

Aside from CALL @VARIABLENAME, is there any way to branch indirectly
in universe? This would be really useful for me.

Barry Brevik
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.2/253 - Release Date:
2/7/2006
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to