Z
Zenobia
What is wrong with this snippet?
It is a modification from Stephen Walther's ASP.NET Unleashed,
1e, page 734-5:
+++++ +++++ +++++ +++++ +++++
Public Class ProductsHandler
... some code ...
objContext.Response.Write ("<html>" & vbCrLf & "<title>")
... some more code ...
ReadOnly Property vbCrLf() As String
Get
Return Chr(13) & Chr(10)
End Get
End Property
... some more code ...
End Class
+++++ +++++ +++++ +++++ +++++
(a) When I rebuild my dll using Visual Studio 2003 I get NO
errors:
Rebuild All: 1 succeeded, 0 failed, 0 skipped
(b) When I build using this command line:
vbc.exe /t:library
/r:System.dll,System.Web.dll,System.Data.dll ProductsHandler.vb
I get an error:
ProductsHandler.vb(44) : error BC30451: Name 'Chr' is not
declared.
+++++ +++++ +++++ +++++ +++++
Why is the error picked up by the command line but not by
VS.NET?
Can someone recommend a good book on VB.NET for those used to
using VBScript at lot and VB6 a little? Ideally the book should
also cover VS.NET
It is a modification from Stephen Walther's ASP.NET Unleashed,
1e, page 734-5:
+++++ +++++ +++++ +++++ +++++
Public Class ProductsHandler
... some code ...
objContext.Response.Write ("<html>" & vbCrLf & "<title>")
... some more code ...
ReadOnly Property vbCrLf() As String
Get
Return Chr(13) & Chr(10)
End Get
End Property
... some more code ...
End Class
+++++ +++++ +++++ +++++ +++++
(a) When I rebuild my dll using Visual Studio 2003 I get NO
errors:
Rebuild All: 1 succeeded, 0 failed, 0 skipped
(b) When I build using this command line:
vbc.exe /t:library
/r:System.dll,System.Web.dll,System.Data.dll ProductsHandler.vb
I get an error:
ProductsHandler.vb(44) : error BC30451: Name 'Chr' is not
declared.
+++++ +++++ +++++ +++++ +++++
Why is the error picked up by the command line but not by
VS.NET?
Can someone recommend a good book on VB.NET for those used to
using VBScript at lot and VB6 a little? Ideally the book should
also cover VS.NET