
Hi
IN the below code i am getting Syntax Error in the IF condition
AIHdr.SETRANGE("No.","GP No.");
IF AIHdr.FINDFIRST THEN BEGIN
GPDt := AIHdr."Posting Date";
PNo := AIHdr."GP No.";
END
Thanks
*This post is locked for comments
I have the same question (0)Hello,
add a semi-colon after the END.
I think if you don't have code or only have comments after you don't get a compiler error but if there is any code afterwards you will get a syntax error.