<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcDBTable.SetFilter</id>
	<title>PdcDBTable.SetFilter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcDBTable.SetFilter"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcDBTable.SetFilter&amp;action=history"/>
	<updated>2026-05-06T14:25:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcDBTable.SetFilter&amp;diff=1804&amp;oldid=prev</id>
		<title>Mike: Created page with &quot;== Declaration == SetFilter(Filter as String) as Boolean  == Description == Returns true or false whether a filter is succesfully set on the table   == Notes == This method fi...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcDBTable.SetFilter&amp;diff=1804&amp;oldid=prev"/>
		<updated>2012-05-22T09:51:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == SetFilter(Filter as String) as Boolean  == Description == Returns true or false whether a filter is succesfully set on the table   == Notes == This method fi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
SetFilter(Filter as String) as Boolean&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Returns true or false whether a filter is succesfully set on the table &lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This method filters a set of records in a opened table.&lt;br /&gt;
All standard pdc filter functions and expressions are available.&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
This code filters all calculations with status seven, deliverymonth december and delivery year 2008.&lt;br /&gt;
Par calculation the calculationnumber is shown.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
Dim tblDO_ORDER&lt;br /&gt;
dim strFilter&lt;br /&gt;
&lt;br /&gt;
  Set tblDO_ORDER = pdc.DataBase.OpenTable(pdcConData, &amp;quot;DO_ORDER&amp;quot;, &amp;quot;DO_ORDNR&amp;quot;)&lt;br /&gt;
  strFilter = &amp;quot;(UPPER(DO_STAT)=&amp;#039;7&amp;#039;) AND (Month(DO_LEVER)=12) AND (YEAR(DO_LEVER)=2008)&amp;quot;&lt;br /&gt;
  &amp;#039;msgbox strFilter&lt;br /&gt;
  tblDO_ORDER.SetFilter strFilter&lt;br /&gt;
&lt;br /&gt;
    if tblDO_ORDER.RecordCount &amp;gt; 0 then&lt;br /&gt;
    msgbox tblDO_ORDER.RecordCount&lt;br /&gt;
&lt;br /&gt;
    tblDO_ORDER.FirstRecord&lt;br /&gt;
    do while not tblDO_ORDER.Eof&lt;br /&gt;
      msgbox &amp;quot;Calculation no: &amp;quot; &amp;amp; tblDO_ORDER.GetField(&amp;quot;DO_ORDNR&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
      tblDO_ORDER.NextRecord&lt;br /&gt;
    loop&lt;br /&gt;
  end if&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since June 2008 (from version 3.8)&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
</feed>