| 1234567891011121314151617181920212223242526272829303132333435 |
- <html>
- <head>
- <meta http-equiv="Content-Type"
- content="text/html; charset=iso-8859-1">
- <title>Language Reference - Functions</title>
- <link rel="stylesheet" href="lang_ref.css" type="text/css">
- </head>
- <body><br>
- <span class="Command"> Functions </span>
- <blockquote>
- <p> A function is defined using the 'Function' keyword: </p>
- <blockquote>
- <p><i>Function {funcname}{typetag}( {params} ) <br>
- {statements} <br>
- End Function </i></p>
- <p>{<b>funcname</b>} is any valid identifier. </p>
- <p> {<b>typetag</b>} is the type of value returned by the function. If {typetag}
- is omitted, the function returns an integer value by default. </p>
- <p> {<b>params</b>} is a comma separated list of variables which is passed
- to the function when it is called, each parameter may be given an optional
- type tag. Parameters are always local. </p>
- </blockquote>
- <p> A function may use the '<b>Return</b>' statement to return a result. Return
- may optionally be followed by an expression. </p>
- <p> If there is no Return statement, or a Return without any expression is used,
- the function returns a default value of 0 for numeric functions, an empty
- string ("") for string functions, or a 'Null' object for custom type functions.
- </p>
- <p> </p>
- </blockquote>
- </body>
- </html>
|