<html> <head> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Multidimensional Arrays</title> <link rel="stylesheet" type="text/css" href="../../../style.css"> </head> <body> <div class="CommonContent"> <div class="CommonContentArea"> <h1>Multidimensional Arrays</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>Currently you can't use multidimensional array fields in a server without persistent classes setup. </p> <p> </p> <p> <span name="cs_wiki_filter" csw_filters="cs"></p> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">RecordBook.cs</span></div><div class="fscCode"><pre ID="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Open_Text').style.display='inline';"/><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">/**/</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_0_67_Open_Text"><span style="color: #008000;">/*</span><span style="color: #008000;"> Copyright (C) 2004 - 2006 db4objects Inc. </span><span style="color: #008000; text-decoration: underline;">http://www.db4o.com</span><span style="color: #008000;"> </span><span style="color: #008000;">*/</span></span><span style="color: #000000;"> </span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/None.gif" align="top"/></span><span style="color: #0000FF;">namespace</span><span style="color: #000000;"> Db4objects.Db4odoc.NoClasses.Client </span><span style="color: #008080;">03</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_114_740_Open_Text"><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: #008080;">05</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Open_Text').style.display='inline';"/></span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">class</span><span style="color: #000000;"> RecordBook </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_141_738_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;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">string</span><span style="color: #000000;">[,] _notes; </span><span style="color: #008080;">07</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">private</span><span style="color: #000000;"> </span><span style="color: #0000FF;">int</span><span style="color: #000000;"> _recordCounter; </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: #008080;">09</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">10</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> RecordBook() </span><span style="color: #008080;">11</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_228_283_Open_Text"><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"/> _notes </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> </span><span style="color: #0000FF;">string</span><span style="color: #000000;">[</span><span style="color: #800080;">20</span><span style="color: #000000;">,</span><span style="color: #800080;">3</span><span style="color: #000000;">]; </span><span style="color: #008080;">13</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _recordCounter </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;">; </span><span style="color: #008080;">14</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;">15</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">void</span><span style="color: #000000;"> AddRecord(</span><span style="color: #0000FF;">string</span><span style="color: #000000;"> period, </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> pilotName, </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> note) </span><span style="color: #008080;">17</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_359_511_Open_Text"><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"/> _notes[_recordCounter, </span><span style="color: #800080;">0</span><span style="color: #000000;">] </span><span style="color: #000000;">=</span><span style="color: #000000;"> period; </span><span style="color: #008080;">19</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _notes[_recordCounter, </span><span style="color: #800080;">1</span><span style="color: #000000;">] </span><span style="color: #000000;">=</span><span style="color: #000000;"> pilotName; </span><span style="color: #008080;">20</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _notes[_recordCounter, </span><span style="color: #800080;">2</span><span style="color: #000000;">] </span><span style="color: #000000;">=</span><span style="color: #000000;"> note; </span><span style="color: #008080;">21</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _recordCounter </span><span style="color: #000000;">++</span><span style="color: #000000;">; </span><span style="color: #008080;">22</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;">23</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">override</span><span style="color: #000000;"> </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> ToString() </span><span style="color: #008080;">25</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_553_736_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">string</span><span style="color: #000000;"> temp; </span><span style="color: #008080;">27</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> temp </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">Record book: \n</span><span style="color: #800000;">"</span><span style="color: #000000;">; </span><span style="color: #008080;">28</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">for</span><span style="color: #000000;"> (</span><span style="color: #0000FF;">int</span><span style="color: #000000;"> i</span><span style="color: #000000;">=</span><span style="color: #800080;">0</span><span style="color: #000000;">; i</span><span style="color: #000000;"><</span><span style="color: #000000;">_recordCounter;i</span><span style="color: #000000;">++</span><span style="color: #000000;"> )</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsRecordBook.Cs_RecordBook.Cs_192_39_636_718_Open_Text"><span style="color: #000000;">{ </span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> temp </span><span style="color: #000000;">=</span><span style="color: #000000;"> temp </span><span style="color: #000000;">+</span><span style="color: #000000;"> _notes[i,</span><span style="color: #800080;">0</span><span style="color: #000000;">] </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">/</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> _notes[i,</span><span style="color: #800080;">1</span><span style="color: #000000;">] </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">/</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> _notes[i,</span><span style="color: #800080;">2</span><span style="color: #000000;">] </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">\n</span><span style="color: #800000;">"</span><span style="color: #000000;">; </span><span style="color: #008080;">30</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;">31</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">return</span><span style="color: #000000;"> temp; </span><span style="color: #008080;">32</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;">33</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;">34</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/>}</span></span></div></pre></div></div> <br></p> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Client.cs: <span class="fscMemberName">SaveMultiArray</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54"><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;"> SaveMultiArray() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_45_635_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"/> Console.WriteLine(</span><span style="color: #800000;">"</span><span style="color: #800000;">Testing saving an object with multidimentional array field</span><span style="color: #800000;">"</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"/> IObjectContainer oc </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenClient(</span><span style="color: #800000;">"</span><span style="color: #800000;">localhost</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800080;">0xdb40</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</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: #0000FF;">try</span><span style="color: #000000;"> </span><span style="color: #008080;">06</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_263_549_Open_Text"><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"/> RecordBook recordBook </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">new</span><span style="color: #000000;"> RecordBook(); </span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> recordBook.AddRecord(</span><span style="color: #800000;">"</span><span style="color: #800000;">September 2006</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">Michael Schumacher</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">last race</span><span style="color: #800000;">"</span><span style="color: #000000;">); </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> recordBook.AddRecord(</span><span style="color: #800000;">"</span><span style="color: #800000;">September 2006</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">Kimi Raikkonen</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">no notes</span><span style="color: #800000;">"</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"/> oc.Set(recordBook); </span><span style="color: #008080;">11</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;">12</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;">13</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_SaveMultiArray_244_54_582_625_Open_Text"><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"/> oc.Close(); </span><span style="color: #008080;">15</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;">16</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> }</span></span></div></pre></div></div> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Client.cs: <span class="fscMemberName">GetMultiArray</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53"><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;"> GetMultiArray() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_44_465_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"/> Console.WriteLine(</span><span style="color: #800000;">"</span><span style="color: #800000;">Testing retrieving an object with multidimentional array field</span><span style="color: #800000;">"</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"/> IObjectContainer oc </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenClient(</span><span style="color: #800000;">"</span><span style="color: #800000;">localhost</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800080;">0xdb40</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</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: #0000FF;">try</span><span style="color: #000000;"> </span><span style="color: #008080;">06</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_266_379_Open_Text"><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"/> IObjectSet result </span><span style="color: #000000;">=</span><span style="color: #000000;"> oc.Get(</span><span style="color: #0000FF;">new</span><span style="color: #000000;"> RecordBook()); </span><span style="color: #008080;">08</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> ListResult(result); </span><span style="color: #008080;">09</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;">10</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;">11</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Open_Text').style.display='inline';"/> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">...</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesCS.ZipsClient.Cs_Client.Cs_GetMultiArray_300_53_412_455_Open_Text"><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"/> oc.Close(); </span><span style="color: #008080;">13</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;">14</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/> }</span></span></div></pre></div></div> <p></span></p> <p> <span name="cs_wiki_filter" csw_filters="vb"></p> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">RecordBook.vb</span></div><div class="fscCode"><pre ID="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39"><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: #008000;">'</span><span style="color: #008000;"> Copyright (C) 2004 - 2006 db4objects Inc. http://www.db4o.com </span><span style="color: #008000;"> </span><span style="color: #008080;">02</span><span style="color: #008000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Open_Text').style.display='inline';"/></span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Namespace Db4objects</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_65_1240_Open_Text"><span style="color: #0000FF;">Namespace</span><span style="color: #000000;"> Db4objects.Db4odoc.NoClasses.Client </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: #008080;">04</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Class RecordBook</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_123_1226_Open_Text"><span style="color: #0000FF;">Class</span><span style="color: #000000;"> RecordBook </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: #0000FF;">Private</span><span style="color: #000000;"> _notes </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><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;">Private</span><span style="color: #000000;"> _recordCounter </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</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"/> </span><span style="color: #008080;">08</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub New()</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_234_332_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;">() </span><span style="color: #008080;">09</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _notes </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;">(</span><span style="color: #800080;">20</span><span style="color: #000000;">, </span><span style="color: #800080;">3</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"/> _recordCounter </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;"> </span><span style="color: #008080;">11</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Sub</span></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"/> </span><span style="color: #008080;">13</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub AddRecord()</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_349_697_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> AddRecord(</span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> period </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> pilotName </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;">, </span><span style="color: #0000FF;">ByVal</span><span style="color: #000000;"> note </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</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"/> _notes(_recordCounter, </span><span style="color: #800080;">0</span><span style="color: #000000;">) </span><span style="color: #000000;">=</span><span style="color: #000000;"> period </span><span style="color: #008080;">15</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _notes(_recordCounter, </span><span style="color: #800080;">1</span><span style="color: #000000;">) </span><span style="color: #000000;">=</span><span style="color: #000000;"> pilotName </span><span style="color: #008080;">16</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> _notes(_recordCounter, </span><span style="color: #800080;">2</span><span style="color: #000000;">) </span><span style="color: #000000;">=</span><span style="color: #000000;"> note </span><span style="color: #008080;">17</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> System.Math.Min(System.Threading.Interlocked.Increment(_recordCounter), _recordCounter </span><span style="color: #000000;">-</span><span style="color: #000000;"> </span><span style="color: #800080;">1</span><span style="color: #000000;">) </span><span style="color: #008080;">18</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Sub</span></span><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"/> </span><span style="color: #008080;">20</span><span style="color: #000000;"><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedSubBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Open_Text').style.display='inline';"/> </span><span style="color: #0000FF;">Public</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Overloads</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Overrides</span><span style="color: #000000;"> </span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Function ToString()</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsRecordBook.Vb_RecordBook.Vb_433_39_734_1212_Open_Text"><span style="color: #0000FF;">Function</span><span style="color: #000000;"> ToString() </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</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;">Dim</span><span style="color: #000000;"> temp </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">String</span><span style="color: #000000;"> </span><span style="color: #008080;">22</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> temp </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">Record book: </span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">&</span><span style="color: #000000;"> Microsoft.VisualBasic.Chr(</span><span style="color: #800080;">10</span><span style="color: #000000;">) </span><span style="color: #000000;">&</span><span style="color: #000000;"> </span><span style="color: #800000;">""</span><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"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> i </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Integer</span><span style="color: #000000;"> </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #800080;">0</span><span style="color: #000000;"> </span><span style="color: #008080;">24</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">While</span><span style="color: #000000;"> i </span><span style="color: #000000;"><</span><span style="color: #000000;"> _recordCounter </span><span style="color: #008080;">25</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> temp </span><span style="color: #000000;">=</span><span style="color: #000000;"> temp </span><span style="color: #000000;">+</span><span style="color: #000000;"> _notes(i, </span><span style="color: #800080;">0</span><span style="color: #000000;">) </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">/</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> _notes(i, </span><span style="color: #800080;">1</span><span style="color: #000000;">) </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">/</span><span style="color: #800000;">"</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> _notes(i, </span><span style="color: #800080;">2</span><span style="color: #000000;">) </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #800000;">""</span><span style="color: #000000;"> </span><span style="color: #000000;">&</span><span style="color: #000000;"> Microsoft.VisualBasic.Chr(</span><span style="color: #800080;">10</span><span style="color: #000000;">) </span><span style="color: #000000;">&</span><span style="color: #000000;"> </span><span style="color: #800000;">""</span><span style="color: #000000;"> </span><span style="color: #008080;">26</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> System.Math.Min(System.Threading.Interlocked.Increment(i), i </span><span style="color: #000000;">-</span><span style="color: #000000;"> </span><span style="color: #800080;">1</span><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"/> </span><span style="color: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">While</span><span style="color: #000000;"> </span><span style="color: #008080;">28</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> </span><span style="color: #0000FF;">Return</span><span style="color: #000000;"> temp </span><span style="color: #008080;">29</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Function</span></span><span style="color: #000000;"> </span><span style="color: #008080;">30</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top"/> </span><span style="color: #0000FF;">End Class</span></span><span style="color: #000000;"> </span><span style="color: #008080;">31</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockEnd.gif" align="top"/></span><span style="color: #0000FF;">End Namespace</span></span></div></pre></div></div> <br></p> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Client.vb: <span class="fscMemberName">SaveMultiArray</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_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="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub SaveMultiArray()</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_SaveMultiArray_485_54_15_599_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> SaveMultiArray() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> Console.WriteLine(</span><span style="color: #800000;">"</span><span style="color: #800000;">Testing saving an object with multidimentional array field</span><span style="color: #800000;">"</span><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"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> oc </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenClient(</span><span style="color: #800000;">"</span><span style="color: #800000;">localhost</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #000000;">&</span><span style="color: #000000;">HDB40, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</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: #0000FF;">Dim</span><span style="color: #000000;"> recordBook </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> RecordBook </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000FF;">New</span><span style="color: #000000;"> RecordBook </span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> recordBook.AddRecord(</span><span style="color: #800000;">"</span><span style="color: #800000;">September 2006</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">Michael Schumacher</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">last race</span><span style="color: #800000;">"</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"/> recordBook.AddRecord(</span><span style="color: #800000;">"</span><span style="color: #800000;">September 2006</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">Kimi Raikkonen</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">no notes</span><span style="color: #800000;">"</span><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"/> oc.Set(recordBook) </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: #0000FF;">Finally</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"/> oc.Close() </span><span style="color: #008080;">11</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;">12</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> <div class="FormattedSourceCode"><div class="fscHeader"><span class="fscFileName">Client.vb: <span class="fscMemberName">GetMultiArray</span></span></div><div class="fscCode"><pre ID="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53"><div><!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><span style="color: #008080;">01</span><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Open_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ExpandedBlockStart.gif" align="top" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Open_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Closed_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Closed_Text').style.display='inline';"/><img id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Closed_Image" src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/ContractedBlock.gif" align="top" style="display: none;" onClick="this.style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Closed_Text').style.display='none'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Open_Image').style.display='inline'; document.getElementById('ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_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="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Closed_Text" style="border: solid 1px #808080; background-color: #FFFFFF; display: none;">Sub GetMultiArray()</span><span id="ResourcesReferenceClient-ServerServer_Without_Persistent_Classes_DeployednoclassesVB.ZipsClient.Vb_Client.Vb_GetMultiArray_541_53_15_431_Open_Text"><span style="color: #0000FF;">Sub</span><span style="color: #000000;"> GetMultiArray() </span><span style="color: #008080;">02</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> Console.WriteLine(</span><span style="color: #800000;">"</span><span style="color: #800000;">Testing retrieving an object with multidimentional array field</span><span style="color: #800000;">"</span><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"/> </span><span style="color: #0000FF;">Dim</span><span style="color: #000000;"> oc </span><span style="color: #0000FF;">As</span><span style="color: #000000;"> IObjectContainer </span><span style="color: #000000;">=</span><span style="color: #000000;"> Db4oFactory.OpenClient(</span><span style="color: #800000;">"</span><span style="color: #800000;">localhost</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #000000;">&</span><span style="color: #000000;">HDB40, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</span><span style="color: #000000;">, </span><span style="color: #800000;">"</span><span style="color: #800000;">db4o</span><span style="color: #800000;">"</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: #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;"> oc.Get(</span><span style="color: #0000FF;">New</span><span style="color: #000000;"> RecordBook) </span><span style="color: #008080;">06</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> ListResult(result) </span><span style="color: #008080;">07</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;">08</span><span style="color: #000000;"><img src="../../../Utility/ActiPro.CodeHighligher/OutliningIndicators/InBlock.gif" align="top"/> oc.Close() </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: #0000FF;">End</span><span style="color: #000000;"> </span><span style="color: #0000FF;">Try</span><span style="color: #000000;"> </span><span style="color: #008080;">10</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> <p></span> </p></div> </div> <div id="footer"> This revision (2) was last Modified 2006-12-30T10:58:43 by Tetyana. </div> </body> </html>