C++ script question

On my report, I have a handler for MasterData's OnBeforePrint() event.

In the handler I have this code:

if(lastX == -1 && lastY == -1)
{
MemoSeparator.Visible = true;
}


lastX and lastY are declared as Extended.
When I run the report I get the following error: "Incompatible types"

If I write this code as:

if(lastX == -1)
{
if(lastY == -1)
MemoSeparator.Visible = true;
}

it works fine.
The script doesn't seem to accept the C++ syntax for conditional statements in this case.
Any ideas?

Thanks.

Comments

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.