Warning XS9073
Posted: Thu Oct 07, 2021 11:58 am
Hi,
In what case does the compiler generate warning XS9073 instead of error XS0103 if the variable is not declared?
XS9073: Variable 'SomeVariable' has not been declared. Assuming this is a FIELD or a MEMVAR.
XS0103: The name 'SomeVariable' does not exist in the current context.
In one of my applications, when I compile a line of code that uses a non-existent variable, I get a warning instead of an error. This confused me. I made a separate example with a similar situation and the compiler generated an error as I expected. In both cases, the "/memvar" option is enabled in the project.
Best regards,
Leonid
In what case does the compiler generate warning XS9073 instead of error XS0103 if the variable is not declared?
XS9073: Variable 'SomeVariable' has not been declared. Assuming this is a FIELD or a MEMVAR.
XS0103: The name 'SomeVariable' does not exist in the current context.
In one of my applications, when I compile a line of code that uses a non-existent variable, I get a warning instead of an error. This confused me. I made a separate example with a similar situation and the compiler generated an error as I expected. In both cases, the "/memvar" option is enabled in the project.
Best regards,
Leonid