Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 864d1c3c3cd8df4e3a2692faf8776e05 > files > 911

db4o-doc-7.4-2.fc13.i686.rpm

<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>QBE Limitations</title>
    <link rel="stylesheet" type="text/css" href="../../../../style.css">
  </head>
  <body>
    <div class="CommonContent">
      <div class="CommonContentArea">
        <h1>QBE Limitations</h1><script>
//We attach this function to a browser object as a variable so that if multiple of these blocks are
//present on the same page, then they will simply over-write eachother with the same function instead
//of generating a naming collision.
window.WikiCodeFormattingCopyToClipboard = function copyToClipboard(sID){
	var sContent = document.getElementById(sID).innerText;
	if( window.clipboardData && clipboardData.setData )
	{
		clipboardData.setData("Text", sContent);
	}
	else
	{
		alert("You must enable javascript access to your clipboard for this feature to work. Please referr to your browser documentation or Google search for instructions.");
	}
}
</script><p>As it was mentioned <a href="../query_by_example.html" class="wikiLink">before</a> QBE has some serious limitations. 
</p><p>Query-By-Example evaluates all non-null
fields and all simple type variables that do not hold their default
values against the stored objects. Check to make sure that you are
not constraining the resultset by accidentally initializing variables
on your template objects. Typical places could be: <br></p><ul><li>Constructors
</li><li>Constructors in ancestors of your class </li><li>Static
initialization </li><li>Static initialization in ancestors of your
class.</li></ul><p>The following classes provide an example of classes that cannot be used with QBE:</p><ul><li><a href="qbe_limitations/pilot1.html" class="wikiLink">Pilot1</a></li><li><a href="qbe_limitations/pilot1derived.html" class="wikiLink">Pilot1Derived</a> <br></li><li><a href="qbe_limitations/pilot2.html" class="wikiLink">Pilot2</a></li><li><a href="qbe_limitations/pilot2derived.html" class="wikiLink">Pilot2Derived</a> <br></li></ul><p>The following examples show the results of QBE usage with the classes above. Note, that there are some differences between Java and .NET behavior: </p><ul><li>in Java QBE does not return any results when static initialization or initialization in a constructor is present;</li><li>in .NET QBE will return results in the above-mentioned cases, but it can't guarantee that the result will be correct if the value was changed in the constructor.<br></li></ul><p>1. QBE used against a class that has arbitrary member initialization in the constructor:&nbsp;</p><span name="cs_wiki_filter" csw_filters="cs"><div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.cs: <span class="fscMemberName">test1</span></span></div><div class="fscCode"><pre ID="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> Test1()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Open_Text').style.display='inline';"/>        </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_36_1156_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IObjectContainer container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database();
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (container </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Open_Text').style.display='inline';"/>            </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_138_1146_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">try</span><span style="color: #000000;">
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_176_725_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Pilot1 contains re-initialisation in the constructor</span><span style="color: #008000;">
</span><span style="color: #008080;">09</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    Pilot1 pilot </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot1(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">);
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Set(pilot);
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit();
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">13</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.Get(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot1(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">));
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class with member re-initialization in constructor</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">);
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result);
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Db4oException ex)
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_783_881_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Exception ex)
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_935_1035_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">finally</span><span style="color: #000000;">
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test1_1390_42_1076_1132_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase();
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>&nbsp;</p></span>
<span name="cs_wiki_filter" csw_filters="vb">
<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.vb: <span class="fscMemberName">test1</span></span></div><div class="fscCode"><pre ID="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Open_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Closed_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Closed_Text').style.display='inline';"/><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Closed_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Open_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Test1()</span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test1_1498_42_15_1037_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Test1()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database()
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">IsNot</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> Pilot1 contains re-initialisation in the constructor</span><span style="color: #008000;">
</span><span style="color: #008080;">06</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> pilot </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot1(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">)
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.[</span><span style="color: #0000FF;">Set</span><span style="color: #000000;">](pilot)
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit()
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">10</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> result </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectSet </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.[</span><span style="color: #0000FF;">Get</span><span style="color: #000000;">](</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot1(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">))
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class with member re-initialization in constructor</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">)
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result)
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Db4oException
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Exception
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;">
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase()
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>&nbsp;</p>
</span><p>2. This example is similar to the previous one, but uses a class derived from the class in test1:</p>


