EuMVC-SQlite3:Weird Unassigned Variable Issue

new topic     » topic index » view thread      » older message » newer message

Am I going crazy?

include std/console.e 
include sqlite3.e 
 
-- prepare the sqlite3 db 
atom sqlitedb = 0 
integer sqliteResult = 0 
 
puts(1,"\nOpening the SQLite3 database: test.sqlite") 
-- {sqliteResult,sqlitedb} = sqlite3_open("test.sqlite") 
puts(1,"\n\tDone!") 
 
?sqliteResult 
?sqlitedb 
 
wait_key() 
 
-- sqlite3_close(sqlitedb) 

Result:

Opening the SQLite3 database: test.sqlite 
    Done!0 
 
C:\Users\FOADDEV\Programs\HTF License Server Tools\codes_viewer\sqlite_test.exw:13 
variable sqlitedb has not been assigned a value 
 
--> See ex.err 

Why does it claim sqlitedb has not been assigned a value?

If I comment out the "include sqlite3.e" line, it works fine!

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu