Please enable JavaScript to view this site.


Navigation: Macros > Macro Language > Compiler Messages > Errors

Variable is used in one or more function prototypes

Scroll Prev Up Next More

This compiler error is similar to the duplicate variable message and will occur if one of the variables declared in either of the global, input, or var sections of the macro's main body, is also used as one of the parameters of the prototype declaration of a function.


For example:

function MyFunction(nRunDate): s
   return 'OK'
   nRunDate  // variable already used in function prototype above
   // error generated ONLY if the function is called
   sResult = MyFunction(n_TokenDate)

This error message will only be generated even if the function referred to is used somewhere in the macro.


See also: variable is already declared in the macro's main body.


Topic 181000, last updated on 18-Apr-2020