Re: VFP sending 8 character date in runtime with SET('CENT')='ON'



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

"Dan_Musicant" <man@xxxxxxxxxxx> wrote in message news:7sqv0313aeh8c9kpsrp9qd97fek78tdi9m@xxxxxxxxxx
I have an application I run from both development FoxPro and from a
compiled EXE. I have CENTURY set to ON, and when running from the EXE
and writing the date to a memo file in a table (e.g. DTOC(chargedate) )
it gets written as 03/31/07. When running from the development
environment it's written as 03/31/2007.

Also vexing is the fact that when running the EXE, date fields in the
table are seen as 03/31/07 until mouse-clicked, when they expand to
03/31/2007 (i.e. if cursor is in the field). When running from the
development version of FoxPro (VFP 7.0) all the date entries are seen as
10 character (e.g. 03/31/2007).

Why am I getting this behavior and is there a fix or workaround? TIA.

Dan

Email: dmusicant at pacbell dot net


.



Relevant Pages

  • Re: Object Reference Counting
    ... for whether you can use a *.bas Module or require the ROT is whether you're ... in a single-threaded environment or a multi-threaded environment. ... EXE would be single, an ActiveX EXE may be single or multiple, DLLs may be ... >> The problem I now have is to do with object reference counting. ...
    (microsoft.public.vb.com)
  • Re: Changing the SMS exe file name based on a compiler variable?
    ... I'm sure there is probably some predefined compiler variable for exe name, ... Compiler variable: _ENVIRONMENT_ ... Am I missing something obvious? ... I'd like this flexibility so I could maintain one ipf across several ...
    (microsoft.public.sms.installer)
  • environment variable question
    ... I have an old DOS 'EXE' program witch works in conjunction with batch files. ... the BAT file executes the variable. ... environment, but I am not SURE this is the case. ...
    (microsoft.public.win2000.general)
  • Re: Help me!! Why java is so popular
    ... The late binding to environment could ... but happens to your EXE that was selected/compiled for the single processor that existed at install time? ...
    (comp.lang.java.programmer)
  • Re: Invoking a process on the remote machine
    ... You need to have some sort of environment to run it in. ... I connect to the remote machine using ObjectManagementScope class, but i am not being able to run the exe through normal Win32 process. ...
    (microsoft.public.dotnet.languages.csharp)