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 hate to be the asker of 2 questions in the same day, but...
If I create a file named MYFUNC and it looks like this:
FUNCTION MYFUNC(A)
PRINT 'A = ':A
RETURN('return value')
...and I put it in the same file (directory) as the other programs, I can
write another program and do:
DEFFUN MYFUNC(A)
R = MYFUNC('HELLO WORLD')
HOWEVER, if I globally catalog the function and call it !MYFUNC and I try to
do:
DEFFUN !MYFUNC(A)
R = !MYFUNC('HELLO WORLD')
... the compiler barfs with "'!' unexpected, Was expecting: Variable Name
(UNDEFINED)" and "'!' unexpected, Was expecting: Assignment Operator".
However, I can now "CALL !MYFUNC('TEST')".
What I wanted was a global function, so this is not floating my boat. Anyone
know what's going on here?
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/