Files
pdm/documentation/api_extracted/Using_Basic_Search_Syntax_Example_VBNET.htm

1181 lines
73 KiB
HTML

<html>
<head>
<title>Using Basic Search Syntax Example (VB.NET)</title>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="ApiHelp.css">
</head>
<meta name=MS-HKWD content="VB.NET examples,search syntax">
<body>
<h1><font size="1"><span style="font-weight: 400">SOLIDWORKS PDM Professional API Help</span></h1>
<h1>Using Basic Search Syntax Example (VB.NET)</h1>
<p><a name="top"></a><a name="Top0"></a>This example shows how to search the
vault for file and folder card variables using CreateSearch2 search syntax.</p>
<p><b>NOTE</b>: If using the primary interop assembly
provided with SOLIDWORKS PDM Professional, see
<a href="Using_NET_Framework_in_Applications.htm">Using .NET Framework 4.0 in
Stand-alone Applications</a>.</p>
<p style="font-family: Courier New; font-size: 13; color: black; background: white" class="APICODE"><span style="COLOR: green">'----------------------------------------------------------------------------</span><br>
<span style="COLOR: green">' Preconditions:</span><br>
<span style="COLOR: green">' 1. Start Microsoft Visual Studio.</span><br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; a. Click <b>File &gt; New &gt; Project &gt; Visual Basic &gt;
Console Application</b>.</span><br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; b. Type Search_VBNET in <b>Name</b>.</span><br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; c. Click <b>Browse</b> and navigate to the folder where to create the project.</span><br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; d. Click <b>OK</b>. </span>
<br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; e. Click <b>Show All Files</b> in the Solution Explorer toolbar and expand </span>
<br>
<span style="COLOR: green">' <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Module1.vb</b> in the Solution Explorer.</span><br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; f. Replace all the code for
<strong>Module1</strong><b>.vb</b> with <a href="#Form1">this code</a>.</span><br>
<span style="COLOR: green">' 2. Add <b>EPDM.Interop.epdm.dll</b> as a reference (right-click the project</span><br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; name in the Solution Explorer, click <b>Add Reference</b>, click </span>
<br>
<span style="COLOR: green">' <b> &nbsp;&nbsp; Assemblies &gt; Framework</b> in the left-side panel, browse to the top folder of </span>
<br>
<span style="COLOR: green">'&nbsp;&nbsp;&nbsp; your SOLIDWORKS PDM Professional
installation, locate and select </span>
<br>
<span style="COLOR: green">' <b> &nbsp;&nbsp; EPDM.Interop.epdm.dll</b>, click <b>Open</b>, click <b>Add</b>, and click <b>Close</b>).<br>
'<font color="#008000" face="Courier New"> 3. Change the vault name and the
vault view path in the code.<br>' 4. Make sure your vault contains a text file
data card with a Document Number data card variable,<br>'&nbsp;&nbsp;&nbsp;
and checked-in files with data card values exactly as described in the code.</font><br>
' 5. Click <b>Debug &gt; Start Debugging</b> or press F5.</span><br>
<span style="COLOR: green">'</span><br>
<span style="COLOR: green">' Postconditions: Press a key when prompted in the
console.</span><br>
<span style="COLOR: green">'---------------------------------------------------------------------------</span></p>
<p style="font-family: Courier New; font-size: 10pt; color: black; background: white" class="APICODE"><font color="#008000"><a name="Form1"></a>
'Module<font face="Courier New">1.vb</font></font></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Imports</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
System<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Imports</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
System.Collections.Generic<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Imports</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
System.Linq<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Imports</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
System.Text<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Imports</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
System.Threading.Tasks<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Imports</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
EPDM.Interop.epdm<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Module</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2B91AF">
Module1</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp; </span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Sub</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> Main(</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">ByVal</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
args </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
String</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">())<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Press
a key...&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
Console.ReadKey()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Dim</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> CurrentVault </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
IEdmVault21 = </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
TryCast</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">New</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
EdmVault5(), IEdmVault21)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
CurrentVault.LoginAuto(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;JEB5&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,
0)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green">' The vault contains these
files<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
The file data cards contain these variables And values: </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green">' DocNum=five-six-seven
Comnt=ijk.txt<span style="mso-spacerun:yes">&nbsp;&nbsp; </span>@Document
Number=567 &amp; @Comment=ijk</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green">' DocNum=five-six-seven
Comnt=xyz.txt<span style="mso-spacerun:yes">&nbsp;&nbsp; </span>@Document
Number=567 &amp; @Comment=xyz</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green">' DocNum=one-two-three
Comnt=abc.txt<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp; </span>@Document
Number=123 &amp; @Comment=abc</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Dim</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> _searchResult </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
IEdmSearchResult5<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Dim</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> _search </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> IEdmSearch9 = </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
CType</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">(CurrentVault.CreateSearch2(),
IEdmSearch9)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Dim</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> VarNames0 </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
String</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">()
= {}<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
_search.AddMultiVariableCondition(VarNames0, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;@:&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
poVariableNames can be Nothing</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
_search.GetFirstResult()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Dim</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> OriginatedFromCreateSearch2
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Boolean</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
= _search.GetSyntaxErrors() </span>
<span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:blue">IsNot</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:blue">Nothing</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;OriginatedFromCreateSearch2<span style="mso-spacerun:yes">&nbsp;
</span>= &quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> &amp; OriginatedFromCreateSearch2)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Press
a key...&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
Console.ReadKey()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">For</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> i </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Integer</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> = 0 </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">To</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
7 - 1<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Dim</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> ExceptionEncountered </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Boolean</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
= </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
False</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.Clear()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.StartFolderID = CurrentVault.GetFolderFromPath(</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:#A31515">&quot;C:\Users\J4M\Desktop\JEB5&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">).ID<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Select</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> i<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> 0 </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:green">' Single variable search
conditions with special criteria and variables</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Single
variable search conditions with special criteria and variables:&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.FileName = </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;(limit | cam) !wheel OR DocNum&quot;</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddVariable2(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Document
Number&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#A31515">&quot;56 &amp; 7&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddVariable2(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Comment&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;xy | z NOT a&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Finds DocNum=five-six-seven Comnt=xyz.txt</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> 1 </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:green">' Multi-variable
condition with extended search name syntax</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Multi-variable
condition with extended search name syntax:&quot;</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
VarNames array declares that all elements are strings</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Dim</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
VarNames </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
String</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">()
= {</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;&quot;Document
Number&quot;&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#A31515">&quot;Comment&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">, </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515">&quot;51&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;_Name&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">}<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Both xy And z must be in the same card variable - owing to {}</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Text 567 can be in a different card variable</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
: turns on multi-value search logic</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddMultiVariableCondition(VarNames, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;:567 {z xy}&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Finds DocNum=five-six-seven Comnt=xyz.txt</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> 2 </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:green">' Multi-variable
condition searches all the card variables in file/folder name</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Multi-variable
condition for all the vault variables:&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Unquoted _Name represents file/folder name</span><span style="font-size:10.0pt;font-family:
&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
&quot;&quot; or 0 represents any card variable</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Dim</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
VarNames </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
String</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">()
= {</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;&quot;&quot;&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;_Name&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">}<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddMultiVariableCondition(VarNames, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;:567 xyz | five xy&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Finds DocNum=five-six-seven Comnt=xyz.txt</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> 3 </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:green">' Extended
multi-variable condition with erroneously unquoted card variable names</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Multi-variable
condition with erroneously unquoted names:&quot;</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Try</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Dim</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
VarNames </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
String</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">()
= {</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Document
Number&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#A31515">&quot;Comment&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">, </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:#A31515">&quot;Project Name&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">}<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddMultiVariableCondition(VarNames, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;:567 xyz | five xy&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Causes an exception because there are card variable names with spaces that need
extra quotation marks</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Catch</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
ex </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
System.ArgumentException<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Wrong
variable syntax... HRESULT = 0x&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> &amp; ex.HResult.ToString(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;X&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)
&amp; ex.Message)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>ExceptionEncountered = </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
True</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Try</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> 4<span style="mso-spacerun:yes">&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green">' Syntax errors are not
displayed; no documents returned</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Syntax
errors, but not displayed:&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.FileName = </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;(limit = | cam) !wheel OR AND DocNum&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddVariable2(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Document
Number&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#A31515">&quot;56 &amp;&amp; 7&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddVariable2(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Comment&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;xy | z() NOT a&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> 5 </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:green">' Syntax errors
displayed (because @: is at the beginning of a condition); no documents returned</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Syntax
errors:&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.FileName = </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;@:(limit = | cam) !wheel OR AND DocNum&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddVariable2(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Document
Number&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:#A31515">&quot;56 &amp;&amp; 7&quot;</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddVariable2(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Comment&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">,
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;@:xy | z() NOT a&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Case</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> 6<span style="mso-spacerun:yes">&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green">' Multi-value syntax with error
reporting (because @: is at the beginning of a condition)</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Advanced
search syntax:&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
The first argument can be Nothing because all the card variables are defined
with variable binding specifiers (@) inside the second argument which is the
condition</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
The second argument uses the advanced specifier which allows variable bindings</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
The second argument specifies to look for files that have (Comment = abc and any
card variables with xyz) OR (a file name or &quot;Document Number&quot; that contains 123
or ab, but not five)</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p>
</span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">'
Finds DocNum=one-two-three Comnt=abc.txt</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_search.AddMultiVariableCondition(VarNames0, </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">
&quot;@: @Comment=abc &amp; @&quot;&quot;&quot;&quot;(xyz) | @(&quot;&quot;Document Number&quot;&quot; | _Name)(123 ab &amp; !five)&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Select</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> ExceptionEncountered </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Then</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_searchResult = </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Nothing</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Else</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_searchResult = _search.GetFirstResult()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> _searchResult </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">Is</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Nothing</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Then</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Returned
null...&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Else</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Returned
a file list...&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Press
a key...&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.ReadKey()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> _searchResult </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
IsNot</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Nothing</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Then</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">While</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
_searchResult </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
IsNot</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Nothing</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;NAME
= &quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black"> &amp; _searchResult.Name &amp; </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;, PATH = &quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
+ _searchResult.Path)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Press
a key...&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.ReadKey()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>_searchResult = _search.GetNextResult()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">While</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Else</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Dim</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> SyntaxErrors </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
String</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">()
= _search.GetSyntaxErrors()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> SyntaxErrors </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
IsNot</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Nothing</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Then</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
For</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Each</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
s </span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">As</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
String</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
</span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">In</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">
SyntaxErrors<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(s)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.WriteLine(</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#A31515">&quot;Press
a key...&quot;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black">)<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Console.ReadKey()<o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
Next</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">If</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
</span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Next</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black">
<span style="mso-spacerun:yes">&nbsp;&nbsp;&nbsp; </span></span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:blue">Sub</span><span style="font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">End</span><span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black"> </span>
<span style="font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:blue">Module</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p></o:p></span></p>
<p class="APICODE">
<span style="font-size:10.0pt;line-height:107%;font-family:
&quot;Courier New&quot;"><o:p>&nbsp;</o:p></span></p>
<p class="APICODE">
&nbsp;</p>
<div align="center">
<pre style="font-family: Courier New; font-size: 10pt; color: black; background: white"><a href="#top">Back to top</a></pre>
</div>
<div align="center">
<pre style="font-family: Courier New; font-size: 10pt; color: black; background: white">
</pre>
</div>
</body>
</html>