Close all open databases -- VDataBase_Open()
William Humphrey
shoreagent at gmail.com
Mon Oct 14 17:35:41 CDT 2013
I told you. Doesn't it remind you of early days installing php and MySQL on Apache?
Brevity and errors in this email probably the result of being sent by a mobile device.
> On Oct 14, 2013, at 5:15 PM, Mark Schonewille <m.schonewille at economy-x-talk.com> wrote:
>
> Hi William,
>
> That's interesting. I will play with it tomorrow. I need to check if your examples will allow me to write a script that closes all databases. For debugging, it is really useful to be able to close all databases and close a connection before opening a new one.
>
> It strikes me how utterly complicated all this is, very much contradicting the spirit of LiveCode.
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces. http://www.color-converter.com
>
> Buy my new book "Programming LiveCode for the Real Beginner" http://qery.us/3fi
>
> Fill out this survey please
> http://livecodebeginner.economy-x-talk.com/survey/
>
>> On 10/14/2013 20:33, william humphrey wrote:
>>
>> On Mon, Oct 14, 2013 at 2:26 PM, william humphrey
>> <bill at bluewatermaritime.com <mailto: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
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list