You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

140 lines
5.7 KiB

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML xmlns:MSHelp="http://msdn.microsoft.com/mshelp" DIR="LTR"><HEAD>
<meta name="GENERATOR" content="VBdocman .NET - documentation generator; http://www.vbdocman.com">
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=UTF-8">
<TITLE>clsAuswertung.Get_Auswertungsdaten (System.String, System.String, System.Boolean) -Methode</TITLE>
<xml>
<MSHelp:TOCTitle Title="clsAuswertung.Get_Auswertungsdaten (System.String, System.String, System.Boolean) -Methode"/>
<MSHelp:RLTitle Title="clsAuswertung.Get_Auswertungsdaten (System.String, System.String, System.Boolean) -Methode"/>
<MSHelp:Keyword Index="A" Term="topic_0000000000000D57"/>
<MSHelp:Keyword Index="K" Term="clsAuswertung.Get_Auswertungsdaten (System.String, System.String, System.Boolean) -Methode"/>
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.TKB.Auswertung.clsAuswertung.Get_Auswertungsdaten -Methode"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.Auswertung.clsAuswertung.Get_Auswertungsdaten"/>
<MSHelp:Keyword Index="F" Term="clsAuswertung.Get_Auswertungsdaten (System.String, System.String, System.Boolean)"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.TKB.Auswertung.clsAuswertung.clsAuswertung.Get_Auswertungsdaten (System.String, System.String, System.Boolean)"/>
<MSHelp:Attr Name="DevLang" Value="VB"/>
<MSHelp:Attr Name="DevLangVers" Value="kbLangVB"/>
<MSHelp:Attr Name="DocSet" Value="Visual Basic"/>
<MSHelp:Attr Name="DocSet" Value="Visual Studio"/>
<MSHelp:Attr Name="DocSet" Value="VSM"/>
<MSHelp:Attr Name="Product" Value="VB"/>
<MSHelp:Attr Name="ProductVers" Value="kbVBp700"/>
<MSHelp:Attr Name="Product" Value="VSA"/>
<MSHelp:Attr Name="ProductVers" Value="kbVSA"/>
<MSHelp:Attr Name="Technology" Value="ManagedCode"/>
<MSHelp:Attr Name="TechnologyVers" Value="kbManagedCode"/>
<MSHelp:Attr Name="TopicType" Value="kbSyntax"/>
<MSHelp:Attr Name="TargetOS" Value="Windows"/>
<MSHelp:Attr Name="Locale" Value="kbEnglish"/>
</xml>
<META name="rtfFileName" content="">
<META NAME="save" CONTENT="history">
<!--CSS_START-->
<SCRIPT SRC="MSHelp/scripts/dtuelink.js"></SCRIPT>
<!--CSS_END-->
<SCRIPT language="JavaScript">
function indent(level) {
for (i=1; i<=level; i++) {
document.write("&nbsp;&nbsp;&nbsp;");
}
}
</SCRIPT>
</HEAD>
<body topmargin=0 id="bodyID" class = "dtBODY"><!--NONSCROLLING BANNER START-->
<div id="nsbanner">
<div id="bannerrow1">
<TABLE CLASS="bannerparthead" CELLSPACING=0>
<TR ID="hdr">
<TD CLASS="runninghead" nowrap>Vertragsverwaltung-Klassenbibliothek</TD>
<TD CLASS="product" nowrap>&nbsp;</TD>
</TR>
</TABLE>
</div>
<div id="TitleRow">
<H1 class="dtH1"><A NAME="topic_0000000000000D57"></A>clsAuswertung.Get_Auswertungsdaten (System.String, System.String, System.Boolean) -Methode</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!---->
<PRE class="syntax"><SPAN class="lang">[Visual&nbsp;Basic]
</SPAN><B>Public Function Get_Auswertungsdaten( _&nbsp;<br> ByVal <i>sp</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>, _&nbsp;<br> ByVal <i>sqlwhere</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a>, _&nbsp;<br> ByVal <i>txp</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemBooleanClassTopic.htm">Boolean</a> _&nbsp;<br>) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDataDataTableClassTopic.htm">DataTable</a></B></PRE>
<H4 class="dtH4">Parameter</H4>
<dl>
<dt><i>sp</i></dt>
<dd></dd>
<dt><i>sqlwhere</i></dt>
<dd></dd>
<dt><i>txp</i></dt>
<dd></dd>
</dl>
<H4 class="dtH4">Quellcode</H4>
<pre class="code"><SPAN class="lang">[Visual&nbsp;Basic]</SPAN>
Public Function Get_Auswertungsdaten(ByVal sp As String, ByVal sqlwhere As String, ByVal txp As Boolean) As DataTable&nbsp;<br>&nbsp;<br> Dim con As New SqlConnection(Get_TXP_Connection)&nbsp;<br> Dim scmCmdToExecute As SqlCommand = New SqlCommand()&nbsp;<br> Dim dtToReturn As DataTable = New DataTable()&nbsp;<br> Dim sdaAdapter As SqlDataAdapter = New SqlDataAdapter(scmCmdToExecute)&nbsp;<br> scmCmdToExecute.CommandText = sp&nbsp;<br> scmCmdToExecute.CommandType = CommandType.StoredProcedure&nbsp;<br> scmCmdToExecute.Connection = con&nbsp;<br> scmCmdToExecute.CommandTimeout = 30000&nbsp;<br>&nbsp;<br> Try&nbsp;<br> scmCmdToExecute.Parameters.Add(New SqlParameter(&quot;@sqlwhere&quot;, SqlDbType.VarChar, 1024, ParameterDirection.Input, True, 0, 0, &quot;&quot;, DataRowVersion.Proposed, sqlwhere))&nbsp;<br> sdaAdapter.Fill(dtToReturn)&nbsp;<br> Return dtToReturn&nbsp;<br> Catch ex As Exception&nbsp;<br> ' // some error occured. Bubble it to caller and encapsulate Exception object&nbsp;<br> Throw New Exception(&quot;frmAuswertung::&quot; &amp; scmCmdToExecute.CommandText &amp; &quot;::Error occured.&quot; &amp; ex.Message, ex)&nbsp;<br> Finally&nbsp;<br> con.Close()&nbsp;<br> scmCmdToExecute.Dispose()&nbsp;<br> sdaAdapter.Dispose()&nbsp;<br> con.Dispose()&nbsp;<br> End Try&nbsp;<br>&nbsp;<br> End Function
</pre>
<H4 class="dtH4">Forderungen</H4>
<P><b class="le">Plattformen:&nbsp;</b>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</P>
<H4 class="dtH4">Siehe auch</H4>
<p>
<a href="topic_0000000000000D44.html">clsAuswertung</a>
</p>
<DIV CLASS="footer">
<HR>
Generated by VBdocman .NET
<p>
</div></div>
</BODY>
</HTML>