dbTalk Databases Forums  

Y2K problem in FP 2.0

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss Y2K problem in FP 2.0 in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cass Lewart
 
Posts: n/a

Default Y2K problem in FP 2.0 - 12-11-2004 , 08:11 PM






I occasionally use FoxPro 2.0. With SET CENTURY ON the program works
well in the 21st century environment. However, the LIST FILE command
displays a list of DBF files with their name, # of records, Last Update
and Size. The date of the Last Update does not go beyond 1999. If the
file was updated in 2005 the year shows as 1905. Any suggestions how to
fix this esthetic problem?
Cass

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Cass Lewart Voice (732) 264-9541 Fax (630) 566-0349/_/
_/ e-mail: rlewart (AT) monmouth (DOT) com _/_/_/_/_/_/_/_/_/_/_/_/_/
_/ N 40 deg 23' 41.9", W 74 deg 11' 29.7"/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Reply With Quote
  #2  
Old   
Cy Welch
 
Posts: n/a

Default Re: Y2K problem in FP 2.0 - 12-12-2004 , 01:02 PM






Cass Lewart wrote:
Quote:
I occasionally use FoxPro 2.0. With SET CENTURY ON the program works
well in the 21st century environment. However, the LIST FILE command
displays a list of DBF files with their name, # of records, Last Update
and Size. The date of the Last Update does not go beyond 1999. If the
file was updated in 2005 the year shows as 1905. Any suggestions how to
fix this esthetic problem?
Cass

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Cass Lewart Voice (732) 264-9541 Fax (630) 566-0349/_/
_/ e-mail: rlewart (AT) monmouth (DOT) com _/_/_/_/_/_/_/_/_/_/_/_/_/
_/ N 40 deg 23' 41.9", W 74 deg 11' 29.7"/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
IIRC this can't be fixed. Either don't use that command or put up with
it as fixing would require fixing the environment for which I'm not even
sure that the source has even been maintained.

--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com


Reply With Quote
  #3  
Old   
Stefan Wuebbe
 
Posts: n/a

Default Re: Y2K problem in FP 2.0 - 12-12-2004 , 01:35 PM




In addition, see the NG archives for related LUpdate() issues:
http://groups.google.com/groups?as_q...s_ugroup=*fox*


hth
-Stefan

"Cy Welch" <cywelch (AT) yahoo (DOT) com> schrieb im Newsbeitrag
news:RA0vd.32521$zx1.10931 (AT) newssvr13 (DOT) news.prodigy.com...
Quote:
Cass Lewart wrote:
I occasionally use FoxPro 2.0. With SET CENTURY ON the program works well in the
21st century environment. However, the LIST FILE command displays a list of DBF
files with their name, # of records, Last Update and Size. The date of the Last
Update does not go beyond 1999. If the file was updated in 2005 the year shows as
1905. Any suggestions how to fix this esthetic problem?
Cass --
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Cass Lewart Voice (732) 264-9541 Fax (630) 566-0349/_/
_/ e-mail: rlewart (AT) monmouth (DOT) com _/_/_/_/_/_/_/_/_/_/_/_/_/
_/ N 40 deg 23' 41.9", W 74 deg 11' 29.7"/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
IIRC this can't be fixed. Either don't use that command or put up with it as
fixing would require fixing the environment for which I'm not even sure that the
source has even been maintained.

--
Cy Welch
Senior Programmer
MetSYS Inc
http://www.metsysinc.com


Reply With Quote
  #4  
Old   
Rick Bean
 
Posts: n/a

Default Re: Y2K problem in FP 2.0 - 12-15-2004 , 03:27 PM



Cass,
Even VFP 5.0 has that problem - it wasn't "fixed" till VFP 6.0 SP3 if I remember correctly. The problem is that the standard .DBF header only includes the following:
* 1 - 3 Last update (YYMMDD)

Without the century info, the List/Display Structure code makes an assumption of 19 - later it got smarter by checking the file attributes!

Rick

"Cass Lewart" <rlewart (AT) shell (DOT) monmouth.com> wrote

Quote:
I occasionally use FoxPro 2.0. With SET CENTURY ON the program works
well in the 21st century environment. However, the LIST FILE command
displays a list of DBF files with their name, # of records, Last Update
and Size. The date of the Last Update does not go beyond 1999. If the
file was updated in 2005 the year shows as 1905. Any suggestions how to
fix this esthetic problem?
Cass

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Cass Lewart Voice (732) 264-9541 Fax (630) 566-0349/_/
_/ e-mail: rlewart (AT) monmouth (DOT) com _/_/_/_/_/_/_/_/_/_/_/_/_/
_/ N 40 deg 23' 41.9", W 74 deg 11' 29.7"/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.