Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fox Pro 2.6 for DOS
Message
From
12/06/1998 10:30:42
 
 
To
11/06/1998 18:52:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00101355
Message ID:
00107595
Views:
31
>Hi Rob. I am the originator of this thread and I have narrowed the problem down to what you've identified: CTOD(). It looks as if everytime this is used it returns '1900' as the year. Any suggestions as to how to fix this. Your help would be extremely appreciated.
>
>TIA,
>
>Jason

DTOC( ) returns an 8-character string if SET CENTURY is off, and it returns a 10-character string if SET CENTURY is ON. CTOD( ) defaults to the 20th century (19xx) if the string includes only a 2-digit year (mm/dd/yy), but works fine for Y2K if the string has a 4-digit year (mm/dd/yyyy). What problems are you running into?

(snip...)

>>The only problems I have found are regarding DTOC() (we have some old legacy stuff taken over from other developers that uses DTOC() in index tags !!!)

SET CENTURY ON and reindex.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform