Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error#2034 Date/DateTime evaluated to an invalid value

93 views
Skip to first unread message

Ed

unread,
Jul 8, 2009, 10:07:18 PM7/8/09
to
Ever since we released a new version of an VFP exe that was upgraded from
VFP6 to VFP9SP1 some users are getting various Error#2034 "Date/DateTime
evaluated to an invalid value" errors. Some when trying to rebuild indexes,
some while using the application running a sql statement that does a DTOC()
of a value in a free FoxPro 2.6 style table. We are unable to reproduce it.
These are the code that may affect it as we are letting VFP take whatever
the windows date and currency formats are with these lines

SET ENGINEBEHAVIOR 70

SET STRICTDATE to 0

SET SYSFORMATS on

Seems like at least hearing from one of these users they are probably
running windows XP and have the settings of

Short Date 7/8/2009

Long Date Wednesday, July 08, 2009

Short Date format mm/dd/yyyy

Long Date dddd, mmmm/dd/yyyy

in Regional Settings and Formats control panel

Any suggestions on internationalization gotchas in VFP and workarounds as
far as dates?

Thanks ahead of time for any suggestions or advice!

From: Ed

Fred Taylor

unread,
Jul 9, 2009, 10:42:54 AM7/9/09
to
With SET SYSFORMATS ON, you can't have any dates that are earlier than year
1601. It's probably a bad date with a mistyped year would be my guess.

--
Fred

"Ed" <e...@nospam.com> wrote in message
news:Hoc5m.22281$Wx7....@newsfe04.iad...

Ed

unread,
Jul 10, 2009, 5:42:04 AM7/10/09
to
thanks Fred - I will look into the possibility of checking for dates in the
table before the year 1601

From: Ed

"Fred Taylor" <fta...@mvps.org!REMOVE> wrote in message
news:uhDqLOKA...@TK2MSFTNGP04.phx.gbl...

W. Schmale

unread,
Jul 16, 2009, 2:19:28 AM7/16/09
to
Do you use forms with private datasessions? If so you should remember that
several SETs scopes to the specific data session and _not_ globally. So if
you use private data sessions you have to do these SET-Commands in every
session.

hth

Wolfgang Schmale

"Ed" <e...@nospam.com> schrieb im Newsbeitrag
news:Hoc5m.22281$Wx7....@newsfe04.iad...

0 new messages