<span name="cs_wiki_filter" csw_filters="cs">
<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.cs: <span class="fscMemberName">test2</span></span></div><div class="fscCode"><pre ID="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> Test2()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Open_Text').style.display='inline';"/>        </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_36_1194_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IObjectContainer container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database();
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (container </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Open_Text').style.display='inline';"/>            </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_138_1184_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">try</span><span style="color: #000000;">
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_176_763_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Pilot1Derived derives the constructor with re-initialisation</span><span style="color: #008000;">
</span><span style="color: #008080;">09</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    Pilot1Derived pilot </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot1Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">);
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Set(pilot);
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit();
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">13</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.Get(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot1Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">));
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class with member re-initialization in ancestor constructor</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">);
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result);
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Db4oException ex)
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_821_919_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Exception ex)
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_973_1073_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">finally</span><span style="color: #000000;">
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test2_1716_42_1114_1170_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase();
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>&nbsp;</p>
</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.vb: <span class="fscMemberName">test2</span></span></div><div class="fscCode"><pre ID="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Open_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Closed_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Closed_Text').style.display='inline';"/><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Closed_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Open_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Test2()</span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test2_1830_42_15_1068_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Test2()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database()
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">IsNot</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> Pilot1Derived derives the constructor with re-initialisation</span><span style="color: #008000;">
</span><span style="color: #008080;">06</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> pilot </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot1Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">)
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.[</span><span style="color: #0000FF;">Set</span><span style="color: #000000;">](pilot)
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit()
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">10</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> result </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectSet </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.[</span><span style="color: #0000FF;">Get</span><span style="color: #000000;">](</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot1Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">))
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class with member re-initialization in ancestor constructor</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">)
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result)
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Db4oException
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Exception
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;">
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase()
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>&nbsp;</p>

</span>

<p>3. This example uses QBE against a class with static member initialization:</p>
<span name="cs_wiki_filter" csw_filters="cs">
<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.cs: <span class="fscMemberName">test3</span></span></div><div class="fscCode"><pre ID="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> Test3()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Open_Text').style.display='inline';"/>        </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_36_1150_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IObjectContainer container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database();
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (container </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Open_Text').style.display='inline';"/>            </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_138_1140_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">try</span><span style="color: #000000;">
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_176_719_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Pilot2 uses static value to initializ points </span><span style="color: #008000;">
</span><span style="color: #008080;">09</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    Pilot2 pilot </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot2(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">);
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Set(pilot);
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit();
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">13</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.Get(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot2(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">));
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class with member initialization using static value</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">);
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result);
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Db4oException ex)
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_777_875_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Exception ex)
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_929_1029_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">finally</span><span style="color: #000000;">
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test3_2028_42_1070_1126_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase();
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>&nbsp;</p>
</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.vb: <span class="fscMemberName">test3</span></span></div><div class="fscCode"><pre ID="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Open_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Closed_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Closed_Text').style.display='inline';"/><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Closed_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Open_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Test3()</span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test3_2142_42_15_1030_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Test3()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database()
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">IsNot</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> Pilot2 uses static value to initializ points</span><span style="color: #008000;">
</span><span style="color: #008080;">06</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> pilot </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot2(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">)
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.[</span><span style="color: #0000FF;">Set</span><span style="color: #000000;">](pilot)
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit()
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">10</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> result </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectSet </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.[</span><span style="color: #0000FF;">Get</span><span style="color: #000000;">](</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot2(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">))
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class with member initialization using static value</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">)
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result)
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Db4oException
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Exception
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;">
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase()
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>&nbsp;</p>

