Changes from 1.x to 2.0 (Changes list)

Stan Busk maxprog at mac.com
Fri Feb 11 08:06:59 CST 2005


Hi,

Porting on of my applications I found the following differences:


1.- VBaseObject class has been renamed to VTable. Change all tables 
class from VBaseObject to VTable.

2.- ValentinaInit() has been renamed to Valentina.Init()

3.- Valentina.Init() doesn't return a value anymore. Use the CacheSize 
properties to check if the database was properly initiated.

	If Valentina.CacheSize = 0 then
		MsgBox "Valentina was not initialized!"
	end if

4.- ValentinaShutDown() has been renamed to Valentina.ShutDown()

5.- ValentinaSetExtensions() has been renamed to 
Valentina.SetExtensions()

6.- If you have used debugging it is likely you have the following code:

		#if DebugBuild
			err = ValentinaDebugON(2)
		#else
			err = ValentinaDebugON(0)
		#endif

       Change it to:

		#if DebugBuild
			Valentina.DebugLevel = xxxx
		#endif

       where xxxx can be:

		0 - no debug messages.
		1 - log a message only when an error occurs.
		2 - log every function.
		3 - log every function and its parameters.

7.- Remove language parameter (e.g "ASCII") from all fields.

8.- The AddRecord() function now returns the new record value.

9.- The GotoRecID() no longer exists. Use RecID and RecordExists() :

       If RecordExists(myRec) then
           RecID = inRec
       end if

10.- The database Create() method no longer returns a value. Use 
Database.ErrNumber to check errors.

11.- The database Open() method no longer returns a value. Use 
Database.ErrNumber to check errors.

12.- Cursor.CurrentPosition has been renamed to Cursor.Position

13.- Replace LIKE with REGEX (Not sure of that one)

Stan


> Hi,
>
> are there any documentations about changes between 1.x to 2.0?
> For example I am looking for GoToRecID?
> I found VObject is now VTable ;-))
>
> and database.addrecord only works with count=database.addrecord
>
> so I am step by step changing but couldn't found GotoRecID solution 
> ;-))
>
> Thanks
>
>
> Claudius
>
> -- 
> G4/733 QS / MacOS X 10.3.7de / RB 5.5.3de/ Valentina 1.10.0
> Homepage	http://www.ClaSai.de
> iChat		ryhoruk
> RealBasic ListBoxes: [ I feel the need...the need for speed!!! ]
>
> _______________________________________________
> Valentina-beta mailing list
> Valentina-beta at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina-beta
>
>
-- 
MAX Programming LLC - http://maxprog.com - Investigation & development
----------------------------------------------------------------------
     Store |  http://store.maxprog.com      mailto:orders at maxprog.com
  Upgrades |  http://upgrades.maxprog.com   mailto:orders at maxprog.com
  Products |  http://products.maxprog.com   mailto:info at maxprog.com
  Download |  http://download.maxprog.com   mailto:info at maxprog.com
   Support |  http://support.maxprog.com    http://inquiry.maxprog.com


_______________________ CONFIDENTIALITY NOTICE _______________________
The information transmitted in this email and any attached document(s)
is confidential and intended solely  for the use  of the individual or
entity to which  it is addressed and may  contain privileged material.
Any review, retransmission, dissemination or other  use  of, or taking
of any action in reliance upon this information by persons or entities
other than the intended recipient is  prohibited. If you received this
in error, please contact the  sender and delete the  material from any
computer.  (C) 1999 - 2005 MAX Programming, LLC - All rights reserved.
Maxprog® is a registered mark at the U.S. Patent and Trademark Office.



More information about the Valentina-beta mailing list