[V4Rb 2] File format version

Charles Yeomans yeomans at desuetude.com
Thu Oct 6 17:38:19 CDT 2005


On Oct 6, 2005, at 4:40 PM, Ruslan Zasukhin wrote:

> On 10/6/05 11:34 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
>
>>> But you know your Current Format,
>>> So you can write
>>>
>>>     if anything new then do ...
>>
>> I mean the Valentina database file format.  As you know, it changed
>> from v1 to v2.  So I should write code like
>>
>> If Valentina.GetDatabaseVersion((theFile) < &h200 then
>> ...
>> Else
>> Msgbox "This is a v1 file."
>> End if
>>
>> Now suppose that you change the Valentina file format again.  What I
>> want is a function that returns &h200 now, and the correct value in 
>> the
>> future.
>
> Charles,
>
> You have not read my text deeply:
>
>     this function EXTRACT version from db file !
>
> So it will always work correctly for a given file


Let's try this again.  I understand what Valentina.GetDatabaseVersion 
does; it tells me the file format version of the file.  V4Rb expects to 
see a certain database file format.  How am I to know what that format 
is, so that I can compare that to the value returned by 
Valentina.GetDatabaseVersion?

In other words, given the code

If Valentina.GetDatabaseVersion((theFile) < &h200 then

I want to replace the &h200 on the right-hand side with a Valentina 
module function that returns the file format version expected by V4Rb.

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



More information about the Valentina mailing list