http://gambaswiki.org/bugtracker/edit?object=BUG.1108&from=L21haW4-

Comment #1 by PICCORO LENZ MCKAY:

the piece of code its:


Private $conexionsqli As Connection

Public Function getConexion()
  
  Try Kill Application.Path & "/test"  ' clean the patch firts

  $conexionsqli = New Connection
  $conexionsqli.Type = "sqlite3"
  $conexionsqli.Name = Null  ' doc said if null given memory db will be used 
and i create a db from now
  
  Try $conexionsqli.Open
  $conexionsqli.Databases.Add("test") ' so connected to memory db create a new 
db in given path ? how can i set the path? if the db arememory db?
  
  $conexionsqli.Close ' doc say: Otherwise, Host gives the database directory, 
and the database path is the result of concatenating Host and Name.

  $conexionsqli.Host = Application.Path 
  $conexionsqli.Name = "test"
  Try $conexionsqli.Open
  
  If Error Then
    $conexionsqli = Null
  Endif  
  
  'Return $conexionsqli
  
End



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to