FIX: Date2Secs MBLC, Bad Seconds for Secs2Date (40086)
This article was previously published under Q40086
SYMPTOMS
The Date2Secs routine (which is an MBLC routine built into QuickBasic
for Macintosh) returns an incorrect number of seconds. When the number
of seconds is passed back into the corresponding Secs2Date routine, an
invalid date is produced.
Microsoft has confirmed this to be a bug in QuickBasic version
1.00. This problem is corrected in QuickBasic version 1.00b.
To work around the problem, it is possible to invoke QuickBasic's
TOOLBOX routine with an equivalent Register-based ROM trap function,
Date2Secs.
The program provided below demonstrates this procedure. Please
remember to set up the date array as described in the "Microsoft
QuickBasic for the Macintosh: Basic Language Reference" manual, page
493, before running this sample program.
For a complete description of the ROM routine, please refer to "Inside
Macintosh" Volume II, page 379.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
kbbug KB40086 |
|