🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.misc
Article #406

Re: VB3 & VB4 16-bit Year 2000 Compliance Query

#406
From: Christer Romson
Date: Thu, 16 Apr 1998 00:00
22 lines
1667 bytes
What do you mean by "reading dates into variants"? If you have string that
contains a date and asign the string to a variant variable the variant
variable should contain data of the string sub-type not of the date
sub-type.

If the conversion from string to date sub-typed variant is correct I don't
beleive the will change by storing it a variable. The problem could only be
in the conversion routine. I don't know of any built in conversion routines
that convert four digit years wrong, and any routine that converts two
digit years is a potential Y2K problem. How exactly are you converting the
strings and what does the strings look like?

	Christer Romson

Tim Foster:
> After some testing in a VB4 16-bit application, I'm fairly positive there
> is a problem reading dates into Variants (VB seems to be trimming the
dates
> to Short Format), and so when the Year 2000 rollover occurs, the dates
take
> on '20' as the century value if you read values back from the Variant.
Technical Details
Message-ID: <01bd6941$34bc0550$aa53d495@christer-p133>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bfa79b$a1ea0060$03ef98c3@novix>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f7a67,cf6962aa78a8c295
X-Google-Attributes: gidf7a67,public
X-Google-Thread: 110e3b,cf6962aa78a8c295
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 108062,cf6962aa78a8c295
X-Google-Attributes: gid108062,public
From: "Christer Romson" <christer.romson@shs.siemens.se>
Subject: Re: VB3 & VB4 16-bit Year 2000 Compliance Query
Date: 1998/04/16
Message-ID: <01bd6941$34bc0550$aa53d495@christer-p133>
X-Deja-AN: 344673952
References: <01bfa79b$a1ea0060$03ef98c3@novix>
Organization: Siemens Sweden
Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,microsoft.public.vb.bugs