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/

Reply via email to