<div dir="ltr">you can do<div><br></div><div>
                
        
        
                <div class="" title="Page 32">
                        <div class="">
                                <div class="">
                                        <p><span style="font-size:11pt;font-family:ArialMT">put VDataBase_Name( dbRef )  into MyDatabaseName from the list of dbRef's you got by going through each one of the numbers of the database in the Valentina_Database() function that returns a dbRef for each number. </span></p>
<p style><font face="ArialMT"><span style="font-size:15px">I was confused because in the documentation it says: " </span></font><span style="font-family:ArialMT;font-size:15px">inIntIndex" and I had no idea what that was. Turns out it is just a number that is less than the total number of databases open.</span></p>
<p style><span style="font-family:ArialMT;font-size:15px"><br></span></p><p style><span style="font-family:ArialMT;font-size:15px">I'm also confused by:</span></p><p style><font face="ArialMT"><span style="font-size:15px">"</span></font><span style="font-family:ArialMT;font-size:11pt">Returns the count of databases that was instantinated in your application. The result counts</span></p>
<p style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:11pt;font-family:ArialMT">both opened and closed databases. The result counts both local and remote databases."</span></p><p style><font face="ArialMT"><span style="font-size:15px">Because in my case it always returns just the number of databases that are open. I think it will require more experimentation but so far it looks like "</span><span style="font-size:15px">instantiated" means open databases.</span></font></p>

                                </div>
                        </div>
                </div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 2:33 PM, william humphrey <span dir="ltr"><<a href="mailto:bill@bluewatermaritime.com" target="_blank">bill@bluewatermaritime.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 2:26 PM, william humphrey <span dir="ltr"><<a href="mailto:bill@bluewatermaritime.com" target="_blank">bill@bluewatermaritime.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">get Valentina_Database( inIntIndex )</blockquote></div><br>

OK - I just solved it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Use <b style="color:rgb(0,142,0);font-family:Courier;font-size:11px">put Valentina_DatabaseCount()</b></div><div class="gmail_extra">

<font color="#008e00" face="Courier"><span style="font-size:11px"><b>( Remember no Valentina functions work in the message box you have to make a button that cals it from a script)</b></span></font></div><div class="gmail_extra">

<font color="#008e00" face="Courier"><span style="font-size:11px"><b><br></b></span></font></div><div class="gmail_extra">Then after you do the database count you will have a number, say 2<br></div><div class="gmail_extra">

<br></div><div class="gmail_extra">Then use</div><div class="gmail_extra"><br></div><div class="gmail_extra"><p style="margin:0px;font-size:11px;font-family:Courier">  <span style="color:rgb(145,143,0)"><b>put</b></span> Valentina_Database(<font color="#011892">1</font>) into dbRefFirstDatabase</p>

<p style="margin:0px;font-size:11px;font-family:Courier">and </p><p style="margin:0px;font-size:11px;font-family:Courier"></p><p style="margin:0px">  <span style="color:rgb(145,143,0)"><b>put</b></span> Valentina_Database(<span style="color:rgb(1,24,146)">2</span>) dbRefFirstDatabase</p>

<p></p></div><div class="gmail_extra"><br clear="all"><div>You will have the dbRef you need to close those databases. If you want to know the name of the database from the dbRef you must use yet another function (in case you don't want to close all the databases).</div>

<div><br></div><div>Hope this helps.</div><span class="HOEnZb"><font color="#888888">-- <br><a href="http://www.bluewatermaritime.com" target="_blank">http://www.bluewatermaritime.com</a>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://www.bluewatermaritime.com">http://www.bluewatermaritime.com</a>
</div>