The information in this article applies to:
SYMPTOMSUnder some circumstances in Visual FoxPro 6.0, the WriteExpression method might produce the following error: In Visual FoxPro 5.0, the same command produces this error: The syntax error is also what Visual FoxPro 6.0 should be reporting. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. MORE INFORMATIONSteps to Reproduce Behavior
For the code to run properly, follow the comments in the program and change the appropriate lines of code and execute the program again. Note that the line of code:
contains a syntax error. The WriteExpression method is expecting the second argument to be enclosed in quotes. In this case, a text string is being concatenated with another text string returned by the MDY() function. This whole expression, once concatenated together, needs to be in quotes for WriteExpression. Single quotes (' ') or square brackets [ ] can be used to accomplish this. The corrected line of code could also be constructed as follows:
Additional query words:
Keywords : kbservicepack kbOOP kbVFp500abug kbVFp600 kbVFp600bug kbVS600sp2 kbVS600SP1 kbVS600sp3fix kbGrpFox |
Last Reviewed: May 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |