function in baiscscript
HI,
when i define a function in basicscript,i get a error. my code like this:
function Calc(r0 as double) as double
Calc=10.3
end function
the error information is :Not enough actual parameters.
is this a bug?
///////////////////
i found it's my mistake that result the error.
the correct function define should be:
function Calc(r0 as double) as double
return(10.3) //can't use the function name as VB!
end function
when i define a function in basicscript,i get a error. my code like this:
function Calc(r0 as double) as double
Calc=10.3
end function
the error information is :Not enough actual parameters.
is this a bug?
///////////////////
i found it's my mistake that result the error.
the correct function define should be:
function Calc(r0 as double) as double
return(10.3) //can't use the function name as VB!
end function