Return value from ocode call

More
23 Dec 2020 02:48 - 23 Dec 2020 02:50 #192913 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)

File Attachment:

File Name: psng_backu...fset.ngc
File Size:1 KB



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.

More
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.
The following user(s) said Thank You: alkabal

Please Log in or Create an account to join the conversation.

More
23 Dec 2020 03:48 #192920 by alkabal
Hi thanks for reply and a thousand of thanks that work like a charm (make it global as you says adding "_")

Thanks a lot

Please Log in or Create an account to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum