Vertragsverwaltung-Klassenbibliothek  

clsStammdaten.Get_Gremium -Methode

[Visual Basic]
Public Function Get_Gremium( _ 
ByVal type As Integer, _ 
ByVal subtype As Integer
) As DataTable

Parameter

type
subtype

Quellcode

[Visual Basic]
        Public Function Get_Gremium(ByVal type As Integer, ByVal subtype As Integer) As DataTable 
Dim selectcommand As New SqlCommand 
Dim connection As New SqlConnection() 
Dim da As New SqlDataAdapter("", connection) 
Dim ds As New DataSet 
selectcommand.CommandText = "dbo.sp_get_gremium" 
selectcommand.Parameters.Add("@type", SqlDbType.Int, 4) 
selectcommand.Parameters.Add("@subtype", SqlDbType.Int, 4) 
selectcommand.Parameters(0).Value = type 
selectcommand.Parameters(1).Value = subtype 
 
selectcommand.CommandType = CommandType.StoredProcedure 
selectcommand.Connection = connection 
Try 
connection.ConnectionString = Globals.sConnectionString 
connection.Open() 
da.SelectCommand = selectcommand 
da.Fill(ds) 
Return ds.Tables(0) 
Catch ex As Exception 
Finally 
connection.Close() 
da.Dispose() 
ds.Dispose() 
selectcommand.Dispose() 
End Try 
 
End Function

Forderungen

Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Siehe auch

clsStammdaten