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.
ITSM/.svn/pristine/c2/c293d0c27f07c9f26dd8c450cd1...

136 lines
6.8 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>frmAuswertungsParameter.get_where -Methode</TITLE>
<xml>
<MSHelp:TOCTitle Title="frmAuswertungsParameter.get_where -Methode"/>
<MSHelp:RLTitle Title="frmAuswertungsParameter.get_where -Methode"/>
<MSHelp:Keyword Index="A" Term="topic_0000000000000D23"/>
<MSHelp:Keyword Index="K" Term="frmAuswertungsParameter.get_where -Methode"/>
<MSHelp:Keyword Index="K" Term="Vertragsverwaltung.frmAuswertungsParameter.get_where -Methode"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmAuswertungsParameter.get_where"/>
<MSHelp:Keyword Index="F" Term="frmAuswertungsParameter.get_where"/>
<MSHelp:Keyword Index="F" Term="Vertragsverwaltung.frmAuswertungsParameter.frmAuswertungsParameter.get_where"/>
<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_0000000000000D23"></A>frmAuswertungsParameter.get_where -Methode</H1>
</div></div>
<!--NONSCROLLING BANNER END-->
<DIV id="nstext" valign="bottom"><!---->
<PRE class="syntax"><SPAN class="lang">[Visual&nbsp;Basic]
</SPAN><B>Private Function get_where( _&nbsp;<br> ByVal <i>nr</i> As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemInt32ClassTopic.htm">Integer</a> _&nbsp;<br>) As <a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">String</a></B></PRE>
<H4 class="dtH4">Parameter</H4>
<dl>
<dt><i>nr</i></dt>
<dd></dd>
</dl>
<H4 class="dtH4">Quellcode</H4>
<pre class="code"><SPAN class="lang">[Visual&nbsp;Basic]</SPAN>
Private Function get_where(ByVal nr As Integer) As String&nbsp;<br> Dim param As New ComboBox&nbsp;<br> Dim op As New ComboBox&nbsp;<br> Dim val As New ComboBox&nbsp;<br>&nbsp;<br> l.Clear()&nbsp;<br> Dim feld As String&nbsp;<br> Dim dr As DataRow&nbsp;<br> feld = &quot;cbparam&quot; + Trim(Str(nr))&nbsp;<br> Me.GetControl(Me, feld, l)&nbsp;<br> param = l.Item(0)&nbsp;<br>&nbsp;<br> l.Clear()&nbsp;<br> feld = &quot;cbop&quot; + Trim(Str(nr))&nbsp;<br> Me.GetControl(Me, feld, l)&nbsp;<br> op = l.Item(0)&nbsp;<br>&nbsp;<br> l.Clear()&nbsp;<br> feld = &quot;cbvalue&quot; + Trim(Str(nr))&nbsp;<br> Me.GetControl(Me, feld, l)&nbsp;<br> val = l.Item(0)&nbsp;<br>&nbsp;<br> dr = Me.Findrow(param.Text)&nbsp;<br>&nbsp;<br> Dim wertvalue As String = &quot;&quot;&nbsp;<br> Dim wertdbfeld As String = &quot;&quot;&nbsp;<br> Dim wertop As String = op.Text&nbsp;<br>&nbsp;<br> wertop = op.Text&nbsp;<br>&nbsp;<br> Dim paramtyp As String = &quot;&quot;&nbsp;<br> Dim paramsplit() As String = dr.Item(&quot;Paramtype&quot;).ToString.Split(&quot;;&quot;)&nbsp;<br>&nbsp;<br> Dim dbfeldsplit() As String = dr.Item(&quot;dbfeldname&quot;).ToString.Split(&quot;;&quot;)&nbsp;<br> If dbfeldsplit.Length &gt; 1 And val.SelectedIndex &gt; -1 Then&nbsp;<br> wertvalue = val.SelectedValue&nbsp;<br> wertdbfeld = dbfeldsplit(0)&nbsp;<br> paramtyp = paramsplit(0)&nbsp;<br> Else&nbsp;<br> wertvalue = val.Text&nbsp;<br> If dbfeldsplit.Length &gt; 1 Then&nbsp;<br> wertdbfeld = dbfeldsplit(1)&nbsp;<br> paramtyp = paramsplit(1)&nbsp;<br> Else&nbsp;<br> wertdbfeld = dbfeldsplit(0)&nbsp;<br> paramtyp = paramsplit(0)&nbsp;<br> End If&nbsp;<br> End If&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>&nbsp;<br> Select Case UCase(paramtyp)&nbsp;<br> Case &quot;VARCHAR&quot;, &quot;STRING&quot;, &quot;CHAR&quot;&nbsp;<br> Return wertdbfeld + &quot; &quot; + wertop + &quot; '&quot; + wertvalue + &quot;'&quot;&nbsp;<br> Case &quot;INTEGER&quot;, &quot;INT&quot;&nbsp;<br> Return wertdbfeld + &quot; &quot; + wertop + &quot; &quot; + wertvalue + &quot;&quot;&nbsp;<br> Case &quot;DATUM&quot;&nbsp;<br> Return wertdbfeld + &quot; &quot; + wertop + &quot; '&quot; + wertvalue + &quot; 00:00:00'&quot;&nbsp;<br> Case &quot;DATUM+1&quot;&nbsp;<br> Dim d As DateTime = wertvalue&nbsp;<br> d = DateAdd(DateInterval.Day, 1, d)&nbsp;<br> wertvalue = d.ToString&nbsp;<br> Return wertdbfeld + &quot; &quot; + wertop + &quot; '&quot; + wertvalue + &quot; 00:00:00'&quot;&nbsp;<br> Case &quot;BOOLEAN&quot;&nbsp;<br> If UCase(wertvalue) = &quot;TRUE&quot; Or UCase(wertvalue) = &quot;JA&quot; Then&nbsp;<br> Return wertdbfeld + &quot; &quot; + wertop + &quot; 1&quot;&nbsp;<br> Else&nbsp;<br> Return wertdbfeld + &quot; &quot; + wertop + &quot; 0&quot;&nbsp;<br> End If&nbsp;<br> Case Else&nbsp;<br>&nbsp;<br> End Select&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_0000000000000D14.html">frmAuswertungsParameter</a>
</p>
<DIV CLASS="footer">
<HR>
Generated by VBdocman .NET
<p>
</div></div>
</BODY>
</HTML>