An ampersand (&) in the code is used outside a function call. The ampersand should precede only a variable name (which has an address), and it should only be used to pass the variable by reference to a function that accepts the parameter by reference.
Passing variables by reference allows the function to change the value of the variable.
![]() |
---|
JScript does not allow functions to be defined with reference parameters. JScript provides the ampersand to allow calls to external objects that take reference parameters. |
To correct this error
-
Make sure that the ampersand (&) precedes a variable name in a call to a function and that the function accepts the parameter by reference.