New topic: 

how to connect a sqlite database on a sdcard on Android

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

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        georgelbs          Post subject: how to connect a sqlite 
database on a sdcard on AndroidPosted: Thu Dec 27, 2012 1:34 am                 
        
Joined: Mon Oct 06, 2008 12:35 pm
Posts: 36                i tried the following code at open event of app.:

 mainDB = New REALSQLDatabase
  if TargetWin32 then
  mainDB.databaseFile = GetFolderItem("c:\reportes\temptable.db")
  else
  mainDB.databaseFile = 
GetFolderItem("/mnt/sdcard/external_sd/datos/temptable.db")
  'mainDB.databaseFile = 
GetFolderItem("/mnt/sdcard/external_sd/datos/temptable.db")
  end
  if mainDB.databaseFile.exists = true then
  if mainDB.Connect() = false then
  MsgBox "error"
  Quit
  return
  end if
  else
  msgbox("cannot connect")
  end
  app.autoQuit = true   
                             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