Page 1 of 1

Pass-by-reference error

Posted: Thu Aug 07, 2014 5:48 pm
by barry.marcus
I am getting the message:

Pass-by-reference variables not allowed here

when I attempt to compile code with the line:

<BuildMarkupHitLists hitStartList=$&hitStartList hitEndList=$&hitEndList thisFilter=$terms data=$&phrase>

The definition of the function looks like this:

<a name=BuildMarkupHitLists PUBLIC hitStartList hitEndList thisFilter data project="">

I've never seen this before. Moreover, this line of code is several years old and has never been a problem before now!

What does this mean?

Pass-by-reference error

Posted: Thu Aug 07, 2014 6:00 pm
by barry.marcus
Never mind! I figured it out. I had removed an item in the <uses> directive that referenced the module that has the function. Apparently you can't pass variables by reference to a function that doesn't exist! :-)