<div dir="ltr">I just tested opening an existing database with the above example. You can use<div style>"databaseName" or "databaseName.dbf" -- both work fine, it doesn't care if you have the extension there or not.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Oct 3, 2013 at 12: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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If I close the vServer database on this machine and run the same code I get no error at all (which makes sense). I'm still trying to figure out how to get error 82504</div>
<div class="gmail_extra"><div><div class="h5"><br><br>
<div class="gmail_quote">On Thu, Oct 3, 2013 at 12:19 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">If I use the exact code you show for opening a database on localhost using vServer and I change the name of the database to one that is non-existent (just did it now). I get error 82517 which is<div><br></div>
<div><p style="margin:0px;font-size:11px;font-family:'Lucida Grande'">ERR_CONNECTION_DATABASE_NOT_OPENED</p><p style="margin:0px;font-size:11px;font-family:'Lucida Grande'"><br></p><p style="margin:0px;font-size:11px;font-family:'Lucida Grande'">
I do not get error "invalid database name"</p></div></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Thu, Oct 3, 2013 at 10:50 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">Hi,<br>
<br>
I have the following LiveCode script:<br>
<br>
global gTheConnection,gTheDatabase<br>
<br>
on DatabaseOpen<br>
put "databaseName.vdb" into myDatabaseFileName // temporary change<br>
get Valentina_InitClient( 10 * 1024 * 1024)<br>
get Valentina_DebugLevel("<u></u>kLogParams")<br>
put VConnection_Constructor("<u></u>localhost", "xxx", "xxx", 15432) into gTheConnection<br>
put VDatabase_Constructor( gTheConnection ) into gTheDatabase<br>
// get VDatabase_DateFormat(<u></u>gTheDatabase, "kYMD")<br>
get VDatabase_DateSep(<u></u>gTheDatabase, "-")<br>
get VDatabase_Open( gTheDatabase, myDatabaseFileName )<br>
if it contains "ERROR" or gTheDatabase contains "ERROR" then<br>
answer "There was an error" && myDatabaseFileName & cr & gTheDatabase & cr & it<br>
end if<br>
end DatabaseOpen<br>
<br>
The line<br>
<br>
get VDatabase_Open( gTheDatabase, myDatabaseFileName )<br>
<br>
always returns ERROR 0x82504. This seems to mean "invalid database name" but I am sure that the database name is correct (the script works perfectly fine on someone else's machine, just not on my machine). What could cause this problem?<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>
______________________________<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>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><a href="http://www.bluewatermaritime.com" target="_blank">http://www.bluewatermaritime.com</a>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><a href="http://www.bluewatermaritime.com" target="_blank">http://www.bluewatermaritime.com</a>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><a href="http://www.bluewatermaritime.com">http://www.bluewatermaritime.com</a>
</div>