Close all open databases -- VDataBase_Open()

william humphrey bill at bluewatermaritime.com
Mon Oct 14 13:33:19 CDT 2013


On Mon, Oct 14, 2013 at 2:26 PM, william humphrey <
bill at bluewatermaritime.com> wrote:

> get Valentina_Database( inIntIndex )


OK - I just solved it.

Use *put Valentina_DatabaseCount()*
*( Remember no Valentina functions work in the message box you have to make
a button that cals it from a script)*
*
*
Then after you do the database count you will have a number, say 2

Then use

  *put* Valentina_Database(1) into dbRefFirstDatabase

and

  *put* Valentina_Database(2) dbRefFirstDatabase


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).

Hope this helps.
-- 
http://www.bluewatermaritime.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20131014/9e7f89dc/attachment.html>


More information about the Valentina mailing list