From rterry at ...1946... Thu Jan 1 00:33:02 2009 From: rterry at ...1946... (richard terry) Date: Thu, 1 Jan 2009 10:33:02 +1100 Subject: [Gambas-user] 1755 build failed! (sob sob) gambas3 In-Reply-To: <20081230094304.587cf848@...626...> References: <200812301733.54774.rterry@...1946...> <20081230094304.587cf848@...626...> Message-ID: <200901011033.02472.rterry@...1946...> On Tue, 30 Dec 2008 07:43:04 pm David Paleino wrote: > On Tue, 30 Dec 2008 17:33:54 +1100, richard terry wrote: > > /usr/bin/ld: cannot find -lqt-mt > > Do you have qt3 headers installed? > > On Debian (and -like) systems it would be "libqt3-mt-dev". > > Just my two cents, > David I'll look at that - I've really had gambas build failing before and I've done it probably hundreds of times now. These files seem to be there: /opt/qt/lib/libqt-mt.prl /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.so.3.3.8 Benoit suggested doing : First, do a "./reconf && ./configure -C". Then check that the qt 3 library is installed on your system. As I don't understand scripting etc, I wonder if anyone could look at my package build file and tell me what to insert where, or which directory to go to to type what. Regards Richard -------------- next part -------------- # Contributor: Toni Foerster # changed by Richard Terry (so it is probably Wrong! rterry at ...1946... # to get the lastest development branch of Gambas libffi added as dependency pkgname=gambas3-svn pkgrel=2 pkgver=1758 arch=('i686') url="http://gambas.sourceforge.net" depends=('libldap' 'librsvg' 'postgresql' 'libmysqlclient' 'curl' 'sqlite2' \ 'sqlite3' 'sdl_mixer' 'sdl_image' 'unixodbc' 'poppler' \ 'libfbclient' 'omniorb' 'libffi' 'autoconf' 'automake') license=('GPL') conflicts=('gambas_3' 'gambas3') install=gambas3-svn.install source=(gambas3.desktop gambas3.png) md5sums=('177837d2a53cd202ab0fc307656a8c50' '682f60d694dd1df53d786c21939622c5') _svntrunk=https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk _svnrevision=1758 build() { msg "Checking out svn-tree..." svn checkout -r $_svnrevision $_svntrunk|| return 1 cd $startdir/src/trunk msg "Configure files..." ./reconf-all ./configure --disable-qte \ --prefix=/usr msg "Start Compiling..." make bindir=$startdir/pkg/usr/bin || return 1 make DESTDIR=$startdir/pkg install || return 1 chmod -R 755 $startdir/pkg/usr/share/gambas3/help install -D -m644 $startdir/src/gambas3.desktop \ $startdir/pkg/usr/share/applications/gambas3.desktop install -D -m644 $startdir/src/gambas3.png \ $startdir/pkg/usr/share/pixmaps/gambas3.png } From rterry at ...1946... Thu Jan 1 00:33:34 2009 From: rterry at ...1946... (richard terry) Date: Thu, 1 Jan 2009 10:33:34 +1100 Subject: [Gambas-user] 1755 build failed! (sob sob) gambas3 In-Reply-To: <20081230094304.587cf848@...626...> References: <200812301733.54774.rterry@...1946...> <20081230094304.587cf848@...626...> Message-ID: <200901011033.34911.rterry@...1946...> On Tue, 30 Dec 2008 07:43:04 pm David Paleino wrote: > On Tue, 30 Dec 2008 17:33:54 +1100, richard terry wrote: > > /usr/bin/ld: cannot find -lqt-mt > > Do you have qt3 headers installed? > > On Debian (and -like) systems it would be "libqt3-mt-dev". > > Just my two cents, > David I'll look at that - I've really had gambas build failing before and I've done it probably hundreds of times now. These files seem to be there: /opt/qt/lib/libqt-mt.prl /opt/qt/lib/libqt-mt.so /opt/qt/lib/libqt-mt.so.3 /opt/qt/lib/libqt-mt.so.3.3 /opt/qt/lib/libqt-mt.so.3.3.8 Benoit suggested doing : First, do a "./reconf && ./configure -C". Then check that the qt 3 library is installed on your system. As I don't understand scripting etc, I wonder if anyone could look at my package build file and tell me what to insert where, or which directory to go to to type what. Regards Richard -------------- next part -------------- # Contributor: Toni Foerster # changed by Richard Terry (so it is probably Wrong! rterry at ...1946... # to get the lastest development branch of Gambas libffi added as dependency pkgname=gambas3-svn pkgrel=2 pkgver=1758 arch=('i686') url="http://gambas.sourceforge.net" depends=('libldap' 'librsvg' 'postgresql' 'libmysqlclient' 'curl' 'sqlite2' \ 'sqlite3' 'sdl_mixer' 'sdl_image' 'unixodbc' 'poppler' \ 'libfbclient' 'omniorb' 'libffi' 'autoconf' 'automake') license=('GPL') conflicts=('gambas_3' 'gambas3') install=gambas3-svn.install source=(gambas3.desktop gambas3.png) md5sums=('177837d2a53cd202ab0fc307656a8c50' '682f60d694dd1df53d786c21939622c5') _svntrunk=https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk _svnrevision=1758 build() { msg "Checking out svn-tree..." svn checkout -r $_svnrevision $_svntrunk|| return 1 cd $startdir/src/trunk msg "Configure files..." ./reconf-all ./configure --disable-qte \ --prefix=/usr msg "Start Compiling..." make bindir=$startdir/pkg/usr/bin || return 1 make DESTDIR=$startdir/pkg install || return 1 chmod -R 755 $startdir/pkg/usr/share/gambas3/help install -D -m644 $startdir/src/gambas3.desktop \ $startdir/pkg/usr/share/applications/gambas3.desktop install -D -m644 $startdir/src/gambas3.png \ $startdir/pkg/usr/share/pixmaps/gambas3.png } From gambas at ...1... Thu Jan 1 16:43:18 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 1 Jan 2009 16:43:18 +0100 Subject: [Gambas-user] Bug in Save Project Directory Rename In-Reply-To: <200901010007.09136.rterry@...1946...> References: <200901010007.09136.rterry@...1946...> Message-ID: <200901011643.18343.gambas@...1...> On mercredi 31 d?cembre 2008, richard terry wrote: > A real bug, and the picture will also give you the sad information of how I > spent new years eve, alone, programming. > > Anyway, I name my backup directories after the days, Usually eg 31Dec08, > but probably because I was tired and about to go to bed, typed in > "01/01/2009". > > See the piccie which resulted. > > Happy new year! > > Regards > > Richard Happy new year too, Richard. The bug is fixed in revision #1762. Funny that this bug was already fixed in the stable version... Regards, -- Benoit Minisini From micman.manoj at ...626... Fri Jan 2 06:42:02 2009 From: micman.manoj at ...626... (Micman (via Digg)) Date: Thu, 01 Jan 2009 21:42:02 -0800 Subject: [Gambas-user] Come Join My Network at Digg Message-ID: Micman is a member of Digg and would like to send you an invitation. With Digg you can help promote and share news to the millions of Digg viewers with a single click (Digging a story). This is a place where excellent IT articles are quoted ! If you are an IT related person then this is the right place for you ! It's free to join and only takes a minute to sign up! Just go to Digg to register: http://digg.com/invitefrom/manoj1987?OTC-em-in1 To verify that this email was sent by Digg user manoj1987, visit: http://digg.com/verifymail?key=c7be343819972979275e19c058b85771&OTC-em-in2 To opt out of ALL future emails from Digg, visit: http://digg.com/optout?key=21140647530784f281bcaa4964fa4418&OTC-em-in3 Digg will NOT store your email address, even if you opt out! Digg will store only an encrypted key, which even Digg cannot decipher. From md9327 at ...120... Fri Jan 2 12:27:33 2009 From: md9327 at ...120... (Luigi Carlotto) Date: Fri, 02 Jan 2009 12:27:33 +0100 Subject: [Gambas-user] Problem with MySQL LONGTEXT field type In-Reply-To: <1229978474.5199.35.camel@...37...> References: <1229256335.26984.1.camel@...37...> <1229875783.5199.10.camel@...37...> <1229973196.5199.23.camel@...37...> <1229975495.5199.32.camel@...37...> <1229978474.5199.35.camel@...37...> Message-ID: <1230895653.4801.2.camel@...37...> Il giorno lun, 22/12/2008 alle 21.41 +0100, Luigi Carlotto ha scritto: > Il giorno lun, 22/12/2008 alle 20.51 +0100, Luigi Carlotto ha scritto: > > > Il giorno lun, 22/12/2008 alle 20.13 +0100, Luigi Carlotto ha > > scritto: > > > > > It pardons me, but the table in object is not part of mine > > > database, but of the same motor of MySQL. > > > The fact that is complete with the data, or without data, is not > > > the true problem. > > > My function reads the content of this table in order to determine > > > the structure of a database, and not the data. > > > The data contained in this table, come inserted automatically from > > > the motor of MySQL, when they come created objects in the > > > database. > > > > > > In the normal situation, the table contains the information > > > approximately the structure of the objects that MySQL creates of > > > default, when it comes created database any. > > > The table ?routines? is of property of the ?information_schema? > > > schema, that it is of property of MySQL, and on which writing > > > operations cannot be made, but only of reading. > > > The same library of Gambas2, uses this table for populate the > > > objects ?Table?, ?Field?, etc > > > > > > To this point, it still pardons me, I I do not believe that to > > > send the dump of this table he is of great usefullness since, if > > > an installation of MySQL is had, it is possible to verify the > > > problem directly. > > > As creed of to have written, the problem does not seem that or > > > caused from the reading of the field, but its maintenance in > > > memory, if managed from a complex application? This, obviously, is > > > only a hypothesis? > > > > > > Thanks to you for the patience! > > > > > > In attached the dump of the database of test. > > A table is present only... > > > > Thanks > > > > > The dump it contains a single object of the database of test, a table, > and only little records. > As I have said, my application does not use the content of the table, > but it gains its structure from the tables of system of MySQL. > My application uses the structure of the database in order to > represent in graphical way the layout of the database, the data is not > useful to such scope. > > In order to make this operation, it is connected to the database and, > through the system tables, it gains the information of the structure > of the database. > The application can be connected to the types of database: PostgreSQL, > MySQL and SQLite. > Various from PostgreSQL, some tables of MySQL use fields of type > longtext (blob), for which it is necessary to read these fields, for > being able to determine, as an example: name of the field, type, > dimensions, COMMENT, etc > > This happens in the same way with bookcases of Gambas? I believe thus > that or, at least from the reading of the code source. Also phpPgAdmin > (PHP) executes query on these tables of system, in order to represent > the objects contained in the database; same thing in phpMyAdmin. > I have executed of the tests, to line of commando from Linux, in order to understand the reason for which in Gambas they do not come loaded the fields ?longtext? from the database ?information_schema? with MySQL. The error, to how much seems, does not seem derived from an anomaly of Gambas, but from an anomaly of MySQL, that is, executing the logon and the query on the table ?information_schema?, like customer root (and with the commando ?mysql?), the data come extracted all in complete and corrected way; if the same operation comes carried out with an other customer (not administrative), the type fields ?longtext? they turn out NULL. I have verified the same thing with Gambas and, in effects, it is behaved in the same way. I have controlled the MySQL logon parameters, so as to verify if some various formulation between the several customers exists, but have not found some difference. I have verified if the behavior were identical in phpMyAdmin (a program PHP of management for MySQL), but strangely, the data comes always visualized in corrected way, with any customer. I have controlled code PHP, but some formulation does not exist, that it can condition such behavior. To this point, the anomaly sure is caused from MySQL, but I do not succeed to understand like resolving the problem. Also I have tried to give GRANT to the customers, but for the outline ?information_schema? it is not possible, since this is a database of system. How it is possible to resolve this problem? From md9327 at ...120... Fri Jan 2 12:33:50 2009 From: md9327 at ...120... (Luigi Carlotto) Date: Fri, 02 Jan 2009 12:33:50 +0100 Subject: [Gambas-user] Problem with MySQL LONGTEXT field type In-Reply-To: <1230895653.4801.2.camel@...37...> References: <1229256335.26984.1.camel@...37...> <1229875783.5199.10.camel@...37...> <1229973196.5199.23.camel@...37...> <1229975495.5199.32.camel@...37...> <1229978474.5199.35.camel@...37...> <1230895653.4801.2.camel@...37...> Message-ID: <1230896030.4801.8.camel@...37...> Il giorno ven, 02/01/2009 alle 12.27 +0100, Luigi Carlotto ha scritto: > Il giorno lun, 22/12/2008 alle 21.41 +0100, Luigi Carlotto ha scritto: > > > Il giorno lun, 22/12/2008 alle 20.51 +0100, Luigi Carlotto ha > > scritto: > > > > > Il giorno lun, 22/12/2008 alle 20.13 +0100, Luigi Carlotto ha > > > scritto: > > > > > > > It pardons me, but the table in object is not part of mine > > > > database, but of the same motor of MySQL. > > > > The fact that is complete with the data, or without data, is not > > > > the true problem. > > > > My function reads the content of this table in order to > > > > determine the structure of a database, and not the data. > > > > The data contained in this table, come inserted automatically > > > > from the motor of MySQL, when they come created objects in the > > > > database. > > > > > > > > In the normal situation, the table contains the information > > > > approximately the structure of the objects that MySQL creates of > > > > default, when it comes created database any. > > > > The table ?routines? is of property of the ?information_schema? > > > > schema, that it is of property of MySQL, and on which writing > > > > operations cannot be made, but only of reading. > > > > The same library of Gambas2, uses this table for populate the > > > > objects ?Table?, ?Field?, etc > > > > > > > > To this point, it still pardons me, I I do not believe that to > > > > send the dump of this table he is of great usefullness since, if > > > > an installation of MySQL is had, it is possible to verify the > > > > problem directly. > > > > As creed of to have written, the problem does not seem that or > > > > caused from the reading of the field, but its maintenance in > > > > memory, if managed from a complex application? This, obviously, > > > > is only a hypothesis? > > > > > > > > Thanks to you for the patience! > > > > > > > > > In attached the dump of the database of test. > > > A table is present only... > > > > > > Thanks > > > > > > > > > The dump it contains a single object of the database of test, a > > table, and only little records. > > As I have said, my application does not use the content of the > > table, but it gains its structure from the tables of system of > > MySQL. > > My application uses the structure of the database in order to > > represent in graphical way the layout of the database, the data is > > not useful to such scope. > > > > In order to make this operation, it is connected to the database > > and, through the system tables, it gains the information of the > > structure of the database. > > The application can be connected to the types of database: > > PostgreSQL, MySQL and SQLite. > > Various from PostgreSQL, some tables of MySQL use fields of type > > longtext (blob), for which it is necessary to read these fields, for > > being able to determine, as an example: name of the field, type, > > dimensions, COMMENT, etc > > > > This happens in the same way with bookcases of Gambas? I believe > > thus that or, at least from the reading of the code source. Also > > phpPgAdmin (PHP) executes query on these tables of system, in order > > to represent the objects contained in the database; same thing in > > phpMyAdmin. > > > > > I have executed of the tests, to line of commando from Linux, in order > to understand the reason for which in Gambas they do not come loaded > the fields ?longtext? from the database ?information_schema? with > MySQL. > > The error, to how much seems, does not seem derived from an anomaly of > Gambas, but from an anomaly of MySQL, that is, executing the logon and > the query on the table ?information_schema?, like customer root (and > with the commando ?mysql?), the data come extracted all in complete > and corrected way; if the same operation comes carried out with an > other customer (not administrative), the type fields ?longtext? they > turn out NULL. > > I have verified the same thing with Gambas and, in effects, it is > behaved in the same way. > I have controlled the MySQL logon parameters, so as to verify if some > various formulation between the several customers exists, but have not > found some difference. > I have verified if the behavior were identical in phpMyAdmin (a > program PHP of management for MySQL), but strangely, the data comes > always visualized in corrected way, with any customer. > > I have controlled code PHP, but some formulation does not exist, that > it can condition such behavior. > To this point, the anomaly sure is caused from MySQL, but I do not > succeed to understand like resolving the problem. > Also I have tried to give GRANT to the customers, but for the outline > ?information_schema? it is not possible, since this is a database of > system. > > How it is possible to resolve this problem? > Examples: USER: root (mysql --host=localhost --port=5432 --user=root --password --database=test) mysql> SELECT routine_name, routine_type, routine_definition FROM information_schema.routines WHERE routine_name = 'hello' AND routine_type = 'FUNCTION' AND routine_schema = 'test'; +--------------+--------------+--------------------------------+ | routine_name | routine_type | routine_definition | +--------------+--------------+--------------------------------+ | hello | FUNCTION | return concat('Hello, ',s,'!') | +--------------+--------------+--------------------------------+ 1 row in set (0.00 sec) mysql> USER: test (mysql --host=localhost --port=5432 --user=test --password --database=test) mysql> SELECT routine_name, routine_type, routine_definition FROM information_schema.routines WHERE routine_name = 'hello' AND routine_type = 'FUNCTION' AND routine_schema = 'test'; +--------------+--------------+--------------------+ | routine_name | routine_type | routine_definition | +--------------+--------------+--------------------+ | hello | FUNCTION | NULL | +--------------+--------------+--------------------+ 1 row in set (0.00 sec) mysql> From alw at ...2038... Fri Jan 2 15:33:45 2009 From: alw at ...2038... (Al Williams) Date: Fri, 02 Jan 2009 08:33:45 -0600 Subject: [Gambas-user] Strange behavior reading /sys file system Message-ID: <495E25C9.3080305@...2038...> From david_villalobos_c at ...43... Fri Jan 2 17:09:23 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 2 Jan 2009 08:09:23 -0800 (PST) Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now Message-ID: <816832.66245.qm@...1656...> Hi Benoit & All, I think I found an error en the gb.db.mysql component. It is related with this error message: Commands out of sync; you can't run this command now. See the attached example See the following link: http://dev.mysql.com/doc/refman/5.0/en/commands-out-of-sync.html Mandriva 2009.1 64 Bits & KDE & mysql 5.0.51a & Gambas 3 r1745 Best regards David -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.MySQL-0.0.1.tar.gz Type: application/x-gzip Size: 8711 bytes Desc: not available URL: From webbox.uk at ...626... Fri Jan 2 17:56:38 2009 From: webbox.uk at ...626... (Kris Douglas) Date: Fri, 2 Jan 2009 16:56:38 +0000 Subject: [Gambas-user] Come Join My Network at Digg In-Reply-To: References: Message-ID: <8d424b9e0901020856h2c52f62ye83ee2909e21970a@...627...> 2009/1/2 via Digg Micman : > Micman is a member of Digg and would like to send you an invitation. > With Digg you can help promote and share news to the millions of Digg > viewers with a single click (Digging a story). > > This is a place where excellent IT articles are quoted ! > If you are an IT related person then this is the right place for you ! > > It's free to join and only takes a minute to sign up! Just go to Digg to register: http://digg.com/invitefrom/manoj1987?OTC-em-in1 > > To verify that this email was sent by Digg user manoj1987, visit: > http://digg.com/verifymail?key=c7be343819972979275e19c058b85771&OTC-em-in2 > > To opt out of ALL future emails from Digg, visit: > http://digg.com/optout?key=21140647530784f281bcaa4964fa4418&OTC-em-in3 > > Digg will NOT store your email address, even if you opt out! Digg will store only an encrypted key, which even Digg cannot decipher. Please don't send advertising E-Mails to Mailing lists, it's ever so tiresome. From biggy.uac at ...626... Fri Jan 2 18:54:53 2009 From: biggy.uac at ...626... (Biggy UAC) Date: Fri, 2 Jan 2009 19:54:53 +0200 Subject: [Gambas-user] Gambas2 USB detect !!?? Message-ID: Happy new year ! in my application i want to detect usb flash drive when pluged/unpluged and display in a textbox usb drive letter. how to detect usb drive stick plug/unplug in gambas2 ?? thanks . From gambas at ...1... Fri Jan 2 19:45:32 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 2 Jan 2009 19:45:32 +0100 Subject: [Gambas-user] Gambas2 USB detect !!?? In-Reply-To: References: Message-ID: <200901021945.32362.gambas@...1...> On vendredi 2 janvier 2009, Biggy UAC wrote: > Happy new year ! > > in my application i want to detect usb flash drive when pluged/unpluged and > display in a textbox usb drive letter. > > how to detect usb drive stick plug/unplug in gambas2 ?? > > thanks . USB "driver letter" ??? That does not exist on Linux... Anyway, this is not possible in Gambas 2 directly. AFAIK, when you plug a device, the kernel warns the HAL daemon which then sends a signal on the DBUS system bus. This signal then can be catched by any application that ask for it on the DBUS system bus. You cannot do that in Gambas without support for DBUS. Maybe there is another way with a command-line tool, but I don't know. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Fri Jan 2 20:07:44 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 2 Jan 2009 14:07:44 -0500 Subject: [Gambas-user] Gambas2 USB detect !!?? In-Reply-To: References: Message-ID: <200901021407.44749.sourceforge-raindog2@...94...> On Friday 02 January 2009 12:54, Biggy UAC wrote: > in my application i want to detect usb flash drive when pluged/unpluged > and display in a textbox usb drive letter. > how to detect usb drive stick plug/unplug in gambas2 ?? Linux doesn't have drive letters, but you should be able to get the device name (e.g. /dev/sde) in a couple of different ways. The correct way to do it is to set your program up as a hotplug agent for USB drives using udev (probably putting a file in /etc/udev/rules.d). But doing that may screw up your users' normal hotplug functionality (i.e. KDE or GNOME asking the user what they want to do with the drive.) Google for udev hotplug for more information on this, because I've never done it myself. Also, on older systems the devfs system was used rather than udev and you'd need to deal with /etc/hotplug/usb.usermap (I think.) Another way, less intrusive but by no means foolproof, is to have a process running in your Gambas program, "tail -f /var/log/messages" or "tail -f /var/log/syslog". Here is what appeared in /var/log/messages last night on one of my Mandriva boxes when I attached my Archos hard disk jukebox: Jan 1 20:46:59 raindog2 kernel: usb 5-5: new high speed USB device using ehci_hcd and address 7 Jan 1 20:46:59 raindog2 kernel: usb 5-5: configuration #1 chosen from 1 choice Jan 1 20:46:59 raindog2 kernel: scsi7 : SCSI emulation for USB Mass Storage devices Jan 1 20:47:04 raindog2 kernel: Vendor: Archos Model: PC Hard Drive Rev: 0316 Jan 1 20:47:04 raindog2 kernel: Type: Direct-Access ANSI SCSI revision: 02 Jan 1 20:47:04 raindog2 kernel: SCSI device sdh: 312175080 512-byte hdwr sectors (159834 MB) Jan 1 20:47:04 raindog2 kernel: sdh: Write Protect is off Jan 1 20:47:04 raindog2 kernel: sdh: assuming drive cache: write through Jan 1 20:47:04 raindog2 kernel: SCSI device sdh: 312175080 512-byte hdwr sectors (159834 MB) Jan 1 20:47:04 raindog2 kernel: sdh: Write Protect is off Jan 1 20:47:04 raindog2 kernel: sdh: assuming drive cache: write through Jan 1 20:47:04 raindog2 kernel: sdh: sdh1 Jan 1 20:47:04 raindog2 kernel: sd 7:0:0:0: Attached scsi removable disk sdh If you look for the words "Attached scsi removable disk" in the output of that tail -f, the next word in that line should be the device name of the drive. I haven't hooked any USB drives up to my Ubuntu server since I upgraded so I don't know if every distro has logs that look like that, or just Mandriva. Rob From admin at ...1080... Fri Jan 2 20:22:14 2009 From: admin at ...1080... (werner 007) Date: Fri, 2 Jan 2009 11:22:14 -0800 (PST) Subject: [Gambas-user] Problem with MySQL LONGTEXT field type In-Reply-To: <1230896030.4801.8.camel@...37...> References: <1229256335.26984.1.camel@...37...> <1229875783.5199.10.camel@...37...> <1229973196.5199.23.camel@...37...> <1229975495.5199.32.camel@...37...> <1229978474.5199.35.camel@...37...> <1230895653.4801.2.camel@...37...> <1230896030.4801.8.camel@...37...> Message-ID: <21255943.post@...1379...> Ciao Luigi I believe it comes from permissions. Try this: Give all permissions to user Test for schema mysql and schema Test. That should work. Regards, Werner >From the mySQL Help: There are two sets of permissions for stored functions, 1. permissions to create and manage stored functions 2. permissions to use functions. To create a function in a database, the user must have the CREATE ROUTINE privilege. To use a function, the caller must have the EXECUTE privilege for the particular database. To change an existing function, the user must have the ALTER ROUTINE privilege. Permissions can be granted globally in the mysql.user table. Permissions can also be granted at the database level in the mysql.db table. Permissions can be granted for a specific routine in the mysql.procs_priv table. -- View this message in context: http://www.nabble.com/Problem-with-MySQL-LONGTEXT-field-type-tp20999713p21255943.html Sent from the gambas-user mailing list archive at Nabble.com. From md9327 at ...120... Sat Jan 3 12:00:04 2009 From: md9327 at ...120... (Luigi Carlotto) Date: Sat, 03 Jan 2009 12:00:04 +0100 Subject: [Gambas-user] Problem with MySQL LONGTEXT field type (Null data) Message-ID: <1230980404.4801.14.camel@...37...> I have changed the heading of the mail, because I have noticed that sometimes it does not come received from the mailing list. In any case, this continuous speech approximately the problem of the fields ?longtext? in MySQL. ... I have executed of the tests, to line of commando from Linux, in order to understand the reason for which in Gambas they do not come loaded the fields ?longtext? from the database ?information_schema? with MySQL. The error, to how much seems, does not seem derived from an anomaly of Gambas, but from an anomaly of MySQL, that is, executing the logon and the query on the table ?information_schema?, like customer root (and with the commando ?mysql?), the data come extracted all in complete and corrected way; if the same operation comes carried out with an other customer (not administrative), the type fields ?longtext? they turn out NULL. I have verified the same thing with Gambas and, in effects, it is behaved in the same way. I have controlled the MySQL logon parameters, so as to verify if some various formulation between the several customers exists, but have not found some difference. I have verified if the behavior were identical in phpMyAdmin (a program PHP of management for MySQL), but strangely, the data comes always visualized in corrected way, with any customer. I have controlled code PHP, but some formulation does not exist, that it can condition such behavior. To this point, the anomaly sure is caused from MySQL, but I do not succeed to understand like resolving the problem. Also I have tried to give GRANT to the customers, but for the outline ?information_schema? it is not possible, since this is a database of system. Examples: USER: root (mysql --host=localhost --port=5432 --user=root --password=xyz --database=test) mysql> SELECT routine_name, routine_type, routine_definition FROM information_schema.routines WHERE routine_name = 'hello' AND routine_type = 'FUNCTION' AND routine_schema = 'test'; +--------------+--------------+--------------------------------+ | routine_name | routine_type | routine_definition | +--------------+--------------+--------------------------------+ | hello | FUNCTION | return concat('Hello, ',s,'!') | +--------------+--------------+--------------------------------+ 1 row in set (0.00 sec) mysql> USER: test (mysql --host=localhost --port=5432 --user=test --password=xyz --database=test) mysql> SELECT routine_name, routine_type, routine_definition FROM information_schema.routines WHERE routine_name = 'hello' AND routine_type = 'FUNCTION' AND routine_schema = 'test'; +--------------+--------------+--------------------+ | routine_name | routine_type | routine_definition | +--------------+--------------+--------------------+ | hello | FUNCTION | NULL | +--------------+--------------+--------------------+ 1 row in set (0.00 sec) mysql> How it is possible to resolve this problem? From md9327 at ...120... Sat Jan 3 12:19:57 2009 From: md9327 at ...120... (Luigi Carlotto) Date: Sat, 03 Jan 2009 12:19:57 +0100 Subject: [Gambas-user] XML library with xml multilevel tags (EndElement) In-Reply-To: <1230426844.12085.102.camel@...37...> References: <1230404654.12085.51.camel@...37...> <1230426844.12085.102.camel@...37...> Message-ID: <1230981597.4801.34.camel@...37...> Il giorno dom, 28/12/2008 alle 02.14 +0100, Luigi Carlotto ha scritto: > Il giorno sab, 27/12/2008 alle 20.04 +0100, Luigi Carlotto ha scritto: > > > I do not comprise the reason, but mine precedence post has been > > included like answer in an other mail. > > > > ? however? > > > > > > Gambas 2.9.0 > > > > Using the gb.xml library, me they are shrewed that the reading can > > be carried out single on files xml to 2 levels. > > I explain myself in better way? > > I have necessity to read xml files, that it contains a composed > > structure from elements, structured in hierarchical way on more > > levels, as an example: > > > > > > > > > Revision="14/03/2008 14:44:03" Description="bible" Driver="8.2" > > Author="mgm" Display="0"> > > > ColorText="0,0,0" ColorBackTitle="230,230,230" > > ColorBackTitleSelected="76,89,166" ColorForeTitle="0,0,0" > > ColorForeTitleSelected="255,255,255" Comment="006C006F0067" > > Option="false" PrimaryKey="tb_log_pk"> > > > Comment="006900640065006E00740069006600690061006E0074" Length="0" > > NullCheck="true" PrimaryKey="true" Type1="serial"/> > > > Unique="true"/> > >
> > questa ? una prova > >
> >
> > > > In the example, the hierarchy of the rows xml is composed gives: > > 1) a main element (root) ??; > > 2) inside of the root, the element is present ??; > > 3) under ?? the element is present ??; > > 4) in its turn, the element ?
? contains a series of other > > heterogenous elements. > > > > Through the gb.xml library, the reading of the file does not notice > > of the closing of tag (Node.Type=XmlReaderNodeType.EndElement), if > > these are sluices on the same definition of the tag, like as an > > example: > > > > > Unique="true"/> > > > > the reading evidences the opening of tag, but the not its closing, > > for which it renders impossible to ago understand if tag following > > the part of a advanced element, or is to the same level of the > > element precedence. > > > > The behavior is various in phase of writing where, through the > > methods ?StartElement? and ?EndElement?, it is possible to define > > complex structures. > > > > This logic, currently, only forces the use of structures xml on two > > levels. > > > The spaces contained in the strings do not have particolary functions, > but they make part of the name of the object, and it is not possible > to eliminate them. > In other cases, use the comma in order to separate a list of elements > (es. an Array, Join function), than in reading comes reconverted in > Array (Split function). > > With regard to the levels, I have resolved, constructing a series of > classes, based on the objects XmlReader and XmlWriter. > Logic of these objects allows to only read to rows xml multilevel, but > if the tag they are not sluices on if same. In contrary case, the > gb.xml library does not notice of the closing of the tag, for which > the hierarchy it does not come constructed in correct way. > > These classes directly work in memory, loading the xml files in a > structure, that it can be read inside of a program. > The writing comes carried out through the same structure of memory. > This logic me slightly seems or faster, and fastly releases the > connections to the file. > > Only problem, perhaps, could be the management of large files; I have > tried with xml of 2Mbyte, and I am fast. > Perhaps he can be useful in Gambas? > The structure follows logic, also applied in other languages, than > part from an object Document (pgXmlDocument), that a Root element > contains; like then for all the other elements (pgXmlElement), it > contains an Array of elements and an Array of attributes > (pgXmlAttribute). > The connection with the object father, comes managed from the property > Parent (Root does not have Parent, obviously). > > It makes me to know if it can interest. Like the last ones, also this mail has not arrived in the mailing list? However, I have uncovered qual'? the problem with the management of tag the multilevel. If the tag it comes closed, immediately after the list of the attributes, like as an example: the variable ?XmlReaderNodeType.EndElement? does not come set up. If the tag it comes in this way closed: the closing comes found, and the variable ?XmlReaderNodeType.EndElement? works correctly; in this way it can be understood if the tag it contains other elements, and this allows to manage a document xml in modality multilevel. I have executed some modifications to my code, and the xml files, and all it works like previewed. At the same time, I have constructed to a series of generic classes, that they join the functionalities of the two classes XmlReader and XmlWriter, and that they work directly in memory, loading an inner structure given (Array with objects), the reading and the rescue of the document xml is executed in an only phase. I have executed some tests, and with files of 2Mbyte problems are not taken place, and the operations are fast. I task that, in order to obtain a dynamic gb.xml library, is perhaps the case to modify the reading methods, so as to find these varying in the xml files. From gambas at ...1... Sat Jan 3 13:19:23 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 3 Jan 2009 13:19:23 +0100 Subject: [Gambas-user] Release of Gambas 2.10.2 Message-ID: <200901031319.23295.gambas@...1...> Hi, Some things were broken yet in the 2.10, so I made a new release. Fixed things mainly are: * The HttpClient.Async and FtpClient.Async properties. * The Balloon class, that was freezing the GUI. * The XSLT.Transfrom() method. Here is the full ChangeLog: ------------------------------------------------------------------------------- [GB.DB] * BUG: Correctly check that table name are not void in Create(), Find(), Edit() and Delete() methods. [GB.NET.CURL] * BUG: HttpClient and FtpClient Async property are now correctly initialized to TRUE. [GB.QT] * BUG: Showing balloons does not freeze the GUI in some case anymore. * BUG: Setting the Menu.Shortcut property to NULL now correctly removes the shortcut. [GB.QT.EXT] * BUG: Editor.Print() method now can deal with strings having null character inside. [GB.XML.XSLT] * BUG: XSLT.Transform() now works correctly again. ------------------------------------------------------------------------------- Happy new year 2009 with Gambas! -- Benoit Minisini From emil at ...1913... Sat Jan 3 13:35:50 2009 From: emil at ...1913... (Emil Tchekov) Date: Sat, 3 Jan 2009 13:35:50 +0100 Subject: [Gambas-user] Gambas2 USB detect !!?? In-Reply-To: <200901021407.44749.sourceforge-raindog2@...94...> References: <200901021407.44749.sourceforge-raindog2@...94...> Message-ID: <200901031335.50506.emil@...1913...> > drive. I haven't hooked any USB drives up to my Ubuntu server since I > upgraded so I don't know if every distro has logs that look like that, or > just Mandriva. > > Rob Good idea - /var/log/messages should be present on every linux looking in there can provide interesting infos... (be base for usefull GUI apps). May be coupled with comparing current time / log time in order to look only for current "events"... The problem ist - as normal user you are not allowed to read it... regards Emil From jshackney at ...626... Sat Jan 3 16:08:43 2009 From: jshackney at ...626... (Jason Hackney) Date: Sat, 3 Jan 2009 10:08:43 -0500 Subject: [Gambas-user] TableView Editing Message-ID: <799be1690901030708t88c43a9o414e141570472d71@...627...> Gambas 2.8... I've slightly modified Fabien's example posted on August 13, 2008. 1) I'm getting a "Null Object" when attempting to execute the following line inside a TableView Click event: TableView1.Edit(["a", "b", "c", "d"], FALSE) 2) Say I click on Col 0, Row 0. The contents of that cell are selected. I edit the cell contents then press TAB and it appears the contents are apparently saved, but the next column's cell does not get selected. In other words, I click on 0,0 then press TAB. I expect Col 1, Row 0 to be selected. But it is not. Using the left and right arrow keys, I can cursor through the cells and their contents (but none is selected)--which is as expected. Just wondered if the TAB functionality was a feature or a bug? Or possibly something that has been addressed more recently. Thanks, Jason From rolf.frogs at ...221... Sat Jan 3 17:47:20 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Sat, 3 Jan 2009 17:47:20 +0100 Subject: [Gambas-user] Gambas2 USB detect !!?? In-Reply-To: <200901031335.50506.emil@...1913...> References: <200901021407.44749.sourceforge-raindog2@...94...> <200901031335.50506.emil@...1913...> Message-ID: <200901031747.24146.rolf.frogs@...221...> Am Samstag, 3. Januar 2009 schrieb Emil Tchekov: > > drive. I haven't hooked any USB drives up to my Ubuntu server since I > > upgraded so I don't know if every distro has logs that look like that, or > > just Mandriva. > > > > Rob > > Good idea - /var/log/messages should be present on every linux > > looking in there can provide interesting infos... (be base for usefull GUI > apps). May be coupled with comparing current time / log time in order to > look only for current "events"... > > The problem ist - as normal user you are not allowed to read it... You (or better the administrator) can create a named pipe (with mknod) and direct parts of the log infos additionally to this named pipe. So the syslog.conf needs to be edited and a line like "kern.info | YourNamedPipe" may be added, which say, the all the log messeages from the kernel shout additional go throug the named pipe. Of course the syslog-daemen needs to be restartet or instructed to reread its config file. Hope that helps Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From biggy.uac at ...626... Sat Jan 3 21:51:38 2009 From: biggy.uac at ...626... (Biggy UAC) Date: Sat, 3 Jan 2009 22:51:38 +0200 Subject: [Gambas-user] Gambas2 USB detect !!?? In-Reply-To: <200901031747.24146.rolf.frogs@...221...> References: <200901021407.44749.sourceforge-raindog2@...94...> <200901031335.50506.emil@...1913...> <200901031747.24146.rolf.frogs@...221...> Message-ID: Thanks guys for your infos! special thanks to Benoit Minisini. From kobolds at ...2041... Sun Jan 4 02:36:54 2009 From: kobolds at ...2041... (kobolds) Date: Sat, 3 Jan 2009 17:36:54 -0800 (PST) Subject: [Gambas-user] create gambas component Message-ID: <21271068.post@...1379...> hi I new in gambas. I try to create a simple gambas component , a project with only a class and a function . I read from wiki that all I need to do is 1. on the project option set the "this project is component to true" 2. on make executable option tick "Install in the user component directory" after I click ok to generate , I get error "CComponet.load.353 file or directory does not exist" I load another project , from the project component I see the component I created . I tick my component to enable it then press ok button . I get the same error "CComponet.load.353 file or directory does not exist" am I missing something? -- View this message in context: http://www.nabble.com/create-gambas-component-tp21271068p21271068.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 4 02:46:23 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Jan 2009 02:46:23 +0100 Subject: [Gambas-user] create gambas component In-Reply-To: <21271068.post@...1379...> References: <21271068.post@...1379...> Message-ID: <200901040246.23979.gambas@...1...> On dimanche 4 janvier 2009, kobolds wrote: > hi I new in gambas. I try to create a simple gambas component , a project > with only a class and a function . I read from wiki that all I need to do > is 1. on the project option set the "this project is component to true" 2. > on make executable option tick "Install in the user component directory" > > after I click ok to generate , I get error "CComponet.load.353 file or > directory does not exist" > > I load another project , from the project component I see the component I > created . I tick my component to enable it then press ok button . I get > the same error "CComponet.load.353 file or directory does not exist" > > am I missing something? Do you use the latest version of Gambas ? -- Benoit Minisini From kobolds at ...2041... Sun Jan 4 03:40:04 2009 From: kobolds at ...2041... (kobolds) Date: Sat, 3 Jan 2009 18:40:04 -0800 (PST) Subject: [Gambas-user] create gambas component In-Reply-To: <200901040246.23979.gambas@...1...> References: <21271068.post@...1379...> <200901040246.23979.gambas@...1...> Message-ID: <21272347.post@...1379...> I using opensuse 11.1 (64 bit) . I download gambas from http://download.opensuse.org/repositories/home:/gbvalor/ I using gambas 2.9 . I also try update to 2.10 and recompile but still get the same error Benoit Minisini wrote: > > On dimanche 4 janvier 2009, kobolds wrote: >> hi I new in gambas. I try to create a simple gambas component , a project >> with only a class and a function . I read from wiki that all I need to do >> is 1. on the project option set the "this project is component to true" >> 2. >> on make executable option tick "Install in the user component directory" >> >> after I click ok to generate , I get error "CComponet.load.353 file or >> directory does not exist" >> >> I load another project , from the project component I see the component I >> created . I tick my component to enable it then press ok button . I get >> the same error "CComponet.load.353 file or directory does not exist" >> >> am I missing something? > > Do you use the latest version of Gambas ? > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/create-gambas-component-tp21271068p21272347.html Sent from the gambas-user mailing list archive at Nabble.com. From jshackney at ...626... Sun Jan 4 06:00:29 2009 From: jshackney at ...626... (Jason Hackney) Date: Sun, 4 Jan 2009 00:00:29 -0500 Subject: [Gambas-user] TableView Editing In-Reply-To: <799be1690901030708t88c43a9o414e141570472d71@...627...> References: <799be1690901030708t88c43a9o414e141570472d71@...627...> Message-ID: <799be1690901032100g474ae42i20af24662d44d83@...627...> > Just wondered if the TAB functionality was a feature or a bug? Or possibly > something that has been addressed more recently. > This happens in qt and gtk. From rterry at ...1946... Sun Jan 4 06:23:42 2009 From: rterry at ...1946... (richard terry) Date: Sun, 4 Jan 2009 16:23:42 +1100 Subject: [Gambas-user] 1755 build failed! (Solved sort of) In-Reply-To: <200901011033.02472.rterry@...1946...> References: <200812301733.54774.rterry@...1946...> <20081230094304.587cf848@...626...> <200901011033.02472.rterry@...1946...> Message-ID: <200901041623.42131.rterry@...1946...> On Thu, 1 Jan 2009 10:33:02 am richard terry wrote: > On Tue, 30 Dec 2008 07:43:04 pm David Paleino wrote: > > On Tue, 30 Dec 2008 17:33:54 +1100, richard terry wrote: > > > /usr/bin/ld: cannot find -lqt-mt > > > > Do you have qt3 headers installed? > > > > On Debian (and -like) systems it would be "libqt3-mt-dev". > > > > Just my two cents, > > David > > I'll look at that - I've really had gambas build failing before and I've > done it probably hundreds of times now. > > These files seem to be there: > /opt/qt/lib/libqt-mt.prl > /opt/qt/lib/libqt-mt.so > /opt/qt/lib/libqt-mt.so.3 > /opt/qt/lib/libqt-mt.so.3.3 > /opt/qt/lib/libqt-mt.so.3.3.8 > > Benoit suggested doing : > > First, do a "./reconf && ./configure -C". Then check that the qt 3 library > is installed on your system. > > As I don't understand scripting etc, I wonder if anyone could look at my > package build file and tell me what to insert where, or which directory to > go to to type what. > > > > > Regard > > Richard Seem have solved this by adding LDFLAGS+="-L/opt/qt/lib" after my make statement in my PKGBUILD file, and finally it worked. Love to know why, but I guess thats what comes of being computer illiterate. Regards Richard From gambas at ...1... Sun Jan 4 10:41:52 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Jan 2009 10:41:52 +0100 Subject: [Gambas-user] create gambas component In-Reply-To: <21272347.post@...1379...> References: <21271068.post@...1379...> <200901040246.23979.gambas@...1...> <21272347.post@...1379...> Message-ID: <200901041041.52402.gambas@...1...> On dimanche 4 janvier 2009, kobolds wrote: > I using opensuse 11.1 (64 bit) . I download gambas from > http://download.opensuse.org/repositories/home:/gbvalor/ > > I using gambas 2.9 . > I also try update to 2.10 and recompile but still get the same error > As far as I can guess, you didn't define any exported class in your component. When your project is a component, an hidden ".list" file is automatically generated by the compiler. This file is a list of all exported classes. Without any class exported, this file is not generated, and you get an error from the IDE instead of just a warning. The fault is in the IDE that should warn you from the beginning that a component without any exported class cannot do anything and so is useless. Regards, -- Benoit Minisini From gambas at ...1... Sun Jan 4 12:20:07 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Jan 2009 12:20:07 +0100 Subject: [Gambas-user] Warning! Translation files may be corrupted Message-ID: <200901041220.07798.gambas@...1...> I have just detected that the IDE is randomly corrupting non-ASCII characters in the translation files. The suspect is the "msgmerge" GNU gettext tool, version 0.17 provided with Mandriva 2009. This command is used by the IDE each time it opens a translation file, for merging old translations with the new strings to be translated. At this time, apparently, UTF-8 characters are sometimes lost and replaced by another encoding. Strange... Please check your version, and keep a copy of your translation files, or you will have a bad surprise like me! Regards, -- Benoit Minisini From gambas at ...1... Sun Jan 4 13:08:39 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Jan 2009 13:08:39 +0100 Subject: [Gambas-user] Warning! Translation files may be corrupted In-Reply-To: <200901041220.07798.gambas@...1...> References: <200901041220.07798.gambas@...1...> Message-ID: <200901041308.39586.gambas@...1...> On dimanche 4 janvier 2009, Benoit Minisini wrote: > I have just detected that the IDE is randomly corrupting non-ASCII > characters in the translation files. > > The suspect is the "msgmerge" GNU gettext tool, version 0.17 provided with > Mandriva 2009. This command is used by the IDE each time it opens a > translation file, for merging old translations with the new strings to be > translated. At this time, apparently, UTF-8 characters are sometimes lost > and replaced by another encoding. Strange... > > Please check your version, and keep a copy of your translation files, or > you will have a bad surprise like me! > > Regards, Finally msgmerge is not in cause but myself (I apolog... Ouch!). The fix is in revision #1780. -- Benoit Minisini From kobolds at ...2041... Sun Jan 4 18:54:59 2009 From: kobolds at ...2041... (kobolds) Date: Sun, 4 Jan 2009 09:54:59 -0800 (PST) Subject: [Gambas-user] create gambas component In-Reply-To: <200901041041.52402.gambas@...1...> References: <21271068.post@...1379...> <200901040246.23979.gambas@...1...> <21272347.post@...1379...> <200901041041.52402.gambas@...1...> Message-ID: <21279087.post@...1379...> thanks you're right . after I put in export then it work . I also encounter another bugs in the ide . once it encounter error loading component while opening a project , the whole compiler stop working . I try create syntax error in the code and click compile , the compiler didn't prompt me any error . Benoit Minisini wrote: > > On dimanche 4 janvier 2009, kobolds wrote: >> I using opensuse 11.1 (64 bit) . I download gambas from >> http://download.opensuse.org/repositories/home:/gbvalor/ >> >> I using gambas 2.9 . >> I also try update to 2.10 and recompile but still get the same error >> > > As far as I can guess, you didn't define any exported class in your > component. > > When your project is a component, an hidden ".list" file is automatically > generated by the compiler. This file is a list of all exported classes. > > Without any class exported, this file is not generated, and you get an > error > from the IDE instead of just a warning. > > The fault is in the IDE that should warn you from the beginning that a > component without any exported class cannot do anything and so is useless. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/create-gambas-component-tp21271068p21279087.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Sun Jan 4 20:05:19 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 4 Jan 2009 21:05:19 +0200 Subject: [Gambas-user] Gambas3 compilation problem In-Reply-To: <384d3900812170935h702a7453v736b5dd65dfebf0a@...627...> References: <384d3900812100950j12b2bd9bibb5e7c664d8d483b@...627...> <200812170021.54100.gambas@...1...> <384d3900812170547p7e17b8c9r8034627588a8fb7e@...627...> <200812171457.29830.gambas@...1...> <384d3900812170935h702a7453v736b5dd65dfebf0a@...627...> Message-ID: <384d3900901041105h5dd91134kc129409810ad0611@...627...> Hi! Back from vacation... And new information about my compilation problems. I've done this (@ Ubuntu 8.10 64bit, NOTICE! with libtool 2.2.4): 1. Remove Gamas2.9 with synaptic. 2. Download Gambas2.10.2. 3. Extract it to /usr/src 4. sudo ./configure -C 5. sudo make 6. sudo make install And everything seems to work perfectly! (Except I don't remember where I can find Gambas icon for the shortcut...) So, now I'm planning to send output of compilation to you, but first... I think that command; ( ./configure; make; make install ) > output.txt 2>&1 Isn't right for me. Because I'm very new to linux I'm not sure how to fix it. I think; ( sudo ./configure -C;sudo make;sudo make install ) > output.txt 2>&1 or sudo ( ./configure -C; make; make install ) > output.txt 2>&1 But I prefer to be sure what I'm doing with sudo... so enlighten me. Also I didn't quite understand what that -C does (taken from http://gambas.sourceforge.net/ section "README"). Maybe ./reconf and libtool 2.2.4 doesn't mix well... I don't know, and I still have problems compiling Gambas3, as I explained at previous message. Thank you, and very happy new year to you all !!! Jussi On Wed, Dec 17, 2008 at 7:35 PM, Jussi Lahtinen wrote: >>> That's odd... since I already compiled Gambas2.9 without problems with >>> libtool 2.2.4 ! >> >> Really? Can you send me the full output of the compilation of Gambas 2.9 with >> libtool 2.2.4? If you don't know how to do that, it is explained on the >> website ('Reporting a problem' page). > > Ok, I tried to ./reconf on gambas2.9 source folder, and I got exactly > same errors > than with gambas3 source. > I'm pretty confused right now. > I upgraded Ubuntu 8.04 to 8.10 at 31 Oct 2008. Then I found gambas > and I installed > it from ubuntu repository. I noticed that it is not latest version so > I compiled 2.9 from > source at 19 Nov 2008. So when has libtool version changed? > I assumed libtool 2.2.4 was shipped with Ubuntu 8.10. > So I have no clue which libtool version I really had when I compiled 2.9. > > >> You must download the package first I suppose... > > Hah! Crap... of course. That command doesn't use repositories... > > Ok, I downloaded libtool 1.5. > > Then: > sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_amd64.deb > > Done ok. > > > Then: > svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > > Checked out revision 1742. > > > Then: > ./reconf-all > > And I get these two lines: > > configure.ac: required file `./mkinstalldirs' not found > autoreconf: automake failed with exit status: 1 > > > Jussi > From rterry at ...1946... Sun Jan 4 21:40:52 2009 From: rterry at ...1946... (richard terry) Date: Mon, 5 Jan 2009 07:40:52 +1100 Subject: [Gambas-user] Lets all chip in for a beginner code project Message-ID: <200901050740.52988.rterry@...1946...> As I blunder along finding out how to do simple things, it strikes me these questions are asked over and over again on the list by beginners. Though lots of people can read the doc's and figure out how to do these things, absolute beginners can't and this puts them off programming. Most examples I see tend to be pitched at a higher level then that of an absolute beginner. We could all chip in with examples, and put them into a demo-file akin to the fabulous WxPython demo. To start with I've quickly knocked up this one. I've noticed there have been many such examples posted over the last 12 months. What do others think. I'd be happy to be the organiser of these, and put them in a format that Benoit and others would agree to. regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: Listview_MultiSelect-0.0.1.tar.gz Type: application/x-tgz Size: 26227 bytes Desc: not available URL: From rterry at ...1946... Sun Jan 4 21:50:42 2009 From: rterry at ...1946... (richard terry) Date: Mon, 5 Jan 2009 07:50:42 +1100 Subject: [Gambas-user] More odd IDE problems Message-ID: <200901050750.42280.rterry@...1946...> This one is really weird, I enclose the pictures, but have not been able to reproduce it reliably. Something changed a character in the Form definition of a couple of forms, replacing an integer in Spacing = 2 to Spacing = T on all the occurrences in the form definition. What I'd done is this: I'd compiled 1777 after all my difficulties. It complained saying I needed to re-compile the project which I did. It then decided that panel.backcolour didn't exist as a property, so I changed that to Background and it got past that. It then popped up an error message that 'Bottom' was not found. As the only thing with a Bottom property that I could think of was the tab control I tried to change the orientation of the tab to Bottom in the properties box. This didn't work. So I deleted the tab and put back on a new one which did. I then moved the position of it up the screen a bit and ran the program > the resultant errors about the 'T'. Also in the project components window there was no scroll bar. Really weird. I downgraded. to 1744 my last reliable but will build again today upgrade and see what happens. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: popup_error.png Type: image/png Size: 6874 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Spacing_Error.png Type: image/png Size: 9392 bytes Desc: not available URL: From rterry at ...1946... Sun Jan 4 22:46:38 2009 From: rterry at ...1946... (richard terry) Date: Mon, 5 Jan 2009 08:46:38 +1100 Subject: [Gambas-user] Unkown Symbol Bottom in Class Tabstrip 1784 Message-ID: <200901050846.38685.rterry@...1946...> Note previous post Re-built again and this is the result. This time it would be nice to get some advice how to fix this/reason, etc, without having to re-do my tap strips. Regards Richard From gambas at ...1... Sun Jan 4 23:54:28 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 4 Jan 2009 23:54:28 +0100 Subject: [Gambas-user] More odd IDE problems In-Reply-To: <200901050750.42280.rterry@...1946...> References: <200901050750.42280.rterry@...1946...> Message-ID: <200901042354.28356.gambas@...1...> On dimanche 4 janvier 2009, richard terry wrote: > This one is really weird, I enclose the pictures, but have not been able to > reproduce it reliably. > > Something changed a character in the Form definition of a couple of forms, > replacing an integer in Spacing = 2 to Spacing = T on all the occurrences > in the form definition. > > What I'd done is this: > > I'd compiled 1777 after all my difficulties. It complained saying I needed > to re-compile the project which I did. It then decided that > panel.backcolour didn't exist as a property, so I changed that to > Background and it got past that. It then popped up an error message that > 'Bottom' was not found. > > As the only thing with a Bottom property that I could think of was the tab > control I tried to change the orientation of the tab to Bottom in the > properties box. This didn't work. So I deleted the tab and put back on a > new one which did. I then moved the position of it up the screen a bit and > ran the program > the resultant errors about the 'T'. > > Also in the project components window there was no scroll bar. > > Really weird. > > I downgraded. to 1744 my last reliable but will build again today upgrade > and see what happens. > > Regards > > Richard When using the development version, you should *carefully* read the *entire* changelog of each version. The Spacing property is now a boolean property. In other words, spacing can just be 0 pixel or Desktop.Scale pixels. The Margin property is a new property that is a boolean, and acts a padding of 0 or Desktop.Scale pixels. The old Padding property didn't change, and just adds its effect to the Margin property. You must use the "Update all forms" menu entry in the IDE to automatically update the value of the Spacing property. 0 is replaced by FALSE, and any other value by TRUE. For small spacing like you did (2 pixels), you must find another way of doing what you want: for example, you can use arranging containers and panels for doing arbitrary spacing. I did that to try to force people to do cleanly spaced GUI, and to simplify the most common case of layouting. The second problem is: the TabStrip.Top and TabStrip.Bottom constants were removed. Now TabStrip.Orientation uses Align.Top and Align.Bottom. But the conversion is not automatic, so you must do it by hand. Why that? Because now Gambas 3 checks that, when a symbol is overridden in an inherited class, its type is consistent: a property must stay a property, a method must stay a method. See the new error #63 for the rules in the wiki documentation: http://gambasdoc.org/help/error/override. Gambas 2 don't check anything, so if you go wrong, like I did in TabStrip by overriding the Control Top & Bottom properties by two constants (!), you can easily crash the interpreter. As Gambas 3 should be cleaner than Gambas 2, he does the check, and raises an error when loading the class. The other classes affected by this change are Window and Workspace. The scrollbars that disappeared now came back since revision #1779. Sorry for the inconvenience! But this is the joy you get when using a development version. :-) -- Benoit Minisini From gambas at ...1... Mon Jan 5 00:24:20 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Jan 2009 00:24:20 +0100 Subject: [Gambas-user] Unkown Symbol Bottom in Class Tabstrip 1784 In-Reply-To: <200901050846.38685.rterry@...1946...> References: <200901050846.38685.rterry@...1946...> Message-ID: <200901050024.20345.gambas@...1...> On dimanche 4 janvier 2009, richard terry wrote: > Note previous post > > Re-built again and this is the result. This time it would be nice to get > some advice how to fix this/reason, etc, without having to re-do my tap > strips. > > Regards > > Richard > You must use the "update all forms" menu entry in the IDE for your project. Or open the offending form, change something, and save it back. The old TabStrip.Bottom should be replaced automatically by Align.Bottom. -- Benoit Minisini From gareth at ...1689... Mon Jan 5 17:42:46 2009 From: gareth at ...1689... (Gareth Bult) Date: Mon, 5 Jan 2009 16:42:46 +0000 (GMT) Subject: [Gambas-user] Re; Webcams ... Message-ID: <20644027.290961231173766940.JavaMail.root@...1834...> Hi, I notice that the webcam demo doesn't work for me , I just get a blank screen .. I also notice that the module is called "gb.v4l" and my webcam seems to use "v4l2" in other software where it works fine .. anyone know if this is likely to be why I don't get a picture? (i.e. no v4l2 support in Gambas?) tia Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From jussi.lahtinen at ...626... Mon Jan 5 21:15:48 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 5 Jan 2009 22:15:48 +0200 Subject: [Gambas-user] Gambas3 compilation problem In-Reply-To: <384d3900901041105h5dd91134kc129409810ad0611@...627...> References: <384d3900812100950j12b2bd9bibb5e7c664d8d483b@...627...> <200812170021.54100.gambas@...1...> <384d3900812170547p7e17b8c9r8034627588a8fb7e@...627...> <200812171457.29830.gambas@...1...> <384d3900812170935h702a7453v736b5dd65dfebf0a@...627...> <384d3900901041105h5dd91134kc129409810ad0611@...627...> Message-ID: <384d3900901051215kdf08156l72e734ed4e3f8d27@...627...> Little correction to phase 1, version was 2.7 (from Ubuntu repository), and version 2.9 was removed manually. But that seems not to make any difference..? All version were removed at phase 1. BTW maybe README section should link to http://gambasdoc.org/help/install ? Jussi On Sun, Jan 4, 2009 at 9:05 PM, Jussi Lahtinen wrote: > Hi! > Back from vacation... > And new information about my compilation problems. > I've done this (@ Ubuntu 8.10 64bit, NOTICE! with libtool 2.2.4): > > 1. Remove Gamas2.9 with synaptic. > > 2. Download Gambas2.10.2. > > 3. Extract it to /usr/src > > 4. sudo ./configure -C > > 5. sudo make > > 6. sudo make install > > And everything seems to work perfectly! > (Except I don't remember where I can find Gambas icon for the shortcut...) > > So, now I'm planning to send output of compilation to you, but first... > I think that command; > ( ./configure; make; make install ) > output.txt 2>&1 > Isn't right for me. Because I'm very new to linux I'm not sure how to fix it. > > I think; > ( sudo ./configure -C;sudo make;sudo make install ) > output.txt 2>&1 > or > sudo ( ./configure -C; make; make install ) > output.txt 2>&1 > > But I prefer to be sure what I'm doing with sudo... so enlighten me. > Also I didn't quite understand what that -C does (taken from > http://gambas.sourceforge.net/ section "README"). > > Maybe ./reconf and libtool 2.2.4 doesn't mix well... I don't know, and > I still have problems compiling Gambas3, as > I explained at previous message. > > > Thank you, and very happy new year to you all !!! > > > Jussi > > > > On Wed, Dec 17, 2008 at 7:35 PM, Jussi Lahtinen > wrote: >>>> That's odd... since I already compiled Gambas2.9 without problems with >>>> libtool 2.2.4 ! >>> >>> Really? Can you send me the full output of the compilation of Gambas 2.9 with >>> libtool 2.2.4? If you don't know how to do that, it is explained on the >>> website ('Reporting a problem' page). >> >> Ok, I tried to ./reconf on gambas2.9 source folder, and I got exactly >> same errors >> than with gambas3 source. >> I'm pretty confused right now. >> I upgraded Ubuntu 8.04 to 8.10 at 31 Oct 2008. Then I found gambas >> and I installed >> it from ubuntu repository. I noticed that it is not latest version so >> I compiled 2.9 from >> source at 19 Nov 2008. So when has libtool version changed? >> I assumed libtool 2.2.4 was shipped with Ubuntu 8.10. >> So I have no clue which libtool version I really had when I compiled 2.9. >> >> >>> You must download the package first I suppose... >> >> Hah! Crap... of course. That command doesn't use repositories... >> >> Ok, I downloaded libtool 1.5. >> >> Then: >> sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_amd64.deb >> >> Done ok. >> >> >> Then: >> svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ >> >> Checked out revision 1742. >> >> >> Then: >> ./reconf-all >> >> And I get these two lines: >> >> configure.ac: required file `./mkinstalldirs' not found >> autoreconf: automake failed with exit status: 1 >> >> >> Jussi >> > From gambas at ...1... Mon Jan 5 21:26:15 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Jan 2009 21:26:15 +0100 Subject: [Gambas-user] Gambas3 compilation problem In-Reply-To: <384d3900901051215kdf08156l72e734ed4e3f8d27@...627...> References: <384d3900812100950j12b2bd9bibb5e7c664d8d483b@...627...> <384d3900901041105h5dd91134kc129409810ad0611@...627...> <384d3900901051215kdf08156l72e734ed4e3f8d27@...627...> Message-ID: <200901052126.15910.gambas@...1...> On lundi 5 janvier 2009, Jussi Lahtinen wrote: > > BTW maybe README section should link to http://gambasdoc.org/help/install ? > Done! -- Benoit Minisini From rterry at ...1946... Mon Jan 5 22:25:19 2009 From: rterry at ...1946... (richard terry) Date: Tue, 6 Jan 2009 08:25:19 +1100 Subject: [Gambas-user] Void key on Forms Update Message-ID: <200901060825.19053.rterry@...1946...> Benoit, Had two forms on the update with this error message. BTW will read the changelog today, didn't know I had to do this. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: void_key.png Type: image/png Size: 15643 bytes Desc: not available URL: From rterry at ...1946... Mon Jan 5 22:51:19 2009 From: rterry at ...1946... (richard terry) Date: Tue, 6 Jan 2009 08:51:19 +1100 Subject: [Gambas-user] Void key on Forms Update - sample crashed form In-Reply-To: <200901060825.19053.rterry@...1946...> References: <200901060825.19053.rterry@...1946...> Message-ID: <200901060851.20015.rterry@...1946...> On Tue, 6 Jan 2009 08:25:19 am richard terry wrote: > Benoit, > > Had two forms on the update with this error message. > BTW will read the changelog today, didn't know I had to do this. > > Regards > > Richard There are two forms which fail to load in 1784 (1788 itself compiles but gambas won't run at all). The message involves the same backcolor dosn't exist in label. Ok. But how does one fix this. There is no reference at all to backcolor in the code (its a dummy form I put in as a filler form to be replaced in the future). Yes I can easy just remove the label and replace it, but as the other of my two forms with a similar problem is quite complex, It would be nice to know how to fix it without manually removing and replacing all the labels. I attatch the form/class file which as you can see are essentially empty. -------------- next part -------------- A non-text attachment was scrubbed... Name: FAppointments.class Type: application/x-java Size: 22 bytes Desc: not available URL: -------------- next part -------------- # Gambas Form File 3.0 { Form Form MoveScaled(0,0,68,64) Text = ("") Arrangement = Arrange.Fill { VBox1 VBox MoveScaled(0,1,64,57) { Label1 Label MoveScaled(4,2,56,4) Text = ("Yes, you too could write the appointments module!!!") Border = Border.Plain } { DatePicker1 DatePicker MoveScaled(4,7,55,4) } } } From gambas at ...1... Mon Jan 5 23:06:07 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 5 Jan 2009 23:06:07 +0100 Subject: [Gambas-user] Void key on Forms Update - sample crashed form In-Reply-To: <200901060851.20015.rterry@...1946...> References: <200901060825.19053.rterry@...1946...> <200901060851.20015.rterry@...1946...> Message-ID: <200901052306.07814.gambas@...1...> On lundi 5 janvier 2009, richard terry wrote: > On Tue, 6 Jan 2009 08:25:19 am richard terry wrote: > > Benoit, > > > > Had two forms on the update with this error message. > > BTW will read the changelog today, didn't know I had to do this. > > > > Regards > > > > Richard > > There are two forms which fail to load in 1784 (1788 itself compiles but > gambas won't run at all). The message involves the same backcolor dosn't > exist in label. Ok. But how does one fix this. There is no reference at > all to backcolor in the code (its a dummy form I put in as a filler form to > be replaced in the future). > > Yes I can easy just remove the label and replace it, but as the other of my > two forms with a similar problem is quite complex, It would be nice to know > how to fix it without manually removing and replacing all the labels. > > I attatch the form/class file which as you can see are essentially empty. Just wait a little, I will commit a new revision that should fix your problems. But beware, you will find work in progress in it! -- Benoit Minisini From leonardo at ...1237... Tue Jan 6 17:49:23 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 06 Jan 2009 17:49:23 +0100 Subject: [Gambas-user] Gambas Vs. Gnome 2.24 Message-ID: <49638B93.1070600@...1237...> I still continue to have the same visual problems using Gambas under Gnome 2.24 that I posted some time ago (windows borders that appear even if their property is set to false). Now, with the last 2.10.2, I have another problem (I don't know if it was still present in the previous 2.9): ballon tips in the IDE have been started to show a window border, like in the attached screenshot. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org -------------- next part -------------- A non-text attachment was scrubbed... Name: balloon.jpg Type: image/jpeg Size: 14264 bytes Desc: not available URL: From gambas at ...1... Tue Jan 6 18:00:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 6 Jan 2009 18:00:16 +0100 Subject: [Gambas-user] Gambas Vs. Gnome 2.24 In-Reply-To: <49638B93.1070600@...1237...> References: <49638B93.1070600@...1237...> Message-ID: <200901061800.17125.gambas@...1...> On mardi 6 janvier 2009, Leonardo Miliani wrote: > I still continue to have the same visual problems using Gambas under > Gnome 2.24 that I posted some time ago (windows borders that appear even > if their property is set to false). > Now, with the last 2.10.2, I have another problem (I don't know if it > was still present in the previous 2.9): ballon tips in the IDE have been > started to show a window border, like in the attached screenshot. This is the same problem I think: windows marked as borderless now have a border since Gnome 2.24. I looked in the Gnome changelog, but didn't found anything related to this problem. If you can try the development version, windows have a new property to explain the window manager exactly what kind of window you want: Normal, tool window, popup window, splash screen... Maybe Gnome 2.24 decided to make this property mandatory? I will investigate this problem as soon as I have time. Regards, -- Benoit Minisini From leonardo at ...1237... Tue Jan 6 19:02:46 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Tue, 06 Jan 2009 19:02:46 +0100 Subject: [Gambas-user] Gambas Vs. Gnome 2.24 In-Reply-To: <200901061800.17125.gambas@...1...> References: <49638B93.1070600@...1237...> <200901061800.17125.gambas@...1...> Message-ID: <49639CC6.9000609@...1237...> Benoit Minisini ha scritto: > On mardi 6 janvier 2009, Leonardo Miliani wrote: >> I still continue to have the same visual problems using Gambas under >> Gnome 2.24 that I posted some time ago (windows borders that appear even >> if their property is set to false). >> Now, with the last 2.10.2, I have another problem (I don't know if it >> was still present in the previous 2.9): ballon tips in the IDE have been >> started to show a window border, like in the attached screenshot. > > This is the same problem I think: windows marked as borderless now have a > border since Gnome 2.24. I looked in the Gnome changelog, but didn't found > anything related to this problem. > > If you can try the development version, windows have a new property to explain > the window manager exactly what kind of window you want: Normal, tool window, > popup window, splash screen... > > Maybe Gnome 2.24 decided to make this property mandatory? > > I will investigate this problem as soon as I have time. > > Regards, > I cannot compile the dev version for versions incompatibility of libtool. I will try to compile it when I will solve this issue. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From jussi.lahtinen at ...626... Tue Jan 6 22:08:57 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 6 Jan 2009 23:08:57 +0200 Subject: [Gambas-user] Gambas Vs. Gnome 2.24 In-Reply-To: <49639CC6.9000609@...1237...> References: <49638B93.1070600@...1237...> <200901061800.17125.gambas@...1...> <49639CC6.9000609@...1237...> Message-ID: <384d3900901061308g546c957bxc108353748a253bc@...627...> > I cannot compile the dev version for versions incompatibility of libtool. > I will try to compile it when I will solve this issue. Have I understand correctly... You compiled 2.10.2 successfully with libtool >= 2.0, possibly with libtool 2.2.4..? Ubuntu 8.10 64bit ? I seem to have problems with libtool when trying to compile gambas3. And like you, I have compiled stable versions with no problems. So, I'm very interested if you invent solution to that problem! Jussi From rterry at ...1946... Tue Jan 6 22:13:26 2009 From: rterry at ...1946... (richard terry) Date: Wed, 7 Jan 2009 08:13:26 +1100 Subject: [Gambas-user] Gambas Vs. Gnome 2.24 In-Reply-To: <384d3900901061308g546c957bxc108353748a253bc@...627...> References: <49638B93.1070600@...1237...> <49639CC6.9000609@...1237...> <384d3900901061308g546c957bxc108353748a253bc@...627...> Message-ID: <200901070813.26416.rterry@...1946...> On Wed, 7 Jan 2009 08:08:57 am Jussi Lahtinen wrote: > > I cannot compile the dev version for versions incompatibility of libtool. > > I will try to compile it when I will solve this issue. > > Have I understand correctly... You compiled 2.10.2 successfully with > libtool >= 2.0, > possibly with libtool 2.2.4..? > Ubuntu 8.10 64bit ? > I seem to have problems with libtool when trying to compile gambas3. > And like you, I have compiled stable versions with no problems. > So, I'm very interested if you invent solution to that problem! > > > Jussi > probably of no use to you, but on my ARCH linux system gambas svn up to latest version 1789 compiles ok with libtool 2.2.6a-1 Richard From kobolds at ...2041... Wed Jan 7 04:39:28 2009 From: kobolds at ...2041... (kobolds) Date: Tue, 6 Jan 2009 19:39:28 -0800 (PST) Subject: [Gambas-user] align item center form Message-ID: <21324301.post@...1379...> where is the align item to center of the form . I see align left ,right, bottom and top but couldn't find align vertical center and align horizontal center . -- View this message in context: http://www.nabble.com/align-item-center-form-tp21324301p21324301.html Sent from the gambas-user mailing list archive at Nabble.com. From rterry at ...1946... Wed Jan 7 05:49:07 2009 From: rterry at ...1946... (richard terry) Date: Wed, 7 Jan 2009 15:49:07 +1100 Subject: [Gambas-user] align item center form In-Reply-To: <21324301.post@...1379...> References: <21324301.post@...1379...> Message-ID: <200901071549.07498.rterry@...1946...> On Wed, 7 Jan 2009 02:39:28 pm kobolds wrote: > where is the align item to center of the form . I see align left ,right, > bottom and top but couldn't find align vertical center and align > horizontal center . What are you trying to align where? Sounds like you should be putting something insize a container. Give us some code to go on or a better description. Regards richard From smccuan at ...626... Wed Jan 7 06:00:50 2009 From: smccuan at ...626... (Shawn McCuan) Date: Wed, 07 Jan 2009 00:00:50 -0500 Subject: [Gambas-user] align item center form In-Reply-To: <200901071549.07498.rterry@...1946...> References: <21324301.post@...1379...> <200901071549.07498.rterry@...1946...> Message-ID: <49643702.2050007@...626...> richard terry wrote: > On Wed, 7 Jan 2009 02:39:28 pm kobolds wrote: > >> where is the align item to center of the form . I see align left ,right, >> bottom and top but couldn't find align vertical center and align >> horizontal center . >> > > What are you trying to align where? Sounds like you should be putting > something insize a container. > > Give us some code to go on or a better description. > > Regards > > richard > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > I think he's talking about centering the entire form on the screen. From kobolds at ...2041... Wed Jan 7 06:44:11 2009 From: kobolds at ...2041... (kobolds) Date: Tue, 6 Jan 2009 21:44:11 -0800 (PST) Subject: [Gambas-user] align item center form In-Reply-To: <49643702.2050007@...626...> References: <21324301.post@...1379...> <200901071549.07498.rterry@...1946...> <49643702.2050007@...626...> Message-ID: <21325315.post@...1379...> Nope I not talking about center the form on screen . in visualstudio there's function call center in form (horizontal /vertical) . I talking about that one . this is quite common ide function for align items . I couldn't find it on gambas .is this function replace by something else? Shawn McCuan wrote: > > richard terry wrote: >> On Wed, 7 Jan 2009 02:39:28 pm kobolds wrote: >> >>> where is the align item to center of the form . I see align left ,right, >>> bottom and top but couldn't find align vertical center and align >>> horizontal center . >>> >> >> What are you trying to align where? Sounds like you should be putting >> something insize a container. >> >> Give us some code to go on or a better description. >> >> Regards >> >> richard >> >> >> ------------------------------------------------------------------------------ >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > I think he's talking about centering the entire form on the screen. > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://www.nabble.com/align-item-center-form-tp21324301p21325315.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Wed Jan 7 09:19:37 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 7 Jan 2009 00:19:37 -0800 (PST) Subject: [Gambas-user] re turn value from a form Message-ID: <21326643.post@...1379...> in order to get return value from a form , I create a variable in the form in ftest public retun_value as boolean =false public sub btnOK_click() return_value = true me.close end public sub btncancel_click() return_value = false me.close end -------------------------------- from Fmain public sub btnTest_click() dim m_ftest = new ftest m_ftest.showmodal if m_ftest.return_value = false then ...... endif end when I run I get error object not found on "if m_ftest.return_value = false then" . my guess is after the ftest close , the ref memory also gone . this shouldn't be happen like this right ? -- View this message in context: http://www.nabble.com/return-value-from-a-form-tp21326643p21326643.html Sent from the gambas-user mailing list archive at Nabble.com. From doriano.blengino at ...1909... Wed Jan 7 13:13:03 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 07 Jan 2009 13:13:03 +0100 Subject: [Gambas-user] re turn value from a form In-Reply-To: <21326643.post@...1379...> References: <21326643.post@...1379...> Message-ID: <49649C4F.1020702@...1909...> kobolds ha scritto: > in order to get return value from a form , I create a variable in the form > > in ftest > public retun_value as boolean =false > > public sub btnOK_click() > return_value = true > me.close > end > > public sub btncancel_click() > return_value = false > me.close > end > > -------------------------------- > from Fmain > public sub btnTest_click() > dim m_ftest = new ftest > m_ftest.showmodal > if m_ftest.return_value = false then > ...... > endif > end > > when I run I get error object not found on "if m_ftest.return_value = false > then" . my guess is after the ftest close , the ref memory also gone . this > shouldn't be happen like this right ? > You are right - the form (better, the instance of the class) has gone. There are three solutions. 1) Read the documentation. ShowModal() can return a value, which is the one passed to FTest.Close(). It has some limitations (if you close the form using the "X" button, this value will be 0, if I well remember). This should be the canonical solution. 2) Don't know if it works. You could make *two* references to ftest (ref1=new ftest; ref2=ref1). When the form closes, there is still a reference; don't know what precisely do a form when it closes. On other platforms, a Close() simply hides the form, so this method works, but with gambas Close() normally destroys the form, so who knows what happens? This is a dirty solution. 3) Don't know if it works either. You could use Visible=False in FTest, instead of closing it. Again, on other platforms this works. The form is not destroyed and, if gambas is smart enough, it understands that a hidden form can not be modal. Ciao, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From eilert-sprachen at ...221... Wed Jan 7 13:49:02 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 07 Jan 2009 13:49:02 +0100 Subject: [Gambas-user] re turn value from a form In-Reply-To: <21326643.post@...1379...> References: <21326643.post@...1379...> Message-ID: <4964A4BE.6020505@...221...> kobolds schrieb: > in order to get return value from a form , I create a variable in the form > > in ftest > public retun_value as boolean =false > > public sub btnOK_click() > return_value = true > me.close > end > > public sub btncancel_click() > return_value = false > me.close > end > > -------------------------------- > from Fmain > public sub btnTest_click() > dim m_ftest = new ftest > m_ftest.showmodal > if m_ftest.return_value = false then > ...... > endif > end > > when I run I get error object not found on "if m_ftest.return_value = false > then" . my guess is after the ftest close , the ref memory also gone . this > shouldn't be happen like this right ? > > Why don't you do it just the other way round: Make a public variable in FMain, write the value into it from ftest before it's closed, so the value will still be in the variable within FMain after closing. Or did I get you wrong somehow? This way: ' in ftest: public sub btnOK_click() FMain.return_value = true me.close end public sub btncancel_click() FMain.return_value = false me.close end > > -------------------------------- ' in FMain public retun_value as boolean =false public sub btnTest_click() dim m_ftest = new ftest m_ftest.showmodal if return_value = false then ...... endif end From david_villalobos_c at ...43... Wed Jan 7 14:50:33 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Wed, 7 Jan 2009 05:50:33 -0800 (PST) Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now Message-ID: <271634.59504.qm@...1656...> Hi Benoit, did you have time to take a look at this? Regards -- David ----- Original Message ---- From: David Villalobos Cambronero To: Gambas Ingl?s Sent: Friday, January 2, 2009 10:09:23 AM Subject: Error on gb.db.mysql: Commands out of sync; you can't run this command now Hi Benoit & All, I think I found an error en the gb.db.mysql component. It is related with this error message: Commands out of sync; you can't run this command now. See the attached example See the following link: http://dev.mysql.com/doc/refman/5.0/en/commands-out-of-sync.html Mandriva 2009.1 64 Bits & KDE & mysql 5.0.51a & Gambas 3 r1745 Best regards David -------------- next part -------------- A non-text attachment was scrubbed... Name: Error.MySQL-0.0.1.tar.gz Type: application/x-gzip Size: 8711 bytes Desc: not available URL: From lord.quo at ...626... Wed Jan 7 20:50:33 2009 From: lord.quo at ...626... (Daniel Rojas) Date: Wed, 7 Jan 2009 13:50:33 -0600 Subject: [Gambas-user] Question about ODBC drivers Message-ID: <1e1dd3c30901071150sb36be2bkfb39b9f9854ed3a0@...627...> Hi all, I'm newbie in Gambas. I use Ubuntu 8.10 and I connect to a IBM Redbrick Warehouse database with an JDBC driver. I didn't found any ODBC driver for Redbrick on Linux. Anybody knowns is there is an ODBC driver that connects to an JDBC driver? Sorry my english. Regards. Daniel Quintero From rterry at ...1946... Wed Jan 7 21:45:56 2009 From: rterry at ...1946... (richard terry) Date: Thu, 8 Jan 2009 07:45:56 +1100 Subject: [Gambas-user] align item center form In-Reply-To: <21325315.post@...1379...> References: <21324301.post@...1379...> <49643702.2050007@...626...> <21325315.post@...1379...> Message-ID: <200901080745.56536.rterry@...1946...> On Wed, 7 Jan 2009 04:44:11 pm kobolds wrote: > Nope I not talking about center the form on screen . in visualstudio > there's function call center in form (horizontal /vertical) . I talking > about that one . this is quite common ide function for align items > > I couldn't find it on gambas .is this function replace by something else? Again, if you told us what you want to achieve it may help. Send me a picture of what you want it to look like from a screen dump from your visual whatver. Forms are often quite complex things visually, made up of many dozens of component. I'd use QT rather than GTK if you are designing things. The Gambase IDE visually designer is simply brilliant. Get your head around containers, spacing and padding and you can pretty much do anything you want. I've used a number of languages and I've never found an easier design paradigm than gambas uses. Again, as I said, send me a screen dump of what you want it to look like from your previous language and I'll see what I can do. Regards Richard > > Shawn McCuan wrote: > > richard terry wrote: > >> On Wed, 7 Jan 2009 02:39:28 pm kobolds wrote: > >>> where is the align item to center of the form . I see align left > >>> ,right, bottom and top but couldn't find align vertical center and > >>> align horizontal center . > >> > >> What are you trying to align where? Sounds like you should be putting > >> something insize a container. > >> > >> Give us some code to go on or a better description. > >> > >> Regards > >> > >> richard > >> > >> > >> ------------------------------------------------------------------------ > >>------ Check out the new SourceForge.net Marketplace. > >> It is the best place to buy or sell services for > >> just about anything Open Source. > >> http://p.sf.net/sfu/Xq1LFB > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > I think he's talking about centering the entire form on the screen. > > ------------------------------------------------------------------------- > >----- Check out the new SourceForge.net Marketplace. > > It is the best place to buy or sell services for > > just about anything Open Source. > > http://p.sf.net/sfu/Xq1LFB > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Wed Jan 7 21:59:24 2009 From: rterry at ...1946... (richard terry) Date: Thu, 8 Jan 2009 07:59:24 +1100 Subject: [Gambas-user] Badly Overridden form Message-ID: <200901080759.24748.rterry@...1946...> Mm................ Last couple of upgrades one of my forms won't load - despite being structurally similar to all the others, I get the error message in the picture. Any ideas appreciated. Version 1790 and a few below. Regards Richard -------------- next part -------------- A non-text attachment was scrubbed... Name: overrideen_form.png Type: image/png Size: 19993 bytes Desc: not available URL: From doriano.blengino at ...1909... Wed Jan 7 23:31:55 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Wed, 07 Jan 2009 23:31:55 +0100 Subject: [Gambas-user] align item center form In-Reply-To: <200901080745.56536.rterry@...1946...> References: <21324301.post@...1379...> <49643702.2050007@...626...> <21325315.post@...1379...> <200901080745.56536.rterry@...1946...> Message-ID: <49652D5B.9050609@...1909...> richard terry ha scritto: > On Wed, 7 Jan 2009 04:44:11 pm kobolds wrote: > >> Nope I not talking about center the form on screen . in visualstudio >> there's function call center in form (horizontal /vertical) . I talking >> about that one . this is quite common ide function for align items >> >> I couldn't find it on gambas .is this function replace by something else? >> > > Again, if you told us what you want to achieve it may help. Send me a picture > of what you want it to look like from a screen dump from your visual whatver. > > > Forms are often quite complex things visually, made up of many dozens of > component. I'd use QT rather than GTK if you are designing things. The > Gambase IDE visually designer is simply brilliant. > I think he wants to center a gadget on the form, like you do in a word processor (center text). This is possible in gambas, but it is not straightforward. I think want he is searching for (an easy way to keep something in the center of something else), is not possible. The gambas IDE designer is good, but not "simply brilliant". There are several way to design geometry managers, what gambas has choosed is simply one among them. Tk has three geometry managers, and at least one of them (pack) is coherent and powerful. Other systems has the concept of Anchors, a nice feature that is often handy. The system gambas uses is good but not perfect and, for me and perhaps others (like our friend), it can be difficult to understand. In addition to use containers, one could also use code in event handlers (resize and arrange events), and do "manually" whatever he wants. -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From pokerbirch at ...1601... Thu Jan 8 04:03:59 2009 From: pokerbirch at ...1601... (birchy) Date: Wed, 7 Jan 2009 19:03:59 -0800 (PST) Subject: [Gambas-user] gb.net.curl - HttpClient - libcurl specs? Message-ID: <21345055.post@...1379...> I have recently decided to give Gambas a second chance, having been very disappointed by it's lack of documentation. Most of my apps are reliant on high speed internet transactions, so the gb.net.curl component is of particular interest. Whilst away from Gambas, i have been using Python. The PyCurl library is basically a wrapper for the libcurl library. I believe that Gambas' HttpClient is also a CURL wrapper? Now under curl (and pycurl), there is a 'setopt' attribute. Of these, there are 2 of great interest: ______________________________________________________________ setopt(pycurl.COOKIEFILE, "") # enables automatic cookie handling setopt(pycurl.ENCODING, 'gzip') # enables automatic gzip handling ______________________________________________________________ Are these available in the Gambas component? -- View this message in context: http://www.nabble.com/gb.net.curl---HttpClient---libcurl-specs--tp21345055p21345055.html Sent from the gambas-user mailing list archive at Nabble.com. From leo_senpao at ...1541... Thu Jan 8 06:02:12 2009 From: leo_senpao at ...1541... (Leo Sendra) Date: Thu, 8 Jan 2009 13:02:12 +0800 (SGT) Subject: [Gambas-user] Ask About POS Programming using Gambas Message-ID: <719148.67184.qm@...2042...> Hi all, I have a problem with my POS program. I have printed a receipt through /dev/lp0. It works. But, when I want to execute a cut paper command, an error occurs. It says that /dev/lp0 is busy. I know that the printer is still printing when I execute a cut paper command. So, how to handle this error? I think, the solution is I have to execute a cut paper command after the printer stop printing. But, I don't understand the code. So, how the codes??? Help me please... Thanks for your help... Berbagi foto Flickr dengan teman di dalam Messenger. Jelajahi Yahoo! Messenger yang serba baru sekarang! http://id.messenger.yahoo.com From charles at ...1784... Thu Jan 8 07:59:55 2009 From: charles at ...1784... (charlesg) Date: Wed, 7 Jan 2009 22:59:55 -0800 (PST) Subject: [Gambas-user] Ask About POS Programming using Gambas In-Reply-To: <719148.67184.qm@...2042...> References: <719148.67184.qm@...2042...> Message-ID: <21346777.post@...1379...> Hi, I guess it is because you are printing to a raw device (/dev/lp0) which has no buffering. Two paths for you to follow: Install (and probably modify) a printer driver such as 'generic' through CUPS. This will introduce a buffer to the printing process. or Use a (very) un-subtle workaround: trap the error. Loop on a 0.5 sec (or whatever) delay and try again. I call it the Stalinist approach. Its a bit like getting people to continually vote on a constitution until they get the right answer. rgds -- View this message in context: http://www.nabble.com/Ask-About-POS-Programming-using-Gambas-tp21345920p21346777.html Sent from the gambas-user mailing list archive at Nabble.com. From kobolds at ...2041... Thu Jan 8 08:41:31 2009 From: kobolds at ...2041... (kobolds) Date: Wed, 7 Jan 2009 23:41:31 -0800 (PST) Subject: [Gambas-user] change row height in listview Message-ID: <21347121.post@...1379...> how do I change the row height in listview ? I try change the the font . it work but look ugly . any other way ? I try to set listview1.item.height = 30 , but get error null object . couldn't find any help for that property also. -- View this message in context: http://www.nabble.com/change-row-height-in-listview-tp21347121p21347121.html Sent from the gambas-user mailing list archive at Nabble.com. From eilert-sprachen at ...221... Thu Jan 8 10:30:22 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 08 Jan 2009 10:30:22 +0100 Subject: [Gambas-user] Two minor "bugs" Message-ID: <4965C7AE.8030501@...221...> Hi everyone! When converting one of my apps from Gambas1 to Gambas2, I found 2 minor items: 1. The status of Tool Box Collection is not saved and always starts as "switched off" when starting the Gambas2 IDE. But maybe this is wanted? 2. The last (rightmost) column of a TableView is stretched to the ultimate width of the tableview and ignores if a Width value is given for it. Well, it just looks sort of ugly, but I found it worth mentioning anyway. Have a nice day! Rolf From eilert-sprachen at ...221... Thu Jan 8 11:44:20 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 08 Jan 2009 11:44:20 +0100 Subject: [Gambas-user] How to read keys from a TreeView in Gambas2? Message-ID: <4965D904.3080702@...221...> Proceeding to convert a Gambas1 app to Gambas2, I found that reading key values or stepping through the values is different now. The TreeView shows names of persons sorted under groups/classes/filters sorted under years sorted under a root header, in brief: Root1 2004 2005 2006 Group1 Group2 <-- Cursor John Benoit Michael Rolf Group3 2007 2008 Root2 What I want is when the cursor is on Group2 and I call my function, it expands and reads all keys of the names within this group. This is the code in Gambas1: baum.Current.Expanded = TRUE namenKeys.Clear FOR i = 1 TO baum.Current.Children baum.Item.MoveBelow IF Left$(baum.Item.Key, 1) = "#" THEN namenKeys.Add(baum.Item.Key) ELSE BREAK END IF NEXT "baum" is the TreeView, "namenKeys" is an array that should return the keys which were found. The idea was to read the keys either up to the number of children or until the next key doesn't have a "#". This doesn't run in Gambas2 this way, but I didn't find a way to make it run. MoveBelow doesn't seem to exist anymore (Gambas2 won't show an error, however), and I tried any possible combination of using MoveAfter() with Item and Current, but to no avail. So, can anybody help here? Thanks so much! Rolf From simonart.dominique at ...11... Thu Jan 8 18:59:55 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Thu, 08 Jan 2009 18:59:55 +0100 Subject: [Gambas-user] Alignment or Gridview problem? Message-ID: <49663F1B.8040108@...11...> Hi everybody, Happy new year, ... Here are two little screen captures to show my problem. In the Bad.png, look at the width of the Gridview, that ends with +64 In the Good.png, look the same line that ends with +65. This is the unique difference, but what a different effect! In fact, I don't need the extra width at all. If you change Align.Center by Align.Left, all is OK with +2 (it doesn't work with Align.Right however) In case you want to test, I add the whole project below (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8) ' Gambas class file PUBLIC SUB _new() END PUBLIC SUB Form_Open() DIM i, j AS Integer WITH GridView1 .X = 2 .Y = 2 .Columns.Count = 3 .Rows.Count = 10 .Columns.Width = 40 .Rows.Height = 25 .Width = .Columns.Count * .Columns.Width + 64 .Height = .Rows.Count * .Rows.Height + 2 FOR i = 0 TO 9 FOR j = 0 TO 2 GridView1[i, j].Alignment = Align.Center GridView1[i, j].Text = Hex$(i, 2) & "." & Hex$(j, 2) NEXT NEXT END WITH END PUBLIC SUB mnuQuitter_Click() ME.Close END Thanks for any help Dominique Simonart -------------- next part -------------- A non-text attachment was scrubbed... Name: Bad.png Type: image/png Size: 37340 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Good.png Type: image/png Size: 38386 bytes Desc: not available URL: From jj at ...1636... Thu Jan 8 22:22:19 2009 From: jj at ...1636... (jose julio vidal) Date: Thu, 08 Jan 2009 22:22:19 +0100 Subject: [Gambas-user] Ask About POS Programming using Gambas In-Reply-To: <719148.67184.qm@...2042...> References: <719148.67184.qm@...2042...> Message-ID: <1231449739.7769.2.camel@...2028...> Hi! my code: .... DIM hFile AS File DIM txt AS String txt=Chr$(&H1B) & "m" & Chr$(49) & Chr$(0) 'corte papel parcial TRY hFile = OPEN "/dev/lp0" FOR WRITE WRITE #hfile, txt IF ERROR THEN message.Error("No se puede acceder a la Impresora") ELSE END IF .... regards El jue, 08-01-2009 a las 13:02 +0800, Leo Sendra escribi?: > Hi all, > > I have a problem with my POS program. I have printed a receipt through /dev/lp0. It works. > But, when I want to execute a cut paper command, an error occurs. It says that /dev/lp0 is busy. > I know that the printer is still printing when I execute a cut paper command. > So, how to handle this error? > I think, the solution is I have to execute a cut paper command after the printer stop printing. But, I don't understand the code. > > So, how the codes??? Help me please... > > > Thanks for your help... > > > > Berbagi foto Flickr dengan teman di dalam Messenger. Jelajahi Yahoo! Messenger yang serba baru sekarang! http://id.messenger.yahoo.com > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Jan 9 08:48:05 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 9 Jan 2009 08:48:05 +0100 Subject: [Gambas-user] Re; Webcams ... In-Reply-To: <20644027.290961231173766940.JavaMail.root@...1834...> References: <20644027.290961231173766940.JavaMail.root@...1834...> Message-ID: <6324a42a0901082348j72bca9e2ted194ad63524b457@...627...> I've recently have the same problem ! Fabien 2009/1/5 Gareth Bult : > Hi, > > I notice that the webcam demo doesn't work for me , I just get a blank screen .. I also notice that the module is called "gb.v4l" and my webcam seems to use "v4l2" in other software where it works fine .. anyone know if this is likely to be why I don't get a picture? (i.e. no v4l2 support in Gambas?) > > tia > > Gareth. > > -- > Managing Director, Encryptec Limited > Tel: 0845 5082719, Mob: 0785 3305393 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Jan 9 08:50:32 2009 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 9 Jan 2009 08:50:32 +0100 Subject: [Gambas-user] change row height in listview In-Reply-To: <21347121.post@...1379...> References: <21347121.post@...1379...> Message-ID: <6324a42a0901082350s5c6d33afs8ec080e096f121fd@...627...> 2009/1/8 kobolds : > > how do I change the row height in listview ? > I try change the the font . it work but look ugly . any other way ? > > I try to set listview1.item.height = 30 , but get error null object . Item represent the current internal selected item... You must have items, and select it... or use a key ListView["mykey"].height = 30 > couldn't find any help for that property also. > -- > View this message in context: http://www.nabble.com/change-row-height-in-listview-tp21347121p21347121.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pokerbirch at ...1601... Fri Jan 9 09:12:16 2009 From: pokerbirch at ...1601... (birchy) Date: Fri, 9 Jan 2009 00:12:16 -0800 (PST) Subject: [Gambas-user] gb.net.curl - HttpClient - libcurl specs? In-Reply-To: <21345055.post@...1379...> References: <21345055.post@...1379...> Message-ID: <21367906.post@...1379...> anyone? -- View this message in context: http://www.nabble.com/gb.net.curl---HttpClient---libcurl-specs--tp21345055p21367906.html Sent from the gambas-user mailing list archive at Nabble.com. From gareth at ...1689... Fri Jan 9 11:13:28 2009 From: gareth at ...1689... (Gareth Bult) Date: Fri, 9 Jan 2009 10:13:28 +0000 (GMT) Subject: [Gambas-user] Re; Webcams ... In-Reply-To: <6324a42a0901082348j72bca9e2ted194ad63524b457@...627...> Message-ID: <5363541.310681231496008352.JavaMail.root@...1834...> Ok, It's an "issue" with the gb.v4l module and what it expects to see from the camera. I'm using a logitech QuickCam 4000 which doesn't seem to fall within it's current criteria. I've made a couple of mods and now get a picture (after a fashion), just working on an output filter now .. with any luck I may have a patch later today ... Gareth. ----- Original Message ----- From: "Fabien Bodard" To: "mailing list for gambas users" Sent: Friday, 9 January, 2009 7:48:05 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Re; Webcams ... I've recently have the same problem ! Fabien 2009/1/5 Gareth Bult : > Hi, > > I notice that the webcam demo doesn't work for me , I just get a blank screen .. I also notice that the module is called "gb.v4l" and my webcam seems to use "v4l2" in other software where it works fine .. anyone know if this is likely to be why I don't get a picture? (i.e. no v4l2 support in Gambas?) > > tia > > Gareth. > > -- > Managing Director, Encryptec Limited > Tel: 0845 5082719, Mob: 0785 3305393 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From diego at ...1942... Fri Jan 9 19:34:52 2009 From: diego at ...1942... (=?ISO-8859-1?Q?Diego_Fern=E1ndez?=) Date: Fri, 09 Jan 2009 12:34:52 -0600 Subject: [Gambas-user] Datepicker inside a frame bug In-Reply-To: <5363541.310681231496008352.JavaMail.root@...1834...> References: <5363541.310681231496008352.JavaMail.root@...1834...> Message-ID: <496798CC.2030301@...1942...> hi ppl, i think i have found a bug, System: Ubuntu8.10 Gambas version 3 revision 1794 In old projects when trying to update all forms, i get a window with this error, It is not posible to safe file path_to_form_here Void key (FForm.SaveOne.771) Tryng to fix it i realise its a problem with a frame component and a datepicker. You can recreate the problem like this, new project, insert a frame and then insert a datepicker inside the frame and try to run the app you get the same error. And also too, when you just insert a datepicker into a form, the form gets the same error but instead of 771 it says 730 please confirm or let me know what i am doing wrong. Thanks PD: Atach two shots of the error i get. -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot5.png Type: image/png Size: 14284 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot6.png Type: image/png Size: 13900 bytes Desc: not available URL: From nando_f at ...951... Fri Jan 9 23:06:47 2009 From: nando_f at ...951... (nando) Date: Fri, 9 Jan 2009 17:06:47 -0500 Subject: [Gambas-user] Ask About POS Programming using Gambas In-Reply-To: <1231449739.7769.2.camel@...2028...> References: <719148.67184.qm@...2042...> <1231449739.7769.2.camel@...2028...> Message-ID: <20090109215112.M16379@...951...> Here is a suggestion and is what I do: (I use ver 1.17) Make a TIMER which is only for printing to the printer. It is set for 1 second and all it does is try to print chars to the printer. When an error condition comes up, it won't print until the next second. Works ok for me. I have a global String var called 'pr'. This is what is sent to the printer. Anywhere in any class at anytime, I can do something like pr &= "This is a new line & cr & lf when the timer fires, it tries to print some chars example something like...(not syntatically correct shown here) Sub Timer(OPTIONAL s) 'I can pass string 's' in to 'add to 'pr' and attempt print immediately DIM a AS STRING if len(s)>0 then pr &=s 'append optional s to pr if len(pr) = 0 then return 'pr has nothing..just exit 'try to print some chars 'TRY open...I have my printer open always from program start if ERROR=0 then while len(pr)>0 AND ERROR=0 a = left$(pr,20) 'I try printing 20 chars at a time TRY WRITE #hfile, a, len(a) if error=0 then 'no error, reduce pr pr=right$(pr,len(pr)-len(a) endif wend endif ERROR.clear 'TRY close end sub ---------- Original Message ----------- From: jose julio vidal To: mailing list for gambas users Sent: Thu, 08 Jan 2009 22:22:19 +0100 Subject: Re: [Gambas-user] Ask About POS Programming using Gambas > Hi! > > my code: > > .... > DIM hFile AS File > DIM txt AS String > txt=Chr$(&H1B) & "m" & Chr$(49) & Chr$(0) 'corte papel parcial > TRY hFile = OPEN "/dev/lp0" FOR WRITE > WRITE #hfile, txt > IF ERROR THEN > message.Error("No se puede acceder a la Impresora") > ELSE > END IF > .... > > regards > > El jue, 08-01-2009 a las 13:02 +0800, Leo Sendra escribi?: > > Hi all, > > > > I have a problem with my POS program. I have printed a receipt through /dev/lp0. It works. > > But, when I want to execute a cut paper command, an error occurs. It says that /dev/lp0 is busy. > > I know that the printer is still printing when I execute a cut paper command. > > So, how to handle this error? > > I think, the solution is I have to execute a cut paper command after the printer stop printing. But, I don't understand the code. > > > > So, how the codes??? Help me please... > > > > > > Thanks for your help... > > > > > > > > Berbagi foto Flickr dengan teman di dalam Messenger. Jelajahi Yahoo! Messenger yang serba baru sekarang! http://id.messenger.yahoo.com > > ------------------------------------------------------------------------------ > > Check out the new SourceForge.net Marketplace. > > It is the best place to buy or sell services for > > just about anything Open Source. > > http://p.sf.net/sfu/Xq1LFB > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jguardon at ...2035... Sat Jan 10 17:21:37 2009 From: jguardon at ...2035... (Jesus Guardon) Date: Sat, 10 Jan 2009 08:21:37 -0800 (PST) Subject: [Gambas-user] ListView item coloring Message-ID: <21389683.post@...1379...> Happy New Year 2009 Quick question: Is there any way to coloring each individual item in a listview? No such property in this class, but I wonder if it should be implemented in an inherited control. If so, I have no clues where to begin. Something like this: listview.Add(key as String, text as String, [color as Color, Picture as Picture, after as String])as Object... defaulting color to Black if not specified. My listview is adding items from a telnet socket, line by line, and depending on its contents, they should be colored properly. At the same time, it needs to limit the number of items to, let say 200, so I check to delete the first item on every update. Double clicking on an item, returns its text to perform other routines. I've managed this with a gridview, but when there are a lot of rows, it turns very slow and flickering (because adding and removing rows dynamically), so would be nice -and pretty fast- to have this feature in a listview. In the other hand, I think textedit and editor have not functionalities to return a whole line text, or accesing an specific line index (at least textedit) and using editor would be a waste of resources. Any help is appreciated. Jesus Guardon Gambas 2.9 - Ubuntu 8.10 - AMD Athlon 64 3000+ 2Gb RAM -- View this message in context: http://www.nabble.com/ListView-item-coloring-tp21389683p21389683.html Sent from the gambas-user mailing list archive at Nabble.com. From 5t3c7w4r at ...1092... Sat Jan 10 19:20:43 2009 From: 5t3c7w4r at ...1092... (A Person) Date: Sat, 10 Jan 2009 14:50:43 -0330 Subject: [Gambas-user] Maybe some fix needed Message-ID: <4968E6FB.2080601@...1092...> Hello Using 2.8.2 on Mint. Steps to Reproduce: - Create small picturebox and add self-made icon image from img directory - don't like icon image's look so go back and refine with editor and resave Problem: - cannot get gambas to reload new image, always seems to show before image - refresh doesn't seem to pull up the newer image Work Around: - change to another image - then reload old (newer) image for someone's attention pmb From gambas at ...1... Sat Jan 10 23:03:25 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 23:03:25 +0100 Subject: [Gambas-user] re turn value from a form In-Reply-To: <49649C4F.1020702@...1909...> References: <21326643.post@...1379...> <49649C4F.1020702@...1909...> Message-ID: <200901102303.25479.gambas@...1...> On mercredi 7 janvier 2009, Doriano Blengino wrote: > kobolds ha scritto: > > in order to get return value from a form , I create a variable in the > > form > > > > in ftest > > public retun_value as boolean =false > > > > public sub btnOK_click() > > return_value = true > > me.close > > end > > > > public sub btncancel_click() > > return_value = false > > me.close > > end > > > > -------------------------------- > > from Fmain > > public sub btnTest_click() > > dim m_ftest = new ftest > > m_ftest.showmodal > > if m_ftest.return_value = false then > > ...... > > endif > > end > > > > when I run I get error object not found on "if m_ftest.return_value = > > false then" . my guess is after the ftest close , the ref memory also > > gone . this shouldn't be happen like this right ? > > You are right - the form (better, the instance of the class) has gone. > There are three solutions. > > 1) Read the documentation. ShowModal() can return a value, which is the > one passed to FTest.Close(). > It has some limitations (if you close the form using the "X" button, > this value will be 0, if I well remember). > This should be the canonical solution. > > 2) Don't know if it works. You could make *two* references to ftest > (ref1=new ftest; ref2=ref1). When the form closes, there is still a > reference; don't know what precisely do a form when it closes. On other > platforms, a Close() simply hides the form, so this method works, but > with gambas Close() normally destroys the form, so who knows what > happens? This is a dirty solution. The Persistent property of a form will tell if the Close() method just hides it, or destroys it. When a form is destroyed, the associated Gambas object is not necessarily destroyed (if you have references on it in a variable), but it becomes invalid. You can't use it anymore! But if you use static public variables, you will be able to access them, as if the form object is invalid, the class object of the form that holds the static variable is usable. When your form is actually a dialog box, you will use one of them at the same time. Your form class is a "singleton", i.e. you have only one instance of them. So using static variables is perfectly logical. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 10 22:51:07 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 22:51:07 +0100 Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now In-Reply-To: <271634.59504.qm@...1656...> References: <271634.59504.qm@...1656...> Message-ID: <200901102251.07921.gambas@...1...> On mercredi 7 janvier 2009, David Villalobos Cambronero wrote: > Hi Benoit, did you have time to take a look at this? > > Regards > > > -- > David > Not really. I never encountered this error myself in all my MySQL life. By using the "DB.Debug = TRUE" feature, can't you have a dump of all SQL requests sent to the database driver? This way you could easily see if the requests sent are really bad, or if you did a bug in the gambas part of gb.db.mysql, or if I did a bug in the C part, or if there is a bug in MySQL (possible!) Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 10 23:09:34 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 23:09:34 +0100 Subject: [Gambas-user] gb.net.curl - HttpClient - libcurl specs? In-Reply-To: <21367906.post@...1379...> References: <21345055.post@...1379...> <21367906.post@...1379...> Message-ID: <200901102309.34836.gambas@...1...> On vendredi 9 janvier 2009, birchy wrote: > anyone? I am sure that there is a Cookie property for handling cookie. For gzip, I don't know. But it could be easily added if it is really just an option to set. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 10 23:11:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 23:11:16 +0100 Subject: [Gambas-user] change row height in listview In-Reply-To: <6324a42a0901082350s5c6d33afs8ec080e096f121fd@...627...> References: <21347121.post@...1379...> <6324a42a0901082350s5c6d33afs8ec080e096f121fd@...627...> Message-ID: <200901102311.16047.gambas@...1...> On vendredi 9 janvier 2009, Fabien Bodard wrote: > 2009/1/8 kobolds : > > how do I change the row height in listview ? > > I try change the the font . it work but look ugly . any other way ? > > > > I try to set listview1.item.height = 30 , but get error null object . > > Item represent the current internal selected item... You must have > items, and select it... or use a key > > ListView["mykey"].height = 30 > Anyway, you can't change the height of a row in a ListView. It is always adapted to the height of the contents. You must use a GridView if you need something like that. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 10 23:15:00 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 23:15:00 +0100 Subject: [Gambas-user] Maybe some fix needed In-Reply-To: <4968E6FB.2080601@...1092...> References: <4968E6FB.2080601@...1092...> Message-ID: <200901102315.01001.gambas@...1...> On samedi 10 janvier 2009, A Person wrote: > Hello > > Using 2.8.2 on Mint. > > Steps to Reproduce: > - Create small picturebox and add self-made icon image from img directory > - don't like icon image's look so go back and refine with editor and resave > > Problem: > - cannot get gambas to reload new image, always seems to show before image > - refresh doesn't seem to pull up the newer image > > Work Around: > - change to another image > - then reload old (newer) image > > for someone's attention > > pmb > Once an image is displayed inside the form editor, it is not automatically refreshed when you update the image somewhere else. But there is a reload button for the entire form that you can use as a workaround. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 10 22:55:35 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 10 Jan 2009 22:55:35 +0100 Subject: [Gambas-user] Gambas Vs. Gnome 2.24 In-Reply-To: <200901070813.26416.rterry@...1946...> References: <49638B93.1070600@...1237...> <384d3900901061308g546c957bxc108353748a253bc@...627...> <200901070813.26416.rterry@...1946...> Message-ID: <200901102255.35677.gambas@...1...> On mardi 6 janvier 2009, richard terry wrote: > On Wed, 7 Jan 2009 08:08:57 am Jussi Lahtinen wrote: > > > I cannot compile the dev version for versions incompatibility of > > > libtool. I will try to compile it when I will solve this issue. > > > > Have I understand correctly... You compiled 2.10.2 successfully with > > libtool >= 2.0, > > possibly with libtool 2.2.4..? > > Ubuntu 8.10 64bit ? > > I seem to have problems with libtool when trying to compile gambas3. > > And like you, I have compiled stable versions with no problems. > > So, I'm very interested if you invent solution to that problem! > > > > > > Jussi > > probably of no use to you, but on my ARCH linux system gambas svn up to > latest version 1789 compiles ok with libtool 2.2.6a-1 > > Richard > I don't have any libtool 2 version on Mandriva, so it is hard for me to test. Apparently some can compile the same source tree without problems, and some cannot, both with libtool 2. It is strange, and not necessarily in favor of libtool 2. I'd like to know why Mandriva didn't switch to libtool 2, but maybe there is a good reason? For those who cannot compile gambas (2 or 3) with libtool 2, please post the full output of the configure process so that we get more information. Regards, -- Benoit Minisini From gambas at ...1... Sun Jan 11 00:11:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Jan 2009 00:11:37 +0100 Subject: [Gambas-user] gb.net.curl - HttpClient - libcurl specs? In-Reply-To: <21367906.post@...1379...> References: <21345055.post@...1379...> <21367906.post@...1379...> Message-ID: <200901110011.37300.gambas@...1...> On vendredi 9 janvier 2009, birchy wrote: > anyone? I just added the HttpClient.Encoding property in the revision #1795 of the development version, so that you have all you want! Regards, -- Benoit Minisini From jshackney at ...626... Sun Jan 11 01:41:18 2009 From: jshackney at ...626... (Jason Hackney) Date: Sat, 10 Jan 2009 19:41:18 -0500 Subject: [Gambas-user] Gambas SVN download/compile Message-ID: <799be1690901101641h14e4c236hea4bfa4ada276612@...627...> On the off chance that someone other than myself would like to automate downloading the source from SVN and compiling, I've attached a bash script that does it for Ubuntu 8.10. I have had to do it a number of times in the past couple days so I figured I'd put together a relatively crude script. Some notes: -) It's based heavily on this page: http://gambasdoc.org/help/install/ubuntu?show by Gareth Bult. -) I am doing this on an ASUS Eee PC running the latest eeebuntu (standard edition). -) The script automatically downloads (and downgrades) a correct libtool package for 32-bit systems. -) I did't get too enchanted with trapping errors and such (I just needed something that worked) -) You will have to edit the HOMEDIR variable to reflect your home directory. -) Finally, make sure you run the script as superuser. I'm open to suggestions for making it better if anyone finds it interesting. Cheers, Jason -------------- next part -------------- A non-text attachment was scrubbed... Name: gb-checkout.sh.gz Type: application/x-gzip Size: 1205 bytes Desc: not available URL: From jshackney at ...626... Sun Jan 11 05:41:18 2009 From: jshackney at ...626... (Jason Hackney) Date: Sat, 10 Jan 2009 23:41:18 -0500 Subject: [Gambas-user] Grideditor Message-ID: <799be1690901102041k6a70a3a7ra336cc0a1397411d@...627...> Is anyone using GridEditor with the latest SVN? From gareth at ...1689... Sun Jan 11 12:02:07 2009 From: gareth at ...1689... (Gareth Bult) Date: Sun, 11 Jan 2009 11:02:07 +0000 (GMT) Subject: [Gambas-user] Grideditor In-Reply-To: <799be1690901102041k6a70a3a7ra336cc0a1397411d@...627...> Message-ID: <9700662.319031231671727271.JavaMail.root@...1834...> Hi, Yes, me ... :) Gareth. ----- Original Message ----- From: "Jason Hackney" To: "Gambas Mailing List" Sent: Sunday, 11 January, 2009 4:41:18 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-user] Grideditor Is anyone using GridEditor with the latest SVN? ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Sun Jan 11 19:26:26 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 11 Jan 2009 19:26:26 +0100 Subject: [Gambas-user] Gambas SVN download/compile In-Reply-To: <799be1690901101641h14e4c236hea4bfa4ada276612@...627...> References: <799be1690901101641h14e4c236hea4bfa4ada276612@...627...> Message-ID: <200901111926.26739.gambas@...1...> On dimanche 11 janvier 2009, Jason Hackney wrote: > On the off chance that someone other than myself would like to automate > downloading the source from SVN and compiling, I've attached a bash script > that does it for Ubuntu 8.10. I have had to do it a number of times in the > past couple days so I figured I'd put together a relatively crude script. > > Some notes: > > -) It's based heavily on this page: > http://gambasdoc.org/help/install/ubuntu?show by Gareth Bult. > > -) I am doing this on an ASUS Eee PC running the latest eeebuntu (standard > edition). > > -) The script automatically downloads (and downgrades) a correct libtool > package for 32-bit systems. > > -) I did't get too enchanted with trapping errors and such (I just needed > something that worked) > > -) You will have to edit the HOMEDIR variable to reflect your home > directory. > > -) Finally, make sure you run the script as superuser. > > I'm open to suggestions for making it better if anyone finds it > interesting. > > Cheers, > Jason You shouldn't have to be root to run the script. Only the "make install" must be run by root, this way: # su -c "make install" Or on Ubuntu you can use "sudo" too. This way, you don't have to specify the HOME dir, just use "~". Or let the user specify the directory of the local version of /trunk. Regards, -- Benoit Minisini From jshackney at ...626... Sun Jan 11 20:57:26 2009 From: jshackney at ...626... (Jason Hackney) Date: Sun, 11 Jan 2009 14:57:26 -0500 Subject: [Gambas-user] 1795 Message-ID: <799be1690901111157g3259fde1q6f51e61c7f5b3c4c@...627...> Do we still have to downgrade libtool to compile the latest snapshot? I have been able to compile 1794 using the downgraded libtool, but tried 1795 today and now I'm getting very strange messages from 'make': make all-recursive make[1]: Entering directory `/home/hackney/trunk' Making all in main make[2]: Entering directory `/home/hackney/trunk/main' make all-recursive make[3]: Entering directory `/home/hackney/trunk/main' Making all in libltdl make[4]: Entering directory `/home/hackney/trunk/main/libltdl' make all-am make[5]: Entering directory `/home/hackney/trunk/main/libltdl' /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O2 -c -o ltdl.lo ltdl.c ./libtool: line 467: CDPATH: command not found ./libtool: line 1145: func_opt_split: command not found libtool: Version mismatch error. This is libtool 2.2.4 Debian-2.2.4-0ubuntu4, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4 Debian-2.2.4-0ubuntu4 libtool: and run autoconf again. make[5]: *** [ltdl.lo] Error 63 make[5]: Leaving directory `/home/hackney/trunk/main/libltdl' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/hackney/trunk/main/libltdl' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/hackney/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/hackney/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/hackney/trunk' make: *** [all] Error 2 The one that bugs me is the line that says, "This is libtool 2.2.4 ..." but "libtool --version" returns: ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-4 (1.1220.2.493 2008/02/01 16:58:18) Am I missing something? Do I just need a kick in the head? :-) From rterry at ...1946... Sun Jan 11 22:05:10 2009 From: rterry at ...1946... (richard terry) Date: Mon, 12 Jan 2009 08:05:10 +1100 Subject: [Gambas-user] Grideditor In-Reply-To: <9700662.319031231671727271.JavaMail.root@...1834...> References: <9700662.319031231671727271.JavaMail.root@...1834...> Message-ID: <200901120805.10680.rterry@...1946...> On Sun, 11 Jan 2009 10:02:07 pm Gareth Bult wrote: > Hi, > > Yes, me ... If you noted my previous post on us all contributing to simple code examples, perhaps you could write us a tutorial? Maybe benoit can come up with a simple frame work we can put these examples in and it can be included with the one I posted. Regards Richard > > :) > > Gareth. > > > ----- Original Message ----- > From: "Jason Hackney" > To: "Gambas Mailing List" > Sent: Sunday, 11 January, 2009 4:41:18 AM GMT +00:00 GMT Britain, Ireland, > Portugal Subject: [Gambas-user] Grideditor > > Is anyone using GridEditor with the latest SVN? > --------------------------------------------------------------------------- >--- Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From rterry at ...1946... Sun Jan 11 22:17:09 2009 From: rterry at ...1946... (richard terry) Date: Mon, 12 Jan 2009 08:17:09 +1100 Subject: [Gambas-user] Save as ?not working Message-ID: <200901120817.09803.rterry@...1946...> Tried to save the project as another name > nowhere to type in the new name (build 75) From jshackney at ...626... Sun Jan 11 22:25:29 2009 From: jshackney at ...626... (Jason Hackney) Date: Sun, 11 Jan 2009 16:25:29 -0500 Subject: [Gambas-user] 1795 In-Reply-To: <799be1690901111157g3259fde1q6f51e61c7f5b3c4c@...627...> References: <799be1690901111157g3259fde1q6f51e61c7f5b3c4c@...627...> Message-ID: <799be1690901111325v539b2dc7waab8d16f93b5cb52@...627...> Uh... disregard. Made the mistake of thinking a Debian package was interchangeable with an Ubuntu package. Got it fixed. From jshackney at ...626... Sun Jan 11 22:38:45 2009 From: jshackney at ...626... (Jason Hackney) Date: Sun, 11 Jan 2009 16:38:45 -0500 Subject: [Gambas-user] Grideditor In-Reply-To: <200901120805.10680.rterry@...1946...> References: <9700662.319031231671727271.JavaMail.root@...1834...> <200901120805.10680.rterry@...1946...> Message-ID: <799be1690901111338x6fbb4060q3f9fb7887a22cca6@...627...> I would love a tutorial even if it just points out how thickheaded I am. My problem was two things: Since I'm not really familiar with GridEditor, I don't know what it should look like once it's installed as a component. I expected icons of some sort, but all I see are three question marks in the toolbox. Is that correct? Second, with build 1794 I was getting errors when adding as a component to my project. I would get an IDE error telling me that the project could not be compiled. When I deselected GridEditor, the error went away. (I did upgrade the project from 1.0 to 3.0 and made a new executable). And third, (I know I said two), does GridEditor depend on gb.qt? I've been using gtk+ pretty much exclusively. I think some of my trouble was that gb.qt did not compile with 1794. Now (in 1795, the only compenent not surviving the make process is gb.qte--I hope that's not a problem). -Jason On Sun, Jan 11, 2009 at 4:05 PM, richard terry wrote: > On Sun, 11 Jan 2009 10:02:07 pm Gareth Bult wrote: > > Hi, > > > > Yes, me ... > If you noted my previous post on us all contributing to simple code > examples, > perhaps you could write us a tutorial? > > Maybe benoit can come up with a simple frame work we can put these examples > in > and it can be included with the one I posted. > > Regards > > Richard > > > > :) > > > > Gareth. > > > > > > ----- Original Message ----- > > From: "Jason Hackney" > > To: "Gambas Mailing List" > > Sent: Sunday, 11 January, 2009 4:41:18 AM GMT +00:00 GMT Britain, > Ireland, > > Portugal Subject: [Gambas-user] Grideditor > > > > Is anyone using GridEditor with the latest SVN? > > > --------------------------------------------------------------------------- > >--- Check out the new SourceForge.net Marketplace. > > It is the best place to buy or sell services for > > just about anything Open Source. > > http://p.sf.net/sfu/Xq1LFB > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jshackney at ...626... Sun Jan 11 22:42:27 2009 From: jshackney at ...626... (Jason Hackney) Date: Sun, 11 Jan 2009 16:42:27 -0500 Subject: [Gambas-user] Grideditor In-Reply-To: <799be1690901111338x6fbb4060q3f9fb7887a22cca6@...627...> References: <9700662.319031231671727271.JavaMail.root@...1834...> <200901120805.10680.rterry@...1946...> <799be1690901111338x6fbb4060q3f9fb7887a22cca6@...627...> Message-ID: <799be1690901111342n38ef4ccesd1c569bfee70d39c@...627...> Oh yeah, I was wondering if there was any status update regarding if/when it will be included in the IDE. Sorry about hitting "reply-all" on the last post. ;-) From gareth at ...1689... Mon Jan 12 02:24:41 2009 From: gareth at ...1689... (Gareth Bult) Date: Mon, 12 Jan 2009 01:24:41 +0000 (GMT) Subject: [Gambas-user] Grideditor In-Reply-To: <200901120805.10680.rterry@...1946...> Message-ID: <21772408.320161231723481063.JavaMail.root@...1834...> Have you looked at the documentation off this page? http://gambasrad.org/software/gambas-grideditor ----- Original Message ----- From: "richard terry" To: "mailing list for gambas users" Sent: Sunday, 11 January, 2009 9:05:10 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Grideditor On Sun, 11 Jan 2009 10:02:07 pm Gareth Bult wrote: > Hi, > > Yes, me ... If you noted my previous post on us all contributing to simple code examples, perhaps you could write us a tutorial? Maybe benoit can come up with a simple frame work we can put these examples in and it can be included with the one I posted. Regards Richard > > :) > > Gareth. > > > ----- Original Message ----- > From: "Jason Hackney" > To: "Gambas Mailing List" > Sent: Sunday, 11 January, 2009 4:41:18 AM GMT +00:00 GMT Britain, Ireland, > Portugal Subject: [Gambas-user] Grideditor > > Is anyone using GridEditor with the latest SVN? > --------------------------------------------------------------------------- >--- Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Mon Jan 12 02:32:43 2009 From: gareth at ...1689... (Gareth Bult) Date: Mon, 12 Jan 2009 01:32:43 +0000 (GMT) Subject: [Gambas-user] Grideditor In-Reply-To: <799be1690901111342n38ef4ccesd1c569bfee70d39c@...627...> Message-ID: <15737006.320191231723963542.JavaMail.root@...1834...> As it happens I've "just" got the hang of writing Gambas components in "C" .. so I will be going back to gridEditor once I've finished the module I'm currently playing with. I'm packaging libiaxclient as gb.iax2, so far I've implemented most of the core functions and am able to place a VoIP call to an Asterisk server .. just need to do a little work on streaming and video .. demo program will hopefully be a videophone component written in Gambas .... Gareth. ----- Original Message ----- From: "Jason Hackney" To: "mailing list for gambas users" Sent: Sunday, 11 January, 2009 9:42:27 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Grideditor Oh yeah, I was wondering if there was any status update regarding if/when it will be included in the IDE. Sorry about hitting "reply-all" on the last post. ;-) ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From jshackney at ...626... Mon Jan 12 03:14:53 2009 From: jshackney at ...626... (Jason Hackney) Date: Sun, 11 Jan 2009 21:14:53 -0500 Subject: [Gambas-user] Grideditor In-Reply-To: <21772408.320161231723481063.JavaMail.root@...1834...> References: <200901120805.10680.rterry@...1946...> <21772408.320161231723481063.JavaMail.root@...1834...> Message-ID: <799be1690901111814td54138bq58fdc26d67e9a699@...627...> Uhh ... obviously I didn't make it past this part, "Tick the Box and click Ok" when installing. The other bits I'm having trouble with I need to iron out. Thanks! From gareth at ...1689... Mon Jan 12 11:15:13 2009 From: gareth at ...1689... (Gareth Bult) Date: Mon, 12 Jan 2009 10:15:13 +0000 (GMT) Subject: [Gambas-user] Grideditor In-Reply-To: <799be1690901111814td54138bq58fdc26d67e9a699@...627...> Message-ID: <25361100.321131231755313277.JavaMail.root@...1834...> I will include a comprehensive example when I re-do as a "C" component .. ----- Original Message ----- From: "Jason Hackney" To: "mailing list for gambas users" Sent: Monday, 12 January, 2009 2:14:53 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Grideditor Uhh ... obviously I didn't make it past this part, "Tick the Box and click Ok" when installing. The other bits I'm having trouble with I need to iron out. Thanks! ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From eilert-sprachen at ...221... Mon Jan 12 11:57:12 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 12 Jan 2009 11:57:12 +0100 Subject: [Gambas-user] Does really nobody have an idea??? Message-ID: <496B2208.2080303@...221...> I've been waiting for some hints about reading from a TableView, was the question really so stupid? :-) (Please take another look at my mail from last week.) At least I'd expected some teacherly "look at this page" or "try reading this better..." Really no idea? Rolf From eilert-sprachen at ...221... Mon Jan 12 13:16:03 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 12 Jan 2009 13:16:03 +0100 Subject: [Gambas-user] How to read keys from a TreeView Message-ID: <496B3483.4010103@...221...> Proceeding to convert a Gambas1 app to Gambas2, I found that reading key values or stepping through the values is different now. The TreeView shows names of persons sorted under groups/classes/filters sorted under years sorted under a root header, in brief: Root1 2004 2005 2006 Group1 Group2 <-- Cursor John Benoit Michael Rolf Group3 2007 2008 Root2 What I want is when the cursor is on Group2 and I call my function, it expands and reads all keys of the names within this group. This is the code in Gambas1: baum.Current.Expanded = TRUE namenKeys.Clear FOR i = 1 TO baum.Current.Children baum.Item.MoveBelow IF Left$(baum.Item.Key, 1) = "#" THEN namenKeys.Add(baum.Item.Key) ELSE BREAK END IF NEXT "baum" is the TreeView, "namenKeys" is an array that should return the keys which were found. The idea was to read the keys either up to the number of children or until the next key doesn't have a "#". This doesn't run in Gambas2 this way, but I didn't find a way to make it run. MoveBelow doesn't seem to exist anymore (Gambas2 won't show an error, however), and I tried any possible combination of using MoveAfter() with Item and Current, but to no avail. So, can anybody help here? Thanks so much! Rolf From gareth at ...1689... Mon Jan 12 13:02:12 2009 From: gareth at ...1689... (Gareth Bult) Date: Mon, 12 Jan 2009 12:02:12 +0000 (GMT) Subject: [Gambas-user] How to read keys from a TreeView in Gambas2? In-Reply-To: <4965D904.3080702@...221...> Message-ID: <7046298.321841231761732505.JavaMail.root@...1834...> >MoveBelow doesn't seem to exist anymore (Gambas2 won't show an Is MoveBelow (and MoveChild etc..) not a method of "TreeView" rather than "TreeViewItem" .. ? Does it work if you use; FOR i = 1 TO baum.Current.Children ==> baum.MoveBelow IF Left$(baum.Item.Key, 1) = "#" THEN namenKeys.Add(baum.Item.Key) ELSE BREAK END IF NEXT ?? Gareth. ----- Original Message ----- From: "Rolf-Werner Eilert" To: "mailing list for gambas users" Sent: Thursday, 8 January, 2009 10:44:20 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-user] How to read keys from a TreeView in Gambas2? Proceeding to convert a Gambas1 app to Gambas2, I found that reading key values or stepping through the values is different now. The TreeView shows names of persons sorted under groups/classes/filters sorted under years sorted under a root header, in brief: Root1 2004 2005 2006 Group1 Group2 <-- Cursor John Benoit Michael Rolf Group3 2007 2008 Root2 What I want is when the cursor is on Group2 and I call my function, it expands and reads all keys of the names within this group. This is the code in Gambas1: baum.Current.Expanded = TRUE namenKeys.Clear FOR i = 1 TO baum.Current.Children baum.Item.MoveBelow IF Left$(baum.Item.Key, 1) = "#" THEN namenKeys.Add(baum.Item.Key) ELSE BREAK END IF NEXT "baum" is the TreeView, "namenKeys" is an array that should return the keys which were found. The idea was to read the keys either up to the number of children or until the next key doesn't have a "#". This doesn't run in Gambas2 this way, but I didn't find a way to make it run. MoveBelow doesn't seem to exist anymore (Gambas2 won't show an error, however), and I tried any possible combination of using MoveAfter() with Item and Current, but to no avail. So, can anybody help here? Thanks so much! Rolf ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From doriano.blengino at ...1909... Mon Jan 12 13:00:44 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Mon, 12 Jan 2009 13:00:44 +0100 Subject: [Gambas-user] Does really nobody have an idea??? In-Reply-To: <496B2208.2080303@...221...> References: <496B2208.2080303@...221...> Message-ID: <496B30EC.60303@...1909...> Rolf-Werner Eilert ha scritto: > I've been waiting for some hints about reading from a TableView, was the > question really so stupid? :-) (Please take another look at my mail from > last week.) > I cannot find your post - perhaps sourceforge is eating messages again... I also sended al least a message last week, which does not show up yet. Regards, Doriano From eilert-sprachen at ...221... Mon Jan 12 13:19:26 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 12 Jan 2009 13:19:26 +0100 Subject: [Gambas-user] Does really nobody have an idea??? In-Reply-To: <496B30EC.60303@...1909...> References: <496B2208.2080303@...221...> <496B30EC.60303@...1909...> Message-ID: <496B354E.4020004@...221...> Doriano Blengino schrieb: > Rolf-Werner Eilert ha scritto: >> I've been waiting for some hints about reading from a TableView, was >> the question really so stupid? :-) (Please take another look at my >> mail from last week.) >> > I cannot find your post - perhaps sourceforge is eating messages again... > I also sended al least a message last week, which does not show up yet. > > Regards, > > Doriano > > I posted it again - does it appear now? It did appear here on my mailer, but maybe this was just the "echo" from the mailing server. Regards Rolf From gambas at ...1... Mon Jan 12 13:53:44 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 13:53:44 +0100 Subject: [Gambas-user] How to read keys from a TreeView In-Reply-To: <496B3483.4010103@...221...> References: <496B3483.4010103@...221...> Message-ID: <200901121353.45020.gambas@...1...> On lundi 12 janvier 2009, Rolf-Werner Eilert wrote: > Proceeding to convert a Gambas1 app to Gambas2, I found that reading key > values or stepping through the values is different now. > > The TreeView shows names of persons sorted under groups/classes/filters > sorted under years sorted under a root header, in brief: > > Root1 > 2004 > 2005 > 2006 > Group1 > Group2 <-- Cursor > John > Benoit > Michael > Rolf > Group3 > 2007 > 2008 > Root2 > > What I want is when the cursor is on Group2 and I call my function, it > expands and reads all keys of the names within this group. > > This is the code in Gambas1: > > baum.Current.Expanded = TRUE > > namenKeys.Clear > > FOR i = 1 TO baum.Current.Children > baum.Item.MoveBelow > IF Left$(baum.Item.Key, 1) = "#" THEN > namenKeys.Add(baum.Item.Key) > ELSE > BREAK > END IF > NEXT > > "baum" is the TreeView, "namenKeys" is an array that should return the > keys which were found. The idea was to read the keys either up to the > number of children or until the next key doesn't have a "#". > > This doesn't run in Gambas2 this way, but I didn't find a way to make it > run. MoveBelow doesn't seem to exist anymore (Gambas2 won't show an > error, however), and I tried any possible combination of using > MoveAfter() with Item and Current, but to no avail. > > So, can anybody help here? > > Thanks so much! > > Rolf > MoveBelow() is a method of TreeView in Gambas 2, and moves the internal cursor one item below. (In Gambas 1, this method did not work in all cases). But as you want the child items of a node, you must not use MoveBelow(). It moves one item below, whether it is a child or not of the initial parent item. So if one of the child has children too, you routine won't work. You must use MoveNext() instead: baum.Current.Expanded = TRUE namenKeys.Clear ' Move the internal cursor to the current item baum.MoveCurrent() ' Then move to the first child of the current item baum.MoveChild() ' While the internal cursor is valid, i.e. while there is ' a child to look at. WHILE baum.Available IF Left$(baum.Item.Key, 1) = "#" THEN namenKeys.Add(baum.Item.Key) ELSE BREAK END IF ' Move to the next sibling item, i.e. the next item having ' the same parent. baum.MoveNext() WEND See the documentation of the methods in the wiki to know what they are doing exactly. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Mon Jan 12 14:56:33 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Mon, 12 Jan 2009 05:56:33 -0800 (PST) Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now References: <271634.59504.qm@...1656...> <200901102251.07921.gambas@...1...> Message-ID: <178552.28223.qm@...1670...> Not sure... but what I know for sure is that is not in my Gambas part. Attached is an example using only gb.db I try to take a look in the C part, but I couldn't find anything. Attached is the entire script for my database, and an example. I you connect directly to mysql and execute the last tow statements they work, so I think it is a bug in the C part. MySQL says: If you get Commands out of sync; you can't run this command now in your client code, you are calling client functions in the wrong order. This can happen, for example, if you are using mysql_use_result() and try to execute a new query before you have called mysql_free_result(). It can also happen if you try to execute two queries that return data without calling mysql_use_result() or mysql_store_result() in between. Best Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Saturday, January 10, 2009 3:51:07 PM Subject: Re: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now On mercredi 7 janvier 2009, David Villalobos Cambronero wrote: > Hi Benoit, did you have time to take a look at this? > > Regards > > > -- > David > Not really. I never encountered this error myself in all my MySQL life. By using the "DB.Debug = TRUE" feature, can't you have a dump of all SQL requests sent to the database driver? This way you could easily see if the requests sent are really bad, or if you did a bug in the gambas part of gb.db.mysql, or if I did a bug in the C part, or if there is a bug in MySQL (possible!) Regards, -- Benoit Minisini ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: SMaRT.sql Type: application/octet-stream Size: 81543 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mysql.error-0.0.1.tar.gz Type: application/x-gzip Size: 7677 bytes Desc: not available URL: From wig at ...1809... Mon Jan 12 15:33:59 2009 From: wig at ...1809... (wig) Date: Mon, 12 Jan 2009 15:33:59 +0100 (CET) Subject: [Gambas-user] local directorie structure in Source Archive? Message-ID: <41348.81.244.219.137.1231770839.squirrel@...1810...> In an open project: Make installation package; Cannot make executable. gba: ERROR: Cannot create temporary archive file: /home/wig/Upload/facs/executables/facs.gambas Indeed this directory does not exist. Not on this machine. This is a freshly installed Mandriva 2009, freshly installed Gambas2. I only downloaded the "Source Archive" made on another machine (Gambas 2.6). Does such a Source Archive contain "personal information" as local directories? I cannot see/reach it via the IDE (project, Properties) From gambas at ...1... Mon Jan 12 15:41:21 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 15:41:21 +0100 Subject: [Gambas-user] local directorie structure in Source Archive? In-Reply-To: <41348.81.244.219.137.1231770839.squirrel@...1810...> References: <41348.81.244.219.137.1231770839.squirrel@...1810...> Message-ID: <200901121541.21368.gambas@...1...> On lundi 12 janvier 2009, wig wrote: > In an open project: Make installation package; > > Cannot make executable. > gba: ERROR: Cannot create temporary archive file: > /home/wig/Upload/facs/executables/facs.gambas > > Indeed this directory does not exist. Not on this machine. This is a > freshly installed Mandriva 2009, freshly installed Gambas2. > > I only downloaded the "Source Archive" made on another machine (Gambas > 2.6). > > Does such a Source Archive contain "personal information" as local > directories? > > I cannot see/reach it via the IDE (project, Properties) > Yes. When the IDE makes an executable, it uses the last path memorized in the "make executable" dialog. So you should use "make an executable" and specify a directory that exists on the new machine. I admit that the packager should be more clever, and uses a location that always exist, as it makes an executable only for making the package. But at the moment the IDE makes no distinction between an executable that must be put in a well-defined place, and an executable that is just temporary. Regards, -- Benoit Minisini From gambas at ...1... Mon Jan 12 15:48:49 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 15:48:49 +0100 Subject: [Gambas-user] Save as ?not working In-Reply-To: <200901120817.09803.rterry@...1946...> References: <200901120817.09803.rterry@...1946...> Message-ID: <200901121548.49976.gambas@...1...> On dimanche 11 janvier 2009, richard terry wrote: > Tried to save the project as another name > nowhere to type in the new name > (build 75) > "Save as" here means that the project is copied in another place, but its name does not change. But there should be no problem to be able to change the name too. -- Benoit Minisini From eilert-sprachen at ...221... Mon Jan 12 16:09:55 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 12 Jan 2009 16:09:55 +0100 Subject: [Gambas-user] How to read keys from a TreeView In-Reply-To: <200901121353.45020.gambas@...1...> References: <496B3483.4010103@...221...> <200901121353.45020.gambas@...1...> Message-ID: <496B5D43.8070000@...221...> Benoit Minisini schrieb: > On lundi 12 janvier 2009, Rolf-Werner Eilert wrote: >> Proceeding to convert a Gambas1 app to Gambas2, I found that reading key >> values or stepping through the values is different now. >> >> The TreeView shows names of persons sorted under groups/classes/filters >> sorted under years sorted under a root header, in brief: >> >> Root1 >> 2004 >> 2005 >> 2006 >> Group1 >> Group2 <-- Cursor >> John >> Benoit >> Michael >> Rolf >> Group3 >> 2007 >> 2008 >> Root2 >> >> What I want is when the cursor is on Group2 and I call my function, it >> expands and reads all keys of the names within this group. >> >> This is the code in Gambas1: >> >> baum.Current.Expanded = TRUE >> >> namenKeys.Clear >> >> FOR i = 1 TO baum.Current.Children >> baum.Item.MoveBelow >> IF Left$(baum.Item.Key, 1) = "#" THEN >> namenKeys.Add(baum.Item.Key) >> ELSE >> BREAK >> END IF >> NEXT >> >> "baum" is the TreeView, "namenKeys" is an array that should return the >> keys which were found. The idea was to read the keys either up to the >> number of children or until the next key doesn't have a "#". >> >> This doesn't run in Gambas2 this way, but I didn't find a way to make it >> run. MoveBelow doesn't seem to exist anymore (Gambas2 won't show an >> error, however), and I tried any possible combination of using >> MoveAfter() with Item and Current, but to no avail. >> >> So, can anybody help here? >> >> Thanks so much! >> >> Rolf >> > Thanks Benoit for this insight... > MoveBelow() is a method of TreeView in Gambas 2, and moves the internal cursor > one item below. (In Gambas 1, this method did not work in all cases). > > But as you want the child items of a node, you must not use MoveBelow(). It > moves one item below, whether it is a child or not of the initial parent > item. > > So if one of the child has children too, you routine won't work. You are right, and now the "BREAK" clause in my code becomes superfluous. > > You must use MoveNext() instead: > > baum.Current.Expanded = TRUE > > namenKeys.Clear > > ' Move the internal cursor to the current item > baum.MoveCurrent() > ' Then move to the first child of the current item > baum.MoveChild() > > ' While the internal cursor is valid, i.e. while there is > ' a child to look at. > WHILE baum.Available > > IF Left$(baum.Item.Key, 1) = "#" THEN > namenKeys.Add(baum.Item.Key) > ELSE > BREAK > END IF > > ' Move to the next sibling item, i.e. the next item having > ' the same parent. > baum.MoveNext() > > WEND Thank you very much for that code, it runs perfectly (of course... :-) ). > > See the documentation of the methods in the wiki to know what they are doing > exactly. You see, I have my problems with reading documentations. Often I just can't see where to go and what's important. Maybe that's why I've never become a professional programmer... :-( But when I have a small example of what to do and how, this will mostly help me understand reading the documentation. Regards Rolf From gambas at ...1... Mon Jan 12 16:11:56 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 16:11:56 +0100 Subject: [Gambas-user] Alignment or Gridview problem? In-Reply-To: <49663F1B.8040108@...11...> References: <49663F1B.8040108@...11...> Message-ID: <200901121611.56816.gambas@...1...> On jeudi 8 janvier 2009, Dominique SIMONART wrote: > Hi everybody, > > Happy new year, ... > > Here are two little screen captures to show my problem. > In the Bad.png, look at the width of the Gridview, that ends with +64 > In the Good.png, look the same line that ends with +65. This is the > unique difference, > but what a different effect! > In fact, I don't need the extra width at all. If you change Align.Center > by Align.Left, all is OK with +2 > (it doesn't work with Align.Right however) > > In case you want to test, I add the whole project below > (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8) > With the last 2.x version, putting 64 or 65 changes nothing except the one pixel difference. In both cases you get the first screenshot, which what is expected. Regards, -- Benoit Minisini From eilert-sprachen at ...221... Mon Jan 12 16:16:30 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 12 Jan 2009 16:16:30 +0100 Subject: [Gambas-user] How to read keys from a TreeView in Gambas2? In-Reply-To: <7046298.321841231761732505.JavaMail.root@...1834...> References: <7046298.321841231761732505.JavaMail.root@...1834...> Message-ID: <496B5ECE.9020407@...221...> Yes it does work - no idea why I didn't see it's so simple... And what do you think about Benoit's way? It disposes of the BREAK thing and seems much more "tailored" to the TreeView class to me than my own code. Rolf Gareth Bult schrieb: >> MoveBelow doesn't seem to exist anymore (Gambas2 won't show an > > Is MoveBelow (and MoveChild etc..) not a method of "TreeView" rather than "TreeViewItem" .. ? > > Does it work if you use; > > FOR i = 1 TO baum.Current.Children > ==> baum.MoveBelow > IF Left$(baum.Item.Key, 1) = "#" THEN > namenKeys.Add(baum.Item.Key) > ELSE > BREAK > END IF > NEXT > > ?? > > Gareth. > > ----- Original Message ----- > From: "Rolf-Werner Eilert" > To: "mailing list for gambas users" > Sent: Thursday, 8 January, 2009 10:44:20 AM GMT +00:00 GMT Britain, Ireland, Portugal > Subject: [Gambas-user] How to read keys from a TreeView in Gambas2? > > Proceeding to convert a Gambas1 app to Gambas2, I found that reading key > values or stepping through the values is different now. > > The TreeView shows names of persons sorted under groups/classes/filters > sorted under years sorted under a root header, in brief: > > Root1 > 2004 > 2005 > 2006 > Group1 > Group2 <-- Cursor > John > Benoit > Michael > Rolf > Group3 > 2007 > 2008 > Root2 > > What I want is when the cursor is on Group2 and I call my function, it > expands and reads all keys of the names within this group. > > This is the code in Gambas1: > > baum.Current.Expanded = TRUE > > namenKeys.Clear > > FOR i = 1 TO baum.Current.Children > baum.Item.MoveBelow > IF Left$(baum.Item.Key, 1) = "#" THEN > namenKeys.Add(baum.Item.Key) > ELSE > BREAK > END IF > NEXT > > "baum" is the TreeView, "namenKeys" is an array that should return the > keys which were found. The idea was to read the keys either up to the > number of children or until the next key doesn't have a "#". > > This doesn't run in Gambas2 this way, but I didn't find a way to make it > run. MoveBelow doesn't seem to exist anymore (Gambas2 won't show an > error, however), and I tried any possible combination of using > MoveAfter() with Item and Current, but to no avail. > > So, can anybody help here? > > Thanks so much! > > Rolf > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Jan 12 16:16:08 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 16:16:08 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <4965C7AE.8030501@...221...> References: <4965C7AE.8030501@...221...> Message-ID: <200901121616.08435.gambas@...1...> On jeudi 8 janvier 2009, Rolf-Werner Eilert wrote: > Hi everyone! > > When converting one of my apps from Gambas1 to Gambas2, I found 2 minor > items: > > 1. The status of Tool Box Collection is not saved and always starts as > "switched off" when starting the Gambas2 IDE. But maybe this is wanted? I don't know if I wanted that. Its status is just not saved, so it starts hidden. > > 2. The last (rightmost) column of a TableView is stretched to the > ultimate width of the tableview and ignores if a Width value is given > for it. > > Well, it just looks sort of ugly, but I found it worth mentioning anyway. The width of the last column is ignored only if it is smaller than the GridView/TableView contents. I don't find that ugly. On the contrary, I did that because I found ugly when there is space between the last column and the right border of the GridView. Regards, -- Benoit Minisini From gambas at ...1... Mon Jan 12 16:22:06 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 16:22:06 +0100 Subject: [Gambas-user] Alignment or Gridview problem? In-Reply-To: <200901121611.56816.gambas@...1...> References: <49663F1B.8040108@...11...> <200901121611.56816.gambas@...1...> Message-ID: <200901121622.07021.gambas@...1...> On lundi 12 janvier 2009, Benoit Minisini wrote: > On jeudi 8 janvier 2009, Dominique SIMONART wrote: > > Hi everybody, > > > > Happy new year, ... > > > > Here are two little screen captures to show my problem. > > In the Bad.png, look at the width of the Gridview, that ends with +64 > > In the Good.png, look the same line that ends with +65. This is the > > unique difference, > > but what a different effect! > > In fact, I don't need the extra width at all. If you change Align.Center > > by Align.Left, all is OK with +2 > > (it doesn't work with Align.Right however) > > > > In case you want to test, I add the whole project below > > (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8) > > With the last 2.x version, putting 64 or 65 changes nothing except the one > pixel difference. In both cases you get the first screenshot, which what is > expected. ^ > /|\ | [is] ----------------------------------------------------------------' -- Benoit Minisini From eilert-sprachen at ...221... Mon Jan 12 17:06:43 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 12 Jan 2009 17:06:43 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200901121616.08435.gambas@...1...> References: <4965C7AE.8030501@...221...> <200901121616.08435.gambas@...1...> Message-ID: <496B6A93.6070200@...221...> Benoit Minisini schrieb: > On jeudi 8 janvier 2009, Rolf-Werner Eilert wrote: >> Hi everyone! >> >> When converting one of my apps from Gambas1 to Gambas2, I found 2 minor >> items: >> >> 1. The status of Tool Box Collection is not saved and always starts as >> "switched off" when starting the Gambas2 IDE. But maybe this is wanted? > > I don't know if I wanted that. Its status is just not saved, so it starts > hidden. Well, you know... everything else is saved, and it's very comfortable this way. So I just thought it might be logical to save its status, too. > >> 2. The last (rightmost) column of a TableView is stretched to the >> ultimate width of the tableview and ignores if a Width value is given >> for it. >> >> Well, it just looks sort of ugly, but I found it worth mentioning anyway. > > The width of the last column is ignored only if it is smaller than the > GridView/TableView contents. I don't find that ugly. On the contrary, I did > that because I found ugly when there is space between the last column and the > right border of the GridView. > > Regards, > Ugly is maybe too hard - it's a matter of taste. I include two pairs of screenshots so you can see what I mean: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas02.png Type: image/png Size: 49825 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas03.png Type: image/png Size: 46120 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas04.png Type: image/png Size: 9516 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas05.png Type: image/png Size: 13904 bytes Desc: not available URL: From simonart.dominique at ...11... Mon Jan 12 19:13:25 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Mon, 12 Jan 2009 19:13:25 +0100 Subject: [Gambas-user] Alignment or Gridview problem? In-Reply-To: <200901121611.56816.gambas@...1...> References: <49663F1B.8040108@...11...> <200901121611.56816.gambas@...1...> Message-ID: <496B8845.9070108@...11...> Benoit Minisini a ?crit : > On jeudi 8 janvier 2009, Dominique SIMONART wrote: > >> Hi everybody, >> >> Happy new year, ... >> >> Here are two little screen captures to show my problem. >> In the Bad.png, look at the width of the Gridview, that ends with +64 >> In the Good.png, look the same line that ends with +65. This is the >> unique difference, >> but what a different effect! >> In fact, I don't need the extra width at all. If you change Align.Center >> by Align.Left, all is OK with +2 >> (it doesn't work with Align.Right however) >> >> In case you want to test, I add the whole project below >> (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8) >> >> > > With the last 2.x version, putting 64 or 65 changes nothing except the one > pixel difference. In both cases you get the first screenshot, which what is > expected. > > Regards, > > Thanks Benoit, I think there is a problem with the *last* column of a gridview, but may be I missed something instead. 1) In the TestOne, the code is what I want to get (the usage of 'k' is for the test only!), but the display is not what I expected (nothing visible in the las column) 2) If I remove the Alignment instruction (TestTwo), I get what I expect, but not what I wished! 3) As a workaround (TestThree), I add a column to my gridview, I mask it with the width limitation (role of k=1), and I restore the alignment. As you can see, the problem is just with the last column with centered text Is the first case works as expected? Is this append with the 2.x version of Gambas? Thank for your help Dominique SIMONART -------------- next part -------------- A non-text attachment was scrubbed... Name: TestOne.png Type: image/png Size: 31770 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestThree.png Type: image/png Size: 31866 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestTwo.png Type: image/png Size: 34628 bytes Desc: not available URL: From simonart.dominique at ...11... Mon Jan 12 19:23:45 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Mon, 12 Jan 2009 19:23:45 +0100 Subject: [Gambas-user] Alignment or Gridview problem? In-Reply-To: <200901121611.56816.gambas@...1...> References: <49663F1B.8040108@...11...> <200901121611.56816.gambas@...1...> Message-ID: <496B8AB1.1060707@...11...> Benoit Minisini a ?crit : > On jeudi 8 janvier 2009, Dominique SIMONART wrote: > >> Hi everybody, >> >> Happy new year, ... >> >> Here are two little screen captures to show my problem. >> In the Bad.png, look at the width of the Gridview, that ends with +64 >> In the Good.png, look the same line that ends with +65. This is the >> unique difference, >> but what a different effect! >> In fact, I don't need the extra width at all. If you change Align.Center >> by Align.Left, all is OK with +2 >> (it doesn't work with Align.Right however) >> >> In case you want to test, I add the whole project below >> (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8) >> >> > > With the last 2.x version, putting 64 or 65 changes nothing except the one > pixel difference. In both cases you get the first screenshot, which what is > expected. > > Regards, > > Sorry, but the TestThree.png was wrong. Here is the good one! Thanks Benoit, I think there is a problem with the *last* column of a gridview, but may be I missed something instead. 1) In the TestOne, the code is what I want to get (the usage of 'k' is for the test only!), but the display is not what I expected (nothing visible in the las column) 2) If I remove the Alignment instruction (TestTwo), I get what I expect, but not what I wished! 3) As a workaround (TestThree), I add a column to my gridview, I mask it with the width limitation (role of k=1), and I restore the alignment. As you can see, the problem is just with the last column with centered text Is the first case works as expected? Is this append with the 2.x version of Gambas? Thank for your help Dominique SIMONART -------------- next part -------------- A non-text attachment was scrubbed... Name: TestOne.png Type: image/png Size: 31770 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestTwo.png Type: image/png Size: 34628 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestThree.png Type: image/png Size: 33647 bytes Desc: not available URL: From gambas at ...1... Mon Jan 12 19:46:54 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 12 Jan 2009 19:46:54 +0100 Subject: [Gambas-user] Alignment or Gridview problem? In-Reply-To: <496B8AB1.1060707@...11...> References: <49663F1B.8040108@...11...> <200901121611.56816.gambas@...1...> <496B8AB1.1060707@...11...> Message-ID: <200901121946.54430.gambas@...1...> On lundi 12 janvier 2009, Dominique SIMONART wrote: > Benoit Minisini a ?crit : > > On jeudi 8 janvier 2009, Dominique SIMONART wrote: > >> Hi everybody, > >> > >> Happy new year, ... > >> > >> Here are two little screen captures to show my problem. > >> In the Bad.png, look at the width of the Gridview, that ends with +64 > >> In the Good.png, look the same line that ends with +65. This is the > >> unique difference, > >> but what a different effect! > >> In fact, I don't need the extra width at all. If you change Align.Center > >> by Align.Left, all is OK with +2 > >> (it doesn't work with Align.Right however) > >> > >> In case you want to test, I add the whole project below > >> (Open Suse 11.0 / KDE 3.5 / QT / Gambas 2.8) > > > > With the last 2.x version, putting 64 or 65 changes nothing except the > > one pixel difference. In both cases you get the first screenshot, which > > what is expected. > > > > Regards, > > Sorry, but the TestThree.png was wrong. Here is the good one! > > Thanks Benoit, > > I think there is a problem with the *last* column of a gridview, but may > be I missed something instead. > 1) In the TestOne, the code is what I want to get (the usage of 'k' is > for the test only!), but the display is not what I expected (nothing > visible in the las column) > 2) If I remove the Alignment instruction (TestTwo), I get what I expect, > but not what I wished! > 3) As a workaround (TestThree), I add a column to my gridview, I mask it > with the width limitation (role of k=1), and I restore the alignment. > > As you can see, the problem is just with the last column with centered text > Is the first case works as expected? Please send me your project. It will be simpler for me to deal with the real thing instead of reproducing it from what you say. Regards, -- Benoit Minisini From dglnz at ...43... Tue Jan 13 08:55:10 2009 From: dglnz at ...43... (dave L) Date: Mon, 12 Jan 2009 23:55:10 -0800 (PST) Subject: [Gambas-user] Gambas2 components? Message-ID: <930336.76307.qm@...2046...> Hi new to Gambas and have been browsing for other peoples components (3rd party). not had too much luck in finding anything as yet. I'm interested in finding out how to go about creating reusable components and how to install 3rd party ones. Lastly is there a database component (ie one that you can set via properties from within the ide for the DB of choice? have created a test project and said i wanted database components in it but looking at all of them there is no database component (something that allows you to say via properties to setup the connection strings) with the others there looks like there is no visible property to connect the thing to a table or rdbms. I'm thinking of what was/is available in the likes of Delhpi 3 where you had .... a database component a datasource grids and table views thus the DB handled the link to into the db and datasource handled the link to a table with the db and the grid/views dblabels & db textboxes handled the display or entry into fields and db control manages the scrolling through the db records. hope i can get some feed back, regards, dave. Easy recipes for Christmas entertaining on Yahoo!Xtra Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes From charles at ...1784... Tue Jan 13 13:27:06 2009 From: charles at ...1784... (charlesg) Date: Tue, 13 Jan 2009 04:27:06 -0800 (PST) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <930336.76307.qm@...2046...> References: <930336.76307.qm@...2046...> Message-ID: <21434754.post@...1379...> Hi, Database components are not my cup of tea (I prefer to do things the hard way!) but they do exist in Gambas. Have a look at the database example. rgds -- View this message in context: http://www.nabble.com/Gambas2-components--tp21430932p21434754.html Sent from the gambas-user mailing list archive at Nabble.com. From gareth at ...1689... Tue Jan 13 12:32:41 2009 From: gareth at ...1689... (Gareth Bult) Date: Tue, 13 Jan 2009 11:32:41 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <930336.76307.qm@...2046...> Message-ID: <26604142.327391231846361432.JavaMail.root@...1834...> Ok, I was sort of waiting for the man to comment .. however, it's an area of interest for myself. Apologies in advance if this feels a little negative, it's not intentional. >I'm interested in finding out how to go about creating reusable components and how to install 3rd party ones. Me too! There are reasons why you don't find many I'm afraid .. >Lastly is there a database component (ie one that you can set via properties from within the ide for the DB of choice? AhHa! Another ex-Delphi/Kylix programmer .. ;-) No. (not yet) >I'm thinking of what was/is available in the likes of Delhpi 3 where you had .... > a database component > a datasource > grids and table views The closest thing you're going to get for the moment is GridEditor. http://gambasrad.org/software/gambas-grideditor The reason this is still a flakey looking add-on is because it's written as a Gambas component (in Gambas) and as a result, the facilities to render the component inside the IDE (live) don't exist. That said, I'm using GridEditor in a number of (substantial) applications as in the context of what it does, I'm unaware of any bugs and performance-wise it works pretty well. (it has no problems editing tables [select's] with tens of thousands of rows) It also handles master-slave daisy chaining for dynamic / graphical updates. [Note; not that gambas written components are flakey specifically, just one's ability to present the component / properties makes the component look less than professional] That said, I'm currently writing my first "C" component and once I have it finished, I'm going to have a crack (again) at getting GridEditor to do what I (and you) think it ought to .. :) hth Gareth. ----- Original Message ----- From: "dave L" To: gambas-user at lists.sourceforge.net Sent: Tuesday, 13 January, 2009 7:55:10 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-user] Gambas2 components? Hi new to Gambas and have been browsing for other peoples components (3rd party). not had too much luck in finding anything as yet. I'm interested in finding out how to go about creating reusable components and how to install 3rd party ones. Lastly is there a database component (ie one that you can set via properties from within the ide for the DB of choice? have created a test project and said i wanted database components in it but looking at all of them there is no database component (something that allows you to say via properties to setup the connection strings) with the others there looks like there is no visible property to connect the thing to a table or rdbms. I'm thinking of what was/is available in the likes of Delhpi 3 where you had .... a database component a datasource grids and table views thus the DB handled the link to into the db and datasource handled the link to a table with the db and the grid/views dblabels & db textboxes handled the display or entry into fields and db control manages the scrolling through the db records. hope i can get some feed back, regards, dave. Easy recipes for Christmas entertaining on Yahoo!Xtra Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From diego at ...1942... Tue Jan 13 15:23:50 2009 From: diego at ...1942... (=?ISO-8859-1?Q?Diego_Fern=E1ndez?=) Date: Tue, 13 Jan 2009 08:23:50 -0600 Subject: [Gambas-user] Datepicker bug Message-ID: <496CA3F6.8080504@...1942...> hi ppl, i think i have found a bug, System: Ubuntu8.10 Gambas version 3 revision 1794 compilation made with a downgrade to libtool 1.5 In old projects when trying to update all forms, i get a window with this error, It is not posible to safe file path_to_form_here Void key (FForm.SaveOne.771) Tryng to fix it i realise its a problem with a frame component and a datepicker. You can recreate the problem like this, new project, insert a frame and then insert a datepicker inside the frame and try to run the app you get the same error. And also too, when you just insert a datepicker into a form, the form gets the same error but instead of 771 it says 730 please confirm or let me know what i am doing wrong. Thanks PD: Atach two shots of the error i get when trying to save or update forms, and a shot of what happen queh you insert a datepicker to a form. -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot5.png Type: image/png Size: 14284 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot6.png Type: image/png Size: 13900 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot7.png Type: image/png Size: 17152 bytes Desc: not available URL: From ac_rivvin at ...43... Tue Jan 13 15:32:38 2009 From: ac_rivvin at ...43... (Achmad Arifin) Date: Tue, 13 Jan 2009 06:32:38 -0800 (PST) Subject: [Gambas-user] Error creating install package with Autotools Message-ID: <592667.74562.qm@...2047...> Help me. I create gambas program with ubuntu hardy and I want to run it on zenwalk, when I started to build package an error shown: ----------------------------------------------------------- Creating package for Autotools. Making build directory. Creating package... aclocal autoconf automake -a configure.ac:4: installing `./install-sh' configure.ac:4: installing `./missing' Makefile.am: installing `./INSTALL' ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes configure: error: Cannot find .project file for coba4 ! make dist make: *** No rule to make target `dist'.? Stop. The package build has failed. Package.MakeAutotoolsPackage.1048: Out of bounds ---------------------------------------------------------------- I don't understand with this error. Does gambas cannot find .project file, because it is a hidden file? From gambas at ...1... Tue Jan 13 15:50:41 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Jan 2009 15:50:41 +0100 Subject: [Gambas-user] Datepicker bug In-Reply-To: <496CA3F6.8080504@...1942...> References: <496CA3F6.8080504@...1942...> Message-ID: <200901131550.41490.gambas@...1...> On mardi 13 janvier 2009, Diego Fern?ndez wrote: > hi ppl, > > i think i have found a bug, > > System: Ubuntu8.10 > Gambas version 3 > revision 1794 > compilation made with a downgrade to libtool 1.5 > > In old projects when trying to update all forms, i get a window with > this error, > > It is not posible to safe file > > path_to_form_here > > Void key (FForm.SaveOne.771) > > > Tryng to fix it i realise its a problem with a frame component and a > datepicker. > > You can recreate the problem like this, new project, insert a frame and > then insert a datepicker inside the frame and try to run the app you get > the same error. > > And also too, when you just insert a datepicker into a form, the form > gets the same error but instead of 771 it says 730 > > please confirm or let me know what i am doing wrong. > > Thanks > > PD: Atach two shots of the error i get when trying to save or update forms, > and a shot of what happen queh you insert a datepicker to a form. I have just fixed the DatePicker bug in revision #1799. Beware that you will have visual glitches when inserting a compound control like FileView, DirView, FileChooser... in the IDE. Just save the form and reload it to have the expected appearance of the control. Regards, -- Benoit Minisini From gambas at ...1... Tue Jan 13 15:51:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 13 Jan 2009 15:51:16 +0100 Subject: [Gambas-user] Error creating install package with Autotools In-Reply-To: <592667.74562.qm@...2047...> References: <592667.74562.qm@...2047...> Message-ID: <200901131551.16886.gambas@...1...> On mardi 13 janvier 2009, Achmad Arifin wrote: > Help me. I create gambas program with ubuntu hardy and I want to run it on > zenwalk, when I started to build package an error shown: > ----------------------------------------------------------- > Creating package for Autotools. > Making build directory. > Creating package... > > aclocal > autoconf > automake -a > configure.ac:4: installing `./install-sh' > configure.ac:4: installing `./missing' > Makefile.am: installing `./INSTALL' > ./configure > checking for a BSD-compatible install... /usr/bin/install -c > checking whether build environment is sane... yes > checking for a thread-safe mkdir -p... /bin/mkdir -p > checking for gawk... no > checking for mawk... mawk > checking whether make sets $(MAKE)... yes > configure: error: Cannot find .project file for coba4 ! > make dist > make: *** No rule to make target `dist'.? Stop. > > The package build has failed. > Package.MakeAutotoolsPackage.1048: Out of bounds > ---------------------------------------------------------------- > I don't understand with this error. Does gambas cannot find .project file, > because it is a hidden file? > > Please tell the version of Gambas you are using! -- Benoit Minisini From diego at ...1942... Tue Jan 13 15:54:17 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Tue, 13 Jan 2009 08:54:17 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <200901131550.41490.gambas@...1...> References: <496CA3F6.8080504@...1942...> <200901131550.41490.gambas@...1...> Message-ID: <496CAB19.1090606@...1942...> Thanks, that was quick! :-) Benoit Minisini escribi?: > On mardi 13 janvier 2009, Diego Fern?ndez wrote: > >> hi ppl, >> >> i think i have found a bug, >> >> System: Ubuntu8.10 >> Gambas version 3 >> revision 1794 >> compilation made with a downgrade to libtool 1.5 >> >> In old projects when trying to update all forms, i get a window with >> this error, >> >> It is not posible to safe file >> >> path_to_form_here >> >> Void key (FForm.SaveOne.771) >> >> >> Tryng to fix it i realise its a problem with a frame component and a >> datepicker. >> >> You can recreate the problem like this, new project, insert a frame and >> then insert a datepicker inside the frame and try to run the app you get >> the same error. >> >> And also too, when you just insert a datepicker into a form, the form >> gets the same error but instead of 771 it says 730 >> >> please confirm or let me know what i am doing wrong. >> >> Thanks >> >> PD: Atach two shots of the error i get when trying to save or update forms, >> and a shot of what happen queh you insert a datepicker to a form. >> > > I have just fixed the DatePicker bug in revision #1799. Beware that you will > have visual glitches when inserting a compound control like FileView, > DirView, FileChooser... in the IDE. Just save the form and reload it to have > the expected appearance of the control. > > Regards, > > From diego at ...1942... Tue Jan 13 16:22:42 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Tue, 13 Jan 2009 09:22:42 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <496CAB19.1090606@...1942...> References: <496CA3F6.8080504@...1942...> <200901131550.41490.gambas@...1...> <496CAB19.1090606@...1942...> Message-ID: <496CB1C2.5020908@...1942...> Ehh, Well, just finished compiling and testing, and, i have to report that in old projects i just hit the update all forms and everything works as expected, but if i create a new project and insert a datepicker when i trying to run it, it doesnt run and shows a signal 11 error. I attach a debug file follwing the instructions in section reporting a problem on gambas.sf.net Hope that helps. Thanks. Diego Fern?ndez escribi?: > Thanks, that was quick! :-) > > Benoit Minisini escribi?: > >> On mardi 13 janvier 2009, Diego Fern?ndez wrote: >> >> >>> hi ppl, >>> >>> i think i have found a bug, >>> >>> System: Ubuntu8.10 >>> Gambas version 3 >>> revision 1794 >>> compilation made with a downgrade to libtool 1.5 >>> >>> In old projects when trying to update all forms, i get a window with >>> this error, >>> >>> It is not posible to safe file >>> >>> path_to_form_here >>> >>> Void key (FForm.SaveOne.771) >>> >>> >>> Tryng to fix it i realise its a problem with a frame component and a >>> datepicker. >>> >>> You can recreate the problem like this, new project, insert a frame and >>> then insert a datepicker inside the frame and try to run the app you get >>> the same error. >>> >>> And also too, when you just insert a datepicker into a form, the form >>> gets the same error but instead of 771 it says 730 >>> >>> please confirm or let me know what i am doing wrong. >>> >>> Thanks >>> >>> PD: Atach two shots of the error i get when trying to save or update forms, >>> and a shot of what happen queh you insert a datepicker to a form. >>> >>> >> I have just fixed the DatePicker bug in revision #1799. Beware that you will >> have visual glitches when inserting a compound control like FileView, >> DirView, FileChooser... in the IDE. Just save the form and reload it to have >> the expected appearance of the control. >> >> Regards, >> >> >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: debug URL: From ac_rivvin at ...43... Tue Jan 13 16:44:02 2009 From: ac_rivvin at ...43... (Achmad Arifin) Date: Tue, 13 Jan 2009 07:44:02 -0800 (PST) Subject: [Gambas-user] Error creating install package with Autotools In-Reply-To: <200901131551.16886.gambas@...1...> Message-ID: <896702.44901.qm@...2049...> I'm using gambas 2.0.0-1 Please tell the version of Gambas you are using! -- Benoit Minisini From dglnz at ...43... Tue Jan 13 20:49:06 2009 From: dglnz at ...43... (dave L) Date: Tue, 13 Jan 2009 11:49:06 -0800 (PST) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <21434754.post@...1379...> Message-ID: <774171.85085.qm@...1460...> Hi Charles, Yes i've had a look at the code that is in the database example. by the time i went to be i had in my sample app created a link to the DB from cut i cout & pasted into my app from the sample DB. I suppose you have modules you call in that you pass parameters to and it passes back the connection and then other routines you call to fill you form controls with data as shown in the sample refresh form (or whatever it's called). anyways i will have another look at how the table connection is made and recordsets are done. It's the lack of these properties for those actions i was surprised about initially. ps thanks for your reply. dave. --- On Wed, 14/1/09, charlesg wrote: > From: charlesg > Subject: Re: [Gambas-user] Gambas2 components? > To: gambas-user at lists.sourceforge.net > Received: Wednesday, 14 January, 2009, 1:27 AM > Hi, > > Database components are not my cup of tea (I prefer to do > things the hard > way!) but they do exist in Gambas. Have a look at the > database example. > > rgds > -- > View this message in context: > http://www.nabble.com/Gambas2-components--tp21430932p21434754.html > Sent from the gambas-user mailing list archive at > Nabble.com. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Get the world's best email - http://nz.mail.yahoo.com/ From dglnz at ...43... Tue Jan 13 21:06:37 2009 From: dglnz at ...43... (dave L) Date: Tue, 13 Jan 2009 12:06:37 -0800 (PST) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <26604142.327391231846361432.JavaMail.root@...1834...> Message-ID: <316044.44490.qm@...2050...> Hi Garth, Yes I've seen your emails about this Grideditor but was unsure if it was your own creation or something 3rd party you've pull into Gambas (3rd party as in another developer had made it and your interested in doing more with it). I am using Gambas from the K/Ubuntu 8.04 repositories. the version i have is 2.0.00 (at work at present and so cannot confirm properly). Might have a nosey and see if i can find a later version as a deb file somewhere. Back on topic :) As you may have seen from reply to Charles i've got a link to the test DB i'm using (proved this by doing SQL statements and having valid replies) now i need to work out how to display the data to the control. my problem with OOP is that i understand BUT I cannot do it! With ruby (played for 2 months) i was able to put my understanding into action which was great. Not sure how ligit this would be but couldn't you grab a delphi Freeware DB component source and try and converting it to play nice with GAMBAS? that way you have a known working component that needs conversion. just a simpletons thought. lastly where and how do i grab this grideditor as for me just having data displayed would be nice to have. I don't think i'd mind to sql inserts into the DB - ie user enters data into textboxes etc behind the scene i to insert into table values .... type sql statements. Yes i know i might have it wrong as it's been at least 3 years since i did any real sql work - note programming isn't my paid job tho i did want it to be. cheers, dave. --- On Wed, 14/1/09, Gareth Bult wrote: > From: Gareth Bult > Subject: Re: [Gambas-user] Gambas2 components? > To: "mailing list for gambas users" > Received: Wednesday, 14 January, 2009, 12:32 AM > Ok, > > I was sort of waiting for the man to comment .. however, > it's an area of interest for myself. > Apologies in advance if this feels a little negative, > it's not intentional. > > >I'm interested in finding out how to go about > creating reusable components and how to install 3rd party > ones. > > Me too! > There are reasons why you don't find many I'm > afraid .. > > >Lastly is there a database component (ie one that you > can set via properties from within the ide for the DB of > choice? > > AhHa! Another ex-Delphi/Kylix programmer .. ;-) > > No. (not yet) > > >I'm thinking of what was/is available in the likes > of Delhpi 3 where you had .... > > a database component > > a datasource > > grids and table views > > The closest thing you're going to get for the moment is > GridEditor. > http://gambasrad.org/software/gambas-grideditor > > The reason this is still a flakey looking add-on is because > it's written as a Gambas component (in Gambas) and as a > result, the facilities to render the component inside the > IDE (live) don't exist. That said, I'm using > GridEditor in a number of (substantial) applications as in > the context of what it does, I'm unaware of any bugs and > performance-wise it works pretty well. (it has no problems > editing tables [select's] with tens of thousands of > rows) It also handles master-slave daisy chaining for > dynamic / graphical updates. > > [Note; not that gambas written components are flakey > specifically, just one's ability to present the > component / properties makes the component look less than > professional] > > That said, I'm currently writing my first "C" > component and once I have it finished, I'm going to have > a crack (again) at getting GridEditor to do what I (and you) > think it ought to .. :) > > hth > > Gareth. > > > ----- Original Message ----- > From: "dave L" > To: gambas-user at lists.sourceforge.net > Sent: Tuesday, 13 January, 2009 7:55:10 AM GMT +00:00 GMT > Britain, Ireland, Portugal > Subject: [Gambas-user] Gambas2 components? > > Hi new to Gambas and have been browsing for other peoples > components (3rd party). > not had too much luck in finding anything as yet. > > I'm interested in finding out how to go about creating > reusable components and how to install 3rd party ones. > > Lastly is there a database component (ie one that you can > set via properties from within the ide for the DB of choice? > > have created a test project and said i wanted database > components in it but looking at all of them there is no > database component (something that allows you to say via > properties to setup the connection strings) > with the others there looks like there is no visible > property to connect the thing to a table or rdbms. > > I'm thinking of what was/is available in the likes of > Delhpi 3 where you had .... > a database component > a datasource > grids and table views > > thus the DB handled the link to into the db and datasource > handled the link to a table with the db and the grid/views > dblabels & db textboxes handled the display or entry > into fields and db control manages the scrolling through the > db records. > > hope i can get some feed back, > > regards, > > dave. > > > > Easy recipes for Christmas entertaining on Yahoo!Xtra > Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Managing Director, Encryptec Limited > Tel: 0845 5082719, Mob: 0785 3305393 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's > Terms and Conditions of Business, which are available upon > request. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Get the world's best email - http://nz.mail.yahoo.com/ From rterry at ...1946... Tue Jan 13 22:11:48 2009 From: rterry at ...1946... (richard terry) Date: Wed, 14 Jan 2009 08:11:48 +1100 Subject: [Gambas-user] Datepicker bug In-Reply-To: <200901131550.41490.gambas@...1...> References: <496CA3F6.8080504@...1942...> <200901131550.41490.gambas@...1...> Message-ID: <200901140811.48571.rterry@...1946...> On Wed, 14 Jan 2009 01:50:41 am Benoit Minisini wrote: Thanks Fernandez/Benoit for detecting/fixing that. Its driven me crazy for days trying to find why my automated database setup program wouldn't run any more with that error. I'd tried pulling everything of the wizard control by control to no avail. I'd put a date-picker on a page ages ago and hidden behind another control as I never used it. Works now with 1799. Regards Richard > On mardi 13 janvier 2009, Diego Fern?ndez wrote: > > hi ppl, > > > > i think i have found a bug, > > > > System: Ubuntu8.10 > > Gambas version 3 > > revision 1794 > > compilation made with a downgrade to libtool 1.5 > > > > In old projects when trying to update all forms, i get a window with > > this error, > > > > It is not posible to safe file > > > > path_to_form_here > > > > Void key (FForm.SaveOne.771) > > > > > > Tryng to fix it i realise its a problem with a frame component and a > > datepicker. > > > > You can recreate the problem like this, new project, insert a frame and > > then insert a datepicker inside the frame and try to run the app you get > > the same error. > > > > And also too, when you just insert a datepicker into a form, the form > > gets the same error but instead of 771 it says 730 > > > > please confirm or let me know what i am doing wrong. > > > > Thanks > > > > PD: Atach two shots of the error i get when trying to save or update > > forms, and a shot of what happen queh you insert a datepicker to a form. > > I have just fixed the DatePicker bug in revision #1799. Beware that you > will have visual glitches when inserting a compound control like FileView, > DirView, FileChooser... in the IDE. Just save the form and reload it to > have the expected appearance of the control. > > Regards, From jussi.lahtinen at ...626... Tue Jan 13 23:19:38 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 14 Jan 2009 00:19:38 +0200 Subject: [Gambas-user] Gambas3 compilation problem In-Reply-To: <200901052126.15910.gambas@...1...> References: <384d3900812100950j12b2bd9bibb5e7c664d8d483b@...627...> <384d3900901041105h5dd91134kc129409810ad0611@...627...> <384d3900901051215kdf08156l72e734ed4e3f8d27@...627...> <200901052126.15910.gambas@...1...> Message-ID: <384d3900901131419g2a1d281cr2d83100217c2b084@...627...> Hi! Some progress again... I managed to compile Gambas3 (revision 1799) with these steps (ubuntu 8.10 64bit): 1. sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_amd64.deb 2. svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ 3. autoreconf --install 4. ./configure -C 5. make 6. sudo make install So only step 3 has changed. (same without step 1 [with libtool 2.2.4] not tested jet) Comments? Thought I'm not completely sure everything is ok. Every time I close Gambas3, I get this to terminal; Segmentation fault I made very simple test project, and it's running ok. But when I close it, it raises signal 11. That happens only when running it on IDE, when I run it as executable, no error message window. >From terminal I have same error than from IDE it self; $ gbr3 testi.gambas Segmentation fault This problem is maybe only on my installation..? Is signal 11 same as segmentation fault? Then more general issue... Compatibility between version 2 and 3. I noticed that forms made with Gambas2 cannot be opened with Gambas3. I'm working on pretty big project which is originally wrote with vb6. While waiting Gambas3 I have been converting that project to Gambas2. Now I'm starting to think that was mistake... Is there going to be migrator/converter form version 2 to 3? Main reason I need Gambas3 is ByRef command and pointers... Thanks! Jussi On Mon, Jan 5, 2009 at 10:26 PM, Benoit Minisini wrote: > On lundi 5 janvier 2009, Jussi Lahtinen wrote: >> >> BTW maybe README section should link to http://gambasdoc.org/help/install ? >> > > Done! > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gareth at ...1689... Tue Jan 13 22:50:38 2009 From: gareth at ...1689... (Gareth Bult) Date: Tue, 13 Jan 2009 21:50:38 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <316044.44490.qm@...2050...> Message-ID: <25594647.330381231883438395.JavaMail.root@...1834...> >Not sure how ligit this would be but couldn't you grab a delphi Freeware DB component >source and try and converting it to play nice with GAMBAS? You "could". The DB component is however very complex and not required, most of what you need is already in Gambas! GridEditor was designed to do as much (or more) as the Delphi Equivalent, and my DB module (which subclasses the Gambas Connection component) is tiny .. thus the code is a fraction of the size / complexity of the Delphi stuff. >lastly where and how do i grab this grideditor as for me just having data displayed would be nice to have. >From the link listed on my last email (?!) >I don't think i'd mind to sql inserts into the DB GridEditor does *most* of this for you, as per the Delphi modules. My videophone component now has two-way voice and one-way video, so I'm nearly finished .. then I'll get back to GridEditor .. that is if customers would stop giving me real work to do .. don't they know there's a recession on !! ;-) hth Gareth. ----- Original Message ----- From: "dave L" To: "mailing list for gambas users" Sent: Tuesday, 13 January, 2009 8:06:37 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? Hi Garth, Yes I've seen your emails about this Grideditor but was unsure if it was your own creation or something 3rd party you've pull into Gambas (3rd party as in another developer had made it and your interested in doing more with it). I am using Gambas from the K/Ubuntu 8.04 repositories. the version i have is 2.0.00 (at work at present and so cannot confirm properly). Might have a nosey and see if i can find a later version as a deb file somewhere. Back on topic :) As you may have seen from reply to Charles i've got a link to the test DB i'm using (proved this by doing SQL statements and having valid replies) now i need to work out how to display the data to the control. my problem with OOP is that i understand BUT I cannot do it! With ruby (played for 2 months) i was able to put my understanding into action which was great. Not sure how ligit this would be but couldn't you grab a delphi Freeware DB component source and try and converting it to play nice with GAMBAS? that way you have a known working component that needs conversion. just a simpletons thought. lastly where and how do i grab this grideditor as for me just having data displayed would be nice to have. I don't think i'd mind to sql inserts into the DB - ie user enters data into textboxes etc behind the scene i to insert into table values .... type sql statements. Yes i know i might have it wrong as it's been at least 3 years since i did any real sql work - note programming isn't my paid job tho i did want it to be. cheers, dave. --- On Wed, 14/1/09, Gareth Bult wrote: > From: Gareth Bult > Subject: Re: [Gambas-user] Gambas2 components? > To: "mailing list for gambas users" > Received: Wednesday, 14 January, 2009, 12:32 AM > Ok, > > I was sort of waiting for the man to comment .. however, > it's an area of interest for myself. > Apologies in advance if this feels a little negative, > it's not intentional. > > >I'm interested in finding out how to go about > creating reusable components and how to install 3rd party > ones. > > Me too! > There are reasons why you don't find many I'm > afraid .. > > >Lastly is there a database component (ie one that you > can set via properties from within the ide for the DB of > choice? > > AhHa! Another ex-Delphi/Kylix programmer .. ;-) > > No. (not yet) > > >I'm thinking of what was/is available in the likes > of Delhpi 3 where you had .... > > a database component > > a datasource > > grids and table views > > The closest thing you're going to get for the moment is > GridEditor. > http://gambasrad.org/software/gambas-grideditor > > The reason this is still a flakey looking add-on is because > it's written as a Gambas component (in Gambas) and as a > result, the facilities to render the component inside the > IDE (live) don't exist. That said, I'm using > GridEditor in a number of (substantial) applications as in > the context of what it does, I'm unaware of any bugs and > performance-wise it works pretty well. (it has no problems > editing tables [select's] with tens of thousands of > rows) It also handles master-slave daisy chaining for > dynamic / graphical updates. > > [Note; not that gambas written components are flakey > specifically, just one's ability to present the > component / properties makes the component look less than > professional] > > That said, I'm currently writing my first "C" > component and once I have it finished, I'm going to have > a crack (again) at getting GridEditor to do what I (and you) > think it ought to .. :) > > hth > > Gareth. > > > ----- Original Message ----- > From: "dave L" > To: gambas-user at lists.sourceforge.net > Sent: Tuesday, 13 January, 2009 7:55:10 AM GMT +00:00 GMT > Britain, Ireland, Portugal > Subject: [Gambas-user] Gambas2 components? > > Hi new to Gambas and have been browsing for other peoples > components (3rd party). > not had too much luck in finding anything as yet. > > I'm interested in finding out how to go about creating > reusable components and how to install 3rd party ones. > > Lastly is there a database component (ie one that you can > set via properties from within the ide for the DB of choice? > > have created a test project and said i wanted database > components in it but looking at all of them there is no > database component (something that allows you to say via > properties to setup the connection strings) > with the others there looks like there is no visible > property to connect the thing to a table or rdbms. > > I'm thinking of what was/is available in the likes of > Delhpi 3 where you had .... > a database component > a datasource > grids and table views > > thus the DB handled the link to into the db and datasource > handled the link to a table with the db and the grid/views > dblabels & db textboxes handled the display or entry > into fields and db control manages the scrolling through the > db records. > > hope i can get some feed back, > > regards, > > dave. > > > > Easy recipes for Christmas entertaining on Yahoo!Xtra > Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Managing Director, Encryptec Limited > Tel: 0845 5082719, Mob: 0785 3305393 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's > Terms and Conditions of Business, which are available upon > request. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Get the world's best email - http://nz.mail.yahoo.com/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gareth at ...1689... Wed Jan 14 04:09:29 2009 From: gareth at ...1689... (Gareth Bult) Date: Wed, 14 Jan 2009 03:09:29 +0000 (GMT) Subject: [Gambas-user] Gambas3 compilation problem In-Reply-To: <384d3900901131419g2a1d281cr2d83100217c2b084@...627...> Message-ID: <25629832.330621231902569343.JavaMail.root@...1834...> Hi, I'm using SVN with libtool 1.5.26 .. (Ubuntu 8.10) , seems to compile and work (generally) .. Gareth. ----- Original Message ----- From: "Jussi Lahtinen" To: "mailing list for gambas users" Sent: Tuesday, 13 January, 2009 10:19:38 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas3 compilation problem Hi! Some progress again... I managed to compile Gambas3 (revision 1799) with these steps (ubuntu 8.10 64bit): 1. sudo dpkg --force-downgrade -i libtool_1.5.26-1ubuntu1_amd64.deb 2. svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ 3. autoreconf --install 4. ./configure -C 5. make 6. sudo make install So only step 3 has changed. (same without step 1 [with libtool 2.2.4] not tested jet) Comments? Thought I'm not completely sure everything is ok. Every time I close Gambas3, I get this to terminal; Segmentation fault I made very simple test project, and it's running ok. But when I close it, it raises signal 11. That happens only when running it on IDE, when I run it as executable, no error message window. >From terminal I have same error than from IDE it self; $ gbr3 testi.gambas Segmentation fault This problem is maybe only on my installation..? Is signal 11 same as segmentation fault? Then more general issue... Compatibility between version 2 and 3. I noticed that forms made with Gambas2 cannot be opened with Gambas3. I'm working on pretty big project which is originally wrote with vb6. While waiting Gambas3 I have been converting that project to Gambas2. Now I'm starting to think that was mistake... Is there going to be migrator/converter form version 2 to 3? Main reason I need Gambas3 is ByRef command and pointers... Thanks! Jussi On Mon, Jan 5, 2009 at 10:26 PM, Benoit Minisini wrote: > On lundi 5 janvier 2009, Jussi Lahtinen wrote: >> >> BTW maybe README section should link to http://gambasdoc.org/help/install ? >> > > Done! > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From eilert-sprachen at ...221... Wed Jan 14 08:42:03 2009 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 14 Jan 2009 08:42:03 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200901121616.08435.gambas@...1...> References: <4965C7AE.8030501@...221...> <200901121616.08435.gambas@...1...> Message-ID: <496D974B.4040304@...221...> Benoit Minisini schrieb: > On jeudi 8 janvier 2009, Rolf-Werner Eilert wrote: >> Hi everyone! >> >> When converting one of my apps from Gambas1 to Gambas2, I found 2 minor >> items: >> >> 1. The status of Tool Box Collection is not saved and always starts as >> "switched off" when starting the Gambas2 IDE. But maybe this is wanted? > > I don't know if I wanted that. Its status is just not saved, so it starts > hidden. > >> 2. The last (rightmost) column of a TableView is stretched to the >> ultimate width of the tableview and ignores if a Width value is given >> for it. >> >> Well, it just looks sort of ugly, but I found it worth mentioning anyway. > > The width of the last column is ignored only if it is smaller than the > GridView/TableView contents. I don't find that ugly. On the contrary, I did > that because I found ugly when there is space between the last column and the > right border of the GridView. > > Regards, > Thinking it over, I still feel that it should be the programmer's choice what width the last column should have. Implementing it as an option (Property: LastColumnStretch or so) would be nice, although it would add to featurism of course. But nobody else here seems to be interested in this topic, and nobody commented on my screenshots (or didn't the pictures get through?). So I don't want to overstress this. On the other hand, imagine what this looks like when you start input within such a table: a column only a single letter wide or a few, and the input line reaches out so far to the right... That IS ugly, isn't it? Rolf From dglnz at ...43... Wed Jan 14 09:32:10 2009 From: dglnz at ...43... (dave L) Date: Wed, 14 Jan 2009 00:32:10 -0800 (PST) Subject: [Gambas-user] Gambas2 components? References: <26604142.327391231846361432.JavaMail.root@...1834...> Message-ID: <482041.21552.qm@...2051...> Hi Garth, got the version listed on the website shown below and able to follow it BUT i don't use mysql but postgres but it's interesting to see what you've done by walking thorough your code as far as i can. Been thinking here and please you or anyone else correct me but couldn't this be done? 1. using the DB demo form and code. import that into your project enter connection strings to enable a valid connection to a RDBMS. having the form hidden at run-time so it's available to use but not visible to the user. 2. using the Rrequest form code as an object (thus allowing multiple table connections) and having the recordset be returned back to the user code for further actions. that could reduce a lot of repeatitive coding for every project. eg. for every DB Control in a programmers project you would either share the recordset (thus a move in 1 control would be the same move in the others) object OR create/have new recordsets for each DB Control. 3. control of writting data into the tables could also be managed via the code within the Frequest code. from my observations it looks doable and with my limited coding knowledge of Gambas be easily incorporated into the next build cycle. ***** snipped ***** The closest thing you're going to get for the moment is GridEditor. http://gambasrad.org/software/gambas-grideditor ***** snipped ***** Get the world's best email - http://nz.mail.yahoo.com/ From gareth at ...1689... Wed Jan 14 09:53:09 2009 From: gareth at ...1689... (Gareth Bult) Date: Wed, 14 Jan 2009 08:53:09 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <482041.21552.qm@...2051...> Message-ID: <12888609.330921231923189415.JavaMail.root@...1834...> Mmm, Maybe it's me, but I'm not seeing anything it doesn't already do ... ??? All objects / returned data etc are available to the user .. true it's via method and property calls, but this is the way it should be in an OOP system .. we don't expose raw data(!) Gareth. ----- Original Message ----- From: "dave L" To: "mailing list for gambas users" Sent: Wednesday, 14 January, 2009 8:32:10 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? Hi Garth, got the version listed on the website shown below and able to follow it BUT i don't use mysql but postgres but it's interesting to see what you've done by walking thorough your code as far as i can. Been thinking here and please you or anyone else correct me but couldn't this be done? 1. using the DB demo form and code. import that into your project enter connection strings to enable a valid connection to a RDBMS. having the form hidden at run-time so it's available to use but not visible to the user. 2. using the Rrequest form code as an object (thus allowing multiple table connections) and having the recordset be returned back to the user code for further actions. that could reduce a lot of repeatitive coding for every project. eg. for every DB Control in a programmers project you would either share the recordset (thus a move in 1 control would be the same move in the others) object OR create/have new recordsets for each DB Control. 3. control of writting data into the tables could also be managed via the code within the Frequest code. from my observations it looks doable and with my limited coding knowledge of Gambas be easily incorporated into the next build cycle. ***** snipped ***** The closest thing you're going to get for the moment is GridEditor. http://gambasrad.org/software/gambas-grideditor ***** snipped ***** Get the world's best email - http://nz.mail.yahoo.com/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From dglnz at ...43... Wed Jan 14 10:38:50 2009 From: dglnz at ...43... (dave L) Date: Wed, 14 Jan 2009 01:38:50 -0800 (PST) Subject: [Gambas-user] Gambas2 components? References: <12888609.330921231923189415.JavaMail.root@...1834...> Message-ID: <263645.67856.qm@...2052...> ________________________________ rom: Gareth Bult To: mailing list for gambas users Sent: Wednesday, 14 January, 2009 9:53:09 PM Subject: Re: [Gambas-user] Gambas2 components? Mmm, Maybe it's me, but I'm not seeing anything it doesn't already do ... ??? Agreed except that I couldn't get your app running due to me not having mysql - bummer!!! so i couldn't actually get the project running that i downloaded from the url you gave me. All objects / returned data etc are available to the user .. true it's via method and property calls, but this is the way it should be in an OOP system .. we don't expose raw data(!) what i was suggesting was perhaps an intermediate step until you get your program working right. But i tried it as a sample by making the visible property to false and - got to form_open statement and died!!! So that idea without refinement is dead! another thing with your editor is that it's filled with mysql specific statements (my ignorance is showing here) or do mysql & postgres share similar properties? dave. Gareth. ----- Original Message ----- From: "dave L" To: "mailing list for gambas users" Sent: Wednesday, 14 January, 2009 8:32:10 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? Hi Garth, got the version listed on the website shown below and able to follow it BUT i don't use mysql but postgres but it's interesting to see what you've done by walking thorough your code as far as i can. Been thinking here and please you or anyone else correct me but couldn't this be done? 1. using the DB demo form and code. import that into your project enter connection strings to enable a valid connection to a RDBMS. having the form hidden at run-time so it's available to use but not visible to the user. 2. using the Rrequest form code as an object (thus allowing multiple table connections) and having the recordset be returned back to the user code for further actions. that could reduce a lot of repeatitive coding for every project. eg. for every DB Control in a programmers project you would either share the recordset (thus a move in 1 control would be the same move in the others) object OR create/have new recordsets for each DB Control. 3. control of writting data into the tables could also be managed via the code within the Frequest code. from my observations it looks doable and with my limited coding knowledge of Gambas be easily incorporated into the next build cycle. ***** snipped ***** The closest thing you're going to get for the moment is GridEditor. http://gambasrad.org/software/gambas-grideditor ***** snipped ***** Get the world's best email - http://nz.mail.yahoo.com/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Easy recipes for Christmas entertaining on Yahoo!Xtra Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes From ronstk at ...239... Wed Jan 14 11:02:29 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 14 Jan 2009 11:02:29 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <496D974B.4040304@...221...> References: <4965C7AE.8030501@...221...> <200901121616.08435.gambas@...1...> <496D974B.4040304@...221...> Message-ID: <200901141102.29955.ronstk@...239...> On Wednesday 14 January 2009, Rolf-Werner Eilert wrote: > Thinking it over, I still feel that it should be the programmer's choice > what width the last column should have. Implementing it as an option > (Property: LastColumnStretch or so) would be nice, although it would add > to featurism of course. > I agree with this. A property to enable/disable the auto fill last column would be very nice > But nobody else here seems to be interested in this topic, and nobody > commented on my screenshots (or didn't the pictures get through?). So I > don't want to overstress this. > I found the screenshot explaining it just the right way. > > On the other hand, imagine what this looks like when you start input > within such a table: a column only a single letter wide or a few, and > the input line reaches out so far to the right... That IS ugly, isn't it? > > Rolf > Best regards, Ron_1st -- From ron at ...1740... Wed Jan 14 11:05:42 2009 From: ron at ...1740... (Ron) Date: Wed, 14 Jan 2009 11:05:42 +0100 Subject: [Gambas-user] Two minor "bugs" In-Reply-To: <200901141102.29955.ronstk@...239...> References: <4965C7AE.8030501@...221...> <200901121616.08435.gambas@...1...> <496D974B.4040304@...221...> <200901141102.29955.ronstk@...239...> Message-ID: <496DB8F6.6020900@...1740...> I find the default 'autostretch mode' now very nice and handy, if there comes a flag I prefer to have this default on/enabled. Regards, Ron_2nd. > On Wednesday 14 January 2009, Rolf-Werner Eilert wrote: > > >> Thinking it over, I still feel that it should be the programmer's choice >> what width the last column should have. Implementing it as an option >> (Property: LastColumnStretch or so) would be nice, although it would add >> to featurism of course. >> >> > I agree with this. > A property to enable/disable the auto fill last column would be very nice > > > > >> But nobody else here seems to be interested in this topic, and nobody >> commented on my screenshots (or didn't the pictures get through?). So I >> don't want to overstress this. >> >> > I found the screenshot explaining it just the right way. > > >> On the other hand, imagine what this looks like when you start input >> within such a table: a column only a single letter wide or a few, and >> the input line reaches out so far to the right... That IS ugly, isn't it? >> >> Rolf >> >> > > > > Best regards, > > Ron_1st > > From gareth at ...1689... Wed Jan 14 11:13:01 2009 From: gareth at ...1689... (Gareth Bult) Date: Wed, 14 Jan 2009 10:13:01 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <24311968.331381231927819131.JavaMail.root@...1834...> Message-ID: <31845923.331401231927981159.JavaMail.root@...1834...> Erm, >what i was suggesting was perhaps an intermediate step until you get your program working right. It's been "working right" for quite a long time .. my business relies on it "working right" .. (!) >another thing with your editor is that it's filled with mysql specific statements For example? Do yourself a favour - try MySQL! Gareth. ----- Original Message ----- From: "dave L" To: "mailing list for gambas users" Sent: Wednesday, 14 January, 2009 9:38:50 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? ________________________________ rom: Gareth Bult To: mailing list for gambas users Sent: Wednesday, 14 January, 2009 9:53:09 PM Subject: Re: [Gambas-user] Gambas2 components? Mmm, Maybe it's me, but I'm not seeing anything it doesn't already do ... ??? Agreed except that I couldn't get your app running due to me not having mysql - bummer!!! so i couldn't actually get the project running that i downloaded from the url you gave me. All objects / returned data etc are available to the user .. true it's via method and property calls, but this is the way it should be in an OOP system .. we don't expose raw data(!) what i was suggesting was perhaps an intermediate step until you get your program working right. But i tried it as a sample by making the visible property to false and - got to form_open statement and died!!! So that idea without refinement is dead! another thing with your editor is that it's filled with mysql specific statements (my ignorance is showing here) or do mysql & postgres share similar properties? dave. Gareth. ----- Original Message ----- From: "dave L" To: "mailing list for gambas users" Sent: Wednesday, 14 January, 2009 8:32:10 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? Hi Garth, got the version listed on the website shown below and able to follow it BUT i don't use mysql but postgres but it's interesting to see what you've done by walking thorough your code as far as i can. Been thinking here and please you or anyone else correct me but couldn't this be done? 1. using the DB demo form and code. import that into your project enter connection strings to enable a valid connection to a RDBMS. having the form hidden at run-time so it's available to use but not visible to the user. 2. using the Rrequest form code as an object (thus allowing multiple table connections) and having the recordset be returned back to the user code for further actions. that could reduce a lot of repeatitive coding for every project. eg. for every DB Control in a programmers project you would either share the recordset (thus a move in 1 control would be the same move in the others) object OR create/have new recordsets for each DB Control. 3. control of writting data into the tables could also be managed via the code within the Frequest code. from my observations it looks doable and with my limited coding knowledge of Gambas be easily incorporated into the next build cycle. ***** snipped ***** The closest thing you're going to get for the moment is GridEditor. http://gambasrad.org/software/gambas-grideditor ***** snipped ***** Get the world's best email - http://nz.mail.yahoo.com/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Easy recipes for Christmas entertaining on Yahoo!Xtra Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From ac_rivvin at ...43... Wed Jan 14 12:07:49 2009 From: ac_rivvin at ...43... (Achmad Arifin) Date: Wed, 14 Jan 2009 03:07:49 -0800 (PST) Subject: [Gambas-user] Error creating install package with Autotools Message-ID: <625751.20112.qm@...2053...> >Maybe you should try the latest version, or at least a more recent one?-- > Benoit Minisini I have installed gambas 2.8.2-1, but same error occur: ------------------------------------------------- Creating package for Autotools. Making build directory. Creating package... aclocal autoconf automake -a configure.ac: installing `./install-sh' configure.ac: installing `./missing' Makefile.am: installing `./INSTALL' ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes configure: error: Cannot find .project file for coba3 ! make dist make: *** No rule to make target `dist'. Stop. The package build has failed. Package.MakeAutotoolsPackage.1190: Out of bounds ------------------------------------------------- I used automake version 1.9, 1.8, 1.7. Autoconf 2.61-4. Ubuntu 8.04 From jaap_cramer at ...67... Wed Jan 14 12:48:36 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 14 Jan 2009 12:48:36 +0100 Subject: [Gambas-user] Open GL help needed Message-ID: Hi I've written a litte program wich uses Open GL. I draw the triangle. I discovered some strange behaviour. Nothing is drawn, unless I set the focus on something else, and then on the GlArea. Which is strange, i think. However. That is not my MAIN problem. I dont understand how to use the Gl.Rotatef function. The button 'rotate' switches this function on and off. When it's Off, the triangle is correctly draw. When the value in TRUE, something starts moving, but it is to close: a huge green area, and after a little while it moves left, and then comes back... It looks like a rotation but to close. I hope my description is clear, and someone is able to help me. I use Gambas 2.7, Ubuntu 8.10 And the GambasGears demo is working properly (After I put the gb.sdl.info and gb.sdl.list in /usr/share/gambas2/info. Ubuntu package error). Jaap _________________________________________________________________ Nieuw: nu ook chatten op je mobiel! http://www.overaljevriendenbijje.nl/#superdeal -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenGLTest-0.0.1.tar.gz Type: application/x-gzip Size: 8613 bytes Desc: not available URL: From jaap_cramer at ...67... Wed Jan 14 12:56:22 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 14 Jan 2009 12:56:22 +0100 Subject: [Gambas-user] Open GL help needed In-Reply-To: References: Message-ID: Hi! I've written a litte program wich uses Open GL. I draw the triangle. I discovered some strange behaviour. Nothing is drawn, unless I set the focus on something else, and then on the GlArea. Which is strange, i think. However. That is not my MAIN problem. I dont understand how to use the Gl.Rotatef function. The button 'rotate' switches this function on and off. When it's Off, the triangle is correctly draw. When the value in TRUE, something starts moving, but it is to close: a huge green area, and after a little while it moves left, and then comes back... It looks like a rotation but to close. I hope my description is clear, and someone is able to help me. I use Gambas 2.7, Ubuntu 8.10 And the GambasGears demo is working properly (After I put the gb.sdl.info and gb.sdl.list in /usr/share/gambas2/info. Ubuntu package error). Jaap _________________________________________________________________ Download de nieuwste emoticons voor in je Messenger http://www.msnmessengerexperience.nl/chuck/ -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenGLTest-0.0.1.tar.gz Type: application/x-gzip Size: 8613 bytes Desc: not available URL: From gambas at ...1... Wed Jan 14 14:55:36 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 14:55:36 +0100 Subject: [Gambas-user] Gambas2 components? In-Reply-To: <774171.85085.qm@...1460...> References: <774171.85085.qm@...1460...> Message-ID: <200901141455.36751.gambas@...1...> On mardi 13 janvier 2009, dave L wrote: > Hi Charles, > > Yes i've had a look at the code that is in the database example. > > by the time i went to be i had in my sample app created a link to the DB > from cut i cout & pasted into my app from the sample DB. > > I suppose you have modules you call in that you pass parameters to and it > passes back the connection and then other routines you call to fill you > form controls with data as shown in the sample refresh form (or whatever > it's called). > > anyways i will have another look at how the table connection is made and > recordsets are done. It's the lack of these properties for those actions i > was surprised about initially. > > ps thanks for your reply. > > dave. > Do you really look at the "Database" example? The standard database-bound controls of Gambas are located in the gb.db.form component. They are somewhat sparse, but here is a quick description: 1) A DataSource container. You specifiy your request there (usually a table), and all data controls inserted in the container will use it. 2) If you put a DataSource A inside another DataSource B, then the DataSource A is filtered by the primary key of the DataSource B. 3) You have a DataControl control, that allows to edit a field by using a control that depends on the field datatype. 4) You have a DataCombo control, that is a ComboBox that displays an integer field by using it as a primary key on another tabl. 5) You have a DataView, that allows to show the contents of a DataSource in a GridView. 6) You have a DataBrowser, that allows to browse its parent DataSource by using a DataView and some buttons. 7) There is a DataComboMulti too in Gambas 3, but I didn't write nor tested it. 8) Theses controls are database neutral. They work with mysql, postgresql, sqlite, firebird... 9) The DataSource is "intelligent". It only request the records from the database by small packets. This way, you can put Internet between your application and the database, and things are perfectly usuable. Some caveats: 10) All table must have a primary key. 11) All DataSource use the current opened connection. Having some sort of "Connection" property to have two DataSource controls on different connection is planned. 12) I think that Gareth could have made his control database neutral. But it is his code, so he is the boss. Regards, -- Benoit Minisini From gambas at ...1... Wed Jan 14 15:00:40 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 15:00:40 +0100 Subject: [Gambas-user] Gambas2 components? In-Reply-To: <200901141455.36751.gambas@...1...> References: <774171.85085.qm@...1460...> <200901141455.36751.gambas@...1...> Message-ID: <200901141500.40399.gambas@...1...> On mercredi 14 janvier 2009, Benoit Minisini wrote: > On mardi 13 janvier 2009, dave L wrote: > > Hi Charles, > > > > Yes i've had a look at the code that is in the database example. > > > > by the time i went to be i had in my sample app created a link to the DB > > from cut i cout & pasted into my app from the sample DB. > > > > I suppose you have modules you call in that you pass parameters to and it > > passes back the connection and then other routines you call to fill you > > form controls with data as shown in the sample refresh form (or whatever > > it's called). > > > > anyways i will have another look at how the table connection is made and > > recordsets are done. It's the lack of these properties for those actions > > i was surprised about initially. > > > > ps thanks for your reply. > > > > dave. > > Do you really look at the "Database" example? > > The standard database-bound controls of Gambas are located in the > gb.db.form component. > > They are somewhat sparse, but here is a quick description: > > 1) A DataSource container. You specifiy your request there (usually a > table), and all data controls inserted in the container will use it. > > 2) If you put a DataSource A inside another DataSource B, then the > DataSource A is filtered by the primary key of the DataSource B. > > 3) You have a DataControl control, that allows to edit a field by using a > control that depends on the field datatype. > > 4) You have a DataCombo control, that is a ComboBox that displays an > integer field by using it as a primary key on another tabl. > > 5) You have a DataView, that allows to show the contents of a DataSource in > a GridView. > > 6) You have a DataBrowser, that allows to browse its parent DataSource by > using a DataView and some buttons. > > 7) There is a DataComboMulti too in Gambas 3, but I didn't write nor tested > it. > > 8) Theses controls are database neutral. They work with mysql, postgresql, > sqlite, firebird... > > 9) The DataSource is "intelligent". It only request the records from the > database by small packets. This way, you can put Internet between your > application and the database, and things are perfectly usuable. > > Some caveats: > > 10) All table must have a primary key. > > 11) All DataSource use the current opened connection. Having some sort > of "Connection" property to have two DataSource controls on different > connection is planned. > > 12) I think that Gareth could have made his control database neutral. But > it is his code, so he is the boss. > > Regards, Mmm. Sorry for the language mistakes... :-( -- Benoit Minisini From gambas at ...1... Wed Jan 14 15:01:31 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 15:01:31 +0100 Subject: [Gambas-user] Datepicker bug In-Reply-To: <496CB1C2.5020908@...1942...> References: <496CA3F6.8080504@...1942...> <496CAB19.1090606@...1942...> <496CB1C2.5020908@...1942...> Message-ID: <200901141501.31300.gambas@...1...> On mardi 13 janvier 2009, Diego Fern?ndez wrote: > Ehh, > > Well, just finished compiling and testing, and, i have to report that in > old projects i just hit the update all forms and everything works as > expected, but if i create a new project and insert a datepicker when i > trying to run it, it doesnt run and shows a signal 11 error. > > I attach a debug file follwing the instructions in section reporting a > problem on gambas.sf.net > > Hope that helps. > > Thanks. > It should be fixed in revision #1800. Regards, -- Benoit Minisini From diego at ...1942... Wed Jan 14 15:38:35 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Wed, 14 Jan 2009 08:38:35 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <200901141501.31300.gambas@...1...> References: <496CA3F6.8080504@...1942...> <496CAB19.1090606@...1942...> <496CB1C2.5020908@...1942...> <200901141501.31300.gambas@...1...> Message-ID: <496DF8EB.4060801@...1942...> Hi, the signal 11 segmentation is no more, BUT, now when creating a new project, then i insert a datepicker, when running it and try to pick a date, the dialog appears in the upper left corner of the screen no matter where the form is, i am ataching a screenshot so you can check. tell me if i am doing something wrong. thanks. Benoit Minisini escribi?: > On mardi 13 janvier 2009, Diego Fern?ndez wrote: > >> Ehh, >> >> Well, just finished compiling and testing, and, i have to report that in >> old projects i just hit the update all forms and everything works as >> expected, but if i create a new project and insert a datepicker when i >> trying to run it, it doesnt run and shows a signal 11 error. >> >> I attach a debug file follwing the instructions in section reporting a >> problem on gambas.sf.net >> >> Hope that helps. >> >> Thanks. >> >> > > It should be fixed in revision #1800. > > Regards, > > -------------- next part -------------- A non-text attachment was scrubbed... Name: datepicker.png Type: image/png Size: 131208 bytes Desc: not available URL: From gambas at ...1... Wed Jan 14 15:44:08 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 15:44:08 +0100 Subject: [Gambas-user] Datepicker bug In-Reply-To: <496DF8EB.4060801@...1942...> References: <496CA3F6.8080504@...1942...> <200901141501.31300.gambas@...1...> <496DF8EB.4060801@...1942...> Message-ID: <200901141544.08730.gambas@...1...> On mercredi 14 janvier 2009, Diego Fern?ndez wrote: > Hi, > > the signal 11 segmentation is no more, BUT, now when creating a new > project, then i insert a datepicker, when running it and try to pick a > date, the dialog appears in the upper left corner of the screen no > matter where the form is, i am ataching a screenshot so you can check. > > tell me if i am doing something wrong. > > thanks. > Do you have the same behaviour without compiz? -- Benoit Minisini From diego at ...1942... Wed Jan 14 15:54:49 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Wed, 14 Jan 2009 08:54:49 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <200901141544.08730.gambas@...1...> References: <496CA3F6.8080504@...1942...> <200901141501.31300.gambas@...1...> <496DF8EB.4060801@...1942...> <200901141544.08730.gambas@...1...> Message-ID: <496DFCB9.6070704@...1942...> Turning Off the Desktop effects, shows the datepicker in the center of the container (form, frame,etc) Benoit Minisini escribi?: > On mercredi 14 janvier 2009, Diego Fern?ndez wrote: > >> Hi, >> >> the signal 11 segmentation is no more, BUT, now when creating a new >> project, then i insert a datepicker, when running it and try to pick a >> date, the dialog appears in the upper left corner of the screen no >> matter where the form is, i am ataching a screenshot so you can check. >> >> tell me if i am doing something wrong. >> >> thanks. >> >> > > Do you have the same behaviour without compiz? > > -------------- next part -------------- A non-text attachment was scrubbed... Name: datepicker.png Type: image/png Size: 41526 bytes Desc: not available URL: From gareth at ...1689... Wed Jan 14 16:00:24 2009 From: gareth at ...1689... (Gareth Bult) Date: Wed, 14 Jan 2009 15:00:24 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <200901141455.36751.gambas@...1...> Message-ID: <20311670.334191231945223967.JavaMail.root@...1834...> >12) I think that Gareth could have made his control database neutral. But it >is his code, so he is the boss. Gareth subclasses standard Gambas components, so it *is* neutral. I can only think he was confused because he saw a SELECT statement and assumed this particular to MySQL (!) It is possible I've inadvertently done something Postgres can't handle, but this wasn't intentional and isn't something I'm aware of. I would love *not* to have to use "SELECT"'s in the code, however at the time of writing I was unaware of any way to achieve the same effect, although I will review this when I come back to the code ... (the SELECT's etc are pretty generic (!)) Gareth. ----- Original Message ----- From: "Benoit Minisini" To: dglnz at ...43..., "mailing list for gambas users" Sent: Wednesday, 14 January, 2009 1:55:36 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? On mardi 13 janvier 2009, dave L wrote: > Hi Charles, > > Yes i've had a look at the code that is in the database example. > > by the time i went to be i had in my sample app created a link to the DB > from cut i cout & pasted into my app from the sample DB. > > I suppose you have modules you call in that you pass parameters to and it > passes back the connection and then other routines you call to fill you > form controls with data as shown in the sample refresh form (or whatever > it's called). > > anyways i will have another look at how the table connection is made and > recordsets are done. It's the lack of these properties for those actions i > was surprised about initially. > > ps thanks for your reply. > > dave. > Do you really look at the "Database" example? The standard database-bound controls of Gambas are located in the gb.db.form component. They are somewhat sparse, but here is a quick description: 1) A DataSource container. You specifiy your request there (usually a table), and all data controls inserted in the container will use it. 2) If you put a DataSource A inside another DataSource B, then the DataSource A is filtered by the primary key of the DataSource B. 3) You have a DataControl control, that allows to edit a field by using a control that depends on the field datatype. 4) You have a DataCombo control, that is a ComboBox that displays an integer field by using it as a primary key on another tabl. 5) You have a DataView, that allows to show the contents of a DataSource in a GridView. 6) You have a DataBrowser, that allows to browse its parent DataSource by using a DataView and some buttons. 7) There is a DataComboMulti too in Gambas 3, but I didn't write nor tested it. 8) Theses controls are database neutral. They work with mysql, postgresql, sqlite, firebird... 9) The DataSource is "intelligent". It only request the records from the database by small packets. This way, you can put Internet between your application and the database, and things are perfectly usuable. Some caveats: 10) All table must have a primary key. 11) All DataSource use the current opened connection. Having some sort of "Connection" property to have two DataSource controls on different connection is planned. 12) I think that Gareth could have made his control database neutral. But it is his code, so he is the boss. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From sourceforge-raindog2 at ...94... Wed Jan 14 16:22:57 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 Jan 2009 10:22:57 -0500 Subject: [Gambas-user] Gambas2 components? In-Reply-To: <20311670.334191231945223967.JavaMail.root@...1834...> References: <20311670.334191231945223967.JavaMail.root@...1834...> Message-ID: <200901141022.57352.sourceforge-raindog2@...94...> On Wednesday 14 January 2009 10:00, Gareth Bult wrote: > >12) I think that Gareth could have made his control database neutral. > > But it is his code, so he is the boss. > Gareth subclasses standard Gambas components, so it *is* neutral. > I can only think he was confused because he saw a SELECT statement and > assumed this particular to MySQL (!) Actually, it's LAST_INSERT_ID() that isn't standard SQL. Rob From gareth at ...1689... Wed Jan 14 16:29:50 2009 From: gareth at ...1689... (Gareth Bult) Date: Wed, 14 Jan 2009 15:29:50 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <200901141022.57352.sourceforge-raindog2@...94...> Message-ID: <9894937.334341231946990254.JavaMail.root@...1834...> Ok, This function would be required regardless of the underlying DB .. so what't the PG equivalent ? Gareth. ----- Original Message ----- From: "Rob" To: gambas-user at lists.sourceforge.net Sent: Wednesday, 14 January, 2009 3:22:57 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? On Wednesday 14 January 2009 10:00, Gareth Bult wrote: > >12) I think that Gareth could have made his control database neutral. > > But it is his code, so he is the boss. > Gareth subclasses standard Gambas components, so it *is* neutral. > I can only think he was confused because he saw a SELECT statement and > assumed this particular to MySQL (!) Actually, it's LAST_INSERT_ID() that isn't standard SQL. Rob ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Wed Jan 14 18:16:44 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 18:16:44 +0100 Subject: [Gambas-user] Gambas2 components? In-Reply-To: <9894937.334341231946990254.JavaMail.root@...1834...> References: <9894937.334341231946990254.JavaMail.root@...1834...> Message-ID: <200901141816.44801.gambas@...1...> On mercredi 14 janvier 2009, Gareth Bult wrote: > Ok, > > This function would be required regardless of the underlying DB .. so > what't the PG equivalent ? > > Gareth. > > If I remember, not all databases have this feature. If people can tell me how to do the same thing in postgresql, sqlite, odbc and firebird, or at least in postgresql & sqlite, I will add it to the gb.db component. Regards, -- Benoit Minisini From gareth at ...1689... Wed Jan 14 19:01:48 2009 From: gareth at ...1689... (Gareth Bult) Date: Wed, 14 Jan 2009 18:01:48 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <200901141816.44801.gambas@...1...> Message-ID: <9262400.335931231956108177.JavaMail.root@...1834...> At which point I'll remove it from GridEdit and it will become DB neutral .. ;-) ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Wednesday, 14 January, 2009 5:16:44 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? On mercredi 14 janvier 2009, Gareth Bult wrote: > Ok, > > This function would be required regardless of the underlying DB .. so > what't the PG equivalent ? > > Gareth. > > If I remember, not all databases have this feature. If people can tell me how to do the same thing in postgresql, sqlite, odbc and firebird, or at least in postgresql & sqlite, I will add it to the gb.db component. Regards, -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From tony.sales at ...1615... Wed Jan 14 18:57:48 2009 From: tony.sales at ...1615... (Anthony Sales) Date: Wed, 14 Jan 2009 17:57:48 -0000 Subject: [Gambas-user] Gambas2 components? References: <9894937.334341231946990254.JavaMail.root@...1834...> <200901141816.44801.gambas@...1...> Message-ID: I have been using Gambas 2.8.2 from azores.linex.org repository to write some educational applications for the blind using Ubuntu 8.04 with no problems. However I have been unable to install this on Intrepid even after downgrading libtool as recommended. Will the gambas .deb packages I create on 8.04 still work on 8.10 even though I cannot install Gambas, or does this mean that the apps will only work on 8.04? I suppose if I download the source file myself and install it manually etc it would then work, or will this not work either? If anyone has gambas2 working on Intrepid I would love to know how you did it. drbongo -----Original Message----- From: Benoit Minisini [mailto:gambas at ...1...] Sent: Wed 14/01/2009 17:16 To: mailing list for gambas users Subject: Re: [Gambas-user] Gambas2 components? On mercredi 14 janvier 2009, Gareth Bult wrote: > Ok, > > This function would be required regardless of the underlying DB .. so > what't the PG equivalent ? > > Gareth. > > If I remember, not all databases have this feature. If people can tell me how to do the same thing in postgresql, sqlite, odbc and firebird, or at least in postgresql & sqlite, I will add it to the gb.db component. Regards, -- Benoit Minisini ----------------------------------------------------------------------------- - This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3882 bytes Desc: not available URL: From dglnz at ...43... Wed Jan 14 19:36:17 2009 From: dglnz at ...43... (dave L) Date: Wed, 14 Jan 2009 10:36:17 -0800 (PST) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <31845923.331401231927981159.JavaMail.root@...1834...> Message-ID: <906756.19030.qm@...2050...> Fair enough! only reason i picked postgresql over mysql was the old enie menine miney mo. Catch a ... by the tail choice and i end up pointing at postgres :) might not have been the most intellegient choice but i thought i'd give db access a try sooner rather than later. will you be looking at having it more DB nutural in later releases? --- On Wed, 14/1/09, Gareth Bult wrote: > From: Gareth Bult > Subject: Re: [Gambas-user] Gambas2 components? > To: "mailing list for gambas users" > Received: Wednesday, 14 January, 2009, 11:13 PM > Erm, > > >what i was suggesting was perhaps an intermediate step > until you get your program working right. > > It's been "working right" for quite a long > time .. my business relies on it "working right" > .. (!) > > >another thing with your editor is that it's filled > with mysql specific statements > > For example? > > Do yourself a favour - try MySQL! > > Gareth. > > ----- Original Message ----- > From: "dave L" > To: "mailing list for gambas users" > > Sent: Wednesday, 14 January, 2009 9:38:50 AM GMT +00:00 GMT > Britain, Ireland, Portugal > Subject: Re: [Gambas-user] Gambas2 components? > > > ________________________________ > rom: Gareth Bult > To: mailing list for gambas users > > Sent: Wednesday, 14 January, 2009 9:53:09 PM > Subject: Re: [Gambas-user] Gambas2 components? > > Mmm, > > Maybe it's me, but I'm not seeing anything it > doesn't already do ... ??? > > Agreed except that I couldn't get your app running due > to me not having mysql - bummer!!! > so i couldn't actually get the project running that i > downloaded from the url you gave me. > > All objects / returned data etc are available to the user > .. true it's via method and property calls, but this is > the way it should be in an OOP system .. we don't expose > raw data(!) > > what i was suggesting was perhaps an intermediate step > until you get your program working right. > But i tried it as a sample by making the visible property > to false and - got to form_open statement and died!!! > So that idea without refinement is dead! > > another thing with your editor is that it's filled with > mysql specific statements (my ignorance is showing here) or > do mysql & postgres share similar properties? > > dave. > > Gareth. > > ----- Original Message ----- > From: "dave L" > To: "mailing list for gambas users" > > Sent: Wednesday, 14 January, 2009 8:32:10 AM GMT +00:00 GMT > Britain, Ireland, Portugal > Subject: Re: [Gambas-user] Gambas2 components? > > Hi Garth, > > got the version listed on the website shown below and able > to follow it BUT i don't use mysql but postgres but > it's interesting to see what you've done by walking > thorough your code as far as i can. > > Been thinking here and please you or anyone else correct me > but couldn't this be done? > > 1. using the DB demo form and code. > import that into your project enter connection strings > to enable a valid connection to a RDBMS. > having the form hidden at run-time so it's > available to use but not visible to the user. > > 2. using the Rrequest form code as an object (thus allowing > multiple table connections) and having the recordset be > returned back to the user code for further actions. > > that could reduce a lot of repeatitive coding for every > project. > > eg. > > for every DB Control in a programmers project you would > either share the recordset (thus a move in 1 control would > be the same move in the others) object OR create/have new > recordsets for each DB Control. > > 3. control of writting data into the tables could also be > managed via the code within the Frequest code. > > from my observations it looks doable and with my limited > coding knowledge of Gambas be easily incorporated into the > next build cycle. > > > > ***** snipped ***** > > The closest thing you're going to get for the moment is > GridEditor. > http://gambasrad.org/software/gambas-grideditor > > ***** snipped ***** > > > > Get the world's best email - > http://nz.mail.yahoo.com/ > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Managing Director, Encryptec Limited > Tel: 0845 5082719, Mob: 0785 3305393 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's > Terms and Conditions of Business, which are available upon > request. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Easy recipes for Christmas entertaining on Yahoo!Xtra > Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- > Managing Director, Encryptec Limited > Tel: 0845 5082719, Mob: 0785 3305393 > Email: gareth at ...1689... > Statements made are at all times subject to Encryptec's > Terms and Conditions of Business, which are available upon > request. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Get the world's best email - http://nz.mail.yahoo.com/ From jaap_cramer at ...67... Wed Jan 14 19:48:48 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Wed, 14 Jan 2009 19:48:48 +0100 Subject: [Gambas-user] Gambas2 components? In-Reply-To: References: <9894937.334341231946990254.JavaMail.root@...1834...> <200901141816.44801.gambas@...1...> Message-ID: to dr bongo I think you should create a new topic for this question. I hope benoit won't be angry I answer this way ;) I use the 2.7 Gambas version from a standard ubuntu 8.10 repository, without any downgrading of libtool. You could also use deb http://xoomer.alice.it/pixel intrepid gambas hope this helps Jaap > Date: Wed, 14 Jan 2009 17:57:48 +0000 > From: tony.sales at ...1615... > To: gambas-user at lists.sourceforge.net > Subject: RE: [Gambas-user] Gambas2 components? > > > I have been using Gambas 2.8.2 from azores.linex.org repository to write some educational applications for the blind using Ubuntu 8.04 with no problems. However I have been unable to install this on Intrepid even after downgrading libtool as recommended. Will the gambas .deb packages I create on 8.04 still work on 8.10 even though I cannot install Gambas, or does this mean that the apps will only work on 8.04? I suppose if I download the source file myself and install it manually etc it would then work, or will this not work either? If anyone has gambas2 working on Intrepid I would love to know how you did it. > > drbongo > > -----Original Message----- > From: Benoit Minisini [mailto:gambas at ...1...] > Sent: Wed 14/01/2009 17:16 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Gambas2 components? > > On mercredi 14 janvier 2009, Gareth Bult wrote: > > Ok, > > > > This function would be required regardless of the underlying DB .. so > > what't the PG equivalent ? > > > > Gareth. > > > > > > If I remember, not all databases have this feature. If people can tell me how > to do the same thing in postgresql, sqlite, odbc and firebird, or at least in > postgresql & sqlite, I will add it to the gb.db component. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. > > Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. > > Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. > _________________________________________________________________ Download de nieuwste emoticons voor in je Messenger http://www.msnmessengerexperience.nl/chuck/ From tony.sales at ...1615... Wed Jan 14 20:07:05 2009 From: tony.sales at ...1615... (Anthony Sales) Date: Wed, 14 Jan 2009 19:07:05 -0000 Subject: [Gambas-user] Gambas on Intrepid References: <9894937.334341231946990254.JavaMail.root@...1834...><200901141816.44801.gambas@...1...> Message-ID: Sorry, my mistake I forgot to change the subject and then it was too late! My apologies. Last time I looked at the Ubuntu repository it was only 2.0.1 or something like that, and I have been using 8.04 for development and 8.10 for testing and experimenting etc. As long as it is 2.5 or above it has all the features I need. Thanks for the swift response I will install it immediately! :) drbongo -----Original Message----- From: Jaap Cramer [mailto:jaap_cramer at ...67...] Sent: Wed 14/01/2009 18:48 To: gambas-user Subject: Re: [Gambas-user] Gambas2 components? to dr bongo I think you should create a new topic for this question. I hope benoit won't be angry I answer this way ;) I use the 2.7 Gambas version from a standard ubuntu 8.10 repository, without any downgrading of libtool. You could also use deb http://xoomer.alice.it/pixel intrepid gambas hope this helps Jaap > Date: Wed, 14 Jan 2009 17:57:48 +0000 > From: tony.sales at ...1615... > To: gambas-user at lists.sourceforge.net > Subject: RE: [Gambas-user] Gambas2 components? > > > I have been using Gambas 2.8.2 from azores.linex.org repository to write some educational applications for the blind using Ubuntu 8.04 with no problems. However I have been unable to install this on Intrepid even after downgrading libtool as recommended. Will the gambas .deb packages I create on 8.04 still work on 8.10 even though I cannot install Gambas, or does this mean that the apps will only work on 8.04? I suppose if I download the source file myself and install it manually etc it would then work, or will this not work either? If anyone has gambas2 working on Intrepid I would love to know how you did it. > > drbongo > > -----Original Message----- > From: Benoit Minisini [mailto:gambas at ...1...] > Sent: Wed 14/01/2009 17:16 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Gambas2 components? > > On mercredi 14 janvier 2009, Gareth Bult wrote: > > Ok, > > > > This function would be required regardless of the underlying DB .. so > > what't the PG equivalent ? > > > > Gareth. > > > > > > If I remember, not all databases have this feature. If people can tell me how > to do the same thing in postgresql, sqlite, odbc and firebird, or at least in > postgresql & sqlite, I will add it to the gb.db component. > > Regards, > > -- > Benoit Minisini > > ----------------------------------------------------------------------------- - > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. > > Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. > > Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. > _________________________________________________________________ Download de nieuwste emoticons voor in je Messenger http://www.msnmessengerexperience.nl/chuck/ ----------------------------------------------------------------------------- - This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4623 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Wed Jan 14 20:42:27 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 14 Jan 2009 14:42:27 -0500 Subject: [Gambas-user] Gambas2 components? In-Reply-To: <9894937.334341231946990254.JavaMail.root@...1834...> References: <9894937.334341231946990254.JavaMail.root@...1834...> Message-ID: <200901141442.27750.sourceforge-raindog2@...94...> On Wednesday 14 January 2009 10:29, Gareth Bult wrote: > This function would be required regardless of the underlying DB .. so > what't the PG equivalent ? By looking at the sqlite docs, I'm guessing last_insert_rowid() is their equivalent, but I only have MySQL installed so I can't test it. But some DB engines don't even have auto-incrementing fields, let alone a function to return the last inserted ID. Google tells me CURRVAL(pg_get_serial_sequence('my_tbl_name','id_col_name')) is the Postgres equivalent, but if it uses sequences, I think that's different than what we know as autoincrement fields. With Firebird, you can approximate the functionality with generators, like this: -- before inserting any rows into table CREATE GENERATOR generator_id; -- then, as part of each insert statement INSERT INTO tablename (keycolumn, ...) VALUES (gen_id(generator_id, 1), ...); -- after all that, here's the LAST_INSERT_ID() equivalent SELECT gen_id(generator_id, 0); I have no idea whether this is safe to use with multiple connections (like MySQL's is) or anything like that. I also don't think there's any standard ODBC mechanism to do this. Rob From gambas at ...1... Wed Jan 14 21:17:10 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 21:17:10 +0100 Subject: [Gambas-user] Alignment or Gridview problem? In-Reply-To: <200901121946.54430.gambas@...1...> References: <49663F1B.8040108@...11...> <496B8AB1.1060707@...11...> <200901121946.54430.gambas@...1...> Message-ID: <200901142117.10203.gambas@...1...> On lundi 12 janvier 2009, Benoit Minisini wrote: > > > > I think there is a problem with the *last* column of a gridview, but may > > be I missed something instead. > > 1) In the TestOne, the code is what I want to get (the usage of 'k' is > > for the test only!), but the display is not what I expected (nothing > > visible in the las column) > > 2) If I remove the Alignment instruction (TestTwo), I get what I expect, > > but not what I wished! > > 3) As a workaround (TestThree), I add a column to my gridview, I mask it > > with the width limitation (role of k=1), and I restore the alignment. > > > > As you can see, the problem is just with the last column with centered > > text Is the first case works as expected? > > Please send me your project. It will be simpler for me to deal with the > real thing instead of reproducing it from what you say. > > Regards, I committed a fix for that problem in revision #1801. Regards, -- Benoit Minisini From tony.sales at ...1615... Wed Jan 14 21:24:40 2009 From: tony.sales at ...1615... (Anthony Sales) Date: Wed, 14 Jan 2009 20:24:40 -0000 Subject: [Gambas-user] Gambas on Intrepid References: <9894937.334341231946990254.JavaMail.root@...1834...><200901141816.44801.gambas@...1...> Message-ID: I have downloaded and installed version 2.9 from the 'pixel' repository you suggested. It runs fine and allows me to create installer packages once I installed automake1.9 etc. Thanks for the help Power to the prawn! drbongo -----Original Message----- From: Anthony Sales [mailto:tony.sales at ...1615...] Sent: Wed 1/14/2009 7:07 PM To: mailing list for gambas users Subject: Gambas on Intrepid Sorry, my mistake I forgot to change the subject and then it was too late! My apologies. Last time I looked at the Ubuntu repository it was only 2.0.1 or something like that, and I have been using 8.04 for development and 8.10 for testing and experimenting etc. As long as it is 2.5 or above it has all the features I need. Thanks for the swift response I will install it immediately! :) drbongo -----Original Message----- From: Jaap Cramer [mailto:jaap_cramer at ...67...] Sent: Wed 14/01/2009 18:48 To: gambas-user Subject: Re: [Gambas-user] Gambas2 components? to dr bongo I think you should create a new topic for this question. I hope benoit won't be angry I answer this way ;) I use the 2.7 Gambas version from a standard ubuntu 8.10 repository, without any downgrading of libtool. You could also use deb http://xoomer.alice.it/pixel intrepid gambas hope this helps Jaap > Date: Wed, 14 Jan 2009 17:57:48 +0000 > From: tony.sales at ...1615... > To: gambas-user at lists.sourceforge.net > Subject: RE: [Gambas-user] Gambas2 components? > > > I have been using Gambas 2.8.2 from azores.linex.org repository to write some educational applications for the blind using Ubuntu 8.04 with no problems. However I have been unable to install this on Intrepid even after downgrading libtool as recommended. Will the gambas .deb packages I create on 8.04 still work on 8.10 even though I cannot install Gambas, or does this mean that the apps will only work on 8.04? I suppose if I download the source file myself and install it manually etc it would then work, or will this not work either? If anyone has gambas2 working on Intrepid I would love to know how you did it. > > drbongo > > -----Original Message----- > From: Benoit Minisini [mailto:gambas at ...1...] > Sent: Wed 14/01/2009 17:16 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Gambas2 components? > > On mercredi 14 janvier 2009, Gareth Bult wrote: > > Ok, > > > > This function would be required regardless of the underlying DB .. so > > what't the PG equivalent ? > > > > Gareth. > > > > > > If I remember, not all databases have this feature. If people can tell me how > to do the same thing in postgresql, sqlite, odbc and firebird, or at least in > postgresql & sqlite, I will add it to the gb.db component. > > Regards, > > -- > Benoit Minisini > > ----------------------------------------------------------------------------- - > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. > > Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. > > Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. > _________________________________________________________________ Download de nieuwste emoticons voor in je Messenger http://www.msnmessengerexperience.nl/chuck/ ----------------------------------------------------------------------------- - This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. Confidentiality: This e-mail and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone: please reply to this e-mail and highlight the error to the sender. Security Warning: Please note that e-mail has been created in the knowledge that the Internet e-mail is not a 100% secure communication medium. We advise that you understand and observe this lack of security when e-mailing us. Viruses: Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advised that in keeping with good computing practice the recipient should ensure they are actually virus free. -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 4875 bytes Desc: not available URL: From rterry at ...1946... Wed Jan 14 21:46:11 2009 From: rterry at ...1946... (richard terry) Date: Thu, 15 Jan 2009 07:46:11 +1100 Subject: [Gambas-user] Badly Overridden form (Solved) In-Reply-To: <200901102308.18671.gambas@...1...> References: <200901080759.24748.rterry@...1946...> <200901102308.18671.gambas@...1...> Message-ID: <200901150746.11417.rterry@...1946...> On Sun, 11 Jan 2009 09:08:18 am Benoit Minisini wrote: > On mercredi 7 janvier 2009, richard terry wrote: > > Mm................ > > > > Last couple of upgrades one of my forms won't load - despite being > > structurally similar to all the others, I get the error message in the > > picture. > > > > Any ideas appreciated. > > > > Version 1790 and a few below. > > > > Regards > > > > Richard > > Did you read my answer about your post "More odd IDE problems"? The > explanation is inside. :-) Benoit, Not quite so simple for my pea brain. I didn't realise that form.X actually referred to a real 'x', albeit a lower case one on my form! I found the source of the problem. I think I'd left this declaration at the top of my form eons ago, whereas I'd usually declare this type of integer only in a subroutine Public x as integer > Badly overidden form, whereas Public a>w and y> z or Private x as integer, dosn't, so persumably x when declared public x means something to gambas. However, the upshot is I can now order requests again!!!! Regards richard -------------- next part -------------- A non-text attachment was scrubbed... Name: overridden_form_this_will_do_it.png Type: image/png Size: 18545 bytes Desc: not available URL: From rterry at ...1946... Wed Jan 14 22:14:32 2009 From: rterry at ...1946... (richard terry) Date: Thu, 15 Jan 2009 08:14:32 +1100 Subject: [Gambas-user] Gambas2 components? In-Reply-To: <906756.19030.qm@...2050...> References: <906756.19030.qm@...2050...> Message-ID: <200901150814.32344.rterry@...1946...> On Thu, 15 Jan 2009 05:36:17 am dave L wrote: > Fair enough! > > only reason i picked postgresql over mysql was the old enie menine miney > mo. Catch a ... by the tail choice and i end up pointing at postgres :) Don't quote me but I think I remember reading on slashdot in the last couple of months of some serious problems with some of the more recent versions of mysql and a recommendation to stick to an older version perhaps, but I didn't read the details, have no technical training at all, like many am just a hobbyist, and my (aging) memory may be very faulty. However, this article may be worth looking at, its got lots of links and seems to have been updated last in Dec 2008 so is recent, certainly would be a better bet that 'Eeny, meeny, miny, moe' http://www.wikivs.com/wiki/MySQL_vs_PostgreSQL richard > > might not have been the most intellegient choice but i thought i'd give db > access a try sooner rather than later. > > will you be looking at having it more DB nutural in later releases? > > --- On Wed, 14/1/09, Gareth Bult wrote: > > From: Gareth Bult > > Subject: Re: [Gambas-user] Gambas2 components? > > To: "mailing list for gambas users" > > Received: Wednesday, 14 January, 2009, 11:13 PM > > Erm, > > > > >what i was suggesting was perhaps an intermediate step > > > > until you get your program working right. > > > > It's been "working right" for quite a long > > time .. my business relies on it "working right" > > .. (!) > > > > >another thing with your editor is that it's filled > > > > with mysql specific statements > > > > For example? > > > > Do yourself a favour - try MySQL! > > > > Gareth. > > > > ----- Original Message ----- > > From: "dave L" > > To: "mailing list for gambas users" > > > > Sent: Wednesday, 14 January, 2009 9:38:50 AM GMT +00:00 GMT > > Britain, Ireland, Portugal > > Subject: Re: [Gambas-user] Gambas2 components? > > > > > > ________________________________ > > rom: Gareth Bult > > To: mailing list for gambas users > > > > Sent: Wednesday, 14 January, 2009 9:53:09 PM > > Subject: Re: [Gambas-user] Gambas2 components? > > > > Mmm, > > > > Maybe it's me, but I'm not seeing anything it > > doesn't already do ... ??? > > > > Agreed except that I couldn't get your app running due > > to me not having mysql - bummer!!! > > so i couldn't actually get the project running that i > > downloaded from the url you gave me. > > > > All objects / returned data etc are available to the user > > .. true it's via method and property calls, but this is > > the way it should be in an OOP system .. we don't expose > > raw data(!) > > > > what i was suggesting was perhaps an intermediate step > > until you get your program working right. > > But i tried it as a sample by making the visible property > > to false and - got to form_open statement and died!!! > > So that idea without refinement is dead! > > > > another thing with your editor is that it's filled with > > mysql specific statements (my ignorance is showing here) or > > do mysql & postgres share similar properties? > > > > dave. > > > > Gareth. > > > > ----- Original Message ----- > > From: "dave L" > > To: "mailing list for gambas users" > > > > Sent: Wednesday, 14 January, 2009 8:32:10 AM GMT +00:00 GMT > > Britain, Ireland, Portugal > > Subject: Re: [Gambas-user] Gambas2 components? > > > > Hi Garth, > > > > got the version listed on the website shown below and able > > to follow it BUT i don't use mysql but postgres but > > it's interesting to see what you've done by walking > > thorough your code as far as i can. > > > > Been thinking here and please you or anyone else correct me > > but couldn't this be done? > > > > 1. using the DB demo form and code. > > import that into your project enter connection strings > > to enable a valid connection to a RDBMS. > > having the form hidden at run-time so it's > > available to use but not visible to the user. > > > > 2. using the Rrequest form code as an object (thus allowing > > multiple table connections) and having the recordset be > > returned back to the user code for further actions. > > > > that could reduce a lot of repeatitive coding for every > > project. > > > > eg. > > > > for every DB Control in a programmers project you would > > either share the recordset (thus a move in 1 control would > > be the same move in the others) object OR create/have new > > recordsets for each DB Control. > > > > 3. control of writting data into the tables could also be > > managed via the code within the Frequest code. > > > > from my observations it looks doable and with my limited > > coding knowledge of Gambas be easily incorporated into the > > next build cycle. > > > > > > > > ***** snipped ***** > > > > The closest thing you're going to get for the moment is > > GridEditor. > > http://gambasrad.org/software/gambas-grideditor > > > > ***** snipped ***** > > > > > > > > Get the world's best email - > > http://nz.mail.yahoo.com/ > > ------------------------------------------------------------------------- > >----- This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > Managing Director, Encryptec Limited > > Tel: 0845 5082719, Mob: 0785 3305393 > > Email: gareth at ...1689... > > Statements made are at all times subject to Encryptec's > > Terms and Conditions of Business, which are available upon > > request. > > > > ------------------------------------------------------------------------- > >----- This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > Easy recipes for Christmas entertaining on Yahoo!Xtra > > Lifestyle- http://nz.lifestyle.yahoo.com/food-recipes > > ------------------------------------------------------------------------- > >----- This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > > Managing Director, Encryptec Limited > > Tel: 0845 5082719, Mob: 0785 3305393 > > Email: gareth at ...1689... > > Statements made are at all times subject to Encryptec's > > Terms and Conditions of Business, which are available upon > > request. > > > > ------------------------------------------------------------------------- > >----- This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Get the world's best email - http://nz.mail.yahoo.com/ > > --------------------------------------------------------------------------- >--- This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From arosa at ...2015... Wed Jan 14 22:16:46 2009 From: arosa at ...2015... (Toni) Date: Wed, 14 Jan 2009 21:16:46 +0000 Subject: [Gambas-user] Request.Header and Base64Decode for a CGI Message-ID: <496E563E.1040801@...2015...> Hi, I'm programming a CGI using Gambas2 and I want to implement "basic http authentication" into it, but I have two problems to get it done: I Don't know how to get Request HTTP Headers (I couldn't find something like "Request.Header[]"). The other problem is that I haven't been able to find a decoding Base64 function in Gambas. Is there one? Here is a sample code of how I wanted to implement it: PRIVATE SUB Authorize() DIM Validated AS Boolean = FALSE DIM User AS String = "user" DIM SecretPassword AS String = "secret" IF Request.Header["Authorization"] <> "" THEN '<----------- Request.Header IS AN INVETION IF base64_decode(Request.Header["Authorization"]) == (User & "+" & SecretPassword) THEN Validated = TRUE '<--------- base64_decode IS AN INVETION TOO ENDIF IF (NOT Validated) THEN Response.AddHeader("WWW-Authenticate", "Basic realm=\"AgendaXML-WEB\"") Response.AddHeader("status", "401 Unauthorized") Response.Begin Response.End QUIT END IF END Regards, Toni PS: I guess I could use the web server authentication mechanisms but I just wondered whether I could control it from within my CGI From gambas at ...1... Wed Jan 14 22:23:43 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 22:23:43 +0100 Subject: [Gambas-user] Request.Header and Base64Decode for a CGI In-Reply-To: <496E563E.1040801@...2015...> References: <496E563E.1040801@...2015...> Message-ID: <200901142223.43731.gambas@...1...> On mercredi 14 janvier 2009, Toni wrote: > Hi, > I'm programming a CGI using Gambas2 and I want to implement "basic http > authentication" into it, but I have two problems to get it done: I Don't > know how to get Request HTTP Headers (I couldn't find something like > "Request.Header[]"). The other problem is that I haven't been able to > find a decoding Base64 function in Gambas. Is there one? > > Here is a sample code of how I wanted to implement it: > > > PRIVATE SUB Authorize() > DIM Validated AS Boolean = FALSE > DIM User AS String = "user" > DIM SecretPassword AS String = "secret" > > IF Request.Header["Authorization"] <> "" THEN '<----------- > Request.Header IS AN INVETION > IF base64_decode(Request.Header["Authorization"]) == (User & "+" > & SecretPassword) THEN Validated = TRUE '<--------- base64_decode IS AN > INVETION TOO > ENDIF > > IF (NOT Validated) THEN > Response.AddHeader("WWW-Authenticate", "Basic realm=\"AgendaXML-WEB\"") > Response.AddHeader("status", "401 Unauthorized") > Response.Begin > Response.End > QUIT > END IF > END > > > Regards, > Toni > > PS: I guess I could use the web server authentication mechanisms but I > just wondered whether I could control it from within my CGI > You can't control HTTP authentification from the CGI script. The server must handle it, and you will get the result in the CGI["AUTH_TYPE"] and CGI["REMOTE_USER"] environmental variables. Regards, -- Benoit Minisini From arosa at ...2015... Wed Jan 14 22:37:25 2009 From: arosa at ...2015... (Toni) Date: Wed, 14 Jan 2009 21:37:25 +0000 Subject: [Gambas-user] Request.Header and Base64Decode for a CGI In-Reply-To: <200901142223.43731.gambas@...1...> References: <496E563E.1040801@...2015...> <200901142223.43731.gambas@...1...> Message-ID: <496E5B15.9060903@...2015...> Thanks for such a quick answer! Toni En/na Benoit Minisini ha escrit: > On mercredi 14 janvier 2009, Toni wrote: > >> Hi, >> I'm programming a CGI using Gambas2 and I want to implement "basic http >> authentication" into it, but I have two problems to get it done: I Don't >> know how to get Request HTTP Headers (I couldn't find something like >> "Request.Header[]"). The other problem is that I haven't been able to >> find a decoding Base64 function in Gambas. Is there one? >> >> Here is a sample code of how I wanted to implement it: >> >> >> PRIVATE SUB Authorize() >> DIM Validated AS Boolean = FALSE >> DIM User AS String = "user" >> DIM SecretPassword AS String = "secret" >> >> IF Request.Header["Authorization"] <> "" THEN '<----------- >> Request.Header IS AN INVETION >> IF base64_decode(Request.Header["Authorization"]) == (User & "+" >> & SecretPassword) THEN Validated = TRUE '<--------- base64_decode IS AN >> INVETION TOO >> ENDIF >> >> IF (NOT Validated) THEN >> Response.AddHeader("WWW-Authenticate", "Basic realm=\"AgendaXML-WEB\"") >> Response.AddHeader("status", "401 Unauthorized") >> Response.Begin >> Response.End >> QUIT >> END IF >> END >> >> >> Regards, >> Toni >> >> PS: I guess I could use the web server authentication mechanisms but I >> just wondered whether I could control it from within my CGI >> >> > > You can't control HTTP authentification from the CGI script. The server must > handle it, and you will get the result in the CGI["AUTH_TYPE"] and > CGI["REMOTE_USER"] environmental variables. > > Regards, > > From linuxos at ...1896... Wed Jan 14 23:08:17 2009 From: linuxos at ...1896... (Olivier Cruilles) Date: Wed, 14 Jan 2009 23:08:17 +0100 Subject: [Gambas-user] PB avec un ToolPanel Message-ID: Bonsoir Benoit, Continuant toujours le d?veloppement de mon application, je cr?er a la vol?e dans un ToolPanel (fixe) d'un formulaire des TreeView. J'obtiens donc une collection contenant l'adresse Objet de chaque TreeView. Je place chaque TreeView sur des ToolBar diff?rent (Ex: 3 Treeview donc ToolPanel1.count = 3) Par la suite, je veux pouvoir detruire tous les TreeView cr?es pr?c?demment, ramener le ToolPanel1.count = 1 et recr?er de nouveau TreeView. Or je n'arrive pas ? detruire les TreeView. Voila ce que j'ai cod? pour d?truire le TreeView: DIM ToolPanelChildrenIndex AS integer PRINT "ToolPanel1.Children.Count = " & ToolPanel1.Children.Count IF ToolPanel1.Children.Count > 0 THEN FOR ToolPanelChildrenIndex = 0 TO (ToolPanel1.Children.count - 1) PRINT "ToolPanel1.Children[ToolPanelChildrenIndex] = " & Str(ToolPanel1.Children[ToolPanelChildrenIndex]) Object.Detach(ToolPanel1.Children[ToolPanelChildrenIndex]) ToolPanel1.Children[ToolPanelChildrenIndex].Delete NEXT END IF ToolPanel1.Count = 1 Merci d'avance pour votre r?ponse. Olivier Cruilles Mail: linuxos at ...1896... From gambas at ...1... Wed Jan 14 23:47:48 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 14 Jan 2009 23:47:48 +0100 Subject: [Gambas-user] PB avec un ToolPanel In-Reply-To: References: Message-ID: <200901142347.48319.gambas@...1...> On mercredi 14 janvier 2009, Olivier Cruilles wrote: > Bonsoir Benoit, > > Continuant toujours le d?veloppement de mon application, je cr?er a la > vol?e dans un ToolPanel (fixe) > d'un formulaire des TreeView. > > J'obtiens donc une collection contenant l'adresse Objet de chaque > TreeView. > > Je place chaque TreeView sur des ToolBar diff?rent (Ex: 3 Treeview > donc ToolPanel1.count = 3) > > Par la suite, je veux pouvoir detruire tous les TreeView cr?es > pr?c?demment, ramener le ToolPanel1.count = 1 et > recr?er de nouveau TreeView. > > Or je n'arrive pas ? detruire les TreeView. > > Voila ce que j'ai cod? pour d?truire le TreeView: > > > DIM ToolPanelChildrenIndex AS integer > > PRINT "ToolPanel1.Children.Count = " & ToolPanel1.Children.Count > > IF ToolPanel1.Children.Count > 0 THEN > FOR ToolPanelChildrenIndex = 0 TO (ToolPanel1.Children.count - 1) > PRINT "ToolPanel1.Children[ToolPanelChildrenIndex] = " & > Str(ToolPanel1.Children[ToolPanelChildrenIndex]) > Object.Detach(ToolPanel1.Children[ToolPanelChildrenIndex]) > ToolPanel1.Children[ToolPanelChildrenIndex].Delete > NEXT > END IF > > ToolPanel1.Count = 1 > > Merci d'avance pour votre r?ponse. > > > Olivier Cruilles > Mail: linuxos at ...1896... > > Please post french mails to the french mailing-list! -- Benoit Minisini From theatre at ...2012... Wed Jan 14 23:56:52 2009 From: theatre at ...2012... (Frank Cox) Date: Wed, 14 Jan 2009 16:56:52 -0600 Subject: [Gambas-user] qt going lgpl Message-ID: <20090114165652.fe6c818b.theatre@...2012...> It appears that qt is to be licensed as lgpl: http://www.qtsoftware.com/about/licensing/frequently-asked-questions Does this meant that commercial closed-source applications can now be developed with Gambas using QT? (I think you could do that using GTK before now.) -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com DRY CLEANER BUSINESS FOR SALE ~ http://www.canadadrycleanerforsale.com From gambas at ...1... Thu Jan 15 00:04:35 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jan 2009 00:04:35 +0100 Subject: [Gambas-user] qt going lgpl In-Reply-To: <20090114165652.fe6c818b.theatre@...2012...> References: <20090114165652.fe6c818b.theatre@...2012...> Message-ID: <200901150004.35870.gambas@...1...> On mercredi 14 janvier 2009, Frank Cox wrote: > It appears that qt is to be licensed as lgpl: > > http://www.qtsoftware.com/about/licensing/frequently-asked-questions > > Does this meant that commercial closed-source applications can now be > developed with Gambas using QT? (I think you could do that using GTK > before now.) I don't think so, as the licence is changed only from the QT 4.5 version AFAIK. The QT4 component in the /trunk is experimental and has many problems: color management has changed in QT4, so colors are incorrect ; some things do not display correctly yet ; and on my NVIDIA, QT4 is far slower than QT3, even if double-buffering is disabled. For example, moving the side panels in the IDE becomes slow as hell. By disabling double-buffering, I noticed a lot of useless drawing made by QT 4.4. Maybe these things will be better with QT 4.5 ? The latest beta driver of NVIDIA fixes some problems, but introduce new bugs according to their forum, and I'm not sure that it's NVIDIA fault there as the IDE keeps being slow (more than with GTK+ if you can imagine) even if XRENDER is disabled. -- Benoit Minisini From gareth at ...1689... Thu Jan 15 00:26:40 2009 From: gareth at ...1689... (Gareth Bult) Date: Wed, 14 Jan 2009 23:26:40 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <27886436.336221231975565105.JavaMail.root@...1834...> Message-ID: <7572754.336241231975600154.JavaMail.root@...1834...> Mmm, I wouldn't know "how" to do what GridEditor does without autoinc fields and last_id .. if other DB's make this difficult or don't provide the functionality, that sort of reinforces my suggestion that one should choose MySQL. Just turning it around for a second, is there any reason why one should *not* use MySQL? As a 10yr+ MySQL user, my views may be biased, however to the best of my knowledge; a. MySQL is faster than the competition, certainly the likes of Postgres (by a lot!) b. MySQL does not crash - so it's reliability is not question c. Current versions support all the stuff (triggers, stored proc's etc) that people used to insist was their excuse for Postgres d. MySQL does loads of back end replication stuff other DB's don't do e. MySQL runs on more Platforms than any other DB f. It has bindings for every language I can think of, and then some g. It has loads of nice GUI tools and designers (commercial and free) .. etc .. etc .. etc ... yes I do have the T-shirt, but no they're not paying me. Bottom line, I have no reason why GridEditor should not support other DB's , just so long as they can actually do the job .. so as soon as people with the relevant expertise provide Gambas with autoinc / lastid support, I'll see if I can use it in place of a raw SELECT statement .. how's that ? :-) Gareth. ----- Original Message ----- From: "Rob" To: gambas-user at lists.sourceforge.net Sent: Wednesday, 14 January, 2009 7:42:27 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? On Wednesday 14 January 2009 10:29, Gareth Bult wrote: > This function would be required regardless of the underlying DB .. so > what't the PG equivalent ? By looking at the sqlite docs, I'm guessing last_insert_rowid() is their equivalent, but I only have MySQL installed so I can't test it. But some DB engines don't even have auto-incrementing fields, let alone a function to return the last inserted ID. Google tells me CURRVAL(pg_get_serial_sequence('my_tbl_name','id_col_name')) is the Postgres equivalent, but if it uses sequences, I think that's different than what we know as autoincrement fields. With Firebird, you can approximate the functionality with generators, like this: -- before inserting any rows into table CREATE GENERATOR generator_id; -- then, as part of each insert statement INSERT INTO tablename (keycolumn, ...) VALUES (gen_id(generator_id, 1), ...); -- after all that, here's the LAST_INSERT_ID() equivalent SELECT gen_id(generator_id, 0); I have no idea whether this is safe to use with multiple connections (like MySQL's is) or anything like that. I also don't think there's any standard ODBC mechanism to do this. Rob ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Thu Jan 15 00:39:12 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jan 2009 00:39:12 +0100 Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now In-Reply-To: <178552.28223.qm@...1670...> References: <271634.59504.qm@...1656...> <200901102251.07921.gambas@...1...> <178552.28223.qm@...1670...> Message-ID: <200901150039.12396.gambas@...1...> On lundi 12 janvier 2009, David Villalobos Cambronero wrote: > Not sure... but what I know for sure is that is not in my Gambas part. > Attached is an example using only gb.db > > I try to take a look in the C part, but I couldn't find anything. > > Attached is the entire script for my database, and an example. > > I you connect directly to mysql and execute the last tow statements they > work, so I think it is a bug in the C part. > > > MySQL says: > > > If you get Commands out of sync; you can't run this command now in your > client code, you are calling client functions in the wrong order. This can > happen, for example, if you are using mysql_use_result() and try to execute > a new query before you have called mysql_free_result(). It can also happen > if you try to execute two queries that return data without calling > mysql_use_result() or mysql_store_result() in between. Best Regards > > > -- > David > Can you make the dump of all mysql requests sent by using DB.Debug = TRUE ? -- Benoit Minisini From gambas at ...1... Thu Jan 15 00:44:22 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jan 2009 00:44:22 +0100 Subject: [Gambas-user] Gambas2 components? In-Reply-To: <7572754.336241231975600154.JavaMail.root@...1834...> References: <7572754.336241231975600154.JavaMail.root@...1834...> Message-ID: <200901150044.22727.gambas@...1...> On jeudi 15 janvier 2009, Gareth Bult wrote: > Mmm, > > I wouldn't know "how" to do what GridEditor does without autoinc fields and > last_id .. if other DB's make this difficult or don't provide the > functionality, that sort of reinforces my suggestion that one should choose > MySQL. > > Just turning it around for a second, is there any reason why one should > *not* use MySQL? > > As a 10yr+ MySQL user, my views may be biased, however to the best of my > knowledge; a. MySQL is faster than the competition, certainly the likes of > Postgres (by a lot!) b. MySQL does not crash - so it's reliability is not > question > c. Current versions support all the stuff (triggers, stored proc's etc) > that people used to insist was their excuse for Postgres d. MySQL does > loads of back end replication stuff other DB's don't do e. MySQL runs on > more Platforms than any other DB > f. It has bindings for every language I can think of, and then some > g. It has loads of nice GUI tools and designers (commercial and free) > .. etc .. etc .. etc ... > > yes I do have the T-shirt, but no they're not paying me. > > Bottom line, I have no reason why GridEditor should not support other DB's > , just so long as they can actually do the job .. so as soon as people with > the relevant expertise provide Gambas with autoinc / lastid support, I'll > see if I can use it in place of a raw SELECT statement .. how's that ? > :-) > > Gareth. > 1) How can you know that we should use MySQL if you have used MySQL only? 2) The MySQL C API is, hem... strange. Let be politically correct there. 3) Why did they change their timestamp format suddenly? 4) There is no difference between a BLOB and a large TEXT field. 5) MySQL only get features recently that PostgreSQL had for years. 6) David Villalobos Cambronero got an error message from mysql. I have no idea at all where it comes from. Maybe it is gb.db.mysql fault there, but it makes me angry. :-) Not that PostgreSQL is perfect, far from that. The only clean database API I know is the SQLite one. The funny thing in Gambas is that the gb.db.sqlite component (sorry Niggel!) has used a crappy C++ layer on top! And I don't talk about sticking the word "standard" with "SQL"... -- Benoit Minisini From gareth at ...1689... Thu Jan 15 01:48:07 2009 From: gareth at ...1689... (Gareth Bult) Date: Thu, 15 Jan 2009 00:48:07 +0000 (GMT) Subject: [Gambas-user] Gambas2 components? In-Reply-To: <16225276.336531231980478806.JavaMail.root@...1834...> Message-ID: <26842894.336551231980487747.JavaMail.root@...1834...> >>1) How can you know that we should use MySQL if you have used MySQL only? I couldn't, I have however tried (over the years) the other DB's mentioned, PG in particular. I just choose "not" to use any of them commercially given the availability of MySQL. Once upon a time I was an Ingres user .. 6 users on a VAX 780 .. memories of SELECTING 1 record from a small 20 record table taking minutes ... ;-) ? [pg being an evolution if Ingress.. ;-) ] More recently I've used PG with TinyERP .. not a smooth ride. >>2) The MySQL C API is, hem... strange. Let be politically correct there. I tend to access from Python (or Gambas), hence don't find that a problem .. ;-) >>3) Why did they change their timestamp format suddenly? Mmm, don't know. Not something that I've noticed .. but then I don't do a vast amount with timestamps ... >>4) There is no difference between a BLOB and a large TEXT field. Urm, really? I was under the impression that Blobs were binary strings and Text's were character set based? (i.e. TEXT's support collation and BLOB's don't) [or is this a bug you're aware of ?] >5) MySQL only get features recently that PostgreSQL had for years. Not strictly true, version 5.0 has been around for a LONG time, GA was back in 2005 (!) (and it was available long before that!) .. before you say "but it was 'beta' before that ... in those days MySQL beta's could wipe the floor with PG releases in terms of reliability (!) .. ?;-) >6) David Villalobos Cambronero got an error message from mysql. I have no idea >at all where it comes from. Maybe it is gb.db.mysql fault there, but it makes >me angry. :-) Is this the "commands out of order" error? If it is, might be worth checking his setup before your code .. unless it's code you've been changing. I *think* I remember seeing this problem quite some time ago as a result of communications problem .. I'm sort of guessing at the actual issue (as it was a while ago) but I think we were playing with IP failover at the time and the IP of the SQL server was flipping to an alternative SQL server mid-query. From memory it was a pig to trace as once it had flipped (and we'd not noticed) the same query would then run fine .. until we experienced another flip mid-query .. but I might be mixing up incidents ... point being if that could cause it, other environmental / comms issues might also cause the problem. Anyway, I know what you mean, but such it the nature of client - server programming (!) >And I don't talk about sticking the word "standard" with "SQL"... Well .. a lot of it is standard .. it's just all the bits that people found they needed after they issued ANSI SQL92 ;-) That said, 6.x is supposed to be fully ANSI once you turn on all the --ansi flags ... not sure whether that disables MySQL specific extensions like last_insert_id() tho'... Apparently in postgres you need to have a field of type serial (or big serial) [rather than int] and the following code; SELECT CURRVAL(pg_get_serial_sequence('table','column')); [where column is the column of type 'serial'] Shouldn't be 'too' hard to implement (?) .. but using a different data type is a bit of a nuisance .. Gareth. ----- Original Message ----- From: "Benoit Minisini" To: "mailing list for gambas users" Sent: Wednesday, 14 January, 2009 11:44:22 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas2 components? On jeudi 15 janvier 2009, Gareth Bult wrote: > Mmm, > > I wouldn't know "how" to do what GridEditor does without autoinc fields and > last_id .. if other DB's make this difficult or don't provide the > functionality, that sort of reinforces my suggestion that one should choose > MySQL. > > Just turning it around for a second, is there any reason why one should > *not* use MySQL? > > As a 10yr+ MySQL user, my views may be biased, however to the best of my > knowledge; a. MySQL is faster than the competition, certainly the likes of > Postgres (by a lot!) b. MySQL does not crash - so it's reliability is not > question > c. Current versions support all the stuff (triggers, stored proc's etc) > that people used to insist was their excuse for Postgres d. MySQL does > loads of back end replication stuff other DB's don't do e. MySQL runs on > more Platforms than any other DB > f. It has bindings for every language I can think of, and then some > g. It has loads of nice GUI tools and designers (commercial and free) > .. etc .. etc .. etc ... > > yes I do have the T-shirt, but no they're not paying me. > > Bottom line, I have no reason why GridEditor should not support other DB's > , just so long as they can actually do the job .. so as soon as people with > the relevant expertise provide Gambas with autoinc / lastid support, I'll > see if I can use it in place of a raw SELECT statement .. how's that ? ? > :-) > > Gareth. > 1) How can you know that we should use MySQL if you have used MySQL only? 2) The MySQL C API is, hem... strange. Let be politically correct there. 3) Why did they change their timestamp format suddenly? 4) There is no difference between a BLOB and a large TEXT field. 5) MySQL only get features recently that PostgreSQL had for years. 6) David Villalobos Cambronero got an error message from mysql. I have no idea at all where it comes from. Maybe it is gb.db.mysql fault there, but it makes me angry. :-) Not that PostgreSQL is perfect, far from that. The only clean database API I know is the SQLite one. The funny thing in Gambas is that the gb.db.sqlite component (sorry Niggel!) has used a crappy C++ layer on top! And I don't talk about sticking the word "standard" with "SQL"... -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From jussi.lahtinen at ...626... Thu Jan 15 01:48:18 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 15 Jan 2009 02:48:18 +0200 Subject: [Gambas-user] An other OO problem. Message-ID: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> Hi! Again I'm having OO headache (I'm OO newbie). I have very simple task, and I believe the solution would be as simple... I just don't get it. I need to make independent copy of object, from collection A to collection B. I tried following (among other things): Dim A as NEW Collection Dim B as NEW Collection ... A.Add(B[n]) ... But the result is something like same object in both collections. When I do example; A[n].X = 1234 Then the corresponding object in collection B changes too; PRINT B[n].X 1234 I could do this; ... A[n].X = B[n].X A[n].Y = B[n].Y ...and so on... But those objects have very many variables, object arrays etc.! I really hope there is an other way... Thanks! Jussi From gambas at ...1... Thu Jan 15 01:50:45 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jan 2009 01:50:45 +0100 Subject: [Gambas-user] An other OO problem. In-Reply-To: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> References: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> Message-ID: <200901150150.45409.gambas@...1...> On jeudi 15 janvier 2009, Jussi Lahtinen wrote: > Hi! > Again I'm having OO headache (I'm OO newbie). > I have very simple task, and I believe the solution would be as > simple... I just don't get it. > I need to make independent copy of object, from collection A to collection > B. > > I tried following (among other things): > > Dim A as NEW Collection > Dim B as NEW Collection > > ... > A.Add(B[n]) > ... > > But the result is something like same object in both collections. > When I do example; > > A[n].X = 1234 > > Then the corresponding object in collection B changes too; > > PRINT B[n].X > 1234 > > I could do this; > > ... > A[n].X = B[n].X > A[n].Y = B[n].Y > ...and so on... > > But those objects have very many variables, object arrays etc.! > I really hope there is an other way... > Thanks! > > > Jussi > Objects are handled by reference only. If you need to copy an object of your own, you must do it yourself. Some native objects (like arrays) have a Copy() method, but most don't. Regards, -- Benoit Minisini From jaap_cramer at ...67... Thu Jan 15 01:53:25 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 15 Jan 2009 01:53:25 +0100 Subject: [Gambas-user] Open GL help needed Message-ID: Hi Sorry I had send my question twice. I recently enabled the mailing list and thought my message did not get through... I solved my rotation-problem. I had to enable the depth with the line Gl.Enable(Gl.GL_DEPTH_TEST) All rotations (x,y and z, work now properly) Remains the 2 little odd things: * set focus behaviour * gb.sdl.info and gb.sdl.list have to be contained in next ubuntu packages thanks! Jaap ____________________________ Original message: ____________________________ Hi! I've written a litte program wich uses Open GL. I draw the triangle. I discovered some strange behaviour. Nothing is drawn, unless I set the focus on something else, and then on the GlArea. Which is strange, i think. However. That is not my MAIN problem. I dont understand how to use the Gl.Rotatef function. The button 'rotate' switches this function on and off. When it's Off, the triangle is correctly draw. When the value in TRUE, something starts moving, but it is to close: a huge green area, and after a little while it moves left, and then comes back... It looks like a rotation but to close. I hope my description is clear, and someone is able to help me. I use Gambas 2.7, Ubuntu 8.10 And the GambasGears demo is working properly (After I put the gb.sdl.info and gb.sdl.list in /usr/share/gambas2/info. Ubuntu package error). Jaap _________________________________________________________________ Blijf altijd op de hoogte van wat jouw vrienden doen http://home.live.com From jaap_cramer at ...67... Thu Jan 15 02:15:42 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 15 Jan 2009 02:15:42 +0100 Subject: [Gambas-user] New bugs in OpenGl Message-ID: Hi I discovered a new bug in the OpenGl module. I use gl.Color4f(0, 1, 0, iTriangleAlpha) to color a object. The variable iTriangleAlpha does not change the opacity but the size. (see attachment, use slider) Is openGl still being worked on? Jaap _________________________________________________________________ Download de nieuwste emoticons voor in je Messenger http://www.msnmessengerexperience.nl/chuck/ -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenGLTest-0.0.2.tar.gz Type: application/x-gzip Size: 9515 bytes Desc: not available URL: From kaoticus60 at ...151... Thu Jan 15 08:24:04 2009 From: kaoticus60 at ...151... (andy) Date: Thu, 15 Jan 2009 08:24:04 +0100 Subject: [Gambas-user] Component Web Browser In-Reply-To: References: Message-ID: <496EE494.1070601@...151...> It seems to me some differences in images rendering , comparing with same html page in Firefox. It dipends from different backend (Gecko and Kde)? Do u think to improve this component? Thankyou Andrea Bertini From gambas at ...1... Thu Jan 15 13:53:23 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jan 2009 13:53:23 +0100 Subject: [Gambas-user] New bugs in OpenGl In-Reply-To: References: Message-ID: <200901151353.23646.gambas@...1...> On jeudi 15 janvier 2009, Jaap Cramer wrote: > Hi > > I discovered a new bug in the OpenGl module. > I use gl.Color4f(0, 1, 0, iTriangleAlpha) to color a object. The variable > iTriangleAlpha does not change the opacity but the size. (see attachment, > use slider) I see nothing wrong in the source code of this function. The four arguments are directly sent to the glColor4d OpenGL API. > > Is openGl still being worked on? Only Laurent Carlier can answer you. Regards, -- Benoit Minisini From david_villalobos_c at ...43... Thu Jan 15 14:58:16 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 15 Jan 2009 05:58:16 -0800 (PST) Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now References: <271634.59504.qm@...1656...> <200901102251.07921.gambas@...1...> <178552.28223.qm@...1670...> <200901150039.12396.gambas@...1...> Message-ID: <679777.24547.qm@...1656...> Sure, here it is: mysql: 0x7b3680: CALL `sp_Procedimientos` mysql: 0x7b3680: CALL `sp_Tablas` And it fails on the second CALL, showing the messasage I sent you. Atacched the code form my form. Reagards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Wednesday, January 14, 2009 5:39:12 PM Subject: Re: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now On lundi 12 janvier 2009, David Villalobos Cambronero wrote: > Not sure... but what I know for sure is that is not in my Gambas part. > Attached is an example using only gb.db > > I try to take a look in the C part, but I couldn't find anything. > > Attached is the entire script for my database, and an example. > > I you connect directly to mysql and execute the last tow statements they > work, so I think it is a bug in the C part. > > > MySQL says: > > > If you get Commands out of sync; you can't run this command now in your > client code, you are calling client functions in the wrong order. This can > happen, for example, if you are using mysql_use_result() and try to execute > a new query before you have called mysql_free_result(). It can also happen > if you try to execute two queries that return data without calling > mysql_use_result() or mysql_store_result() in between. Best Regards > > > -- > David > Can you make the dump of all mysql requests sent by using DB.Debug = TRUE ? -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- A non-text attachment was scrubbed... Name: FRMPermisos.form Type: application/octet-stream Size: 1511 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FRMPermisos.class Type: application/x-java-vm Size: 5912 bytes Desc: not available URL: From gambas at ...1... Thu Jan 15 15:02:09 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 15 Jan 2009 15:02:09 +0100 Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now In-Reply-To: <679777.24547.qm@...1656...> References: <271634.59504.qm@...1656...> <200901150039.12396.gambas@...1...> <679777.24547.qm@...1656...> Message-ID: <200901151502.09280.gambas@...1...> On jeudi 15 janvier 2009, David Villalobos Cambronero wrote: > Sure, here it is: > > mysql: 0x7b3680: CALL `sp_Procedimientos` > mysql: 0x7b3680: CALL `sp_Tablas` > > > And it fails on the second CALL, showing the messasage I sent you. > > Atacched the code form my form. > > > Reagards > > > -- > David > Does the 'CALL' MySQL instruction need to be handled in a different way than all other requests? Apparently it does! -- Benoit Minisini From jaap_cramer at ...67... Thu Jan 15 15:14:58 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Thu, 15 Jan 2009 15:14:58 +0100 Subject: [Gambas-user] New bugs in OpenGl In-Reply-To: <200901151353.23646.gambas@...1...> References: <200901151353.23646.gambas@...1...> Message-ID: > On jeudi 15 janvier 2009, Jaap Cramer wrote: > > Hi > > > > I discovered a new bug in the OpenGl module. > > I use gl.Color4f(0, 1, 0, iTriangleAlpha) to color a object. The variable > > iTriangleAlpha does not change the opacity but the size. (see attachment, > > use slider) > > I see nothing wrong in the source code of this function. The four arguments > are directly sent to the glColor4d OpenGL API. Could it be an OpenGl Api bug? :( ... > > Is openGl still being worked on? > > Only Laurent Carlier can answer you. I hope he is. It would be great, if some unfinished (but stable ;) ) modules could be finished :D Thanks for your response. Jaap > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ Blijf altijd op de hoogte van wat jouw vrienden doen http://home.live.com From david_villalobos_c at ...43... Thu Jan 15 15:29:01 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 15 Jan 2009 06:29:01 -0800 (PST) Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now References: <271634.59504.qm@...1656...> <200901150039.12396.gambas@...1...> <679777.24547.qm@...1656...> <200901151502.09280.gambas@...1...> Message-ID: <970335.74406.qm@...1657...> No, it is handled in the same way, since if you execute both statements in the mysql console, they run perfectly. But let me check some thing, what I will do is to try to understand your code, if I don't know something I will ask you. Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Thursday, January 15, 2009 8:02:09 AM Subject: Re: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now On jeudi 15 janvier 2009, David Villalobos Cambronero wrote: > Sure, here it is: > > mysql: 0x7b3680: CALL `sp_Procedimientos` > mysql: 0x7b3680: CALL `sp_Tablas` > > > And it fails on the second CALL, showing the messasage I sent you. > > Atacched the code form my form. > > > Reagards > > > -- > David > Does the 'CALL' MySQL instruction need to be handled in a different way than all other requests? Apparently it does! -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From david_villalobos_c at ...43... Thu Jan 15 15:32:06 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Thu, 15 Jan 2009 06:32:06 -0800 (PST) Subject: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now References: <271634.59504.qm@...1656...> <200901150039.12396.gambas@...1...> <679777.24547.qm@...1656...> <200901151502.09280.gambas@...1...> Message-ID: <246071.76286.qm@...1657...> Here is a background: http://dev.mysql.com/doc/refman/5.0/en/mysql-use-result.html Please tell me what do you think... Regards -- David ----- Original Message ---- From: Benoit Minisini To: mailing list for gambas users Sent: Thursday, January 15, 2009 8:02:09 AM Subject: Re: [Gambas-user] Error on gb.db.mysql: Commands out of sync; you can't run this command now On jeudi 15 janvier 2009, David Villalobos Cambronero wrote: > Sure, here it is: > > mysql: 0x7b3680: CALL `sp_Procedimientos` > mysql: 0x7b3680: CALL `sp_Tablas` > > > And it fails on the second CALL, showing the messasage I sent you. > > Atacched the code form my form. > > > Reagards > > > -- > David > Does the 'CALL' MySQL instruction need to be handled in a different way than all other requests? Apparently it does! -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Thu Jan 15 16:46:49 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 15 Jan 2009 10:46:49 -0500 Subject: [Gambas-user] Component Web Browser In-Reply-To: <496EE494.1070601@...151...> References: <496EE494.1070601@...151...> Message-ID: <200901151046.49900.sourceforge-raindog2@...94...> On Thursday 15 January 2009 02:24, andy wrote: > It seems to me some differences in images rendering , comparing with > same html page in Firefox. It dipends from different backend (Gecko and > Kde)? > > Do u think to improve this component? Thankyou The gb.qt.kde.html component uses KHTML to render pages. Other than being the rendering engine for Konqueror, KHTML is essentially Webkit, used in the iPhone, Safari and Google Chrome. You would need to talk to the KHTML/Webkit developers to request changes in page rendering. It should be possible to write a different html component using Gecko, but I personally don't have time to do that. Rob From jussi.lahtinen at ...626... Thu Jan 15 20:13:27 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 15 Jan 2009 21:13:27 +0200 Subject: [Gambas-user] Minor bug with READ & WRITE commands? Message-ID: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> Hi! Here is my test code (first with errors) for pass array of objects byref to external function: PUBLIC SUB Button4_Click() DIM ii AS Integer DIM pResult AS Pointer DIM fResult AS NEW Object[] DIM aa AS Class1 FOR ii = 0 TO 9 aa = NEW Class1 aa.x = 100 aa.y = 200 fResult.Add(aa) NEXT pResult = Alloc(8, 10) FOR ii = 0 TO 9 WITH fResult[ii] WRITE #pResult + (ii * 8), .x WRITE #pResult + ((ii * 8) + 4), .y END WITH NEXT GetAStruct(pResult) FOR ii = 0 TO 9 WITH fResult[ii] READ #pResult + (ii * 8), .x READ #pResult + ((ii * 8) + 4), .y END WITH NEXT Free(pResult) FOR ii = 0 TO 9 PRINT fResult[ii].x & " " & fResult[ii].y NEXT ' END Line: READ #pResult + (ii * 8), .x Gives error; Type mismatch: wanted Integer, got String instead. ?? And line: WRITE #pResult + (ii * 8), .x Writes rubbish into memory. No error messages. If I change code this way, it works perfectly: PUBLIC SUB Button4_Click() DIM ii AS Integer DIM pResult AS Pointer DIM fResult AS NEW Object[] DIM aa AS Class1 DIM kk AS Integer FOR ii = 0 TO 9 aa = NEW Class1 aa.x = 100 aa.y = 200 fResult.Add(aa) NEXT pResult = Alloc(8, 10) FOR ii = 0 TO 9 WITH fResult[ii] kk = .x WRITE #pResult + (ii * 8), kk kk = .y WRITE #pResult + ((ii * 8) + 4), kk END WITH NEXT GetAStruct(pResult) FOR ii = 0 TO 9 WITH fResult[ii] READ #pResult + (ii * 8), kk .x = kk READ #pResult + ((ii * 8) + 4), kk .y = kk END WITH NEXT Free(pResult) FOR ii = 0 TO 9 PRINT fResult[ii].x & " " & fResult[ii].y NEXT ' END Strange thing is that the whole code has no string on it. Class1: PUBLIC x AS Integer PUBLIC y AS Integer So, why .x is "string" ? Is there better way to do this (@ Gambas2.10.2)? Jussi From gambas at ...1... Fri Jan 16 00:17:19 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 Jan 2009 00:17:19 +0100 Subject: [Gambas-user] Component Web Browser In-Reply-To: <200901151046.49900.sourceforge-raindog2@...94...> References: <496EE494.1070601@...151...> <200901151046.49900.sourceforge-raindog2@...94...> Message-ID: <200901160017.19253.gambas@...1...> On jeudi 15 janvier 2009, Rob wrote: > On Thursday 15 January 2009 02:24, andy wrote: > > It seems to me some differences in images rendering , comparing with > > same html page in Firefox. It dipends from different backend (Gecko and > > Kde)? > > > > Do u think to improve this component? Thankyou > > The gb.qt.kde.html component uses KHTML to render pages. Other than being > the rendering engine for Konqueror, KHTML is essentially Webkit, used in > the iPhone, Safari and Google Chrome. You would need to talk to the > KHTML/Webkit developers to request changes in page rendering. > > It should be possible to write a different html component using Gecko, but > I personally don't have time to do that. > > Rob > It uses the KHTML component of KDE 3. I see no need to develop it at the moment. I prefer waiting for a WebKit-based solution. -- Benoit Minisini From rterry at ...1946... Fri Jan 16 03:14:13 2009 From: rterry at ...1946... (richard terry) Date: Fri, 16 Jan 2009 13:14:13 +1100 Subject: [Gambas-user] Spacing = True Question Message-ID: <200901161314.13144.rterry@...1946...> Wonder if someone could clarify this for me. Previously spacing was (and the documention in the IDE still says it is) the number of pixels separating child controls. If this is so, how does one give this a value? Personally I think using spacing like this is a backwards step for gambas. This little property was one of the wonderful things about the gui-designer, one had absolute control over the gaps between things, which when you are designing a gui with lots of objects, every pixel becomes critical. Now all I can see to do is switch spacing off, and use padding to set the distance betwen 2 controls you don't want to touch - and that at a minimum will be 2 pixel widths, as padding pads all around an object. Regards Richard From gambas at ...1... Fri Jan 16 03:49:01 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 Jan 2009 03:49:01 +0100 Subject: [Gambas-user] Spacing = True Question In-Reply-To: <200901161314.13144.rterry@...1946...> References: <200901161314.13144.rterry@...1946...> Message-ID: <200901160349.01725.gambas@...1...> On vendredi 16 janvier 2009, richard terry wrote: > Wonder if someone could clarify this for me. > > Previously spacing was (and the documention in the IDE still says it is) > the number of pixels separating child controls. If this is so, how does one > give this a value? > > Personally I think using spacing like this is a backwards step for gambas. > This little property was one of the wonderful things about the > gui-designer, one had absolute control over the gaps between things, which > when you are designing a gui with lots of objects, every pixel becomes > critical. > > Now all I can see to do is switch spacing off, and use padding to set the > distance betwen 2 controls you don't want to touch - and that at a minimum > will be 2 pixel widths, as padding pads all around an object. > > Regards > > Richard > This change is a way to prevent VB-like GUI with too small or random spacing between widgets, *and* to make the spacing proportional to the font size. Please provide a concrete example of the usefullness of arbitrary spacing, otherwise the discussion will remain theoretical. If you run out of space because you have too many widgets on the screen, maybe this is a sign that your GUI should be redesigned? -- Benoit Minisini From gambas at ...1... Fri Jan 16 03:50:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 16 Jan 2009 03:50:16 +0100 Subject: [Gambas-user] Minor bug with READ & WRITE commands? In-Reply-To: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> References: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> Message-ID: <200901160350.16389.gambas@...1...> On jeudi 15 janvier 2009, Jussi Lahtinen wrote: > Hi! > > Here is my test code (first with errors) for pass array of objects > byref to external function: > > PUBLIC SUB Button4_Click() > DIM ii AS Integer > DIM pResult AS Pointer > DIM fResult AS NEW Object[] > DIM aa AS Class1 > > FOR ii = 0 TO 9 > aa = NEW Class1 > aa.x = 100 > aa.y = 200 > fResult.Add(aa) > NEXT > > pResult = Alloc(8, 10) > > FOR ii = 0 TO 9 > WITH fResult[ii] > WRITE #pResult + (ii * 8), .x > WRITE #pResult + ((ii * 8) + 4), .y > END WITH > NEXT > > GetAStruct(pResult) > > FOR ii = 0 TO 9 > WITH fResult[ii] > READ #pResult + (ii * 8), .x > READ #pResult + ((ii * 8) + 4), .y > END WITH > NEXT > > Free(pResult) > > FOR ii = 0 TO 9 > PRINT fResult[ii].x & " " & fResult[ii].y > NEXT ' > > END > > > Line: READ #pResult + (ii * 8), .x > Gives error; Type mismatch: wanted Integer, got String instead. ?? > > And line: WRITE #pResult + (ii * 8), .x > Writes rubbish into memory. No error messages. > > If I change code this way, it works perfectly: > > PUBLIC SUB Button4_Click() > DIM ii AS Integer > DIM pResult AS Pointer > DIM fResult AS NEW Object[] > DIM aa AS Class1 > DIM kk AS Integer > > FOR ii = 0 TO 9 > aa = NEW Class1 > aa.x = 100 > aa.y = 200 > fResult.Add(aa) > NEXT > > > pResult = Alloc(8, 10) > > FOR ii = 0 TO 9 > WITH fResult[ii] > kk = .x > WRITE #pResult + (ii * 8), kk > kk = .y > WRITE #pResult + ((ii * 8) + 4), kk > END WITH > NEXT > > GetAStruct(pResult) > > FOR ii = 0 TO 9 > WITH fResult[ii] > READ #pResult + (ii * 8), kk > .x = kk > READ #pResult + ((ii * 8) + 4), kk > .y = kk > END WITH > NEXT > > Free(pResult) > > FOR ii = 0 TO 9 > PRINT fResult[ii].x & " " & fResult[ii].y > NEXT ' > > END > > > Strange thing is that the whole code has no string on it. > Class1: > PUBLIC x AS Integer > PUBLIC y AS Integer > > > So, why .x is "string" ? > Is there better way to do this (@ Gambas2.10.2)? > > > Jussi > Can you send me a source archive of that project? -- Benoit Minisini From doriano.blengino at ...1909... Fri Jan 16 10:47:39 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 16 Jan 2009 10:47:39 +0100 Subject: [Gambas-user] Spacing = True Question In-Reply-To: <200901160349.01725.gambas@...1...> References: <200901161314.13144.rterry@...1946...> <200901160349.01725.gambas@...1...> Message-ID: <497057BB.2080108@...1909...> Benoit Minisini ha scritto: > On vendredi 16 janvier 2009, richard terry wrote: > >> Wonder if someone could clarify this for me. >> >> Previously spacing was (and the documention in the IDE still says it is) >> the number of pixels separating child controls. If this is so, how does one >> give this a value? >> >> Personally I think using spacing like this is a backwards step for gambas. >> This little property was one of the wonderful things about the >> gui-designer, one had absolute control over the gaps between things, which >> when you are designing a gui with lots of objects, every pixel becomes >> critical. >> > > This change is a way to prevent VB-like GUI with too small or random spacing > between widgets, *and* to make the spacing proportional to the font size. > > Please provide a concrete example of the usefullness of arbitrary spacing, > otherwise the discussion will remain theoretical. > > If you run out of space because you have too many widgets on the screen, maybe > this is a sign that your GUI should be redesigned? > > Just my 2 cents opinion. It seems to me that this Spacing property has undergone two changes - but it is not clear. It was previously a container property specifying how much space had to be *between* children, and now instead specifies how much space surround a control? If it is so, then I don't see too much difference, but perhaps the new way is more handy. The second change, about render the spacing proportional to font size, can be good or not. I prepend to think that absolute coordinates are bad, and so I approve this change, but I don't forget that a programmer should have complete freedom: if he wants two pixel, he should have that. Perhaps the Scaled property of a Form lets the programmer do that (when set to false), perhaps not. But setting Scaled=False makes a great (too much great) difference. There are ways to specify measurements, like in html: 2px, 2mm, 2whatever... soon or later someone should think extensively about this, and someone should implement this. For example, three choices could be given for measurements: pixels (absolute), font-relative, and screen size relative. The X coordinate of a control could be given like: 10px -> absolute pixels - very narrow in high resolution, small displays 10fp -> proportional to font, wide about a character, almost always reasonable 10pt -> (points) proportional to screen resolution, should display the same everywhere Well, may be I made some error or forgot something, but the general idea can be understood... the scaling property of widgets should not be merely True or False, but one of the previous (and perhaps other) modes. This way one could design a GUI with reasonable spacing between controls (related to font), but have unscaled 1:1 GIF images, and real-size Jpg images or print previews. But this freedom carries also other problems: how to align items when different coordinate systems are used? The only way is to dock controls each other, and not all them inside a container. Regards, Doriano From jussi.lahtinen at ...626... Fri Jan 16 13:16:57 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 16 Jan 2009 14:16:57 +0200 Subject: [Gambas-user] Minor bug with READ & WRITE commands? In-Reply-To: <200901160350.16389.gambas@...1...> References: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> <200901160350.16389.gambas@...1...> Message-ID: <384d3900901160416g499d8a39xad3594b17cb85378@...627...> Here they are. I included also "C-function.tar.gz", it contains source code (and binary) of shared library that ExtrnTEST uses. It is compiled with Code::Blocks. For some reason Code::Blocks forgets compiling option -fPIC when doing debug version (!??), so it's release version. These projects exist only for test purpose! Jussi On Fri, Jan 16, 2009 at 4:50 AM, Benoit Minisini wrote: > On jeudi 15 janvier 2009, Jussi Lahtinen wrote: >> Hi! >> >> Here is my test code (first with errors) for pass array of objects >> byref to external function: >> >> PUBLIC SUB Button4_Click() >> DIM ii AS Integer >> DIM pResult AS Pointer >> DIM fResult AS NEW Object[] >> DIM aa AS Class1 >> >> FOR ii = 0 TO 9 >> aa = NEW Class1 >> aa.x = 100 >> aa.y = 200 >> fResult.Add(aa) >> NEXT >> >> pResult = Alloc(8, 10) >> >> FOR ii = 0 TO 9 >> WITH fResult[ii] >> WRITE #pResult + (ii * 8), .x >> WRITE #pResult + ((ii * 8) + 4), .y >> END WITH >> NEXT >> >> GetAStruct(pResult) >> >> FOR ii = 0 TO 9 >> WITH fResult[ii] >> READ #pResult + (ii * 8), .x >> READ #pResult + ((ii * 8) + 4), .y >> END WITH >> NEXT >> >> Free(pResult) >> >> FOR ii = 0 TO 9 >> PRINT fResult[ii].x & " " & fResult[ii].y >> NEXT ' >> >> END >> >> >> Line: READ #pResult + (ii * 8), .x >> Gives error; Type mismatch: wanted Integer, got String instead. ?? >> >> And line: WRITE #pResult + (ii * 8), .x >> Writes rubbish into memory. No error messages. >> >> If I change code this way, it works perfectly: >> >> PUBLIC SUB Button4_Click() >> DIM ii AS Integer >> DIM pResult AS Pointer >> DIM fResult AS NEW Object[] >> DIM aa AS Class1 >> DIM kk AS Integer >> >> FOR ii = 0 TO 9 >> aa = NEW Class1 >> aa.x = 100 >> aa.y = 200 >> fResult.Add(aa) >> NEXT >> >> >> pResult = Alloc(8, 10) >> >> FOR ii = 0 TO 9 >> WITH fResult[ii] >> kk = .x >> WRITE #pResult + (ii * 8), kk >> kk = .y >> WRITE #pResult + ((ii * 8) + 4), kk >> END WITH >> NEXT >> >> GetAStruct(pResult) >> >> FOR ii = 0 TO 9 >> WITH fResult[ii] >> READ #pResult + (ii * 8), kk >> .x = kk >> READ #pResult + ((ii * 8) + 4), kk >> .y = kk >> END WITH >> NEXT >> >> Free(pResult) >> >> FOR ii = 0 TO 9 >> PRINT fResult[ii].x & " " & fResult[ii].y >> NEXT ' >> >> END >> >> >> Strange thing is that the whole code has no string on it. >> Class1: >> PUBLIC x AS Integer >> PUBLIC y AS Integer >> >> >> So, why .x is "string" ? >> Is there better way to do this (@ Gambas2.10.2)? >> >> >> Jussi >> > > Can you send me a source archive of that project? > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: ExtrnTEST-0.0.1.tar.gz Type: application/x-gzip Size: 8400 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: C-functions.tar.gz Type: application/x-gzip Size: 1854 bytes Desc: not available URL: From david_villalobos_c at ...43... Fri Jan 16 15:11:50 2009 From: david_villalobos_c at ...43... (David Villalobos Cambronero) Date: Fri, 16 Jan 2009 06:11:50 -0800 (PST) Subject: [Gambas-user] Error compiling 3-1802 Message-ID: <855634.51032.qm@...1667...> Hi I got these error when compile Gambas 3 rv 1802 on Mandriva 2008.1 64 Bits, I'm missing some lib? /usr/bin/ld: cannot find -lqt-mt collect2: ld returned 1 exit status make[5]: *** [gb.qt.kde.html.la] Error 1 make[5]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde/src/html' make[4]: *** [all-recursive] Error 1 make[4]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde/src' make[3]: *** [all-recursive] Error 1 make[3]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' make[2]: *** [all] Error 2 make[2]: se sale del directorio `/home/david/Gambas/trunk/gb.qt.kde' make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio `/home/david/Gambas/trunk' make: *** [all] Error 2 Best Regards -- David From nando_f at ...951... Fri Jan 16 19:51:37 2009 From: nando_f at ...951... (nando) Date: Fri, 16 Jan 2009 13:51:37 -0500 Subject: [Gambas-user] Minor bug with READ & WRITE commands? In-Reply-To: <200901160350.16389.gambas@...1...> References: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> <200901160350.16389.gambas@...1...> Message-ID: <20090116184547.M24815@...951...> Benoit, Question regarding the line: > > WRITE #pResult + (ii * 8), .x does WRITE see it casted as variant or int ? -Fernando ---------- Original Message ----------- From: Benoit Minisini To: mailing list for gambas users Sent: Fri, 16 Jan 2009 03:50:16 +0100 Subject: Re: [Gambas-user] Minor bug with READ & WRITE commands? > On jeudi 15 janvier 2009, Jussi Lahtinen wrote: > > Hi! > > > > Here is my test code (first with errors) for pass array of objects > > byref to external function: > > > > PUBLIC SUB Button4_Click() > > DIM ii AS Integer > > DIM pResult AS Pointer > > DIM fResult AS NEW Object[] > > DIM aa AS Class1 > > > > FOR ii = 0 TO 9 > > aa = NEW Class1 > > aa.x = 100 > > aa.y = 200 > > fResult.Add(aa) > > NEXT > > > > pResult = Alloc(8, 10) > > > > FOR ii = 0 TO 9 > > WITH fResult[ii] > > WRITE #pResult + (ii * 8), .x > > WRITE #pResult + ((ii * 8) + 4), .y > > END WITH > > NEXT > > > > GetAStruct(pResult) > > > > FOR ii = 0 TO 9 > > WITH fResult[ii] > > READ #pResult + (ii * 8), .x > > READ #pResult + ((ii * 8) + 4), .y > > END WITH > > NEXT > > > > Free(pResult) > > > > FOR ii = 0 TO 9 > > PRINT fResult[ii].x & " " & fResult[ii].y > > NEXT ' > > > > END > > > > > > Line: READ #pResult + (ii * 8), .x > > Gives error; Type mismatch: wanted Integer, got String instead. ?? > > > > And line: WRITE #pResult + (ii * 8), .x > > Writes rubbish into memory. No error messages. > > > > If I change code this way, it works perfectly: > > > > PUBLIC SUB Button4_Click() > > DIM ii AS Integer > > DIM pResult AS Pointer > > DIM fResult AS NEW Object[] > > DIM aa AS Class1 > > DIM kk AS Integer > > > > FOR ii = 0 TO 9 > > aa = NEW Class1 > > aa.x = 100 > > aa.y = 200 > > fResult.Add(aa) > > NEXT > > > > > > pResult = Alloc(8, 10) > > > > FOR ii = 0 TO 9 > > WITH fResult[ii] > > kk = .x > > WRITE #pResult + (ii * 8), kk > > kk = .y > > WRITE #pResult + ((ii * 8) + 4), kk > > END WITH > > NEXT > > > > GetAStruct(pResult) > > > > FOR ii = 0 TO 9 > > WITH fResult[ii] > > READ #pResult + (ii * 8), kk > > .x = kk > > READ #pResult + ((ii * 8) + 4), kk > > .y = kk > > END WITH > > NEXT > > > > Free(pResult) > > > > FOR ii = 0 TO 9 > > PRINT fResult[ii].x & " " & fResult[ii].y > > NEXT ' > > > > END > > > > > > Strange thing is that the whole code has no string on it. > > Class1: > > PUBLIC x AS Integer > > PUBLIC y AS Integer > > > > > > So, why .x is "string" ? > > Is there better way to do this (@ Gambas2.10.2)? > > > > > > Jussi > > > > Can you send me a source archive of that project? > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From simonart.dominique at ...11... Sat Jan 17 02:52:54 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Sat, 17 Jan 2009 02:52:54 +0100 Subject: [Gambas-user] Alignment or Gridview problem? In-Reply-To: <200901142117.10203.gambas@...1...> References: <49663F1B.8040108@...11...> <496B8AB1.1060707@...11...> <200901121946.54430.gambas@...1...> <200901142117.10203.gambas@...1...> Message-ID: <497139F6.4040006@...11...> Benoit Minisini a ?crit : > On lundi 12 janvier 2009, Benoit Minisini wrote: >>> I think there is a problem with the *last* column of a gridview, but may >>> be I missed something instead. >>> 1) In the TestOne, the code is what I want to get (the usage of 'k' is >>> for the test only!), but the display is not what I expected (nothing >>> visible in the las column) >>> 2) If I remove the Alignment instruction (TestTwo), I get what I expect, >>> but not what I wished! >>> 3) As a workaround (TestThree), I add a column to my gridview, I mask it >>> with the width limitation (role of k=1), and I restore the alignment. >>> >>> As you can see, the problem is just with the last column with centered >>> text Is the first case works as expected? >> Please send me your project. It will be simpler for me to deal with the >> real thing instead of reproducing it from what you say. >> >> Regards, > > I committed a fix for that problem in revision #1801. > > Regards, > Good news, Thanks Benoit (sorry for the delay) Dominique Simonart From joshiggins at ...1601... Sat Jan 17 12:05:10 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sat, 17 Jan 2009 11:05:10 +0000 Subject: [Gambas-user] high cpu usage with UDP server/client Message-ID: <4247f5440901170305x30537a3oc072aa039385af32@...627...> Hello, I'm looking at the UDP Server/Client example, and when the server is running, the program uses 13% CPU constantly, shown by htop. Firefox on my system uses 4.5% average when browsing. Is this relatively high CPU usage normal for the UDP server example? -- joshua higgins >>>>>>------ From gambas at ...1... Sat Jan 17 15:45:42 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 17 Jan 2009 15:45:42 +0100 Subject: [Gambas-user] high cpu usage with UDP server/client In-Reply-To: <4247f5440901170305x30537a3oc072aa039385af32@...627...> References: <4247f5440901170305x30537a3oc072aa039385af32@...627...> Message-ID: <200901171545.42912.gambas@...1...> On samedi 17 janvier 2009, Joshua Higgins wrote: > Hello, > > I'm looking at the UDP Server/Client example, and when the server is > running, the program uses 13% CPU constantly, shown by htop. Firefox on my > system uses 4.5% average when browsing. Is this relatively high CPU usage > normal for the UDP server example? No, but there was a bug fix recently about that: which version of Gambas do you use? -- Benoit Minisini From wdahn at ...1000... Sat Jan 17 16:46:44 2009 From: wdahn at ...1000... (Werner) Date: Sat, 17 Jan 2009 23:46:44 +0800 Subject: [Gambas-user] Have I been kicked off the list? Message-ID: <4971FD64.5000304@...1000...> The last message I received was just before Christmas. Regards Werner From klaine8 at ...626... Sat Jan 17 17:44:24 2009 From: klaine8 at ...626... (Kari Laine) Date: Sat, 17 Jan 2009 18:44:24 +0200 Subject: [Gambas-user] Have I been kicked off the list? In-Reply-To: <4971FD64.5000304@...1000...> References: <4971FD64.5000304@...1000...> Message-ID: <61452b690901170844t40bcf63dke961a2fbafd3d8df@...627...> Hi Werner, It's January 17 today - so you seem be subscribed :-) kari On Sat, Jan 17, 2009 at 5:46 PM, Werner wrote: > The last message I received was just before Christmas. > > Regards > Werner > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From diego at ...1942... Sat Jan 17 19:11:47 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Sat, 17 Jan 2009 12:11:47 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <496DFCB9.6070704@...1942...> References: <496CA3F6.8080504@...1942...> <200901141501.31300.gambas@...1...> <496DF8EB.4060801@...1942...> <200901141544.08730.gambas@...1...> <496DFCB9.6070704@...1942...> Message-ID: <49721F63.3000506@...1942...> Hi Benoit, have you look/solve the datepicker bug yet? just asking, dont mean to pressure you.. Thanks Diego Fern?ndez escribi?: > Turning Off the Desktop effects, shows the datepicker in the center of > the container (form, frame,etc) > > > > Benoit Minisini escribi?: >> On mercredi 14 janvier 2009, Diego Fern?ndez wrote: >> >>> Hi, >>> >>> the signal 11 segmentation is no more, BUT, now when creating a new >>> project, then i insert a datepicker, when running it and try to pick a >>> date, the dialog appears in the upper left corner of the screen no >>> matter where the form is, i am ataching a screenshot so you can check. >>> >>> tell me if i am doing something wrong. >>> >>> thanks. >>> >>> >> >> Do you have the same behaviour without compiz? >> >> > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > ------------------------------------------------------------------------ > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pokerbirch at ...1601... Sat Jan 17 23:31:49 2009 From: pokerbirch at ...1601... (birchy) Date: Sat, 17 Jan 2009 14:31:49 -0800 (PST) Subject: [Gambas-user] Gambas is slower than Python?? Message-ID: <21521606.post@...1379...> I'm quite confused. I'm from a VB6 background, so when i moved to Ubuntu as my main O.S. Gambas was very attractive. Several things (mainly poor documentation) pushed me to try other languages. Having done a little C, C++, Java and PHP, i decided to give Python a go as it's getting very popular. I ported a function that i have used for many years in VB6 into Gambas and (today) have ported it to Python. Results are quite shocking to be honest. The following code takes 4.2sec to run on my oldish AMD 3000 pc. The Python version takes 1.9sec. Pythn is "only" a scripting language, so what gives?? PUBLIC SUB Main() DIM i AS Integer, t AS Float, s AS String t = Timer FOR i = 0 TO 999999 s = GetSubstring("QWERTYUIOP", "WE", "IO") NEXT PRINT Timer - t END PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String, endstring AS String) AS String RETURN Split(Split(doc, startstring)[2], endstring)[0] END -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21521606.html Sent from the gambas-user mailing list archive at Nabble.com. From webbox.uk at ...626... Sun Jan 18 00:08:18 2009 From: webbox.uk at ...626... (Kris Douglas) Date: Sat, 17 Jan 2009 23:08:18 +0000 Subject: [Gambas-user] Have I been kicked off the list? In-Reply-To: <61452b690901170844t40bcf63dke961a2fbafd3d8df@...627...> References: <4971FD64.5000304@...1000...> <61452b690901170844t40bcf63dke961a2fbafd3d8df@...627...> Message-ID: <8d424b9e0901171508l3943e28fxd3418fa13d3e349e@...627...> 2009/1/17 Kari Laine : > Hi Werner, > > It's January 17 today - so you seem be subscribed :-) > > > kari > > > On Sat, Jan 17, 2009 at 5:46 PM, Werner wrote: > >> The last message I received was just before Christmas. >> >> Regards >> Werner >> Hello, could be that the mail isn't coming through to him. I recommend you check your mail filters, Werner, just to make sure the gambas mailing list isn't being sent to spam/ dropped. -- Kris Douglas Softdel Limited Hosting Services Web: www.softdel.co.uk Mail: kris at ...2055... Company No. 6135915 Registered in England and Wales From gareth at ...1689... Sun Jan 18 00:33:19 2009 From: gareth at ...1689... (Gareth Bult) Date: Sat, 17 Jan 2009 23:33:19 +0000 (GMT) Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <17675131.347861232235119794.JavaMail.root@...1834...> Message-ID: <12864089.347881232235198938.JavaMail.root@...1834...> Erm, Both Python and Gambas compile to pseudo code and run through an interpreter .. so essentially they are the same in terms of the performance one might expect. Hence differences in performance will come down to the actual code you use and how good your relative examples are. In this case the Gambas example could be optimised a little (?) My machine is a little quicker that yours ( ;-) ) and your example runs in ~ 2.9s. However, modifying the split function to read; Return Scan(doc, "*WE*IO*")[1] Reduces this to ~ 1.4s. Could you supply your python code, then we could do a like for like comparison ?? (the different languages both have their strong and weak points re; speed) Gareth. ----- Original Message ----- From: "birchy" To: gambas-user at lists.sourceforge.net Sent: Saturday, 17 January, 2009 10:31:49 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: [Gambas-user] Gambas is slower than Python?? I'm quite confused. I'm from a VB6 background, so when i moved to Ubuntu as my main O.S. Gambas was very attractive. Several things (mainly poor documentation) pushed me to try other languages. Having done a little C, C++, Java and PHP, i decided to give Python a go as it's getting very popular. I ported a function that i have used for many years in VB6 into Gambas and (today) have ported it to Python. Results are quite shocking to be honest. The following code takes 4.2sec to run on my oldish AMD 3000 pc. The Python version takes 1.9sec. Pythn is "only" a scripting language, so what gives?? PUBLIC SUB Main() DIM i AS Integer, t AS Float, s AS String t = Timer FOR i = 0 TO 999999 s = GetSubstring("QWERTYUIOP", "WE", "IO") NEXT PRINT Timer - t END PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String, endstring AS String) AS String RETURN Split(Split(doc, startstring)[2], endstring)[0] END -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21521606.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From joshiggins at ...1601... Sun Jan 18 01:01:04 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Sun, 18 Jan 2009 00:01:04 +0000 Subject: [Gambas-user] high cpu usage with UDP server/client In-Reply-To: <200901171545.42912.gambas@...1...> References: <4247f5440901170305x30537a3oc072aa039385af32@...627...> <200901171545.42912.gambas@...1...> Message-ID: <4247f5440901171601y140d13acra81864df3e12373e@...627...> I am using the version packaged in Ubuntu Intrepid (2.7) 2009/1/17 Benoit Minisini > On samedi 17 janvier 2009, Joshua Higgins wrote: > > Hello, > > > > I'm looking at the UDP Server/Client example, and when the server is > > running, the program uses 13% CPU constantly, shown by htop. Firefox on > my > > system uses 4.5% average when browsing. Is this relatively high CPU usage > > normal for the UDP server example? > > No, but there was a bug fix recently about that: which version of Gambas do > you use? > > -- > Benoit Minisini > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From pokerbirch at ...1601... Sun Jan 18 01:04:36 2009 From: pokerbirch at ...1601... (birchy) Date: Sat, 17 Jan 2009 16:04:36 -0800 (PST) Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <12864089.347881232235198938.JavaMail.root@...1834...> References: <21521606.post@...1379...> <12864089.347881232235198938.JavaMail.root@...1834...> Message-ID: <21522547.post@...1379...> Gareth Bult-3 wrote: > Both Python and Gambas compile to pseudo code and run through an > interpreter .. so essentially they are the same in terms of the > performance one might expect. My mistake, i assumed that Gambas was an optimizing compiler like VB6. I'm actually quite disappointed with the PYTHON version as it is about 10x slower than it is in VB6. Gareth Bult-3 wrote: > However, modifying the split function to read; > Return Scan(doc, "*WE*IO*")[1] > > Reduces this to ~ 1.4s. > Approx 2.9sec on my machine. To be honest, i hadn't realised that gambas did not actually "compile" code through an optimized compiler, so that explains why it is not about 50x faster than Python (as expected). My current project uses the Curl library and PyCurl is much more configurable than Gambas's Curl component (HttpClient). I may also require running my app from a dedicated server in the future, so for THIS particular job, Python seems to be the best tool. If i need more speed, i'll drop to C++. I know that i could use Regex but i find it very unreadable and difficult to maintain and am basically too lazy to learn it. :) -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21522547.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sun Jan 18 01:24:39 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 01:24:39 +0100 Subject: [Gambas-user] high cpu usage with UDP server/client In-Reply-To: <4247f5440901171601y140d13acra81864df3e12373e@...627...> References: <4247f5440901170305x30537a3oc072aa039385af32@...627...> <200901171545.42912.gambas@...1...> <4247f5440901171601y140d13acra81864df3e12373e@...627...> Message-ID: <200901180124.39280.gambas@...1...> On dimanche 18 janvier 2009, Joshua Higgins wrote: > I am using the version packaged in Ubuntu Intrepid (2.7) > The bug was fixed in the 2.10! -- Benoit Minisini From gambas at ...1... Sun Jan 18 01:26:51 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 01:26:51 +0100 Subject: [Gambas-user] Have I been kicked off the list? In-Reply-To: <8d424b9e0901171508l3943e28fxd3418fa13d3e349e@...627...> References: <4971FD64.5000304@...1000...> <61452b690901170844t40bcf63dke961a2fbafd3d8df@...627...> <8d424b9e0901171508l3943e28fxd3418fa13d3e349e@...627...> Message-ID: <200901180126.51546.gambas@...1...> On dimanche 18 janvier 2009, Kris Douglas wrote: > 2009/1/17 Kari Laine : > > Hi Werner, > > > > It's January 17 today - so you seem be subscribed :-) > > > > > > kari > > > > On Sat, Jan 17, 2009 at 5:46 PM, Werner wrote: > >> The last message I received was just before Christmas. > >> > >> Regards > >> Werner > > Hello, could be that the mail isn't coming through to him. I recommend > you check your mail filters, Werner, just to make sure the gambas > mailing list isn't being sent to spam/ dropped. Sometimes you don't receive mails immediately because I think sourceforge mail servers are overbooked, but two weeks is a lot. Beware that the sourceforge mailman automatically cancels a subscription if he cannot send it mails too many times. -- Benoit Minisini From gambas at ...1... Sun Jan 18 01:31:47 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 01:31:47 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <21521606.post@...1379...> References: <21521606.post@...1379...> Message-ID: <200901180131.47459.gambas@...1...> On samedi 17 janvier 2009, birchy wrote: > I'm quite confused. I'm from a VB6 background, so when i moved to Ubuntu as > my main O.S. Gambas was very attractive. Several things (mainly poor > documentation) pushed me to try other languages. Having done a little C, > C++, Java and PHP, i decided to give Python a go as it's getting very > popular. I ported a function that i have used for many years in VB6 into > Gambas and (today) have ported it to Python. Results are quite shocking to > be honest. The following code takes 4.2sec to run on my oldish AMD 3000 pc. > The Python version takes 1.9sec. Pythn is "only" a scripting language, so > what gives?? > > PUBLIC SUB Main() > DIM i AS Integer, t AS Float, s AS String > > t = Timer > FOR i = 0 TO 999999 > s = GetSubstring("QWERTYUIOP", "WE", "IO") > NEXT > PRINT Timer - t > END > > PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String, > endstring AS String) AS String > RETURN Split(Split(doc, startstring)[2], endstring)[0] > END Interpreter performances depends on its implementation: one may be faster on a specific instruction, and slower on another one. On Gambas, it depends on the version too. Gambas 3 has a lot of optimizations compared to Gambas 2. Can you show us the code in Python? Maybe it will help me to find something that could be enhanced in Gambas if Python can do better? :-) -- Benoit Minisini From gambas at ...1... Sun Jan 18 01:39:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 01:39:37 +0100 Subject: [Gambas-user] Datepicker bug In-Reply-To: <49721F63.3000506@...1942...> References: <496CA3F6.8080504@...1942...> <496DFCB9.6070704@...1942...> <49721F63.3000506@...1942...> Message-ID: <200901180139.37612.gambas@...1...> On samedi 17 janvier 2009, Diego Fern?ndez wrote: > Hi Benoit, > > have you look/solve the datepicker bug yet? just asking, dont mean to > pressure you.. > > Thanks > Mmm, no. I didn't write the code, so maybe Philippe S?rafin, who made the control, can do something? -- Benoit Minisini From gambas at ...1... Sun Jan 18 01:42:28 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 01:42:28 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <200901180131.47459.gambas@...1...> References: <21521606.post@...1379...> <200901180131.47459.gambas@...1...> Message-ID: <200901180142.28525.gambas@...1...> > On samedi 17 janvier 2009, birchy wrote: > > > > PUBLIC SUB Main() > > DIM i AS Integer, t AS Float, s AS String > > > > t = Timer > > FOR i = 0 TO 999999 > > s = GetSubstring("QWERTYUIOP", "WE", "IO") > > NEXT > > PRINT Timer - t > > END > > > > PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String, > > endstring AS String) AS String > > RETURN Split(Split(doc, startstring)[2], endstring)[0] > > END The previous code takes 4,31s on my PC with Gambas 2, and 3,01s with Gambas 3. -- Benoit Minisini From pokerbirch at ...1601... Sun Jan 18 02:32:04 2009 From: pokerbirch at ...1601... (birchy) Date: Sat, 17 Jan 2009 17:32:04 -0800 (PST) Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <200901180131.47459.gambas@...1...> References: <21521606.post@...1379...> <200901180131.47459.gambas@...1...> Message-ID: <21523232.post@...1379...> Benoit Minisini wrote: > Can you show us the code in Python? Maybe it will help me to find > something > that could be enhanced in Gambas if Python can do better? :-) Ok, i think the bottleneck is related to the function call overhead: PYTHON: wrote: > > import time > > t = time.time() > for i in range(999999): > s = "QWERTYUIOP".partition("WE")[2].partition("IO")[0] > print time.time() - t > GAMBAS: wrote: > > PUBLIC SUB Main() > DIM i AS Integer, t AS Float, s AS String > > t = Timer > FOR i = 0 TO 999999 > s = Scan("QWERTYUIOP", "*WE*IO*")[1] > NEXT > PRINT Timer - t > END > Both of these run significantly faster when put in-line but Python is still ~33% faster. Perhaps you could add a new string function to achieve this as it is VERY useful, yet rarely (if ever) seen in other languages? -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21523232.html Sent from the gambas-user mailing list archive at Nabble.com. From gareth at ...1689... Sun Jan 18 03:08:56 2009 From: gareth at ...1689... (Gareth Bult) Date: Sun, 18 Jan 2009 02:08:56 +0000 (GMT) Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <9559793.347991232244456879.JavaMail.root@...1834...> Message-ID: <16895532.348011232244536454.JavaMail.root@...1834...> >through an optimized compiler, so that explains why it is not about 50x Mmm.. C 50x faster than Python... interesting - not in my experience - certainly not these days where 95% of code is actually library calls that are written in "C". VB 50x faster than Python ... that's a new one on me. I've used VB in the past, not something I want to do again and not the fastest dog on the track (!) Is it possible to write your example in "C" and make it 50x faster than your Gambas example .. with inline C code and other optimisations etc, sure, but then we're not comparing like for like. >My current project uses the Curl library and PyCurl is much more >configurable than Gambas's Curl component (HttpClient). I would agree, I too have found the Curl component insufficient in the past and used Python instead. >I may also require running my app from a dedicated server in the future, >so for THIS particular job, Python seems to be the best tool. Sure, best tools for the job and all that. >If i need more speed, i'll drop to C++. I know that i could use Regex but i >find it very unreadable and difficult to maintain and am basically too lazy >to learn it. Mmm, that was my first use of "Scan", took me around 30 seconds to figure out from the docs. I always associate regex with Perl and hence avoid like the plague, but this seemed to be an entirely reasonable proposition given the Gambas wrapper. fyi; I use "C" for system libraries and kernel drivers, bash for system admin scripts, python for back-end servers, and Gambas for anything front-end related. I know there is some desire to see Gambas as a "do-it-all" language, in reality it's strength is GUI and when it comes to speed or server stuff, there are better tools. Conversely, people use GTK bindings in Python .. Why ?! I understand that once upon a time it's what there was .. but not any more! Development time for Python or C based GUI applications is 50x more than the Gambas equivalent (in this instance I don't think the 50 is an exaggeration) and it all comes down (really) to the IDE. (IMHO) In "real" terms Python and Gambas are about on a Par in terms of speed (last time I did some serious benchmarks) , but speed is not the reason you use either. If you *really* need the speed you have two options .. as a whole application is unlikely to feel the need for speed in it's entirety. (esp. the GUI bits!); a. Write it purely in "C", assuming you don't need GUI stuff b. Just write the performance sensitive bits in a C library and access from Gambas. (gambas can call external C libraries directly) OR, even better, write your own code as a "C" based component for Gambas .. :-) hth Gareth. ----- Original Message ----- From: "birchy" To: gambas-user at lists.sourceforge.net Sent: Sunday, 18 January, 2009 12:04:36 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Gambas is slower than Python?? Gareth Bult-3 wrote: > Both Python and Gambas compile to pseudo code and run through an > interpreter .. so essentially they are the same in terms of the > performance one might expect. My mistake, i assumed that Gambas was an optimizing compiler like VB6. I'm actually quite disappointed with the PYTHON version as it is about 10x slower than it is in VB6. Gareth Bult-3 wrote: > However, modifying the split function to read; > Return Scan(doc, "*WE*IO*")[1] > > Reduces this to ~ 1.4s. > Approx 2.9sec on my machine. To be honest, i hadn't realised that gambas did not actually "compile" code through an optimized compiler, so that explains why it is not about 50x faster than Python (as expected). My current project uses the Curl library and PyCurl is much more configurable than Gambas's Curl component (HttpClient). I may also require running my app from a dedicated server in the future, so for THIS particular job, Python seems to be the best tool. If i need more speed, i'll drop to C++. I know that i could use Regex but i find it very unreadable and difficult to maintain and am basically too lazy to learn it. :) -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21522547.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From simonart.dominique at ...11... Sun Jan 18 05:43:42 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Sun, 18 Jan 2009 05:43:42 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <21521606.post@...1379...> References: <21521606.post@...1379...> Message-ID: <4972B37E.8060302@...11...> birchy a ?crit : > I'm quite confused. I'm from a VB6 background, so when i moved to Ubuntu as > my main O.S. Gambas was very attractive. Several things (mainly poor > documentation) pushed me to try other languages. Having done a little C, > C++, Java and PHP, i decided to give Python a go as it's getting very > popular. I ported a function that i have used for many years in VB6 into > Gambas and (today) have ported it to Python. Results are quite shocking to > be honest. The following code takes 4.2sec to run on my oldish AMD 3000 pc. > The Python version takes 1.9sec. Pythn is "only" a scripting language, so > what gives?? > > PUBLIC SUB Main() > DIM i AS Integer, t AS Float, s AS String > > t = Timer > FOR i = 0 TO 999999 > s = GetSubstring("QWERTYUIOP", "WE", "IO") > NEXT > PRINT Timer - t > END > > PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String, > endstring AS String) AS String > RETURN Split(Split(doc, startstring)[2], endstring)[0] > END > > I was curious about the test, so I ran it on my PC and got 4.66 sec I also tried some modifications like the one below ( 2.49 sec) using the String classe, wich is the correct way to process strings in Gambas But if I remove all the "String." prefixes and the test instructions, I get 1.27 sec! Spliting is easy, but it has a cost...and if you replace the "ER" string by "AB" your prog abort with an "out of bound" message ;-) PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String, endstring AS String) AS String DIM i, j AS Integer i = String.InStr(doc, startstring) + String.Len(startstring) IF i = 0 THEN RETURN "" ' or i = 1 it's a choice j = InStr(doc, endstring, i) IF j = 0 THEN RETURN "" ' or j = len(doc) RETURN String.Mid(doc, i, j - i) END PUBLIC SUB Button1_Click() DIM i AS Integer, t AS Float, s, m, n, p AS String m = "QWERTYUIOP" n = "WE" p = "IO" t = Timer FOR i = 0 TO 999999 s = GetSubstring(m, n, p) NEXT Label1.Caption = CString(Timer - t) END regards, Dominique Simonart From rterry at ...1946... Sun Jan 18 02:19:52 2009 From: rterry at ...1946... (richard terry) Date: Sun, 18 Jan 2009 12:19:52 +1100 Subject: [Gambas-user] Linking ones own subroutines to a gambas like wiki Message-ID: <200901181219.52388.rterry@...1946...> I keep separate text files in my project to describe my forms. As I was working today I thought, "wouldn't it be nice if I could hit the F1 key over my routines and bring up a wiki, like you can if you hit F1 or F2 over the gambas keywords. I wondered if this would be possible to set up? eg, if The cursoe was over: Public Sub patients_find() end The up would pop the wiki . for example with gambas: Home / comp / gb.qt / control / setfocus Control.SetFocus (gb.qt) Syntax SUB SetFocus ( ) Gives the focus to the control. could be Home /main / clinical /patients_find bla bla, ie some documentation. I wondered how others document their project once it gets so huge it is hard to keep in your mind. I now have 70 forms, 65 classes, 70 modules and dozens and dozens of extra icons/data files etc, not to mention a highly normalised 70MB+ postgres database with 24 Schema's, hundreds of data tables, views, lookup tables etc. Regards richard From rterry at ...1946... Sun Jan 18 02:43:13 2009 From: rterry at ...1946... (richard terry) Date: Sun, 18 Jan 2009 12:43:13 +1100 Subject: [Gambas-user] Help files for your gambas program - How do you do it Message-ID: <200901181243.14386.rterry@...1946...> Wondered about any pointers for generating (searchable) help files for your gambas program. Regards richard From doriano.blengino at ...1909... Sun Jan 18 09:48:50 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Sun, 18 Jan 2009 09:48:50 +0100 Subject: [Gambas-user] Linking ones own subroutines to a gambas like wiki In-Reply-To: <200901181219.52388.rterry@...1946...> References: <200901181219.52388.rterry@...1946...> Message-ID: <4972ECF2.40907@...1909...> richard terry ha scritto: > I keep separate text files in my project to describe my forms. > > As I was working today I thought, "wouldn't it be nice if I could hit the F1 > key over my routines and bring up a wiki, like you can if you hit F1 or F2 > over the gambas keywords. > > I wondered if this would be possible to set up? > This could also be done with minimal effort in the IDE... by setting up a SHELL call when the user presses F1, and passing to the called app as much parameters as possible: keyword under cursor, class under edit, filename and so on. An external program, written in gambas, could then parse its command line and decide to browse documentation (for gambas, for libc calls, and so on), or to permit the user to read and modify its own documentation. The main advantage of this approach would be not to overload the IDE. -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From gambas at ...1... Sun Jan 18 18:28:35 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 18:28:35 +0100 Subject: [Gambas-user] Help files for your gambas program - How do you do it In-Reply-To: <200901181243.14386.rterry@...1946...> References: <200901181243.14386.rterry@...1946...> Message-ID: <200901181828.35987.gambas@...1...> On dimanche 18 janvier 2009, richard terry wrote: > Wondered about any pointers for generating (searchable) help files for your > gambas program. > > Regards > > richard > Usually, languages use special comments in the source code that is parsed for generating the doc. I know doxygen, but I found it a bit hard to use, and generating not very pretty HTML files. There are for sure other way of doing that, but it seems they are always based on special comments. We could imagine creating a standard for Gambas to do the same thing: '' This is a double quote comment '' It is the documentation for the next declared function '' @param FirstString The first argument '' @param SecondString the second argument '' @returns The two strings concatenated SUB Concatenate(FirstString AS String, SecondString AS String) AS String ... END SUB Then it is just a matter of creating a source code parser (in Gambas) that automatically generate HTML, and integrating it in the IDE. Like javadoc for java. Parsing double quote comments is not very difficult in Gambas, they are always at the beginning of the line. Then finding the next declaration (there are methods, constants, events, properties and variables) is done by using the Highlight class located in the gb.eval component. The Highlight.Analyze method parses one Gambas line of code and returns all tokens by type. Any volunteer? :-) Regards, -- Benoit Minisini From gambas at ...1... Sun Jan 18 18:44:59 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 18:44:59 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <21523232.post@...1379...> References: <21521606.post@...1379...> <200901180131.47459.gambas@...1...> <21523232.post@...1379...> Message-ID: <200901181844.59920.gambas@...1...> On dimanche 18 janvier 2009, birchy wrote: > Benoit Minisini wrote: > > Can you show us the code in Python? Maybe it will help me to find > > something > > that could be enhanced in Gambas if Python can do better? :-) > > Ok, i think the bottleneck is related to the function call overhead: > > PYTHON: wrote: > > import time > > > > t = time.time() > > for i in range(999999): > > s = "QWERTYUIOP".partition("WE")[2].partition("IO")[0] > > print time.time() - t > > GAMBAS: wrote: > > PUBLIC SUB Main() > > DIM i AS Integer, t AS Float, s AS String > > > > t = Timer > > FOR i = 0 TO 999999 > > s = Scan("QWERTYUIOP", "*WE*IO*")[1] > > NEXT > > PRINT Timer - t > > END > > Both of these run significantly faster when put in-line but Python is still > ~33% faster. Perhaps you could add a new string function to achieve this as > it is VERY useful, yet rarely (if ever) seen in other languages? For sure, Scan() is far slower than this partition() built-in function, as partition only searches for one string and returns what was found before, the searched string, and what was found after. As I never used Python, I don't really realized how much an equivalent of partition() is needed. But if Scan() is slower than partition(), it does not mean necessarily that Python is faster than Gambas globally. For example, just iterating a void loop 0..999999 takes 0,1s in Python, and 0,029s in Gambas 3. If you want, I could make a partition() function temporarily just to compare exactly the same thing between Gambas and Python. Do you? -- Benoit Minisini From gambas at ...1... Sun Jan 18 19:08:32 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 19:08:32 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <16895532.348011232244536454.JavaMail.root@...1834...> References: <16895532.348011232244536454.JavaMail.root@...1834...> Message-ID: <200901181908.32172.gambas@...1...> On dimanche 18 janvier 2009, Gareth Bult wrote: > Conversely, people use GTK bindings in Python .. Why ?! > I understand that once upon a time it's what there was .. but not any more! > Development time for Python or C based GUI applications is 50x more than > the Gambas equivalent (in this instance I don't think the 50 is an > exaggeration) and it all comes down (really) to the IDE. (IMHO) > I don't know if there are some people that have a global view of Gambas. So I will say that: - The primary goals of Gambas were simplicity (in the bindings especially), quick GUI designing and coding. - Speed was not the goal, but the interpreter in Gambas 3 is optimized (far less in Gambas 2). But its design is old (I wanted a working one before a fast one), and now I have ideas to redesign it so that the bytecode is interpreted faster, maybe twice. But: I have no time. And Gambas usually spend more CPU time in system libraries and native classes than during the bytecode dispatching. So what you would win will not very visible! - The bindings, well, are not bindings: toolkit and libraries API are often hidden. You can (almost) write a program for GTK+ and switch to QT3, or the contrary. You can write a program completely independant of the database backend. So the guy who wants PostgreSQL only can use your program even if you developed it with MySQL. When the gb.image and gb.cairo components will be done in Gambas 3, you will be able to display a page of a PDF file with vector and image drawn on, all being displayed on an OpenGL rotating cube. I don't know wich other Linux languages will allow that (mixing Cairo, OpenGL, QT transparently...) - When I have time, I will merge the database manager in the IDE, and add features so that the IDE have more support for Web applications (ASP-like pages integrated with syntax highlighting, maybe support for creating Web Forms...). That was always the goal. - The object model of Gambas is specific. It actually allows things that you cannot do in Java/.Net... and many other object languages, because compiled bytecode files are entirely linked at runtime. Then you can do things like extending a native class (the Application class has more methods, depending on the components you use), overriding it and change its behaviour (you can redefine the TextArea class and add it an automatic completion feature based on a dictionnary, like a cellphone does when you type SMS), use classes from a component that is not necessarily checked in the IDE (The Settings class can take the geometry of a Window and put it in the settings file without requesting a gui component). This feature is used in many, many places in the IDE and in components. In other words, maybe it is silly to say, but I made Gambas to have a language that have features not found in other languages, that allowed me to program Gambas. :-) -- Benoit Minisini From pokerbirch at ...1601... Sun Jan 18 19:33:17 2009 From: pokerbirch at ...1601... (birchy) Date: Sun, 18 Jan 2009 10:33:17 -0800 (PST) Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <200901181844.59920.gambas@...1...> References: <21521606.post@...1379...> <200901180131.47459.gambas@...1...> <21523232.post@...1379...> <200901181844.59920.gambas@...1...> Message-ID: <21531152.post@...1379...> Benoit Minisini wrote: > As I never used Python, I don't really realized how much an equivalent of > partition() is needed. To be honest, partition() doesn't do anything that can't be achieved using Split() or Scan(), only reason i used partition() in Python is because it is quite a bit faster than Python's Split() function. Benoit Minisini wrote: > But if Scan() is slower than partition(), it does not mean necessarily > that > Python is faster than Gambas globally. For example, just iterating a void > loop 0..999999 takes 0,1s in Python, and 0,029s in Gambas 3. Naturally, i agree comparing a single function is not an accurate comparison. The reason i started this thread was because i was quite surprised that my Gambas function was so slow when i was expecting it to be significantly faster than Python. Benoit Minisini wrote: > If you want, I could make a partition() function temporarily just to > compare > exactly the same thing between Gambas and Python. Do you? It's not important, however i DO think that a "GetSubstring" style string function would be useful if written in C: CODE wrote: > s = Substring(mainstring, startstring, endstring) returns the substring > in between startstring and endstring within mainstring. Return is empty > string if not found. Perhaps it's just me, but i would use this function all of the time for parsing strings. I know that it's easily achieved using Split() or Scan() but they are perhaps not as efficient?? -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21531152.html Sent from the gambas-user mailing list archive at Nabble.com. From pokerbirch at ...1601... Sun Jan 18 19:44:40 2009 From: pokerbirch at ...1601... (birchy) Date: Sun, 18 Jan 2009 10:44:40 -0800 (PST) Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <200901181908.32172.gambas@...1...> References: <21521606.post@...1379...> <16895532.348011232244536454.JavaMail.root@...1834...> <200901181908.32172.gambas@...1...> Message-ID: <21531282.post@...1379...> Benoit Minisini wrote: > In other words, maybe it is silly to say, but I made Gambas to have a > language > that have features not found in other languages, that allowed me to > program > Gambas. :-) RAPID development is exactly the reason why users choose languages like Gambas, VB6, Python, etc. There will ALWAYS be a trade-off of development time vs execution time and in this day and age, execution time is of lower priority. Gambas is an exciting project and has great potential, it's just a bit unlucky for you that i have very specific needs and those needs are not yet complete and/or supported yet. Keep up the good work. :handshake: -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21531282.html Sent from the gambas-user mailing list archive at Nabble.com. From jaap_cramer at ...67... Sun Jan 18 21:46:49 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Sun, 18 Jan 2009 21:46:49 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <21531152.post@...1379...> References: <21521606.post@...1379...> <200901180131.47459.gambas@...1...> <21523232.post@...1379...> <200901181844.59920.gambas@...1...> <21531152.post@...1379...> Message-ID: I timed the function with this line s = Scan("QWERTYUIOP", "*WE*IO*")[1] to be 2.948007999919 seconds But there is a faster way: s = Mid("QWERTYUIOP", InStr("QWERTYUIOP", "WE"), InStr("QWERTYUIOP", "IO")) only takes 0.525806999998 sec! Maybe the Scan function is not that optimized? :) Jaap > Date: Sun, 18 Jan 2009 10:33:17 -0800 > From: pokerbirch at ...1601... > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Gambas is slower than Python?? > > > > Benoit Minisini wrote: > > As I never used Python, I don't really realized how much an equivalent of > > partition() is needed. > To be honest, partition() doesn't do anything that can't be achieved using > Split() or Scan(), only reason i used partition() in Python is because it is > quite a bit faster than Python's Split() function. > > > Benoit Minisini wrote: > > But if Scan() is slower than partition(), it does not mean necessarily > > that > > Python is faster than Gambas globally. For example, just iterating a void > > loop 0..999999 takes 0,1s in Python, and 0,029s in Gambas 3. > Naturally, i agree comparing a single function is not an accurate > comparison. The reason i started this thread was because i was quite > surprised that my Gambas function was so slow when i was expecting it to be > significantly faster than Python. > > > Benoit Minisini wrote: > > If you want, I could make a partition() function temporarily just to > > compare > > exactly the same thing between Gambas and Python. Do you? > It's not important, however i DO think that a "GetSubstring" style string > function would be useful if written in C: > > > CODE wrote: > > s = Substring(mainstring, startstring, endstring) returns the substring > > in between startstring and endstring within mainstring. Return is empty > > string if not found. > > Perhaps it's just me, but i would use this function all of the time for > parsing strings. I know that it's easily achieved using Split() or Scan() > but they are perhaps not as efficient?? > -- > View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21531152.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De leukste online filmpjes vind je op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl From gambas at ...1... Sun Jan 18 21:52:38 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 21:52:38 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: References: <21521606.post@...1379...> <21531152.post@...1379...> Message-ID: <200901182152.38472.gambas@...1...> On dimanche 18 janvier 2009, Jaap Cramer wrote: > I timed the function with this line s = Scan("QWERTYUIOP", "*WE*IO*")[1] > to be 2.948007999919 seconds But there is a faster way: > > s = Mid("QWERTYUIOP", InStr("QWERTYUIOP", "WE"), InStr("QWERTYUIOP", "IO")) > only takes 0.525806999998 sec! > > Maybe the Scan function is not that optimized? :) > > Jaap > Not in Gambas 2 anyway. It was in Gambas 3, but as this function is more powerful than just looking for one or two strings into another one, it can only be slower. -- Benoit Minisini From gambas at ...1... Sun Jan 18 21:53:34 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 21:53:34 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: References: <21521606.post@...1379...> <21531152.post@...1379...> Message-ID: <200901182153.34713.gambas@...1...> On dimanche 18 janvier 2009, Jaap Cramer wrote: > I timed the function with this line s = Scan("QWERTYUIOP", "*WE*IO*")[1] > to be 2.948007999919 seconds But there is a faster way: > > s = Mid("QWERTYUIOP", InStr("QWERTYUIOP", "WE"), InStr("QWERTYUIOP", "IO")) > only takes 0.525806999998 sec! > > Maybe the Scan function is not that optimized? :) > > Jaap > And I'm not sure your code does the right thing. :-) -- Benoit Minisini From rterry at ...1946... Sun Jan 18 22:05:43 2009 From: rterry at ...1946... (richard terry) Date: Mon, 19 Jan 2009 08:05:43 +1100 Subject: [Gambas-user] Whilst on the topic of string functions Message-ID: <200901190805.44083.rterry@...1946...> Could I add to the wish list string functions to do these things. * Strip duplicated blanks from within a string eg. john Doe becomes: john Doe * Upper case only the first letter of a sentance or all words eg. john doe becomes John Doe (useful in entering names) I'm sure there are many others - I know python has a stack which I always found useful when using wxPython. Perhaps others have some code. I'll harp on again about the need for an integrated code suppository distributed with gambas - we all must be sitting on a stack of useful subroutines. Regards Richard From jaap_cramer at ...67... Sun Jan 18 22:09:12 2009 From: jaap_cramer at ...67... (Jaap Cramer) Date: Sun, 18 Jan 2009 22:09:12 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <200901182153.34713.gambas@...1...> References: <21521606.post@...1379...> <21531152.post@...1379...> <200901182153.34713.gambas@...1...> Message-ID: right. my fault... :( the line s = Split(Split("QWERTYUIOP", "WE")[2], ("IO"))[0] is approx 3 times //SLOWER// than the Scan method. sorry again :) > From: gambas at ...1... > To: gambas-user at lists.sourceforge.net > Date: Sun, 18 Jan 2009 21:53:34 +0100 > Subject: Re: [Gambas-user] Gambas is slower than Python?? > > On dimanche 18 janvier 2009, Jaap Cramer wrote: > > I timed the function with this line s = Scan("QWERTYUIOP", "*WE*IO*")[1] > > to be 2.948007999919 seconds But there is a faster way: > > > > s = Mid("QWERTYUIOP", InStr("QWERTYUIOP", "WE"), InStr("QWERTYUIOP", "IO")) > > only takes 0.525806999998 sec! > > > > Maybe the Scan function is not that optimized? :) > > > > Jaap > > > > And I'm not sure your code does the right thing. :-) > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user _________________________________________________________________ De leukste online filmpjes vind je op MSN Video! http://video.msn.com/video.aspx?mkt=nl-nl From gambas at ...1... Sun Jan 18 22:20:12 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 18 Jan 2009 22:20:12 +0100 Subject: [Gambas-user] Whilst on the topic of string functions In-Reply-To: <200901190805.44083.rterry@...1946...> References: <200901190805.44083.rterry@...1946...> Message-ID: <200901182220.12662.gambas@...1...> On dimanche 18 janvier 2009, richard terry wrote: > Could I add to the wish list string functions to do these things. > > * Strip duplicated blanks from within a string > eg. john Doe becomes: > john Doe > > * Upper case only the first letter of a sentance or all words > eg. john doe becomes John Doe (useful in entering names) > > > I'm sure there are many others - I know python has a stack which I always > found useful when using wxPython. > > Perhaps others have some code. I'll harp on again about the need for an > integrated code suppository distributed with gambas - we all must be > sitting on a stack of useful subroutines. > > Regards > > Richard > Nobody want to make just a Bugzilla for gambas ? :-) -- Benoit Minisini From pokerbirch at ...1601... Sun Jan 18 22:36:12 2009 From: pokerbirch at ...1601... (birchy) Date: Sun, 18 Jan 2009 13:36:12 -0800 (PST) Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <21521606.post@...1379...> References: <21521606.post@...1379...> Message-ID: <21533340.post@...1379...> Well i've just managed to find my ORIGINAL (VB6) code and did a direct port to Gambas. My previous example using Split() was the way that seemed most logical when i decide to quickly write the function in Gambas: [quote author="CODE"] PRIVATE FUNCTION GetSubstring(mainstring AS String, startstring AS String, endstring AS String) AS String DIM pos AS Long IF mainstring AND startstring AND endstring THEN pos = InStr(mainstring, startstring) IF pos THEN mainstring = Right$(mainstring, Len(mainstring) - pos - Len(startstring) + 1) pos = InStr(mainstring, endstring) IF pos THEN RETURN Left$(mainstring, pos - 1) END IF END IF END FUNCTION Note that the above code includes sanity checks to ensure that the 'endstring' is the first occurrence AFTER 'startstring'. Minus the sanity check: [quote author="CODE"] PRIVATE FUNCTION GetSubstring5(mainstring AS String, startstring AS String, endstring AS String) AS String DIM pos AS Integer, length AS Integer pos = InStr(mainstring, startstring) + Len(startstring) length = Len(mainstring) - InStr(mainstring, endstring) + Len(endstring) RETURN Mid$(mainstring, pos, length) END -- View this message in context: http://www.nabble.com/Gambas-is-slower-than-Python---tp21521606p21533340.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Sun Jan 18 23:48:27 2009 From: nando_f at ...951... (nando) Date: Sun, 18 Jan 2009 17:48:27 -0500 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <200901180142.28525.gambas@...1...> References: <21521606.post@...1379...> <200901180131.47459.gambas@...1...> <200901180142.28525.gambas@...1...> Message-ID: <20090118223518.M3420@...951...> After reading all the comments about speed, optimization, etc, do not forget that an optimizing compiler will absolutely poduce faster execution time: Since this code reads no data, saves no data and doesn't print any calculated data, then why even perform GetSubstring when nobody cares about what the result is. An optimizing C compiler most likely would compile to only execute the t= Timer and Print Timer - t shich produces lightning fast times. Why? Nobody will ever see the data computations performed inside the loop. I recently did see optimized code disassembled for a small C program and since nothing was printed nor saved, there was no code to run and the only execution was RETURN. Be careful testing code and making comparisons amongst languages because the tests do not perform and prove unless the test is relatively meaningful and results summed over a period of time testing. Don't forget there are many ways to program solving a problem and there are good and bad ways, easy and hard, fast and slow, efficient and not. Spending a whole wack of time to prove saving 2 seconds may or may not be futile and can or can not prove anything or nothing. I use Gambas 1.17 for a large real-time 200 user mulit-connected program. It performs well. My appreciation to Benoit. -Fernando ---------- Original Message ----------- From: Benoit Minisini To: mailing list for gambas users Sent: Sun, 18 Jan 2009 01:42:28 +0100 Subject: Re: [Gambas-user] Gambas is slower than Python?? > > On samedi 17 janvier 2009, birchy wrote: > > > > > > PUBLIC SUB Main() > > > DIM i AS Integer, t AS Float, s AS String > > > > > > t = Timer > > > FOR i = 0 TO 999999 > > > s = GetSubstring("QWERTYUIOP", "WE", "IO") > > > NEXT > > > PRINT Timer - t > > > END > > > > > > PRIVATE FUNCTION GetSubstring(doc AS String, startstring AS String, > > > endstring AS String) AS String > > > RETURN Split(Split(doc, startstring)[2], endstring)[0] > > > END > > The previous code takes 4,31s on my PC with Gambas 2, and 3,01s with Gambas 3. > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Mon Jan 19 01:38:08 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 19 Jan 2009 01:38:08 +0100 Subject: [Gambas-user] Gambas is slower than Python?? In-Reply-To: <20090118223518.M3420@...951...> References: <21521606.post@...1379...> <200901180142.28525.gambas@...1...> <20090118223518.M3420@...951...> Message-ID: <200901190138.08694.gambas@...1...> On dimanche 18 janvier 2009, nando wrote: > After reading all the comments about speed, optimization, etc, > do not forget that an optimizing compiler will absolutely > poduce faster execution time: > Since this code reads no data, saves no data and doesn't print any > calculated data, then why even perform GetSubstring when nobody > cares about what the result is. An optimizing C compiler most likely > would compile to only execute the > t= Timer and > Print Timer - t > shich produces lightning fast times. > Why? Nobody will ever see the data computations performed inside the loop. > I recently did see optimized code disassembled for a small C program and > since nothing was printed nor saved, there was no code to run and the only > execution was RETURN. > Be careful testing code and making comparisons amongst languages because > the tests do not perform and prove unless the test is relatively meaningful > and results summed over a period of time testing. > Don't forget there are many ways to program solving a problem and > there are good and bad ways, easy and hard, fast and slow, efficient and > not. Spending a whole wack of time to prove saving 2 seconds may or may not > be futile and can or can not prove anything or nothing. > I use Gambas 1.17 for a large real-time 200 user mulit-connected program. > It performs well. > My appreciation to Benoit. > -Fernando > Don't worry, the Gambas compiler optimizes almost nothing (this is done by the interpreter), and so never removes code. :-) -- Benoit Minisini From gareth at ...1689... Mon Jan 19 02:03:14 2009 From: gareth at ...1689... (Gareth Bult) Date: Mon, 19 Jan 2009 01:03:14 +0000 (GMT) Subject: [Gambas-user] Whilst on the topic of string functions In-Reply-To: <200901182220.12662.gambas@...1...> Message-ID: <22063431.348641232326994148.JavaMail.root@...1834...> I set up a bug tracker here; http://gambasrad.org/bugtrak But it didn't really get used. I'm sure bugzilla is great, I just don't like using it. ----- Original Message ----- From: "Benoit Minisini" To: "richard terry" , "mailing list for gambas users" Sent: Sunday, 18 January, 2009 9:20:12 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] Whilst on the topic of string functions On dimanche 18 janvier 2009, richard terry wrote: > Could I add to the wish list string functions to do these things. > > * Strip duplicated blanks from within a string > eg. john Doe becomes: > john Doe > > * Upper case only the first letter of a sentance or all words > eg. john doe becomes John Doe (useful in entering names) > > > I'm sure there are many others - I know python has a stack which I always > found useful when using wxPython. > > Perhaps others have some code. I'll harp on again about the need for an > integrated code suppository distributed with gambas - we all must be > sitting on a stack of useful subroutines. > > Regards > > Richard > Nobody want to make just a Bugzilla for gambas ? :-) -- Benoit Minisini ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Mon Jan 19 02:01:51 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 19 Jan 2009 02:01:51 +0100 Subject: [Gambas-user] Minor bug with READ & WRITE commands? In-Reply-To: <20090116184547.M24815@...951...> References: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> <200901160350.16389.gambas@...1...> <20090116184547.M24815@...951...> Message-ID: <200901190201.51680.gambas@...1...> On vendredi 16 janvier 2009, nando wrote: > Benoit, > > Question regarding the line: > > > WRITE #pResult + (ii * 8), .x > > does WRITE see it casted as variant or int ? > -Fernando > You exactly got the point. :-) As fResult is an Object[] array, fResult[ii].x is a Variant. Why? Because, in Gambas, the datatype of an operator or a function is never more precise than the datatype of the arguments, unless the operator or function always returns the same datatype. Read that sentence at least twice. So, as fResult is Object[], then fResult[ii] is Object, and fResult[ii].x is always a Variant, as the interpreter cannot know that fResult[ii] is always a Class1. As READ and WRITE receive a Variant, they read/write a byte before the value in memory. So what is written at the pointer is not two bytes &H64+&H00 (the 100 value) but three bytes &H04+&H64+&H00 (&H04 meaning Integer). As the memory address is computed at each loop, the third byte is replaced by the first byte of the next write. The last written byte is outside of the array. It does not crash because memory allocation are often rounded by the C library. When reading, what happens? The GetAStruct C function receives: &H04+&H64+ &H04+&HC8+ &H04+&H64 +...+ &H04+&HC8+&H00 And modifies it: &H0E+&H64+ &H05+&HC8+ ... Then READ wants to read a Variant, and so interprets the first byte, &H0E, as a datatype that means...a Class, something that is cannot understand, and so you get an error message. But in other situations, you can crash the interpreter, because READ can write in memory more than expected! What is the solution? You have to tell Gambas which is the real datatype to read and write. The first solutiion is what you did: using a local variable with the accurate datatype. The second solution is not having Object as intermediate expression datatype. Instead of: WITH fResult[ii] Do that: DIM hClass AS Class1 hClass = fResult[ii] WITH hClass Then the interpreter will know at runtime that hClass is a Class1, and so that hClass.x is always an integer. So, all that is not really a bug, but I admit it is a bit weird, and not beginner-friendly. In Gambas 3, I'm currently thinking about a better, or at least clearer syntax. It will be a mix of: - True memory streams, i.e. a class that inherits Stream and that points at a memory emplacement. - Classic Basic memory access function. PEEK, POKE ? :-) And/Or MkInt$(), MkLong$()... - Explicitely specifying the datatype in READ and/or WRITE, or having ReadInteger(), ReadFloat(), WriteInteger()... methods in the Stream class, or as subroutines. People, tell me what you think about that. I'm going to bed now. -- Benoit Minisini From nando_f at ...951... Mon Jan 19 06:11:14 2009 From: nando_f at ...951... (nando) Date: Mon, 19 Jan 2009 00:11:14 -0500 Subject: [Gambas-user] Minor bug with READ & WRITE commands? In-Reply-To: <200901190201.51680.gambas@...1...> References: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> <200901160350.16389.gambas@...1...> <20090116184547.M24815@...951...> <200901190201.51680.gambas@...1...> Message-ID: <20090119051015.M88226@...951...> If something like.. WRITE #pResult + (ii * 8), CINT(.x) casts it as int, then no problem ---------- Original Message ----------- From: Benoit Minisini To: nando_f at ...951..., mailing list for gambas users Sent: Mon, 19 Jan 2009 02:01:51 +0100 Subject: Re: [Gambas-user] Minor bug with READ & WRITE commands? > On vendredi 16 janvier 2009, nando wrote: > > Benoit, > > > > Question regarding the line: > > > > WRITE #pResult + (ii * 8), .x > > > > does WRITE see it casted as variant or int ? > > -Fernando > > > > You exactly got the point. :-) > > As fResult is an Object[] array, fResult[ii].x is a Variant. > > Why? Because, in Gambas, the datatype of an operator or a function is never > more precise than the datatype of the arguments, unless the operator or > function always returns the same datatype. Read that sentence at least twice. > > So, as fResult is Object[], then fResult[ii] is Object, and fResult[ii].x is > always a Variant, as the interpreter cannot know that fResult[ii] is always a > Class1. > > As READ and WRITE receive a Variant, they read/write a byte before the value > in memory. > > So what is written at the pointer is not two bytes &H64+&H00 (the 100 value) > but three bytes &H04+&H64+&H00 (&H04 meaning Integer). > > As the memory address is computed at each loop, the third byte is replaced by > the first byte of the next write. The last written byte is outside of the > array. It does not crash because memory allocation are often rounded by the C > library. > > When reading, what happens? The GetAStruct C function receives: > > &H04+&H64+ &H04+&HC8+ &H04+&H64 +...+ &H04+&HC8+&H00 > > And modifies it: > > &H0E+&H64+ &H05+&HC8+ ... > > Then READ wants to read a Variant, and so interprets the first byte, &H0E, as > a datatype that means...a Class, something that is cannot understand, and so > you get an error message. But in other situations, you can crash the > interpreter, because READ can write in memory more than expected! > > What is the solution? You have to tell Gambas which is the real datatype to > read and write. > > The first solutiion is what you did: using a local variable with the accurate > datatype. > > The second solution is not having Object as intermediate expression datatype. > Instead of: > > WITH fResult[ii] > > Do that: > > DIM hClass AS Class1 > > hClass = fResult[ii] > WITH hClass > > Then the interpreter will know at runtime that hClass is a Class1, and so that > hClass.x is always an integer. > > So, all that is not really a bug, but I admit it is a bit weird, and not > beginner-friendly. > > In Gambas 3, I'm currently thinking about a better, or at least clearer > syntax. It will be a mix of: > > - True memory streams, i.e. a class that inherits Stream and that points at a > memory emplacement. > > - Classic Basic memory access function. PEEK, POKE ? :-) And/Or MkInt$(), > MkLong$()... > > - Explicitely specifying the datatype in READ and/or WRITE, or having > ReadInteger(), ReadFloat(), WriteInteger()... methods in the Stream class, or > as subroutines. > > People, tell me what you think about that. I'm going to bed now. > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jussi.lahtinen at ...626... Mon Jan 19 16:06:25 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 19 Jan 2009 17:06:25 +0200 Subject: [Gambas-user] Minor bug with READ & WRITE commands? In-Reply-To: <20090119051015.M88226@...951...> References: <384d3900901151113w73982792k14ad2b8424bf812b@...627...> <200901160350.16389.gambas@...1...> <20090116184547.M24815@...951...> <200901190201.51680.gambas@...1...> <20090119051015.M88226@...951...> Message-ID: <384d3900901190706y1b7bb58dqb2ddbd099f743676@...627...> I agree. But there should be warning message in documentation of read and write commands. Jussi On Mon, Jan 19, 2009 at 7:11 AM, nando wrote: > If something like.. > WRITE #pResult + (ii * 8), CINT(.x) > casts it as int, then no problem > > > ---------- Original Message ----------- > From: Benoit Minisini > To: nando_f at ...951..., mailing list for gambas users > > Sent: Mon, 19 Jan 2009 02:01:51 +0100 > Subject: Re: [Gambas-user] Minor bug with READ & WRITE commands? > >> On vendredi 16 janvier 2009, nando wrote: >> > Benoit, >> > >> > Question regarding the line: >> > > > WRITE #pResult + (ii * 8), .x >> > >> > does WRITE see it casted as variant or int ? >> > -Fernando >> > >> >> You exactly got the point. :-) >> >> As fResult is an Object[] array, fResult[ii].x is a Variant. >> >> Why? Because, in Gambas, the datatype of an operator or a function is never >> more precise than the datatype of the arguments, unless the operator or >> function always returns the same datatype. Read that sentence at least twice. >> >> So, as fResult is Object[], then fResult[ii] is Object, and fResult[ii].x is >> always a Variant, as the interpreter cannot know that fResult[ii] is always a >> Class1. >> >> As READ and WRITE receive a Variant, they read/write a byte before the value >> in memory. >> >> So what is written at the pointer is not two bytes &H64+&H00 (the 100 value) >> but three bytes &H04+&H64+&H00 (&H04 meaning Integer). >> >> As the memory address is computed at each loop, the third byte is replaced by >> the first byte of the next write. The last written byte is outside of the >> array. It does not crash because memory allocation are often rounded by the C >> library. >> >> When reading, what happens? The GetAStruct C function receives: >> >> &H04+&H64+ &H04+&HC8+ &H04+&H64 +...+ &H04+&HC8+&H00 >> >> And modifies it: >> >> &H0E+&H64+ &H05+&HC8+ ... >> >> Then READ wants to read a Variant, and so interprets the first byte, &H0E, as >> a datatype that means...a Class, something that is cannot understand, and so >> you get an error message. But in other situations, you can crash the >> interpreter, because READ can write in memory more than expected! >> >> What is the solution? You have to tell Gambas which is the real datatype to >> read and write. >> >> The first solutiion is what you did: using a local variable with the accurate >> datatype. >> >> The second solution is not having Object as intermediate expression datatype. >> Instead of: >> >> WITH fResult[ii] >> >> Do that: >> >> DIM hClass AS Class1 >> >> hClass = fResult[ii] >> WITH hClass >> >> Then the interpreter will know at runtime that hClass is a Class1, and so that >> hClass.x is always an integer. >> >> So, all that is not really a bug, but I admit it is a bit weird, and not >> beginner-friendly. >> >> In Gambas 3, I'm currently thinking about a better, or at least clearer >> syntax. It will be a mix of: >> >> - True memory streams, i.e. a class that inherits Stream and that points at a >> memory emplacement. >> >> - Classic Basic memory access function. PEEK, POKE ? :-) And/Or MkInt$(), >> MkLong$()... >> >> - Explicitely specifying the datatype in READ and/or WRITE, or having >> ReadInteger(), ReadFloat(), WriteInteger()... methods in the Stream class, or >> as subroutines. >> >> People, tell me what you think about that. I'm going to bed now. >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Mon Jan 19 17:45:24 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 19 Jan 2009 18:45:24 +0200 Subject: [Gambas-user] An other OO problem. In-Reply-To: <200901150150.45409.gambas@...1...> References: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> <200901150150.45409.gambas@...1...> Message-ID: <384d3900901190845t5ee33ac9x7755e8e82af67548@...627...> If I have understand concept correctly, I think this; http://gambasdoc.org/help/comp/gb/object%5B%5D/copy is little misleading. "Returns a deep copy of the array." Objects copied with this method doesn't seem to be deep copied (shallow copy instead). Jussi On Thu, Jan 15, 2009 at 2:50 AM, Benoit Minisini wrote: > On jeudi 15 janvier 2009, Jussi Lahtinen wrote: >> Hi! >> Again I'm having OO headache (I'm OO newbie). >> I have very simple task, and I believe the solution would be as >> simple... I just don't get it. >> I need to make independent copy of object, from collection A to collection >> B. >> >> I tried following (among other things): >> >> Dim A as NEW Collection >> Dim B as NEW Collection >> >> ... >> A.Add(B[n]) >> ... >> >> But the result is something like same object in both collections. >> When I do example; >> >> A[n].X = 1234 >> >> Then the corresponding object in collection B changes too; >> >> PRINT B[n].X >> 1234 >> >> I could do this; >> >> ... >> A[n].X = B[n].X >> A[n].Y = B[n].Y >> ...and so on... >> >> But those objects have very many variables, object arrays etc.! >> I really hope there is an other way... >> Thanks! >> >> >> Jussi >> > > Objects are handled by reference only. If you need to copy an object of your > own, you must do it yourself. Some native objects (like arrays) have a Copy() > method, but most don't. > > Regards, > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1938... Mon Jan 19 18:53:10 2009 From: gambas at ...1938... (gambas at ...1938...) Date: Mon, 19 Jan 2009 18:53:10 +0100 Subject: [Gambas-user] Thanks!! :-) Message-ID: <200901191853.10368.gambas@...1938...> Hi Benoit! Many thanks for the configurable shortcuts! ...sooooo cool! :-) Two questions: 1) Is there a way to integrate the possibility defining his own commands in the menubar (and also access them per shortcut)? Example: I've to migrate many server apps form Perl to Gambas. Testing is only possible on the server machine itself. If I had a menu with configurable commands, I could write a shell or Gambas script to copy the binary to the server.... I think there are lots of scenarios where user defined commands could make developer life a lot easier. 2) What do I have to do, when I want to translate some of the english texts, descriptions etc. in the IDE to my native language (German) and make it public?? Greetz Stevie From diego at ...1942... Mon Jan 19 20:28:58 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Mon, 19 Jan 2009 13:28:58 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <200901180139.37612.gambas@...1...> References: <496CA3F6.8080504@...1942...> <496DFCB9.6070704@...1942...> <49721F63.3000506@...1942...> <200901180139.37612.gambas@...1...> Message-ID: <4974D47A.6020300@...1942...> ok, How do i contact Philippe Serafin, does he reads this list or do i have to write him personally? Can you facilitate an email address? Thanks. Benoit Minisini escribi?: > On samedi 17 janvier 2009, Diego Fern?ndez wrote: > >> Hi Benoit, >> >> have you look/solve the datepicker bug yet? just asking, dont mean to >> pressure you.. >> >> Thanks >> >> > > Mmm, no. I didn't write the code, so maybe Philippe S?rafin, who made the > control, can do something? > > From diego at ...1942... Mon Jan 19 20:48:14 2009 From: diego at ...1942... (=?ISO-8859-15?Q?Diego_Fern=E1ndez?=) Date: Mon, 19 Jan 2009 13:48:14 -0600 Subject: [Gambas-user] Datepicker bug In-Reply-To: <4974D47A.6020300@...1942...> References: <496CA3F6.8080504@...1942...> <496DFCB9.6070704@...1942...> <49721F63.3000506@...1942...> <200901180139.37612.gambas@...1...> <4974D47A.6020300@...1942...> Message-ID: <4974D8FE.6070303@...1942...> Well just before sending my last mail, i was trying (really hard), to debug it myself, at least i think i was trying to..... Ive come to realise it is not a datepocker bug, is more a gtk issue, when i create a new project and use only gb.qt component, the datepicker displays ok, but when i choose gb.gkt or gb.gui, the datepicker shows the incorrect behavior, and today i saw this in the console section with desktop effects on: (otravez:9991): Gtk-CRITICAL **: gtk_window_resize: assertion `height > 0' failed (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion `GDK_IS_SCREEN (screen)' failed (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion `GDK_IS_SCREEN (screen)' failed (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion `GDK_IS_SCREEN (screen)' failed (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion `GDK_IS_SCREEN (screen)' failed (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion `GDK_IS_SCREEN (screen)' failed -- WithOut desktop effects: (otravez:10007): Gtk-CRITICAL **: gtk_window_resize: assertion `height > 0' failed (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion `GDK_IS_SCREEN (screen)' failed (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion `GTK_IS_WIDGET (widget)' failed (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion `GDK_IS_SCREEN (screen)' failed Do this concern to Phillipe Serafin or it is a concern of somebody else? Thanks Diego Fern?ndez escribi?: > ok, > > How do i contact Philippe Serafin, does he reads this list or do i have > to write him personally? Can you facilitate an email address? > > Thanks. > > Benoit Minisini escribi?: > >> On samedi 17 janvier 2009, Diego Fern?ndez wrote: >> >> >>> Hi Benoit, >>> >>> have you look/solve the datepicker bug yet? just asking, dont mean to >>> pressure you.. >>> >>> Thanks >>> >>> >>> >> Mmm, no. I didn't write the code, so maybe Philippe S?rafin, who made the >> control, can do something? >> >> >> > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From ron at ...1740... Mon Jan 19 23:40:38 2009 From: ron at ...1740... (Ron) Date: Mon, 19 Jan 2009 23:40:38 +0100 Subject: [Gambas-user] MovieBox as Picture in tableview? Message-ID: <49750166.60604@...1740...> Is it possible to use a MovieBox image instead of a normal Picture in a tableview on Gambas 2.10? Now I use something like tbvDevices[iCount, 1].Picture = Picture["path to image"] But want to display animated gifs too... Anyone knows? Regards, Ron_2nd From gambas at ...1... Tue Jan 20 14:56:52 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Jan 2009 14:56:52 +0100 Subject: [Gambas-user] Datepicker bug In-Reply-To: <4974D8FE.6070303@...1942...> References: <496CA3F6.8080504@...1942...> <4974D47A.6020300@...1942...> <4974D8FE.6070303@...1942...> Message-ID: <200901201456.52069.gambas@...1...> On lundi 19 janvier 2009, Diego Fern?ndez wrote: > Well just before sending my last mail, i was trying (really hard), to > debug it myself, at least i think i was trying to..... > > Ive come to realise it is not a datepocker bug, is more a gtk issue, > when i create a new project and use only gb.qt component, the datepicker > displays ok, but when i choose gb.gkt or gb.gui, the datepicker shows > the incorrect behavior, and today i saw this in the console section with > desktop effects on: > > > > (otravez:9991): Gtk-CRITICAL **: gtk_window_resize: assertion `height > > 0' failed > > (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion > `GTK_IS_WIDGET (widget)' failed > > (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion > `GDK_IS_SCREEN (screen)' failed > > (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion > `GTK_IS_WIDGET (widget)' failed > > (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion > `GDK_IS_SCREEN (screen)' failed > > (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion > `GTK_IS_WIDGET (widget)' failed > > (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion > `GDK_IS_SCREEN (screen)' failed > > (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion > `GTK_IS_WIDGET (widget)' failed > > (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion > `GDK_IS_SCREEN (screen)' failed > > (otravez:9991): Gtk-CRITICAL **: gtk_widget_get_screen: assertion > `GTK_IS_WIDGET (widget)' failed > > (otravez:9991): Gdk-CRITICAL **: gdk_screen_is_composited: assertion > `GDK_IS_SCREEN (screen)' failed > > > -- > WithOut desktop effects: > > > > (otravez:10007): Gtk-CRITICAL **: gtk_window_resize: assertion `height > > 0' failed > > (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion > `GTK_IS_WIDGET (widget)' failed > > (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion > `GDK_IS_SCREEN (screen)' failed > > (otravez:10007): Gtk-CRITICAL **: gtk_widget_get_screen: assertion > `GTK_IS_WIDGET (widget)' failed > > (otravez:10007): Gdk-CRITICAL **: gdk_screen_is_composited: assertion > `GDK_IS_SCREEN (screen)' failed > > > Do this concern to Phillipe Serafin or it is a concern of somebody else? > > > Thanks > If it is a gtk problem, then it is my job! -- Benoit Minisini From gambas at ...1... Tue Jan 20 14:59:52 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Jan 2009 14:59:52 +0100 Subject: [Gambas-user] An other OO problem. In-Reply-To: <384d3900901190845t5ee33ac9x7755e8e82af67548@...627...> References: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> <200901150150.45409.gambas@...1...> <384d3900901190845t5ee33ac9x7755e8e82af67548@...627...> Message-ID: <200901201459.52373.gambas@...1...> On lundi 19 janvier 2009, Jussi Lahtinen wrote: > If I have understand concept correctly, I think this; > http://gambasdoc.org/help/comp/gb/object%5B%5D/copy > is little misleading. > "Returns a deep copy of the array." > Objects copied with this method doesn't seem to be deep copied > (shallow copy instead). > > > Jussi > I wanted to mean that the returned array is a new object, and that the array contents is copied. But if the array contents are object references, objects are not copied (there is no way to tell Gambas how to copy objects), only the references are. Is "shallow copy" really the right term then? -- Benoit Minisini From gambas at ...1... Tue Jan 20 15:01:27 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Jan 2009 15:01:27 +0100 Subject: [Gambas-user] Thanks!! :-) In-Reply-To: <200901191853.10368.gambas@...1938...> References: <200901191853.10368.gambas@...1938...> Message-ID: <200901201501.27242.gambas@...1...> On lundi 19 janvier 2009, gambas at ...1938... wrote: > Hi Benoit! > > Many thanks for the configurable shortcuts! ...sooooo cool! :-) > > Two questions: > 1) Is there a way to integrate the possibility defining his own commands in > the menubar (and also access them per shortcut)? Example: > I've to migrate many server apps form Perl to Gambas. Testing is only > possible on the server machine itself. If I had a menu with configurable > commands, I could write a shell or Gambas script to copy the binary to the > server.... I think there are lots of scenarios where user defined commands > could make developer life a lot easier. No, but in your specific case, you can define a shell command to be run each time you make an executable. You define this command in the "make executable" dialog. > > 2) What do I have to do, when I want to translate some of the english > texts, descriptions etc. in the IDE to my native language (German) and make > it public?? > > Greetz > Stevie > The IDE is a Gambas project like any other Gambas project. So you use the IDE to translate the IDE. -- Benoit Minisini From gambas at ...1... Tue Jan 20 15:02:25 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 20 Jan 2009 15:02:25 +0100 Subject: [Gambas-user] MovieBox as Picture in tableview? In-Reply-To: <49750166.60604@...1740...> References: <49750166.60604@...1740...> Message-ID: <200901201502.25176.gambas@...1...> On lundi 19 janvier 2009, Ron wrote: > Is it possible to use a MovieBox image instead of a normal Picture in a > tableview on Gambas 2.10? > > Now I use something like > > tbvDevices[iCount, 1].Picture = Picture["path to image"] > > But want to display animated gifs too... > > Anyone knows? > > Regards, > Ron_2nd > This is not possible. You must have one picture for each movie frame, and change the displayed picture from a timer event. Regards, -- Benoit Minisini From nando_f at ...951... Tue Jan 20 15:53:32 2009 From: nando_f at ...951... (nando) Date: Tue, 20 Jan 2009 09:53:32 -0500 Subject: [Gambas-user] An other OO problem. In-Reply-To: <200901201459.52373.gambas@...1...> References: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> <200901150150.45409.gambas@...1...> <384d3900901190845t5ee33ac9x7755e8e82af67548@...627...> <200901201459.52373.gambas@...1...> Message-ID: <20090120145256.M46146@...951...> And so, a new copy of references to objects still point the objects ---------- Original Message ----------- From: Benoit Minisini To: mailing list for gambas users Sent: Tue, 20 Jan 2009 14:59:52 +0100 Subject: Re: [Gambas-user] An other OO problem. > On lundi 19 janvier 2009, Jussi Lahtinen wrote: > > If I have understand concept correctly, I think this; > > http://gambasdoc.org/help/comp/gb/object%5B%5D/copy > > is little misleading. > > "Returns a deep copy of the array." > > Objects copied with this method doesn't seem to be deep copied > > (shallow copy instead). > > > > > > Jussi > > > > I wanted to mean that the returned array is a new object, and that the array > contents is copied. But if the array contents are object references, objects > are not copied (there is no way to tell Gambas how to copy objects), only the > references are. > > Is "shallow copy" really the right term then? > > -- > Benoit Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From jussi.lahtinen at ...626... Tue Jan 20 16:13:11 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 20 Jan 2009 17:13:11 +0200 Subject: [Gambas-user] An other OO problem. In-Reply-To: <20090120145256.M46146@...951...> References: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> <200901150150.45409.gambas@...1...> <384d3900901190845t5ee33ac9x7755e8e82af67548@...627...> <200901201459.52373.gambas@...1...> <20090120145256.M46146@...951...> Message-ID: <384d3900901200713m2bf1fd4ej3d2f76b397500283@...627...> Maybe something like "Returns a copy of the array of object references." ? I'm really NOT expert of this topic! I understand that result as shallow copy, as the way that wikipedia describe it ( http://en.wikipedia.org/wiki/Object_copy ). ...with very high risk of misinterpret... I'm very satisfied to have some kind of beginner warning to documentation. Jussi On Tue, Jan 20, 2009 at 4:53 PM, nando wrote: > And so, a new copy of references to objects still point the objects > > > ---------- Original Message ----------- > From: Benoit Minisini > To: mailing list for gambas users > Sent: Tue, 20 Jan 2009 14:59:52 +0100 > Subject: Re: [Gambas-user] An other OO problem. > >> On lundi 19 janvier 2009, Jussi Lahtinen wrote: >> > If I have understand concept correctly, I think this; >> > http://gambasdoc.org/help/comp/gb/object%5B%5D/copy >> > is little misleading. >> > "Returns a deep copy of the array." >> > Objects copied with this method doesn't seem to be deep copied >> > (shallow copy instead). >> > >> > >> > Jussi >> > >> >> I wanted to mean that the returned array is a new object, and that the array >> contents is copied. But if the array contents are object references, objects >> are not copied (there is no way to tell Gambas how to copy objects), only the >> references are. >> >> Is "shallow copy" really the right term then? >> >> -- >> Benoit Minisini >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From sourceforge-raindog2 at ...94... Tue Jan 20 16:43:00 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 20 Jan 2009 10:43:00 -0500 Subject: [Gambas-user] An other OO problem. In-Reply-To: <384d3900901200713m2bf1fd4ej3d2f76b397500283@...627...> References: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> <20090120145256.M46146@...951...> <384d3900901200713m2bf1fd4ej3d2f76b397500283@...627...> Message-ID: <200901201043.00240.sourceforge-raindog2@...94...> On Tuesday 20 January 2009 10:13, Jussi Lahtinen wrote: > Maybe something like "Returns a copy of the array of object references." > ? I'm really NOT expert of this topic! I understand that result as > shallow copy, as the way that wikipedia describe it ( > http://en.wikipedia.org/wiki/Object_copy ). Actually, given the definitions there, what Gambas is doing is a deep copy. In a shallow copy, there's only one object (array, in this case) when the copy is complete, and two references to it (and the originally declared second array's allocated memory is lost to either garbage collection or a memory leak), but in a deep copy, there are two independent copies of the array when you're done. In Gambas the latter is true. Rob From jussi.lahtinen at ...626... Tue Jan 20 17:35:29 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 20 Jan 2009 18:35:29 +0200 Subject: [Gambas-user] An other OO problem. In-Reply-To: <200901201043.00240.sourceforge-raindog2@...94...> References: <384d3900901141648m2adbe7ay94f6848d9e12824b@...627...> <20090120145256.M46146@...951...> <384d3900901200713m2bf1fd4ej3d2f76b397500283@...627...> <200901201043.00240.sourceforge-raindog2@...94...> Message-ID: <384d3900901200835q6fd4cc5dmb65dc3da3940b30@...627...> Ok, I get what you mean. There are two copies of the array (two objects), but their content points to same objects. So result only looks kind of shallow copy. Brain twisting... warning to documentation would be nice. Jussi On Tue, Jan 20, 2009 at 5:43 PM, Rob wrote: > On Tuesday 20 January 2009 10:13, Jussi Lahtinen wrote: >> Maybe something like "Returns a copy of the array of object references." >> ? I'm really NOT expert of this topic! I understand that result as >> shallow copy, as the way that wikipedia describe it ( >> http://en.wikipedia.org/wiki/Object_copy ). > > Actually, given the definitions there, what Gambas is doing is a deep copy. > > In a shallow copy, there's only one object (array, in this case) when the > copy is complete, and two references to it (and the originally declared > second array's allocated memory is lost to either garbage collection or a > memory leak), but in a deep copy, there are two independent copies of the > array when you're done. In Gambas the latter is true. > > Rob > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Jan 21 21:00:49 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 21 Jan 2009 21:00:49 +0100 Subject: [Gambas-user] Warning with Gambas 3 Message-ID: <200901212100.49706.gambas@...1...> Hi, Beware that in the latest revision of the development version, the syntax of the Image constructor has changed. Before, it was: -------- New Image(Width As Integer, Height As Integer, Optional Transparent As Boolean) -------- Now, Image are always transparent, and the syntax is: -------- New Image(Optional Width As Integer, Optional Height As Integer, Optional Format As Integer, Optional Color As Integer) -------- Format can be Image.Standard, or Image.Premultiplied, the latest meaning than the color components are premultiplied by the alpha component. Color is a color that will be used to initialize the image contents. Otherwise, the contents is undefined. Regards, -- Benoit Minisini From simonart.dominique at ...11... Thu Jan 22 00:06:34 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Thu, 22 Jan 2009 00:06:34 +0100 Subject: [Gambas-user] Signal 11 while initializing a property Message-ID: <4977AA7A.1060804@...11...> Hi everybody, Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt If I initialize my property with the next 2 lines, it's OK ( N and the X property are defined as Byte, i is an Integer) READ #hFile, N hMyClass[i].X = N But if I want to write it shorter with the line below, it ends with a signal 11! READ #hFile, hMyClass[i].X Why? Thanks for your help Dominique Simonart From jussi.lahtinen at ...626... Thu Jan 22 15:46:38 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Jan 2009 16:46:38 +0200 Subject: [Gambas-user] Signal 11 while initializing a property In-Reply-To: <4977AA7A.1060804@...11...> References: <4977AA7A.1060804@...11...> Message-ID: <384d3900901220646i726fe1edq67bf8969c82d6df@...627...> Hi! Is hMyClass declared as Object[] ? If so, READ cannot recognise hMyClass[i].X as byte. See my earlier post "Minor bug with READ & WRITE commands?". I think you have same problem than I did, and in fact it is not bug. Jussi On Thu, Jan 22, 2009 at 1:06 AM, Dominique SIMONART wrote: > Hi everybody, > > Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt > If I initialize my property with the next 2 lines, it's OK ( N and > the X property are defined as Byte, i is an Integer) > > READ #hFile, N > hMyClass[i].X = N > > But if I want to write it shorter with the line below, it ends with > a signal 11! > > READ #hFile, hMyClass[i].X > > Why? > Thanks for your help > Dominique Simonart > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bug.me at ...734... Thu Jan 22 16:01:15 2009 From: bug.me at ...734... (Randy) Date: Thu, 22 Jan 2009 10:01:15 -0500 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. Message-ID: <49788A3B.7090704@...734...> Hello. New to Gambas and having problems with following code: STATIC PUBLIC FUNCTION CreateGLTables() DIM hTable AS Table hTable = Global.$hConn.Tables.Add("glcoa") WITH hTable .Fields.Add("company", db.String, 3) .Fields.Add("account", db.String, 12) .Fields.Add("description", gb.String, 32) .Fields.Add("gltype", gb.String, 1) .Fields.Add("glsort", gb.Integer) .Fields.Add("status", gb.String, 1) .PrimaryKey = ["account"] .Indexes.Add("glcoa_account", "account", TRUE) .Indexes.Add("glcoa_sort", "glsort", TRUE) .Update END WITH CATCH Message.Error("CreateGLTables Function: " & DConv(Error.Text)) END The error is "Cannot create index. relation glcoa does not exist." Why? Can not find any information on the internet about this error. Help :-( Randy =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiSpam: SpamAssassin 3.2.3 AntiVirus: ClamAV 0.91.2/8885 - Wed Jan 21 12:48:08 2009 by Markus Madlener @ http://www.copfilter.org From simonart.dominique at ...11... Thu Jan 22 18:59:51 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Thu, 22 Jan 2009 18:59:51 +0100 Subject: [Gambas-user] Signal 11 while initializing a property In-Reply-To: <384d3900901220646i726fe1edq67bf8969c82d6df@...627...> References: <4977AA7A.1060804@...11...> <384d3900901220646i726fe1edq67bf8969c82d6df@...627...> Message-ID: <4978B417.3020109@...11...> Hi Julien, You are right! I read your post and I understand the reason, but you don't speak about Signal 11, so I was thinking for another problem although similar regards, Dominique Simonart Jussi Lahtinen a ?crit : > Hi! > > Is hMyClass declared as Object[] ? > If so, READ cannot recognise hMyClass[i].X as byte. > See my earlier post "Minor bug with READ & WRITE commands?". > I think you have same problem than I did, and in fact it is not bug. > > > Jussi > > > > On Thu, Jan 22, 2009 at 1:06 AM, Dominique SIMONART > wrote: >> Hi everybody, >> >> Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt >> If I initialize my property with the next 2 lines, it's OK ( N and >> the X property are defined as Byte, i is an Integer) >> >> READ #hFile, N >> hMyClass[i].X = N >> >> But if I want to write it shorter with the line below, it ends with >> a signal 11! >> >> READ #hFile, hMyClass[i].X >> >> Why? >> Thanks for your help >> Dominique Simonart >> From rterry at ...1946... Thu Jan 22 22:19:26 2009 From: rterry at ...1946... (richard terry) Date: Fri, 23 Jan 2009 08:19:26 +1100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <49788A3B.7090704@...734...> References: <49788A3B.7090704@...734...> Message-ID: <200901230819.26424.rterry@...1946...> On Fri, 23 Jan 2009 02:01:15 am Randy wrote: > Hello. > > New to Gambas and having problems with following code: > > STATIC PUBLIC FUNCTION CreateGLTables() > > DIM hTable AS Table > > hTable = Global.$hConn.Tables.Add("glcoa") > WITH hTable > .Fields.Add("company", db.String, 3) > .Fields.Add("account", db.String, 12) > .Fields.Add("description", gb.String, 32) > .Fields.Add("gltype", gb.String, 1) > .Fields.Add("glsort", gb.Integer) > .Fields.Add("status", gb.String, 1) > .PrimaryKey = ["account"] > .Indexes.Add("glcoa_account", "account", TRUE) > .Indexes.Add("glcoa_sort", "glsort", TRUE) > .Update > END WITH > > CATCH > > Message.Error("CreateGLTables Function: " & DConv(Error.Text)) > END > > > The error is "Cannot create index. relation glcoa does not exist." Why? > Can not find any information on the internet about this error. > > Help :-( Randy, though I use gambas extensively with a huge postgres database, I personally never use the gambas data controls, but that's just a matter of preference. I suspect that if you delted the .Indexes lines it would work, and add them later. However I do have a suggestion to you until someone else helps you. Simply duplicate the code in pgAdmin and look at whot error message it throws up For example I guarentee that this will work in pgadmin (cause I just typed it in!): --drop table public.glcoa cascade; --drop table public.lu_status; --drop table public.lu_glcoa_type; create table public.glcoa (pk SERIAL PRIMARY KEY, company text , account text, description text, fk_gltype integer not null, glsort integer, fk_status integer not null) ; CREATE TABLE public.lu_status ( pk SERIAL primary key, status TEXT NOT NULL); CREATE TABLE public.lu_glcoa_type ( pk SERIAL primary key, gltype TEXT NOT NULL); CREATE INDEX glcoa_idx ON public.glcoa USING btree (company, account); Create view public."vwGlcoa" as ( SELECT public.glcoa.pk, public.glcoa.company, public.glcoa.account, public.glcoa.description, public.glcoa.fk_gltype, public.glcoa.glsort, public.glcoa.fk_status, public.lu_glcoa_type.gltype, public.lu_status.status FROM public.glcoa INNER JOIN public.lu_glcoa_type ON (public.glcoa.fk_gltype = public.lu_glcoa_type.pk) INNER JOIN public.lu_status ON (public.glcoa.fk_status = public.lu_status.pk)); Note I've used pk as the primary key, which seems to be good practice in postgres and allows you to do all sorts of things later. Note also that there seems in my research no advantage to use anything more than a straight TEXT field i.e though you can use say char (2) char(20) etc, using straight TEXT dosn't penalise you. Another comment. Its good programming practice to normalise your database. For example though I've no idea what text you will have in glType it could be removed to a lookup table as per above Similarly with status. Note I've put a couple of not null's in there, which you should also do for your primary table if you want to be able to enforce referential integrity on your data eg the column company could be company not null, or if you wanted to allow a null description it could be 'description default null' Oh, and views, wonderful views. Use them extensively where you can. Hope this is not off track and a little useful, I've quickly dashed this off in pgadmin and it compiled ok for me. Regards Richard > Randy > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) > AntiSpam: SpamAssassin 3.2.3 > AntiVirus: ClamAV 0.91.2/8885 - Wed Jan 21 12:48:08 2009 > by Markus Madlener @ http://www.copfilter.org > > --------------------------------------------------------------------------- >--- This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From simonart.dominique at ...11... Fri Jan 23 12:02:55 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Fri, 23 Jan 2009 12:02:55 +0100 Subject: [Gambas-user] Signal 11 while initializing a property In-Reply-To: <4978B417.3020109@...11...> References: <4977AA7A.1060804@...11...> <384d3900901220646i726fe1edq67bf8969c82d6df@...627...> <4978B417.3020109@...11...> Message-ID: <4979A3DF.3040005@...11...> Jussi (sorry for the preceding Julien) I wonder if our problems are really the same! Here is more details of my situation. As you can see, the READ should know that the datatype of hMyClas[i].X *is* a byte hMyClass.Resize(9) FOR i = 0 TO 8 hMyClass[i] = NEW MyClass ' using these two 2 instructions works fine READ #hFile, N hMyClass[i].X = N ' using this one ends with Signal 11 message ' READ #hFile, hMyClass[i].X NEXT If you want to test, I join the complete source (with the file to read) as it is very small (15.4K) regards Dominique Simonart Simonart Dominique a ?crit : > Hi Julien, > You are right! > I read your post and I understand the reason, > but you don't speak about Signal 11, so I was thinking for > another problem although similar > > regards, > Dominique Simonart > > Jussi Lahtinen a ?crit : > >> Hi! >> >> Is hMyClass declared as Object[] ? >> If so, READ cannot recognise hMyClass[i].X as byte. >> See my earlier post "Minor bug with READ & WRITE commands?". >> I think you have same problem than I did, and in fact it is not bug. >> >> >> Jussi >> >> >> >> On Thu, Jan 22, 2009 at 1:06 AM, Dominique SIMONART >> wrote: >> >>> Hi everybody, >>> >>> Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt >>> If I initialize my property with the next 2 lines, it's OK ( N and >>> the X property are defined as Byte, i is an Integer) >>> >>> READ #hFile, N >>> hMyClass[i].X = N >>> >>> But if I want to write it shorter with the line below, it ends with >>> a signal 11! >>> >>> READ #hFile, hMyClass[i].X >>> >>> Why? >>> Thanks for your help >>> Dominique Simonart >>> >>> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From simonart.dominique at ...11... Fri Jan 23 12:08:45 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Fri, 23 Jan 2009 12:08:45 +0100 Subject: [Gambas-user] Signal 11 while initializing a property In-Reply-To: <4979A3DF.3040005@...11...> References: <4977AA7A.1060804@...11...> <384d3900901220646i726fe1edq67bf8969c82d6df@...627...> <4978B417.3020109@...11...> <4979A3DF.3040005@...11...> Message-ID: <4979A53D.4060600@...11...> Oups, forget to join the source! Dominique SIMONART a ?crit : > Jussi (sorry for the preceding Julien) > > I wonder if our problems are really the same! > Here is more details of my situation. As you can see, the READ should > know that the datatype of hMyClas[i].X *is* a byte > > hMyClass.Resize(9) > FOR i = 0 TO 8 > hMyClass[i] = NEW MyClass > ' using these two 2 instructions works fine > READ #hFile, N > hMyClass[i].X = N > ' using this one ends with Signal 11 message > ' READ #hFile, hMyClass[i].X > NEXT > > If you want to test, I join the complete source (with the file to read) > as it is very small (15.4K) > regards > Dominique Simonart > > Simonart Dominique a ?crit : > >> Hi Julien, >> You are right! >> I read your post and I understand the reason, >> but you don't speak about Signal 11, so I was thinking for >> another problem although similar >> >> regards, >> Dominique Simonart >> >> Jussi Lahtinen a ?crit : >> >> >>> Hi! >>> >>> Is hMyClass declared as Object[] ? >>> If so, READ cannot recognise hMyClass[i].X as byte. >>> See my earlier post "Minor bug with READ & WRITE commands?". >>> I think you have same problem than I did, and in fact it is not bug. >>> >>> >>> Jussi >>> >>> >>> >>> On Thu, Jan 22, 2009 at 1:06 AM, Dominique SIMONART >>> wrote: >>> >>> >>>> Hi everybody, >>>> >>>> Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt >>>> If I initialize my property with the next 2 lines, it's OK ( N and >>>> the X property are defined as Byte, i is an Integer) >>>> >>>> READ #hFile, N >>>> hMyClass[i].X = N >>>> >>>> But if I want to write it shorter with the line below, it ends with >>>> a signal 11! >>>> >>>> READ #hFile, hMyClass[i].X >>>> >>>> Why? >>>> Thanks for your help >>>> Dominique Simonart >>>> >>>> >>>> -------------- next part -------------- A non-text attachment was scrubbed... Name: TestSignal11.tar.gz Type: application/x-gzip Size: 15776 bytes Desc: not available URL: From lordheavym at ...626... Fri Jan 23 16:24:23 2009 From: lordheavym at ...626... (Laurent Carlier) Date: Fri, 23 Jan 2009 16:24:23 +0100 Subject: [Gambas-user] New bugs in OpenGl In-Reply-To: References: <200901151353.23646.gambas@...1...> Message-ID: <200901231624.24014.lordheavym@...626...> Le jeudi 15 janvier 2009 15:14:58 Jaap Cramer, vous avez ?crit : > > On jeudi 15 janvier 2009, Jaap Cramer wrote: > > > Hi > > > > > > I discovered a new bug in the OpenGl module. > > > I use gl.Color4f(0, 1, 0, iTriangleAlpha) to color a object. The > > > variable iTriangleAlpha does not change the opacity but the size. (see > > > attachment, use slider) > > > > I see nothing wrong in the source code of this function. The four > > arguments are directly sent to the glColor4d OpenGL API. > > Could it be an OpenGl Api bug? :( ... > Perhaps you can take a look at Gl.BlendFunc() or Gl.AlphaTest() functions before ? > > > Is openGl still being worked on? > > > > Only Laurent Carlier can answer you. > > I hope he is. It would be great, if some unfinished (but stable ;) ) > modules could be finished :D It's stable, but certainly incomplete but pretty complete for a "general use". It's maintain but i'm pretty busy in my job (an certainly for many month, at least till june/july) > > Thanks for your response. > Jaap > > > Regards, > > > > -- > > Benoit Minisini > > From jussi.lahtinen at ...626... Fri Jan 23 18:54:59 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 23 Jan 2009 19:54:59 +0200 Subject: [Gambas-user] Signal 11 while initializing a property In-Reply-To: <4979A53D.4060600@...11...> References: <4977AA7A.1060804@...11...> <384d3900901220646i726fe1edq67bf8969c82d6df@...627...> <4978B417.3020109@...11...> <4979A3DF.3040005@...11...> <4979A53D.4060600@...11...> Message-ID: <384d3900901230954l6d6f0822pd4d485ae169ae2c@...627...> No, I think it is exactly same problem. Here is the reason (just like in my code): PUBLIC hMyClass AS NEW Object[] Only difference is how we populate that array. I use fResult.Add(aa) and you use hMyClass[i] = NEW MyClass (and hMyClass.Resize(9)). Result is very same. Read my post and followups (see what Benoit has answered) more carefully! hMyClass is object array. And command READ see hMyClass[n] as object, but it could be any kind of object, not always MyClass. In this case, when you have some object with somekind of variable in it, then it is Variant. Basically you are trying to read more memory than you are allowed to, that's why signal 11. Jussi On Fri, Jan 23, 2009 at 1:08 PM, Dominique SIMONART wrote: > Oups, forget to join the source! > > Dominique SIMONART a ?crit : >> Jussi (sorry for the preceding Julien) >> >> I wonder if our problems are really the same! >> Here is more details of my situation. As you can see, the READ should >> know that the datatype of hMyClas[i].X *is* a byte >> >> hMyClass.Resize(9) >> FOR i = 0 TO 8 >> hMyClass[i] = NEW MyClass >> ' using these two 2 instructions works fine >> READ #hFile, N >> hMyClass[i].X = N >> ' using this one ends with Signal 11 message >> ' READ #hFile, hMyClass[i].X >> NEXT >> >> If you want to test, I join the complete source (with the file to read) >> as it is very small (15.4K) >> regards >> Dominique Simonart >> >> Simonart Dominique a ?crit : >> >>> Hi Julien, >>> You are right! >>> I read your post and I understand the reason, >>> but you don't speak about Signal 11, so I was thinking for >>> another problem although similar >>> >>> regards, >>> Dominique Simonart >>> >>> Jussi Lahtinen a ?crit : >>> >>> >>>> Hi! >>>> >>>> Is hMyClass declared as Object[] ? >>>> If so, READ cannot recognise hMyClass[i].X as byte. >>>> See my earlier post "Minor bug with READ & WRITE commands?". >>>> I think you have same problem than I did, and in fact it is not bug. >>>> >>>> >>>> Jussi >>>> >>>> >>>> >>>> On Thu, Jan 22, 2009 at 1:06 AM, Dominique SIMONART >>>> wrote: >>>> >>>> >>>>> Hi everybody, >>>>> >>>>> Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt >>>>> If I initialize my property with the next 2 lines, it's OK ( N and >>>>> the X property are defined as Byte, i is an Integer) >>>>> >>>>> READ #hFile, N >>>>> hMyClass[i].X = N >>>>> >>>>> But if I want to write it shorter with the line below, it ends with >>>>> a signal 11! >>>>> >>>>> READ #hFile, hMyClass[i].X >>>>> >>>>> Why? >>>>> Thanks for your help >>>>> Dominique Simonart >>>>> >>>>> >>>>> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From bug.me at ...734... Fri Jan 23 20:49:46 2009 From: bug.me at ...734... (Randy-53) Date: Fri, 23 Jan 2009 11:49:46 -0800 (PST) Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200901230819.26424.rterry@...1946...> References: <49788A3B.7090704@...734...> <200901230819.26424.rterry@...1946...> Message-ID: <21631439.post@...1379...> Hello Richard, I have pgAdmin and made the table with SQL then I tried in gambas code without index. That works Ok. Next I added the .Index.Add and the code failed with error "Cannot create index. relation glcoa does not exist." I would like the program to use Postgresql and sqlite for the database. So that is why I wrote the function in Gambas code. I'm testing Gambas, Kbasic and, Realbasic to see about coding a business software (General Ledger, Account Payable, Point of Sales etc...) I'm new to Gambas and PostgreSQL, but I think this is a bug. Randy :-( Debian Etch, Postgresql 8.1.15, KDE 3.5.5 This a very simple project. Just connect to database, then make table. Project Files: http://www.nabble.com/file/p21631439/fbs.tar.gz fbs.tar.gz -- View this message in context: http://www.nabble.com/Gambas---PostgreSQL-cannot-create-index.-relation-XXX-does-not-exist.-tp21605905p21631439.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Jan 24 01:45:54 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 24 Jan 2009 01:45:54 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <21631439.post@...1379...> References: <49788A3B.7090704@...734...> <200901230819.26424.rterry@...1946...> <21631439.post@...1379...> Message-ID: <200901240145.54224.gambas@...1...> On vendredi 23 janvier 2009, Randy-53 wrote: > Hello Richard, > > I have pgAdmin and made the table with SQL then I tried in gambas code > without index. That works Ok. Next I added the .Index.Add and the code > failed with error "Cannot create index. relation glcoa does not exist." I > would like the program to use Postgresql and sqlite for the database. So > that is why I wrote the function in Gambas code. I'm testing Gambas, Kbasic > and, Realbasic to see about coding a business software (General Ledger, > Account Payable, Point of Sales etc...) I'm new to Gambas and PostgreSQL, > but I think this is a bug. > > Randy :-( > > Debian Etch, Postgresql 8.1.15, KDE 3.5.5 > > This a very simple project. Just connect to database, then make table. > Project Files: http://www.nabble.com/file/p21631439/fbs.tar.gz fbs.tar.gz I am currently busy with theatre until Sunday. I will look at the bug then! Regards, -- Benoit Minisini From simonart.dominique at ...11... Sat Jan 24 02:24:59 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Sat, 24 Jan 2009 02:24:59 +0100 Subject: [Gambas-user] Signal 11 while initializing a property In-Reply-To: <384d3900901230954l6d6f0822pd4d485ae169ae2c@...627...> References: <4977AA7A.1060804@...11...> <384d3900901220646i726fe1edq67bf8969c82d6df@...627...> <4978B417.3020109@...11...> <4979A3DF.3040005@...11...> <4979A53D.4060600@...11...> <384d3900901230954l6d6f0822pd4d485ae169ae2c@...627...> Message-ID: <497A6DEB.4060102@...11...> Thanks Jussi, Now I think I really understand :) Dominique Simonart Jussi Lahtinen a ?crit : > No, I think it is exactly same problem. > > Here is the reason (just like in my code): > PUBLIC hMyClass AS NEW Object[] > > Only difference is how we populate that array. > I use fResult.Add(aa) and you use hMyClass[i] = NEW MyClass (and > hMyClass.Resize(9)). > Result is very same. > > Read my post and followups (see what Benoit has answered) more carefully! > hMyClass is object array. > And command READ see hMyClass[n] as object, but it could be any > kind of object, not always MyClass. > In this case, when you have some object with somekind of variable in it, > then it is Variant. > Basically you are trying to read more memory than you are allowed to, > that's why signal 11. > > > Jussi > > > On Fri, Jan 23, 2009 at 1:08 PM, Dominique SIMONART > wrote: >> Oups, forget to join the source! >> >> Dominique SIMONART a ?crit : >>> Jussi (sorry for the preceding Julien) >>> >>> I wonder if our problems are really the same! >>> Here is more details of my situation. As you can see, the READ should >>> know that the datatype of hMyClas[i].X *is* a byte >>> >>> hMyClass.Resize(9) >>> FOR i = 0 TO 8 >>> hMyClass[i] = NEW MyClass >>> ' using these two 2 instructions works fine >>> READ #hFile, N >>> hMyClass[i].X = N >>> ' using this one ends with Signal 11 message >>> ' READ #hFile, hMyClass[i].X >>> NEXT >>> >>> If you want to test, I join the complete source (with the file to read) >>> as it is very small (15.4K) >>> regards >>> Dominique Simonart >>> >>> Simonart Dominique a ?crit : >>> >>>> Hi Julien, >>>> You are right! >>>> I read your post and I understand the reason, >>>> but you don't speak about Signal 11, so I was thinking for >>>> another problem although similar >>>> >>>> regards, >>>> Dominique Simonart >>>> >>>> Jussi Lahtinen a ?crit : >>>> >>>> >>>>> Hi! >>>>> >>>>> Is hMyClass declared as Object[] ? >>>>> If so, READ cannot recognise hMyClass[i].X as byte. >>>>> See my earlier post "Minor bug with READ & WRITE commands?". >>>>> I think you have same problem than I did, and in fact it is not bug. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> >>>>> >>>>> On Thu, Jan 22, 2009 at 1:06 AM, Dominique SIMONART >>>>> wrote: >>>>> >>>>> >>>>>> Hi everybody, >>>>>> >>>>>> Gambas 2.8, OpenSuse 11.0, Kde 3.5, with Qt >>>>>> If I initialize my property with the next 2 lines, it's OK ( N and >>>>>> the X property are defined as Byte, i is an Integer) >>>>>> >>>>>> READ #hFile, N >>>>>> hMyClass[i].X = N >>>>>> >>>>>> But if I want to write it shorter with the line below, it ends with >>>>>> a signal 11! >>>>>> >>>>>> READ #hFile, hMyClass[i].X >>>>>> >>>>>> Why? >>>>>> Thanks for your help >>>>>> Dominique Simonart >>>>>> >>>>>> >>>>>> >> From rolf.frogs at ...221... Sat Jan 24 10:13:24 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Sat, 24 Jan 2009 10:13:24 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <49788A3B.7090704@...734...> References: <49788A3B.7090704@...734...> Message-ID: <200901241013.28091.rolf.frogs@...221...> Hello Randy. > STATIC PUBLIC FUNCTION CreateGLTables() > > DIM hTable AS Table > > hTable = Global.$hConn.Tables.Add("glcoa") > WITH hTable > .Fields.Add("company", db.String, 3) > .Fields.Add("account", db.String, 12) > .Fields.Add("description", gb.String, 32) > .Fields.Add("gltype", gb.String, 1) > .Fields.Add("glsort", gb.Integer) > .Fields.Add("status", gb.String, 1) > .PrimaryKey = ["account"] > .Indexes.Add("glcoa_account", "account", TRUE) > .Indexes.Add("glcoa_sort", "glsort", TRUE) > .Update > END WITH > > CATCH > > Message.Error("CreateGLTables Function: " & DConv(Error.Text)) > END > > > The error is "Cannot create index. relation glcoa does not exist." Why? > Can not find any information on the internet about this error. First of all, what is the output of the commands, when DB.debug is set. With this flag you get the sql-statments send to the database written in a console window. Then you can copy the output to the command line tool, psql or mysql and see, what error messages you get. Second, you try to make an index on your primary key field, which always has an index, because it is the primary key. HTH Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From bug.me at ...734... Sat Jan 24 16:49:48 2009 From: bug.me at ...734... (Randy-53) Date: Sat, 24 Jan 2009 07:49:48 -0800 (PST) Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200901241013.28091.rolf.frogs@...221...> References: <49788A3B.7090704@...734...> <200901241013.28091.rolf.frogs@...221...> Message-ID: <21641747.post@...1379...> Rolf Schmidt wrote: > > Hello Randy. > >> STATIC PUBLIC FUNCTION CreateGLTables() >> >> DIM hTable AS Table >> >> hTable = Global.$hConn.Tables.Add("glcoa") >> WITH hTable >> .Fields.Add("company", db.String, 3) >> .Fields.Add("account", db.String, 12) >> .Fields.Add("description", gb.String, 32) >> .Fields.Add("gltype", gb.String, 1) >> .Fields.Add("glsort", gb.Integer) >> .Fields.Add("status", gb.String, 1) >> .PrimaryKey = ["account"] >> .Indexes.Add("glcoa_account", "account", TRUE) >> .Indexes.Add("glcoa_sort", "glsort", TRUE) >> .Update >> END WITH >> >> CATCH >> >> Message.Error("CreateGLTables Function: " & DConv(Error.Text)) >> END >> >> >> The error is "Cannot create index. relation glcoa does not exist." Why? >> Can not find any information on the internet about this error. > > First of all, what is the output of the commands, when DB.debug is set. > With > this flag you get the sql-statments send to the database written in a > console > window. Then you can copy the output to the command line tool, psql or > mysql > and see, what error messages you get. > > Second, you try to make an index on your primary key field, which always > has > an index, because it is the primary key. > > HTH > Rolf > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hello Rolf, I try to make index on any of the fields. The code that I posted is the last try and not what I intended for indexes for the table. If I try to make indexes on any of the fields, Gambas fails with that error message. I turn on the DB.Bebug and try to make index for glsort field only. Here's the debug output with index: postgresql: 0x8159aa8: select substring(version(),12,5) postgresql: 0x8159aa8: show client_encoding postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, pg_class pg_class2 where pg_class2.relname = 'glcoa' and (pg_class2.relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) and pg_index.indrelid = pg_ class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = 'glcoa_sort' postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) Here's the debug output without index: postgresql: 0x8159de8: select substring(version(),12,5) postgresql: 0x8159de8: show client_encoding postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "glcoa_pkey" for table "glcoa" With indexes Gambas doesn't create the table! Bug? Randy :-) -- View this message in context: http://www.nabble.com/Gambas---PostgreSQL-cannot-create-index.-relation-XXX-does-not-exist.-tp21605905p21641747.html Sent from the gambas-user mailing list archive at Nabble.com. From bug.me at ...734... Sat Jan 24 16:50:42 2009 From: bug.me at ...734... (Randy-53) Date: Sat, 24 Jan 2009 07:50:42 -0800 (PST) Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200901241013.28091.rolf.frogs@...221...> References: <49788A3B.7090704@...734...> <200901241013.28091.rolf.frogs@...221...> Message-ID: <21641748.post@...1379...> Rolf Schmidt wrote: > > Hello Randy. > >> STATIC PUBLIC FUNCTION CreateGLTables() >> >> DIM hTable AS Table >> >> hTable = Global.$hConn.Tables.Add("glcoa") >> WITH hTable >> .Fields.Add("company", db.String, 3) >> .Fields.Add("account", db.String, 12) >> .Fields.Add("description", gb.String, 32) >> .Fields.Add("gltype", gb.String, 1) >> .Fields.Add("glsort", gb.Integer) >> .Fields.Add("status", gb.String, 1) >> .PrimaryKey = ["account"] >> .Indexes.Add("glcoa_account", "account", TRUE) >> .Indexes.Add("glcoa_sort", "glsort", TRUE) >> .Update >> END WITH >> >> CATCH >> >> Message.Error("CreateGLTables Function: " & DConv(Error.Text)) >> END >> >> >> The error is "Cannot create index. relation glcoa does not exist." Why? >> Can not find any information on the internet about this error. > > First of all, what is the output of the commands, when DB.debug is set. > With > this flag you get the sql-statments send to the database written in a > console > window. Then you can copy the output to the command line tool, psql or > mysql > and see, what error messages you get. > > Second, you try to make an index on your primary key field, which always > has > an index, because it is the primary key. > > HTH > Rolf > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hello Rolf, I try to make index on any of the fields. The code that I posted is the last try and not what I intended for indexes for the table. If I try to make indexes on any of the fields, Gambas fails with that error message. I turn on the DB.Bebug and try to make index for glsort field only. Here's the debug output with index: postgresql: 0x8159aa8: select substring(version(),12,5) postgresql: 0x8159aa8: show client_encoding postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, pg_class pg_class2 where pg_class2.relname = 'glcoa' and (pg_class2.relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) and pg_index.indrelid = pg_ class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = 'glcoa_sort' postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) Here's the debug output without index: postgresql: 0x8159de8: select substring(version(),12,5) postgresql: 0x8159de8: show client_encoding postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "glcoa_pkey" for table "glcoa" With indexes Gambas doesn't create the table! Bug? Randy :-) -- View this message in context: http://www.nabble.com/Gambas---PostgreSQL-cannot-create-index.-relation-XXX-does-not-exist.-tp21605905p21641748.html Sent from the gambas-user mailing list archive at Nabble.com. From bug.me at ...734... Sat Jan 24 16:51:07 2009 From: bug.me at ...734... (Randy-53) Date: Sat, 24 Jan 2009 07:51:07 -0800 (PST) Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200901241013.28091.rolf.frogs@...221...> References: <49788A3B.7090704@...734...> <200901241013.28091.rolf.frogs@...221...> Message-ID: <21641749.post@...1379...> Rolf Schmidt wrote: > > Hello Randy. > >> STATIC PUBLIC FUNCTION CreateGLTables() >> >> DIM hTable AS Table >> >> hTable = Global.$hConn.Tables.Add("glcoa") >> WITH hTable >> .Fields.Add("company", db.String, 3) >> .Fields.Add("account", db.String, 12) >> .Fields.Add("description", gb.String, 32) >> .Fields.Add("gltype", gb.String, 1) >> .Fields.Add("glsort", gb.Integer) >> .Fields.Add("status", gb.String, 1) >> .PrimaryKey = ["account"] >> .Indexes.Add("glcoa_account", "account", TRUE) >> .Indexes.Add("glcoa_sort", "glsort", TRUE) >> .Update >> END WITH >> >> CATCH >> >> Message.Error("CreateGLTables Function: " & DConv(Error.Text)) >> END >> >> >> The error is "Cannot create index. relation glcoa does not exist." Why? >> Can not find any information on the internet about this error. > > First of all, what is the output of the commands, when DB.debug is set. > With > this flag you get the sql-statments send to the database written in a > console > window. Then you can copy the output to the command line tool, psql or > mysql > and see, what error messages you get. > > Second, you try to make an index on your primary key field, which always > has > an index, because it is the primary key. > > HTH > Rolf > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Hello Rolf, I try to make index on any of the fields. The code that I posted is the last try and not what I intended for indexes for the table. If I try to make indexes on any of the fields, Gambas fails with that error message. I turn on the DB.Bebug and try to make index for glsort field only. Here's the debug output with index: postgresql: 0x8159aa8: select substring(version(),12,5) postgresql: 0x8159aa8: show client_encoding postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, pg_class pg_class2 where pg_class2.relname = 'glcoa' and (pg_class2.relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) and pg_index.indrelid = pg_ class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = 'glcoa_sort' postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) Here's the debug output without index: postgresql: 0x8159de8: select substring(version(),12,5) postgresql: 0x8159de8: show client_encoding postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "glcoa_pkey" for table "glcoa" With indexes Gambas doesn't create the table! Bug? Randy :-) -- View this message in context: http://www.nabble.com/Gambas---PostgreSQL-cannot-create-index.-relation-XXX-does-not-exist.-tp21605905p21641749.html Sent from the gambas-user mailing list archive at Nabble.com. From ronstk at ...239... Sat Jan 24 17:56:10 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 24 Jan 2009 17:56:10 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <49788A3B.7090704@...734...> References: <49788A3B.7090704@...734...> Message-ID: <200901241756.10351.ronstk@...239...> On Thursday 22 January 2009, Randy wrote: > ---8<--- >? ? .Fields.Add("account", db.String, 12) >? ? .Fields.Add("glsort", gb.Integer) > ?---8<--- > ? ? .PrimaryKey = ["account"] > ? ? .Indexes.Add("glcoa_account", "account", TRUE) > ? ? .Indexes.Add("glcoa_sort", "glsort", TRUE) > ? ? .Update > > The error is "Cannot create index. relation glcoa does not exist." Why? ? > Can not find any information on the internet about this error. There is something going wrong with the names 'glcoa_account' and 'glcoa_sort' Try it with 'glcoaaccount' and 'glcoasort' (without the underscore). Best regards, Ron_1st -- From bug.me at ...734... Sat Jan 24 18:30:59 2009 From: bug.me at ...734... (Randy) Date: Sat, 24 Jan 2009 12:30:59 -0500 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200901241756.10351.ronstk@...239...> References: <49788A3B.7090704@...734...> <200901241756.10351.ronstk@...239...> Message-ID: <497B5053.6090002@...734...> Hello Rolf, I try to make index on any of the fields. The code that I posted is the last try and not what I intended for indexes for the table. If I try to make indexes on any of the fields, Gambas fails with that error message. I turn on the DB.Bebug and try to make index for glsort field only. Here's the debug output with index: postgresql: 0x8159aa8: select substring(version(),12,5) postgresql: 0x8159aa8: show client_encoding postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, pg_class pg_class2 where pg_class2.relname = 'glcoa' and (pg_class2.relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) and pg_index.indrelid = pg_ class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = 'glcoa_sort' postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) Here's the debug output without index: postgresql: 0x8159de8: select substring(version(),12,5) postgresql: 0x8159de8: show client_encoding postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "glcoa_pkey" for table "glcoa" With indexes Gambas doesn't create the table! Bug? Randy :-) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiSpam: SpamAssassin 3.2.3 AntiVirus: ClamAV 0.91.2/8897 - Fri Jan 23 07:59:36 2009 by Markus Madlener @ http://www.copfilter.org From ronstk at ...239... Sat Jan 24 19:32:46 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 24 Jan 2009 19:32:46 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <497B5053.6090002@...734...> References: <49788A3B.7090704@...734...> <200901241756.10351.ronstk@...239...> <497B5053.6090002@...734...> Message-ID: <200901241932.46428.ronstk@...239...> On Saturday 24 January 2009, Randy wrote: > Hello Rolf, > > I try to make index on any of the fields. The code that I posted is the > last try and not what I intended for indexes for the table. If I try to > make indexes on any of the fields, Gambas fails with that error message. > I turn on the DB.Bebug and try to make index for glsort field only. > > > Here's the debug output with index: > > postgresql: 0x8159aa8: select substring(version(),12,5) > postgresql: 0x8159aa8: show client_encoding > postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' > or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in > (select oid from pg_namespace where nspname = 'information_schema')) > postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, > pg_class pg_class2 where pg_class2.relname = 'glcoa' and > (pg_class2.relnamespace not in (select oid from pg_namespace where > nspname = 'information_schema')) and pg_index.indrelid = pg_ > class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = > 'glcoa_sort' > postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) > > > Here's the debug output without index: > > postgresql: 0x8159de8: select substring(version(),12,5) > postgresql: 0x8159de8: show client_encoding > postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' > or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in > (select oid from pg_namespace where nspname = 'information_schema')) > postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), > "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" > VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) > NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index > "glcoa_pkey" for table "glcoa" > > > With indexes Gambas doesn't create the table! Bug? > > > Randy :-) > I just take a look in the source code --------------------- BEGIN_METHOD(CINDEX_add, GB_STRING name; GB_STRING fields; GB_BOOLEAN unique) CTABLE *table = GB.SubCollection.Container(THIS); char *name = GB.ToZeroString(ARG(name)); DB_INDEX info; if (DB_CheckName(name, "index")) return; if (check_index(table, name, FALSE)) return; info.name = name; info.fields = GB.ToZeroString(ARG(fields)); info.unique = VARGOPT(unique, FALSE); table->driver->Index.Create(&table->conn->db, table->name, name, &info); END_METHOD ---------------------------- if (check_index(table, name, FALSE)) return; 'name' here is your 'glcoa_sort' My comment here is that it _looks_ as the required name 'glcoa_sort' must exist/notexist also as field name in the table. It should be not exists of course. In the above source the last line starting with table looks to me as Create index ('thedatabse', table->'glcoa_sort', 'glcoa_sort' , DB_INDEX) what results in: "glcoa_sort" ON glcoa (glsort) Anyway here happens something strange to me. Did you Try it with 'glcoaaccount' and 'glcoasort' (without the underscore) ??? and what happens then? In your reply: postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) it look as it try to use table glcoa, the name after ON !! BTW do you have a table named glcoa? @benoit in CIndex.h void *CINDEX_get(CTABLE *table, const char *name); int CINDEX_exist(CTABLE *table, const char *name); void CINDEX_list(CTABLE *table, char ***list); void CINDEX_release(CTABLE *table, void *_object); I missing CINDEX_create ???? Second why the first is void *CIndex and the two last void CIndex ?? Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From bug.me at ...734... Sat Jan 24 23:56:23 2009 From: bug.me at ...734... (Randy) Date: Sat, 24 Jan 2009 17:56:23 -0500 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <200901241932.46428.ronstk@...239...> References: <49788A3B.7090704@...734...> <200901241756.10351.ronstk@...239...> <497B5053.6090002@...734...> <200901241932.46428.ronstk@...239...> Message-ID: <497B9C97.5030900@...734...> DIM hTable AS Table hTable = Global.$hConn.Tables.Add("glcoa") WITH hTable .Fields.Add("company", db.String, 3) .Fields.Add("account", db.String, 12) .Fields.Add("description", gb.String, 32) .Fields.Add("gltype", gb.String, 1) .Fields.Add("glsort", gb.Integer) .Fields.Add("status", gb.String, 1) .PrimaryKey = ["account"] .Update END WITH Here's the debug output for above code. Take notice of the CREATE TABLE SQL. This work without any error. postgresql: 0x8159de8: select substring(version(),12,5) postgresql: 0x8159de8: show client_encoding postgresql: 0x8159de8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159de8: CREATE TABLE "glcoa" ( "company" VARCHAR(3), "account" VARCHAR(12) NOT NULL , "description" VARCHAR(32), "gltype" VARCHAR(1), "glsort" INT, "status" VARCHAR(1), PRIMARY KEY (account) ) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "glcoa_pkey" for table "glcoa" Change code to make index: DIM hTable AS Table hTable = Global.$hConn.Tables.Add("glcoa") WITH hTable .Fields.Add("company", db.String, 3) .Fields.Add("account", db.String, 12) .Fields.Add("description", gb.String, 32) .Fields.Add("gltype", gb.String, 1) .Fields.Add("glsort", gb.Integer) .Fields.Add("status", gb.String, 1) .PrimaryKey = ["account"] .Indexes.Add("glcoa_sort", "glsort", TRUE) .Update END WITH Here's the debug output with index. Their is NO CREATE TABLE SQL when you try make table with indexes. It's missing! It looks like this is a bug in Gambas when creating table with indexes. postgresql: 0x8159aa8: select substring(version(),12,5) postgresql: 0x8159aa8: show client_encoding postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, pg_class pg_class2 where pg_class2.relname = 'glcoa' and (pg_class2.relnamespace not in (select oid from pg_namespace where nspname = 'information_schema')) and pg_index.indrelid = pg_ class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = 'glcoa_sort' postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) Randy :-) BTW; I'm using Gambas 2.10.2 > > I just take a look in the source code > --------------------- > BEGIN_METHOD(CINDEX_add, GB_STRING name; GB_STRING fields; GB_BOOLEAN unique) > > CTABLE *table = GB.SubCollection.Container(THIS); > char *name = GB.ToZeroString(ARG(name)); > DB_INDEX info; > > if (DB_CheckName(name, "index")) > return; > > if (check_index(table, name, FALSE)) > return; > > info.name = name; > info.fields = GB.ToZeroString(ARG(fields)); > info.unique = VARGOPT(unique, FALSE); > > table->driver->Index.Create(&table->conn->db, table->name, name, &info); > > END_METHOD > > > ---------------------------- > if (check_index(table, name, FALSE)) > return; > > 'name' here is your 'glcoa_sort' > > My comment here is that it _looks_ as the required name 'glcoa_sort' must > exist/notexist also as field name in the table. > It should be not exists of course. > > In the above source the last line starting with table looks to me > as Create index ('thedatabse', table->'glcoa_sort', 'glcoa_sort' , DB_INDEX) > > what results in: "glcoa_sort" ON glcoa (glsort) > Anyway here happens something strange to me. > > > > Did you Try it with 'glcoaaccount' and 'glcoasort' (without the underscore) ??? > and what happens then? > > In your reply: > postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) > > it look as it try to use table glcoa, the name after ON !! > > BTW do you have a table named glcoa? > > > @benoit > > in CIndex.h > > void *CINDEX_get(CTABLE *table, const char *name); > int CINDEX_exist(CTABLE *table, const char *name); > void CINDEX_list(CTABLE *table, char ***list); > void CINDEX_release(CTABLE *table, void *_object); > > I missing CINDEX_create ???? > Second why the first is void *CIndex and the two last void CIndex ?? > > > > > Best regards, > > Ron_1st > > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Scanned with Copfilter Version 0.84beta3a (ProxSMTP 1.6) AntiSpam: SpamAssassin 3.2.3 AntiVirus: ClamAV 0.91.2/8899 - Sat Jan 24 08:06:33 2009 by Markus Madlener @ http://www.copfilter.org From ronstk at ...239... Sun Jan 25 00:19:16 2009 From: ronstk at ...239... (Ron_1st) Date: Sun, 25 Jan 2009 00:19:16 +0100 Subject: [Gambas-user] Gambas & PostgreSQL cannot create index. relation XXX does not exist. In-Reply-To: <497B9C97.5030900@...734...> References: <49788A3B.7090704@...734...> <200901241932.46428.ronstk@...239...> <497B9C97.5030900@...734...> Message-ID: <200901250019.16944.ronstk@...239...> On Saturday 24 January 2009, Randy wrote: > ? ? .Fields.Add("status", gb.String, 1) > ? ? .PrimaryKey = ["account"] > ? ? .Indexes.Add("glcoa_sort", "glsort", TRUE) > ? ? .Update > ? ?END WITH > > Here's the debug output with index. Their is NO CREATE TABLE SQL when you try make table with indexes. It's missing! It looks like this is a bug in Gambas when creating table with indexes. > > postgresql: 0x8159aa8: select substring(version(),12,5) > postgresql: 0x8159aa8: show client_encoding > postgresql: 0x8159aa8: select relname from pg_class where (relkind = 'r' > or relkind = 'v') and (relname = 'glcoa') and (relnamespace not in > (select oid from pg_namespace where nspname = 'information_schema')) > postgresql: 0x8159aa8: select pg_class.relname from pg_class, pg_index, > pg_class pg_class2 where pg_class2.relname = 'glcoa' and > (pg_class2.relnamespace not in (select oid from pg_namespace where > nspname = 'information_schema')) and pg_index.indrelid = pg_ > class2.oid and pg_index.indexrelid = pg_class.oid and pg_class.relname = > 'glcoa_sort' > postgresql: 0x8159aa8: CREATE UNIQUE INDEX "glcoa_sort" ON glcoa ( glsort ) ------------------------------------------------------------^^^^^^^ here it tries the table glcoa but that does not exist yet !!! > OK Just the last line tells me it wants a table to add the index. From esafwan at ...626... Sun Jan 25 04:05:13 2009 From: esafwan at ...626... (Safwan) Date: Sat, 24 Jan 2009 19:05:13 -0800 Subject: [Gambas-user] Safwan wants to chat Message-ID: ----------------------------------------------------------------------- Safwan wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-6131dbc20f-3541919a78-3315914473355238 You'll need to click this link to be able to chat with Safwan. To get Gmail - a free email account from Google with over 2,800 megabytes of storage - and chat with Safwan, visit: http://mail.google.com/mail/a-6131dbc20f-3541919a78-5b75a10298 Gmail offers: - Instant messaging right inside Gmail - Powerful spam protection - Built-in search for finding your messages and a helpful way of organizing emails into "conversations" - No pop-up ads or untargeted banners - just text ads and related information that are relevant to the content of your messages All this, and its yours for free. But wait, there's more! By opening a Gmail account, you also get access to Google Talk, Google's instant messaging service: http://www.google.com/talk/ Google Talk offers: - Web-based chat that you can use anywhere, without a download - A contact list that's synchronized with your Gmail account - Free, high quality PC-to-PC voice calls when you download the Google Talk client Gmail and Google Talk are still in beta. We're working hard to add new features and make improvements, so we might also ask for your comments and suggestions periodically. We appreciate your help in making our products even better! Thanks, The Google Team To learn more about Gmail and Google Talk, visit: http://mail.google.com/mail/help/about.html http://www.google.com/talk/about.html (If clicking the URLs in this message does not work, copy and paste them into the address bar of your browser). From ronstk at ...239... Sun Jan 25 21:13:55 2009 From: ronstk at ...239... (Ron_1st) Date: Sun, 25 Jan 2009 21:13:55 +0100 Subject: [Gambas-user] make install errors Message-ID: <200901252113.56080.ronstk@...239...> kubuntu 8.04 root at ...1311...:~# aclocal --version aclocal (GNU automake) 1.10.1 root at ...1311...:~# automake --version automake (GNU automake) 1.10.1 root at ...1311...:~# libtool --version ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 2008/02/01 16:58:18) got the svn source reconf-all configure make make install Get: Installing gb.settings... Compiling gb.info... OK Installing gb.info... Compiling gb.form... Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control Installing gb.form... /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No such file or directory Compiling gb.form.dialog... Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list /root/src/gambas/trunk/comp/src/gb.form.dialog/FDirDialog.class:51: Unknown identifier: DirChooser ----8<---- Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list /usr/local/share/gambas3/examples/Sound/MusicPlayer/FSoundPlayer.class:106: Unknown identifier: ToolButton Compiling Video/MoviePlayer/... /usr/local/share/gambas3/examples/Video/MoviePlayer/FMoviePlayer.class:159: Unknown identifier: TextLabel Compiling Video/MyWebCam/... /usr/local/share/gambas3/examples/Video/MyWebCam/Form1.class:234: Unknown identifier: PictureBox make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/root/src/gambas/trunk/examples' make[1]: Leaving directory `/root/src/gambas/trunk/examples' make[1]: Entering directory `/root/src/gambas/trunk' make[2]: Entering directory `/root/src/gambas/trunk' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/root/src/gambas/trunk' make[1]: Leaving directory `/root/src/gambas/trunk' root at ...1311...:~/src/gambas/trunk# It does not matter doing all as user or as root I'm now going to try downgrade to aclocal/automake 1.9 But still the interesting point is Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list and many more for component list files /root/.local/share/ this happens also as done as user ron with "sudo make install" root at ...1311...:~/src/gambas/trunk# whoami root Best regards, Ron_1st -- From gambas at ...1... Sun Jan 25 22:03:15 2009 From: gambas at ...1... (Benoit Minisini) Date: Sun, 25 Jan 2009 22:03:15 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901252113.56080.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> Message-ID: <200901252203.15324.gambas@...1...> On dimanche 25 janvier 2009, Ron_1st wrote: > kubuntu 8.04 > > root at ...1311...:~# aclocal --version > aclocal (GNU automake) 1.10.1 > root at ...1311...:~# automake --version > automake (GNU automake) 1.10.1 > root at ...1311...:~# libtool --version > ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 > 2008/02/01 16:58:18) > > > got the svn source > reconf-all > configure > make > > make install > Get: > > Installing gb.settings... > Compiling gb.info... > OK > Installing gb.info... > Compiling gb.form... > Cannot read component list file: > /root/.local/share/gambas3/info/gb.form.list > /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown > identifier: Control Installing gb.form... > /usr/bin/install: cannot stat `.info': No such file or directory > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No such > file or directory /usr/bin/install: cannot stat `.list': No such file or > directory > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No such > file or directory Compiling gb.form.dialog... > Cannot read component list file: > /root/.local/share/gambas3/info/gb.form.list > /root/src/gambas/trunk/comp/src/gb.form.dialog/FDirDialog.class:51: Unknown > identifier: DirChooser ----8<---- > Cannot read component list file: > /root/.local/share/gambas3/info/gb.form.list > /usr/local/share/gambas3/examples/Sound/MusicPlayer/FSoundPlayer.class:106: > Unknown identifier: ToolButton Compiling Video/MoviePlayer/... > /usr/local/share/gambas3/examples/Video/MoviePlayer/FMoviePlayer.class:159: > Unknown identifier: TextLabel Compiling Video/MyWebCam/... > /usr/local/share/gambas3/examples/Video/MyWebCam/Form1.class:234: Unknown > identifier: PictureBox make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/root/src/gambas/trunk/examples' > make[1]: Leaving directory `/root/src/gambas/trunk/examples' > make[1]: Entering directory `/root/src/gambas/trunk' > make[2]: Entering directory `/root/src/gambas/trunk' > make[2]: Nothing to be done for `install-exec-am'. > make[2]: Nothing to be done for `install-data-am'. > make[2]: Leaving directory `/root/src/gambas/trunk' > make[1]: Leaving directory `/root/src/gambas/trunk' > root at ...1311...:~/src/gambas/trunk# > > It does not matter doing all as user or as root > > I'm now going to try downgrade to aclocal/automake 1.9 > But still the interesting point is > Cannot read component list file: > /root/.local/share/gambas3/info/gb.form.list and many more for component > list files /root/.local/share/ > this happens also as done as user ron with "sudo make install" > > > root at ...1311...:~/src/gambas/trunk# whoami > root > > > > Best regards, > > Ron_1st Apparently the gb.qt component did not compile - You should check that before trying to install anything. -- Benoit Minisini From ronstk at ...239... Mon Jan 26 01:17:49 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 26 Jan 2009 01:17:49 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901252203.15324.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901252203.15324.gambas@...1...> Message-ID: <200901260117.49610.ronstk@...239...> On Sunday 25 January 2009, Benoit Minisini wrote: > > Best regards, > > > > Ron_1st > > Apparently the gb.qt component did not compile - You should check that before > trying to install anything. > Kubuntu 8.04 root at ...1311...:~/src/gambas/trunk# aclocal --version aclocal (GNU automake) 1.9.6 root at ...1311...:~/src/gambas/trunk# automake --version automake (GNU automake) 1.9.6 root at ...1311...:~/src/gambas/trunk# libtool --version ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 2008/02/01 16:58:18) Downloaded the tarbal 2.10 and this is working :) So system should be OK for more then 50% :) Reading the config.log in gb.qt (attached) Found at line 83: gcc: '-V' option must have argument Found at line 149: g++: '-V' option must have argument Found after line 111: (cheking preprocessor) gcc -E conftest.c conftest.c:14:28: error: ac_nonexistent.h: no such file or directory .... configure: failed program was: /=* conftest.h. */ gb.qt/src/.libs is full of compiled object files gb.qt.so.0.0.0 is 6.593.467 bytes in size Any hint is welcome The only thing I see ATM there is going something wrong with the .info and .list files Retry now with automake-1.9 while this works for the tarbal 2.10 Hope theater was OK Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log.zip Type: application/x-zip Size: 7593 bytes Desc: not available URL: From ronstk at ...239... Mon Jan 26 01:55:36 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 26 Jan 2009 01:55:36 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901252203.15324.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901252203.15324.gambas@...1...> Message-ID: <200901260155.36738.ronstk@...239...> On Sunday 25 January 2009, Benoit Minisini wrote: > On dimanche 25 janvier 2009, Ron_1st wrote: > > kubuntu 8.04 > > > > root at ...1311...:~# aclocal --version > > aclocal (GNU automake) 1.10.1 > > root at ...1311...:~# automake --version > > automake (GNU automake) 1.10.1 > > root at ...1311...:~# libtool --version > > ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 > > 2008/02/01 16:58:18) > > > > > > got the svn source > > reconf-all > > configure > > make > > > > make install > > Get: > > > > Installing gb.settings... > > Compiling gb.info... > > OK > > Installing gb.info... > > Compiling gb.form... > > Cannot read component list file: > > /root/.local/share/gambas3/info/gb.form.list > > /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown > > identifier: Control Installing gb.form... > > /usr/bin/install: cannot stat `.info': No such file or directory > > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No such > > file or directory /usr/bin/install: cannot stat `.list': No such file or > > directory > > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No such > > file or directory Compiling gb.form.dialog... > > Cannot read component list file: > > /root/.local/share/gambas3/info/gb.form.list > > /root/src/gambas/trunk/comp/src/gb.form.dialog/FDirDialog.class:51: Unknown > > identifier: DirChooser ----8<---- > > Cannot read component list file: > > /root/.local/share/gambas3/info/gb.form.list > > /usr/local/share/gambas3/examples/Sound/MusicPlayer/FSoundPlayer.class:106: > > Unknown identifier: ToolButton Compiling Video/MoviePlayer/... > > /usr/local/share/gambas3/examples/Video/MoviePlayer/FMoviePlayer.class:159: > > Unknown identifier: TextLabel Compiling Video/MyWebCam/... > > /usr/local/share/gambas3/examples/Video/MyWebCam/Form1.class:234: Unknown > > identifier: PictureBox make[2]: Nothing to be done for `install-data-am'. > > make[2]: Leaving directory `/root/src/gambas/trunk/examples' > > make[1]: Leaving directory `/root/src/gambas/trunk/examples' > > make[1]: Entering directory `/root/src/gambas/trunk' > > make[2]: Entering directory `/root/src/gambas/trunk' > > make[2]: Nothing to be done for `install-exec-am'. > > make[2]: Nothing to be done for `install-data-am'. > > make[2]: Leaving directory `/root/src/gambas/trunk' > > make[1]: Leaving directory `/root/src/gambas/trunk' > > root at ...1311...:~/src/gambas/trunk# > > > > It does not matter doing all as user or as root > > > > I'm now going to try downgrade to aclocal/automake 1.9 > > But still the interesting point is > > Cannot read component list file: > > /root/.local/share/gambas3/info/gb.form.list and many more for component > > list files /root/.local/share/ > > this happens also as done as user ron with "sudo make install" > > > > > > root at ...1311...:~/src/gambas/trunk# whoami > > root > > > > > > > > Best regards, > > > > Ron_1st > > Apparently the gb.qt component did not compile - You should check that before > trying to install anything. > just done: ( ./configure -C; make; make install ) > output.txt 2>&1 I see at line 149 and up checking for external internationalization library headers... /usr/include/ checking for external internationalization library libraries... no configure: WARNING: Unable to find file: libintl.so configure: This library may be located inside the system C library, so let's go on... checking for optional external charset conversion library headers... /usr/include/ checking for optional external charset conversion library libraries... no configure: WARNING: Unable to find file: libiconv.so configure: This library may be located inside the system C library, so let's go on... checking for foreign function interface component with pkg-config... no configure: WARNING: *** foreign function interface is disabled checking for foreign function interface headers... /usr/include/ checking for foreign function interface libraries... /usr/lib/ libintl.so and libiconv.so do not exist in (k)ubuntu 8.04, I Can't find them. the .h however is there. With apt-file search i get apt-file search libiconv.so none found apt-file search libiconv libiconv-hook-dev: /usr/lib/libiconv_hook.so libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/changelog.Debian.gz libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/changelog.gz libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/copyright libiconv-hook1: /usr/lib/libiconv_hook.a libiconv-hook1: /usr/lib/libiconv_hook.so.1 libiconv-hook1: /usr/lib/libiconv_hook.so.1.0.0 libiconv-hook1: /usr/share/doc/libiconv-hook1/README.Debian libiconv-hook1: /usr/share/doc/libiconv-hook1/README.JP.gz libiconv-hook1: /usr/share/doc/libiconv-hook1/README.gz libiconv-hook1: /usr/share/doc/libiconv-hook1/changelog.Debian.gz libiconv-hook1: /usr/share/doc/libiconv-hook1/changelog.gz libiconv-hook1: /usr/share/doc/libiconv-hook1/copyright apt-file search libintl.so gettext: /usr/lib/preloadable_libintl.so libuclibc-dev: /usr/i386-uclibc-linux/lib/libintl.so libuclibc0: /usr/i386-uclibc-linux/lib/libintl.so.0 # apt-file search libintl dietlibc-dev: /usr/include/diet/libintl.h fpc-source: /usr/share/fpcsrc/packages/base/libc/libintlh.inc gawk: /usr/share/awk/libintl.awk gettext: /usr/lib/preloadable_libintl.so gettext: /usr/share/gettext/intl/libintl.rc gettext-base: /usr/share/java/libintl.jar kdelibs4-doc: /usr/share/doc/kde/HTML/en/kdelibs-apidocs/kdecore/html/libintl_8cpp-source.html libc6-dev: /usr/include/libintl.h libintl-gettext-ruby: /usr/share/doc/libintl-gettext-ruby/README ??? need libc6-dev ???? but no libintl.so found libc6, libc6-dev and libc6-i686 are installed #locate libintl /usr/include/libintl.h /usr/lib/preloadable_libintl.so /usr/share/gettext/intl/libintl.rc # locate iconv.h /usr/include/iconv.h /usr/include/iconv_hook/iconv.h # locate intl.h /usr/include/libintl.h /usr/share/gettext/intl/libgnuintl.h.in Best regards, Ron_1st -- -------------- next part -------------- A non-text attachment was scrubbed... Name: output.txt.zip Type: application/x-zip Size: 16141 bytes Desc: not available URL: From gambas at ...1... Mon Jan 26 02:12:18 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 26 Jan 2009 02:12:18 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901260155.36738.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901252203.15324.gambas@...1...> <200901260155.36738.ronstk@...239...> Message-ID: <200901260212.18076.gambas@...1...> On lundi 26 janvier 2009, Ron_1st wrote: > On Sunday 25 January 2009, Benoit Minisini wrote: > > On dimanche 25 janvier 2009, Ron_1st wrote: > > > kubuntu 8.04 > > > > > > root at ...1311...:~# aclocal --version > > > aclocal (GNU automake) 1.10.1 > > > root at ...1311...:~# automake --version > > > automake (GNU automake) 1.10.1 > > > root at ...1311...:~# libtool --version > > > ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 > > > 2008/02/01 16:58:18) > > > > > > > > > got the svn source > > > reconf-all > > > configure > > > make > > > > > > make install > > > Get: > > > > > > Installing gb.settings... > > > Compiling gb.info... > > > OK > > > Installing gb.info... > > > Compiling gb.form... > > > Cannot read component list file: > > > /root/.local/share/gambas3/info/gb.form.list > > > /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown > > > identifier: Control Installing gb.form... > > > /usr/bin/install: cannot stat `.info': No such file or directory > > > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No > > > such file or directory /usr/bin/install: cannot stat `.list': No such > > > file or directory > > > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No > > > such file or directory Compiling gb.form.dialog... > > > Cannot read component list file: > > > /root/.local/share/gambas3/info/gb.form.list > > > /root/src/gambas/trunk/comp/src/gb.form.dialog/FDirDialog.class:51: > > > Unknown identifier: DirChooser ----8<---- > > > Cannot read component list file: > > > /root/.local/share/gambas3/info/gb.form.list > > > /usr/local/share/gambas3/examples/Sound/MusicPlayer/FSoundPlayer.class: > > >106: Unknown identifier: ToolButton Compiling Video/MoviePlayer/... > > > /usr/local/share/gambas3/examples/Video/MoviePlayer/FMoviePlayer.class: > > >159: Unknown identifier: TextLabel Compiling Video/MyWebCam/... > > > /usr/local/share/gambas3/examples/Video/MyWebCam/Form1.class:234: > > > Unknown identifier: PictureBox make[2]: Nothing to be done for > > > `install-data-am'. make[2]: Leaving directory > > > `/root/src/gambas/trunk/examples' > > > make[1]: Leaving directory `/root/src/gambas/trunk/examples' > > > make[1]: Entering directory `/root/src/gambas/trunk' > > > make[2]: Entering directory `/root/src/gambas/trunk' > > > make[2]: Nothing to be done for `install-exec-am'. > > > make[2]: Nothing to be done for `install-data-am'. > > > make[2]: Leaving directory `/root/src/gambas/trunk' > > > make[1]: Leaving directory `/root/src/gambas/trunk' > > > root at ...1311...:~/src/gambas/trunk# > > > > > > It does not matter doing all as user or as root > > > > > > I'm now going to try downgrade to aclocal/automake 1.9 > > > But still the interesting point is > > > Cannot read component list file: > > > /root/.local/share/gambas3/info/gb.form.list and many more for > > > component list files /root/.local/share/ > > > this happens also as done as user ron with "sudo make install" > > > > > > > > > root at ...1311...:~/src/gambas/trunk# whoami > > > root > > > > > > > > > > > > Best regards, > > > > > > Ron_1st > > > > Apparently the gb.qt component did not compile - You should check that > > before trying to install anything. > > just done: > ( ./configure -C; make; make install ) > output.txt 2>&1 > > I see at line 149 and up > > checking for external internationalization library headers... /usr/include/ > checking for external internationalization library libraries... no > configure: WARNING: Unable to find file: libintl.so > configure: This library may be located inside the system C library, so > let's go on... checking for optional external charset conversion library > headers... /usr/include/ checking for optional external charset conversion > library libraries... no configure: WARNING: Unable to find file: > libiconv.so > configure: This library may be located inside the system C library, so > let's go on... checking for foreign function interface component with > pkg-config... no configure: WARNING: *** foreign function interface is > disabled > checking for foreign function interface headers... /usr/include/ > checking for foreign function interface libraries... /usr/lib/ > > > libintl.so and libiconv.so do not exist in (k)ubuntu 8.04, I Can't find > them. the .h however is there. > With apt-file search i get > > > apt-file search libiconv.so > none found > > apt-file search libiconv > libiconv-hook-dev: /usr/lib/libiconv_hook.so > libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/changelog.Debian.gz > libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/changelog.gz > libiconv-hook-dev: /usr/share/doc/libiconv-hook-dev/copyright > libiconv-hook1: /usr/lib/libiconv_hook.a > libiconv-hook1: /usr/lib/libiconv_hook.so.1 > libiconv-hook1: /usr/lib/libiconv_hook.so.1.0.0 > libiconv-hook1: /usr/share/doc/libiconv-hook1/README.Debian > libiconv-hook1: /usr/share/doc/libiconv-hook1/README.JP.gz > libiconv-hook1: /usr/share/doc/libiconv-hook1/README.gz > libiconv-hook1: /usr/share/doc/libiconv-hook1/changelog.Debian.gz > libiconv-hook1: /usr/share/doc/libiconv-hook1/changelog.gz > libiconv-hook1: /usr/share/doc/libiconv-hook1/copyright > > apt-file search libintl.so > gettext: /usr/lib/preloadable_libintl.so > libuclibc-dev: /usr/i386-uclibc-linux/lib/libintl.so > libuclibc0: /usr/i386-uclibc-linux/lib/libintl.so.0 > > > # apt-file search libintl > dietlibc-dev: /usr/include/diet/libintl.h > fpc-source: /usr/share/fpcsrc/packages/base/libc/libintlh.inc > gawk: /usr/share/awk/libintl.awk > gettext: /usr/lib/preloadable_libintl.so > gettext: /usr/share/gettext/intl/libintl.rc > gettext-base: /usr/share/java/libintl.jar > kdelibs4-doc: > /usr/share/doc/kde/HTML/en/kdelibs-apidocs/kdecore/html/libintl_8cpp-source >.html libc6-dev: /usr/include/libintl.h > libintl-gettext-ruby: /usr/share/doc/libintl-gettext-ruby/README > > ??? need libc6-dev ???? but no libintl.so found > libc6, libc6-dev and libc6-i686 are installed > > > #locate libintl > /usr/include/libintl.h > /usr/lib/preloadable_libintl.so > /usr/share/gettext/intl/libintl.rc > > # locate iconv.h > /usr/include/iconv.h > /usr/include/iconv_hook/iconv.h > > # locate intl.h > /usr/include/libintl.h > /usr/share/gettext/intl/libgnuintl.h.in > > > > Best regards, > > Ron_1st These libraries are not mandatory: they do not exist on Linux, but they exist on other Unices, and so are used only when present. Regards, -- Benoit Minisini From ronstk at ...239... Mon Jan 26 02:33:10 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 26 Jan 2009 02:33:10 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901260212.18076.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901260155.36738.ronstk@...239...> <200901260212.18076.gambas@...1...> Message-ID: <200901260233.10547.ronstk@...239...> On Monday 26 January 2009, Benoit Minisini wrote: > > Best regards, > > > > Ron_1st > > These libraries are not mandatory: they do not exist on Linux, but they exist > on other Unices, and so are used only when present. > > Regards, > OK, solved this part. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Mon Jan 26 02:30:56 2009 From: ronstk at ...239... (Ron_1st) Date: Mon, 26 Jan 2009 02:30:56 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901252203.15324.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901252203.15324.gambas@...1...> Message-ID: <200901260230.57009.ronstk@...239...> On Sunday 25 January 2009, Benoit Minisini wrote: > > Apparently the gb.qt component did not compile - You should check that before > trying to install anything. > in output.txt line# 5623: Compiling the gb.gtk project... gb.gtk /root/src/gambas/trunk/gb.gtk/src/gb.gtk/Action.class:16: Unknown identifier: Picture line# 5968: Compiling the gb.qt project... gb.qt /root/src/gambas/trunk/gb.qt/src/gb.qt/Action.class:16: Unknown identifier: Picture line# 6613: Compiling the gb.desktop project... gb.desktop Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list /root/src/gambas/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:14: Unknown identifier: Image Creating the information files for gb.desktop component... gb.desktop !!! hu what does gb.form.list have to do with gb.desktop and the path /root/.local/ ???? Best regards, Ron_1st -- From gambas at ...1... Mon Jan 26 13:08:43 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 26 Jan 2009 13:08:43 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901260230.57009.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901252203.15324.gambas@...1...> <200901260230.57009.ronstk@...239...> Message-ID: <200901261308.43497.gambas@...1...> On lundi 26 janvier 2009, Ron_1st wrote: > On Sunday 25 January 2009, Benoit Minisini wrote: > > Apparently the gb.qt component did not compile - You should check that > > before trying to install anything. > > in output.txt > > line# 5623: > Compiling the gb.gtk project... > gb.gtk > /root/src/gambas/trunk/gb.gtk/src/gb.gtk/Action.class:16: Unknown > identifier: Picture > > line# 5968: > Compiling the gb.qt project... > gb.qt > /root/src/gambas/trunk/gb.qt/src/gb.qt/Action.class:16: Unknown identifier: > Picture > > > line# 6613: > Compiling the gb.desktop project... > gb.desktop > Cannot read component list file: > /root/.local/share/gambas3/info/gb.form.list > /root/src/gambas/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:14: > Unknown identifier: Image > > Creating the information files for gb.desktop component... > gb.desktop > > !!! hu what does gb.form.list have to do with gb.desktop and the path > /root/.local/ ???? > > > > > > > Best regards, > > Ron_1st Apparently you have compiled the same version of Gambas on different locations, without removing the previous installation before installing the new one. To uninstall Gambas, you had to run "make uninstall". Now you have to clean up your system, by removing the removing the symbolic links created in /usr/bin. Their names are "/usr/bin/gb?3". Then you can run "make install" again. Regards, -- Benoit Minisini From rterry at ...1946... Mon Jan 26 22:43:05 2009 From: rterry at ...1946... (richard terry) Date: Tue, 27 Jan 2009 08:43:05 +1100 Subject: [Gambas-user] Help with converting text in field to number Message-ID: <200901270843.05800.rterry@...1946...> As a prefix to this post all contuctive criticism of my flaws/poor logic etc here welcomed (with open arms!). I hope this is not too confusing, which it is likely to be as I don't really know what I'm doing, so its hard to explain, but in essence: I've a table containing my lab results which is as follows and rightly or wrongly I've kept all results initially in a text field as the hl7 I'm dealing with the value field can be numerical or text: CREATE TABLE clin_requests.requests_results ( pk serial NOT NULL, episode_key integer NOT NULL, -- episode key is unique to a group of results -- all of a fbc result text, -- the actual value eg could be potassium or white cell count "value" text, -- could be eg 134 or 1.1 or text units text, -- the units for the above reference_range text, -- the reference range abnormal boolean, -- if true the result is abnormal probability text, -- ?currently not used obx text, -- obx= the entire pipe (|) delimited Hl7 row for this result CONSTRAINT requests_results_pkey PRIMARY KEY (pk) ) Now that I can import my data I want to be able to graph it, for example look at the number of patients with hba1c (a diabetic measurement) between certain ranges, dates etc. I pull this information out of a view: I want to end up with a list of data like this by using union queries for each range I want (is there a better way to do this?) which I can pass to the graphing tool xaxes-text|count|display_order ------------------------------------------- 5-6 5 1 6-7 100 2 over 7 10 3 this query: select '5-6.0' as XAxes_text, count (value) as count,'1' as display_order From clin_requests.vwResults where fk_lu_request = 872 gives for example xaxes-text|count|display_order 6-6.5 100 1 But obviously the query needs a bit more as that is all the values in the view, not the specific range I want so I have to be able to convert the value field to a number and then test if that number is between my ranges. I tried various combinations and permutation of the above base query plus using the function to_number("value","9D9"), to no avail. It must be a matter of correct syntax. Any help appreciated, plus any help pointing me to any references about graphing values in postgres (besides the doc's which I have - ie a tutoral would be useful. Regards, and thanks in anticipation. Richard From gambas at ...1... Mon Jan 26 23:47:24 2009 From: gambas at ...1... (Benoit Minisini) Date: Mon, 26 Jan 2009 23:47:24 +0100 Subject: [Gambas-user] Help with converting text in field to number In-Reply-To: <200901270843.05800.rterry@...1946...> References: <200901270843.05800.rterry@...1946...> Message-ID: <200901262347.24768.gambas@...1...> On lundi 26 janvier 2009, richard terry wrote: > As a prefix to this post all contuctive criticism of my flaws/poor logic > etc here welcomed (with open arms!). I hope this is not too confusing, > which it is likely to be as I don't really know what I'm doing, so its hard > to explain, but in essence: > > I've a table containing my lab results which is as follows and rightly or > wrongly I've kept all results initially in a text field as the hl7 I'm > dealing with the value field can be numerical or text: > > CREATE TABLE clin_requests.requests_results > ( > pk serial NOT NULL, > episode_key integer NOT NULL, -- episode key is unique to a group of > results -- all of a fbc > result text, -- the actual value eg could be potassium or white cell > count "value" text, -- could be eg 134 or 1.1 or text > units text, -- the units for the above > reference_range text, -- the reference range > abnormal boolean, -- if true the result is abnormal > probability text, -- ?currently not used > obx text, -- obx= the entire pipe (|) delimited Hl7 row for this result > CONSTRAINT requests_results_pkey PRIMARY KEY (pk) > ) > > Now that I can import my data I want to be able to graph it, for example > look at the number of patients with hba1c (a diabetic measurement) between > certain ranges, dates etc. > > I pull this information out of a view: > > I want to end up with a list of data like this by using union queries for > each range I want (is there a better way to do this?) which I can pass to > the graphing tool > > xaxes-text|count|display_order > ------------------------------------------- > 5-6 5 1 > 6-7 100 2 > over 7 10 3 > > this query: > > select > '5-6.0' as XAxes_text, count (value) as count,'1' as display_order > From clin_requests.vwResults where fk_lu_request = 872 > > gives for example > xaxes-text|count|display_order > 6-6.5 100 1 > > But obviously the query needs a bit more as that is all the values in the > view, not the specific range I want so I have to be able to convert the > value field to a number and then test if that number is between my ranges. > > I tried various combinations and permutation of the above base query plus > using the function to_number("value","9D9"), to no avail. > > It must be a matter of correct syntax. > > Any help appreciated, plus any help pointing me to any references about > graphing values in postgres (besides the doc's which I have - ie a tutoral > would be useful. > > Regards, and thanks in anticipation. > > Richard > I just want to suggest the following: add a numeric field in your table so that you store the data both in text form and numeric form. When you have to store the result field in a record, you have to convert it to a number and update the numeric field accordingly. Then your range queries should be easier to do. Regards, -- Benoit Minisini From ronstk at ...239... Tue Jan 27 00:22:44 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 27 Jan 2009 00:22:44 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901261308.43497.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901260230.57009.ronstk@...239...> <200901261308.43497.gambas@...1...> Message-ID: <200901270022.44757.ronstk@...239...> On Monday 26 January 2009, Benoit Minisini wrote: > On lundi 26 janvier 2009, Ron_1st wrote: ---8<--- > > !!! hu what does gb.form.list have to do with gb.desktop and the path > > /root/.local/ ???? > > > > > > > > Best regards, > > > > Ron_1st > > Apparently you have compiled the same version of Gambas on different > locations, without removing the previous installation before installing the > new one. Yes correct. 1st in home/src/gambas got the /root/.local/ so maybe a (k)ubuntu sudo problem? 2nd in /root/src/gambas and got again the /root/.local/ > > To uninstall Gambas, you had to run "make uninstall". Stupid me, forgotten this > > Now you have to clean up your system, by removing the removing the symbolic > links created in /usr/bin. Their names are "/usr/bin/gb?3". Then you can > run "make install" again. ? They are out of box from svn in /usr/local/* instead /usr/* here. ? > > Regards, > OK makes sense as usual :) Search for other gambas files : mime parts : deleted For 98% no more found. The only diff seen is gambas-database-manager, one with 2 other without 3 Now I have all in /usr/local/ as gambas2 and gambas3 files. The thing that got my attention is the info and list goes to the wrong path for componenten written in gambas. all the other list and info files are in /usr/local/share/gambas3/info The /root/.local/gambas3 is empty so try with symlink to the /usr/local path Less errors to see. A common error is gb.form, gb.de.form and gb.form.mdi gb.xml gb.xml.rpc gb.xml.xslt Installing the components... Compiling gb.settings... OK Installing gb.settings... Compiling gb.info... OK Installing gb.info... Compiling gb.form... Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control root at ...1311...:~/src/gambas/trunk/comp/src/gb.form# ./gb.form.gambas No protocol specified (gb.form.gambas:2318): Gtk-WARNING **: cannot open display: :0.0 Question Gtk ?? gtk-dev is all installed and kubuntu uses QT. The problem with display :0.0 is known why. Still investigating :) Best regards, Ron_1st -- From doriano.blengino at ...1909... Tue Jan 27 08:31:17 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 27 Jan 2009 08:31:17 +0100 Subject: [Gambas-user] Help with converting text in field to number In-Reply-To: <200901262347.24768.gambas@...1...> References: <200901270843.05800.rterry@...1946...> <200901262347.24768.gambas@...1...> Message-ID: <497EB845.6000103@...1909...> Benoit Minisini ha scritto: > On lundi 26 janvier 2009, richard terry wrote: > >> As a prefix to this post all contuctive criticism of my flaws/poor logic >> etc here welcomed (with open arms!). I hope this is not too confusing, >> which it is likely to be as I don't really know what I'm doing, so its hard >> to explain, but in essence: >> >> I've a table containing my lab results which is as follows and rightly or >> wrongly I've kept all results initially in a text field as the hl7 I'm >> dealing with the value field can be numerical or text: >> >> CREATE TABLE clin_requests.requests_results >> ( >> pk serial NOT NULL, >> episode_key integer NOT NULL, -- episode key is unique to a group of >> results -- all of a fbc >> result text, -- the actual value eg could be potassium or white cell >> count "value" text, -- could be eg 134 or 1.1 or text >> units text, -- the units for the above >> reference_range text, -- the reference range >> abnormal boolean, -- if true the result is abnormal >> probability text, -- ?currently not used >> obx text, -- obx= the entire pipe (|) delimited Hl7 row for this result >> CONSTRAINT requests_results_pkey PRIMARY KEY (pk) >> ) >> >> Now that I can import my data I want to be able to graph it, for example >> look at the number of patients with hba1c (a diabetic measurement) between >> certain ranges, dates etc. >> >> I pull this information out of a view: >> >> I want to end up with a list of data like this by using union queries for >> each range I want (is there a better way to do this?) which I can pass to >> the graphing tool >> >> xaxes-text|count|display_order >> ------------------------------------------- >> 5-6 5 1 >> 6-7 100 2 >> over 7 10 3 >> >> this query: >> >> select >> '5-6.0' as XAxes_text, count (value) as count,'1' as display_order >> From clin_requests.vwResults where fk_lu_request = 872 >> >> gives for example >> xaxes-text|count|display_order >> 6-6.5 100 1 >> >> But obviously the query needs a bit more as that is all the values in the >> view, not the specific range I want so I have to be able to convert the >> value field to a number and then test if that number is between my ranges. >> >> I tried various combinations and permutation of the above base query plus >> using the function to_number("value","9D9"), to no avail. >> >> It must be a matter of correct syntax. >> >> Any help appreciated, plus any help pointing me to any references about >> graphing values in postgres (besides the doc's which I have - ie a tutoral >> would be useful. >> >> Regards, and thanks in anticipation. >> >> Richard >> >> > > I just want to suggest the following: add a numeric field in your table so > that you store the data both in text form and numeric form. > > When you have to store the result field in a record, you have to convert it to > a number and update the numeric field accordingly. > > Then your range queries should be easier to do. > > Regards, > > The real, canonical approach would be to create a probably complex syntax to code your data. A column should code the name of the measurement (say, hba1c), another column should code the type of measurement (kind=range, kind=yes-no, kind=textual response...), two fields should contain the upper and lower bounds for "normality", perhaps a column or two should be used to more precisely identify particular out-of-normality values (ie: ranges for recommended values, but also ranges identifying perilous values). Such a database should be filled by a well-behaved program, using enumeration types whenever possible. Note that measurement name and its normal ranges should go in a table, and real measurements about patients should go in another table. This is a burden, but some tradeoff could be used; for example, an enumeration for the name of the analysis is the better way, but a text string could also work. Perhaps the more important thing to do is to use two separate fields for ranges; if you express a range using a single textual field, then it is difficult to query the database about that. Measurements of kind "yes-no" or "positive-negative" can be simulated by a range of "zero to zero", and a positive test could have a vlaue of 1 (which falls outside the "zero to zero"). I know so little databases and medicine, so take my thought as it is: brainstorming. Cheers and respect for your work, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From wally at ...2037... Tue Jan 27 08:48:57 2009 From: wally at ...2037... (Wally) Date: Tue, 27 Jan 2009 08:48:57 +0100 Subject: [Gambas-user] Accessing C-API Message-ID: <200901270848.57443.wally@...2037...> Is it possible to access a C-API with gambas ? I wonder if it is possible to build a front-end for the comedi data aquasition API : http://www.comedi.org/ with Gambas. Its necessary to access kernel-driver-modules. regs wally From ronstk at ...239... Tue Jan 27 16:41:44 2009 From: ronstk at ...239... (Ron_1st) Date: Tue, 27 Jan 2009 16:41:44 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901270022.44757.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901261308.43497.gambas@...1...> <200901270022.44757.ronstk@...239...> Message-ID: <200901271641.44918.ronstk@...239...> > gb.xml > gb.xml.rpc > gb.xml.xslt > Installing the components... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.info... > OK > Installing gb.info... > Compiling gb.form... > Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list > /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control > Done with new svn in home/ron/src/gambas/trunk Still same errors. Conclusion till now is that there are problems with components written in gambas. Creatimg the info and list files does not work correct. In the /usr/local/share/gambas3/info directory I see strange things First only gb.form.dialog.info and .list Second zero length files for gb.gtk.info .list gb.gui.info .list gb.qt.info .list end of configure gambas3 from svn is: ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.cairo - gb.corba - gb.qt4 - gb.qte ************************************************************ end of configure gambas2.10 from tarball is: ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.qt4 - gb.qte ************************************************************ (For gambas2 Ihave not done the 'make install') root at ...1311...:/home/ron/src/gambas3/trunk# cat configure1.log | grep 'component ' checking for foreign function interface component with pkg-config... no checking for SQLite 3 driver component with pkg-config... OK checking for GTK+ toolkit component with pkg-config... OK checking for GTK+ component component with pkg-config... OK checking for SVG loader for GTK+ component with pkg-config... OK checking for Poppler PDF library component with pkg-config... OK checking for Networking component headers... checking for Networking component libraries... checking for Advanced networking component component with pkg-config... OK checking for STMP client component with pkg-config... OK checking for Perl Compatible Regular Expression component headers... /usr/include/ checking for Perl Compatible Regular Expression component libraries... /usr/lib/ checking for QT component component with pkg-config... OK checking for QT OpenGL component headers... /usr/include/GL/ checking for QT OpenGL component libraries... /usr/lib/ checking for QT/Embedded component headers... /usr/include/qt3/ checking for QT/Embedded component libraries... no checking for QT component component with pkg-config... OK checking for KDE 3.x component headers... /usr/include/kde/ checking for KDE 3.x component libraries... /usr/lib/ checking for XML parser component component with pkg-config... OK checking for XSLT/XML parser component component with pkg-config... OK checking for Video For Linux component headers... /usr/include/ checking for Video For Linux component libraries... /usr/lib/ checking for DES/MD5 crypt component headers... /usr/include/ checking for DES/MD5 crypt component libraries... /usr/lib/ checking for CORBA component headers... no checking for CORBA component libraries... no checking for Gnome desktop routines component with pkg-config... no checking for QT4 toolkit component with pkg-config... no checking for Cairo component component with pkg-config... no checking for Image loading and saving component with pkg-config... OK checking for Gnome desktop routines component with pkg-config... no This is standard on KUbuntu. Ubuntu users must for IDE get the kde stuff extra so both exists then. By missing the Gnome desktop gb.ui fails ??? By missing the Gnome desktop gb.gtk fails ??? Do after fail of gb.ui the gb.qt and gb.gtk fail both ??? From gareth at ...1689... Tue Jan 27 16:51:37 2009 From: gareth at ...1689... (Gareth Bult) Date: Tue, 27 Jan 2009 15:51:37 +0000 (GMT) Subject: [Gambas-user] make install errors In-Reply-To: <200901271641.44918.ronstk@...239...> Message-ID: <25157642.393801233071497858.JavaMail.root@...1834...> For what it's worth; I've just done; snv up && ./reconf-all && ./configure && make clean && make install Worked cleanly .. ----- Original Message ----- From: "Ron_1st" To: "mailing list for gambas users" Sent: Tuesday, 27 January, 2009 3:41:44 PM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [Gambas-user] make install errors > gb.xml > gb.xml.rpc > gb.xml.xslt > Installing the components... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.info... > OK > Installing gb.info... > Compiling gb.form... > Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list > /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control > Done with new svn in home/ron/src/gambas/trunk Still same errors. Conclusion till now is that there are problems with components written in gambas. Creatimg the info and list files does not work correct. In the /usr/local/share/gambas3/info directory I see strange things First only gb.form.dialog.info and .list Second zero length files for gb.gtk.info .list gb.gui.info .list gb.qt.info .list end of configure gambas3 from svn is: ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.cairo - gb.corba - gb.qt4 - gb.qte ************************************************************ end of configure gambas2.10 from tarball is: ************************************************************ THESE COMPONENTS ARE DISABLED: - gb.qt4 - gb.qte ************************************************************ (For gambas2 Ihave not done the 'make install') root at ...1311...:/home/ron/src/gambas3/trunk# cat configure1.log | grep 'component ' checking for foreign function interface component with pkg-config... no checking for SQLite 3 driver component with pkg-config... OK checking for GTK+ toolkit component with pkg-config... OK checking for GTK+ component component with pkg-config... OK checking for SVG loader for GTK+ component with pkg-config... OK checking for Poppler PDF library component with pkg-config... OK checking for Networking component headers... checking for Networking component libraries... checking for Advanced networking component component with pkg-config... OK checking for STMP client component with pkg-config... OK checking for Perl Compatible Regular Expression component headers... /usr/include/ checking for Perl Compatible Regular Expression component libraries... /usr/lib/ checking for QT component component with pkg-config... OK checking for QT OpenGL component headers... /usr/include/GL/ checking for QT OpenGL component libraries... /usr/lib/ checking for QT/Embedded component headers... /usr/include/qt3/ checking for QT/Embedded component libraries... no checking for QT component component with pkg-config... OK checking for KDE 3.x component headers... /usr/include/kde/ checking for KDE 3.x component libraries... /usr/lib/ checking for XML parser component component with pkg-config... OK checking for XSLT/XML parser component component with pkg-config... OK checking for Video For Linux component headers... /usr/include/ checking for Video For Linux component libraries... /usr/lib/ checking for DES/MD5 crypt component headers... /usr/include/ checking for DES/MD5 crypt component libraries... /usr/lib/ checking for CORBA component headers... no checking for CORBA component libraries... no checking for Gnome desktop routines component with pkg-config... no checking for QT4 toolkit component with pkg-config... no checking for Cairo component component with pkg-config... no checking for Image loading and saving component with pkg-config... OK checking for Gnome desktop routines component with pkg-config... no This is standard on KUbuntu. Ubuntu users must for IDE get the kde stuff extra so both exists then. By missing the Gnome desktop gb.ui fails ??? By missing the Gnome desktop gb.gtk fails ??? Do after fail of gb.ui the gb.qt and gb.gtk fail both ??? >From previous message: root at ...1311...:~/src/gambas/trunk/comp/src/gb.form# ./gb.form.gambas No protocol specified (gb.form.gambas:2318): Gtk-WARNING **: cannot open display: :0.0 Question Gtk ?? gtk-dev is all installed and kubuntu uses QT. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From gambas at ...1... Tue Jan 27 18:09:30 2009 From: gambas at ...1... (Benoit Minisini) Date: Tue, 27 Jan 2009 18:09:30 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901271641.44918.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901270022.44757.ronstk@...239...> <200901271641.44918.ronstk@...239...> Message-ID: <200901271809.30061.gambas@...1...> On mardi 27 janvier 2009, Ron_1st wrote: > > gb.xml > > gb.xml.rpc > > gb.xml.xslt > > Installing the components... > > Compiling gb.settings... > > OK > > Installing gb.settings... > > Compiling gb.info... > > OK > > Installing gb.info... > > Compiling gb.form... > > Cannot read component list file: > > /root/.local/share/gambas3/info/gb.form.list > > /root/src/gambas/trunk/comp/src/gb.form/Balloon.class:5: Unknown > > identifier: Control > > Done with new svn in home/ron/src/gambas/trunk > Still same errors. > Conclusion till now is that there are problems with components written in > gambas. Creatimg the info and list files does not work correct. > In the /usr/local/share/gambas3/info directory I see strange things > First only gb.form.dialog.info and .list > Second zero length files for > gb.gtk.info .list > gb.gui.info .list > gb.qt.info .list > > > end of configure gambas3 from svn is: > ************************************************************ > THESE COMPONENTS ARE DISABLED: > - gb.cairo > - gb.corba > - gb.qt4 > - gb.qte > ************************************************************ > > end of configure gambas2.10 from tarball is: > ************************************************************ > THESE COMPONENTS ARE DISABLED: > - gb.qt4 > - gb.qte > ************************************************************ > (For gambas2 Ihave not done the 'make install') > > > > root at ...1311...:/home/ron/src/gambas3/trunk# cat configure1.log | grep > 'component ' checking for foreign function interface component with > pkg-config... no checking for SQLite 3 driver component with pkg-config... > OK > checking for GTK+ toolkit component with pkg-config... OK > checking for GTK+ component component with pkg-config... OK > checking for SVG loader for GTK+ component with pkg-config... OK > checking for Poppler PDF library component with pkg-config... OK > checking for Networking component headers... > checking for Networking component libraries... > checking for Advanced networking component component with pkg-config... OK > checking for STMP client component with pkg-config... OK > checking for Perl Compatible Regular Expression component headers... > /usr/include/ checking for Perl Compatible Regular Expression component > libraries... /usr/lib/ checking for QT component component with > pkg-config... OK > checking for QT OpenGL component headers... /usr/include/GL/ > checking for QT OpenGL component libraries... /usr/lib/ > checking for QT/Embedded component headers... /usr/include/qt3/ > checking for QT/Embedded component libraries... no > checking for QT component component with pkg-config... OK > checking for KDE 3.x component headers... /usr/include/kde/ > checking for KDE 3.x component libraries... /usr/lib/ > checking for XML parser component component with pkg-config... OK > checking for XSLT/XML parser component component with pkg-config... OK > checking for Video For Linux component headers... /usr/include/ > checking for Video For Linux component libraries... /usr/lib/ > checking for DES/MD5 crypt component headers... /usr/include/ > checking for DES/MD5 crypt component libraries... /usr/lib/ > checking for CORBA component headers... no > checking for CORBA component libraries... no > checking for Gnome desktop routines component with pkg-config... no > checking for QT4 toolkit component with pkg-config... no > checking for Cairo component component with pkg-config... no > checking for Image loading and saving component with pkg-config... OK > > > > checking for Gnome desktop routines component with pkg-config... no > This is standard on KUbuntu. > Ubuntu users must for IDE get the kde stuff extra so both exists then. > > By missing the Gnome desktop gb.ui fails ??? > By missing the Gnome desktop gb.gtk fails ??? > Do after fail of gb.ui the gb.qt and gb.gtk fail both ??? > > >From previous message: > > root at ...1311...:~/src/gambas/trunk/comp/src/gb.form# ./gb.form.gambas > No protocol specified > (gb.form.gambas:2318): Gtk-WARNING **: cannot open display: :0.0 > > Question Gtk ?? gtk-dev is all installed and kubuntu uses QT. > > > > > Best regards, > > Ron_1st There was a syntax error in gb.db.mysql I just fixed, but it is not related to your problems. The gb.desktop.gnome missing library (gnome-keyring-1) does not prevent gb.desktop to be compiled. It will just prevent gb.desktop to store password in the Gnome keyring. So I suggest that you delete your Gambas directory, do a checkout from start, and compile everything again! Regards, -- Benoit Minisini From doriano.blengino at ...1909... Tue Jan 27 21:10:55 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Tue, 27 Jan 2009 21:10:55 +0100 Subject: [Gambas-user] Accessing C-API In-Reply-To: <200901270848.57443.wally@...2037...> References: <200901270848.57443.wally@...2037...> Message-ID: <497F6A4F.3070604@...1909...> Wally ha scritto: > Is it possible to access a C-API with gambas ? > > I wonder if it is possible to build a front-end for the > comedi data aquasition API : > http://www.comedi.org/ > with Gambas. > Its necessary to access kernel-driver-modules. > > Yes, it is possible [access a C API]. See "External function declaration" in the language reference. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From joe1962 at ...626... Tue Jan 27 22:01:47 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 27 Jan 2009 16:01:47 -0500 Subject: [Gambas-user] ServerSocket application without Forms Message-ID: <6c208f950901271301s4292b4b3m4426d37df6237d74@...627...> Is it possible to use ServerSocket in an applciation without Forms? I have been placed all the code in the Main Module and though I get a connection, the _Connection event does not seem to fire. Regards, Joe1962 From ronstk at ...239... Wed Jan 28 01:22:07 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 28 Jan 2009 01:22:07 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901271809.30061.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901271641.44918.ronstk@...239...> <200901271809.30061.gambas@...1...> Message-ID: <200901280122.07843.ronstk@...239...> > > There was a syntax error in gb.db.mysql I just fixed, but it is not related to > your problems. > > The gb.desktop.gnome missing library (gnome-keyring-1) does not prevent > gb.desktop to be compiled. It will just prevent gb.desktop to store password > in the Gnome keyring. > > So I suggest that you delete your Gambas directory, do a checkout from start, > and compile everything again! > > Regards, > I have it done before I send the last results. Removed all in /usr/local, everywhere in my home and in the /root dir and /usr/share, the /tmp/gambas### Got the svn as describe on the webpage at http://gambasdoc.org/help/howto/svn?view cd /home/ron/src mkdir gambas3 gambas3/trunk cd gambas3 svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ ./reconf-all (btw most of it inside is disabled) ./configure -C make make install I do heve no clue what is wrong and every time the same situation found. The usage of /root/.local, the make components written in gambas and part of the examples using those components. This due fail of making the *.info and *.list in /root/.local If all dependencies for 2.10 are OK and after 'make install' works then there must be going something wrong with svn or there must be something in the enviorment(?) setting missing. Distro KUbuntu 8.04 Subversion command-line client, version 1.5.1. ron at ...1311...:~/src/gambas3$ svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk Restored 'trunk/gb.gtk/src/gb.gtk/.info' Restored 'trunk/gb.gtk/src/gb.gtk/.list' Restored 'trunk/comp/src/gb.form.mdi/.list' Restored 'trunk/comp/src/gb.form.mdi/.info' Restored 'trunk/comp/src/gb.report/.list' Restored 'trunk/comp/src/gb.report/.info' Restored 'trunk/comp/src/gb.chart/.list' Restored 'trunk/comp/src/gb.chart/.info' Restored 'trunk/comp/src/gb.form/.list' Restored 'trunk/comp/src/gb.form/.info' Restored 'trunk/comp/src/gb.db.form/.list' Restored 'trunk/comp/src/gb.db.form/.info' Restored 'trunk/gb.qt/src/gb.qt/.info' Restored 'trunk/gb.qt/src/gb.qt/.list' U trunk/gb.image.io/src/gb.image.io.component U trunk/gb.image.io/src/c_image.c U trunk/gb.cairo/src/c_cairo.c U trunk/gb.sdl/src/main.cpp U trunk/gb.sdl/src/Cimage.cpp U trunk/gb.sdl/src/Ccolor.h U trunk/gb.sdl/src/Ccolor.cpp U trunk/gb.gtk/src/gtools.h U trunk/gb.gtk/src/gtools.cpp U trunk/gb.gtk/src/CColor.cpp U trunk/gb.gtk/src/gpicture.cpp U trunk/gb.gtk/src/gpicture.h U trunk/gb.gtk/src/gcolor.h U trunk/gb.gtk/src/main.cpp U trunk/gb.gtk/src/CImage.cpp U trunk/gb.gtk/src/CColor.h U trunk/gb.db.mysql/src/gb.db.mysql/.project U trunk/gb.db.mysql/src/gb.db.mysql/modMain.module U trunk/main/gbc/gbi.c U trunk/main/lib/image/gb.image.h U trunk/main/lib/image/image.c U trunk/main/lib/image/main.c U trunk/main/lib/image/image.h U trunk/main/lib/image/Makefile.am U trunk/gb.v4l/src/gb.v4l.component U trunk/gb.qt4/src/CImage.cpp U trunk/gb.qt4/src/CColor.h U trunk/gb.qt/src/CColor.cpp U trunk/gb.qt/src/main.cpp U trunk/gb.qt/src/CImage.cpp U trunk/gb.qt/src/CColor.h Checked out revision 1825. Looks to me the restored parts are _the_ parts where problems are. Go try again Best regards, Ron_1st -- From gambas at ...1... Wed Jan 28 01:26:38 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 01:26:38 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901280122.07843.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901271809.30061.gambas@...1...> <200901280122.07843.ronstk@...239...> Message-ID: <200901280126.38886.gambas@...1...> On mercredi 28 janvier 2009, Ron_1st wrote: > > There was a syntax error in gb.db.mysql I just fixed, but it is not > > related to your problems. > > > > The gb.desktop.gnome missing library (gnome-keyring-1) does not prevent > > gb.desktop to be compiled. It will just prevent gb.desktop to store > > password in the Gnome keyring. > > > > So I suggest that you delete your Gambas directory, do a checkout from > > start, and compile everything again! > > > > Regards, > > I have it done before I send the last results. > Removed all in /usr/local, everywhere in my home and in the /root dir > and /usr/share, the /tmp/gambas### Did you remove the symbolic links in /usr/bin ? -- Benoit Minisini From ronstk at ...239... Wed Jan 28 01:58:57 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 28 Jan 2009 01:58:57 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901280126.38886.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901280122.07843.ronstk@...239...> <200901280126.38886.gambas@...1...> Message-ID: <200901280158.57686.ronstk@...239...> On Wednesday 28 January 2009, Benoit Minisini wrote: > On mercredi 28 janvier 2009, Ron_1st wrote: > > > There was a syntax error in gb.db.mysql I just fixed, but it is not > > > related to your problems. > > > > > > The gb.desktop.gnome missing library (gnome-keyring-1) does not prevent > > > gb.desktop to be compiled. It will just prevent gb.desktop to store > > > password in the Gnome keyring. > > > > > > So I suggest that you delete your Gambas directory, do a checkout from > > > start, and compile everything again! > > > > > > Regards, > > > > I have it done before I send the last results. > > Removed all in /usr/local, everywhere in my home and in the /root dir > > and /usr/share, the /tmp/gambas### > > Did you remove the symbolic links in /usr/bin ? > No sybolic links in /usr/bin By configure no --prefix result in /usr/local here so all is in /usr/local/bin also the symlinks Best regards, Ron_1st -- From ronstk at ...239... Wed Jan 28 04:36:54 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 28 Jan 2009 04:36:54 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901280158.57686.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901280126.38886.gambas@...1...> <200901280158.57686.ronstk@...239...> Message-ID: <200901280436.54233.ronstk@...239...> svn 1825 then mv -f ".deps/CImageStat.Tpo" ".deps/CImageStat.Plo"; else rm -f ".deps/CImageStat.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CImageStat.lo -MD -MP -MF .deps/CImageStat.Tpo -c CImageStat.c -fPIC -DPIC -o .libs/CImageStat.o In file included from CImageStat.c:27: image_stat.h:77:7: warning: no newline at end of file make[5]: *** No rule to make target `c_color.lo', needed by `gb.image.la'. Stop. make[5]: Leaving directory `/home/ron/src/gambas3/trunk/main/lib/image' make[4]: *** [all-recursive] Error 1 Best regards, Ron_1st -- From leo_senpao at ...1541... Wed Jan 28 07:46:10 2009 From: leo_senpao at ...1541... (Leo Sendra) Date: Wed, 28 Jan 2009 14:46:10 +0800 (SGT) Subject: [Gambas-user] Ask about gambas runtime Message-ID: <787862.84435.qm@...2060...> Hi all... I have a gambas program. I develop it using Gambas2.7 on Ubuntu 8.04. I make an installation package, so the program can be install in other Ubuntu 8.04 computer. I have made an installation package (deb package) and I install it in other Ubuntu computer. After install some lib and gambas-runtime and etc... I have an error... The error message is: "This Application has raised an unexpected error and must abort. [-1] No keyboard event data." I am really confused about this problem. This program can run well in my computer (development computer). But, it can't run in deployment computer. Is there a problem with gambas-runtime version or other libraries??? Or is there unknown problem?? How to handle it?? Please tell me the solution immediately... Thank you... ___________________________________________________________________________ Dapatkan nama yang Anda sukai! Sekarang Anda dapat memiliki email di @ymail.com dan @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/id/ From ronstk at ...239... Wed Jan 28 12:48:31 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 28 Jan 2009 12:48:31 +0100 Subject: [Gambas-user] Ask about gambas runtime In-Reply-To: <787862.84435.qm@...2060...> References: <787862.84435.qm@...2060...> Message-ID: <200901281248.32051.ronstk@...239...> On Wednesday 28 January 2009, Leo Sendra wrote: > Hi all... > > I have a gambas program. I develop it using Gambas2.7 on Ubuntu 8.04. > I make an installation package, so the program can be install in other Ubuntu 8.04 computer. > I have made an installation package (deb package) and I install it in other Ubuntu computer. > After install some lib and gambas-runtime and etc... > I have an error... > > The error message is: > "This Application has raised an unexpected error and must abort. [-1] No keyboard event data." > > I am really confused about this problem. This program can run well in my computer (development computer). > But, it can't run in deployment computer. Is there a problem with gambas-runtime version or other libraries??? > Or is there unknown problem?? How to handle it?? > > Please tell me the solution immediately... > > Thank you... > Hi Leo, The solution immediately... The only good one is to install on the deployment computer the gambas development package and your program source. Including the develop packages for libraries used in your application. Compile your program. Then you can deinstall those develop packages again if you want. Exact to tell what in your case is wrong is difficult. You have on yor box something different then the deployment box. This can be different keyboard (usb versus ps2) and/or installed drivers. Also the difference Gnome updates can have influence. May be he is using sim (input method) and you don't. Anyway your error message is not suuficient ATM. Some more error messages you can find in (may be and not must) .xsession-errors in the user home directory /var/log/messages /var/log/dmesg Don't forget there can be a big difference in the real ubuntu version on both computers depite the install base is the same. This by later installed programs on your or the other computer. Also difference aplly of updates counts. From wspinto at ...1405... Wed Jan 28 14:33:39 2009 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Wed, 28 Jan 2009 11:33:39 -0200 Subject: [Gambas-user] Make return: Without rules to process target `c_color.lo`, necessary for `gb.image.la`. Stop In-Reply-To: References: Message-ID: <1233149619.49805eb3b49a4@...1406...> Hi everyone!!! My make return erro and stop. Any idea??? Best Reguards, CImageStat.lo CImageStat.c gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CImageStat.lo -MD -MP -MF .deps/CImageStat.Tpo -c CImageStat.c -fPIC -DPIC -o .libs/CImageStat.o mv -f .deps/CImageStat.Tpo .deps/CImageStat.Plo make[5]: *** Sem regra para processar o alvo `c_color.lo', necess?rio por `gb.image.la'. Pare Tradution: Without rules to process target `c_color.lo`, necessary for `gb.image.la`. Stop . make[5]: Saindo do diret?rio `/home/knoppix/trunk/main/lib/image' make[4]: ** [all-recursive] Erro 1 make[4]: Saindo do diret?rio `/home/knoppix/trunk/main/lib' make[3]: ** [all-recursive] Erro 1 make[3]: Saindo do diret?rio `/home/knoppix/trunk/main' make[2]: ** [all] Erro 2 make[2]: Saindo do diret?rio `/home/knoppix/trunk/main' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diret?rio `/home/knoppix/trunk' make: ** [all] Erro 2 ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From ronstk at ...239... Wed Jan 28 15:50:10 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 28 Jan 2009 15:50:10 +0100 Subject: [Gambas-user] Make return: Without rules to process target `c_color.lo`, necessary for `gb.image.la`. Stop In-Reply-To: <1233149619.49805eb3b49a4@...1406...> References: <1233149619.49805eb3b49a4@...1406...> Message-ID: <200901281550.10346.ronstk@...239...> On Wednesday 28 January 2009, Wellington de Souza Pinto wrote: > Hi everyone!!! > > My make return erro and stop. Any idea??? > > Best Reguards, > > > CImageStat.lo CImageStat.c > gcc -DHAVE_CONFIG_H -I. -I../.. -I../../share -I../../libltdl -pipe -Wall > -Wno-unused-value -fsigned-char -fvisibility=hidden -g -Os -MT CImageStat.lo > -MD -MP -MF .deps/CImageStat.Tpo -c CImageStat.c -fPIC -DPIC -o > .libs/CImageStat.o > mv -f .deps/CImageStat.Tpo .deps/CImageStat.Plo > > make[5]: *** Sem regra para processar o alvo `c_color.lo', necess?rio por > `gb.image.la'. Pare > Tradution: Without rules to process target `c_color.lo`, necessary for > `gb.image.la`. Stop > . > make[5]: Saindo do diret?rio `/home/knoppix/trunk/main/lib/image' > make[4]: ** [all-recursive] Erro 1 > make[4]: Saindo do diret?rio `/home/knoppix/trunk/main/lib' > make[3]: ** [all-recursive] Erro 1 > make[3]: Saindo do diret?rio `/home/knoppix/trunk/main' > make[2]: ** [all] Erro 2 > make[2]: Saindo do diret?rio `/home/knoppix/trunk/main' > make[1]: ** [all-recursive] Erro 1 > make[1]: Saindo do diret?rio `/home/knoppix/trunk' > make: ** [all] Erro 2 > > ___________________________________________________________________________________ > Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem > tarifas muito baratas esperando por voc?. Aproveite! > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Yea, I have this too. I have already report the problem in the tread I have. There are two small fixes to do, one I could do to fix but I have no idea about the rule needed for this one. Benoit has changed somthing with the lib/image code. The color conversion resently expanded is now part of this code. The nessesary information to compile this is not fully in the make file. this is the case ATM for svn1825 and up as far I know Its also the risk using svn as source. You never can be sure the source download/update is fully functional. Special when there are several points that must be updated in the source you can do your download/upgrade between two releated commits to svn. Mostly this require a retry in let say 1 hour but people need bread on the table and/or sleep. Then it the time before retry can be 24 hours. Otherwise the developer does not know the problem of a missing correction and will be alerted by us complaining it does not work. So Benoit leave your bed/theater/work and do us a favor :=) :=) :=) Hope the theatre you had in the weekend was nice. I simply wait till next rev number and try again. :) Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Wed Jan 28 18:12:49 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 18:12:49 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901280436.54233.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901280158.57686.ronstk@...239...> <200901280436.54233.ronstk@...239...> Message-ID: <200901281812.49227.gambas@...1...> On mercredi 28 janvier 2009, Ron_1st wrote: > svn 1825 > > then mv -f ".deps/CImageStat.Tpo" ".deps/CImageStat.Plo"; else rm > -f ".deps/CImageStat.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../.. > -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char > -fvisibility=hidden -g -Os -MT CImageStat.lo -MD -MP -MF > .deps/CImageStat.Tpo -c CImageStat.c -fPIC -DPIC -o .libs/CImageStat.o In > file included from CImageStat.c:27: > image_stat.h:77:7: warning: no newline at end of file > make[5]: *** No rule to make target `c_color.lo', needed by `gb.image.la'. > Stop. make[5]: Leaving directory > `/home/ron/src/gambas3/trunk/main/lib/image' make[4]: *** [all-recursive] > Error 1 > > > > Best regards, > > Ron_1st Update to the latest revision! -- Benoit Minisini From gambas at ...1... Wed Jan 28 18:13:30 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 18:13:30 +0100 Subject: [Gambas-user] ServerSocket application without Forms In-Reply-To: <6c208f950901271301s4292b4b3m4426d37df6237d74@...627...> References: <6c208f950901271301s4292b4b3m4426d37df6237d74@...627...> Message-ID: <200901281813.30112.gambas@...1...> On mardi 27 janvier 2009, Jose J. Rodriguez wrote: > Is it possible to use ServerSocket in an applciation without Forms? I > have been placed all the code in the Main Module and though I get a > connection, the _Connection event does not seem to fire. > > Regards, > Joe1962 > Of course. You just must not forget to specify the event name when instanciating the object: MyServerSocket = NEW ServerSocket AS "ServerSocketEventName" Regards, -- Benoit Minisini From mohareve at ...626... Wed Jan 28 19:13:29 2009 From: mohareve at ...626... (mohareve at ...626...) Date: Wed, 28 Jan 2009 10:13:29 -0800 Subject: [Gambas-user] Slow GridVIew creation Message-ID: <20420294.2672541233166409573.JavaMail.nabble@...2061...> This is an excerpt from my program: visszhang = DBconX.Exec(quert) FOR EACH visszhang nev.Add(visszhang!"FName") ut.Add(visszhang!"FPath") nagy.Add(Round(visszhang!"FSize" / 1048576, -2)) mikor.Add(visszhang!"FChanged") kotet.Add(point) NEXT dis = nev.Count gV.Rows.Count = dis FOR i = 0 TO dis - 1 gV[i, 0].Text = nev[i] gV[i, 1].Text = kotet[i] gV[i, 2].Text = ut[i] gV[i, 3].Text = nagy[i] gV[i, 4].Text = mikor[i] NEXT The problem is: I'm handling a database, and during the querries I need to operate with tens of thousands of five-columned rows. It is desperately slow creation. Is it possible to change the algorithm and make it faster? Currently I'm filling the rows from 5 previously created arrays. I need some help, thanks! From ronstk at ...239... Wed Jan 28 20:09:50 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 28 Jan 2009 20:09:50 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901281812.49227.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901280436.54233.ronstk@...239...> <200901281812.49227.gambas@...1...> Message-ID: <200901282009.50865.ronstk@...239...> On Wednesday 28 January 2009, Benoit Minisini wrote: > On mercredi 28 janvier 2009, Ron_1st wrote: > > svn 1825 > > > > then mv -f ".deps/CImageStat.Tpo" ".deps/CImageStat.Plo"; else rm > > -f ".deps/CImageStat.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. -I. -I../.. > > -I../../share -I../../libltdl -pipe -Wall -Wno-unused-value -fsigned-char > > -fvisibility=hidden -g -Os -MT CImageStat.lo -MD -MP -MF > > .deps/CImageStat.Tpo -c CImageStat.c -fPIC -DPIC -o .libs/CImageStat.o In > > file included from CImageStat.c:27: > > image_stat.h:77:7: warning: no newline at end of file > > make[5]: *** No rule to make target `c_color.lo', needed by `gb.image.la'. > > Stop. make[5]: Leaving directory > > `/home/ron/src/gambas3/trunk/main/lib/image' make[4]: *** [all-recursive] > > Error 1 > > > > > > > > Best regards, > > > > Ron_1st > > Update to the latest revision! > OK done. reconf, configure done OK make had error in gbv4l2.c, corrected and make done OK Now the make install. Crossing my fingers. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From mohareve at ...626... Wed Jan 28 21:36:20 2009 From: mohareve at ...626... (M. Cs.) Date: Wed, 28 Jan 2009 21:36:20 +0100 Subject: [Gambas-user] Slow Gridview creation Message-ID: Dear Benoit, I would like to know whether it is possible to make GridView creation and filling process faster. I'm using databases for storage, then I'm doing the querries, which are giving tens of thousand results, or tens of thousand rows with five columns each. First, I put the results into five separated arrays, and afterwards I'm using them with a FOR...NEXT cycle. This is the code I'm using: visszhang = DBconX.Exec(quert) FOR EACH visszhang nev.Add(visszhang!"FName") ut.Add(visszhang!"FPath") nagy.Add(Round(visszhang!"FSize" / 1048576, -2)) mikor.Add(visszhang!"FChanged") kotet.Add(point) NEXT dis = nev.Count gV.Rows.Count = dis FOR i = 0 TO dis - 1 gV[i, 0].Text = nev[i] gV[i, 1].Text = kotet[i] gV[i, 2].Text = ut[i] gV[i, 3].Text = nagy[i] gV[i, 4].Text = mikor[i] NEXT But like this it takes eternity to create a table of 17.000 rows. There is a remark in Gambas documentation: * You should use the last methodif you have thousands of rows to display. *What does it exactly mean? Can you recommend me a faster algorithm? Thanks! From gambas at ...1... Wed Jan 28 21:55:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 21:55:37 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: References: Message-ID: <200901282155.37660.gambas@...1...> On mercredi 28 janvier 2009, M. Cs. wrote: > Dear Benoit, > I would like to know whether it is possible to make GridView creation and > filling process faster. I'm using databases for storage, then I'm doing the > querries, which are giving tens of thousand results, or tens of thousand > rows with five columns each. First, I put the results into five separated > arrays, and afterwards I'm using them with a FOR...NEXT cycle. This is the > code I'm using: > > visszhang = DBconX.Exec(quert) > FOR EACH visszhang > nev.Add(visszhang!"FName") > ut.Add(visszhang!"FPath") > nagy.Add(Round(visszhang!"FSize" / 1048576, -2)) > mikor.Add(visszhang!"FChanged") > kotet.Add(point) > NEXT > dis = nev.Count > gV.Rows.Count = dis > FOR i = 0 TO dis - 1 > gV[i, 0].Text = nev[i] > gV[i, 1].Text = kotet[i] > gV[i, 2].Text = ut[i] > gV[i, 3].Text = nagy[i] > gV[i, 4].Text = mikor[i] > NEXT > > But like this it takes eternity to create a table of 17.000 rows. There is > a remark in Gambas documentation: > * You should use the last > methodif you have > thousands of rows to display. > *What does it exactly mean? Can you recommend me a faster algorithm? > Thanks! You must do exactly what is written in the documentation: instead of setting the data explicitely, you must implement the Data event handler. In this event handler, you will receive the Row and Column of the cell to fill, and in return you set the properties of the GridView.Data property to define the cell contents. PUBLIC SUB MyGridView_Data(Row AS Integer, Column AS Integer) MyGridView.Data.Text = Row & " : " & Column END -- Benoit Minisini From ronstk at ...239... Wed Jan 28 22:02:58 2009 From: ronstk at ...239... (Ron_1st) Date: Wed, 28 Jan 2009 22:02:58 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901282009.50865.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901281812.49227.gambas@...1...> <200901282009.50865.ronstk@...239...> Message-ID: <200901282202.58758.ronstk@...239...> On Wednesday 28 January 2009, Ron_1st wrote: > OK done. > > reconf, configure done OK > make had error in gbv4l2.c, corrected and make done OK > > Now the make install. > Crossing my fingers. > > > > > Best regards, > > Ron_1st > Still no luck THe ****----**** are insrt by me make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.gtk.svg' ****----**** Making install in gb.desktop make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' Making install in src make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' Making install in . make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' make[4]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' make[4]: Nothing to be done for `install-exec-am'. test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 'gb.desktop.component' '/usr/local/lib/gambas3/gb.desktop.component' test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /usr/bin/install -c -m 644 'gb.desktop.component' '/usr/local/lib/gambas3/gb.desktop.component' test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /bin/bash ../libtool --mode=install /usr/bin/install -c 'gb.desktop.la' '/usr/local/lib/gambas3/gb.desktop.la' /usr/bin/install -c .libs/gb.desktop.so.0.0.0 /usr/local/lib/gambas3/gb.desktop.so.0.0.0 (cd /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so.0 || { rm -f gb.desktop.so.0 && ln -s gb.desktop.so.0.0.0 gb.desktop.so.0; }; }) (cd /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so || { rm -f gb.desktop.so && ln -s gb.desktop.so.0.0.0 gb.desktop.so; }; }) /usr/bin/install -c .libs/gb.desktop.lai /usr/local/lib/gambas3/gb.desktop.la PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/gambas3 ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib/gambas3 If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make install-data-hook make[5]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' ****----**** in /usr/local/lib/gambas3/ gb.desktop.component .gambas .la .so .so.0 .so.0.0.0 total 6 files in /usr/local/share/gambas3 gb.desktop.list(60) and .info(1824 bytes) ****----**** Compiling the gb.desktop project... gb.desktop Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list /home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:14: Unknown identifier: Image Creating the information files for gb.desktop component... gb.desktop make[5]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' make[4]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' ****----**** Making install in gb.qt4 make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.qt4' ---8<--- Making install in comp make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' make[2]: Entering directory `/home/ron/src/gambas3/trunk/comp' Running the informer again because of dependencies between information files gb gb.compress gb.crypt gb.db gb.db.mysql ---8<---- gb.xml gb.xml.rpc gb.xml.xslt Installing the components... Compiling gb.settings... OK Installing gb.settings... Compiling gb.info... OK Installing gb.info... Compiling gb.form... ****---**** <---- here the gb.form compile Installing gb.form... Compiling gb.form.dialog... Installing gb.form.dialog... Compiling gb.form.mdi... Installing gb.form.mdi... Compiling gb.db.form... Installing gb.db.form... Compiling gb.web... OK Installing gb.web... Compiling gb.report... How can the gb.desktop component do: Cannot read component list file: /root/.local/share/gambas3/info/gb.form.list when it is not compiled, or do I miss something??? Looks to me here the --prefix value is lost but why changed to /root/.local ?? gb.form.list is not in /usr/local/share/gambas3/info/ only gb.form.dialog.list and .info /root/.local/share/gambas3 does not exist. I made a copy of local trunk befor the make install After make install in gb.desktop/src/gb.desktop there is gb.desktop.gambas and .startup add .info and .list are changed from .info there is a big part deleted after make install ================= .info ============ DesktopWatcher_Window m (Window)i(X)i(Y)i(Width)i(Height)i <--- last line after make install #DesktopWindow <---- and more below before make install C X =================================== file:///home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/.list Desktop DesktopFile DesktopWatcher file:///home/ron/src/gambas3/trunk_1827_bak/gb.desktop/src/gb.desktop/.list Desktop DesktopFile DesktopWatcher DesktopWindow _DesktopPasswords _DesktopScreenSaver _DesktopVirtual _DesktopWindows This could be OK, I don't know but only report the fact. .list and .info are blown away gb.chart gb.form gb.db.form gb.form.mdi gb.report /home/ron/src/gambas3/trunk/gb.gtk/src/gb.gtk/.info /home/ron/src/gambas3/trunk/gb.qt/src/gb.qt/.info .info and .list keep same gb.form.dialog gb.info gb.settings gb.web /home/ron/src/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/.info /home/ron/src/gambas3/trunk/gb.xml/src/rpc/gb.xml.rpc/.info So for some components written in gambas both files are deleted after make install For others the stay the same except gb,desktop the are changed. I do not see the logic of this behaviour. Is there anything to change a Makefile.in or Makefile.am somewhere and force the /usr/local for the .info and .list files??? Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? -------------- next part -------------- A non-text attachment was scrubbed... Name: myconf2.log.zip Type: application/x-zip Size: 6097 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mymake3.log.zip Type: application/x-zip Size: 4626 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: myinstall2.log.zip Type: application/x-zip Size: 7093 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mymake2.log.zip Type: application/x-zip Size: 27137 bytes Desc: not available URL: From gambas at ...1... Wed Jan 28 23:50:48 2009 From: gambas at ...1... (Benoit Minisini) Date: Wed, 28 Jan 2009 23:50:48 +0100 Subject: [Gambas-user] Release of Gambas 2.11 Message-ID: <200901282350.48288.gambas@...1...> Hi, Here is a new bug fix release for Gambas 2. This release fixes the following bugs: * The Balloon is displayed properly again. * The autotools packager now correctly handle projects having spaces in their directory. * The last column of a GridView is correctly stretched when its width is explicitely set now. * Serial port devices are now watched for reading, not for writing, so that the callback are not called permanently. The development environmental project property dialog now lists components stored in the user home directory separately. And here is the full ChangeLog: ------------------------------------------------------------------------------- [DEVELOPMENT ENVIRONMENT] * BUG: A warning is displayed now when a component project has no exported class. * BUG: Instead of displaying an error, an unreadable *.component file now just displays a warning. * BUG: Print warnings on the standard error output now. * BUG: The find balloon message is always displayed in the accurate field now. * BUG: The packager now handle spaces in project directory path correctly when creating an autotool package. * BUG: A badly named environmental variable does not freeze the IDE anymore. * NEW: In the project property dialog, split the component list between standard components and user components. [INTERPRETER] * BUG: The _compare special method now is not called anymore if one of the compared object references is null. [GB.DEBUG] * NEW: Do not block anymore when opening the debug fifo for writing. Try a few times during 0.1 second. [GB.DRAW] * BUG: Correctly initialize color properties of the Draw class at Draw.Begin(). [GB.FORM] * BUG: Workaround the ballon corner drawing bugs. [GB.GTK] * BUG: Image.Save() and Picture.Save() now understand the "~" shortcut in path names. * BUG: Fix the initialization of editable combo-box when its List property is set. * BUG: Remove a static variable not used anymore. [GB.NET] * BUG: Serial port devices are now watched for reading, not for writing. So the callback will not be called permanently. [GB.QT] * BUG: Do not loop indefinitely when arranging the contents of a ScrollView. * BUG: The last GridView column should be correctly stretched when its width is explicitely set now. ------------------------------------------------------------------------------- Enjoy it! -- Benoit Minisini From ron at ...1740... Wed Jan 28 23:33:09 2009 From: ron at ...1740... (Ron) Date: Wed, 28 Jan 2009 23:33:09 +0100 Subject: [Gambas-user] Bug: Gambas Database Manager Message-ID: <4980DD25.50908@...1740...> Small one. Right clicking on a table in the treeview and selecting Rename doesn't pop up the Rename Table window. Works from toolbar icon though. Gambas 2.11, qb.qt, MySQL Regards, Ron_2nd. From gambas at ...1... Thu Jan 29 00:05:34 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Jan 2009 00:05:34 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901282202.58758.ronstk@...239...> References: <200901252113.56080.ronstk@...239...> <200901282009.50865.ronstk@...239...> <200901282202.58758.ronstk@...239...> Message-ID: <200901290005.34381.gambas@...1...> On mercredi 28 janvier 2009, Ron_1st wrote: > On Wednesday 28 January 2009, Ron_1st wrote: > > OK done. > > > > reconf, configure done OK > > make had error in gbv4l2.c, corrected and make done OK > > > > Now the make install. > > Crossing my fingers. > > > > > > > > > > Best regards, > > > > Ron_1st > > Still no luck > > THe ****----**** are insrt by me > > make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.gtk.svg' > > ****----**** > > Making install in gb.desktop > make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > Making install in src > make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > Making install in . > make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > make[4]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > make[4]: Nothing to be done for `install-exec-am'. > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > /usr/bin/install -c -m 644 'gb.desktop.component' > '/usr/local/lib/gambas3/gb.desktop.component' test -z > "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > /usr/bin/install -c -m 644 'gb.desktop.component' > '/usr/local/lib/gambas3/gb.desktop.component' test -z > "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /bin/bash > ../libtool --mode=install /usr/bin/install -c 'gb.desktop.la' > '/usr/local/lib/gambas3/gb.desktop.la' /usr/bin/install -c > .libs/gb.desktop.so.0.0.0 /usr/local/lib/gambas3/gb.desktop.so.0.0.0 (cd > /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so.0 || > { rm -f gb.desktop.so.0 && ln -s gb.desktop.so.0.0.0 gb.desktop.so.0; }; }) > (cd /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so > || { rm -f gb.desktop.so && ln -s gb.desktop.so.0.0.0 gb.desktop.so; }; }) > /usr/bin/install -c .libs/gb.desktop.lai > /usr/local/lib/gambas3/gb.desktop.la PATH="$PATH:/sbin" ldconfig -n > /usr/local/lib/gambas3 > ---------------------------------------------------------------------- > Libraries have been installed in: > /usr/local/lib/gambas3 > > If you ever happen to want to link against installed libraries > in a given directory, LIBDIR, you must either use libtool, and > specify the full pathname of the library, or use the `-LLIBDIR' > flag during linking and do at least one of the following: > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > during execution > - add LIBDIR to the `LD_RUN_PATH' environment variable > during linking > - use the `-Wl,--rpath -Wl,LIBDIR' linker flag > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > make install-data-hook > make[5]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > ****----**** > in /usr/local/lib/gambas3/ > gb.desktop.component .gambas .la .so .so.0 .so.0.0.0 > total 6 files > in /usr/local/share/gambas3 gb.desktop.list(60) and .info(1824 bytes) > ****----**** > Compiling the gb.desktop project... > gb.desktop > Cannot read component list file: > /root/.local/share/gambas3/info/gb.form.list > /home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:1 >4: Unknown identifier: Image > > Creating the information files for gb.desktop component... > gb.desktop > > make[5]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > make[4]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > make[3]: Nothing to be done for `install-exec-am'. > make[3]: Nothing to be done for `install-data-am'. > make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > > ****----**** > > Making install in gb.qt4 > make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.qt4' > > ---8<--- > Making install in comp > make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' > make[2]: Entering directory `/home/ron/src/gambas3/trunk/comp' > Running the informer again because of dependencies between information > files gb > gb.compress > gb.crypt > gb.db > gb.db.mysql > ---8<---- > gb.xml > gb.xml.rpc > gb.xml.xslt > Installing the components... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.info... > OK > Installing gb.info... > Compiling gb.form... ****---**** <---- here the gb.form compile > Installing gb.form... > Compiling gb.form.dialog... > Installing gb.form.dialog... > Compiling gb.form.mdi... > Installing gb.form.mdi... > Compiling gb.db.form... > Installing gb.db.form... > Compiling gb.web... > OK > Installing gb.web... > Compiling gb.report... > > > How can the gb.desktop component do: > Cannot read component list file: > /root/.local/share/gambas3/info/gb.form.list when it is not compiled, or do > I miss something??? > Looks to me here the --prefix value is lost but why changed to /root/.local > ?? > > > gb.form.list is not in /usr/local/share/gambas3/info/ only > gb.form.dialog.list and .info > > /root/.local/share/gambas3 does not exist. > > > > > I made a copy of local trunk befor the make install > After make install in gb.desktop/src/gb.desktop there is gb.desktop.gambas > and .startup add .info and .list are changed > from .info there is a big part deleted after make install > > ================= .info ============ > DesktopWatcher_Window > m > > (Window)i(X)i(Y)i(Width)i(Height)i <--- last line after make install > #DesktopWindow <---- and more below before make install > > C > X > =================================== > > > file:///home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/.list > Desktop > DesktopFile > DesktopWatcher > > file:///home/ron/src/gambas3/trunk_1827_bak/gb.desktop/src/gb.desktop/.list > Desktop > DesktopFile > DesktopWatcher > DesktopWindow > _DesktopPasswords > _DesktopScreenSaver > _DesktopVirtual > _DesktopWindows > > This could be OK, I don't know but only report the fact. > > > .list and .info are blown away > gb.chart > gb.form > gb.db.form > gb.form.mdi > gb.report > /home/ron/src/gambas3/trunk/gb.gtk/src/gb.gtk/.info > /home/ron/src/gambas3/trunk/gb.qt/src/gb.qt/.info > > > .info and .list keep same > gb.form.dialog > gb.info > gb.settings > gb.web > /home/ron/src/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/.info > /home/ron/src/gambas3/trunk/gb.xml/src/rpc/gb.xml.rpc/.info > > So for some components written in gambas both files are deleted after make > install For others the stay the same except gb,desktop the are changed. > > I do not see the logic of this behaviour. > > Is there anything to change a Makefile.in or Makefile.am somewhere and > force the /usr/local for the .info and .list files??? > > > > Best regards, > > Ron_1st You were right about gb.desktop, there were obsolete information in the project *.component file. Can you try the revision #1830? -- Benoit Minisini From rterry at ...1946... Thu Jan 29 01:02:20 2009 From: rterry at ...1946... (richard terry) Date: Thu, 29 Jan 2009 11:02:20 +1100 Subject: [Gambas-user] What happened to the back button in IDE Message-ID: <200901291102.20422.rterry@...1946...> noticed its been missing for quite a while, I used to find it quite handy to navigate around the IDE. Regards Richard From gambas at ...1... Thu Jan 29 01:09:24 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Jan 2009 01:09:24 +0100 Subject: [Gambas-user] What happened to the back button in IDE In-Reply-To: <200901291102.20422.rterry@...1946...> References: <200901291102.20422.rterry@...1946...> Message-ID: <200901290109.24843.gambas@...1...> On jeudi 29 janvier 2009, richard terry wrote: > noticed its been missing for quite a while, I used to find it quite handy > to navigate around the IDE. > > Regards > > Richard > Click on the toolbar handle to configure the toolbar according to your needs. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Thu Jan 29 01:48:22 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 28 Jan 2009 19:48:22 -0500 Subject: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages Message-ID: <200901281948.22810.sourceforge-raindog2@...94...> In both the official 2.0.0 and gnulinex.org 2.8.2 packages for Ubuntu Hardy, the gambas2-gb-db package requires gambas2-gb-form and gambas2-gb-qt-ext, which requires X to be installed among many other things. So it's not possible to install Gambas with database support on a headless Ubuntu web server (like the replacement for the old one currently running gambasdoc.org.) Also, though I don't know if this is normal, gambas2-gb-gui requires both gambas2-gb-qt and gambas2-gb-gtk, which seems like it defeats the whole purpose of the gb.gui component (I would think gb.gtk and gb.qt would be alternatives rather than both required.) Finally, gambas2-runtime itself requires xdg-utils, which should only be necessary for gambas2-gb-desktop if I'm not mistaken. I don't have an 8.04 workstation around anymore to build on; all my Ubuntu machines are 8.10 at present except for that one server (which has to be 8.04 due to LTS.) I attached what I think is a fixed debian/control file. Could someone with access rebuild the Hardy 2.8.2 packages with it? I'll try to get Hardy installed on a workstation so I can rebuild them if no one else has time. Thanks Rob -------------- next part -------------- Source: gambas2 Section: devel Priority: optional Homepage: http://gambas.sourceforge.net Maintainer: Daniel Campos Build-Depends: debhelper (>> 4.2.0), libpq-dev, libmysqlclient15-dev, libbz2-dev, libqt4-dev, libcurl3-dev, libsdl-mixer1.2-dev, libsqlite0-dev, libxml2-dev, libxslt1-dev, kdelibs4-dev, libssl-dev, zlib1g-dev, unixodbc-dev, libsqlite3-dev, libgtk2.0-dev, libxt-dev, pkg-config, mesa-common-dev, libsdl-sound1.2-dev, libsdl-image1.2-dev, libsdl-gfx1.2-dev, libsdl-ttf2.0-dev, libpcre3-dev, libsdl1.2-dev, libjpeg62-dev, libpng12-dev, libpoppler-dev (>= 0.5), firebird2.0-dev, librsvg2-dev, bzip2, dpatch, gettext, libxtst-dev, libffi-dev Standards-Version: 3.8.0 Package: gambas2 Architecture: all Section: devel Depends: gambas2-doc (>= ${source:Version}), gambas2-gb-chart (>= ${source:Version}), gambas2-gb-compress-bzlib2 (>= ${binary:Version}), gambas2-gb-compress-zlib (>= ${binary:Version}), gambas2-gb-crypt (>= ${binary:Version}), gambas2-gb-db-firebird (>= ${binary:Version}), gambas2-gb-db-form (>= ${source:Version}), gambas2-gb-db-mysql (>= ${binary:Version}), gambas2-gb-db-postgresql (>= ${binary:Version}), gambas2-gb-db-odbc (>= ${binary:Version}), gambas2-gb-db-sqlite (>= ${binary:Version}) | gambas2-gb-db-sqlite2 (>= ${binary:Version}), gambas2-gb-desktop (>= ${binary:Version}), gambas2-gb-form (>= ${source:Version}), gambas2-gb-form-dialog (>= ${source:Version}), gambas2-gb-form-mdi (>= ${source:Version}), gambas2-gb-gtk-ext (>= ${binary:Version}), gambas2-gb-gtk-svg (>= ${binary:Version}), gambas2-gb-gui (>= ${binary:Version}), gambas2-gb-image (>= ${binary:Version}), gambas2-gb-info (>= ${source:Version}), gambas2-gb-net-curl (>= ${binary:Version}), gambas2-gb-net-smtp (>= ${binary:Version}), gambas2-gb-opengl (>= ${binary:Version}), gambas2-gb-pcre (>= ${binary:Version}), gambas2-gb-pdf (>= ${binary:Version}), gambas2-gb-qt-ext (>= ${binary:Version}), gambas2-gb-qt-kde-html (>= ${binary:Version}), gambas2-gb-qt-opengl, gambas2-gb-report (>= ${source:Version}), gambas2-gb-sdl (>= ${binary:Version}), gambas2-gb-settings (>= ${source:Version}), gambas2-gb-vb, gambas2-gb-v4l (>= ${binary:Version}), gambas2-gb-web, gambas2-gb-xml-rpc (>= ${binary:Version}), gambas2-gb-xml-xslt (>= ${binary:Version}), gambas2-ide (>= ${source:Version}) Description: Complete visual development environment for Gambas Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This package doesn't include anything: it is a metapackage to install the IDE and all the available gambas components.. Package: gambas2-dev Architecture: any Section: devel Depends: ${misc:Depends}, ${shlibs:Depends} Description: Gambas compilation tools Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This package includes the gambas compiler, archiver and informer. Package: gambas2-doc Architecture: all Section: doc Depends: iceweasel | www-browser Description: Gambas documentation Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This package provides the examples, help and documentation Package: gambas2-gb-chart Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}), gambas2-gb-gui (>= ${source:Version}), gambas2-gb-form (>= ${source:Version}) Description: The Gambas charting component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a native gambas component to draw charts. Package: gambas2-gb-compress Architecture: any Section: libdevel Depends: ${misc:Depends}, ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas compression component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component have the needed base libraries for the rest of compression components. Package: gambas2-gb-compress-bzlib2 Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-compress (>= ${binary:Version}) Description: The Gambas bzlib2 component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to compress/uncompress data or files with the bzip2 algorithm. Package: gambas2-gb-compress-zlib Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-compress (>= ${binary:Version}) Description: The Gambas zlib compression component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to compress/uncompress data or files with the gzip and PKZIP algorithm. Package: gambas2-gb-crypt Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas crypt encription component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows to use the crypt() glib function in gambas. Package: gambas2-gb-db Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: Gambas database access common libraries Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component provides the needed common libraries for data access Package: gambas2-gb-db-firebird Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-db (>= ${binary:Version}) Description: The Firebird driver for the Gambas database component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to access Firebird databases. Package: gambas2-gb-db-form Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}), gambas2-gb-db (>= ${binary:Version}), gambas2-gb-form (>= ${source:Version}) Description: Gambas database bound controls Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a native gambas component that implements data bound controls. It provides the following new controls: DataSource, DataBrowser, DataView, DataControl and DataCombo Package: gambas2-gb-db-mysql Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-db (>= ${binary:Version}) Description: The MySQL driver for the Gambas database component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to access MySQL databases. Package: gambas2-gb-db-odbc Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-db (>= ${binary:Version}) Description: The Gambas ODBC driver database component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to access to databases via unixODBC drivers from gambas code. Package: gambas2-gb-db-postgresql Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-db (>= ${binary:Version}) Description: The PostgreSQL driver for the Gambas database component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to access PostgreSQL databases. Package: gambas2-gb-db-sqlite2 Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-db (>= ${binary:Version}) Description: The Gambas sqlite2 driver database component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to access to sqlite 2 databases (not for sqlite 3, there is another package for sqlite 3) from gambas code. Package: gambas2-gb-db-sqlite Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-db (>= ${binary:Version}) Conflicts: gambas2-gb-db-sqlite3 Description: The Gambas sqlite3 driver database component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to access to sqlite3 databases (not for sqlite 2, there is another package for sqlite 2) from gambas code. Package: gambas2-gb-desktop Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-form (>= ${source:Version}), xdg-utils Description: Gambas Portland project compatibility component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component provides an access to the Portland project (http://portland.freedesktop.org/wiki/) xdg utilities Package: gambas2-gb-form Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}), gambas2-gb-gui (>= ${binary:Version}), gambas2-gb-settings (>= ${source:Version}) Description: A gambas native form component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a native gambas component to serve as base for graphic components. Package: gambas2-gb-form-dialog Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}), gambas2-gb-form (>= ${source:Version}) Description: A gambas native mdi form component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a native gambas component that implements the Workspace control. Package: gambas2-gb-form-mdi Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}), gambas2-gb-form (>= ${source:Version}) Description: A gambas native mdi form component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a native gambas component that implements the Workspace control. Package: gambas2-gb-gtk Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas gtk component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . These are the gtk components for Gambas. Package: gambas2-gb-gtk-ext Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-gtk (>= ${binary:Version}) Description: The Gambas extended gtk GUI component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . These are new properties for the gtk components for Gambas. At this moment it only adds footers to the GridView control. Package: gambas2-gb-gtk-svg Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas SVG importing component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component is able to load SVG files and generate an image memory of it, to be used by any component able to manage the gambas image interface. Package: gambas2-gb-gui Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-qt (>= ${binary:Version}) | gambas2-gb-gtk (>= ${binary:Version}) Description: The graphical toolkit selector component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component just loads gb.qt if you are running KDE or gb.gtk in the other cases. It will make your application more desktop-friendly! If the GB_GUI environment variable is set, then gb.gui will load the component specified by its contents. Package: gambas2-gb-pdf Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Conflicts: gambas2-gb-gtk-pdf Description: The Gambas pdf component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . PDF renderer component based on Poppler library Package: gambas2-gb-image Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: A Gambas image effects component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a new component for applying many various effects on images. The effects source code was ported from the KDE libkdefx library, which includes itself some ImageMagick algorithms, and from the KolourPaint program. Package: gambas2-gb-info Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}) Description: A Gambas information component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a native gambas component to provide a lot of information about the system where the application is executed. Package: gambas2-gb-net Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas networking component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to use TCP/IP and UDP sockets, and to access any serial ports. Package: gambas2-gb-net-curl Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-net (>= ${binary:Version}) Description: The Gambas advanced networking component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows your programs to easily become FTP or HTTP clients. Package: gambas2-gb-net-smtp Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-net (>= ${binary:Version}) Description: Gambas component to use smtp protocol Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows sending emails using smtp protocol. It contains one control, SmtpClient, that is used for defining the SMTP server, the SMTP port, the recipients, the sender, the subject, the mail contents, some attachments, and for finally sending the mail. Package: gambas2-gb-opengl Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The OpenGL component for Gambas Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you 3D programming with OpenGL in gambas. Package: gambas2-gb-pcre Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas regexp component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This experimental component allows you to use Perl compatible regular expresions within gambas code. Package: gambas2-gb-qt Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas Qt GUI component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This package includes the Gambas QT GUI component. Package: gambas2-gb-qt-ext Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-qt (>= ${binary:Version}) Conflicts: gambas2-gb-qt-editor Description: The Gambas extended Qt GUI component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component includes some uncommon QT controls. Package: gambas2-gb-qt-kde Architecture: any Section: kde Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-qt (>= ${binary:Version}) Description: The Gambas KDE component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component transforms your QT application in a KDE application, and allows you to pilot any other KDE application with the DCOP protocol. Package: gambas2-gb-qt-kde-html Architecture: any Section: kde Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-qt (>= ${binary:Version}), gambas2-gb-qt-kde (>= ${binary:Version}) Description: The Gambas KHTML component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you to use the KHTML Web Browser widget included in KDE. Package: gambas2-gb-qt-opengl Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-qt (>= ${binary:Version}) Description: OpenGL with QT toolkit Gambas component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows you integrate OpenGL in qt applications. Package: gambas2-gb-report Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}), gambas2-gb-qt (>= ${binary:Version}), gambas2-gb-form (>= ${source:Version}), gambas2-gb-db (>= ${binary:Version}) Description: Gambas report component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component gives the tools and methods to create reports using Gambas Package: gambas2-gb-sdl Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Conflicts: gambas2-gb-sdl-opengl Description: The Gambas SDL component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component use the sound image and ttf fonts parts of the SDL library. It allows you to simultaneously play many sounds and a music stored in a file. If opengl drivers are installed it uses it to accelerate 2D and 3D drawing. Package: gambas2-gb-settings Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}) Description: Gambas utilities class Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a component made in gambas providing several utilities Package: gambas2-gb-v4l Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas video for Linux component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a component to use v4l with gambas. Package: gambas2-gb-vb Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: The Gambas to Visual Basic(tm) compatibility component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a component to give compatibility with some MS Visual Basic functions. Package: gambas2-gb-web Architecture: all Section: libdevel Depends: gambas2-runtime (>= ${binary:Version}) Description: Gambas CGI for web applications component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This is a component for making CGI web applications using gambas, with an ASP-like interface. Package: gambas2-gb-xml Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}) Description: Gambas XML component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component brings the power of the libxml libraries to Gambas. Package: gambas2-gb-xml-rpc Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-xml (>= ${binary:Version}) Description: Gambas RPC component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component allows using RPC from a Gambas application Package: gambas2-gb-xml-xslt Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-runtime (>= ${binary:Version}), gambas2-gb-xml (>= ${binary:Version}) Description: Gambas XSLT component Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This component brings the power of the libxslt libraries to Gambas. Package: gambas2-ide Architecture: any Section: devel Recommends: gambas2-doc, rpm Depends: debhelper, fakeroot, gambas2-dev (>= ${binary:Version}), gambas2-gb-form (>= ${source:Version}), gambas2-gb-form-dialog (>= ${source:Version}), gambas2-gb-form-mdi (>= ${source:Version}), gambas2-gb-db (>= ${binary:Version}), gambas2-gb-desktop (>= ${binary:Version}), gambas2-gb-qt (>= ${binary:Version}), gambas2-gb-qt-ext (>= ${binary:Version}), gambas2-gb-settings (>= ${source:Version}), gambas2-runtime (>= ${binary:Version}) Description: Visual development environment for the Gambas programming language Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This package includes the Gambas Development Environment and the database manager. Package: gambas2-runtime Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends} Description: The Gambas runtime Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This package includes the Gambas interpreter needed to run Gambas applications. Package: gambas2-script Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, gambas2-dev, gambas2-runtime Description: The Gambas scripter Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on... . This package includes the needed files to use Gambas as a scripting language. From gambas at ...1... Thu Jan 29 02:09:37 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Jan 2009 02:09:37 +0100 Subject: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages In-Reply-To: <200901281948.22810.sourceforge-raindog2@...94...> References: <200901281948.22810.sourceforge-raindog2@...94...> Message-ID: <200901290209.37069.gambas@...1...> On jeudi 29 janvier 2009, Rob wrote: > In both the official 2.0.0 and gnulinex.org 2.8.2 packages for Ubuntu > Hardy, the gambas2-gb-db package requires gambas2-gb-form and > gambas2-gb-qt-ext, which requires X to be installed among many other > things. So it's not possible to install Gambas with database support on a > headless Ubuntu web server (like the replacement for the old one currently > running gambasdoc.org.) > > Also, though I don't know if this is normal, gambas2-gb-gui requires both > gambas2-gb-qt and gambas2-gb-gtk, which seems like it defeats the whole > purpose of the gb.gui component (I would think gb.gtk and gb.qt would be > alternatives rather than both required.) Finally, gambas2-runtime itself > requires xdg-utils, which should only be necessary for gambas2-gb-desktop > if I'm not mistaken. > > I don't have an 8.04 workstation around anymore to build on; all my Ubuntu > machines are 8.10 at present except for that one server (which has to be > 8.04 due to LTS.) I attached what I think is a fixed debian/control file. > Could someone with access rebuild the Hardy 2.8.2 packages with it? I'll > try to get Hardy installed on a workstation so I can rebuild them if no > one else has time. > > Thanks > Rob Maybe it was not clear in the "how to package Gambas" page on the wiki. Components packages depends on no other components, because component dependencies are managed by the IDE. If a packager really wants to enforce dependencies between components packages, it should rely on the contents of the *.component files, which lists all dependencies of a component. There are four keys related to dependencies in these files: - "Requires=" which lists the dependencies on other components. - "Excludes=" which lists components that are not compatible with the current one. No component uses it at the moment. - "Implements=" which lists features provided by a component. - "Needs=" which lists the dependencies on features. For example, the gb.gui component implements the following features: Form,EventLoop,ImageProvider. But it has no dependencies, so I don't know where the dependencies specified in the debian/ubuntu packages come from. Moreover, I don't know if these four kinds of dependencies can all be implemented in debian or rpm packages. So the easier is not specifying dependencies on other component packages. Only the dependencies on libraries used by the component. As for xdg-utils, gambas2-runtime uses it to install gambas mime files. Regards, -- Benoit Minisini From diego at ...1942... Thu Jan 29 02:14:35 2009 From: diego at ...1942... (diego fernandez) Date: Wed, 28 Jan 2009 19:14:35 -0600 Subject: [Gambas-user] make install errors In-Reply-To: <200901290005.34381.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901282009.50865.ronstk@...239...> <200901282202.58758.ronstk@...239...> <200901290005.34381.gambas@...1...> Message-ID: <498102FB.1070008@...1942...> Benoit Minisini wrote: > On mercredi 28 janvier 2009, Ron_1st wrote: > >> On Wednesday 28 January 2009, Ron_1st wrote: >> >>> OK done. >>> >>> reconf, configure done OK >>> make had error in gbv4l2.c, corrected and make done OK >>> >>> Now the make install. >>> Crossing my fingers. >>> >>> >>> >>> >>> Best regards, >>> >>> Ron_1st >>> >> Still no luck >> >> THe ****----**** are insrt by me >> >> make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.gtk.svg' >> >> ****----**** >> >> Making install in gb.desktop >> make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' >> Making install in src >> make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> Making install in . >> make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> make[4]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> make[4]: Nothing to be done for `install-exec-am'. >> test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" >> /usr/bin/install -c -m 644 'gb.desktop.component' >> '/usr/local/lib/gambas3/gb.desktop.component' test -z >> "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" >> /usr/bin/install -c -m 644 'gb.desktop.component' >> '/usr/local/lib/gambas3/gb.desktop.component' test -z >> "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /bin/bash >> ../libtool --mode=install /usr/bin/install -c 'gb.desktop.la' >> '/usr/local/lib/gambas3/gb.desktop.la' /usr/bin/install -c >> .libs/gb.desktop.so.0.0.0 /usr/local/lib/gambas3/gb.desktop.so.0.0.0 (cd >> /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so.0 || >> { rm -f gb.desktop.so.0 && ln -s gb.desktop.so.0.0.0 gb.desktop.so.0; }; }) >> (cd /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so >> || { rm -f gb.desktop.so && ln -s gb.desktop.so.0.0.0 gb.desktop.so; }; }) >> /usr/bin/install -c .libs/gb.desktop.lai >> /usr/local/lib/gambas3/gb.desktop.la PATH="$PATH:/sbin" ldconfig -n >> /usr/local/lib/gambas3 >> ---------------------------------------------------------------------- >> Libraries have been installed in: >> /usr/local/lib/gambas3 >> >> If you ever happen to want to link against installed libraries >> in a given directory, LIBDIR, you must either use libtool, and >> specify the full pathname of the library, or use the `-LLIBDIR' >> flag during linking and do at least one of the following: >> - add LIBDIR to the `LD_LIBRARY_PATH' environment variable >> during execution >> - add LIBDIR to the `LD_RUN_PATH' environment variable >> during linking >> - use the `-Wl,--rpath -Wl,LIBDIR' linker flag >> - have your system administrator add LIBDIR to `/etc/ld.so.conf' >> >> See any operating system documentation about shared libraries for >> more information, such as the ld(1) and ld.so(8) manual pages. >> ---------------------------------------------------------------------- >> make install-data-hook >> make[5]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> ****----**** >> in /usr/local/lib/gambas3/ >> gb.desktop.component .gambas .la .so .so.0 .so.0.0.0 >> total 6 files >> in /usr/local/share/gambas3 gb.desktop.list(60) and .info(1824 bytes) >> ****----**** >> Compiling the gb.desktop project... >> gb.desktop >> Cannot read component list file: >> /root/.local/share/gambas3/info/gb.form.list >> /home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:1 >> 4: Unknown identifier: Image >> >> Creating the information files for gb.desktop component... >> gb.desktop >> >> make[5]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> make[4]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' >> make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' >> make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' >> make[3]: Nothing to be done for `install-exec-am'. >> make[3]: Nothing to be done for `install-data-am'. >> make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' >> make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' >> make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' >> >> ****----**** >> >> Making install in gb.qt4 >> make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.qt4' >> >> ---8<--- >> Making install in comp >> make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' >> make[2]: Entering directory `/home/ron/src/gambas3/trunk/comp' >> Running the informer again because of dependencies between information >> files gb >> gb.compress >> gb.crypt >> gb.db >> gb.db.mysql >> ---8<---- >> gb.xml >> gb.xml.rpc >> gb.xml.xslt >> Installing the components... >> Compiling gb.settings... >> OK >> Installing gb.settings... >> Compiling gb.info... >> OK >> Installing gb.info... >> Compiling gb.form... ****---**** <---- here the gb.form compile >> Installing gb.form... >> Compiling gb.form.dialog... >> Installing gb.form.dialog... >> Compiling gb.form.mdi... >> Installing gb.form.mdi... >> Compiling gb.db.form... >> Installing gb.db.form... >> Compiling gb.web... >> OK >> Installing gb.web... >> Compiling gb.report... >> >> >> How can the gb.desktop component do: >> Cannot read component list file: >> /root/.local/share/gambas3/info/gb.form.list when it is not compiled, or do >> I miss something??? >> Looks to me here the --prefix value is lost but why changed to /root/.local >> ?? >> >> >> gb.form.list is not in /usr/local/share/gambas3/info/ only >> gb.form.dialog.list and .info >> >> /root/.local/share/gambas3 does not exist. >> >> >> >> >> I made a copy of local trunk befor the make install >> After make install in gb.desktop/src/gb.desktop there is gb.desktop.gambas >> and .startup add .info and .list are changed >> from .info there is a big part deleted after make install >> >> ================= .info ============ >> DesktopWatcher_Window >> m >> >> (Window)i(X)i(Y)i(Width)i(Height)i <--- last line after make install >> #DesktopWindow <---- and more below before make install >> >> C >> X >> =================================== >> >> >> file:///home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/.list >> Desktop >> DesktopFile >> DesktopWatcher >> >> file:///home/ron/src/gambas3/trunk_1827_bak/gb.desktop/src/gb.desktop/.list >> Desktop >> DesktopFile >> DesktopWatcher >> DesktopWindow >> _DesktopPasswords >> _DesktopScreenSaver >> _DesktopVirtual >> _DesktopWindows >> >> This could be OK, I don't know but only report the fact. >> >> >> .list and .info are blown away >> gb.chart >> gb.form >> gb.db.form >> gb.form.mdi >> gb.report >> /home/ron/src/gambas3/trunk/gb.gtk/src/gb.gtk/.info >> /home/ron/src/gambas3/trunk/gb.qt/src/gb.qt/.info >> >> >> .info and .list keep same >> gb.form.dialog >> gb.info >> gb.settings >> gb.web >> /home/ron/src/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/.info >> /home/ron/src/gambas3/trunk/gb.xml/src/rpc/gb.xml.rpc/.info >> >> So for some components written in gambas both files are deleted after make >> install For others the stay the same except gb,desktop the are changed. >> >> I do not see the logic of this behaviour. >> >> Is there anything to change a Makefile.in or Makefile.am somewhere and >> force the /usr/local for the .info and .list files??? >> >> >> >> Best regards, >> >> Ron_1st >> > > You were right about gb.desktop, there were obsolete information in the > project *.component file. Can you try the revision #1830? > > Just download rev 1830, on ubuntu 8.04.2, try to compile it and this is what happen at the end of the make install part: gv4l2.c: In function 'gv4l2_process_image': gv4l2.c:588: error: 'V4L2_PIX_FMT_Y16' undeclared (first use in this function) gv4l2.c:588: error: (Each undeclared identifier is reported only once gv4l2.c:588: error: for each function it appears in.) gv4l2.c:616: error: 'V4L2_PIX_FMT_SGBRG8' undeclared (first use in this function) gv4l2.c:617: error: 'V4L2_PIX_FMT_SBGGR16' undeclared (first use in this function) gv4l2.c:627: error: 'V4L2_PIX_FMT_SPCA501' undeclared (first use in this function) gv4l2.c:628: error: 'V4L2_PIX_FMT_SPCA505' undeclared (first use in this function) gv4l2.c:629: error: 'V4L2_PIX_FMT_SPCA508' undeclared (first use in this function) gv4l2.c:630: error: 'V4L2_PIX_FMT_SPCA561' undeclared (first use in this function) gv4l2.c:631: error: 'V4L2_PIX_FMT_PAC207' undeclared (first use in this function) gv4l2.c:632: error: 'V4L2_PIX_FMT_PJPG' undeclared (first use in this function) gv4l2.c:633: error: 'V4L2_PIX_FMT_YVYU' undeclared (first use in this function) make[2]: *** [gv4l2.lo] Error 1 make[2]: Leaving directory `/home/diego/trunk/gb.v4l/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/diego/trunk/gb.v4l' make: *** [install-recursive] Error 1 Help needed to solve this.. Thank you. From ronstk at ...239... Thu Jan 29 02:57:39 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 29 Jan 2009 02:57:39 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <200901290005.34381.gambas@...1...> References: <200901252113.56080.ronstk@...239...> <200901282202.58758.ronstk@...239...> <200901290005.34381.gambas@...1...> Message-ID: <200901290257.40248.ronstk@...239...> On Thursday 29 January 2009, Benoit Minisini wrote: > On mercredi 28 janvier 2009, Ron_1st wrote: > > On Wednesday 28 January 2009, Ron_1st wrote: > > > OK done. > > > > > > reconf, configure done OK > > > make had error in gbv4l2.c, corrected and make done OK > > > > > > Now the make install. > > > Crossing my fingers. > > > > > > > > > > > > > > > Best regards, > > > > > > Ron_1st > > > > Still no luck > > > > THe ****----**** are insrt by me > > > > make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.gtk.svg' > > > > ****----**** > > > > Making install in gb.desktop > > make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > > Making install in src > > make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > Making install in . > > make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > make[4]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > make[4]: Nothing to be done for `install-exec-am'. > > test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > > /usr/bin/install -c -m 644 'gb.desktop.component' > > '/usr/local/lib/gambas3/gb.desktop.component' test -z > > "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > > /usr/bin/install -c -m 644 'gb.desktop.component' > > '/usr/local/lib/gambas3/gb.desktop.component' test -z > > "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /bin/bash > > ../libtool --mode=install /usr/bin/install -c 'gb.desktop.la' > > '/usr/local/lib/gambas3/gb.desktop.la' /usr/bin/install -c > > .libs/gb.desktop.so.0.0.0 /usr/local/lib/gambas3/gb.desktop.so.0.0.0 (cd > > /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so.0 || > > { rm -f gb.desktop.so.0 && ln -s gb.desktop.so.0.0.0 gb.desktop.so.0; }; }) > > (cd /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so > > || { rm -f gb.desktop.so && ln -s gb.desktop.so.0.0.0 gb.desktop.so; }; }) > > /usr/bin/install -c .libs/gb.desktop.lai > > /usr/local/lib/gambas3/gb.desktop.la PATH="$PATH:/sbin" ldconfig -n > > /usr/local/lib/gambas3 > > ---------------------------------------------------------------------- > > Libraries have been installed in: > > /usr/local/lib/gambas3 > > > > If you ever happen to want to link against installed libraries > > in a given directory, LIBDIR, you must either use libtool, and > > specify the full pathname of the library, or use the `-LLIBDIR' > > flag during linking and do at least one of the following: > > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > > during execution > > - add LIBDIR to the `LD_RUN_PATH' environment variable > > during linking > > - use the `-Wl,--rpath -Wl,LIBDIR' linker flag > > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > > > See any operating system documentation about shared libraries for > > more information, such as the ld(1) and ld.so(8) manual pages. > > ---------------------------------------------------------------------- > > make install-data-hook > > make[5]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > ****----**** > > in /usr/local/lib/gambas3/ > > gb.desktop.component .gambas .la .so .so.0 .so.0.0.0 > > total 6 files > > in /usr/local/share/gambas3 gb.desktop.list(60) and .info(1824 bytes) > > ****----**** > > Compiling the gb.desktop project... > > gb.desktop > > Cannot read component list file: > > /root/.local/share/gambas3/info/gb.form.list gone > > /home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:14: Unknown identifier: Image gone > > > > Creating the information files for gb.desktop component... > > gb.desktop new /home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/Form1.class:47: Unknown identifier: Button > > > > make[5]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > make[4]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > > make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > > make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > > make[3]: Nothing to be done for `install-exec-am'. > > make[3]: Nothing to be done for `install-data-am'. > > make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > > make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > > make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > > > > ****----**** > > > > Making install in gb.qt4 > > make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.qt4' > > > > ---8<--- > > Making install in comp > > make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' > > make[2]: Entering directory `/home/ron/src/gambas3/trunk/comp' > > Running the informer again because of dependencies between information > > files gb > > gb.compress > > gb.crypt > > gb.db > > gb.db.mysql > > ---8<---- > > gb.xml > > gb.xml.rpc > > gb.xml.xslt > > Installing the components... > > Compiling gb.settings... > > OK > > Installing gb.settings... > > Compiling gb.info... > > OK > > Installing gb.info... > > Compiling gb.form... ****---**** <---- here the gb.form compile *** new warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control > > Installing gb.form... *** new /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No such file or directory > > Compiling gb.form.dialog... *** new warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.form.dialog/FDirDialog.class:51: Unknown identifier: DirChooser > > Installing gb.form.dialog... no error !!!! > > Compiling gb.form.mdi... *** new warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.form.mdi.list /home/ron/src/gambas3/trunk/comp/src/gb.form.mdi/Action.class:7: Unknown identifier: Window > > Installing gb.form.mdi... *** new /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.mdi.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.mdi.list': No such file or directory > > Compiling gb.db.form... *** new warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.db.form.list /home/ron/src/gambas3/trunk/comp/src/gb.db.form/Common.module:3: Unknown identifier: Control > > Installing gb.db.form... *** new /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.db.form.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.db.form.list': No such file or directory > > Compiling gb.web... > > OK > > Installing gb.web... > > Compiling gb.report... warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.report/FReportTutorial1.class:141: Unknown identifier: Button > > Installing gb.report... /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.report.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.report.list': No such file or directory Compiling gb.chart... warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.chart/Chart.class:28: Unknown identifier: Color Installing gb.chart... /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.chart.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.chart.list': No such file or directory make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/home/ron/src/gambas3/trunk/comp' Installing the development environment... Compiling gambas3... warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.form.mdi.list /home/ron/src/gambas3/trunk/app/src/gambas3/CClassInfo.class:75: Unknown identifier: Form Compiling gambas-database-manager... warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.form.mdi.list /home/ron/src/gambas3/trunk/app/src/gambas-database-manager/CConnection.class:167: Unknown identifier: Form Compiling gbs3... OK Installing the scripter... ln: creating symbolic link `/usr/local/bin/gbs3': File exists > > > > > > How can the gb.desktop component do: > > Cannot read component list file: > > /root/.local/share/gambas3/info/gb.form.list when it is not compiled, or do > > I miss something??? > > Looks to me here the --prefix value is lost but why changed to /root/.local > > ?? > > > > > > gb.form.list is not in /usr/local/share/gambas3/info/ only > > gb.form.dialog.list and .info > > > > /root/.local/share/gambas3 does not exist. > > it looks as the problem with /root/.local/ is solved > > > > > > > > I made a copy of local trunk befor the make install > > After make install in gb.desktop/src/gb.desktop there is gb.desktop.gambas > > and .startup add .info and .list are changed > > from .info there is a big part deleted after make install > > > > ================= .info ============ > > DesktopWatcher_Window > > m > > > > (Window)i(X)i(Y)i(Width)i(Height)i <--- last line after make install > > #DesktopWindow <---- and more below before make install > > > > C > > X > > =================================== > > > > > > file:///home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/.list > > Desktop > > DesktopFile > > DesktopWatcher > > > > file:///home/ron/src/gambas3/trunk_1827_bak/gb.desktop/src/gb.desktop/.list > > Desktop > > DesktopFile > > DesktopWatcher > > DesktopWindow > > _DesktopPasswords > > _DesktopScreenSaver > > _DesktopVirtual > > _DesktopWindows > > > > This could be OK, I don't know but only report the fact. this shuld be solved > > > > > > .list and .info are blown away > > gb.chart > > gb.form > > gb.db.form > > gb.form.mdi > > gb.report > > /home/ron/src/gambas3/trunk/gb.gtk/src/gb.gtk/.info > > /home/ron/src/gambas3/trunk/gb.qt/src/gb.qt/.info This still happens The files that should be copied to /usr/local/gambas3/info are not available and give the errors during "Installing the gambas examples... " > > > > > > .info and .list keep same > > gb.form.dialog > > gb.info > > gb.settings > > gb.web > > /home/ron/src/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/.info > > /home/ron/src/gambas3/trunk/gb.xml/src/rpc/gb.xml.rpc/.info > > > > So for some components written in gambas both files are deleted after make > > install For others the stay the same except gb,desktop the are changed. > > > > I do not see the logic of this behaviour. > > > > Is there anything to change a Makefile.in or Makefile.am somewhere and > > force the /usr/local for the .info and .list files??? > > > > > > > > Best regards, > > > > Ron_1st > > You were right about gb.desktop, there were obsolete information in the > project *.component file. Can you try the revision #1830? > Installing the gambas examples... Compiling Automation/KateBrowser/... /usr/local/share/gambas3/examples/Automation/KateBrowser/FBrowser.class:117: Unknown identifier: Menu Compiling Automation/Scripting/... /usr/local/share/gambas3/examples/Automation/Scripting/FScript.class:80: Unknown identifier: Label Compiling Basic/Blights/... /usr/local/share/gambas3/examples/Basic/Blights/win1.class:40: Unknown identifier: PictureBox Compiling Basic/Collection/... /usr/local/share/gambas3/examples/Basic/Collection/FStart.class:46: Unknown identifier: Button -------8<-------8<----------- Compiling Control/TextEdit/... warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.form.mdi.list /usr/local/share/gambas3/examples/Control/TextEdit/FMain.class:174: Unknown identifier: HBox Compiling Control/TreeView/... /usr/local/share/gambas3/examples/Control/TreeView/TreeViewExample.class:170: Unknown identifier: Menu Compiling Database/Database/... warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.db.form.list /usr/local/share/gambas3/examples/Database/Database/FMain.class:181: Unknown identifier: Frame The nasty /root/.local is gone Still for gb.form and gb.form.mdi the .list and .info error exist. Compiling gb.info... OK Installing gb.info... Compiling gb.form... warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control ----8<---- /home/ron/src/gambas3/trunk/comp/src/gb.form.dialog/FDirDialog.class:51: Unknown identifier: DirChooser /home/ron/src/gambas3/trunk/examples/Control/TextEdit/FMain.class:174: Unknown identifier: HBox /home/ron/src/gambas3/trunk/examples/Control/TreeView/TreeViewExample.class:170: Unknown identifier: Menu /home/ron/src/gambas3/trunk/examples/Database/Database/FMain.class:181: Unknown identifier: Frame Common factor in above four items is the unknown identifier is the second in the corresponding *.form file ( the 2nd '{' ) In file /home/ron/src/gambas3/trunk/examples/Control/TextEdit/FMain.form: # Gambas Form File 3.0 { Form Form MoveScaled(0,0,94,54) Text = ("Text Editor") Icon = Picture["icon:/16/edit"] Arrangement = Arrange.Vertical Spacing = 5 Padding = 5 { HBox1 HBox <------------------------------ this identifier MoveScaled(1,1,92,4) { btnLock ToolButton attached result of: sudo make install > output.txt 2>&1 Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? -------------- next part -------------- A non-text attachment was scrubbed... Name: output.txt.zip Type: application/x-zip Size: 8255 bytes Desc: not available URL: From ronstk at ...239... Thu Jan 29 03:02:16 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 29 Jan 2009 03:02:16 +0100 Subject: [Gambas-user] make install errors In-Reply-To: <498102FB.1070008@...1942...> References: <200901252113.56080.ronstk@...239...> <200901290005.34381.gambas@...1...> <498102FB.1070008@...1942...> Message-ID: <200901290302.16613.ronstk@...239...> On Thursday 29 January 2009, diego fernandez wrote: > Benoit Minisini wrote: > > On mercredi 28 janvier 2009, Ron_1st wrote: > > > >> On Wednesday 28 January 2009, Ron_1st wrote: > >> > >>> OK done. > >>> > >>> reconf, configure done OK > >>> make had error in gbv4l2.c, corrected and make done OK > >>> > >>> Now the make install. > >>> Crossing my fingers. > >>> > >>> > >>> > >>> > >>> Best regards, > >>> > >>> Ron_1st > >>> > >> Still no luck > >> > >> THe ****----**** are insrt by me > >> > >> make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.gtk.svg' > >> > >> ****----**** > >> > >> Making install in gb.desktop > >> make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > >> Making install in src > >> make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> Making install in . > >> make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> make[4]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> make[4]: Nothing to be done for `install-exec-am'. > >> test -z "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > >> /usr/bin/install -c -m 644 'gb.desktop.component' > >> '/usr/local/lib/gambas3/gb.desktop.component' test -z > >> "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" > >> /usr/bin/install -c -m 644 'gb.desktop.component' > >> '/usr/local/lib/gambas3/gb.desktop.component' test -z > >> "/usr/local/lib/gambas3" || mkdir -p -- "/usr/local/lib/gambas3" /bin/bash > >> ../libtool --mode=install /usr/bin/install -c 'gb.desktop.la' > >> '/usr/local/lib/gambas3/gb.desktop.la' /usr/bin/install -c > >> .libs/gb.desktop.so.0.0.0 /usr/local/lib/gambas3/gb.desktop.so.0.0.0 (cd > >> /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so.0 || > >> { rm -f gb.desktop.so.0 && ln -s gb.desktop.so.0.0.0 gb.desktop.so.0; }; }) > >> (cd /usr/local/lib/gambas3 && { ln -s -f gb.desktop.so.0.0.0 gb.desktop.so > >> || { rm -f gb.desktop.so && ln -s gb.desktop.so.0.0.0 gb.desktop.so; }; }) > >> /usr/bin/install -c .libs/gb.desktop.lai > >> /usr/local/lib/gambas3/gb.desktop.la PATH="$PATH:/sbin" ldconfig -n > >> /usr/local/lib/gambas3 > >> ---------------------------------------------------------------------- > >> Libraries have been installed in: > >> /usr/local/lib/gambas3 > >> > >> If you ever happen to want to link against installed libraries > >> in a given directory, LIBDIR, you must either use libtool, and > >> specify the full pathname of the library, or use the `-LLIBDIR' > >> flag during linking and do at least one of the following: > >> - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > >> during execution > >> - add LIBDIR to the `LD_RUN_PATH' environment variable > >> during linking > >> - use the `-Wl,--rpath -Wl,LIBDIR' linker flag > >> - have your system administrator add LIBDIR to `/etc/ld.so.conf' > >> > >> See any operating system documentation about shared libraries for > >> more information, such as the ld(1) and ld.so(8) manual pages. > >> ---------------------------------------------------------------------- > >> make install-data-hook > >> make[5]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> ****----**** > >> in /usr/local/lib/gambas3/ > >> gb.desktop.component .gambas .la .so .so.0 .so.0.0.0 > >> total 6 files > >> in /usr/local/share/gambas3 gb.desktop.list(60) and .info(1824 bytes) > >> ****----**** > >> Compiling the gb.desktop project... > >> gb.desktop > >> Cannot read component list file: > >> /root/.local/share/gambas3/info/gb.form.list > >> /home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/DesktopWindow.class:1 > >> 4: Unknown identifier: Image > >> > >> Creating the information files for gb.desktop component... > >> gb.desktop > >> > >> make[5]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> make[4]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop/src' > >> make[2]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > >> make[3]: Entering directory `/home/ron/src/gambas3/trunk/gb.desktop' > >> make[3]: Nothing to be done for `install-exec-am'. > >> make[3]: Nothing to be done for `install-data-am'. > >> make[3]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > >> make[2]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > >> make[1]: Leaving directory `/home/ron/src/gambas3/trunk/gb.desktop' > >> > >> ****----**** > >> > >> Making install in gb.qt4 > >> make[1]: Entering directory `/home/ron/src/gambas3/trunk/gb.qt4' > >> > >> ---8<--- > >> Making install in comp > >> make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' > >> make[2]: Entering directory `/home/ron/src/gambas3/trunk/comp' > >> Running the informer again because of dependencies between information > >> files gb > >> gb.compress > >> gb.crypt > >> gb.db > >> gb.db.mysql > >> ---8<---- > >> gb.xml > >> gb.xml.rpc > >> gb.xml.xslt > >> Installing the components... > >> Compiling gb.settings... > >> OK > >> Installing gb.settings... > >> Compiling gb.info... > >> OK > >> Installing gb.info... > >> Compiling gb.form... ****---**** <---- here the gb.form compile > >> Installing gb.form... > >> Compiling gb.form.dialog... > >> Installing gb.form.dialog... > >> Compiling gb.form.mdi... > >> Installing gb.form.mdi... > >> Compiling gb.db.form... > >> Installing gb.db.form... > >> Compiling gb.web... > >> OK > >> Installing gb.web... > >> Compiling gb.report... > >> > >> > >> How can the gb.desktop component do: > >> Cannot read component list file: > >> /root/.local/share/gambas3/info/gb.form.list when it is not compiled, or do > >> I miss something??? > >> Looks to me here the --prefix value is lost but why changed to /root/.local > >> ?? > >> > >> > >> gb.form.list is not in /usr/local/share/gambas3/info/ only > >> gb.form.dialog.list and .info > >> > >> /root/.local/share/gambas3 does not exist. > >> > >> > >> > >> > >> I made a copy of local trunk befor the make install > >> After make install in gb.desktop/src/gb.desktop there is gb.desktop.gambas > >> and .startup add .info and .list are changed > >> from .info there is a big part deleted after make install > >> > >> ================= .info ============ > >> DesktopWatcher_Window > >> m > >> > >> (Window)i(X)i(Y)i(Width)i(Height)i <--- last line after make install > >> #DesktopWindow <---- and more below before make install > >> > >> C > >> X > >> =================================== > >> > >> > >> file:///home/ron/src/gambas3/trunk/gb.desktop/src/gb.desktop/.list > >> Desktop > >> DesktopFile > >> DesktopWatcher > >> > >> file:///home/ron/src/gambas3/trunk_1827_bak/gb.desktop/src/gb.desktop/.list > >> Desktop > >> DesktopFile > >> DesktopWatcher > >> DesktopWindow > >> _DesktopPasswords > >> _DesktopScreenSaver > >> _DesktopVirtual > >> _DesktopWindows > >> > >> This could be OK, I don't know but only report the fact. > >> > >> > >> .list and .info are blown away > >> gb.chart > >> gb.form > >> gb.db.form > >> gb.form.mdi > >> gb.report > >> /home/ron/src/gambas3/trunk/gb.gtk/src/gb.gtk/.info > >> /home/ron/src/gambas3/trunk/gb.qt/src/gb.qt/.info > >> > >> > >> .info and .list keep same > >> gb.form.dialog > >> gb.info > >> gb.settings > >> gb.web > >> /home/ron/src/gambas3/trunk/gb.db.mysql/src/gb.db.mysql/.info > >> /home/ron/src/gambas3/trunk/gb.xml/src/rpc/gb.xml.rpc/.info > >> > >> So for some components written in gambas both files are deleted after make > >> install For others the stay the same except gb,desktop the are changed. > >> > >> I do not see the logic of this behaviour. > >> > >> Is there anything to change a Makefile.in or Makefile.am somewhere and > >> force the /usr/local for the .info and .list files??? > >> > >> > >> > >> Best regards, > >> > >> Ron_1st > >> > > > > You were right about gb.desktop, there were obsolete information in the > > project *.component file. Can you try the revision #1830? > > > > > Just download rev 1830, on ubuntu 8.04.2, try to compile it and this is > what happen at the end of the make install part: > > gv4l2.c: In function 'gv4l2_process_image': > gv4l2.c:588: error: 'V4L2_PIX_FMT_Y16' undeclared (first use in this > function) > gv4l2.c:588: error: (Each undeclared identifier is reported only once > gv4l2.c:588: error: for each function it appears in.) > gv4l2.c:616: error: 'V4L2_PIX_FMT_SGBRG8' undeclared (first use in this > function) > gv4l2.c:617: error: 'V4L2_PIX_FMT_SBGGR16' undeclared (first use in this > function) > gv4l2.c:627: error: 'V4L2_PIX_FMT_SPCA501' undeclared (first use in this > function) > gv4l2.c:628: error: 'V4L2_PIX_FMT_SPCA505' undeclared (first use in this > function) > gv4l2.c:629: error: 'V4L2_PIX_FMT_SPCA508' undeclared (first use in this > function) > gv4l2.c:630: error: 'V4L2_PIX_FMT_SPCA561' undeclared (first use in this > function) > gv4l2.c:631: error: 'V4L2_PIX_FMT_PAC207' undeclared (first use in this > function) > gv4l2.c:632: error: 'V4L2_PIX_FMT_PJPG' undeclared (first use in this > function) > gv4l2.c:633: error: 'V4L2_PIX_FMT_YVYU' undeclared (first use in this > function) > make[2]: *** [gv4l2.lo] Error 1 > make[2]: Leaving directory `/home/diego/trunk/gb.v4l/src' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory `/home/diego/trunk/gb.v4l' > make: *** [install-recursive] Error 1 > > > Help needed to solve this.. > > Thank you. > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > /home/ron/src/gambas3/trunk/gb.v4l/src Directory gb.v4l is in root of the gambas package Outstanding correction in gbv4l2.c ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_BGR32: ? ? ? ?gv4l2_debug("BGR32"); ? break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_RGB32: ? ? ? ?/* DEFAULT - NO CONV */ break; /* ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_GREY: ? ? ? ? gv4l2_debug("GREY"); ? ?break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_Y16: ? ? ? ? ?gv4l2_debug("Y16"); ? ? break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_PAL8: ? ? ? ? gv4l2_debug("PAL8"); ? ?break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_YVU410: ? ? ? gv4l2_debug("YVU410"); ?break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_YVU420: ? ? ? gv4l2_debug("YVU420"); ?break; */ ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_YUV420: ? ? ? ? ? ? ? ? ? ? ? ? //gv4l2_debug("YUV420"); ? ? ? ? ? ? ? ? ? ? ? ? yuv420p_to_rgb (start,THIS->frame,w,h,3); ? ? ? ? ? ? ? ? ? ? ? ? return; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_YUYV: ? ? ? ? ? ? ? ? ? ? ? ? //gv4l2_debug("YUYV"); ? ? ? ? ? ? ? ? ? ? ? ? convert_yuv_to_rgb_buffer(start,THIS->frame,w,h); ? ? ? ? ? ? ? ? ? ? ? ? return; /* ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_UYVY: ? ? ? ? gv4l2_debug("UYVY"); ? ?break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_YUV422P: ? ? ?gv4l2_debug("YUV422P"); break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_YUV411P: ? ? ?gv4l2_debug("YUV411P"); break; ---8<--- ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_PJPG: ? ? ? ? gv4l2_debug("PJPG"); ? ?break; ? ? ? ? ? ? ? ? case V4L2_PIX_FMT_YVYU: ? ? ? ? gv4l2_debug("YVYU"); ? ?break; */ ? ? ? ? ? ? ? ? default: Garret knows about the problem. The videodev.h of kubuntu 8.04 != Kubunte 8.10 Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From sourceforge-raindog2 at ...94... Thu Jan 29 04:36:59 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 28 Jan 2009 22:36:59 -0500 Subject: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages In-Reply-To: <200901290209.37069.gambas@...1...> References: <200901281948.22810.sourceforge-raindog2@...94...> <200901290209.37069.gambas@...1...> Message-ID: <200901282236.59093.sourceforge-raindog2@...94...> On Wednesday 28 January 2009 20:09, Benoit Minisini wrote: > As for xdg-utils, gambas2-runtime uses it to install gambas mime files. Is it really required? Because if so, then it's no longer possible to install Gambas on a command-line only machine since xdg-utils requires an X server, Konqueror, Firefox, GNOME, etc., and it's not going to be viable as a web scripting language. Rob From ron at ...1740... Thu Jan 29 12:31:48 2009 From: ron at ...1740... (Ron) Date: Thu, 29 Jan 2009 12:31:48 +0100 Subject: [Gambas-user] How to address more than one table in resultset Message-ID: <498193A4.3080001@...1740...> Bit stuck. In an attempt to optimize some db queries. I changed this (gets all events first then check if enabled, then gets the trigger fields for that event etc): ---- DIM rResult, rResultTrig, rResultAction AS Result rResult = Main.hDB.Exec("SELECT * FROM events") IF rResult THEN IF rResult.Count THEN FOR EACH rResult IF rResult!enabled THEN IF rResult!trigger1 THEN rResultTrig = Main.hDB.Exec("SELECT * FROM triggers WHERE id = &1 ", rResult!trigger1) IF rResultTrig THEN IF rResultTrig!param1 = ... NEXT ---- to this (gets selected events and triggers table/fields): ---- DIM rResult AS Result rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled AND triggers.param1 = &1", iId) IF rResult THEN IF rResult.Count THEN FOR EACH rResult ... NEXT ---- In the sql query tool from database manager it returns exactly the correct records/fields etc But how can I get the fields from the triggers table from this resultset? I cannot do something like rResult!triggers.id Is this possible? Thanks. Regards, Ron_2nd. From ronstk at ...239... Thu Jan 29 13:41:28 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 29 Jan 2009 13:41:28 +0100 Subject: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages In-Reply-To: <200901282236.59093.sourceforge-raindog2@...94...> References: <200901281948.22810.sourceforge-raindog2@...94...> <200901290209.37069.gambas@...1...> <200901282236.59093.sourceforge-raindog2@...94...> Message-ID: <200901291341.28515.ronstk@...239...> On Thursday 29 January 2009, Rob wrote: > On Wednesday 28 January 2009 20:09, Benoit Minisini wrote: > > As for xdg-utils, gambas2-runtime uses it to install gambas mime files. > > Is it really required? Because if so, then it's no longer possible to > install Gambas on a command-line only machine since xdg-utils requires an > X server, Konqueror, Firefox, GNOME, etc., and it's not going to be viable > as a web scripting language. > > Rob > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hi Rob, Requires or depends, thats the question. There are two parts for the mime function, a) to use for _file_ to recognize filetype -X server, Konqueror, Firefox, GNOME, etc. are no need. b) for usage by desktop env to know wich program must be used to do someting usefull insde the desktop env. -It is not a real pain, a CLI box does not use it. I just look in my packet manager adept kubuntu 8.04 gambas-runtime requires xdg-utils so that part you are right however for package xdg-utils suggested: desktop-file-utils/kdelibs/konqueror/lib.../menu recommended: file/iceweasel or wwww-browser/mime-support/x11-... No required or dependency package At my box not all suggested are installed. xdg-utlis should be safe to install without X/KDE/Gnome as I understand an no problem for gambas-runtime to requires it. Best regards, Ron_1st -- From ronstk at ...239... Thu Jan 29 14:17:26 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 29 Jan 2009 14:17:26 +0100 Subject: [Gambas-user] How to address more than one table in resultset In-Reply-To: <498193A4.3080001@...1740...> References: <498193A4.3080001@...1740...> Message-ID: <200901291417.26480.ronstk@...239...> On Thursday 29 January 2009, Ron wrote: > Bit stuck. > > In an attempt to optimize some db queries. > > I changed this (gets all events first then check if enabled, then gets > the trigger fields for that event etc): > ---- > DIM rResult, rResultTrig, rResultAction AS Result > > rResult = Main.hDB.Exec("SELECT * FROM events") > IF rResult THEN > IF rResult.Count THEN > FOR EACH rResult > IF rResult!enabled THEN > IF rResult!trigger1 THEN > rResultTrig = Main.hDB.Exec("SELECT * FROM triggers WHERE id > = &1 ", rResult!trigger1) > IF rResultTrig THEN > IF rResultTrig!param1 = > ... > NEXT > ---- > > to this (gets selected events and triggers table/fields): > ---- > DIM rResult AS Result > > rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE > events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled > AND triggers.param1 = &1", iId) > > IF rResult THEN > IF rResult.Count THEN > > FOR EACH rResult > ... > NEXT > ---- > In the sql query tool from database manager it returns exactly the > correct records/fields etc > > But how can I get the fields from the triggers table from this resultset? > > I cannot do something like rResult!triggers.id > Is this possible? > > Thanks. > > Regards, > Ron_2nd. > > rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE rResult = Main.hDB.Exec("SELECT *, triggers.fieldx as "triggerfieldx" FROM events, triggers WHERE You should get all field names from both tables side by side. (As far I remember) You can use the as "triggerfield" to declare the specific field from triggers. Lets asume both have a ID field, normal result will be then ID event xxx yyy ID trigger xxx yyy Using the ___triggers.ID as "triggerID"___ then you get ID event xxx yyy ID trigger xxx yyy triggerID Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From joe1962 at ...626... Thu Jan 29 15:02:14 2009 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 29 Jan 2009 09:02:14 -0500 Subject: [Gambas-user] ServerSocket application without Forms In-Reply-To: <200901281813.30112.gambas@...1...> References: <6c208f950901271301s4292b4b3m4426d37df6237d74@...627...> <200901281813.30112.gambas@...1...> Message-ID: <6c208f950901290602k61074bfbqb779c3f2d19c6010@...627...> On 1/28/09, Benoit Minisini wrote: > On mardi 27 janvier 2009, Jose J. Rodriguez wrote: > > Is it possible to use ServerSocket in an applciation without Forms? I > > have been placed all the code in the Main Module and though I get a > > connection, the _Connection event does not seem to fire. > > > > Of course. You just must not forget to specify the event name when > instanciating the object: > > MyServerSocket = NEW ServerSocket AS "ServerSocketEventName" > Doh! Thanks! Regards, Joe1962 From ron at ...1740... Thu Jan 29 14:42:02 2009 From: ron at ...1740... (Ron) Date: Thu, 29 Jan 2009 14:42:02 +0100 Subject: [Gambas-user] How to address more than one table in resultset In-Reply-To: <200901291417.26480.ronstk@...239...> References: <498193A4.3080001@...1740...> <200901291417.26480.ronstk@...239...> Message-ID: <4981B22A.2040108@...1740...> Ron_1st schreef: > On Thursday 29 January 2009, Ron wrote: > >> Bit stuck. >> >> In an attempt to optimize some db queries. >> >> I changed this (gets all events first then check if enabled, then gets >> the trigger fields for that event etc): >> ---- >> DIM rResult, rResultTrig, rResultAction AS Result >> >> rResult = Main.hDB.Exec("SELECT * FROM events") >> IF rResult THEN >> IF rResult.Count THEN >> FOR EACH rResult >> IF rResult!enabled THEN >> IF rResult!trigger1 THEN >> rResultTrig = Main.hDB.Exec("SELECT * FROM triggers WHERE id >> = &1 ", rResult!trigger1) >> IF rResultTrig THEN >> IF rResultTrig!param1 = >> ... >> NEXT >> ---- >> >> to this (gets selected events and triggers table/fields): >> ---- >> DIM rResult AS Result >> >> rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE >> events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled >> AND triggers.param1 = &1", iId) >> >> IF rResult THEN >> IF rResult.Count THEN >> >> FOR EACH rResult >> ... >> NEXT >> ---- >> In the sql query tool from database manager it returns exactly the >> correct records/fields etc >> >> But how can I get the fields from the triggers table from this resultset? >> >> I cannot do something like rResult!triggers.id >> Is this possible? >> >> Thanks. >> >> Regards, >> Ron_2nd. >> >> > > >> rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE >> > rResult = Main.hDB.Exec("SELECT *, triggers.fieldx as "triggerfieldx" FROM events, triggers WHERE > > You should get all field names from both tables side by side. > (As far I remember) > > You can use the as "triggerfield" to declare the specific field from triggers. > > Lets asume both have a ID field, normal result will be then > ID event xxx yyy ID trigger xxx yyy > > Using the ___triggers.ID as "triggerID"___ then you get > ID event xxx yyy ID trigger xxx yyy triggerID > > > > > > > Best regards, > > Ron_1st > > Now that's the last kind of solution I was thinking of. Where this you get this info from, have been searching gambasdoc over and over again. But it works nicely! Note that single quotes are needed. --- DIM value AS String rResult = Main.hDB.Exec("SELECT *,triggers.param2 as 'value' FROM events, triggers WHERE events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled AND triggers.param1 = &1", iId) IF rResult THEN IF rResult.Count THEN FOR EACH rResult SELECT rResult!value ... --- Thanks alot!! Regard, Ron_2nd From sourceforge-raindog2 at ...94... Thu Jan 29 15:10:23 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 Jan 2009 09:10:23 -0500 Subject: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages In-Reply-To: <200901291341.28515.ronstk@...239...> References: <200901281948.22810.sourceforge-raindog2@...94...> <200901282236.59093.sourceforge-raindog2@...94...> <200901291341.28515.ronstk@...239...> Message-ID: <200901290910.23538.sourceforge-raindog2@...94...> On Thursday 29 January 2009 07:41, Ron_1st wrote: > Requires or depends, thats the question. When speaking in terms of package managers, there's no practical difference. > however for package xdg-utils > suggested: desktop-file-utils/kdelibs/konqueror/lib.../menu > recommended: file/iceweasel or wwww-browser/mime-support/x11-... > No required or dependency package > At my box not all suggested are installed. > xdg-utlis should be safe to install without X/KDE/Gnome as I understand > an no problem for gambas-runtime to requires it. Found my problem there. I was using aptitude instead of apt-get when I tried to install xdg-utils. I thought aptitude was just a newer version of apt-get with some extra info, but apparently it does things like treating recommended packages as mandatory unless you use -R. Now I'll know better.... but it still seems to me like xdg-utils should be a recommended package for gambas2-runtime and not a dependency. Rob From gambas at ...1... Thu Jan 29 15:38:16 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Jan 2009 15:38:16 +0100 Subject: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages In-Reply-To: <200901290910.23538.sourceforge-raindog2@...94...> References: <200901281948.22810.sourceforge-raindog2@...94...> <200901291341.28515.ronstk@...239...> <200901290910.23538.sourceforge-raindog2@...94...> Message-ID: <200901291538.16657.gambas@...1...> On jeudi 29 janvier 2009, Rob wrote: > On Thursday 29 January 2009 07:41, Ron_1st wrote: > > Requires or depends, thats the question. > > When speaking in terms of package managers, there's no practical > difference. > > > however for package xdg-utils > > suggested: desktop-file-utils/kdelibs/konqueror/lib.../menu > > recommended: file/iceweasel or wwww-browser/mime-support/x11-... > > No required or dependency package > > At my box not all suggested are installed. > > xdg-utlis should be safe to install without X/KDE/Gnome as I understand > > an no problem for gambas-runtime to requires it. > > Found my problem there. I was using aptitude instead of apt-get when I > tried to install xdg-utils. I thought aptitude was just a newer version > of apt-get with some extra info, but apparently it does things like > treating recommended packages as mandatory unless you use -R. Now I'll > know better.... but it still seems to me like xdg-utils should be a > recommended package for gambas2-runtime and not a dependency. > > Rob > xdg-utils are just shell scripts. These scripts detect the current desktop environment when they are run, and execute desktop-specific commands according to what they detected. So making them depends on X11 or any desktop environment is a mistake IMHO. -- Benoit Minisini From gambas at ...1... Thu Jan 29 15:39:52 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Jan 2009 15:39:52 +0100 Subject: [Gambas-user] How to address more than one table in resultset In-Reply-To: <498193A4.3080001@...1740...> References: <498193A4.3080001@...1740...> Message-ID: <200901291539.52693.gambas@...1...> On jeudi 29 janvier 2009, Ron wrote: > Bit stuck. > > In an attempt to optimize some db queries. > > I changed this (gets all events first then check if enabled, then gets > the trigger fields for that event etc): > ---- > DIM rResult, rResultTrig, rResultAction AS Result > > rResult = Main.hDB.Exec("SELECT * FROM events") > IF rResult THEN > IF rResult.Count THEN > FOR EACH rResult > IF rResult!enabled THEN > IF rResult!trigger1 THEN > rResultTrig = Main.hDB.Exec("SELECT * FROM triggers WHERE id > = &1 ", rResult!trigger1) > IF rResultTrig THEN > IF rResultTrig!param1 = > ... > NEXT > ---- > > to this (gets selected events and triggers table/fields): > ---- > DIM rResult AS Result > > rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE > events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled > AND triggers.param1 = &1", iId) > > IF rResult THEN > IF rResult.Count THEN > > FOR EACH rResult > ... > NEXT > ---- > In the sql query tool from database manager it returns exactly the > correct records/fields etc > > But how can I get the fields from the triggers table from this resultset? > > I cannot do something like rResult!triggers.id > Is this possible? > The '!' syntactic sugar works only if you use an identifier. Otherwise you must use the [] syntax: rResult["triggers.id"]. Regards, -- Benoit Minisini From ronstk at ...239... Thu Jan 29 15:44:01 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 29 Jan 2009 15:44:01 +0100 Subject: [Gambas-user] How to address more than one table in resultset In-Reply-To: <4981B22A.2040108@...1740...> References: <498193A4.3080001@...1740...> <200901291417.26480.ronstk@...239...> <4981B22A.2040108@...1740...> Message-ID: <200901291544.01610.ronstk@...239...> On Thursday 29 January 2009, Ron wrote: > Ron_1st schreef: > > On Thursday 29 January 2009, Ron wrote: > > > >> Bit stuck. > >> > >> In an attempt to optimize some db queries. > >> > >> I changed this (gets all events first then check if enabled, then gets > >> the trigger fields for that event etc): > >> ---- > >> DIM rResult, rResultTrig, rResultAction AS Result > >> > >> rResult = Main.hDB.Exec("SELECT * FROM events") > >> IF rResult THEN > >> IF rResult.Count THEN > >> FOR EACH rResult > >> IF rResult!enabled THEN > >> IF rResult!trigger1 THEN > >> rResultTrig = Main.hDB.Exec("SELECT * FROM triggers WHERE id > >> = &1 ", rResult!trigger1) > >> IF rResultTrig THEN > >> IF rResultTrig!param1 = > >> ... > >> NEXT > >> ---- > >> > >> to this (gets selected events and triggers table/fields): > >> ---- > >> DIM rResult AS Result > >> > >> rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE > >> events.trigger1 = triggers.id AND triggers.type = 3 AND events.enabled > >> AND triggers.param1 = &1", iId) > >> > >> IF rResult THEN > >> IF rResult.Count THEN > >> > >> FOR EACH rResult > >> ... > >> NEXT > >> ---- > >> In the sql query tool from database manager it returns exactly the > >> correct records/fields etc > >> > >> But how can I get the fields from the triggers table from this resultset? > >> > >> I cannot do something like rResult!triggers.id > >> Is this possible? > >> > >> Thanks. > >> > >> Regards, > >> Ron_2nd. > >> > >> > > > > > >> rResult = Main.hDB.Exec("SELECT * FROM events, triggers WHERE > >> > > rResult = Main.hDB.Exec("SELECT *, triggers.fieldx as "triggerfieldx" FROM events, triggers WHERE > > > > You should get all field names from both tables side by side. > > (As far I remember) > > > > You can use the as "triggerfield" to declare the specific field from triggers. > > > > Lets asume both have a ID field, normal result will be then > > ID event xxx yyy ID trigger xxx yyy > > > > Using the ___triggers.ID as "triggerID"___ then you get > > ID event xxx yyy ID trigger xxx yyy triggerID > > > > > > > > > > > > > > Best regards, > > > > Ron_1st > > > > > > Now that's the last kind of solution I was thinking of. > Where this you get this info from, have been searching gambasdoc over > and over again. > > But it works nicely! > Note that single quotes are needed. > --- > DIM value AS String > > rResult = Main.hDB.Exec("SELECT *,triggers.param2 as 'value' FROM > events, triggers WHERE events.trigger1 = triggers.id AND triggers.type = > 3 AND events.enabled AND triggers.param1 = &1", iId) > IF rResult THEN > IF rResult.Count THEN > FOR EACH rResult > SELECT rResult!value > ... > --- > > Thanks alot!! > > Regard, > Ron_2nd > Experience with MS-Access-MySQL combination, used a lot in the past, and programming with php for websites. About the quotes, to be exactly there should be backticks for MySQL field/table names too. In first case I had them but you did not used it for the table name so I deleted them. Normal to be safe MySQL use backticks for field and table names, special when spaces and non-alpha characters are involved in them. For the alias name after AS you could using single or double quotes. Depends on to front and end quote used if passed as string. The reason wy it is not in the gambas doc is simple. The default method does not using DB.exec() while this is backend sensitive. Your code runs now on MySQL but could fail on SQLite or Firebird! Your construction now is more for advanced programmers and that is not default for the average gambas user ATM. Leuk die twee ronnies die in het engels pruttellen. :) Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From gareth at ...1689... Thu Jan 29 16:21:12 2009 From: gareth at ...1689... (Gareth Bult) Date: Thu, 29 Jan 2009 15:21:12 +0000 (GMT) Subject: [Gambas-user] General Forms / Display manager ... Message-ID: <10661359.403061233242472181.JavaMail.root@...1834...> Hi, Can someone tell me .. if I do form.Hide, then form.Show .. would you expect the form to reappear in the same place .. If not, where would you reset top/left in order to control it's position on show .. It looks like (for me) the window manager is (re-)positioning the form on show, even when I set top/left in form_show() .. ??? tia Gareth. -- Managing Director, Encryptec Limited Tel: 0845 5082719, Mob: 0785 3305393 Email: gareth at ...1689... Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request. From ronstk at ...239... Thu Jan 29 16:25:46 2009 From: ronstk at ...239... (Ron_1st) Date: Thu, 29 Jan 2009 16:25:46 +0100 Subject: [Gambas-user] How to address more than one table in resultset In-Reply-To: <200901291539.52693.gambas@...1...> References: <498193A4.3080001@...1740...> <200901291539.52693.gambas@...1...> Message-ID: <200901291625.46746.ronstk@...239...> On Thursday 29 January 2009, Benoit Minisini wrote: > The '!' syntactic sugar works only if you use an identifier. Otherwise you > must use the [] syntax: rResult["triggers.id"]. Does gambas returns then from second table 'triggers' the field 'id' as "triggers.id" ? The query "SELECT * FROM table1,table2 WHERe table1.id= table2.id" I'v never seen every field is returned as "table1.anyname". Just a question, I can't remember 100% or try ATM here to verify. > > Regards, > > -- > Benoit Minisini > Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Thu Jan 29 16:28:21 2009 From: gambas at ...1... (Benoit Minisini) Date: Thu, 29 Jan 2009 16:28:21 +0100 Subject: [Gambas-user] How to address more than one table in resultset In-Reply-To: <200901291625.46746.ronstk@...239...> References: <498193A4.3080001@...1740...> <200901291539.52693.gambas@...1...> <200901291625.46746.ronstk@...239...> Message-ID: <200901291628.21841.gambas@...1...> On jeudi 29 janvier 2009, Ron_1st wrote: > On Thursday 29 January 2009, Benoit Minisini wrote: > > The '!' syntactic sugar works only if you use an identifier. Otherwise > > you must use the [] syntax: rResult["triggers.id"]. > > Does gambas returns then from second table 'triggers' the field 'id' > as "triggers.id" ? > > The query "SELECT * FROM table1,table2 WHERe table1.id= table2.id" > I'v never seen every field is returned as "table1.anyname". > > Just a question, I can't remember 100% or try ATM here to verify. > Alas, it depends on the database driver. (SQL... standard ?) -- Benoit Minisini From ron at ...1740... Thu Jan 29 16:35:49 2009 From: ron at ...1740... (Ron) Date: Thu, 29 Jan 2009 16:35:49 +0100 Subject: [Gambas-user] How to address more than one table in resultset In-Reply-To: <200901291628.21841.gambas@...1...> References: <498193A4.3080001@...1740...> <200901291539.52693.gambas@...1...> <200901291625.46746.ronstk@...239...> <200901291628.21841.gambas@...1...> Message-ID: <4981CCD5.2020802@...1740...> Benoit Minisini schreef: > On jeudi 29 janvier 2009, Ron_1st wrote: > >> On Thursday 29 January 2009, Benoit Minisini wrote: >> >>> The '!' syntactic sugar works only if you use an identifier. Otherwise >>> you must use the [] syntax: rResult["triggers.id"]. >>> >> Does gambas returns then from second table 'triggers' the field 'id' >> as "triggers.id" ? >> >> The query "SELECT * FROM table1,table2 WHERe table1.id= table2.id" >> I'v never seen every field is returned as "table1.anyname". >> >> Just a question, I can't remember 100% or try ATM here to verify. >> >> > > Alas, it depends on the database driver. (SQL... standard ?) > > For my purpose it works, with MySQL, and rResult["triggers.id"]. But my events.id is not linked to triggers.id, it event.trigger1 -> triggers.id This solution with brackets is in my case better than the 'as "xx"' solution, since I use quite a few fields from both tables, and the query string got a bit long ;-) Regards, Ron_2nd. From mohareve at ...626... Thu Jan 29 17:23:56 2009 From: mohareve at ...626... (M. Cs.) Date: Thu, 29 Jan 2009 17:23:56 +0100 Subject: [Gambas-user] Slow Gridview creation In-Reply-To: <200901282155.37660.gambas@...1...> References: <200901282155.37660.gambas@...1...> Message-ID: Thanks Benoit, it WORKS! Now the speed is O.K. God bless you! Csaba From rolf.frogs at ...221... Thu Jan 29 18:31:30 2009 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Thu, 29 Jan 2009 18:31:30 +0100 Subject: [Gambas-user] General Forms / Display manager ... In-Reply-To: <10661359.403061233242472181.JavaMail.root@...1834...> References: <10661359.403061233242472181.JavaMail.root@...1834...> Message-ID: <200901291831.33504.rolf.frogs@...221...> Hi Gareth > Can someone tell me .. if I do form.Hide, then form.Show .. would you > expect the form to reappear in the same place .. > > If not, where would you reset top/left in order to control it's position on > show .. Check if the form_show() event and/or the form_resize() event was called HTH Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: From jussi.lahtinen at ...626... Thu Jan 29 18:51:24 2009 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 29 Jan 2009 19:51:24 +0200 Subject: [Gambas-user] To wishlist: Missing assignment operator. Message-ID: <384d3900901290951h470a2016pf49b5f44c38d757a@...627...> Hi! Now I have to write like this; ff = ff ^ 1.2 instead of this; ff ^= 1.2 I think this is rarely used (not rare in my project), but nice to have. I was little suprised that it is absent. So, low priority. Thanks! Jussi From sourceforge-raindog2 at ...94... Thu Jan 29 20:34:29 2009 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 29 Jan 2009 14:34:29 -0500 Subject: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages In-Reply-To: <200901291538.16657.gambas@...1...> References: <200901281948.22810.sourceforge-raindog2@...94...> <200901290910.23538.sourceforge-raindog2@...94...> <200901291538.16657.gambas@...1...> Message-ID: <200901291434.29952.sourceforge-raindog2@...94...> On Thursday 29 January 2009 09:38, Benoit Minisini wrote: > xdg-utils are just shell scripts. These scripts detect the current > desktop environment when they are run, and execute desktop-specific > commands according to what they detected. > So making them depends on X11 or any desktop environment is a mistake > IMHO. Well, it turns out I was misunderstanding Aptitude and those are only "recommended" packages for xdg-utils. So the only real issues are gambas2-gb-db requiring gambas2-gb-form and gambas2-gb-qt-ext, and gb.gui requiring both gambas2-gb-gtk and gambas2-gb-qt (instead of just one or the other.) Rob From simonart.dominique at ...11... Thu Jan 29 21:38:59 2009 From: simonart.dominique at ...11... (Dominique SIMONART) Date: Thu, 29 Jan 2009 21:38:59 +0100 Subject: [Gambas-user] Problem with Byte datatype ? Message-ID: <498213E3.2000607@...11...> Hi evererybody, If I code the few lines showed below: DIM X AS Byte DIM Texte AS String[64] X = &h2E X += &hE0 TextBox1.Text = Hex(X) Texte[X] = Hex(X) I get '10E' displayed. Is this correct for a byte? If you put a breakpoint on the TextBox1 line, the local variables show X value as 14 (&h0E) which is correct. and the last line ends wit an 'out of bounds' message. (as a workaround, I actually insert a' X = X MOD 256' instruction just before the last line) If you wonder why the hell I've to use bytes, I'm working on a memory capture of an Amiga program ("Captive") running inside the emulator WinUAE. In those old days (twenty years ago), memory was 0.0005 Gb and byte usage was quite common! and more, the memory byte order was not compatible with the actual PC so you have to read memory byte by byte to restore the Amiga organisation regards, Dominique Simonart From simonart.dominique at ...11... Thu Jan 29 23:04:59 2009 From: simonart.dominique at ...11... (Simonart Dominique) Date: Thu, 29 Jan 2009 23:04:59 +0100 Subject: [Gambas-user] Problem with Byte datatype ? In-Reply-To: <498213E3.2000607@...11...> References: <498213E3.2000607@...11...> Message-ID: <4982280B.2080909@...11...> Dominique SIMONART a ?crit : > Hi evererybody, > > If I code the few lines showed below: > > DIM X AS Byte > DIM Texte AS String[64] > > X = &h2E > X += &hE0 > TextBox1.Text = Hex(X) > Texte[X] = Hex(X) > > I get '10E' displayed. Is this correct for a byte? > If you put a breakpoint on the TextBox1 line, the local variables show X > value as 14 (&h0E) which is correct. > and the last line ends wit an 'out of bounds' message. > > (as a workaround, I actually insert a' X = X MOD 256' instruction just > before the last line) > > If you wonder why the hell I've to use bytes, I'm working on a memory > capture of an Amiga program ("Captive") running inside the emulator WinUAE. > In those old days (twenty years ago), memory was 0.0005 Gb and byte > usage was quite common! > and more, the memory byte order was not compatible with the actual PC so > you have to read memory byte by byte to restore the Amiga organisation > > regards, > Dominique Simonart > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Sorry for missing needed information: Gambas 2.8 OpenSuse 11.0 Dominique Simonart From gambas at ...1... Fri Jan 30 00:41:47 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jan 2009 00:41:47 +0100 Subject: [Gambas-user] Problem with Byte datatype ? In-Reply-To: <4982280B.2080909@...11...> References: <498213E3.2000607@...11...> <4982280B.2080909@...11...> Message-ID: <200901300041.47694.gambas@...1...> On jeudi 29 janvier 2009, Simonart Dominique wrote: > Dominique SIMONART a ?crit : > > Hi evererybody, > > > > If I code the few lines showed below: > > > > DIM X AS Byte > > DIM Texte AS String[64] > > > > X = &h2E > > X += &hE0 > > TextBox1.Text = Hex(X) > > Texte[X] = Hex(X) > > > > I get '10E' displayed. Is this correct for a byte? > > If you put a breakpoint on the TextBox1 line, the local variables show X > > value as 14 (&h0E) which is correct. > > and the last line ends wit an 'out of bounds' message. > > > > (as a workaround, I actually insert a' X = X MOD 256' instruction just > > before the last line) > > > > If you wonder why the hell I've to use bytes, I'm working on a memory > > capture of an Amiga program ("Captive") running inside the emulator > > WinUAE. In those old days (twenty years ago), memory was 0.0005 Gb and > > byte usage was quite common! > > and more, the memory byte order was not compatible with the actual PC so > > you have to read memory byte by byte to restore the Amiga organisation > > > > regards, > > Dominique Simonart > > > > > > ------------------------------------------------------------------------- > >----- This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Sorry for missing needed information: > Gambas 2.8 OpenSuse 11.0 > > Dominique Simonart > > Apparently there is a problem, both in Gambas 2 and Gambas 3. I will investigate... -- Benoit Minisini From gambas at ...1... Fri Jan 30 02:14:46 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jan 2009 02:14:46 +0100 Subject: [Gambas-user] Problem with Byte datatype ? In-Reply-To: <4982280B.2080909@...11...> References: <498213E3.2000607@...11...> <4982280B.2080909@...11...> Message-ID: <200901300214.46754.gambas@...1...> On jeudi 29 janvier 2009, Simonart Dominique wrote: > Dominique SIMONART a ?crit : > > Hi evererybody, > > > > If I code the few lines showed below: > > > > DIM X AS Byte > > DIM Texte AS String[64] > > > > X = &h2E > > X += &hE0 > > TextBox1.Text = Hex(X) > > Texte[X] = Hex(X) > > > > I get '10E' displayed. Is this correct for a byte? > > If you put a breakpoint on the TextBox1 line, the local variables show X > > value as 14 (&h0E) which is correct. > > and the last line ends wit an 'out of bounds' message. > > > > (as a workaround, I actually insert a' X = X MOD 256' instruction just > > before the last line) > > > > If you wonder why the hell I've to use bytes, I'm working on a memory > > capture of an Amiga program ("Captive") running inside the emulator > > WinUAE. In those old days (twenty years ago), memory was 0.0005 Gb and > > byte usage was quite common! > > and more, the memory byte order was not compatible with the actual PC so > > you have to read memory byte by byte to restore the Amiga organisation > > > > regards, > > Dominique Simonart > > > > > > ------------------------------------------------------------------------- > >----- This SF.net email is sponsored by: > > SourcForge Community > > SourceForge wants to tell your story. > > http://p.sf.net/sfu/sf-spreadtheword > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Sorry for missing needed information: > Gambas 2.8 OpenSuse 11.0 > > Dominique Simonart > Things should be fixed in revision #1835 for Gambas 2 and #1836 for Gambas 3. -- Benoit Minisini From gambas at ...1... Fri Jan 30 02:27:14 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jan 2009 02:27:14 +0100 Subject: [Gambas-user] To wishlist: Missing assignment operator. In-Reply-To: <384d3900901290951h470a2016pf49b5f44c38d757a@...627...> References: <384d3900901290951h470a2016pf49b5f44c38d757a@...627...> Message-ID: <200901300227.14544.gambas@...1...> On jeudi 29 janvier 2009, Jussi Lahtinen wrote: > Hi! > > Now I have to write like this; > ff = ff ^ 1.2 > instead of this; > ff ^= 1.2 > > I think this is rarely used (not rare in my project), but nice to > have. I was little suprised that it is absent. > So, low priority. > Thanks! > > > Jussi > Done in Gambas 3, revision #1837. It was just one line to add to a file. :-) -- Benoit Minisini From ronstk at ...239... Fri Jan 30 08:05:46 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 30 Jan 2009 08:05:46 +0100 Subject: [Gambas-user] svn-compile error part1 Message-ID: <200901300805.46782.ronstk@...239...> part 0 update the 1830 to 1834 ron at ...1311...:/home/ron/src/gambas3/trunk# svn update Restored 'gb.gtk/src/gb.gtk/.info' Restored 'gb.gtk/src/gb.gtk/.list' Restored 'comp/src/gb.form.mdi/.list' Restored 'comp/src/gb.form.mdi/.info' Restored 'comp/src/gb.report/.list' Restored 'comp/src/gb.report/.info' Restored 'comp/src/gb.chart/.list' Restored 'comp/src/gb.chart/.info' Restored 'comp/src/gb.form/.list' Restored 'comp/src/gb.form/.info' Restored 'comp/src/gb.db.form/.list' Restored 'comp/src/gb.db.form/.info' Restored 'gb.qt/src/gb.qt/.info' Restored 'gb.qt/src/gb.qt/.list' U app/src/gambas3/.project U app/src/gambas3/FPropertyProject.form U app/src/gambas3/Design.module U main/gbx/gbx_exec_push.c U main/gbx/gbx_eval.c U main/gbx/gbx_c_collection.c U main/lib/debug/debug.c U main/lib/eval/eval.c G gb.v4l/src/gv4l2.c U gb.v4l/src/CWebcam.c U gb.v4l/src/CWebcam.h A gb.v4l/src/videodev2.h U gb.desktop/src/gb.desktop/.settings A examples/examples/Video/WebCam A examples/examples/Video/WebCam/.startup A examples/examples/Video/WebCam/.directory A examples/examples/Video/WebCam/settings.png A examples/examples/Video/WebCam/.project A examples/examples/Video/WebCam/FDevice.form A examples/examples/Video/WebCam/.icon.png A examples/examples/Video/WebCam/FDevice.class A examples/examples/Video/WebCam/camera.png A examples/examples/Video/WebCam/FMain.form A examples/examples/Video/WebCam/FMain.class Updated to revision 1834. Part 1 is to find out why the .info and .list files in comp/src/xxxx are deleted. under investigation Restored 'comp/src/gb.form.mdi/.list' Restored 'comp/src/gb.form.mdi/.info' Restored 'comp/src/gb.report/.list' Restored 'comp/src/gb.report/.info' Restored 'comp/src/gb.chart/.list' Restored 'comp/src/gb.chart/.info' Restored 'comp/src/gb.form/.list' Restored 'comp/src/gb.form/.info' Restored 'comp/src/gb.db.form/.list' Restored 'comp/src/gb.db.form/.info' I have saved those files in BACKUP place chmod those files in orginal place to root:root 444 (readonly!!!!) ./reconf-all [OK] ./configure [OK] make [OK] change from user:ron to user:root make install During make install the are simply deleted. Copy the BACKUP back cd comp make install -- MAKE DUMP --------------------------------------------------------------- make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' Running the informer again because of dependencies between information files gb gb.chart gbi3: warning: .info file not found in component archive. gb.compress gb.crypt gb.db gb.db.form gbi3: warning: .info file not found in component archive. gb.db.mysql gb.debug gb.desktop gb.eval gb.form gbi3: warning: .info file not found in component archive. gb.form.dialog gb.form.mdi gbi3: warning: .info file not found in component archive. gb.gtk gb.gtk.ext gb.gtk.svg gb.gui gb.image gb.image.io gb.info gb.net gb.net.curl gb.net.smtp gb.opengl gb.option gb.pcre gb.pdf gb.qt gb.qt.ext gb.qt.kde gb.qt.kde.html gb.qt.opengl gb.report gbi3: warning: .info file not found in component archive. gb.sdl gb.sdl.sound gb.settings gb.v4l gb.vb gb.web gb.xml gb.xml.rpc gb.xml.xslt Installing the components... Compiling gb.settings... OK Installing gb.settings... Compiling gb.info... OK Installing gb.info... Compiling gb.form... warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control Installing gb.form... /usr/bin/install: cannot stat `.info': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No such file or directory /usr/bin/install: cannot stat `.list': No such file or directory chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No such file or directory ----------------------------------------------------------------- Files are deleted Copy the BACKUP back investigate the Makefile The process where it happens -- MAKEFILE --------------------------------------------------------------- install-exec-local: @if test "x$(ROOT)" != "x"; then \ echo "Installing with ROOT=$(ROOT)"; \ echo; \ fi @if test "x$(DESTDIR)" != "x"; then \ echo "Installing with DESTDIR=$(DESTDIR)"; \ echo; \ ROOT=$DESTDIR; \ fi @echo "Running the informer again because of dependencies between information files" # @$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) @echo "Installing the components..." @(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \ echo "Compiling $$p..."; \ cd $$d/$$p; \ $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \ $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \ rm -rf .gambas; \ echo "Installing $$p..."; \ $(INSTALL) $$p.gambas $(DESTDIR)$(gblibdir); \ $(INSTALL) .component $(DESTDIR)$(gblibdir)/$$p.component; \ chmod a-x $(DESTDIR)$(gblibdir)/$$p.component; \ $(INSTALL) .info $(DESTDIR)$(gbdatadir)/info/$$p.info; \ chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.info; \ $(INSTALL) .list $(DESTDIR)$(gbdatadir)/info/$$p.list; \ chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.list; \ done; true) ----------------------------------------------------------------- from the MAKE-DUMP I found htese lines 1) @echo "Running the informer again because of dependencies between information files" 2) @$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) 3) @echo "Installing the components..." investigate gbi3 source code "GAMBAS Component Informer version " VERSION " " __DATE__ " " __TIME__ "\n" help line " -r --root gives the gambas installation directory\n" The lines in MAKEDUMP gbi3: warning: .info file not found in component archive. occurs in 2) so i put the # in it to prevent gbi3 can harm Copy the BACKUP back make install -- MAKEINSTALL2 ---------------------------------------------------- root at ...1311...:/home/ron/src/gambas3/trunk/comp# make install make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' Running the informer again because of dependencies between information files Installing the components... Compiling gb.settings... OK Installing gb.settings... Compiling gb.info... OK Installing gb.info... Compiling gb.form... warning: cannot read component list file: gb.form.list /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control Installing gb.form... files deleted. shit change Makefile to @echo "Running the informer again because of dependencies between information files" @echo "Destdir=$(DESTDIR) prefix=$(prefix) bindir=$(bindir) gbdatadir=$(gbdatadir) gblibdir=$(gblibdir)" @$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) mydone: @echo "Installing the components..." mydone as exit the process. Copy the BACKUP back root at ...1311...:/home/ron/src/gambas3/trunk/comp# make install make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' Running the informer again because of dependencies between information files Destdir= prefix=/usr/local bindir=/usr/local/bin gbdatadir=/usr/local/share/gambas3 gblibdir=/usr/local/lib/gambas3 gb gb.chart gbi3: warning: .info file not found in component archive. gb.compress gb.crypt Files not deleted. BUT why the gbi3 warning, the files are in place. Second to this is the gbi3 warnings occurs exact for only the files that are deleted later without the break by mydone: @echo "Installing the components..." @(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \ echo "Compiling $$d -/- $$p..."; \ cd $$d/$$p; \ rm -rf .gambas; \ + cp .list my.list \ + cp .info my.info \ $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \ $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \ + ls -al $$d/$$p; \ echo "Installing $$p..."; \ + cp my.list .list \ + cp my.info .info \ $(INSTALL) $$p.gambas $(DESTDIR)$(gblibdir); \ $(INSTALL) .component $(DESTDIR)$(gblibdir)/$$p.component; \ chmod a-x $(DESTDIR)$(gblibdir)/$$p.component; \ $(INSTALL) .info $(DESTDIR)$(gbdatadir)/info/$$p.info; \ chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.info; \ $(INSTALL) .list $(DESTDIR)$(gbdatadir)/info/$$p.list; \ chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.list; \ echo "---------------------------------------------------"; \ done; true) With using the line: ls -al $$d/$$p; \ I found when placed before gbc and gba the files are still there placing below the files are deleted. Also for the componenten with the deleted files the .gambas directory is also empty (chekced by disable the rm -rf .gambas line. Adding the cp .list my.list and cp my.list .list (respectively .info) the files are not deleted and last part of script, the $(INSTALL) works correct (sofar) Installing gb.info... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form... cp: invalid option -- g Try `cp --help' for more information. total 1216 drwxr-xr-x 8 ron ron 4096 2009-01-30 07:20 . drwxr-xr-x 12 ron ron 4096 2009-01-30 06:03 .. -rw-r--r-- 1 ron ron 1989 2009-01-29 00:42 Balloon.class -rw-r--r-- 1 ron ron 1693 2009-01-29 00:42 ColorButton.class -rw-r--r-- 1 ron ron 1239 2009-01-29 00:42 ColorChooser.class and now find it is enough to use cp .list my.list the copy is not done but deleting is also not done in terminal: cp .list my.list works OK but in Makefile I get: cp: invalid option -- g Try `cp --help' for more information. adding the ; on the single cp line and files are again deleted So for correct working of the cp command it must finish with ; Finak result is now: Installing the components... Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.settings... OK Installing gb.settings... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.info... OK Installing gb.info... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form... /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown identifier: Control Installing gb.form... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.dialog... /home/ron/src/gambas3/trunk/comp/src/gb.form.dialog/FDirDialog.class:52: Unknown identifier: HBox Installing gb.form.dialog... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.mdi... /home/ron/src/gambas3/trunk/comp/src/gb.form.mdi/Action.class:7: Unknown identifier: Window Installing gb.form.mdi... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.db.form... /home/ron/src/gambas3/trunk/comp/src/gb.db.form/Common.module:3: Unknown identifier: Control Installing gb.db.form... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.web... OK Installing gb.web... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.report... /home/ron/src/gambas3/trunk/comp/src/gb.report/FReportTutorial1.class:141: Unknown identifier: Button Installing gb.report... --------------------------------------------------- Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.chart... /home/ron/src/gambas3/trunk/comp/src/gb.chart/Chart.class:28: Unknown identifier: Color Installing gb.chart... --------------------------------------------------- make[1]: Nothing to be done for `install-data-am'. make[1]: Leaving directory `/home/ron/src/gambas3/trunk/comp' Much much better. common for the Unknown identifier: i have already posted but no answer. the filet is called xxxx.class but the identifier is in the xxxx.form after the second '{' # Gambas Form File 3.0 { Form Form ? MoveScaled(0,0,94,54) ? Text = ("Text Editor") ? Icon = Picture["icon:/16/edit"] ? Arrangement = Arrange.Vertical ? Spacing = 5 ? Padding = 5 ? { HBox1 HBox ? ? ? ? <------------------------------ this identifier ? ? ? MoveScaled(1,1,92,4) ? ? { btnLock ToolButton What ever is wrong in/at/on/under my box, is is stupid gba/gbc are delete the .info and .list files when they find this error. The .gambas directory that is deleted in every component loop is empty for these components. By missing this two files the next compile/install will gives error for ever because the missing of those files. Please check gbc and gba for this behaviour of delete. Is there a explain why it not is done when in the Makefile in the previous command (the by me wrong added "cp .list my.list") has a error. gambas2.10.2 did compile and run OK. With ./configure without --prefix then auto destdir is auto set to /usr/local and the symbolic links are in /usr/local/bin and not in /usr/bin I have good reason my box is correct condition to do the job. The major difference is svn or the source I get from svn. To check the svn part I need a tarball of a fresh svn checkout. How do I get this? Getting other code with svn did work and I can asume the svn installed is not totaly bad. I know this report is long but shows that I realy try to find what is going wrong. Also I can use gambas2 till final gambas3 is ready. Who can tell me I will be able to compile that final gambas3 whitout problems ?. Going for part 2 investigate: Restored 'gb.gtk/src/gb.gtk/.info' Restored 'gb.gtk/src/gb.gtk/.list' Restored 'gb.qt/src/gb.qt/.info' Restored 'gb.qt/src/gb.qt/.list' Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From wspinto at ...1405... Fri Jan 30 14:01:41 2009 From: wspinto at ...1405... (Wellington de Souza Pinto) Date: Fri, 30 Jan 2009 11:01:41 -0200 Subject: [Gambas-user] gambas3 Message-ID: <1233320501.4982fa3588b43@...1825...> Hi everyone! Have one week my gambas3 svn not work. Today i update svn version and after ./reconf-all; ./configure -C; make; make install i type gambas3 in prompt and show this message: ERROR: #2: Cannot load class 'Project': Unable to load class file Any idea??? Reguards, --------------------------------------------------------------- |||||/ Wellington de Souza Pinto C o o ] wspinto at ...1405... ^ -x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- ___________________________________________________________________________________ Para fazer uma liga??o DDD pra perto ou pra longe, faz um 21. A Embratel tem tarifas muito baratas esperando por voc?. Aproveite! From horechuk at ...981... Fri Jan 30 14:53:44 2009 From: horechuk at ...981... (Paul Horechuk) Date: Fri, 30 Jan 2009 08:53:44 -0500 Subject: [Gambas-user] Problem with Byte datatype ? In-Reply-To: <498213E3.2000607@...11...> References: <498213E3.2000607@...11...> Message-ID: <200901300853.44505.horechuk@...981...> On January 29, 2009, Dominique SIMONART wrote: > Hi evererybody, > > If I code the few lines showed below: > > DIM X AS Byte > DIM Texte AS String[64] > > X = &h2E > X += &hE0 > TextBox1.Text = Hex(X) > Texte[X] = Hex(X) > > I get '10E' displayed. Is this correct for a byte? I think the 10E indicates an overflow (the 1 part) and thus an error, as it won't fit in the 00 to FF range. The 0E would be the remainder. A question would be if you wanted signed or unsigned math. With E0 as signed (11100000) this is also -1F (00011111) (ones complement). Adding the 2 numbers would be 2E - 1F = 0F or something similar. I think there is actually a twos complement process that should be followed instead of the ones complement, but I think you get the picture. Basically, byte is the wrong datatype for this. > If you put a breakpoint on the TextBox1 line, the local variables show X > value as 14 (&h0E) which is correct. > and the last line ends wit an 'out of bounds' message. > > (as a workaround, I actually insert a' X = X MOD 256' instruction just > before the last line) > > If you wonder why the hell I've to use bytes, I'm working on a memory > capture of an Amiga program ("Captive") running inside the emulator > WinUAE. In those old days (twenty years ago), memory was 0.0005 Gb and > byte usage was quite common! > and more, the memory byte order was not compatible with the actual PC so > you have to read memory byte by byte to restore the Amiga organisation > > regards, > Dominique Simonart > > > ------------------------------------------------------------------------- >----- This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Paul Horechuk Think Free Use Open Source Software From leonardo at ...1237... Fri Jan 30 16:46:00 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 30 Jan 2009 16:46:00 +0100 Subject: [Gambas-user] Bug in Gambas IDE property viewer Message-ID: <498320B8.9080403@...1237...> I don't know if it is a new bug or an old one because I've noticed it only right now... but the comboboxes of the properties viewer don't work properly in every situation. As you can see in the attached screenshot, most of the times if I select a property with a combobox, the arrow on the right side of the combobox doesn't appear (it seems out of the desktop area) and, when I click on it, the menu is too large. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org -------------- next part -------------- A non-text attachment was scrubbed... Name: combobox.jpg Type: image/jpeg Size: 6759 bytes Desc: not available URL: From leo_senpao at ...1541... Fri Jan 30 16:55:04 2009 From: leo_senpao at ...1541... (Leo Sendra) Date: Fri, 30 Jan 2009 23:55:04 +0800 (SGT) Subject: [Gambas-user] How to upgrade gambas? Message-ID: <15397.11059.qm@...1991...> Hi all... I want to upgrade my Gambas2 to the higher version. How to do that? Do I uninstall the old version and compile/install the newer version? Thanks.. Selalu bersama teman-teman di Yahoo! Messenger. Tambahkan mereka dari email atau jaringan sosial Anda sekarang! http://id.messenger.yahoo.com/invite/ From gambas at ...1... Fri Jan 30 16:53:59 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jan 2009 16:53:59 +0100 Subject: [Gambas-user] Bug in Gambas IDE property viewer In-Reply-To: <498320B8.9080403@...1237...> References: <498320B8.9080403@...1237...> Message-ID: <200901301653.59959.gambas@...1...> On vendredi 30 janvier 2009, Leonardo Miliani wrote: > I don't know if it is a new bug or an old one because I've noticed it > only right now... but the comboboxes of the properties viewer don't work > properly in every situation. > > As you can see in the attached screenshot, most of the times if I select > a property with a combobox, the arrow on the right side of the combobox > doesn't appear (it seems out of the desktop area) and, when I click on > it, the menu is too large. Which version of gambas??? -- Benoit Minisini From leonardo at ...1237... Fri Jan 30 16:59:02 2009 From: leonardo at ...1237... (Leonardo Miliani) Date: Fri, 30 Jan 2009 16:59:02 +0100 Subject: [Gambas-user] Bug in Gambas IDE property viewer In-Reply-To: <498320B8.9080403@...1237...> References: <498320B8.9080403@...1237...> Message-ID: <498323C6.6010107@...1237...> Sorry, I use Gambas 2.11.0 on Ubuntu 8.10. -- Ciao. Leo. Web: www.leonardomiliani.com E-mail: leonardo at ...1237... Scegli software opensource - Choose opensource software Co-fondatore di Gambas-it.org Il sito di riferimento della comunit? italiana degli utenti di Gambas www.gambas-it.org From wdahn at ...1000... Fri Jan 30 17:17:36 2009 From: wdahn at ...1000... (Werner) Date: Sat, 31 Jan 2009 00:17:36 +0800 Subject: [Gambas-user] How to upgrade gambas? In-Reply-To: <15397.11059.qm@...1991...> References: <15397.11059.qm@...1991...> Message-ID: <49832820.8040302@...1000...> Leo Sendra wrote: > Hi all... I want to upgrade my Gambas2 to the higher version. How to do that? > Do I uninstall the old version and compile/install the newer version? > > Thanks.. > > > > Selalu bersama teman-teman di Yahoo! Messenger. Tambahkan mereka dari email atau jaringan sosial Anda sekarang! http://id.messenger.yahoo.com/invite/ > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Selamat Pagi, please tell us what version you have now and what version you would like to use. Best Regards Werner From joshiggins at ...1601... Fri Jan 30 19:00:53 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Fri, 30 Jan 2009 18:00:53 +0000 Subject: [Gambas-user] strange problem using UDP server clients Message-ID: <4247f5440901301000x60bf43fex9d2c7838c488b8bb@...627...> hello all, at the moment in my program I have multiple commands that have to be run through SHELL in order, one after another. currently im doing this using WAIT, but this stops the execution of my gambas program till the command is finished. however my program is also doing other tasks (timers etc) which also stop. is there any way to wait for a command launched through SHELL to finish without using WAIT, but so that it still continue executing my gambas program? thanks. -- joshua higgins >>>>>>------ From ronstk at ...239... Fri Jan 30 19:24:26 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 30 Jan 2009 19:24:26 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <1233320501.4982fa3588b43@...1825...> References: <1233320501.4982fa3588b43@...1825...> Message-ID: <200901301924.26705.ronstk@...239...> On Friday 30 January 2009, Wellington de Souza Pinto wrote: > Hi everyone! > > Have one week my gambas3 svn not work. > > Today i update svn version and after ./reconf-all; ./configure -C; make; make > install > i type gambas3 in prompt and show this message: > ERROR: #2: Cannot load class 'Project': Unable to load class file > > Any idea??? > > > Reguards, > Thats my problem too check your make install for errors use: ( ./configure; make; make install ) > output.txt 2>&1 or for ubuntu use: sudo make install > output-install.txt 2>&1 check /comp/gb.form/src/gb.form for existing .info and .list file Do they exist or not? Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From Karl.Reinl at ...9... Fri Jan 30 19:56:52 2009 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 30 Jan 2009 19:56:52 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <200901301924.26705.ronstk@...239...> References: <1233320501.4982fa3588b43@...1825...> <200901301924.26705.ronstk@...239...> Message-ID: <1233341812.8039.8.camel@...40...> Am Freitag, den 30.01.2009, 19:24 +0100 schrieb Ron_1st: > On Friday 30 January 2009, Wellington de Souza Pinto wrote: > > Hi everyone! > > > > Have one week my gambas3 svn not work. > > > > Today i update svn version and after ./reconf-all; ./configure -C; make; make > > install > > i type gambas3 in prompt and show this message: > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > > Any idea??? > > > > > > Reguards, > > > > Thats my problem too > > check your make install for errors > use: ( ./configure; make; make install ) > output.txt 2>&1 > > or for ubuntu > use: sudo make install > output-install.txt 2>&1 > > check /comp/gb.form/src/gb.form for existing .info and .list file > Do they exist or not? > > > > > Best regards, > > Ron_1st > Salut, found the same on my Ubuntu 8.04 disabled v4l (too much errors) This I get when I make at ./opt/gambas/3/gambas-svn30/app/src/gambas3 a gbc3 -agt warning: cannot read component list file: gb.form.list warning: cannot read component list file: gb.form.mdi.list /opt/gambas/3/gambas-svn30/app/src/gambas3/CClassInfo.class:75: Unknown identifier: Form Attached my in/outputs I also had before cleaned up all Dirs/and .configs like '*gambas3*' on this System. -- Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: the_make_of_gambas3.tar.bz2 Type: application/x-bzip-compressed-tar Size: 36148 bytes Desc: not available URL: From doriano.blengino at ...1909... Fri Jan 30 20:23:00 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 30 Jan 2009 20:23:00 +0100 Subject: [Gambas-user] Problem with Byte datatype ? In-Reply-To: <200901300853.44505.horechuk@...981...> References: <498213E3.2000607@...11...> <200901300853.44505.horechuk@...981...> Message-ID: <49835394.1050809@...1909...> Paul Horechuk ha scritto: > On January 29, 2009, Dominique SIMONART wrote: > >> Hi evererybody, >> >> If I code the few lines showed below: >> >> DIM X AS Byte >> DIM Texte AS String[64] >> >> X = &h2E >> X += &hE0 >> TextBox1.Text = Hex(X) >> Texte[X] = Hex(X) >> >> I get '10E' displayed. Is this correct for a byte? >> > I think the 10E indicates an overflow (the 1 part) and thus an error, as it > won't fit in the 00 to FF range. The 0E would be the remainder. A question > would be if you wanted signed or unsigned math. With E0 as signed > (11100000) this is also -1F (00011111) (ones complement). Adding the 2 > numbers would be 2E - 1F = 0F or something similar. > > I think there is actually a twos complement process that should be followed > instead of the ones complement, but I think you get the picture. > > Basically, byte is the wrong datatype for this. > > I think there is nothing wrong in the code; perhaps something wrong is in gambas. It is common practice to use integers to do this exact kind of things. By definition a byte is unsigned but, even if it was signed, an overflow in addition should lead to one of two things: a silent loss of data (overflow), or an exception/runtime error or whatever. A byte cannot hold values larger than 255, so the value 0x10E is unreasonable - apparently, gambas bytes are not really bytes... >> If you put a breakpoint on the TextBox1 line, the local variables show X >> value as 14 (&h0E) which is correct. >> and the last line ends wit an 'out of bounds' message. >> >> (as a workaround, I actually insert a' X = X MOD 256' instruction just >> before the last line) >> >> If you wonder why the hell I've to use bytes, I'm working on a memory >> capture of an Amiga program ("Captive") running inside the emulator >> WinUAE. In those old days (twenty years ago), memory was 0.0005 Gb and >> byte usage was quite common! >> and more, the memory byte order was not compatible with the actual PC so >> you have to read memory byte by byte to restore the Amiga organisation >> >> regards, >> Dominique Simonart >> >> >> ------------------------------------------------------------------------- >> ----- This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From doriano.blengino at ...1909... Fri Jan 30 20:27:18 2009 From: doriano.blengino at ...1909... (Doriano Blengino) Date: Fri, 30 Jan 2009 20:27:18 +0100 Subject: [Gambas-user] strange problem using UDP server clients In-Reply-To: <4247f5440901301000x60bf43fex9d2c7838c488b8bb@...627...> References: <4247f5440901301000x60bf43fex9d2c7838c488b8bb@...627...> Message-ID: <49835496.8060902@...1909...> Joshua Higgins ha scritto: > hello all, > > at the moment in my program I have multiple commands that have to be run > through SHELL in order, one after another. currently im doing this using > WAIT, but this stops the execution of my gambas program till the command is > finished. however my program is also doing other tasks (timers etc) which > also stop. > > is there any way to wait for a command launched through SHELL to finish > without using WAIT, but so that it still continue executing my gambas > program? > You must use a process handle (if I well remember, "hProc = SHELL ...", without using WAIT). Then, you can poll hProc properties. See the docs about SHELL. More infos if you need them. Regards, -- Doriano Blengino "Listen twice before you speak. This is why we have two ears, but only one mouth." From m0e.lnx at ...626... Fri Jan 30 20:40:24 2009 From: m0e.lnx at ...626... (M0E Lnx) Date: Fri, 30 Jan 2009 19:40:24 +0000 Subject: [Gambas-user] Nesting objects into gridview cells Message-ID: <1f1e8c1b0901301140m7f961418gbd427052d8731a2b@...627...> Hello guys. I'd like to know how if anyone has ever been able to nest objects like comboboxes, buttons, checkboxes or anything like that into a gridview's cell. I guess what I'm looking for is a way to do what the gambas IDE does for a forms or objects properties side panel I'm attaching a picgure of what I mean so I can be better understood If anyone can suggest a way to do this, I'd greatly appreciate it Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: nested objects.png Type: image/png Size: 16138 bytes Desc: not available URL: From ronstk at ...239... Fri Jan 30 20:49:04 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 30 Jan 2009 20:49:04 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <1233341812.8039.8.camel@...40...> References: <1233320501.4982fa3588b43@...1825...> <200901301924.26705.ronstk@...239...> <1233341812.8039.8.camel@...40...> Message-ID: <200901302049.04368.ronstk@...239...> On Friday 30 January 2009, Charlie Reinl wrote: > Am Freitag, den 30.01.2009, 19:24 +0100 schrieb Ron_1st: > > On Friday 30 January 2009, Wellington de Souza Pinto wrote: > > > Hi everyone! > > > > > > Have one week my gambas3 svn not work. > > > > > > Today i update svn version and after ./reconf-all; ./configure -C; make; make > > > install > > > i type gambas3 in prompt and show this message: > > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > > > > > Any idea??? > > > > > > > > > Reguards, > > > > > > > Thats my problem too > > > > check your make install for errors > > use: ( ./configure; make; make install ) > output.txt 2>&1 > > > > or for ubuntu > > use: sudo make install > output-install.txt 2>&1 > > > > check /comp/gb.form/src/gb.form for existing .info and .list file > > Do they exist or not? > > > > > > > > > > Best regards, > > > > Ron_1st > > > Salut, > > found the same on my Ubuntu 8.04 > disabled v4l (too much errors) > > This I get when I make at ./opt/gambas/3/gambas-svn30/app/src/gambas3 > a gbc3 -agt > warning: cannot read component list file: gb.form.list > warning: cannot read component list file: gb.form.mdi.list > /opt/gambas/3/gambas-svn30/app/src/gambas3/CClassInfo.class:75: Unknown > identifier: Form > > Attached my in/outputs > > I also had before cleaned up all Dirs/and .configs like '*gambas3*' > on this System. Hi Charlie, Thanks for your report in german As i see it is exactly the same as mine. see my invetigation report " svn-compile error part1" Bad for you but i'm happy with it, so i'm not talking garbage anymore. We are at least with 2 now, may be 3 if wellington has the same log for make install. For the gbv4l I have send the patch/correction in the list. I'm using kubuntu 8.04 $ aclocal --version aclocal (GNU automake) 1.4-p6 $ automake --version automake (GNU automake) 1.4-p6 $ libtool --version ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 2008/02/01 16:58:18) Question to Benoit I have 2 directories for aclocal, aclocal and aclocal-1.9 the configure script refer to the 1.9, does aclocal/automake fall back to the aclocal for missing *.m4 files ? Best regards, Ron_1st -- From ronstk at ...239... Fri Jan 30 21:11:16 2009 From: ronstk at ...239... (Ron_1st) Date: Fri, 30 Jan 2009 21:11:16 +0100 Subject: [Gambas-user] Nesting objects into gridview cells In-Reply-To: <1f1e8c1b0901301140m7f961418gbd427052d8731a2b@...627...> References: <1f1e8c1b0901301140m7f961418gbd427052d8731a2b@...627...> Message-ID: <200901302111.16667.ronstk@...239...> On Friday 30 January 2009, M0E Lnx wrote: > Hello guys. > > I'd like to know how if anyone has ever been able to nest objects like > comboboxes, buttons, checkboxes or anything like that into a > gridview's cell. > > I guess what I'm looking for is a way to do what the gambas IDE does > for a forms or objects properties side panel > > I'm attaching a picgure of what I mean so I can be better understood > > If anyone can suggest a way to do this, I'd greatly appreciate it > > Thank you > this is not _in_ the cell but overlay on the cell create the combobox run/design time as hidden control in the same container as the grid on events of the grid as mouse_down or click copy width/height of the cell to the combobox. Set left and height as the cells left/height and make visible On leave of the combobox get the entered/selected data and hidde the combobox. I made it for a project of mine and did works very nice. gambas does not work anymore now. It was a program i write in php and reprogrammed in gambas but I'm back in php with it. Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Fri Jan 30 23:28:50 2009 From: gambas at ...1... (Benoit Minisini) Date: Fri, 30 Jan 2009 23:28:50 +0100 Subject: [Gambas-user] svn-compile error part1 In-Reply-To: <200901300805.46782.ronstk@...239...> References: <200901300805.46782.ronstk@...239...> Message-ID: <200901302328.50857.gambas@...1...> On vendredi 30 janvier 2009, Ron_1st wrote: > part 0 > update the 1830 to 1834 > > ron at ...1311...:/home/ron/src/gambas3/trunk# svn update > Restored 'gb.gtk/src/gb.gtk/.info' > Restored 'gb.gtk/src/gb.gtk/.list' > Restored 'comp/src/gb.form.mdi/.list' > Restored 'comp/src/gb.form.mdi/.info' > Restored 'comp/src/gb.report/.list' > Restored 'comp/src/gb.report/.info' > Restored 'comp/src/gb.chart/.list' > Restored 'comp/src/gb.chart/.info' > Restored 'comp/src/gb.form/.list' > Restored 'comp/src/gb.form/.info' > Restored 'comp/src/gb.db.form/.list' > Restored 'comp/src/gb.db.form/.info' > Restored 'gb.qt/src/gb.qt/.info' > Restored 'gb.qt/src/gb.qt/.list' > U app/src/gambas3/.project > U app/src/gambas3/FPropertyProject.form > U app/src/gambas3/Design.module > U main/gbx/gbx_exec_push.c > U main/gbx/gbx_eval.c > U main/gbx/gbx_c_collection.c > U main/lib/debug/debug.c > U main/lib/eval/eval.c > G gb.v4l/src/gv4l2.c > U gb.v4l/src/CWebcam.c > U gb.v4l/src/CWebcam.h > A gb.v4l/src/videodev2.h > U gb.desktop/src/gb.desktop/.settings > A examples/examples/Video/WebCam > A examples/examples/Video/WebCam/.startup > A examples/examples/Video/WebCam/.directory > A examples/examples/Video/WebCam/settings.png > A examples/examples/Video/WebCam/.project > A examples/examples/Video/WebCam/FDevice.form > A examples/examples/Video/WebCam/.icon.png > A examples/examples/Video/WebCam/FDevice.class > A examples/examples/Video/WebCam/camera.png > A examples/examples/Video/WebCam/FMain.form > A examples/examples/Video/WebCam/FMain.class > Updated to revision 1834. > > > > Part 1 is to find out why the .info and .list files in comp/src/xxxx are > deleted. > > under investigation > Restored 'comp/src/gb.form.mdi/.list' > Restored 'comp/src/gb.form.mdi/.info' > Restored 'comp/src/gb.report/.list' > Restored 'comp/src/gb.report/.info' > Restored 'comp/src/gb.chart/.list' > Restored 'comp/src/gb.chart/.info' > Restored 'comp/src/gb.form/.list' > Restored 'comp/src/gb.form/.info' > Restored 'comp/src/gb.db.form/.list' > Restored 'comp/src/gb.db.form/.info' > > I have saved those files in BACKUP place > chmod those files in orginal place to root:root 444 (readonly!!!!) > > ./reconf-all [OK] > ./configure [OK] > make [OK] > > > > change from user:ron to user:root > > make install > > During make install the are simply deleted. > > Copy the BACKUP back > cd comp > make install > > > -- MAKE DUMP > --------------------------------------------------------------- make[1]: > Entering directory `/home/ron/src/gambas3/trunk/comp' > Running the informer again because of dependencies between information > files gb > gb.chart > gbi3: warning: .info file not found in component archive. > gb.compress > gb.crypt > gb.db > gb.db.form > gbi3: warning: .info file not found in component archive. > gb.db.mysql > gb.debug > gb.desktop > gb.eval > gb.form > gbi3: warning: .info file not found in component archive. > gb.form.dialog > gb.form.mdi > gbi3: warning: .info file not found in component archive. > gb.gtk > gb.gtk.ext > gb.gtk.svg > gb.gui > gb.image > gb.image.io > gb.info > gb.net > gb.net.curl > gb.net.smtp > gb.opengl > gb.option > gb.pcre > gb.pdf > gb.qt > gb.qt.ext > gb.qt.kde > gb.qt.kde.html > gb.qt.opengl > gb.report > gbi3: warning: .info file not found in component archive. > gb.sdl > gb.sdl.sound > gb.settings > gb.v4l > gb.vb > gb.web > gb.xml > gb.xml.rpc > gb.xml.xslt > Installing the components... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.info... > OK > Installing gb.info... > Compiling gb.form... > warning: cannot read component list file: gb.form.list > /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown > identifier: Control Installing gb.form... > /usr/bin/install: cannot stat `.info': No such file or directory > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.info': No such > file or directory /usr/bin/install: cannot stat `.list': No such file or > directory > chmod: cannot access `/usr/local/share/gambas3/info/gb.form.list': No such > file or directory > ----------------------------------------------------------------- > > > > > > Files are deleted > > Copy the BACKUP back > > investigate the Makefile > The process where it happens > > -- MAKEFILE --------------------------------------------------------------- > install-exec-local: > @if test "x$(ROOT)" != "x"; then \ > echo "Installing with ROOT=$(ROOT)"; \ > echo; \ > fi > > @if test "x$(DESTDIR)" != "x"; then \ > echo "Installing with DESTDIR=$(DESTDIR)"; \ > echo; \ > ROOT=$DESTDIR; \ > fi > > @echo "Running the informer again because of dependencies between > information files" # @$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r > $(DESTDIR)$(prefix) @echo "Installing the components..." > @(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \ > echo "Compiling $$p..."; \ > cd $$d/$$p; \ > $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \ > $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \ > rm -rf .gambas; \ > echo "Installing $$p..."; \ > $(INSTALL) $$p.gambas $(DESTDIR)$(gblibdir); \ > $(INSTALL) .component $(DESTDIR)$(gblibdir)/$$p.component; \ > chmod a-x $(DESTDIR)$(gblibdir)/$$p.component; \ > $(INSTALL) .info $(DESTDIR)$(gbdatadir)/info/$$p.info; \ > chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.info; \ > $(INSTALL) .list $(DESTDIR)$(gbdatadir)/info/$$p.list; \ > chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.list; \ > done; true) > ----------------------------------------------------------------- > > from the MAKE-DUMP I found htese lines > > 1) @echo "Running the informer again because of dependencies between > information files" 2) @$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r > $(DESTDIR)$(prefix) 3) @echo "Installing the components..." > > > investigate gbi3 source code > "GAMBAS Component Informer version " VERSION " " __DATE__ " " __TIME__ "\n" > help line " -r --root gives the gambas installation > directory\n" > > > The lines in MAKEDUMP > gbi3: warning: .info file not found in component archive. > occurs in 2) so i put the # in it to prevent gbi3 can harm > > Copy the BACKUP back > make install > > > -- MAKEINSTALL2 ---------------------------------------------------- > root at ...1311...:/home/ron/src/gambas3/trunk/comp# make install > make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' > Running the informer again because of dependencies between information > files Installing the components... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.info... > OK > Installing gb.info... > Compiling gb.form... > warning: cannot read component list file: gb.form.list > /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown > identifier: Control Installing gb.form... > > files deleted. shit > > change Makefile to > > @echo "Running the informer again because of dependencies between > information files" @echo "Destdir=$(DESTDIR) prefix=$(prefix) > bindir=$(bindir) gbdatadir=$(gbdatadir) gblibdir=$(gblibdir)" > @$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) > mydone: > @echo "Installing the components..." > > mydone as exit the process. > > Copy the BACKUP back > > root at ...1311...:/home/ron/src/gambas3/trunk/comp# make install > > make[1]: Entering directory `/home/ron/src/gambas3/trunk/comp' > Running the informer again because of dependencies between information > files Destdir= prefix=/usr/local bindir=/usr/local/bin > gbdatadir=/usr/local/share/gambas3 gblibdir=/usr/local/lib/gambas3 gb > gb.chart > gbi3: warning: .info file not found in component archive. > gb.compress > gb.crypt > > Files not deleted. > > BUT why the gbi3 warning, the files are in place. > Second to this is the gbi3 warnings occurs exact for only the files that > are deleted later without the break by mydone: > > > @echo "Installing the components..." > @(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \ > echo "Compiling $$d -/- $$p..."; \ > cd $$d/$$p; \ > rm -rf .gambas; \ > + cp .list my.list \ > + cp .info my.info \ > $(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -ag -r $(DESTDIR)$(prefix); \ > $(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \ > + ls -al $$d/$$p; \ > echo "Installing $$p..."; \ > + cp my.list .list \ > + cp my.info .info \ > $(INSTALL) $$p.gambas $(DESTDIR)$(gblibdir); \ > $(INSTALL) .component $(DESTDIR)$(gblibdir)/$$p.component; \ > chmod a-x $(DESTDIR)$(gblibdir)/$$p.component; \ > $(INSTALL) .info $(DESTDIR)$(gbdatadir)/info/$$p.info; \ > chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.info; \ > $(INSTALL) .list $(DESTDIR)$(gbdatadir)/info/$$p.list; \ > chmod a-x $(DESTDIR)$(gbdatadir)/info/$$p.list; \ > echo "---------------------------------------------------"; \ > done; true) > > With using the line: ls -al $$d/$$p; \ > > I found when placed before gbc and gba the files are still there > placing below the files are deleted. > Also for the componenten with the deleted files the .gambas directory > is also empty (chekced by disable the rm -rf .gambas line. > > Adding the cp .list my.list and cp my.list .list (respectively .info) > the files are not deleted and last part of script, the $(INSTALL) works > correct (sofar) > > > Installing gb.info... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form... > cp: invalid option -- g > Try `cp --help' for more information. > total 1216 > drwxr-xr-x 8 ron ron 4096 2009-01-30 07:20 . > drwxr-xr-x 12 ron ron 4096 2009-01-30 06:03 .. > -rw-r--r-- 1 ron ron 1989 2009-01-29 00:42 Balloon.class > -rw-r--r-- 1 ron ron 1693 2009-01-29 00:42 ColorButton.class > -rw-r--r-- 1 ron ron 1239 2009-01-29 00:42 ColorChooser.class > > and now find it is enough to use cp .list my.list > the copy is not done but deleting is also not done > > in terminal: cp .list my.list works OK but in Makefile I get: > cp: invalid option -- g > Try `cp --help' for more information. > adding the ; on the single cp line and files are again deleted > So for correct working of the cp command it must finish with ; > > Finak result is now: > Installing the components... > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.settings... > OK > Installing gb.settings... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.info... > OK > Installing gb.info... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form... > /home/ron/src/gambas3/trunk/comp/src/gb.form/Balloon.class:5: Unknown > identifier: Control Installing gb.form... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.dialog... > /home/ron/src/gambas3/trunk/comp/src/gb.form.dialog/FDirDialog.class:52: > Unknown identifier: HBox Installing gb.form.dialog... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.form.mdi... > /home/ron/src/gambas3/trunk/comp/src/gb.form.mdi/Action.class:7: Unknown > identifier: Window Installing gb.form.mdi... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.db.form... > /home/ron/src/gambas3/trunk/comp/src/gb.db.form/Common.module:3: Unknown > identifier: Control Installing gb.db.form... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.web... > OK > Installing gb.web... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.report... > /home/ron/src/gambas3/trunk/comp/src/gb.report/FReportTutorial1.class:141: > Unknown identifier: Button Installing gb.report... > --------------------------------------------------- > Compiling /home/ron/src/gambas3/trunk/comp/src -/- gb.chart... > /home/ron/src/gambas3/trunk/comp/src/gb.chart/Chart.class:28: Unknown > identifier: Color Installing gb.chart... > --------------------------------------------------- > make[1]: Nothing to be done for `install-data-am'. > make[1]: Leaving directory `/home/ron/src/gambas3/trunk/comp' > > > Much much better. > common for the Unknown identifier: i have already posted but no answer. > the filet is called xxxx.class but the identifier is in the xxxx.form > after the second '{' > > # Gambas Form File 3.0 > > { Form Form > ? MoveScaled(0,0,94,54) > ? Text = ("Text Editor") > ? Icon = Picture["icon:/16/edit"] > ? Arrangement = Arrange.Vertical > ? Spacing = 5 > ? Padding = 5 > ? { HBox1 HBox ? ? ? ? <------------------------------ this identifier ? > ? ? MoveScaled(1,1,92,4) > ? ? { btnLock ToolButton > > > > What ever is wrong in/at/on/under my box, is is stupid gba/gbc are delete > the .info and .list files when they find this error. > The .gambas directory that is deleted in every component loop is empty for > these components. By missing this two files the next compile/install will > gives error for ever because the missing of those files. > > Please check gbc and gba for this behaviour of delete. > Is there a explain why it not is done when in the Makefile > in the previous command (the by me wrong added "cp .list my.list") > has a error. > > > > > > gambas2.10.2 did compile and run OK. > With ./configure without --prefix then auto destdir is auto set to > /usr/local and the symbolic links are in /usr/local/bin and not in /usr/bin > I have good reason my box is correct condition to do the job. > > The major difference is svn or the source I get from svn. > To check the svn part I need a tarball of a fresh svn checkout. How do I > get this? Getting other code with svn did work and I can asume the svn > installed is not totaly bad. > > > > I know this report is long but shows that I realy try to find what is going > wrong. Also I can use gambas2 till final gambas3 is ready. > Who can tell me I will be able to compile that final gambas3 whitout > problems ?. > > > > Going for part 2 investigate: > > Restored 'gb.gtk/src/gb.gtk/.info' > Restored 'gb.gtk/src/gb.gtk/.list' > Restored 'gb.qt/src/gb.qt/.info' > Restored 'gb.qt/src/gb.qt/.list' > > > > Best regards, > > Ron_1st I am going to test from a fresh checkout to understand what happens exactly... Wait a moment! :-) -- Benoit Minisini From joshiggins at ...1601... Sat Jan 31 00:02:37 2009 From: joshiggins at ...1601... (Joshua Higgins) Date: Fri, 30 Jan 2009 23:02:37 +0000 Subject: [Gambas-user] strange problem using UDP server clients In-Reply-To: <49835496.8060902@...1909...> References: <4247f5440901301000x60bf43fex9d2c7838c488b8bb@...627...> <49835496.8060902@...1909...> Message-ID: <4247f5440901301502l728de615q8654a288b7a23af2@...627...> I've just noticed the title of my post has nothing to do with what I'm asking... sorry about that. 2009/1/30 Doriano Blengino > Joshua Higgins ha scritto: > > hello all, > > > > at the moment in my program I have multiple commands that have to be run > > through SHELL in order, one after another. currently im doing this using > > WAIT, but this stops the execution of my gambas program till the command > is > > finished. however my program is also doing other tasks (timers etc) which > > also stop. > > > > is there any way to wait for a command launched through SHELL to finish > > without using WAIT, but so that it still continue executing my gambas > > program? > > > You must use a process handle (if I well remember, "hProc = SHELL ...", > without using WAIT). > Then, you can poll hProc properties. > See the docs about SHELL. More infos if you need them. > > Regards, > > -- > Doriano Blengino > > "Listen twice before you speak. > This is why we have two ears, but only one mouth." > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- joshua higgins >>>>>>------ From leo_senpao at ...1541... Sat Jan 31 00:54:34 2009 From: leo_senpao at ...1541... (Leo Sendra) Date: Sat, 31 Jan 2009 07:54:34 +0800 (SGT) Subject: [Gambas-user] How to upgrade gambas? Message-ID: <350192.18273.qm@...2064...> >Selamat Pagi, > >please tell us what version you have now and what version you would like >to use. >Best Regards >Werner I have installed gambas2 version 2.7 and want to try gambas2 2.11. how? thanks.. ___________________________________________________________________________ Dapatkan nama yang Anda sukai! Sekarang Anda dapat memiliki email di @ymail.com dan @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/id/ From ronstk at ...239... Sat Jan 31 01:49:37 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 31 Jan 2009 01:49:37 +0100 Subject: [Gambas-user] svn-compile error part1 In-Reply-To: <200901302328.50857.gambas@...1...> References: <200901300805.46782.ronstk@...239...> <200901302328.50857.gambas@...1...> Message-ID: <200901310149.37970.ronstk@...239...> On Friday 30 January 2009, Benoit Minisini wrote: > On vendredi 30 janvier 2009, Ron_1st wrote: ====8<====== > > > > Best regards, > > > > Ron_1st > > I am going to test from a fresh checkout to understand what happens exactly... > Wait a moment! :-) > OK Found some other code related things but first the comile and install. Also it kan be of course a (k)ubuntu problem, see answer to charlie about aclocal. Thanks for look and try. Best regards, Ron_1st -- From ronstk at ...239... Sat Jan 31 01:53:25 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 31 Jan 2009 01:53:25 +0100 Subject: [Gambas-user] strange problem using UDP server clients In-Reply-To: <4247f5440901301000x60bf43fex9d2c7838c488b8bb@...627...> References: <4247f5440901301000x60bf43fex9d2c7838c488b8bb@...627...> Message-ID: <200901310153.25611.ronstk@...239...> On Friday 30 January 2009, Joshua Higgins wrote: > is there any way to wait for a command launched through SHELL to finish > without using WAIT, but so that it still continue executing my gambas > program? > try in the shell string at the end the ampersand character (&) shell("/usr/bin/docommand -option1=lookinthemirror &") Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From gambas at ...1... Sat Jan 31 03:04:10 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Jan 2009 03:04:10 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <200901302049.04368.ronstk@...239...> References: <1233320501.4982fa3588b43@...1825...> <1233341812.8039.8.camel@...40...> <200901302049.04368.ronstk@...239...> Message-ID: <200901310304.10724.gambas@...1...> On vendredi 30 janvier 2009, Ron_1st wrote: > > Question to Benoit > I have 2 directories for aclocal, aclocal and aclocal-1.9 > the configure script refer to the 1.9, does aclocal/automake fall back to > the aclocal for missing *.m4 files ? > I don't know what you are talking about. Where are these two aclocal directories? -- Benoit Minisini From gambas at ...1... Sat Jan 31 03:11:19 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Jan 2009 03:11:19 +0100 Subject: [Gambas-user] Bug in Gambas IDE property viewer In-Reply-To: <498323C6.6010107@...1237...> References: <498320B8.9080403@...1237...> <498323C6.6010107@...1237...> Message-ID: <200901310311.19310.gambas@...1...> On vendredi 30 janvier 2009, Leonardo Miliani wrote: > Sorry, I use Gambas 2.11.0 on Ubuntu 8.10. I fixed the bug in revision #1838. I will make a 2.11.1 version as soon as possible with it. Regards, -- Benoit Minisini From gambas at ...1... Sat Jan 31 03:01:35 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Jan 2009 03:01:35 +0100 Subject: [Gambas-user] svn-compile error part1 In-Reply-To: <200901310149.37970.ronstk@...239...> References: <200901300805.46782.ronstk@...239...> <200901302328.50857.gambas@...1...> <200901310149.37970.ronstk@...239...> Message-ID: <200901310301.35685.gambas@...1...> On samedi 31 janvier 2009, Ron_1st wrote: > On Friday 30 January 2009, Benoit Minisini wrote: > > On vendredi 30 janvier 2009, Ron_1st wrote: > > ====8<====== > > > > Best regards, > > > > > > Ron_1st > > > > I am going to test from a fresh checkout to understand what happens > > exactly... Wait a moment! :-) > > OK > > Found some other code related things but first the comile and install. > Also it kan be of course a (k)ubuntu problem, see answer to charlie > about aclocal. > > Thanks for look and try. > > > > Best regards, > > Ron_1st I compiled and installed a fresh checkout of trunk, and I got no error at all, and all the warnings I got are normal. So at the moment, I don't understand what happens on your system. Did you try to do everything except installation as a normal user? -- Benoit Minisini From ronstk at ...239... Sat Jan 31 03:39:38 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 31 Jan 2009 03:39:38 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <200901310304.10724.gambas@...1...> References: <1233320501.4982fa3588b43@...1825...> <200901302049.04368.ronstk@...239...> <200901310304.10724.gambas@...1...> Message-ID: <200901310339.38416.ronstk@...239...> On Saturday 31 January 2009, Benoit Minisini wrote: > On vendredi 30 janvier 2009, Ron_1st wrote: > > > > Question to Benoit > > I have 2 directories for aclocal, aclocal and aclocal-1.9 > > the configure script refer to the 1.9, does aclocal/automake fall back to > > the aclocal for missing *.m4 files ? > > > > I don't know what you are talking about. Where are these two aclocal > directories? > reconf and/or configure use it. /usr/share/aclocal /usr/share/aclocal-1.9 # aclocal --version aclocal (GNU automake) 1.9.6 # automake --version automake (GNU automake) 1.9.6 # libtool --version ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 2008/02/01 16:58:18) Best regards, Ron_1st -- -------------- next part -------------- aclocal: 63 files drwxr-xr-x 2 root root 4096 2009-01-25 15:05 . drwxr-xr-x 278 root root 12288 2009-01-31 03:31 .. -rw-r--r-- 1 root root 2194 2008-03-19 03:26 ac_check_krb5.m4 -rw-r--r-- 1 root root 4198 2008-03-12 06:09 alsa.m4 -rw-r--r-- 1 root root 6793 2007-12-02 00:49 audiofile.m4 -rw-r--r-- 1 root root 758 2007-12-13 07:22 codeset.m4 -rw-r--r-- 1 root root 6870 2008-02-26 10:20 esd.m4 -rw-r--r-- 1 root root 7511 2007-11-13 10:53 fontutil.m4 -rw-r--r-- 1 root root 6295 2008-09-11 02:57 freetype2.m4 -rw-r--r-- 1 root root 14712 2007-12-13 07:22 gettext.m4 -rw-r--r-- 1 root root 8192 2008-09-26 15:10 glib-2.0.m4 -rw-r--r-- 1 root root 805 2007-12-13 07:22 glibc21.m4 -rw-r--r-- 1 root root 748 2007-12-13 07:22 glibc2.m4 -rw-r--r-- 1 root root 13662 2008-09-26 15:10 glib-gettext.m4 -rw-r--r-- 1 root root 2484 2007-11-16 01:56 gpg-error.m4 -rw-r--r-- 1 root root 7532 2008-09-26 15:27 gtk-2.0.m4 -rw-r--r-- 1 root root 6123 2007-12-13 07:22 iconv.m4 -rw-r--r-- 1 root root 2329 2007-12-13 07:22 intdiv0.m4 -rw-r--r-- 1 root root 910 2007-12-13 07:22 intldir.m4 -rw-r--r-- 1 root root 10920 2007-12-13 07:22 intl.m4 -rw-r--r-- 1 root root 2421 2007-12-13 07:22 intlmacosx.m4 -rw-r--r-- 1 root root 11188 2008-02-29 00:22 intltool.m4 -rw-r--r-- 1 root root 1033 2007-12-13 07:22 intmax.m4 -rw-r--r-- 1 root root 932 2007-12-13 07:22 inttypes_h.m4 -rw-r--r-- 1 root root 1130 2007-12-13 07:22 inttypes-pri.m4 -rw-r--r-- 1 root root 1284 2007-12-13 07:22 lcmessage.m4 -rw-r--r-- 1 root root 9198 2008-02-08 16:05 libcurl.m4 -rw-r--r-- 1 root root 4270 2008-01-24 19:53 libFLAC.m4 -rw-r--r-- 1 root root 4174 2007-12-07 12:33 libgcrypt.m4 -rw-r--r-- 1 root root 7235 2008-12-06 01:09 libgnutls-extra.m4 -rw-r--r-- 1 root root 6675 2008-12-06 01:09 libgnutls.m4 -rw-r--r-- 1 root root 3417 2007-12-13 07:23 lib-ld.m4 -rw-r--r-- 1 root root 29741 2007-12-13 07:23 lib-link.m4 -rw-r--r-- 1 root root 8627 2009-01-25 00:01 libmcrypt.m4 -rw-r--r-- 1 root root 8625 2005-04-14 09:12 libmcrypt.m4~ -rw-r--r-- 1 root root 9203 2007-02-27 12:50 libmikmod.m4 -rw-r--r-- 1 root root 6686 2007-12-13 07:23 lib-prefix.m4 -rw-r--r-- 1 root root 6573 2007-12-03 12:06 libtasn1.m4 -rw-r--r-- 1 root root 239134 2008-02-08 01:54 libtool.m4 -rw-r--r-- 1 root root 7880 2008-11-18 20:14 libxml2.m4 -rw-r--r-- 1 root root 12435 2007-12-13 07:22 lock.m4 -rw-r--r-- 1 root root 4140 2007-12-13 07:22 longlong.m4 -rw-r--r-- 1 root root 13284 2008-02-08 01:54 ltdl.m4 -rw-r--r-- 1 root root 1206 2007-12-13 07:22 nls.m4 -rw-r--r-- 1 root root 3486 2008-01-30 09:44 ogg.m4 -rw-r--r-- 1 root root 6916 2005-06-14 11:54 opencdk.m4 -rw-r--r-- 1 root root 3367 2007-12-07 23:09 openexr.m4 -rw-r--r-- 1 root root 5221 2007-06-20 12:43 pkg.m4 -rw-r--r-- 1 root root 18822 2007-12-13 07:22 po.m4 -rw-r--r-- 1 root root 1481 2007-12-13 07:22 printf-posix.m4 -rw-r--r-- 1 root root 2920 2007-12-13 07:22 progtest.m4 -rw-r--r-- 1 root root 6404 2008-01-05 05:52 sdl.m4 -rw-r--r-- 1 root root 2651 2007-12-13 07:22 size_max.m4 -rw-r--r-- 1 root root 6611 2007-06-22 12:59 smpeg.m4 -rw-r--r-- 1 root root 908 2007-12-13 07:22 stdint_h.m4 -rw-r--r-- 1 root root 1098 2007-12-13 07:22 uintmax_t.m4 -rw-r--r-- 1 root root 2136 2007-12-13 07:22 visibility.m4 -rw-r--r-- 1 root root 4356 2008-11-28 16:05 vorbis.m4 -rw-r--r-- 1 root root 726 2007-12-13 07:22 wchar_t.m4 -rw-r--r-- 1 root root 8086 2008-12-05 23:52 wine.m4 -rw-r--r-- 1 root root 967 2007-12-13 07:22 wint_t.m4 -rw-r--r-- 1 root root 2387 2007-11-14 12:02 xaw.m4 -rw-r--r-- 1 root root 13566 2007-06-05 02:59 xorg-macros.m4 -rw-r--r-- 1 root root 1860 2008-06-13 03:21 xorg-server.m4 -rw-r--r-- 1 root root 2469 2007-06-05 02:59 xorgversion.m4 -rw-r--r-- 1 root root 421 2007-12-13 07:22 xsize.m4 -rw-r--r-- 1 root root 4914 2007-10-24 21:21 xtrans.m4 aclocal-1.9: 32 files drwxr-xr-x 2 root root 4096 2009-01-24 04:06 . drwxr-xr-x 278 root root 12288 2009-01-31 03:31 .. -rw-r--r-- 1 root root 872 2006-12-06 16:55 amversion.m4 -rw-r--r-- 1 root root 728 2006-12-06 16:55 as.m4 -rw-r--r-- 1 root root 2438 2006-12-06 16:55 auxdir.m4 -rw-r--r-- 1 root root 958 2006-12-06 16:55 ccstdc.m4 -rw-r--r-- 1 root root 957 2006-12-06 16:55 cond.m4 -rw-r--r-- 1 root root 6142 2006-12-06 16:55 depend.m4 -rw-r--r-- 1 root root 2695 2006-12-06 16:55 depout.m4 -rw-r--r-- 1 root root 986 2006-12-06 16:55 dmalloc.m4 -rw-r--r-- 1 root root 690 2006-12-06 16:55 gcj.m4 -rw-r--r-- 1 root root 494 2006-12-06 16:55 header.m4 -rw-r--r-- 1 root root 4144 2006-12-06 16:55 init.m4 -rw-r--r-- 1 root root 537 2006-12-06 16:55 install-sh.m4 -rw-r--r-- 1 root root 655 2006-12-06 16:55 lead-dot.m4 -rw-r--r-- 1 root root 732 2006-12-06 16:55 lex.m4 -rw-r--r-- 1 root root 2211 2006-12-06 16:55 lispdir.m4 -rw-r--r-- 1 root root 1004 2006-12-06 16:55 maintainer.m4 -rw-r--r-- 1 root root 1567 2006-12-06 16:55 make.m4 -rw-r--r-- 1 root root 1093 2006-12-06 16:55 minuso.m4 -rw-r--r-- 1 root root 1044 2006-12-06 16:55 missing.m4 -rw-r--r-- 1 root root 2645 2006-12-06 16:55 mkdirp.m4 -rw-r--r-- 1 root root 1808 2006-12-06 16:55 multi.m4 -rw-r--r-- 1 root root 1609 2006-12-06 16:55 obsolete.m4 -rw-r--r-- 1 root root 421 2006-12-06 16:55 obsol-gt.m4 -rw-r--r-- 1 root root 423 2006-12-06 16:55 obsol-lt.m4 -rw-r--r-- 1 root root 1132 2006-12-06 16:55 options.m4 -rw-r--r-- 1 root root 832 2006-12-06 16:55 protos.m4 -rw-r--r-- 1 root root 7283 2006-12-06 16:55 python.m4 -rw-r--r-- 1 root root 2012 2006-12-06 16:55 regex.m4 -rw-r--r-- 1 root root 726 2006-12-06 16:55 runlog.m4 -rw-r--r-- 1 root root 1699 2006-12-06 16:55 sanity.m4 -rw-r--r-- 1 root root 1410 2006-12-06 16:55 strip.m4 -rw-r--r-- 1 root root 3103 2006-12-06 16:55 tar.m4 From ronstk at ...239... Sat Jan 31 03:52:03 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 31 Jan 2009 03:52:03 +0100 Subject: [Gambas-user] svn-compile error part1 In-Reply-To: <200901310301.35685.gambas@...1...> References: <200901300805.46782.ronstk@...239...> <200901310149.37970.ronstk@...239...> <200901310301.35685.gambas@...1...> Message-ID: <200901310352.04119.ronstk@...239...> On Saturday 31 January 2009, Benoit Minisini wrote: > On samedi 31 janvier 2009, Ron_1st wrote: > > On Friday 30 January 2009, Benoit Minisini wrote: > > > On vendredi 30 janvier 2009, Ron_1st wrote: > > > > ====8<====== > > > > > > Best regards, > > > > > > > > Ron_1st > > > > > > I am going to test from a fresh checkout to understand what happens > > > exactly... Wait a moment! :-) > > > > OK > > > > Found some other code related things but first the comile and install. > > Also it kan be of course a (k)ubuntu problem, see answer to charlie > > about aclocal. > > > > Thanks for look and try. > > > > > > > > Best regards, > > > > Ron_1st > > I compiled and installed a fresh checkout of trunk, and I got no error at all, > and all the warnings I got are normal. > > So at the moment, I don't understand what happens on your system. > > Did you try to do everything except installation as a normal user? > if I give you a ip address will you upload your compiled trunk directory to my box so I can compare for differences between yours and mine. It is around 270MByte Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ronstk at ...239... Sat Jan 31 03:56:28 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 31 Jan 2009 03:56:28 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <200901310304.10724.gambas@...1...> References: <1233320501.4982fa3588b43@...1825...> <200901302049.04368.ronstk@...239...> <200901310304.10724.gambas@...1...> Message-ID: <200901310356.28889.ronstk@...239...> On Saturday 31 January 2009, Benoit Minisini wrote: > On vendredi 30 janvier 2009, Ron_1st wrote: > > > > Question to Benoit > > I have 2 directories for aclocal, aclocal and aclocal-1.9 > > the configure script refer to the 1.9, does aclocal/automake fall back to > > the aclocal for missing *.m4 files ? > > > > I don't know what you are talking about. Where are these two aclocal > directories? > If I was the only one I could live with and simple drop gambas. But I'm not only, Charlie has exact the same problem on his box. It would be nice to find what is wrong, for now and future because differences between distributions. And also I do understand it can be possible a (k)ubuntu problem. Best regards, Ron_1st -- From gambas at ...1... Sat Jan 31 04:20:15 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Jan 2009 04:20:15 +0100 Subject: [Gambas-user] gambas3 In-Reply-To: <200901310339.38416.ronstk@...239...> References: <1233320501.4982fa3588b43@...1825...> <200901310304.10724.gambas@...1...> <200901310339.38416.ronstk@...239...> Message-ID: <200901310420.15421.gambas@...1...> On samedi 31 janvier 2009, Ron_1st wrote: > On Saturday 31 January 2009, Benoit Minisini wrote: > > On vendredi 30 janvier 2009, Ron_1st wrote: > > > Question to Benoit > > > I have 2 directories for aclocal, aclocal and aclocal-1.9 > > > the configure script refer to the 1.9, does aclocal/automake fall back > > > to the aclocal for missing *.m4 files ? > > > > I don't know what you are talking about. Where are these two aclocal > > directories? > > reconf and/or configure use it. > > > > /usr/share/aclocal > /usr/share/aclocal-1.9 > > > # aclocal --version > aclocal (GNU automake) 1.9.6 > # automake --version > automake (GNU automake) 1.9.6 > # libtool --version > ltmain.sh (GNU libtool) 1.5.26 Debian 1.5.26-1ubuntu1 (1.1220.2.493 > 2008/02/01 16:58:18) > > > > > > > Best regards, > > Ron_1st I have the same directories on Mandriva, but an older version. It seems that their contents are mutually exclusive, so I think everything is normal there. -- Benoit Minisini From gambas at ...1... Sat Jan 31 04:22:29 2009 From: gambas at ...1... (Benoit Minisini) Date: Sat, 31 Jan 2009 04:22:29 +0100 Subject: [Gambas-user] svn-compile error part1 In-Reply-To: <200901310352.04119.ronstk@...239...> References: <200901300805.46782.ronstk@...239...> <200901310301.35685.gambas@...1...> <200901310352.04119.ronstk@...239...> Message-ID: <200901310422.29893.gambas@...1...> On samedi 31 janvier 2009, Ron_1st wrote: > On Saturday 31 January 2009, Benoit Minisini wrote: > > On samedi 31 janvier 2009, Ron_1st wrote: > > > On Friday 30 January 2009, Benoit Minisini wrote: > > > > On vendredi 30 janvier 2009, Ron_1st wrote: > > > > > > ====8<====== > > > > > > > > Best regards, > > > > > > > > > > Ron_1st > > > > > > > > I am going to test from a fresh checkout to understand what happens > > > > exactly... Wait a moment! :-) > > > > > > OK > > > > > > Found some other code related things but first the comile and install. > > > Also it kan be of course a (k)ubuntu problem, see answer to charlie > > > about aclocal. > > > > > > Thanks for look and try. > > > > > > > > > > > > Best regards, > > > > > > Ron_1st > > > > I compiled and installed a fresh checkout of trunk, and I got no error at > > all, and all the warnings I got are normal. > > > > So at the moment, I don't understand what happens on your system. > > > > Did you try to do everything except installation as a normal user? > > if I give you a ip address will you upload your compiled trunk directory > to my box so I can compare for differences between yours and mine. > > > > It is around 270MByte > > > > > > Best regards, > > Ron_1st Yes, but I will upload first the /trunk directory after a "make clean". It will be lighter, and I think that the devil is in the things generated by ./reconf-all and ./configure. Regards, -- Benoit Minisini From wdahn at ...1000... Sat Jan 31 04:23:48 2009 From: wdahn at ...1000... (Werner) Date: Sat, 31 Jan 2009 11:23:48 +0800 Subject: [Gambas-user] How to upgrade gambas? In-Reply-To: <350192.18273.qm@...2064...> References: <350192.18273.qm@...2064...> Message-ID: <4983C444.9010304@...1000...> Leo Sendra wrote: >> Selamat Pagi, >> >> please tell us what version you have now and what version you would like >> to use. >> > > >> Best Regards >> Werner >> > > I have installed gambas2 version 2.7 and want to try gambas2 2.11. how? > > thanks.. > You find gambas 2.11 here: http://gambas.sourceforge.net/ It is offered in 2 ways: a) as source code b) as a ready made package for a variety of distributions. b) is definitely easier. Just download the package for your distribution, remove gambas 2.7 and install the new one. If you still have a problem we would need to know what distribution you use. Regards Werner From ronstk at ...239... Sat Jan 31 04:37:55 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 31 Jan 2009 04:37:55 +0100 Subject: [Gambas-user] svn-compile error part1 In-Reply-To: <200901310422.29893.gambas@...1...> References: <200901300805.46782.ronstk@...239...> <200901310352.04119.ronstk@...239...> <200901310422.29893.gambas@...1...> Message-ID: <200901310437.56162.ronstk@...239...> On Saturday 31 January 2009, Benoit Minisini wrote: > On samedi 31 janvier 2009, Ron_1st wrote: > > On Saturday 31 January 2009, Benoit Minisini wrote: > > > On samedi 31 janvier 2009, Ron_1st wrote: > > > > On Friday 30 January 2009, Benoit Minisini wrote: > > > > > On vendredi 30 janvier 2009, Ron_1st wrote: > > > > > > > > ====8<====== > > > > > > > > > > Best regards, > > > > > > > > > > > > Ron_1st > > > > > > > > > > I am going to test from a fresh checkout to understand what happens > > > > > exactly... Wait a moment! :-) > > > > > > > > OK > > > > > > > > Found some other code related things but first the comile and install. > > > > Also it kan be of course a (k)ubuntu problem, see answer to charlie > > > > about aclocal. > > > > > > > > Thanks for look and try. > > > > > > > > > > > > > > > > Best regards, > > > > > > > > Ron_1st > > > > > > I compiled and installed a fresh checkout of trunk, and I got no error at > > > all, and all the warnings I got are normal. > > > > > > So at the moment, I don't understand what happens on your system. > > > > > > Did you try to do everything except installation as a normal user? > > > > if I give you a ip address will you upload your compiled trunk directory > > to my box so I can compare for differences between yours and mine. > > > > > > > > It is around 270MByte > > > > > > > > > > > > Best regards, > > > > Ron_1st > > Yes, but I will upload first the /trunk directory after a "make clean". It > will be lighter, and I think that the devil is in the things generated > by ./reconf-all and ./configure. > > Regards, > haha devil yes that is true but that passes at my box atm I can do two ways 1) you uplaod with fish://name:pass at ...2065... into upload directory (disk space) 2) you use ssh acount and i put the svn already in the upload Best regards, Ron_1st -- From ronstk at ...239... Sat Jan 31 05:23:43 2009 From: ronstk at ...239... (Ron_1st) Date: Sat, 31 Jan 2009 05:23:43 +0100 Subject: [Gambas-user] svn-compile error part1 In-Reply-To: <200901310437.56162.ronstk@...239...> References: <200901300805.46782.ronstk@...239...> <200901310422.29893.gambas@...1...> <200901310437.56162.ronstk@...239...> Message-ID: <200901310523.43999.ronstk@...239...> On Saturday 31 January 2009, Ron_1st wrote: > On Saturday 31 January 2009, Benoit Minisini wrote: > > On samedi 31 janvier 2009, Ron_1st wrote: > > > On Saturday 31 January 2009, Benoit Minisini wrote: > > > > On samedi 31 janvier 2009, Ron_1st wrote: > > > > > On Friday 30 January 2009, Benoit Minisini wrote: > > > > > > On vendredi 30 janvier 2009, Ron_1st wrote: > > > > > > > > > > ====8<====== > > > > > > > > > > > > Best regards, > > > > > > > > > > > > > > Ron_1st > > > > > > > > > > > > I am going to test from a fresh checkout to understand what happens > > > > > > exactly... Wait a moment! :-) > > > > > > > > > > OK > > > > > > > > > > Found some other code related things but first the comile and install. > > > > > Also it kan be of course a (k)ubuntu problem, see answer to charlie > > > > > about aclocal. > > > > > > > > > > Thanks for look and try. > > > > > > > > > > > > > > > > > > > > Best regards, > > > > > > > > > > Ron_1st > > > > > > > > I compiled and installed a fresh checkout of trunk, and I got no error at > > > > all, and all the warnings I got are normal. > > > > > > > > So at the moment, I don't understand what happens on your system. > > > > > > > > Did you try to do everything except installation as a normal user? > > > > > > if I give you a ip address will you upload your compiled trunk directory > > > to my box so I can compare for differences between yours and mine. > > > > > > > > > > > > It is around 270MByte > > > > > > > > > > > > > > > > > > Best regards, > > > > > > Ron_1st > > > > Yes, but I will upload first the /trunk directory after a "make clean". It > > will be lighter, and I think that the devil is in the things generated > > by ./reconf-all and ./configure. > > > > Regards, > > > > haha devil yes that is true > but that passes at my box atm > > I can do two ways > > 1) you uplaod with fish://name:pass at ...2065... into upload directory (disk space) > 2) you use ssh acount and i put the svn already in the upload > stupid me. you scp to the upload directory I would then compare the compiled versions for diffs however a clean is not bad to have just ~40MB extra to compare for svn checkout errors on my site. fresh 1838 is already on the box waiting. Sleep well. > > > > Best regards, > > Ron_1st > Best regards, Ron_1st -- A: Delete the text you reply on. Q: What to do to get my post on top? --- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --- A: Top-posting. Q: What is the most annoying thing in e-mail? From ron at ...1740... Sat Jan 31 13:40:36 2009 From: ron at ...1740... (Ron) Date: Sat, 31 Jan 2009 13:40:36 +0100 Subject: [Gambas-user] Bug in Gambas IDE property viewer In-Reply-To: <200901301653.59959.gambas@...1...> References: <498320B8.9080403@...1237...> <200901301653.59959.gambas@...1...> Message-ID: <498446C4.7060105@...1740...> Benoit Minisini wrote: > On vendredi 30 janvier 2009, Leonardo Miliani wrote: > >> I don't know if it is a new bug or an old one because I've noticed it >> only right now... but the comboboxes of the properties viewer don't work >> properly in every situation. >> >> As you can see in the attached screenshot, most of the times if I select >> a property with a combobox, the arrow on the right side of the combobox >> doesn't appear (it seems out of the desktop area) and, when I click on >> it, the menu is too large. >> > > Which version of gambas??? > > I have noticed some likewise behavior, with lists property fields for example the [...] icon doesn't appear when you dbl/click on it when the properties section is to narrow. I have to widen the properties window and click again to be able to see it. I'm using gb 2.11 on Asus 1000H with 1024x600 screen resolution. Regard, Ron_2nd