[Mono-bugs] [Bug 50071][Nor] New - implementation of Chr() ChrW() and Date

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 23 Oct 2003 18:08:15 -0400 (EDT)


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 mchugh19@yahoo.com.

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

--- shadow/50071	2003-10-23 18:08:15.000000000 -0400
+++ shadow/50071.tmp.26377	2003-10-23 18:08:15.000000000 -0400
@@ -0,0 +1,110 @@
+Bug#: 50071
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: redhat 9 dependences rpm'ed mono cvs
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mchugh19@yahoo.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: implementation of Chr() ChrW() and Date
+
+The following test case causes the following compile errors...
+
+
+--------------------------------CODE-------------------------------------
+Public Class calendar
+    Inherits System.Web.UI.Page
+    Protected WithEvents Label1 As System.Web.UI.WebControls.Label
+    Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar
+ 
+#Region " Web Form Designer Generated Code "
+ 
+    'This call is required by the Web Form Designer.
+    <System.Diagnostics.DebuggerStepThrough()> Private Sub
+InitializeComponent()
+ 
+    End Sub
+ 
+    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
+System.EventArgs) Handles MyBase.Init
+        'CODEGEN: This method call is required by the Web Form Designer
+        'Do not modify it using the code editor.
+        InitializeComponent()
+    End Sub
+ 
+#End Region
+ 
+    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
+System.EventArgs) Handles MyBase.Load
+        'Put user code to initialize the page here
+    End Sub
+ 
+    Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object,
+ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
+        Label1.Text = "You selected: " _
+        & ChrW(60) & "br" & ChrW(62)
+        Label1.Text &= _
+            Calendar1.SelectedDate.ToShortDateString() _
+            & ChrW(60) & "br" & ChrW(62) _
+            & ChrW(60) & "br" & ChrW(62)
+        If Calendar1.SelectedDate.ToShortDateString =
+Date.Now.ToShortDateString Then
+            Label1.Text &= _
+            "Today all Waterford products are 30% off."
+        Else
+            Label1.Text &= _
+            "All products are 10% off during this month."
+        End If
+    End Sub
+ 
+End Class
+
+----------------------------------mbas ERROR------------------------------
+
+                                                                          
+                                               
+calendar.aspx.vb(26) error BC0103: The name `ChrW' could not be found in
+`calendar'
+calendar.aspx.vb(26) error BC0103: The name `ChrW' could not be found in
+`calendar'
+calendar.aspx.vb(27) error BC0103: The name `ChrW' could not be found in
+`calendar'
+calendar.aspx.vb(27) error BC0103: The name `ChrW' could not be found in
+`calendar'
+calendar.aspx.vb(27) error BC0103: The name `ChrW' could not be found in
+`calendar'
+calendar.aspx.vb(27) error BC0103: The name `ChrW' could not be found in
+`calendar'
+calendar.aspx.vb(28) error BC0103: The name `Date.Now.ToShortDateString'
+could not be found in `calendar'
+ 
+Unhandled Exception: System.ArgumentNullException: null key
+Parameter name: key
+in <0x0007b> System.Collections.Hashtable:Find (object)
+in <0x0001a> System.Collections.Hashtable:GetImpl (object)
+in <0x00014> System.Collections.Hashtable:get_Item (object)
+in <0x0004e> Mono.CSharp.TypeManager:LookupType (string)
+in <0x00160> Mono.Languages.Driver:IsSWFApp ()
+in <0x0007c> Mono.Languages.Driver:FixEntryPoint ()
+in <0x0005b> Mono.Languages.Driver:GenerateAssembly ()
+in <0x0005d> Mono.Languages.Driver:CompileAll ()
+in <0x00043> Mono.Languages.Driver:MainDriver (string[])
+in <0x0003d> Mono.Languages.Driver:Main (string[])
+
+
+
+
+looks like to get around the first few you can replace with 
+    Label1.Text = "You selected: <br>"
+
+and it looks as if the legacy vb date is not supported
+
+This was done with the cvs of Oct. 23 with  mbas calendar.aspx.vb -r System.Web