Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- From: Cy Welch <cywelch@xxxxxxxxx>
- Date: Sun, 01 Apr 2007 10:23:10 -0700
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@xxxxxxxxxxI 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
- Follow-Ups:
- Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- From: Dan_Musicant
- Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- From: Dan_Musicant
- Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- References:
- VFP sending 8 character date in runtime with SET('CENT')='ON'
- From: Dan_Musicant
- Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- From: Anders Altberg
- VFP sending 8 character date in runtime with SET('CENT')='ON'
- Prev by Date: Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- Next by Date: Re: Any way to send a fax from VFP via Activex?
- Previous by thread: Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- Next by thread: Re: VFP sending 8 character date in runtime with SET('CENT')='ON'
- Index(es):
Relevant Pages
|