The create method for creating a new empty database

Vansh Singh vsingh at us.counterp.com
Wed Jan 28 21:38:05 CST 2009


Ruslan,

I am using the create method to create a new database in Adobe Director
(lingo) like this:

_global.gMerge.create(merge_db_path,#kDsc_Dat_Blb_Ind,32 * 1024)  

(where merge_db_path is the complete folder path to the directory where
I want to create the new database.)

I have 2 questions:

First, the create method returns a void, what if the database creation
fails? Let's say the folder it is creating the new empty database to, is
a read only, no file can be created in it, what happens then? And how do
I catch that in the code?

Second, this might be silly but I am having a hard time figuring out how
to correctly name the newly created database. I want to call this new
database as 'merge_source' - how do I do that? Currently it just creates
the 4 files as .vdb,.ind,.bat,blb. In other words, I want to create the
new database files such that they are called merge_source.vdb,
merge_source.ind, merge_source.bat, merge_source.blb

Thanks,
Vansh


More information about the Valentina mailing list