Function Return Value
jcerecke
Posts: 40
I copy and paste the example from the help file and still get an error...
DEFINE_FUNCTION INTEGER myFunction (INTEGER Var0)
{
INTEGER nBytes
STACK_VAR RESULT
nBytes = 0
RETURN = Var0 + nBytes
RETURN RESULT
}
ERROR: program.axs(66): C10227: RETURN without a <value> allowed only inside a subroutine
Why!?
DEFINE_FUNCTION INTEGER myFunction (INTEGER Var0)
{
INTEGER nBytes
STACK_VAR RESULT
nBytes = 0
RETURN = Var0 + nBytes
RETURN RESULT
}
ERROR: program.axs(66): C10227: RETURN without a <value> allowed only inside a subroutine
Why!?
0
Comments