Description: |
| | Instructs the Program Flow to branch to, execute the code within, and then return from a Procedure. |
Syntax: |
| | The following shows the format of the Procedure Call syntax.
| Visual Basic & BASIC | C & Java |
| Call <procedurename>[(<argumentlist>)] | <procedurename>[(<argumentlist>)]; |
The following table lists the elements of the Procedure Call syntax
Element | Description |
Basic | C & Java |
| Call | | Procedure Call beginning keyword. OPTIONAL, the call is not required. In C/Java call is not supported and will cause a compiler error. |
| <procedurename> | <procedurename> | The name of the Procedure to branch to. |
| <argumentlist> | <argumentlist> | An optional list of numeric expressions that are separated by commas. |
|
Operation: |
| | See the Procedure Construct's operation Caution: Procedures can be recursive; that is, they can call themselves. This can lead to stack overflow and must be used carefully, preferably not at all. |
Remarks: |
| | The values specified by the <argumentlist> element (if any) are passed to the Procedure by value. In C and Java syntax, the use of prototypes is not needed. The ooPIC compiler is capable of determining the correct usage without them. |
Example: |
| | See the examples for the Procedure Construct. |
Related Items:
|
| | Procedure Declaration Unconditional Branch |
Version History and Bug List: |
| | Firmware Ver A1: Introduced. Bugs: No known bugs. |