Barry, Almost. This will work: SUBROUTINE CALLME(INNERLABEL) * LABELLIST = "THISLABEL":@AM:"THATLABEL,":@AM:"THEOTHERLABEL" * LOCATE(INNERLABEL,LABELLIST;POS) THEN ON POS GOSUB THISLABEL, THATLABEL, THEOTHERLABEL END RETURN * * START OF SUBROUTINES * THISLABEL: .... RETURN * THATLABEL: ... RETURN * THEOTHERLABEL: ... RETURN
I typed this from memory, please forgive any typos. -- Charles Barouch [EMAIL PROTECTED] - Consulting [EMAIL PROTECTED] - ETL/Migration/Integration (718) 762-3884x1 Barry Brevik wrote: | 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/ | ------- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/