Setextensions

Ruslan Zasukhin sunshine at public.kherson.ua
Tue May 29 11:05:47 CDT 2007


On 29/5/07 6:22 PM, "Bart Pietercil" <bart.pietercil at gmail.com> wrote:

>> All your questions will be answered as only you note this:
>> 
>>     engine just have 4 global variables,
>>     that keep these 4 strings.
>> 
>>     db.Create() look here and create new files using them.
>>     The same for db.Open()
>> 
>>> Can I do multiple calls to Valentina.SetExtensions within one
>>> session ?
>> 
>> Yes, just override variables
> 
> Now this is valuable info to put in the Wiki :-)
> 
> Which leads of course to the next question ( the fool can always ask
> more then the wise man can answer):
> 
> While I can see where Create uses the extensions for (SETTING the
> extensions on the needed files) this is not completely clear for Open
> 
> Since I pass  the filename (folderitem) of the descriptorfile
> (normally ".vdb") to the Open function AND the header of this file
> describes the tree other extensions needed (data,blob,ind) why would
> Open still need to look at the settings of the globals in the engine ?

Because "HEADER"  DO NOT describe them :)

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