Fails saying that Object reference not set
The code:
Public Class User
Inherits System.Windows.Forms.Form
Dim userCol As CDbUsers
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()...
Hi I am adding the dataset to the collection object. It fails here
Public Sub Add(ByVal oUser As CUser)
_userArray.Add(oUser)
End Sub
Says Object reference not set to an instance of an object
PublicFunction GetUserDetail() As CDbUsers
' Create the Database object, using the default...
Public Function GetUserDetail() As CDbUsers
' Create the Database object, using the default database service. The
' default database service is determined through configuration.
Dim db As Database = DatabaseFactory.CreateDatabase()
Dim sqlCommand As String = "Select * From SecureUser"
Dim...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.