Return value from ocode call
23 Dec 2020 02:48 - 23 Dec 2020 02:50 #192913
by alkabal
Return value from ocode call was created by alkabal
Hi
Did you know is there any reasons for this code does not return any value ?
in a my macro :
o<psng_backup_offset> call ; does not work for restoring value
(DEBUG,callbackbackoffset #1 #2 #3 #4)
I get debug message from psng_backup_offset correctly but nothing other 0 with debug in the parent macro.
Thanks
Did you know is there any reasons for this code does not return any value ?
in a my macro :
o<psng_backup_offset> call ; does not work for restoring value
(DEBUG,callbackbackoffset #1 #2 #3 #4)
I get debug message from psng_backup_offset correctly but nothing other 0 with debug in the parent macro.
Thanks
Attachments:
Last edit: 23 Dec 2020 02:50 by alkabal.
Please Log in or Create an account to join the conversation.
23 Dec 2020 03:24 #192917
by MaHa
Replied by MaHa on topic Return value from ocode call
#<_value> contains the returned value. It is overwritten each time after finishing any subroutine, so you need to save it.
(debug,#<_value>)
Otherwise you could make it global: #<_backup_offset>. Then you have the value handy. don't even need the return.
(debug,#<_value>)
Otherwise you could make it global: #<_backup_offset>. Then you have the value handy. don't even need the return.
The following user(s) said Thank You: alkabal
Please Log in or Create an account to join the conversation.
23 Dec 2020 03:48 #192920
by alkabal
Replied by alkabal on topic Return value from ocode call
Hi thanks for reply and a thousand of thanks that work like a charm (make it global as you says adding "_")
Thanks a lot
Thanks a lot
Please Log in or Create an account to join the conversation.
Time to create page: 0.056 seconds