Re: [Gambas-user] Database Results

2010-09-12 Thread Caveat
Hi Tobias I can understand your frustration, programming with databases is not so simple in the beginning and there are some new concepts to get your head around. I think the Result object is quite often misunderstood and people often ask: Why can't the SQL stuff return something simple I can

Re: [Gambas-user] Testing component GB.INFO

2010-09-12 Thread Benoît Minisini
[GB.INFO] Testing in Gambas3 Rev 3206 and Gambas 2.21. SO: Ubuntu 9.10 i386 * Create proyect GTK. * Add Control Listview * Add three controls Button. * Add Class Class1 * Add two forms. * Code in Button1: Dim x As Byte For x = 0 To Info.Classes.Count - 1

Re: [Gambas-user] Database Results

2010-09-12 Thread Fabien Bodard
The biggest help for him will be to read a sql book :)... it was for me the only way to quit the M$ ADO in the past. But gb.db and result is suffisely powerfull to manage most part of the db capabilities in a first time . Then he can learn sql do to more. All depend of the project ... for a

Re: [Gambas-user] Database Results

2010-09-12 Thread Benoît Minisini
the next question. i got a result from a database with some records predefined (fields are id (serial) and name (string)): hResult = hConnection.Exec(select * from test) in a for loop i go through all the records by doing: FOR iCount = 0 TO hResult.Count - 1 STEP 1

Re: [Gambas-user] Gambas compile with option -static

2010-09-12 Thread Benoît Minisini
Hi. There is the possibility to compile the executable gbx2 with option -static. Regards. Cristian Abarzúa F Are you sure? Do you have more details? -- Benoît Minisini -- Start uncovering the many

Re: [Gambas-user] Console in Gambas3

2010-09-12 Thread Benoît Minisini
Wouldn't it be a good idea to show the console by default? 1. I had some difficulties to find out how it could be shown 2. I was surprised about the messages in it... Regards Matti What do you mean by default and I was surprised?. The console is always there. It is automatically opened

Re: [Gambas-user] Console in Gambas3

2010-09-12 Thread Fabien Bodard
Have you screenshot ? and what about kind of console do you talk... the internal one (witch is alway present in the tab at the bottom of the ide) or the external one witch can be actived via the options .?. What are the stranges messages ? what is your distro/desktop ? Le 12 septembre 2010

Re: [Gambas-user] Database Results

2010-09-12 Thread tobias
hi, The biggest help for him will be to read a sql book :)... it was for me the only way to quit the M$ ADO in the past. But gb.db and result is suffisely powerfull to manage most part of the db capabilities in a first time . Then he can learn sql do to more. All depend of the project

Re: [Gambas-user] Testing component GB.INFO

2010-09-12 Thread craf
-Mensaje original- De: Benoît Minisini gam...@users.sourceforge.net Reply-to: mailing list for gambas users gambas-user@lists.sourceforge.net Para: mailing list for gambas users gambas-user@lists.sourceforge.net Asunto: Re: [Gambas-user] Testing component GB.INFO Fecha: Sun, 12 Sep 2010

Re: [Gambas-user] Database Results

2010-09-12 Thread tobias
hi, another question about the databases and gambas to the developers: how do i have to imagine exactly the interaction between the (sqlite) driver and my gambas program? what exactly is this 'driver'? is it just a kind of library? (sorry, i'm not so good at this level and i never had to do

Re: [Gambas-user] Database Results

2010-09-12 Thread Fabien Bodard
It's a kind of lbrary ... you select gb.db in thecomponents. then private hcon as new connection Publc sub Main() hCon.type = sqlite3 hCon.Host=user.home / dbpath hcon.Name = mydatabase hcon.open end 2010/9/12 tobias tobiasb...@web.de: hi, another question about the databases

Re: [Gambas-user] Database Results

2010-09-12 Thread tobias
hi, It's a kind of lbrary ... you select gb.db in thecomponents. then private hcon as new connection Publc sub Main() hCon.type = sqlite3 hCon.Host=user.home / dbpath hcon.Name = mydatabase hcon.open end yeah, so this 'kind of library' it loaded by the gambas

Re: [Gambas-user] Database Results

2010-09-12 Thread Fabien Bodard
2010/9/12 tobias tobiasb...@web.de: hi, It's a kind of lbrary ... you select gb.db in thecomponents. then private hcon as new connection Publc sub Main()   hCon.type = sqlite3   hCon.Host=user.home / dbpath   hcon.Name = mydatabase   hcon.open end yeah, so this 'kind of

Re: [Gambas-user] Console in Gambas3

2010-09-12 Thread Matti
I mean the internal console window at the bottom of the IDE. It had vanished here since I don't know what svn-update. The messages were about silly errors in my project... Forget it - if the window should be there by default, it's ok. I will keep an eye on it and tell you more in case it's not

Re: [Gambas-user] Form.Enabled = False

2010-09-12 Thread Benoît Minisini
Gambas 3 Trying to show a modal window that has to be closed before other windows can do anything. Fxy.ShowModal is not useable, because the form should be placed somewhere and not be centered relative to the desktop (why is a modal window centered and can't be moved?) Because modal windows

Re: [Gambas-user] Form.Enabled = False

2010-09-12 Thread Matti
But, what is the benefit of Enabled = False then? If the control or window is only partly disabled, and the user can do a lot of things with it? Is there no property or method to really disable and don't allow the user to do something? Am 12.09.2010 22:15, schrieb Benoît Minisini: Yes, it is

Re: [Gambas-user] Console in Gambas3

2010-09-12 Thread Fabien Bodard
just remove the .conf file in ~/.config/gambas3 2010/9/12 Matti math.e...@t-online.de: I mean the internal console window at the bottom of the IDE. It had vanished here since I don't know what svn-update. The messages were about silly errors in my project... Forget it - if the window should

Re: [Gambas-user] Form.Enabled = False

2010-09-12 Thread Benoît Minisini
But, what is the benefit of Enabled = False then? If the control or window is only partly disabled, and the user can do a lot of things with it? The user should not be able to do anything with it. You decide, as you implement the event handler. Native events are low level, lower than the

Re: [Gambas-user] Form.Enabled = False

2010-09-12 Thread Matti
Sorry, I don't understand. How can I implement the event handler? Confused Matti Am 13.09.2010 00:14, schrieb Benoît Minisini: But, what is the benefit of Enabled = False then? If the control or window is only partly disabled, and the user can do a lot of things with it? The user should not

Re: [Gambas-user] Database Results

2010-09-12 Thread Caveat
Hi Tobias Fabien is correct in saying it's a kind of library. For Gambas2 in my Ubuntu installation, the following libraries are automatically installed along with Gambas2: gambas2-gb-db gambas2-gb-db-postgresql gambas2-gb-db-firebird gambas2-gb-db-mysql gambas2-gb-db-form gambas2-gb-db-odbc