>I guess when FoxPro starts up, you don't have the date format set to DMY but to ANSI perhaps (YMD).
>That's all I can think of at the moment.
>
>Because the SET DATE TO has no effect on the COMPILE time setting of SET DATE which is what determines the value that will be placed in the variable.
>
>Barbara and I wrote about this in FoxTalk's KitBox column.
>
>
>It's something that I run into with people's samples, having to SET DATE AMERICAN before I can compile their code. Or to edit any date constant in the code to DMY format form MDY.
I did find some info on this in the "Strict DAte Entry" in VFP help. I used to take the time and read all the manual and highlight any new/interesting/important things I ran across. Now, with so much of the documentation being on-line, I just don't even know if I've even seen it all or not. Oh well, progress, I guess.
I subscribe to FoxPro Advisor, so sorry I missed the article in FoxTalk.
Many thanks to all on this subject.
Fred