[V4Rb 2] File format version

Charles Yeomans yeomans at desuetude.com
Thu Oct 6 19:59:34 CDT 2005


On Oct 6, 2005, at 7:52 PM, Ruslan Zasukhin wrote:

> On 10/7/05 1:11 AM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
>
>> If the database file format changes later, I must remember to look for
>> the constant &h200 representing the current Valentina file format and
>> change it.  If there were a function Valentina.DatabaseVersion() as
>> Integer, then I can write
>>
>> if Valentina.GetDatabaseVersion((theFile) < 
>> Valentina.DatabaseVersion()
>> then
>>    Msgbox "I need to update the file format."
>> End if
>>
>> and upgrading the plugin does not require changing the code.
>
> I see now.
>
> Can you add request into Mantis ?
>
> Should be easy. We have this on c++ level

Done; #1089.

For consistency, perhaps both functions should be named 
GetDatabaseVersion, although my preference would be remove the "Get" 
from GetDatabaseVersion.

--------------
Charles Yeomans



More information about the Valentina mailing list