calculation syntax checker bug

I have a field name “rel_function” that I want to use in a calculation.
When verifying the calculation it tells me I use a function keyword.

I understand I can’t use “function” but it seems the syntax checker doesn’t see the difference and therefore I can’t use this field in any calculation.
I consider this a bug.

Servoy Developer
Version R2 2.1.2-build 315
Java version 1.4.2-38 (Mac OS X)

Will be fixed in Servoy 2.2 b4, thanks for reporting

I’d like to add my two cents to this. I’ve got a script with the following line:

webpost += ‘&function=’;

The script checker also won’t allow this, even though it’s in a quoted string. I hope this will also be fixed in the future.

Thanks.

Bill

hmm, be whould have to tap into the javascript parser todo it more correctly, we will try todo so after version 2.2

For now please use:
webpost += ‘&func’;
webpost += ‘tion=’;

result is the same (breaks it up in the source, but append in the var)

Any idea what soon after 2.2 means? 2.2.1 maybe?

Because I’m now running into this situation as well more and more and breaking up the code to workaround it produces very unreadable code.

Paul