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
BTW, when you are in the same routine you don't need "do
SHOW^PARMS(x,y,.z)", a "do SHOW(x,y,.z)" works too.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 90:31:04 |
Calls: | 6,496 |
Calls today: | 7 |
Files: | 12,100 |
Messages: | 5,277,565 |