function in baiscscript

edited June 2005 in FastScript
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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.