connecting to 3.2 valventina database with rev

Ruslan Zasukhin sunshine at public.kherson.ua
Wed Aug 29 15:21:04 CDT 2007


On 29/8/07 10:34 PM, "Robert Mann" <robmann at gp-racing.com> wrote:

> Valentina 3.2 
> 
> I am getting the following error on the converting valentina connection id
> to revdb connection id
>  
> revdberr,invalid database type
> 
> with the follow script
> 
>   put 20 * 1024 * 1024 into theCacheSize
>     put empty into theMacSerialNumber
>     put fld "serial" into theWinSerialNumber
>     put "xxxx" into theEncryptionKey
> 
>     get Valentina_Init(theCacheSize, theMacSerialNumber, theWinSerialNumber)
>     put VDatabase_Constructor("kDisk") into theConnectionID
> 
>     get VDatabase_UseEncryptionKey(theConnectionID, theEncryptionKey,
> "kStructureAndRecords")
> 
>     get VDatabase_Open(theConnectionID, dbPath)
> 
>     ## SOME BASIC ERROR CHECKING
> 
>     IF VDatabase_ErrNumber(theConnectionID) is not 0 THEN
>         IF VDatabase_ErrNumber(theConnectionID) < 0 THEN
>             put "OS error ("& VDatabase_ErrNumber(theConnectionID) &")" into
> theError
>         ELSE
>             put VDatabase_ErrString(theConnectionID) into theError
>         END IF   
> 
>         answer "Error connecting to valentina:" && theError
>         exit to top
>     END IF
>     
>     ## NOW WE CONVERT THE VALENTINA CONNECTION ID TO A REVDB CONNECTION ID
>     ## SO THAT WE CAN USE THE REVDB FUNCTIONS
>     put revOpenDatabase("Valentina2","",theConnectionID,"","") into dbID
> ----this is where I get the error
> 
>     put dbID into fld "dbID"
> 
> any ideas as to why?

Try      "Valentina3"





-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list