Im trying to make a function that can handle LONGs and SINGLEs as inputs.
I am confused about my declarations:
FUNCTION MaxList( Var1 AS SINGLE, Var2 AS SINGLE ) AS SINGLE
blah
Blah
blah
END FUNCTION
even tho I have declared Var1 and Var2 as SINGLEs I want to be able to call the function with LONGs ie
Global i AS LONG, J AS LONG, x AS SINGLE
x = Maxlist( i, j )
is this BYVAL or BYCOPY?
------------------
Kind Regards
Mike
I am confused about my declarations:
FUNCTION MaxList( Var1 AS SINGLE, Var2 AS SINGLE ) AS SINGLE
blah
Blah
blah
END FUNCTION
even tho I have declared Var1 and Var2 as SINGLEs I want to be able to call the function with LONGs ie
Global i AS LONG, J AS LONG, x AS SINGLE
x = Maxlist( i, j )
is this BYVAL or BYCOPY?
------------------
Kind Regards
Mike
Comment