forum-msg-id-136620-edit

Original date:2022-01-12 11:50:12 Edited by: euphoric Subject: EuMVC-SQlite3:Weird Unassigned Variable Issue

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?

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu