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.
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
if((lastX == -1) && (lastY == -1))
Many thanks.