The information in this article applies to:
SYMPTOMSRunning the following command returns a zero (0) rather than a valid DATE variable setting (such as AMERICAN):
The zero might be a one or a two, depending on the date setting.
CAUSEThe SET("DATE") function supports a second argument that reports the date ordering. This second argument is documented as the number 1 in the Help file. If the SET("DATE") function detects a second argument, it reports the date ordering whether this argument is a number, logical, date, character or null value. Although using something other than the number 1 as the second argument does not cause an error, it should be avoided. Future changes to Visual FoxPro could cause the SET("DATE",<not 1>) syntax to create an error. RESOLUTIONRather than using the command SET("DATE","TO"), use the command SET("DATE"). If date ordering is desired, use the SET("DATE",1) syntax. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONUse the following code in the Visual FoxPro Command window to explore the values returned by the SET("DATE") function when it is given a second argument:
Steps to Reproduce BehaviorRun the following code from the Visual FoxPro Command window:
Notice the difference in what each returns.
Additional query words: kbXBase kbVFp500abug kbVFp600bug
Keywords : |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |