<div class="gmail_extra"><p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'"><b>Use something like this called just once.  And everyone agrees we need an example stack that does everything in one simple place. Also do not use any of the "rev" database commands. use only the "v" ones.</b></p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'"><b><br></b></p><p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'"><b>on</b> DatabaseOpen</p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">  </p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande';color:#00188f"><span style="color:#000000">   </span><span style="color:#928f1a"><b>get</b></span><span style="color:#000000"> Valentina_InitClient( </span>10<span style="color:#000000"> * </span>1024<span style="color:#000000"> * </span>1024<span style="color:#000000">,</span>"super long mac serial number"<span style="color:#000000">,</span>"super long windows serial number"<span style="color:#000000">,)</span></p>

<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande';color:#008f16"><span style="color:#000000">   </span><b>-- new serial numbers added Dec 06, 2010</b></p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <span style="color:#928f1a"><b>get</b></span> Valentina_DebugLevel(<span style="color:#00188f">"kLogParams"</span>)</p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande';color:#008f16"><span style="color:#000000">   </span><b>-- first establish connectionRef as gConnection</b></p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <span style="color:#928f1a"><b>put</b></span> VConnection_Constructor(<span style="color:#00188f">"localhost"</span>, <span style="color:#00188f">"sa"</span>, <span style="color:#00188f">"sa"</span>, <span style="color:#00188f">15432</span>) <span style="color:#951d90">into</span> gConnection</p>

<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande';color:#008f16"><span style="color:#000000">   </span><b>-- next you establish dbRef as gDatabase</b></p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <span style="color:#928f1a"><b>put</b></span> VDatabase_Constructor( gConnection ) <span style="color:#951d90">into</span> gDatabase</p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande';min-height:15.0px">   </p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <span style="color:#928f1a"><b>get</b></span> VDatabase_DateFormat(gDatabase, <span style="color:#00188f">"kYMD"</span>)</p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <span style="color:#928f1a"><b>get</b></span> VDatabase_DateSep(gDatabase, <span style="color:#00188f">"-"</span>)</p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <span style="color:#928f1a"><b>get</b></span> VDatabase_Open( gDatabase, b_l_database.vdb )</p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande';min-height:15.0px">   </p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <b>if</b> it <span style="color:#951d90">contains</span> <span style="color:#00188f">"ERROR"</span> <b>then</b>    </p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande';color:#00188f"><span style="color:#000000">      </span><span style="color:#928f1a"><b>answer</b></span><span style="color:#000000"> </span>"there was an error in DatabaseOpen"</p>

<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">            <b>exit</b> <span style="color:#951d90">to</span> <span style="color:#009191">top</span></p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'">   <b>end</b> <b>if</b></p>
<p style="margin:0px 0px 0px 0px;font:12.0px 'Lucida Grande'"><b>end</b> DatabaseOpen</p>
</div>