Fred
Sun Apr 01 14:17:45 CDT 2007
Then search for SET CENTURY code in your programs. Somewhere, it's getting
SET to OFF.
--
Fred
Microsoft Visual FoxPro MVP
"Dan_Musicant" <man@privacy.net> wrote in message
news:6b0013h8t30jfus0s4cjrnqd62m40nf51m@4ax.com...
> On Sun, 01 Apr 2007 10:23:10 -0700, Cy Welch <cywelch@yahoo.com> wrote:
>
> :Also make sure that your not just depending on the setting of century
> :set in the development environment under tools->options and then setting
> :as default. The runtime environment does not read the development
> :environment's defaults. You must set century in your application in
> :code, and also any time you have a private data session.
> :
> :Cy Welch
> :Senior Programmer
> :MetSYS Inc
> :
http://www.metsysinc.com
> :
> :
> :Anders Altberg wrote:
> :> Do you use a private datasession in your form?
> :> This resets lots of SETs to their default, which is OFF for SET
> CENTURY.
> :> See SET DATASESSION in Help.
> :> -Anders
>
> The application runs with a FoxPro 2.6a for Windows screen. There is no
> private data session. As an additional measure I added some code. The
> writing of DTOC(chargedate) where chargedate is a data type field in the
> current pointed-to record is driven by a program, a separate PRG. In the
> PRG I added the line above the write:
>
> SET CENTURY ON
>
> The date is still written as 03/31/07 when run by the EXE.
>
> I'll try another test. I will additionally have the PRG write the
> following after the date: "Century is set to "+ SET('CENTURY')
>
> Sure enough, it says Century is set to OFF.
>
> I don't know why this is happening. There's a config.fpw in the project
> that says:
>
> CENTURY=ON
>
> I also just put the following in the main program:
>
> SET CENTURY ON
>
> It's still happening.
>
> Email: dmusicant at pacbell dot net