Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
passing/returning integer in function line
#1
Hi Gintaras,
sometimes it works that I can pass/return an integer variable to a custom function via function line like

Function Func164
Code:
Copy      Help
function v int&
j = v+5

I know I can use ret function line to achieve this but not ok if I want to return many integer variables that come out of function.
Alternatives I can do are pass as str&strvar using val(strvar) on either end or pass ARRAY(int) or a custom variable type with integer members.
However, it's weird that sometimes above works and sometimes returns 0 and sometimes returns error.

Thanks,
S
#2
maybe

function# v int&j

j= v+5


Forum Jump:


Users browsing this thread: 1 Guest(s)