>However, when you use DEFFUN what you are actually doing
>is creating a variable name. This must conform to the rules
>for naming variables, one of which is that it must begin with
Excellent replies. Thanks to those who replied! I've got it working now.
I've only been using UV for about 7 years
Functions in UV are implemented as subroutines. That is, the following are
equivalent.
FUNCTION MyName(Arg1,Arg2)
* my code here
RETURN(Result)
SUBROUTINE MyName(Result,Arg1,Arg2)
* my code here
RETURN
When you use CALL, you use the actual catalog name (whether it's in VOC or
GLOBAL.CATDIR).
Do you need to use the ! In the DEFFUN (and when you refer to the
function) if it's globally catalogued?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Barry Brevik
Sent: Wednesday, December 01, 2004 4:31 PM
To: U2-users (E-mail)
Subject: [U2] [UV] help
try using :
deffun MYFUNC(A) calling "!MYFUNC"
R = MYFUNC('HELLO WORLD')
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik
Sent: Wednesday, December 01, 2004 06:31 PM
To: U2-users (E-mail)
Subject: [U2] [UV] help with function() please
OK, I
try using :
deffun MYFUNC(A) calling "!MYFUNC"
R = MYFUNC('HELLO WORLD')
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Barry Brevik
Sent: Wednesday, December 01, 2004 06:31 PM
To: U2-users (E-mail)
Subject: [U2] [UV] help with function() please
OK, I