|
|
|
|
Ask the MultiValued Visual Basic Expert - #9B(as published in Spectrum magazine May/June 1998)To email your questions to "Ask the MultiValued VB
Expert", click here.
| |||||||||||||||||||||||||
Software being used |
Behavior |
|
| Visual Basic 3.0 and prior versions | Converts all two-digit years to the 1900s. [This is worse than any MultiValue box.] | |
| Visual Basic 4.0 (16-bit) | Converts all two-digit years to the century of the current system date. [Boy, who ever though THAT one up?] | |
| Visual Basic 4.0 (32-bit) | DateSerial function | Converts all two-digit years to the century of the current system date. |
| All other date functions | Converts two-digit years to four-digit years based on the default in the Automation libraries. (see table below) Note that VB4 first shipped with version 2.10 of OleAut32.dll. | |
| Visual Basic 5.0 | All date functions | Converts two-digit years to four-digit years based on the default in the Automation libraries. (see table below) Note that VB5 first shipped with version 2.20.4054 of OleAut32.dll. |
Version of OleAut32.dll |
Behavior |
| Version 2.10 (as first shipped with VB4) | Converts all two-digit years to the century of the current system date. |
| Version 2.20 and later | Converts two-digit years to the 1900s if the two-digit year is between 30 and 99. If the two-digit year is between 00 and 29, the date is converted to the 2000s. [I guess someone let Microsoft know how Pick solved this problem many years ago!] |
![]()
|
Copyright © 2006 intellact
|