Technical data
B 
Target Language Compiler Error Messages
B-8
Function reached the end and did not return a value
Functions that are not declared as void or Output must return a value. If a 
return value is not desired, declare the function as 
void, otherwise ensure that 
it always returns a value.
Identifier 
identifier
 used on a %foreach statement was already in scope 
(Warning)
The argument to a %foreach statement cannot be defined prior to entering the 
%foreach.
Incorrect number of arguments to a macro (
number
 expected)
When invoking a function-like macro, too many arguments were passed to it. 
The extra arguments were ignored.
Indices must be constant integral numbers
An index used in a [] expression must be an integral number.
Invalid type for unary 
operator
This error occurs for the following operators under the given conditions:
Operator Reason for error
!
Operand to the logical not operator (!) must be a Number, 
Real, or Boolean.
-
Operand to the unary negation operator (-) must be a 
Number or Real.
+
Operand to the unary plus operator (+) must be a Number 
or Real.
~
Operand to the bitwise negation operator (~) must be a 
Number.










