Last post Jan 22, 2009 05:27 PM by Kiley
Jan 22, 2009 12:57 PM|Kiley|LINK
This one has got to be easy. I get the error message "Array bounds cannot appear in type specifiers". I have created the simplest of classes and tried to assign a value to it in my Global.asax file:
Public Class person
Dim sessionID As String
Dim emailAddress As String
Public Sub New(ByVal sessionIdentifier As String, ByVal emailAdd As String)
sessionID = sessionIdentifier
emailAddress = emailAdd
Dim sid As String = Session.SessionID
Dim loggedInUser As person(sid,"asdf") <--- this gives "Array bounds cannot appear in type specifiers"
Thank you very much.
Jan 22, 2009 01:28 PM|Kumar Reddi|LINK
Dim loggedInUser As New person(sid,"asdf")
You forgot the new keyword
Jan 22, 2009 05:27 PM|Kiley|LINK
Thank you very much!