FIX: Compile Fails in WITH/ENDWITH and IF Using Dot Operator (189773)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q189773 SYMPTOMS
When you write a program or procedure containing an IF expression that
evaluates a property or method reference using the "." (dot) operator
within a WITH/ENDWITH construct and you attempt to run or compile the code,
you might get one of the following errors:
Command contains unrecognized phrase/keyword.
Data type mismatch.
RESOLUTION
Include a full object reference in the IF line, rather than the "."
operator reference that is normally used with the WITH/ENDWITH.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This has been corrected in Visual FoxPro
6.0.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbbug kbfix KB189773 |
---|
|