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
[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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
20 matches
Mail list logo