http://bugs.winehq.org/show_bug.cgi?id=19105
Summary: From VB / VBScript / maybe others, the TimeSerial function dont answer like is awaited Product: Wine Version: 1.1.24 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: slezica@yahoo.com
I determine this problem after a hard hunt. This issue affects software from several sources, probably silently. In Visual Basic 6 and VBScript, you have a function "TimeSerial" for convert three integers (hour, minute and second) to a "date/time" format ("HH:MM:SS", for example 03:45:12). On Windows, you can use the arguments without ranges, for example 300 minutes - "TimeSerial(0,300,0)" -, and it automatically converts and displays the result correctly (in this case "05:00:00", 5 hours).
In Wine, if you pass the same previous example it returns "Error 5 - Invalid procedure call or argument.". The function work if you pass for example minutes in the 0-59 range. But the conversion functionality is missing (and give a error).
I can't determine what DLL is used, but shure is shared with others Microsoft Visual Studio tools. The debug don't show any relevant information, because is not a Wine error really (ony the answer is different). Thanks, and if I can help more only say. Excuse my english. Sebastián Lezica
http://bugs.winehq.org/show_bug.cgi?id=19105
--- Comment #1 from Sebastian Lezica slezica@yahoo.com 2009-06-28 09:31:37 --- TimeSerial function from Excel/Visual Basic for Applications: http://www.techonthenet.com/excel/formulas/timeserial.php and From VBScript: http://www.w3schools.com/Vbscript/func_timeserial.asp
http://bugs.winehq.org/show_bug.cgi?id=19105
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source Alias|TimeSerial | Severity|normal |minor
http://bugs.winehq.org/show_bug.cgi?id=19105
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW AssignedTo|wine-bugs@winehq.org |nerv@dawncrow.de Ever Confirmed|0 |1
--- Comment #2 from André H. nerv@dawncrow.de 2009-09-09 08:46:34 --- Created an attachment (id=23527) --> (http://bugs.winehq.org/attachment.cgi?id=23527) trace with WINEDEBUG=variant
confirming
attached a partial trace(variant) first try was with 0,300,0 second with 0,30,0 the difference is well shown, but i dont know why 0,30,0 returns 0:30:32
trace done with vb6 and "msgbox timeserial(0,300,0)"
http://bugs.winehq.org/show_bug.cgi?id=19105
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |oleaut32
http://bugs.winehq.org/show_bug.cgi?id=19105
--- Comment #3 from André H. nerv@dawncrow.de 2010-02-04 12:34:15 --- fixed by my recent work on oleaut32/variant.c
http://bugs.winehq.org/show_bug.cgi?id=19105
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from André H. nerv@dawncrow.de 2010-02-04 12:34:48 --- oops, fogot to mark it fixed
http://bugs.winehq.org/show_bug.cgi?id=19105
--- Comment #5 from Sebastian Lezica slezica@yahoo.com 2010-02-04 13:16:30 --- Thanks André!, This bug solved really do my work easier ;). VERY Thanks!. Sebastian
http://bugs.winehq.org/show_bug.cgi?id=19105
--- Comment #6 from André H. nerv@dawncrow.de 2010-02-04 13:29:17 --- no Problem ;), but sorry for the delay
http://bugs.winehq.org/show_bug.cgi?id=19105
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2010-02-05 11:38:59 --- Closing bugs fixed in 1.1.38.
https://bugs.winehq.org/show_bug.cgi?id=19105
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ac1ca87b21052a784176f92cd71 | |defedda6e1ef6