ERROR 0x82504

Mark Schonewille m.schonewille at economy-x-talk.com
Thu Oct 3 09:50:50 CDT 2013


Hi,

I have the following LiveCode script:

global gTheConnection,gTheDatabase

on DatabaseOpen
    put "databaseName.vdb" into myDatabaseFileName  // temporary change
    get Valentina_InitClient( 10 * 1024 * 1024)
    get Valentina_DebugLevel("kLogParams")
    put VConnection_Constructor("localhost", "xxx", "xxx", 15432) into 
gTheConnection
    put VDatabase_Constructor( gTheConnection ) into gTheDatabase
    // get VDatabase_DateFormat(gTheDatabase, "kYMD")
    get VDatabase_DateSep(gTheDatabase, "-")
    get VDatabase_Open( gTheDatabase, myDatabaseFileName )
    if it contains "ERROR" or gTheDatabase contains "ERROR" then
       answer "There was an error" && myDatabaseFileName & cr & 
gTheDatabase & cr & it
    end if
end DatabaseOpen

The line

   get VDatabase_Open( gTheDatabase, myDatabaseFileName )

always returns ERROR 0x82504. This seems to mean "invalid database name" 
but I am sure that the database name is correct (the script works 
perfectly fine on someone else's machine, just not on my machine). What 
could cause this problem?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/


More information about the Valentina mailing list