Convert

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Jan 19 23:17:16 CST 2005


On 1/19/05 9:56 PM, "jda" <jda at his.com> wrote:

> Hi Ruslan,
> 
> I don't understand the logic in your Convert example:
> 
> -------------
>    DbVersion = valentina.GetDatabaseVersion( f )
> 
>    s = Hex( DbVersion )
> 
>    // If database is not of 1.x version then return.
>    if DbVersion = 0 or DbVersion >= &H200 then
>      return
>    end if
> -------------
> 
> &H200 has a value of 512.
> 
> When I try to open my v1.x db I get a DBVersion value of 400 and a
> hex value of 190. So it is seen as NOT 1.x.

    1.9.0           H190 = 400
    2.0.0           H200 = 512


         2.0 > 1.9      right?
so       512 > 400

All right here.

Just HEX arithmetic

 
> When I open my v2 db I get a DBVersion value of 2 and a hex value of
> 2. So it is also seen as NOT 1.x.
> 
> Shouldn't V2 db's return a (hex) value of &h200?

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina-beta mailing list