New topic: 

Why can't I connect to my sqlite3 db

<http://forums.realsoftware.com/viewtopic.php?t=33056>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        shaggymac          Post subject: Why can't I connect to my 
sqlite3 dbPosted: Fri Mar 19, 2010 9:03 am                         
Joined: Fri Feb 29, 2008 5:25 pm
Posts: 462                Code:  myDB = New REALSQLDatabase
  myDB.databaseFile = GetFolderItem("testdb.db3")
  
  // Connect to the database
  if myDB.databaseFile.exists = true then
  // The database file already exists, so we want to connect to it.
  if myDB.Connect() = false then
  DisplayDatabaseError( false )// there was an error connecting to the database
  Quit
  return
  end if
  
  else
  MsgBox "Create DB"
  end


The code always gets to 

Code:if myDB.databaseFile.exists = true then


and that is false so it never connects. The file was created with SQLite Expert 
Professional (not the RB IDE). The file is in the same folder as my RB Project. 
     
_________________
http://www.mupromo.com/?ref=4850
MacUpdate Holiday Special. Please purchase it to help support independent 
developers.  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to