connecting to 3.2 valventina database with rev

Robert Mann robmann at gp-racing.com
Wed Aug 29 15:34:30 EDT 2007


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?




More information about the use-livecode mailing list