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

[Gambas-user] Inline help for structs?

2013-08-25 Thread Bruce
(Just a quicky to confirm that I'm not doing something wrong.) Structs appear in the IDE help but it does not appear possible to include inline help comments for them in the code. Is this true? tia Bruce -- Introducing

Re: [Gambas-user] compilation issue (2nd try)

2013-08-25 Thread Fernando Martins
On 08/25/2013 09:34 PM, Kende Krisztián wrote: >>> Hi, >>> you can use this ppa, it's easier than the compilation. >>> >>> sudo add-apt-repository ppa:nemh/gambas3 >>> then : >>> sudo apt-get update >>> sudo apt-get install gambas3 >>> >>> >> thanks, but I got an error on updating: >> >> W: Failed

[Gambas-user] Get versions of libraries and components at runtime?

2013-08-25 Thread Bruce
Short of including debug lines in each and every library, is there some way to detect and print the versions of libraries and components loaded by a Gambas application at runtime? tia Bruce -- Introducing Performance Cen

Re: [Gambas-user] compilation issue (2nd try)

2013-08-25 Thread Kende Krisztián
> > Hi, > > you can use this ppa, it's easier than the compilation. > > > > sudo add-apt-repository ppa:nemh/gambas3 > > then : > > sudo apt-get update > > sudo apt-get install gambas3 > > > > > thanks, but I got an error on updating: > > W: Failed to fetch > http://ppa.launchpad.net/nemh/gambas3

Re: [Gambas-user] compilation issue (2nd try)

2013-08-25 Thread Fernando Martins
On 08/25/2013 05:55 PM, Jack wrote: > Le 25/08/2013 17:45, Fernando Martins a écrit : >> Hi, >> >> I'm running Mint 15 which comes with an old version of gambas, 3.2 and >> I'm trying to compile 3.4.2 >> >> I came across several issues, mostly missing packages not available in >> the repository, or

Re: [Gambas-user] compilation issue (2nd try)

2013-08-25 Thread Jack
Le 25/08/2013 17:45, Fernando Martins a écrit : > > Hi, > > I'm running Mint 15 which comes with an old version of gambas, 3.2 and > I'm trying to compile 3.4.2 > > I came across several issues, mostly missing packages not available in > the repository, or at least not with the expected name. > > A

[Gambas-user] compilation issue (2nd try)

2013-08-25 Thread Fernando Martins
Hi, I'm running Mint 15 which comes with an old version of gambas, 3.2 and I'm trying to compile 3.4.2 I came across several issues, mostly missing packages not available in the repository, or at least not with the expected name. Although 'make' works with some missing packages, when I do "su

Re: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo)

2013-08-25 Thread Willy Raets
On Sun, 2013-08-25 at 14:28 +0200, Tobias Boege wrote: > On Sun, 25 Aug 2013, Willy Raets wrote: > > > > With help of Tobias, now a image appears on the PdfSurface > > My code now looks like this: > > > > > > Public Sub MakePdf() > > > >Dim hPdfProjectFile As CairoPdfSurface > >Dim sPd

Re: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo)

2013-08-25 Thread Tobias Boege
On Sun, 25 Aug 2013, Willy Raets wrote: > On Sat, 2013-08-24 at 15:34 +0200, Willy Raets wrote: > > On Sat, 2013-08-24 at 10:54 +0200, Tobias Boege wrote: > > > On Sat, 24 Aug 2013, Willy Raets wrote: > > > > On Sat, 2013-08-24 at 03:19 +0200, Willy Raets wrote: > > > > > Hi All, > > > > > > > > >

Re: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo)

2013-08-25 Thread Willy Raets
On Sat, 2013-08-24 at 15:34 +0200, Willy Raets wrote: > On Sat, 2013-08-24 at 10:54 +0200, Tobias Boege wrote: > > On Sat, 24 Aug 2013, Willy Raets wrote: > > > On Sat, 2013-08-24 at 03:19 +0200, Willy Raets wrote: > > > > Hi All, > > > > > > > > Been struggling with inserting an existing .png fil

Re: [Gambas-user] How to Enable/Disable 55 buttons in a few string of code?

2013-08-25 Thread Tobias Boege
On Sun, 25 Aug 2013, Kende Kriszti??n wrote: > > Hi, > > > > Something like this: > > > > For i = 1 To 55 > > Button & i &.Enable = True > > Next > > > > Of course, this does not work. > > So what the way? > > > > Thanks > > > > For example: > > Dim ctrl As Control > > For Each ctrl

Re: [Gambas-user] How to Enable/Disable 55 buttons in a few string of code?

2013-08-25 Thread Kende Krisztián
> Hi, > > Something like this: > > For i = 1 To 55 > Button & i &.Enable = True > Next > > Of course, this does not work. > So what the way? > > Thanks > For example: Dim ctrl As Control For Each ctrl In FMain.Controls If InStr(ctrl.Name, "Button") = 1 Then ctrl.Enabled = True Ne

[Gambas-user] How to Enable/Disable 55 buttons in a few string of code?

2013-08-25 Thread abbat81
Hi, Something like this: For i = 1 To 55 Button & i &.Enable = True Next Of course, this does not work. So what the way? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-Enable-Disable-55-buttons-in-a-few-string-of-code-tp42984.html Sent from the gambas