[Mono-bugs] [Bug 69093][Wis] New - Difference VB.NET vs. Mono in Val()-Funktion

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 4 Nov 2004 10:10:22 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by news.mecke@buchert-wf.de.

http://bugzilla.ximian.com/show_bug.cgi?id=69093

--- shadow/69093	2004-11-04 10:10:22.000000000 -0500
+++ shadow/69093.tmp.24507	2004-11-04 10:10:22.000000000 -0500
@@ -0,0 +1,40 @@
+Bug#: 69093
+Product: Mono: Class Libraries
+Version: 1.0
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: VB Runtime
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: news.mecke@buchert-wf.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Difference VB.NET vs. Mono in Val()-Funktion
+
+Description of Problem:
+Microsoft.VisualBasic.Val(ByVal Expression As String)
+behaves different then Monos version.
+
+Steps to reproduce the problem:
+1. run Console.writeline(val("111aaa")) within Visual Studio or type ?
+val("111aaa") into the Direkt Window.
+The Output is: 111.0 
+
+2. run the same in Mono: leads to Exception:
+Unhandled Exception: System.ArgumentException: Type of argument
+'Expression' is 'System.String', which canont be converted to numeric.
+
+Actual Results:
+Mono VB only converts numbers, whereas Microsoft's VB ignores trailing
+character and converts the number part.
+
+Expected Results:
+Ignore trailing characters.
+
+How often does this happen? 
+always.