Show/Hide Toolbars

XSharp

'{0}' has not been declared. Assuming this is a VARIABLE or a CURSOR.

This warning will be shown when compiling in the FoxPro dialect for code in the following style

? Customer.LastName   // XS9092 'Customer' has not been declared. Assuming this is a VARIABLE or a CURSOR.

when the /undeclared compiler option is enabled.
The compiler has no idea at compile time if Customer is the name of a memory variable or a cursor. This will be resolved at runtime or lead to a runtime error.

If you declare a local variable in the code with the name 'Customer' then the compiler will assume that Customer is an object with a LastName property.