Close all open databases -- VDataBase_Open()
Ruslan Zasukhin
ruslan_zasukhin at valentina-db.com
Tue Oct 15 12:21:37 CDT 2013
On 10/15/13 12:15 AM, "Mark Schonewille" <m.schonewille at economy-x-talk.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).
Hi William :)
You have found a good way :)
Somehow I have forget about it.
Yes, internally Valentina engine have that GLOBAL array of opened dbs by
local engine ...
Ivan should be asked if this also touch dbs opened via connection.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list