Hi!
I have one problem. From one 4ge program, I run second 4ge, and I want to returning a number from second 4ge. I do this:
***** first 4ge
database baza
globals
define
ret_num integer
.
.
.
main
call funct1()
funct1()
run "sec_4ge.4ge" returning ret_num
display ret_num
end funct
**** second 4ge
database baza
globals
define pass_num integer
end globals
main
call proc1()
.
.
.
function proc1()
let pass_num=255
exit program pass_num
end function
---------------------------
When I start program, ret_num <> pass_num ????
Help me !!!!
Thanks all.
But ret_num <> pass_num
I have one problem. From one 4ge program, I run second 4ge, and I want to returning a number from second 4ge. I do this:
***** first 4ge
database baza
globals
define
ret_num integer
.
.
.
main
call funct1()
funct1()
run "sec_4ge.4ge" returning ret_num
display ret_num
end funct
**** second 4ge
database baza
globals
define pass_num integer
end globals
main
call proc1()
.
.
.
function proc1()
let pass_num=255
exit program pass_num
end function
---------------------------
When I start program, ret_num <> pass_num ????
Help me !!!!
Thanks all.
But ret_num <> pass_num