Nearly right!

I think it's  

ITS.THERE = @FALSE
CALL !EXIST(SUBRNAME, ITS.THERE)
IF ITS.THERE THEN
   CALL @SUBRNAME( arg1, arg2, . . . )
   etc.
END ELSE
   * It doesn't exist 
END


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stevenson,
Charles
Sent: Friday, 18 March 2005 10:11
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/
The information contained in this Internet Email message is intended
for the addressee only and may contain privileged information, but not
necessarily the official views or opinions of the New Zealand Defence Force.
If you are not the intended recipient you must not use, disclose, copy or 
distribute this message or the information in it.

If you have received this message in error, please Email or telephone
the sender immediately.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to