asked on
ASKER
ASKER
ASKER
ASKER
Public Function GetBulkDataStringsSuperVehCat() As DataTable
Dim StrProcName As String
Dim StrVehSupCat As String
If OpShortDescCarsLcvOthersAll.Checked = True Then
StrVehSupCat = "CarLcvOthers"
End If
If OpShortDescBikesQuadsAll.Checked = True Then
StrVehSupCat = "BikesQuads"
End If
dtWords = New DataTable
Dim connectionString As String = ConfigurationManager.ConnectionStrings("Dictionary").ConnectionString
StrProcName = "usp_GetBulkDescStringsSuper"
Using conn As New SqlConnection(connectionString)
'Using cmd As New SqlCommand("usp_GetWords", conn)
Using cmd As New SqlCommand(StrProcName, conn)
cmd.CommandType = CommandType.StoredProcedure
conn.Open()
cmd.Parameters.AddWithValue("@VCatSuper", StrVehSupCat)
Dim reader As SqlDataReader = cmd.ExecuteReader()
dtWords.Load(reader)
End Using
End Using
Return dtWords
End Function
Public Function GetBulkDataStringsVehCat() As DataTable
Dim StrProcName As String
Dim StrVehCat As String
If OpShortDescCarsAll.Checked = True Then
StrVehCat = "Car"
End If
If OpShortDescBikesAll.Checked = True Then
StrVehCat = "Motorcycle"
End If
If OpShortDescLcvAll.Checked = True Then
StrVehCat = "Lcv"
End If
If OpShortDescOthersAll.Checked = True Then
StrVehCat = "Others"
End If
dtWords = New DataTable
Dim connectionString As String = ConfigurationManager.ConnectionStrings("Dictionary").ConnectionString
StrProcName = "usp_GetBulkDescStringsVehCat"
Using conn As New SqlConnection(connectionString)
Using cmd As New SqlCommand(StrProcName, conn)
cmd.CommandType = CommandType.StoredProcedure
conn.Open()
'cmd.Parameters.AddWithValue("@Client", StrClient)
cmd.Parameters.AddWithValue("@VCategory", StrVehCat)
Dim reader As SqlDataReader = cmd.ExecuteReader()
dtWords.Load(reader)
End Using
End Using
Return dtWords
End Function
Public Function GetBulkDataStrings() As DataTable
Dim StrProcName As String
dtWords = New DataTable
Dim connectionString As String = ConfigurationManager.ConnectionStrings("Dictionary").ConnectionString
StrProcName = "usp_GetBulkDescStrings"
Using conn As New SqlConnection(connectionString)
Using cmd As New SqlCommand(StrProcName, conn)
cmd.CommandType = CommandType.StoredProcedure
conn.Open()
'cmd.Parameters.AddWithValue("@Client", StrClient)
Dim reader As SqlDataReader = cmd.ExecuteReader()
dtWords.Load(reader)
End Using
End Using
Return dtWords
End Function
ASKER
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,
TRUSTED BY
Open in new window