Unassigned function (AREV Specific)
At 28 JUL 2005 06:31:08PM Ellen Fox wrote:
We have upgraded to Arev 3.12 within our code there is a function
entitled UNASSIGNED. I though this was used to check if a variable
was not unassigned, but I can't seem to get it to work. Does
anybody know anything about it?
At 28 JUL 2005 08:22PM Paul Rule wrote:
Thats correct.
In your program, use DECLARE FUNCTION UNASSIGNED
Then you can use it.
eg:
If UNASSIGNED(test) then test="
At 02 AUG 2005 04:26PM Jim Jefferson wrote:
And we use it a lot here, to make subroutines callable from other programs or the command line/VOC items, ala:
(not good code, but illustrative)
expendable subroutine xxx(arg1, arg2, etc.)
if (unassigned(arg1)) then
called from a command line; parse it for the args)cmd=@sentencearg1=field(cmd,' ',2)arg2=field(cmd,' ',3)...and so on...end
At 02 AUG 2005 08:41PM Ellen Fox wrote:
It was a variable definition issue. Thanks