🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#405
From: glorfield.g
Date: Thu, 16 Apr 1998 00:00
37 lines
2078 bytes
The first question would be, why would you use a variant to store a date?  The
overhead cost of variants is astronomical.  Use a double and solve two (2)
problems.  Your date situation and the overhead hammering your causing using a
variant.

BTW, MS says that VB (no matter what version) uses Y2K compatible date
routines.

Gordon

In article <01bfa79b$a1ea0060$03ef98c3@novix>,
  "Tim Foster" <TimF@Romtec.co.uk> wrote:
>
> Can anyone help provide information on what the status of Year 2000
> compliance is concerning VB3 and VB4 16-bit apps (using Access 2
> databases).
>
> 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.
>
> I could probably fix this by storing DateValues in a Double, but I'm
> wondering if the problem can be resolved in any other way, or if this is an
> 'official' problem.
>
> Any help will be much appreciated,
>
> Thanks,
>
> Tim Foster.
>


-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading
Technical Details
Message-ID: <6h582u$btg$1@nnrp1.dejanews.com>
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: 110e3b,cf6962aa78a8c295
X-Google-Attributes: gid110e3b,public
X-Google-Thread: f7a67,cf6962aa78a8c295
X-Google-Attributes: gidf7a67,public
X-Google-Thread: 108062,cf6962aa78a8c295
X-Google-Attributes: gid108062,public
From: glorfield.g@eastalco.com
Subject: Re: VB3 & VB4 16-bit Year 2000 Compliance Query
Date: 1998/04/16
Message-ID: <6h582u$btg$1@nnrp1.dejanews.com>
X-Deja-AN: 344672106
References: <01bfa79b$a1ea0060$03ef98c3@novix>
X-Http-User-Agent: Mozilla/4.02 [en] (WinNT; I ;Nav)
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Thu Apr 16 15:28:30 1998 GMT
Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,microsoft.public.vb.bugs