| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | bug found? |
Hello All!
I think I found a bug in VP10b003 (without all the patches)
this code returns an error: Type mismatch
procedure HCGetDate(var Year, Month, Day, WeekDay : word);
begin
GetDate(Year, Month, Day, WeekDay);
^ Type Mismatch
end;
The unit uses either DOS or WINDOS.
Code to get around this problem is the following (much slower) code;
procedure HCGetDate(var Year,Month, Day, WeekDay: word);
var Y,M,D,W: Longint;
begin
GetDate(Y,M,D,W);
Year := Y;
Month := M;
Day := D;
WeekDay := W;
end;
The types Y,M,D,W may not be words, that results in a type mismatch too.
Hope you know a solution to this.
Bye, Erik!
(e-mail: ErikH{at}hcc-gron.idn.nl)
--- FleetStreet 1.12 NR
* Origin: ORIGINal messages, I like them (61:100/219.1929)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 500/19 9 28/777 2/777 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.