This compiler error is similar to the duplicate variable message, but will occur only if, in a function, you have a variable name which is already declared in either of the global, input, or var sections of the macro's main body.
function MyFunction(nSomeDate): s
nRunDate // variable already declared in var section below
// error generated even if the function is never called
This error message will be generated even if the function referred to is never used anywhere in the macro.
See also: variable is used in one or more function prototypes.
Topic 180995, last updated on 18-Apr-2020