Changes from 1.x to 2.0 // v4

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Feb 11 10:00:05 CST 2005


* remove ValentinaUtility methods


* all kV_xxxx constants removed.


* now we have enums with names EVxxx for constants.


* V4RB 2.0 support new style of errors via VException class.
    if you convert old 1.x project then you have to use db.LastError style.
    you can disable new style and return back old style.
    use for this Valentina.ThrowExceptions as boolean


* Vdatabase.Open() / .Create() no longer return anything, so
change code to reflect


* class VBaseObject  renamed to  Vtable.
    so you need reset the super-class for all your Table classes.


* Property BaseObject of class VField changed to property Table, a
careful find/replace should fix.


* Table.GoToRecID  =>  Table.RecID


* LIKE operator now works not as regex but as SQL92 LIKE.
    if you need regex then use REGEX keyword


* property Language for Vstring/VarChar/Text removed.

    instead Vdatabse, Vtable and Vfield now have trio
  
      .Locale
      .CollatioAttribute
      .StorageEncoding

* Global methods are collected in the MODULE "Valentina",
    so now

    ValentinaInit()         => Valentina.Init()
    ValentinaShutDown       => Valentina.ShutDown()
    ValentinaEscapeString   => Valentina.EscapeString()
    ValentinaDebugOn        => Valentina.DebugLevel property
    ...


* Dcon support and DbgView dropped.
    instead we have now V4RB_LOG.txt file that get output from V4RB.

* VField.Nullable to VField.IsNullable find replace.
* VField.Compressed to VField.IsCompressed find replace.
* VField.Indexed to VField.IsIndexed find replace.
* VField.Unique to VField.IsUnique find replace.

* Vcursor.SqlString property not exists any more.

* VCursor.CurrentPosition to VCursor.Position find replace


* if in the 1.x version you have set some encoding for strings BEFORE/AFTER
send strings to V4RB then now you no need to do this.
Although for now V4RB 2.0 expect to get UTF8 strings -- default encoding of
V4RB


* Vfield.SetMethod()  no longer exists.

    instead you should on creation of a field provide the method formula
    into the constructor of field via last parameter.

    IF you want change existed method, then use
    Vfield.MethodText property
> 

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