Description: |
| | Instructs the Program Flow to branch to, execute the code within, and then return from a Function with a value. |
Syntax: |
| | The following shows the format of the Function Call syntax.
| Visual Basic & BASIC | C & Java |
| [<exp><op>]<fun[(args)]>[<op><exp>] | [<exp><op>]<fun>[(args)][<op><exp>]; |
The following table lists the elements of the Function Call syntax
| Element | Description |
| Basic | C & Java |
| <funname> | <funname> | The name of the Function to branch to. |
| <args> | <args> | An optional list of numeric expressions that are separated by commas. |
| <exp> | <exp> | An optional expression. |
| <op> | <op> | An optional operator that performs a conjunction between the expression and the function. |
|
Operation: |
| | See the Function Construct's operation Caution: Procedures can be recursive; that is, hey can call themselves. This can lead to stack overflow and must be used carefully. |
Remarks: |
| | The values specified by the <argumentlist> element (if any) are passed to the Function by value. Function can be recursive. See caution below. The ability to pass values to Functions was added to the ooPIC compiler in Version 3.0. In C and Java syntax, the use of prototypes is not necessary. |
Example: |
| |
|
Related Items:
|
| | Unconditional Branch |
Version History and Bug List: |
| | Firmware Ver A1: Introduced. Bugs: No known bugs. |