<div dir="ltr">I thought it was:<div>Please explain what in the method I am using should be tossed and done differently?</div><div><br><div><p style="margin:0px;font-size:11px;font-family:'Lucida Grande'"><span style="color:rgb(145,143,0)"><b>get</b></span> Valentina_InitClient(10*1024* serial etc)</p>
<p style="margin:0px;font-size:11px;font-family:'Lucida Grande'"></p><p style="margin:0px"><span style="color:rgb(145,143,0)"><b>get</b></span> Valentina_DebugLevel(kLogParams)</p><p></p></div><div><div class="im" style="font-family:arial,sans-serif;font-size:13px">
put vConnection_Constructor("localhost","sa","sa",15432) into lDatabaseConnection</div><div class="im" style="font-family:arial,sans-serif;font-size:13px">-- I never told it to open the connection bad?</div>
<span style="font-family:arial,sans-serif;font-size:13px">--get vConnection_Open( lDatabaseConnection )</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">put vDatabase_Constructor(</span><span style="font-family:arial,sans-serif;font-size:13px">lDatabaseConnection) into lDatabase</span></div>
<div><p style="margin:0px;font-size:11px;font-family:'Lucida Grande'"> <span style="color:rgb(145,143,0)"><b>get</b></span> VDatabase_Open( <span style="font-family:arial,sans-serif;font-size:13px">lDatabase</span>, myDatabaseName )</p>
<span style="font-family:arial,sans-serif;font-size:13px">...</span></div><div><p style="margin:0px;font-size:11px;font-family:'Lucida Grande'"> <span style="color:rgb(145,143,0)"><b>get</b></span> VDatabase_Close( <span style="font-family:arial,sans-serif;font-size:13px">lDatabase</span> )</p>
<p style="margin:0px;font-size:11px;font-family:'Lucida Grande'"></p><p style="margin:0px"><span style="color:rgb(145,143,0)"><b>put</b></span> VDatabase_Destructor( <span style="font-family:arial,sans-serif;font-size:13px">lDatabase</span> ) <span style="color:rgb(147,33,146)">into</span> <span style="font-family:arial,sans-serif;font-size:13px">lDatabase</span></p>
<p style="margin:0px"><span style="font-family:arial,sans-serif;font-size:13px">-- I never closed the connection bad?</span></p><p></p><span style="font-family:arial,sans-serif;font-size:13px">--get closeAllDatabases</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">--get vConnection_Close( lDatabaseConnection )</span><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 15, 2013 at 9:42 AM, Mark Schonewille <span dir="ltr"><<a href="mailto:m.schonewille@economy-x-talk.com" target="_blank">m.schonewille@economy-x-talk.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Ivan. I'll adjust my code. I didn't know that the feature was going to be removed. Ruslan just said it was impossible, which is an incorrect statement.<div class="im HOEnZb">
<br>
<br>
--<br>
Best regards,<br>
<br>
Mark Schonewille<br>
<br>
Economy-x-Talk Consulting and Software Engineering<br>
Homepage: <a href="http://economy-x-talk.com" target="_blank">http://economy-x-talk.com</a><br>
Twitter: <a href="http://twitter.com/xtalkprogrammer" target="_blank">http://twitter.com/<u></u>xtalkprogrammer</a><br>
KvK: 50277553<br>
<br>
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. <a href="http://www.color-converter.com" target="_blank">http://www.color-converter.com</a><br>
<br>
Buy my new book "Programming LiveCode for the Real Beginner" <a href="http://qery.us/3fi" target="_blank">http://qery.us/3fi</a><br>
<br>
Fill out this survey please<br>
<a href="http://livecodebeginner.economy-x-talk.com/survey/" target="_blank">http://livecodebeginner.<u></u>economy-x-talk.com/survey/</a><br>
<br></div><div class="im HOEnZb">
On 10/15/2013 15:37, Ivan Smahin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Oct 15, 2013, at 12:44 PM, Mark Schonewille <<a href="mailto:m.schonewille@economy-x-talk.com" target="_blank">m.schonewille@economy-x-talk.<u></u>com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ruslan,<br>
<br>
No, you're wrong. Ivan's answer was correct. It now works.<br>
<br>
</blockquote>
<br>
<br>
Not exactly. Ruslan was about following - that "feature" (silently open connection in database constructor) will be removed soon.<br>
You should not rely on this.<br>
Instead you should open connection himself either as close one:<br>
<br>
put vConnection_Constructor("<u></u>localhost","sa","sa",15432) into lDatabaseConnection<br>
get vConnection_Open( lDatabaseConnection )<br>
put vDatabase_Constructor(<u></u>lDatabaseConnection) into lDatabase<br>
...<br>
get closeAllDatabases<br>
get vConnection_Close( lDatabaseConnection )<br>
...<br>
<br>
</blockquote></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Valentina mailing list<br>
<a href="mailto:Valentina@lists.macserve.net" target="_blank">Valentina@lists.macserve.net</a><br>
<a href="http://lists.macserve.net/mailman/listinfo/valentina" target="_blank">http://lists.macserve.net/<u></u>mailman/listinfo/valentina</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://www.bluewatermaritime.com">http://www.bluewatermaritime.com</a>
</div>