Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) Clarification

2013-08-28 Thread Bruce
On Wed, 2013-08-28 at 13:47 +0200, Tobias Boege wrote: > On Wed, 28 Aug 2013, Bruce wrote: > > First off, thanks everyone for your answers - all are correct. > > > > My original question was purely about the syntax of the Connection > > constructor, specifically about the optional DatabaseURL para

Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) Clarification

2013-08-28 Thread Tobias Boege
On Wed, 28 Aug 2013, Bruce wrote: > First off, thanks everyone for your answers - all are correct. > > My original question was purely about the syntax of the Connection > constructor, specifically about the optional DatabaseURL parameter. > > Clarification 1: According to the help there are thre

Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) Clarification

2013-08-28 Thread Bruce
First off, thanks everyone for your answers - all are correct. My original question was purely about the syntax of the Connection constructor, specifically about the optional DatabaseURL parameter. Clarification 1: According to the help there are three ways to initialise a connection: a) by direc

Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] )

2013-08-28 Thread Tobias Boege
On Tue, 27 Aug 2013, paulwheeler wrote: > >Bruce and Fabien, >My email a few days back gave the code that I am using to open sqlite >databases. That code opens a db in any directory you have access to. Is >there something I am not understanding about Bruce's question? >The cod

Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] )

2013-08-27 Thread paulwheeler
Bruce and Fabien, My email a few days back gave the code that I am using to open sqlite databases. That code opens a db in any directory you have access to. Is there something I am not understanding about Bruce's question? The code is attached. paul On 08/27/2013 12:42 AM, F

Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] )

2013-08-27 Thread Fabien Bodard
And then if you configure the connection ide you can use : Connections["Connection1"].Open() 2013/8/26 Tobias Boege > On Mon, 26 Aug 2013, Bruce wrote: > > What syntax for "DatabaseURL As String"? > > > > I'm trying to create a connection to an SQLite db in a different gambas > > project sour

Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] )

2013-08-26 Thread Tobias Boege
On Mon, 26 Aug 2013, Bruce wrote: > What syntax for "DatabaseURL As String"? > > I'm trying to create a connection to an SQLite db in a different gambas > project source directory: > > $conn = New > > Connection("/share/projects/gambas3_proj/horse/horseBO/.connection/bometa.conne

Re: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] )

2013-08-25 Thread paulwheeler
This will allow you to open a connection anywhere. All you have to change is the "sName" and the .Host entry Enjoy! paul '' Put these at the beginning of your program on your form named fMain: Public $hConn As New Connection Public sMyPath As String Public sAppPath As Stri

[Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] )

2013-08-25 Thread Bruce
What syntax for "DatabaseURL As String"? I'm trying to create a connection to an SQLite db in a different gambas project source directory: $conn = New Connection("/share/projects/gambas3_proj/horse/horseBO/.connection/bometa.connection") (and various other path strings to the co