As others have pointed out the routine is "!EXIST" - look in APP.PROGS,
the code is there. All it does is open "GLOBAL.CATDIR" and attempts to
read a record keyed on the subroutine.name.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stevenson,
Charles
Sent: Friday, 18 March 2005 5:11 AM
To: [email protected]
Subject: [U2] [UV] make sure pgm exists before calling it.

Maybe I'm thinking of some other MV player, but isn't there a UV-defined
function that can be called to see if a subroutine exists so one can
check instead of calling and getting a runtime error?  I don't see it in
the pdfs.   Something like:

SUBRNAME = something
IF !EXISTS( SUBRNAME, number of args and other stuff )
   THEN CALL @SUBRNAME( arg1, arg2, . . . )
   ELSE forget about it

I'd swear I've done this sort of thing in the past, but I'm drawing a
blank.
Maybe I rolled my own, or I' m thinking of PI or AP or or . . .

TIA,
cds
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/


DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the 
intended recipient, please advise us by return e-mail immediately, and delete 
the e-mail and any attachments without using or disclosing the contents in any 
way. The views expressed in this e-mail are those of the author, and do not 
represent those of this company unless this is clearly indicated. You should 
scan this e-mail and any attachments for viruses. This company accepts no 
liability for any direct or indirect damage or loss resulting from the use of 
any attachments to this e-mail.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to