I guess you could use:

SUBNAME="XXXX"
GOSUB SUBLIST
.
.
.
SUBLIST:
   BEGIN CASE
   CASE SUBNAME="SUB1"
      .
      .
   CASE SUBNAME="SUB2"
      .
      .
   END CASE
RETURN
.
.

George


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik
> Sent: Wednesday, February 08, 2006 2: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
> [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