</span>
<p>4. This example is similar to test3, but a derived class is used:</p>
<span name="cs_wiki_filter" csw_filters="cs">
<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.cs: <span class="fscMemberName">test4</span></span></div><div class="fscCode"><pre ID="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">static</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> Test4()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Open_Text').style.display='inline';"/>        </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_36_1239_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            IObjectContainer container </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database();
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">if</span><span style="color: #000000;"> (container </span><span style="color: #000000;">!=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">null</span><span style="color: #000000;">)
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Open_Text').style.display='inline';"/>            </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_138_1229_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">try</span><span style="color: #000000;">
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_176_808_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> Pilot2Derived is derived from class with initialization of points member using static value</span><span style="color: #008000;">
</span><span style="color: #008080;">09</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    Pilot2Derived pilot </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot2Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">);
</span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Set(pilot);
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit();
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">//</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">13</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.Get(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> Pilot2Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">));
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class derived from a class with member initialization using static member</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">);
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result);
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Db4oException ex)
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_866_964_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">catch</span><span style="color: #000000;"> (Exception ex)
</span><span style="color: #008080;">22</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1018_1118_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">23</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message);
</span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">finally</span><span style="color: #000000;">
</span><span style="color: #008080;">26</span><span style="color: #000000;"><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Open_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Closed_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Closed_Text').style.display='inline';"/><img id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Closed_Text').style.display='none'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Open_Image').style.display='inline'; document.getElementById('..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Open_Text').style.display='inline';"/>                </span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="..QbeCS.ZipsQBEExample.Cs_QBEExample.Cs_Test4_2328_42_1159_1215_Open_Text"><span style="color: #000000;">{
</span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase();
</span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>                }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/>            }</span></span><span style="color: #000000;">
</span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        }</span></span></div></pre></div></div>&nbsp;</p>
</span>

<span name="cs_wiki_filter" csw_filters="vb">

<div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">QBEExample.vb: <span class="fscMemberName">test4</span></span></div><div class="fscCode"><pre ID="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42"><div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

--><span style="color: #008080;">01</span><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Open_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Open_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Closed_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Closed_Text').style.display='inline';"/><img id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Closed_Image" src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Closed_Text').style.display='none'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Open_Image').style.display='inline'; document.getElementById('..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Open_Text').style.display='inline';"/><span style="color: #0000FF;">Private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Shared</span><span style="color: #000000;"> </span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub Test4()</span><span id="..QbeVB.ZipsQBEExample.Vb_QBEExample.Vb_Test4_2442_42_15_1113_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> Test4()
</span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Database()
</span><span style="color: #008080;">03</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">If</span><span style="color: #000000;"> container </span><span style="color: #0000FF;">IsNot</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Nothing</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Then</span><span style="color: #000000;">
</span><span style="color: #008080;">04</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">05</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> Pilot2Derived is derived from class with initialization of points member using static value</span><span style="color: #008000;">
</span><span style="color: #008080;">06</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> pilot </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot2Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">)
</span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.[</span><span style="color: #0000FF;">Set</span><span style="color: #000000;">](pilot)
</span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    container.Commit()
</span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    </span><span style="color: #008000;">'</span><span style="color: #008000;"> QBE returns result with wrong points</span><span style="color: #008000;">
</span><span style="color: #008080;">10</span><span style="color: #008000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/></span><span style="color: #000000;">                    </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> result </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectSet </span><span style="color: #000000;">=</span><span style="color: #000000;"> container.[</span><span style="color: #0000FF;">Get</span><span style="color: #000000;">](</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> Pilot2Derived(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Kimi Raikonnen</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">, </span><span style="color: #800080;">100</span><span style="color: #000000;">))
</span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Test QBE on class derived from a class with member initialization using static member</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">)
</span><span style="color: #008080;">12</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    ListResult(result)
</span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Db4oException
</span><span style="color: #008080;">14</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Db4o Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Catch</span><span style="color: #000000;"> ex </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> Exception
</span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    System.Console.WriteLine(</span><span style="color: #800000;">&quot;</span><span style="color: #800000;">System Exception: </span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> ex.Message)
</span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">Finally</span><span style="color: #000000;">
</span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                    CloseDatabase()
</span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>                </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;">
</span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/>            </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">If</span><span style="color: #000000;">
</span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>        </span><span style="color: #0000FF;">End Sub</span></span></div></pre></div></div>&nbsp;</p>

</span></div>
    </div>
    <div id="footer">
					This revision (3) was last Modified 2007-09-09T10:28:56 by Tetyana.
				</div>
  </body>
</html>