Duke schrieb am Dienstag, 26. Oktober 2021 um 00:58:54 UTC+2:
Noob here again ...
[code]
#!/usr/bin/mumps
PARMS
; Parameter passing example routine
SHOW(first,second,third)
write !,"First value: ",first
write !,"Second value: ",second
set third="Modified"
write !,"Third value: ",third
quit
set x=1,y="B"
do SHOW^PARMS(x,y,.z)
[/code]
─› ./PARMS.mps <99>
First value:
*** in or near line 5:
write !,"First value: ",first
*** E17 Variable not found
BUT, it's there in the formal parameters - is it not?
--
Duke
I think the problem is, that the routine gets in Line 5 without being called. I'd put the do SHOW^PARMS(x,y,.z) before the SHOW label followed by q QUIT.
Jens
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)