- Posts: 476
- Thank you received: 0
Return value from ocode call
5 years 10 months ago #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)
Attachment not found
I get debug message from psng_backup_offset correctly but nothing other 0 with debug in the parent macro.
Thanks
Please Log in to join the conversation.
5 years 10 months ago #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.
Please Log in to join the conversation.
5 years 10 months ago #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 to join the conversation.
Time to create page: 0.107 seconds
