Setextensions

Bart Pietercil bart.pietercil at gmail.com
Tue May 29 12:02:25 CDT 2007


On 29-mei-07, at 18:05, Ruslan Zasukhin wrote:

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

This sentence in the WIKI made me belief it did store them:

Valentina stores these extensions in the header of Description  
Volume, so if you trash Index Volume then Valentina is able create it  
again with assigned extension.


Bart


More information about the Valentina mailing list