From o.s.p at ...69... Sat Apr 2 21:07:54 2005 From: o.s.p at ...69... (o.s.p) Date: Sat, 02 Apr 2005 21:07:54 +0200 Subject: [Gambas-user] autopackage Message-ID: <424EED8A.8080807@...69...> seems good .... From lbaudio at ...172... Sun Apr 3 01:09:11 2005 From: lbaudio at ...172... (LB Audio) Date: Sat, 2 Apr 2005 20:09:11 -0300 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & Message-ID: <001901c537d8$faf8cc40$7164a8c0@...938...> Problem in mySQL Ex: ....Exec("Delete from table1 where name= 'My Company & Brothers' ") Problem in string &. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreagiusti at ...412... Sun Apr 3 07:42:14 2005 From: andreagiusti at ...412... (Andrea G.) Date: Sun, 3 Apr 2005 07:42:14 +0200 Subject: [Gambas-user] Send key to process Message-ID: <200504030742.14556.andreagiusti@...412...> To send a character to a process I use PRINT #$hProcess, "a"; but I don't know how I can send the up, down, left and right keys. Is there a solution? From andreagiusti at ...412... Sun Apr 3 07:47:10 2005 From: andreagiusti at ...412... (Andrea G.) Date: Sun, 3 Apr 2005 07:47:10 +0200 Subject: [Gambas-user] Send key to process Message-ID: <200504030747.10260.andreagiusti@...412...> To send a character to a process I use PRINT #$hProcess, "a"; but I don't know how I can send the up, down, left and right keys. Is there a solution? From sourceforge-raindog2 at ...94... Sun Apr 3 07:48:18 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 3 Apr 2005 00:48:18 -0500 Subject: [Gambas-user] Send key to process In-Reply-To: <200504030742.14556.andreagiusti@...412...> References: <200504030742.14556.andreagiusti@...412...> Message-ID: <200504030048.18524.sourceforge-raindog2@...94...> On Sunday 03 April 2005 00:42, Andrea G. wrote: > To send a character to a process I use PRINT #$hProcess, "a"; but I > don't know how I can send the up, down, left and right keys. > Is there a solution? If you were running the program on a TTY, you could probably send it vt100/ansi escape codes (something like chr(27) & "[A" through "[D") but I don't think most programs will take that kind of input when opened on a pipe rather than a tty. Rob From andreagiusti at ...412... Sun Apr 3 07:51:46 2005 From: andreagiusti at ...412... (Andrea G.) Date: Sun, 3 Apr 2005 07:51:46 +0200 Subject: [Gambas-user] Send key to process Message-ID: <200504030751.46201.andreagiusti@...412...> To send a character to a process I use PRINT #$hProcess, "a"; but I don't know how I can send the up, down, left and right keys. Is there a solution? From jscops at ...11... Sun Apr 3 11:15:50 2005 From: jscops at ...11... (Jacky) Date: Sun, 3 Apr 2005 11:15:50 +0200 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <001901c537d8$faf8cc40$7164a8c0@...938...> References: <001901c537d8$faf8cc40$7164a8c0@...938...> Message-ID: <200504031115.50329.jscops@...11...> Le dimanche 3 Avril 2005 01:09, LB Audio a ?crit?: > Problem in mySQL > > Ex: > ....Exec("Delete from table1 where name= 'My Company & Brothers' ") > > Problem in string &. Try . Exec("Delete from table1 where name= &1", My Company & Brothers) ~? Jack ?~ From daniel.campos at ...338... Sun Apr 3 13:54:14 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Sun, 03 Apr 2005 13:54:14 +0200 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <200504031115.50329.jscops@...11...> References: <001901c537d8$faf8cc40$7164a8c0@...938...> <200504031115.50329.jscops@...11...> Message-ID: <424FD966.8030200@...338...> >Try . >Exec("Delete from table1 where name= &1", My Company & Brothers) > >~? Jack ?~ > > > > Little bug, Jack: Exec("Delete from table1 where name= &1", My Company & Brothers) You must use: Exec("Delete from table1 where name= &1", "My Company & Brothers" ) Regards, D. Campos > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From pvera at ...729... Mon Apr 4 03:29:35 2005 From: pvera at ...729... (Pablo Vera) Date: Sun, 03 Apr 2005 20:29:35 -0500 Subject: [Gambas-user] Send key to process In-Reply-To: <200504030742.14556.andreagiusti@...412...> References: <200504030742.14556.andreagiusti@...412...> Message-ID: <4250987F.6090502@...729...> Could you be more specific ?, what type of program are you trying to control ? Saludos, Pablo Vera Andrea G. wrote: > To send a character to a process I use PRINT #$hProcess, "a"; but I don't know > how I can send the up, down, left and right keys. > Is there a solution? From pvera at ...729... Mon Apr 4 03:32:59 2005 From: pvera at ...729... (Pablo Vera) Date: Sun, 03 Apr 2005 20:32:59 -0500 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <001901c537d8$faf8cc40$7164a8c0@...938...> References: <001901c537d8$faf8cc40$7164a8c0@...938...> Message-ID: <4250994B.3090102@...729...> What is the problem ?, do you get an error message ? Have you tried this: ....Exec("Delete from table1 where name= 'My Company \& Brothers' ") I'm not sure this will work, but its worth a try. Saludos, Pablo Vera LB Audio wrote: > Problem in mySQL > > Ex: > ....Exec("Delete from table1 where name= 'My Company & Brothers' ") > > Problem in string &. From ariafrancesco at ...86... Mon Apr 4 08:51:46 2005 From: ariafrancesco at ...86... (ariafrancesco@inwind.it) Date: Mon, 4 Apr 2005 08:51:46 +0200 Subject: [Gambas-user] Compliling Gambas 1.9.5 Message-ID: I can't compiling Gambas 2 1.9.5 for many error on SQL. Help me . P.S. the first file is the result of : ( ./configure; make; make install ) > output.txt 2>&1 the second of : rpm -qa > installedRPM.txt Thanks to all ____________________________________________________________ 6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero! Scaricalo su INTERNET GRATIS 6X http://www.libero.it -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: installedRPM.txt URL: From o.s.p at ...69... Mon Apr 4 10:13:58 2005 From: o.s.p at ...69... (o.s.p) Date: Mon, 04 Apr 2005 10:13:58 +0200 Subject: [Gambas-user] autopackage In-Reply-To: <424EED8A.8080807@...69...> References: <424EED8A.8080807@...69...> Message-ID: <4250F746.4010501@...69...> ops i forgot the link: http://autopackage.org/ From gambas at ...1... Mon Apr 4 10:58:37 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Apr 2005 10:58:37 +0200 Subject: [Gambas-user] Gnome - KDE In-Reply-To: <424BCA2F.1060506@...626...> References: <424BCA2F.1060506@...626...> Message-ID: <200504041058.37857.gambas@...1...> On Thursday 31 March 2005 12:00, BernieMan wrote: > So my first problem is solved. > I just compiled Gambas from the source and now every module is running. > > I have another questions: > Is a compiled application running under Gnome? > Do I need a runtime-library to give an app to third person? Yes. You need to install the gambas interpreter, all components used by your project, and all libraries used by these components. > > I have one Application and its running under KDE but Gnome is making > problems. > I don't use KDE-Components in that app and on the Gnome-Machine there > are the KDE-Libs installed. What problems ? Be more precise please! > > tia > bm > Regards, -- Benoit Minisini mailto:gambas at ...1... From na2492 at ...9... Mon Apr 4 11:01:08 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 4 Apr 2005 11:01:08 00200 Subject: [Gambas-user] Compliling Gambas 1.9.5 Message-ID: <42510254.31a0.0@...9...> > >I can't compiling Gambas 2 1.9.5 for many error on SQL. > >Help me . > >>P.S. the first file is the result of : ( ./configure; make; make install >) > output.txt 2>&1 > the second of : rpm -qa > installedRPM.txt >> >Thanks to all Salut, as you know, Benoit has completly changed the gambas developing structure. Actually all the configure/make scripts, don't work as they should. So I think odbc was not on your box, and the script to find it , don't return this correctly. Try a ./configure --disable-odbc after a ./reconf ,if it exist. If there is no reconf script in the root, delete your gambas-1.9.5 directory and unpack gambas-1.9.5.tar.bz2 new. Then try it. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambas at ...1... Mon Apr 4 11:04:53 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Apr 2005 11:04:53 +0200 Subject: [Gambas-user] compiling gambas-1.9.5 BUT.... In-Reply-To: <200503312055.30334.Karl.Reinl@...9...> References: <200503312055.30334.Karl.Reinl@...9...> Message-ID: <200504041104.53511.gambas@...1...> On Thursday 31 March 2005 20:55, Charlie Reinl wrote: > Salut Benoit, > > You are right, > good job, > now --disable- works , like it should. > > BUT... > > I have a new problem now. > using > Qt: 3.3.4 and KDE: 3.3.2 since yesterday :-( > > got an Error (see att. configure.log.with_KDE and make.log_KDE) > > Using: > ?- gambas-1.9.5 ?(downloaded from the gambas-shrine) > ?- X Window System Version 6.8.2 Release Date: 9 February 2005 > ? X Protocol Version 11, Revision 0, Release 6.8.2 > ? Build Operating System: Linux 2.6.8-gentoo-r3 i686 [ELF] > ? Current Operating System: Linux gentoo01 2.6.8-gentoo-r3 #1 SMP > ? ?Sun Feb 13 21:57:11 CET 2005 i686 > - gentoo 1.4 (last Updated 27.03.2005) on Gentoo Base System version 1.4.16 > - Qt: 3.3.4 > ?- KDE: 3.3.2 > ?- gcc (GCC) 3.3.5 ?(Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) > ?- mysql ?Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i686) > ?- psql (PostgreSQL) 7.4.7 > ?- SQLite version 2.8.15 > ?- GNU Make 3.80 > > I compiled sugsessfull after > > ./configure -C --disable-gtk --disable-sdl --disable-odbc --disable-kde > > COULDn't find 'reconf' > > Amicalment > Charlie On Mandrake, with gcc 3.4, libstdc++.la is not needed. The 'libtool' tool seems to add this requirement on your system, and not on mine. Maybe you forgot to install something on your Gentoo ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Apr 4 11:06:57 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Apr 2005 11:06:57 +0200 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <001901c537d8$faf8cc40$7164a8c0@...938...> References: <001901c537d8$faf8cc40$7164a8c0@...938...> Message-ID: <200504041106.57385.gambas@...1...> On Sunday 03 April 2005 01:09, LB Audio wrote: > Problem in mySQL > > Ex: > ....Exec("Delete from table1 where name= 'My Company & Brothers' ") > > Problem in string &. The Exec(), Find(), and Edit() methods do substitutions, like the Subst() function - RTFM :-) To use a '&', you must double it: Exec("Delete from table1 where name= 'My Company && Brothers' ") Anyway, you should use the substitution feature: Exec("Delete from table1 where name=&1", "My Company & Brothers") This way, you code will be portable if you change your database system. Regards, -- Benoit Minisini mailto:gambas at ...1... From mrbits at ...927... Mon Apr 4 12:42:48 2005 From: mrbits at ...927... (MrBiTs) Date: Mon, 4 Apr 2005 07:42:48 -0300 Subject: [Gambas-user] Compliling Gambas 1.9.5 Message-ID: > I can't compiling Gambas 2 1.9.5 for many error on SQL. > Help me . > P.S. the first file is the result of : ( ./configure; make; make install ) > output.txt 2>&1 > the second of : rpm -qa > installedRPM.txt Please search at old messages. Two weeks ago I've posted a mail with some steps to compile Gambas 2.1.9.4 solving those SQL errors. Basically, you need to install UnixODBC, MySQL, PostgreSQL and SQLite OR disable features during ./configure process. Please see ./configure --help for further information -------------- next part -------------- An HTML attachment was scrubbed... URL: From pvera at ...729... Mon Apr 4 15:07:35 2005 From: pvera at ...729... (Pablo Vera) Date: Mon, 04 Apr 2005 08:07:35 -0500 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <200504041106.57385.gambas@...1...> References: <001901c537d8$faf8cc40$7164a8c0@...938...> <200504041106.57385.gambas@...1...> Message-ID: <42513C17.6030906@...729...> I think that there are a couple of quotes missing here: Exec("Delete from table1 where name='&1'", "My Company & Brothers") otherwise, the SQL statement will match name=My Company & Brothers which might produce an error, instead of name='My Company & Brothers' Saludos, Pablo Vera ______________________________________________________________ Benoit Minisini wrote: > > The Exec(), Find(), and Edit() methods do substitutions, like the Subst() > function - RTFM :-) > > To use a '&', you must double it: > > Exec("Delete from table1 where name= 'My Company && Brothers' ") > > Anyway, you should use the substitution feature: > > Exec("Delete from table1 where name=&1", "My Company & Brothers") > > This way, you code will be portable if you change your database system. From gambas at ...1... Mon Apr 4 15:13:00 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 4 Apr 2005 15:13:00 +0200 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <42513C17.6030906@...729...> References: <001901c537d8$faf8cc40$7164a8c0@...938...> <200504041106.57385.gambas@...1...> <42513C17.6030906@...729...> Message-ID: <200504041513.01128.gambas@...1...> On Monday 04 April 2005 15:07, Pablo Vera wrote: > I think that there are a couple of quotes missing here: > > Exec("Delete from table1 where name='&1'", "My Company & Brothers") > > otherwise, the SQL statement will match > > name=My Company & Brothers > > which might produce an error, instead of > > name='My Company & Brothers' > > Saludos, > Pablo Vera No, Exec(), as Find() and Edit() will do it for you. You don't have to put any quote character. The correct syntax is: Exec("Delete from table1 where name=&1", "My Company & Brothers") Maybe the documentation is not clear enough ? :-) -- Benoit Minisini mailto:gambas at ...1... From rolf.frogs at ...221... Mon Apr 4 19:55:10 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Mon, 4 Apr 2005 19:55:10 +0200 Subject: [Gambas-user] Problems with results from mysql Message-ID: <200504041955.14015.rolf.frogs@...221...> Hi I wrote a small application to collect my bicycle kilometers and show my fitness. The time I sit on the bicycle is stored in seconds but I let MySQL give me the sum in hours, minutes and scecons. Here the query and the result as shown by the mysql-client: select sec_to_time(sum(dauersekunden)) as dat , sum(kilometer) as km from daten where datum between '2005-01-01' and '2005-12-31'; +----------+---------+ | dat | km | ----------+---------+ | 26:40:11 | 613.042 | +----------+---------+ 1 row in set (0.00 sec) As one can see, the time is given in hours. Gambas shows the result as: "01.01.-4801 01:30:11" Here the gambas code: request = "select sec_to_time(sum(dauersekunden)) as dat, sum(kilometer) " & " as km from daten where datum between '" request = request & Year(Now) & "-01-01' and '" & Year(Now) & "-12-31' " myresult = hDB.Exec(request) IF (abfrage.Count > 0) THEN TextLabel1.text = "Duration: " & myresult["dat"] & " Std." Textlabel2.text = "Length: " & myresult["km"] & " km" ELSE Textlabel1.visible = FALSE TextLabel2.visible = FALSE END IF Even in the gambas debugger the value "01.01.-4801 01:30:11" is shown, So where take the conversion place and how could I get the right values? Bye Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From na2492 at ...9... Mon Apr 4 20:13:11 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 4 Apr 2005 20:13:11 00200 Subject: [Gambas-user] compiling gambas-1.9.5 BUT.... Message-ID: <425183b7.ad8.0@...9...> >On Thursday 31 March 2005 20:55, Charlie Reinl wrote: >> Salut Benoit, >> >> You are right, >> good job, >> now --disable- works , like it should. >> >> BUT... >> >> I have a new problem now. >> using >> Qt: 3.3.4 and KDE: 3.3.2 since yesterday :-( >> >> got an Error (see att. configure.log.with_KDE and make.log_KDE) >> >> Using: >> ?- gambas-1.9.5 ?(downloaded from the gambas-shrine) >> ?- X Window System Version 6.8.2 Release Date: 9 February 2005 >> ? X Protocol Version 11, Revision 0, Release 6.8.2 >> ? Build Operating System: Linux 2.6.8-gentoo-r3 i686 [ELF] >> ? Current Operating System: Linux gentoo01 2.6.8-gentoo-r3 #1 SMP >> ? ?Sun Feb 13 21:57:11 CET 2005 i686 >> - gentoo 1.4 (last Updated 27.03.2005) on Gentoo Base System version 1.4.16 >> - Qt: 3.3.4 >> ?- KDE: 3.3.2 >> ?- gcc (GCC) 3.3.5 ?(Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1) >> ?- mysql ?Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i686) >> ?- psql (PostgreSQL) 7.4.7 >> ?- SQLite version 2.8.15 >> ?- GNU Make 3.80 >> >> I compiled sugsessfull after >> >> ./configure -C --disable-gtk --disable-sdl --disable-odbc --disable-kde >> >> COULDn't find 'reconf' >> >> Amicalment >> Charlie > >On Mandrake, with gcc 3.4, libstdc++.la is not needed. The 'libtool' tool >seems to add this requirement on your system, and not on mine. > >Maybe you forgot to install something on your Gentoo ? > >-- >Benoit Minisini Salut Benoit, while reading you answer it was clear gcc 3.3.4 , I use gcc 3.3.5. And I found after re-reding the confiure.log.with_KDE This: contents of /etc/env.d directory /usr/local/lib /usr/lib/opengl/xorg-x11/lib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 /usr/lib /opt/sun-jdk-1.4.2.07/jre/lib /usr/qt/3/lib /usr/kde/3.3/lib /usr/kde/3.2/lib /usr/kde/3.1/lib in my env.d LD_PATH points to an no more existing directory /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 after cleaning that up and a env-update to create ld.so.cache I restarted on a new copy BUT same Error moc_CWebBrowser.cpp greps for grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive In moc_CWebBrowser.cpp I found older thinks like that #include #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26) #error "This file was generated using the moc from 3.3.4. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif Any Idea ? Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From lordheavy at ...512... Mon Apr 4 20:32:09 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 4 Apr 2005 20:32:09 +0200 Subject: [Gambas-user] compiling gambas-1.9.5 BUT.... In-Reply-To: <425183b7.ad8.0@...9...> References: <425183b7.ad8.0@...9...> Message-ID: <200504042032.10010.lordheavy@...512...> Le Lundi 4 Avril 2005 22:13, Charlie Reinl a ?crit?: > > grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file > or directory > sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No > such file or directory > libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is > not a valid libtool archive > Did you try the magic 'fix_libtool_files.sh 3.3.4' ? Regards, -- Laurent Carlier From na2492 at ...9... Mon Apr 4 20:51:30 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 4 Apr 2005 20:51:30 00200 Subject: [Gambas-user] compiling gambas-1.9.5 BUT.... Message-ID: <42518cb2.2f31.0@...9...> >Le Lundi 4 Avril 2005 22:13, Charlie Reinl a ?crit?: >> >> grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file >> or directory >> sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No >> such file or directory >> libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is >> not a valid libtool archive >> > >Did you try the magic 'fix_libtool_files.sh 3.3.4' ? NO, but will try, thanks > >Regards, > >-- > >Laurent Carlier > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op?k >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From bundeshund at ...467... Mon Apr 4 20:58:11 2005 From: bundeshund at ...467... (HMB) Date: Mon, 4 Apr 2005 20:58:11 +0200 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <001901c537d8$faf8cc40$7164a8c0@...938...> References: <001901c537d8$faf8cc40$7164a8c0@...938...> Message-ID: <200504042058.11331.bundeshund@...467...> Byside the technical syntax problem, i have to say that this is not a good idea for handling, specialy deleting datarecords with this weak key. 'name' can allways have a dublette and you delete _every_ record matching to this sql-request. And even with a select you can get more than one record, but the program didn't handle this, so the user can never see the records behind the first one. A strong key is a unique one and can here maybe 'name' and 'inserted_at' which is a timestamp field and filled when this record is inserted. (but even timestamp can be not unique ;) ) But as i think this is only an example and not used for a 'real' application, it doesn't matter... Am Sonntag, 3. April 2005 01:09 schrieb LB Audio: > Problem in mySQL > > Ex: > ....Exec("Delete from table1 where name= 'My Company & Brothers' ") > > Problem in string &. From na2492 at ...9... Mon Apr 4 21:17:22 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 4 Apr 2005 21:17:22 00200 Subject: Solved [Gambas-user] compiling gambas-1.9.5 BUT.... Message-ID: <425192c2.432d.0@...9...> >>Le Lundi 4 Avril 2005 22:13, Charlie Reinl a ?crit?: >>> >>> grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such >file >>> or directory >>> sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: >No >>> such file or directory >>> libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' >is >>> not a valid libtool archive >>> >> > >>Did you try the magic 'fix_libtool_files.sh 3.3.4' ? > >NO, but will try, thanks Oh, dit it let something untouched. OK now no more problems. Was a gcc update problem (from gentoo I think). Thanks Laurent > >> >>Regards, >> >>-- >> >>Laurent Carlier >> >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_ide95&alloc_id396&op?k >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_ide95&alloc_id396&op?k >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From na2492 at ...9... Mon Apr 4 21:34:29 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 4 Apr 2005 21:34:29 00200 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & Message-ID: <425196c5.50d5.0@...9...> >Byside the technical syntax problem, i have to say that this is not a good >idea for handling, specialy deleting datarecords with this weak key. 'name' >can allways have a dublette and you delete _every_ record matching to this >sql-request. And even with a select you can get more than one record, but the >program didn't handle this, so the user can never see the records behind the >first one. A strong key is a unique one and can here maybe 'name' and >'inserted_at' which is a timestamp field and filled when this record is >inserted. (but even timestamp can be not unique ;) ) > >But as i think this is only an example and not used for a 'real' application, >it doesn't matter... Salut, for real unique keys make it like M$ use GUID or in Linux-spoken 'uuidgen' (you need the package) I attached you my version I use for that. Amicalment Charlie > >Am Sonntag, 3. April 2005 01:09 schrieb LB Audio: >> Problem in mySQL >> >> Ex: >> ....Exec("Delete from table1 where name= 'My Company & Brothers' ") >> >> Problem in string &. > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * -------------- next part -------------- A non-text attachment was scrubbed... Name: gauuid-0.0.3.tar.gz Type: application/x-tgz Size: 1668 bytes Desc: not available URL: From francesco.difusco at ...69... Tue Apr 5 13:07:10 2005 From: francesco.difusco at ...69... (francesco) Date: Tue, 5 Apr 2005 13:07:10 +0200 Subject: [Gambas-user] GambasEditor undocumented properties and methods Message-ID: <200504051307.10330.francesco.difusco@...69...> Hi, I am developing a little application in Gambas using the GambasEditor control, but as I have seen in the help, it is largely undocumented. Could anyone that has used it, explain me what the following properties and methods are, maybe with a little example: - Frozen - Highlight - Lineheight - Positions - Showchange - Showcurrent - Showproc - Symbols - Userelief - Analyze - Ensurevisible Thanks Francesco From bundeshund at ...467... Wed Apr 6 08:34:35 2005 From: bundeshund at ...467... (HMB) Date: Wed, 6 Apr 2005 08:34:35 +0200 Subject: [Gambas-user] Bug in Gambas mySQL & DELETE & In-Reply-To: <425196c5.50d5.0@...9...> References: <425196c5.50d5.0@...9...> Message-ID: <200504060834.36034.bundeshund@...467...> Am Montag, 4. April 2005 23:34 schrieb Charlie Reinl: .. > >A strong key is a unique one and can here maybe 'name' and > >'inserted_at' which is a timestamp field and filled when this record is > >inserted. (but even timestamp can be not unique ;) ) > > > >But as i think this is only an example and not used for a 'real' > > application, > > >it doesn't matter... > > Salut, > > for real unique keys make it like M$ use GUID or in Linux-spoken > 'uuidgen' (you need the package) > I attached you my version I use for that. > > Amicalment > Charlie > Hi Charlie, this looks very intressting. Thanks for this suggestion! regards, HM > >Am Sonntag, 3. April 2005 01:09 schrieb LB Audio: > >> Problem in mySQL > >> > >> Ex: > >> ....Exec("Delete from table1 where name= 'My Company & Brothers' ") > >> > >> Problem in string &. > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide > >Read honest & candid reviews on hundreds of IT Products from real users. > >Discover which products truly live up to the hype. Start reading now. > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From gambas at ...1... Wed Apr 6 11:29:35 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 6 Apr 2005 11:29:35 +0200 Subject: [Gambas-user] Problems with results from mysql In-Reply-To: <200504041955.14015.rolf.frogs@...221...> References: <200504041955.14015.rolf.frogs@...221...> Message-ID: <200504061129.35579.gambas@...1...> On Monday 04 April 2005 19:55, Rolf Schmidt wrote: > Hi > > I wrote a small application to collect my bicycle kilometers and show my > fitness. The time I sit on the bicycle is stored in seconds but I let MySQL > give me the sum in hours, minutes and scecons. > > Here the query and the result as shown by the mysql-client: > > select sec_to_time(sum(dauersekunden)) as dat , > sum(kilometer) as km > from daten where datum between '2005-01-01' and > '2005-12-31'; +----------+---------+ > > | dat | km | > > ----------+---------+ > > | 26:40:11 | 613.042 | > > +----------+---------+ > 1 row in set (0.00 sec) > > As one can see, the time is given in hours. > > Gambas shows the result as: "01.01.-4801 01:30:11" > Here the gambas code: > request = "select sec_to_time(sum(dauersekunden)) as dat, sum(kilometer) > " & " as km from daten where datum between '" > request = request & Year(Now) & "-01-01' and '" & Year(Now) & "-12-31' " > myresult = hDB.Exec(request) > IF (abfrage.Count > 0) THEN > TextLabel1.text = "Duration: " & myresult["dat"] & " Std." > Textlabel2.text = "Length: " & myresult["km"] & " km" > ELSE > Textlabel1.visible = FALSE > TextLabel2.visible = FALSE > END IF > > Even in the gambas debugger the value "01.01.-4801 01:30:11" is shown, So > where take the conversion place and how could I get the right values? > > Bye > Rolf Actually, Gambas make no distinction between time and hours. So it converts your time-only field into an date/time field. I think you can get the correct value this way: PRINT "Number of hours: "; CFloat(myresult!dat) * 24 To get the minutes and seconds, you must do the conversion by yourself. Regards, -- Benoit Minisini mailto:gambas at ...1... From alphajunior at ...940... Wed Apr 6 15:06:31 2005 From: alphajunior at ...940... (luiz) Date: Wed, 06 Apr 2005 10:06:31 -0300 Subject: [Gambas-user] (no subject) Message-ID: <4253DED7.1050706@...940...> From trorrr at ...397... Wed Apr 6 21:14:13 2005 From: trorrr at ...397... (=?iso-8859-1?q?Trorrr=20[H=E9ctor=20Fern=E1ndez]?=) Date: Wed, 6 Apr 2005 21:14:13 +0200 (CEST) Subject: [Gambas-user] speech about gambas Message-ID: <20050406191413.69508.qmail@...941...> Hi! We (a friend and i) are going to make a speech about gambas in the university of A Coru?a, NW Spain, next wednesday. We are in a local LUG named GPUL (http://www.gpul.org), which organizes several events, such as conferences about different areas, all related to OpenSource. We need a Big Gamba to show at the background of the slideshow, but we only have the little one that appears at the website. Please, can anybody send us a Big One? xD Thanks PD: You'll have news about how Gambas was received at the University! ______________________________________________ Renovamos el Correo Yahoo!: ?250 MB GRATIS! Nuevos servicios, m?s seguridad http://correo.yahoo.es From gambasfr at ...11... Wed Apr 6 22:15:50 2005 From: gambasfr at ...11... (fabien) Date: Wed, 6 Apr 2005 22:15:50 +0200 Subject: [Gambas-user] speech about gambas In-Reply-To: <20050406191413.69508.qmail@...941...> References: <20050406191413.69508.qmail@...941...> Message-ID: <200504062215.50861.gambasfr@...11...> Le Mercredi 06 Avril 2005 21:14, Trorrr [H?ctor Fern?ndez] a ?crit?: > Hi! We (a friend and i) are going to make a speech > about gambas in the university of A Coru?a, NW Spain, > next wednesday. We are in a local LUG named GPUL > (http://www.gpul.org), which organizes several events, > such as conferences about different areas, all related > to OpenSource. > > We need a Big Gamba to show at the background of the > slideshow, but we only have the little one that > appears at the website. > > Please, can anybody send us a Big One? xD > > Thanks > > PD: You'll have news about how Gambas was received at > the University! > > Hi, And one big gambas ... one ! I send you the svg files with two icon the first is the standart gambas logo the second is the logo i use in the gambasforge site I hope it's good for you :) Regards, Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas.svg Type: image/svg+xml Size: 19443 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: new_gambas.svg Type: image/svg+xml Size: 21325 bytes Desc: not available URL: From bernieman.tux at ...626... Thu Apr 7 12:06:43 2005 From: bernieman.tux at ...626... (BernieMan) Date: Thu, 07 Apr 2005 12:06:43 +0200 Subject: [Gambas-user] Gnome - KDE In-Reply-To: <200504041058.37857.gambas@...1...> References: <424BCA2F.1060506@...626...> <200504041058.37857.gambas@...1...> Message-ID: <42550633.5060008@...626...> Benoit Minisini schrieb: >>I have another questions: >>Is a compiled application running under Gnome? >>Do I need a runtime-library to give an app to third person? > > > Yes. You need to install the gambas interpreter, all components used by your > project, and all libraries used by these components. > > >>I have one Application and its running under KDE but Gnome is making >>problems. >>I don't use KDE-Components in that app and on the Gnome-Machine there >>are the KDE-Libs installed. > > > What problems ? Be more precise please! OK - more precise - I create an app - I have KDE as Window-Manager I try to run that app under a Gnome-Window-Manager on a different machine. It says something like "... childprocess ..." It is not running. So my question was: Is an app running under Gnome or is it necessary to run it under KDE, even when my app don`t use KDE-Components. Because I have people around me using Gnome, not KDE, it is interesting for me, if this people can use my apps. /tia bm From ulisse at ...933... Thu Apr 7 19:16:39 2005 From: ulisse at ...933... (ulisse at ...933...) Date: Thu, 07 Apr 2005 19:16:39 +0200 Subject: [Gambas-user] (No subject header) Message-ID: <42556af7.251.1964.10868@...933...> Hi all, I've got the following issue. I don't know how to select a specific item in a listview control from code. Possibly, the effect I would like to get is an "Select" method raised. Is it possible? Thanks Ulisse From daniel.campos at ...338... Thu Apr 7 20:36:07 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Thu, 07 Apr 2005 20:36:07 +0200 Subject: [Gambas-user] (No subject header) In-Reply-To: <42556af7.251.1964.10868@...933...> References: <42556af7.251.1964.10868@...933...> Message-ID: <42557D97.40303@...338...> ulisse at ...933... escribi?: >Hi all, >I've got the following issue. > >I don't know how to select a specific item in a listview >control from code. > >Possibly, the effect I would like to get is an "Select" >method raised. > > >Is it possible? > > Dim Lista As ListView ... Lista.Add("1", "a1") Lista.Add("2", "a2") Lista["1"].Selected = TRUE Regards, D. Campos > >Thanks > >Ulisse > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From christian.faurebouvard at ...357... Thu Apr 7 16:51:28 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Thu, 7 Apr 2005 10:51:28 -0400 Subject: [Gambas-user] gambas2-1.9.5, Component creation In-Reply-To: <200503291845.44812.christian.faurebouvard@...357...> References: <200503231420.28852.gambas@...1...> <200503291625.49914.gambas@...1...> <200503291845.44812.christian.faurebouvard@...357...> Message-ID: <200504071051.28979.christian.faurebouvard@...357...> Hi, i run gambas2 from console, open a project to test gb.form component it compile ok, F5 ->hang :-( Console output: #> gambas2 gb.qt: Label.* declared but not implemented gb.qt: TextLabel.* declared but not implemented gb.form: ValueBox.* declared but not implemented gb.qt: Label.* declared but not implemented gb.qt: TextLabel.* declared but not implemented gb.form: ValueBox.* declared but not implemented gb.qt: Label.* declared but not implemented gb.qt: TextLabel.* declared but not implemented gb.form: ValueBox.* declared but not implemented gb.qt: Label.* declared but not implemented gb.qt: TextLabel.* declared but not implemented gb.form: ValueBox.* declared but not implemented Terminado (killed) #> Regards, Christian From alan at ...833... Fri Apr 8 14:11:45 2005 From: alan at ...833... (alan) Date: Fri, 08 Apr 2005 13:11:45 +0100 Subject: [Gambas-user] Does .ColumnViewColumn work ? Message-ID: <42567501.9000903@...833...> Hi I am trying to convert an Ms/access application to Gambas using Postgresql. Several of the forms require the display and modification of data in a table . After trying TableView, ListView and ColumnView the latter seems to be the most suitable. However the .ColumnViewColumn does no compile ( the compiler says that .colnmn does not exist). Is this a problem with my system? I am using 1.9.3 on Mandrake 10.2 RC2 Alan Bromley From w at ...731... Fri Apr 8 16:12:11 2005 From: w at ...731... (Vincenzo Ing. Virgilio) Date: Fri, 08 Apr 2005 16:12:11 +0200 Subject: [Gambas-user] First article and cover about Gambas in Italy Message-ID: <4256913B.9030407@...731...> At least, also Italy arrived! The italian review Linux Pratico published the first article i know about gambas. Gambas is named on the cover, a mini-headline in the summary, and finally a one page article. Also, there is the CD Cover! I don't post links to the article due to copyright issues, but you can find the cover and the cover cd at the following links: http://www.gambas.it/linuxpro/copertina.JPG http://www.gambas.it/linuxpro/CdCover.JPG Vincenzo From sourceforge-raindog2 at ...94... Fri Apr 8 17:04:18 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 8 Apr 2005 10:04:18 -0500 Subject: [Gambas-user] First article and cover about Gambas in Italy In-Reply-To: <4256913B.9030407@...731...> References: <4256913B.9030407@...731...> Message-ID: <200504081104.18741.sourceforge-raindog2@...94...> On Friday 08 April 2005 10:12, Vincenzo Ing. Virgilio wrote: > At least, also Italy arrived! > The italian review Linux Pratico published the first article i know > about gambas. The magazine and CD covers look like Linux Pratico is published by the same people as Linux Format in the UK. Since LF reviewed Gambas 1.0.1, maybe word got around in the organization... I'm glad to see Italy has a Linux magazine aimed at normal business and home users rather than computer science degree holders. Our two American Linux magazines are extremely dry and uninteresting, with little if any coverage of desktop technologies. It's more stuff like "How to use clusters to decode human DNA..." So I spend a lot to buy imported copies of Linux Format and Linux Pro each month. Rob From jcastro at ...942... Fri Apr 8 19:02:22 2005 From: jcastro at ...942... (Juan Carlos Castro y Castro) Date: Fri, 08 Apr 2005 14:02:22 -0300 Subject: [Gambas-user] libxml error (& others) compiling Gambas 1.0.4 in RHEL3 clone Message-ID: <4256B91E.4050708@...942...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello to all. During compilation of CXmlRpc.c it complains it can't find libxml/xmlwriter.h -- and there really isn't such a file in my system. I had to configure with "--disable-libxml". Oh, great, now I have another error: g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/lib/qt-3.1/include/ - -D_REENTRANT -I../../../src/share -g -pipe -Wall -fno-exceptions -g - -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In function `void QT_Init()': main.cpp:333: no matching function for call to `QTranslator::QTranslator()' /usr/lib/qt-3.1/include/qtranslator.h:153: candidates are: QTranslator::QTranslator(const QTranslator&) /usr/lib/qt-3.1/include/qtranslator.h:106: QTranslator::QTranslator(QObject*, const char* = 0) make[5]: ** [main.lo] Erro 1 make[5]: Saindo do diret?rio `/usr/src/gambas-1.0.4/src/lib/qt' make[4]: ** [all-recursive] Erro 1 make[4]: Saindo do diret?rio `/usr/src/gambas-1.0.4/src/lib/qt' make[3]: ** [all-recursive] Erro 1 make[3]: Saindo do diret?rio `/usr/src/gambas-1.0.4/src/lib' make[2]: ** [all-recursive] Erro 1 make[2]: Saindo do diret?rio `/usr/src/gambas-1.0.4/src' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diret?rio `/usr/src/gambas-1.0.4' make: ** [all] Erro 2 I have the following libxml RPMs installed: libxml2-2.5.10-7.TL1 libxml2-devel-2.5.10-7.TL1 libxml-1.8.17-9.2 libxml-devel-1.8.17-9.2 Any clues? Thanks in advance, - -- Juan Carlos Castro y Castro Desenvolvimento de Software Gisplan Tecnologia da Geoinforma??o Ltda. - http://www.gisplan.com.br Av. Armando Lombardi, 800/311 - Barra da Tijuca Rio de Janeiro - RJ - 22640-020 Tel: (0xx21) 2494-2838 Fax: (0xx21) 2495-0728 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCVrkdaM7yIXrRc3QRApAJAJ40i9floveaUkj6yJDhtagrtOrsoACgn/Gn lm/8hypL69ArM+f8l0P/MyQ= =DRmz -----END PGP SIGNATURE----- From jcastro at ...942... Fri Apr 8 21:35:06 2005 From: jcastro at ...942... (Juan Carlos Castro y Castro) Date: Fri, 08 Apr 2005 16:35:06 -0300 Subject: [Gambas-user] libxml error (& others) compiling Gambas 1.0.4 in RHEL3 clone In-Reply-To: <4256B91E.4050708@...942...> References: <4256B91E.4050708@...942...> Message-ID: <4256DCEA.4020002@...942...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Update: I tried --disable-intl --disable-conv --disable-gettext too, but the QTranslator error persisted. Juan Carlos Castro y Castro escreveu: > Hello to all. During compilation of CXmlRpc.c it complains it can't > find libxml/xmlwriter.h -- and there really isn't such a file in > my system. I had to configure with "--disable-libxml". > > Oh, great, now I have another error: > > g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I/usr/lib/qt-3.1/include/ > -D_REENTRANT -I../../../src/share -g -pipe -Wall -fno-exceptions -g > -Os -fno-omit-frame-pointer -MT main.lo -MD -MP -MF .deps/main.Tpo > -c main.cpp -fPIC -DPIC -o .libs/main.o main.cpp: In function > `void QT_Init()': main.cpp:333: no matching function for call to > `QTranslator::QTranslator()' > /usr/lib/qt-3.1/include/qtranslator.h:153: candidates are: > QTranslator::QTranslator(const QTranslator&) > /usr/lib/qt-3.1/include/qtranslator.h:106: > QTranslator::QTranslator(QObject*, const char* = 0) make[5]: ** > [main.lo] Erro 1 make[5]: Saindo do diret?rio > `/usr/src/gambas-1.0.4/src/lib/qt' make[4]: ** [all-recursive] Erro > 1 make[4]: Saindo do diret?rio `/usr/src/gambas-1.0.4/src/lib/qt' > make[3]: ** [all-recursive] Erro 1 make[3]: Saindo do diret?rio > `/usr/src/gambas-1.0.4/src/lib' make[2]: ** [all-recursive] Erro 1 > make[2]: Saindo do diret?rio `/usr/src/gambas-1.0.4/src' make[1]: > ** [all-recursive] Erro 1 make[1]: Saindo do diret?rio > `/usr/src/gambas-1.0.4' make: ** [all] Erro 2 > > > I have the following libxml RPMs installed: > > libxml2-2.5.10-7.TL1 libxml2-devel-2.5.10-7.TL1 libxml-1.8.17-9.2 > libxml-devel-1.8.17-9.2 > > Any clues? Thanks in advance, > - ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user - -- Juan Carlos Castro y Castro Desenvolvimento de Software Gisplan Tecnologia da Geoinforma??o Ltda. - http://www.gisplan.com.br Av. Armando Lombardi, 800/311 - Barra da Tijuca Rio de Janeiro - RJ - 22640-020 Tel: (0xx21) 2494-2838 Fax: (0xx21) 2495-0728 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCVtzqaM7yIXrRc3QRAka4AJ92EFpJugwvie/mAWA6veSn8XqsVgCaA7nT /TDqmADdapVPhd5kxsHbhNA= =2GBc -----END PGP SIGNATURE----- From lordheavy at ...512... Fri Apr 8 21:47:31 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Fri, 8 Apr 2005 21:47:31 +0200 Subject: [Gambas-user] libxml error (& others) compiling Gambas 1.0.4 in RHEL3 clone In-Reply-To: <4256DCEA.4020002@...942...> References: <4256B91E.4050708@...942...> <4256DCEA.4020002@...942...> Message-ID: <200504082147.32076.lordheavy@...512...> Upgrade your Qt lib ? -- Laurent Carlier jabber : LordHeavy at ...943... From jcastro at ...942... Fri Apr 8 21:55:45 2005 From: jcastro at ...942... (Juan Carlos Castro y Castro) Date: Fri, 08 Apr 2005 16:55:45 -0300 Subject: [Gambas-user] libxml error (& others) compiling Gambas 1.0.4 in RHEL3 clone In-Reply-To: <200504082147.32076.lordheavy@...512...> References: <4256B91E.4050708@...942...> <4256DCEA.4020002@...942...> <200504082147.32076.lordheavy@...512...> Message-ID: <4256E1C1.8050907@...942...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was hoping it would work with the Qt version in RHEL (3.1.2). People here at work are kinda queasy about such big updates -- too many side effects on the custom applications we develop. What we say to clients is "you will use this with RHEL 3 or a direct clone liek Tao or CentOS, period." Yes, I tried to change that policy. No can do. Isn't there some tweak that could be done on the Gambas code to make it work? It seems the constructor for my version of QTranslator demand a "parent object" of the type QObject -- what could I pass it? qApp perhaps? Laurent Carlier escreveu: > Upgrade your Qt lib ? - -- Juan Carlos Castro y Castro Desenvolvimento de Software Gisplan Tecnologia da Geoinforma??o Ltda. - http://www.gisplan.com.br Av. Armando Lombardi, 800/311 - Barra da Tijuca Rio de Janeiro - RJ - 22640-020 Tel: (0xx21) 2494-2838 Fax: (0xx21) 2495-0728 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCVuHBaM7yIXrRc3QRAobiAJ9lqRtzvdKKcsr+6vY5YaoJZ6eD9gCgix9v rta0RgvETGDCbaXZvYfxD9g= =BNXA -----END PGP SIGNATURE----- From jcastro at ...942... Fri Apr 8 22:12:32 2005 From: jcastro at ...942... (Juan Carlos Castro y Castro) Date: Fri, 08 Apr 2005 17:12:32 -0300 Subject: [Gambas-user] libxml error (& others) compiling Gambas 1.0.4 in RHEL3 clone In-Reply-To: <4256E1C1.8050907@...942...> References: <4256B91E.4050708@...942...> <4256DCEA.4020002@...942...> <200504082147.32076.lordheavy@...512...> <4256E1C1.8050907@...942...> Message-ID: <4256E5B0.6030509@...942...> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well well. I did just that and it seems to work. I only got these errors in "make install" when compiling two of the sample projects: gbc: ERROR: Cannot open file: /usr/local/gambas/share/gambas/info/gb.sdl.list But it seems to be fine now. Could this change be incorporated in a bugfix release? (1.0.5?) Juan Carlos Castro y Castro escreveu: > I was hoping it would work with the Qt version in RHEL (3.1.2). > People here at work are kinda queasy about such big updates -- too > many side effects on the custom applications we develop. What we > say to clients is "you will use this with RHEL 3 or a direct clone > liek Tao or CentOS, period." Yes, I tried to change that policy. No > can do. > > Isn't there some tweak that could be done on the Gambas code to > make it work? It seems the constructor for my version of > QTranslator demand a "parent object" of the type QObject -- what > could I pass it? qApp perhaps? > > Laurent Carlier escreveu: > >> Upgrade your Qt lib ? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCVuWvaM7yIXrRc3QRArW5AJ0RXjZH96ostlx7erYgS4AtP7gWZgCeLVEa 7ECFwRdKnM6KsLK/7Gs6dvs= =6JFX -----END PGP SIGNATURE----- From lordheavy at ...512... Fri Apr 8 22:21:57 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Fri, 8 Apr 2005 22:21:57 +0200 Subject: [Gambas-user] libxml error (& others) compiling Gambas 1.0.4 in RHEL3 clone In-Reply-To: <4256E1C1.8050907@...942...> References: <4256B91E.4050708@...942...> <200504082147.32076.lordheavy@...512...> <4256E1C1.8050907@...942...> Message-ID: <200504082221.57806.lordheavy@...512...> You can try to update your src/lib/qt/main.cpp with this one (from gambas 1.0.1) Don't forget to make a backup ! -- Laurent Carlier jabber : LordHeavy at ...943... -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp Type: text/x-c++src Size: 11745 bytes Desc: not available URL: From ulisse at ...933... Sat Apr 9 09:45:03 2005 From: ulisse at ...933... (ulisse) Date: Sat, 9 Apr 2005 09:45:03 +0200 Subject: [Gambas-user] (No subject header) - ListView row selection In-Reply-To: <42557D97.40303@...338...> References: <42556af7.251.1964.10868@...933...> <42557D97.40303@...338...> Message-ID: <200504090945.04258.ulisse@...933...> Perfect, thanks. It works! Alle 20:36, gioved? 7 aprile 2005, Daniel Campos ha scritto: > ulisse at ...933... escribi?: > >Hi all, > >I've got the following issue. > > > >I don't know how to select a specific item in a listview > >control from code. > > > >Possibly, the effect I would like to get is an "Select" > >method raised. > > > > > >Is it possible? > > Dim Lista As ListView > > ... > > Lista.Add("1", "a1") > Lista.Add("2", "a2") > Lista["1"].Selected = TRUE > > Regards, > > D. Campos > > >Thanks > > > >Ulisse > > > > > >------------------------------------------------------- > >SF email is sponsored by - The IT Product Guide > >Read honest & candid reviews on hundreds of IT Products from real users. > >Discover which products truly live up to the hype. Start reading now. > >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bundeshund at ...467... Sat Apr 9 15:14:29 2005 From: bundeshund at ...467... (HMB) Date: Sat, 9 Apr 2005 15:14:29 +0200 Subject: [Gambas-user] compiling all components in gambas2-1.9.5 Message-ID: <200504091514.29539.bundeshund@...467...> Hi gambanesians, when i try to compile the latest development-tarball, i got the following components not to run: hmb at ...56...:~/Documents/work/tmp/gambas2-1.9.5> ./configure > hmb_configure_out.txt configure: WARNING: *** Advanced networking component is disabled configure: WARNING: *** SDL 2D image is disabled configure: WARNING: *** external internationalization library is disabled configure: WARNING: *** external charset conversion library is disabled configure: WARNING: *** external gettext library is disabled I use SuSE9.1 (updated with Yast using KDE3.4) and i mostly wonder about SDL-2D and gettext, because i installed both source-rpms from SuSE. Maybe there is one SuSE user out there and has solved this problem and can tell me, what rpms i need for the other components? regards, Hans Martin From gambas at ...913... Sat Apr 9 12:03:30 2005 From: gambas at ...913... (=?iso-8859-15?q?Jos=E9_Mar=EDa_Lucero?=) Date: Sat, 9 Apr 2005 10:03:30 +0000 Subject: [Gambas-user] gambas 1.0.4 doesnt start Message-ID: <200504091003.30204.gambas@...913...> Hi, I use gentoo, and had previously been using gambas 1.0.2 normally, i recently upgraded to 1.0.4 with portage. Now gambas doesnt start, if i issue the command in konsole i get no error message and the prompt doesnt return, however no gambas windows ever shows up. In ksysguard i see that gbx is running and aparently doing something user% is around 90%. If I log in to kde as another user (which i believe never used gambas before) gambas starts normaly. I tried erasing the .gambas directory but this caused no change i also cant start gambas from my kde by loging as another user in console, i get "Session management error: Could not open network socket" Any idea how to fix this? From gambas at ...913... Sat Apr 9 12:32:17 2005 From: gambas at ...913... (=?iso-8859-15?q?Jos=E9_Mar=EDa_Lucero?=) Date: Sat, 9 Apr 2005 10:32:17 +0000 Subject: [Gambas-user] gambas 1.0.4 does not start, more info Message-ID: <200504091032.18054.gambas@...913...> I discovered the problem with my installation of gambas is locale related i have LANG="es_AR" in my .bashrc file if i change this to "es_US" gambas starts normally, changing to anything else gives a messege about not being able to use that locale, but if the locale starts with "en" gambas starts nevertheless, not so if it is set to spanish any idea if this is a gambas bug in the new version or an installation problem (posibly a gentoo portage problem?) From sourceforge-raindog2 at ...94... Sun Apr 10 19:40:06 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Sun, 10 Apr 2005 12:40:06 -0500 Subject: [Gambas-user] finally, mandrake packages of 1.9.5 Message-ID: <200504101340.06627.sourceforge-raindog2@...94...> After doing some very nasty things in the spec file (basically editing all the makefiles after the build and before the "make install") I finally got gambas2-1.9.5 packaged for Mandrake 10.1. As I mention on the release page, it is UNSTABLE and NOT SUITED for production use. http://www.kudla.org/index.php?wl_mode=more&wl_eid=75 Rob From stock at ...944... Mon Apr 11 05:13:58 2005 From: stock at ...944... (Robert M. Stockmann) Date: Mon, 11 Apr 2005 05:13:58 +0200 (CEST) Subject: [Gambas-user] gambas-1.0.4 on Mandrake 10.1 AMD64 Message-ID: Hello, I downloaded gambas-1.0.4 from http://gambas.sourceforge.net/ and tried to get it compiling and running on Mandrake 10.1 AMD64 . Here's how far i got : The result is for download at : ftp://stokkie.net/pub/linux/gambas/gambas-1.0.4-1mdk.src.rpm filesize : -rw-r--r-- 1 root root 4211913 Apr 11 05:07 gambas-1.0.4-1mdk.src.rpm md5sum : 83953730b7487416785a6d021d10661f gambas-1.0.4-1mdk.src.rpm Here follows the last part of : rpm -v -ba gamba.spec : ------------------------------------------------------- . . Installing with ROOT=/var/tmp/gambas-1.0.4-1mdk-buildroot Creating the library info files... /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.debug.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.eval.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.db.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.compress.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.xml.libxml.xslt.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.xml.libxml.rpc.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.xml.libxml.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.qt.editor.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.qt.ext.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.qt.kde.html.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.qt.kde.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.qt.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.net.curl.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.net.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.sdl.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.vb.info /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/gambas/info/gb.info Installing the development environment... Compiling gambas... OK Compiling gambas-database-manager... OK Installing the gambas help files... Installing the gambas examples... Compiling Automation/KateBrowser/... OK Compiling Automation/Scripting/... OK Compiling Basic/Blights/... OK Compiling Basic/Collection/... OK Compiling Basic/DragNDrop/... OK Compiling Basic/Object/... OK Compiling Basic/Timer/... OK Compiling Basic/TreeView/... OK Compiling Database/Database/... OK Compiling Database/DataReportExample/... OK Compiling Drawing/AnalogWatch/... OK Compiling Drawing/Clock/... OK Compiling Drawing/ImageViewer/... OK Compiling Drawing/OnScreenDisplay/... OK Compiling Exec/Console/... OK Compiling Exec/MoviePlayer/... OK Compiling Games/DeepSpace/... OK Compiling Games/RobotFindsKitten/... OK Compiling Games/Snake/... OK Compiling Games/Solitaire/... OK Compiling Miscellaneous/Evaluator/... OK Compiling Miscellaneous/Explorer/... OK Compiling Miscellaneous/Notepad/... OK Compiling Networking/ClientSocket/... OK Compiling Networking/DnsClient/... OK Compiling Networking/HTTPGet/... OK Compiling Networking/HTTPPost/... OK Compiling Networking/SerialPort/... OK Compiling Networking/ServerSocket/... OK Compiling Networking/UDPServerClient/... OK Compiling Networking/WebBrowser/... OK Compiling Sound/MusicPlayer/... OK make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/usr/src/RPM/BUILD/gambas-1.0.4' make[1]: Leaving directory `/usr/src/RPM/BUILD/gambas-1.0.4' + /usr/lib/rpm/brp-mandrake Cleaning files...done Compressing files...done Stripping files...done Relativisation of symlinks...done Clean perl...done Building libraries symlinks...done Translating menus: Applications/Development/Development environments => More Applications/Development/Development environments done Processing files: gambas-runtime-1.0.4-1mdk Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.56560 + umask 022 + cd /usr/src/RPM/BUILD + cd gambas-1.0.4 + DOCDIR=/var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/doc/gambas-runtime-1.0.4 + export DOCDIR + rm -rf /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/doc/gambas-runtime-1.0.4 + /bin/mkdir -p /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/doc/gambas-runtime-1.0.4 + cp -pr README AUTHORS COPYING INSTALL NEWS README.REDHAT README.DEBIAN TODO /var/tmp/gambas-1.0.4-1mdk-buildroot/usr/share/doc/gambas-runtime-1.0.4 + exit 0 Processing files: gambas-ide-1.0.4-1mdk Processing files: gambas-gb-compress-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.compress.bzlib2.so.0()(64bit) lib.gb.compress.so.0()(64bit) lib.gb.compress.zlib.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libbz2.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libz.so.1()(64bit) Processing files: gambas-gb-db-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.db.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) Processing files: gambas-gb-db-mysql-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.db.mysql.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-db = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libmysqlclient.so.12()(64bit) libz.so.1()(64bit) Processing files: gambas-gb-db-postgresql-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.db.postgresql.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-db = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libpq.so.3()(64bit) Processing files: gambas-gb-db-sqlite-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.db.sqlite.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-db = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libgcc_s.so.1()(64bit) libm.so.6()(64bit) libsqlite.so.0()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) Processing files: gambas-gb-debug-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.debug.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) Processing files: gambas-gb-eval-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.eval.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) Processing files: gambas-gb-net-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.net.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) Processing files: gambas-gb-net-curl-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.net.curl.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-net = 1.0.4 libcrypto.so.0.9.7()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libcurl.so.3()(64bit) libdl.so.2()(64bit) libssl.so.0.9.7()(64bit) libz.so.1()(64bit) Processing files: gambas-gb-qt-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.qt.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libqt-mt.so.3 >= 3.2 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libgcc_s.so.1()(64bit) libm.so.6()(64bit) libpthread.so.0()(64bit) libqt-mt.so.3()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) Processing files: gambas-gb-qt-ext-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.qt.ext.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-qt = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libgcc_s.so.1()(64bit) libm.so.6()(64bit) libpthread.so.0()(64bit) libqt-mt.so.3()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) Processing files: gambas-gb-qt-editor-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.qt.editor.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-qt = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libgcc_s.so.1()(64bit) libm.so.6()(64bit) libpthread.so.0()(64bit) libqt-mt.so.3()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) Processing files: gambas-gb-qt-kde-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.qt.kde.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-qt = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libDCOP.so.4()(64bit) libgcc_s.so.1()(64bit) libkdecore.so.4()(64bit) libkdeui.so.4()(64bit) libkio.so.4()(64bit) libm.so.6()(64bit) libpthread.so.0()(64bit) libqt-mt.so.3()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) Processing files: gambas-gb-qt-kde-html-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.qt.kde.html.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 gambas-gb-qt-kde = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libDCOP.so.4()(64bit) libgcc_s.so.1()(64bit) libkdecore.so.4()(64bit) libkdeui.so.4()(64bit) libkhtml.so.4()(64bit) libkio.so.4()(64bit) libkjs.so.1()(64bit) libm.so.6()(64bit) libpthread.so.0()(64bit) libqt-mt.so.3()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) Processing files: gambas-gb-sdl-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.sdl.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpthread.so.0()(64bit) libSDL-1.2.so.0()(64bit) libSDL_mixer-1.2.so.0()(64bit) Processing files: gambas-gb-vb-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.vb.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) Processing files: gambas-gb-xml-1.0.4-1mdk Finding Provides: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-provides Using BuildRoot: /var/tmp/gambas-1.0.4-1mdk-buildroot to search libs Finding Requires: /usr/lib/rpm/filter.sh ' ' /usr/lib/rpm/find-requires /var/tmp/gambas-1.0.4-1mdk-buildroot x86_64 Provides: lib.gb.xml.libxml.rpc.so.0()(64bit) lib.gb.xml.libxml.so.0()(64bit) lib.gb.xml.libxml.xslt.so.0()(64bit) Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Requires: gambas-runtime = 1.0.4 libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libm.so.6()(64bit) libpthread.so.0()(64bit) libxml2.so.2()(64bit) libxslt.so.1()(64bit) Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/gambas-1.0.4-1mdk-buildroot Wrote: /usr/src/RPM/SRPMS/gambas-1.0.4-1mdk.src.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-runtime-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-ide-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-compress-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-db-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-db-mysql-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-db-postgresql-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-db-sqlite-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-debug-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-eval-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-net-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-net-curl-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-qt-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-qt-ext-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-qt-editor-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-qt-kde-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-qt-kde-html-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-sdl-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-vb-1.0.4-1mdk.x86_64.rpm Wrote: /usr/src/RPM/RPMS/x86_64/gambas-gb-xml-1.0.4-1mdk.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.39564 + umask 022 + cd /usr/src/RPM/BUILD + cd gambas-1.0.4 + rm -rf /var/tmp/gambas-1.0.4-1mdk-buildroot + exit 0 [jackson:root]:(/usr/src/RPM/SPECS)# I applied the following patch to get the above compiled and installed : [jackson:root]:(/usr/src/RPM/SOURCES)# bzcat gambas-1.0.4-libpath64.patch.bz2 diff -u -r gambas-1.0.4/src/comp/gbi.c gambas-1.0.4.libpath64/src/comp/gbi.c --- gambas-1.0.4/src/comp/gbi.c 2004-07-25 13:08:59.000000000 +0200 +++ gambas-1.0.4.libpath64/src/comp/gbi.c 2005-04-11 04:23:20.558387240 +0200 @@ -115,7 +115,11 @@ strncpy(_root, FILE_get_dir(FILE_get_dir(path)), MAX_PATH); } - strcpy(_lib_path, FILE_cat(_root, "lib/gambas", NULL)); + #if defined(__x86_64__) || defined(__amd64__) + strcpy(_lib_path, FILE_cat(_root, "lib64/gambas", NULL)); + #else + strcpy(_lib_path, FILE_cat(_root, "lib/gambas", NULL)); + #endif strcpy(_info_path, FILE_cat(_root, "share/gambas/info", NULL)); if (lt_dlinit()) diff -u -r gambas-1.0.4/src/exec/gbx_project.c gambas-1.0.4.libpath64/src/exec/gbx_project.c --- gambas-1.0.4/src/exec/gbx_project.c 2004-07-21 22:18:35.000000000 +0200 +++ gambas-1.0.4.libpath64/src/exec/gbx_project.c 2005-04-11 04:26:27.123025104 +0200 @@ -254,7 +254,11 @@ STRING_new(&PROJECT_exec_path, FILE_get_dir(FILE_get_dir(path)), -1); - STRING_new(&PROJECT_lib_path, FILE_cat(PROJECT_exec_path, "lib/gambas", NULL), 0); + #if defined(__x86_64__) || defined(__amd64__) + STRING_new(&PROJECT_lib_path, FILE_cat(PROJECT_exec_path, "lib64/gambas", NULL), 0); + #else + STRING_new(&PROJECT_lib_path, FILE_cat(PROJECT_exec_path, "lib/gambas", NULL), 0); + #endif /* fichier projet */ [jackson:root]:(/usr/src/RPM/SOURCES)# However when running gambas some problems occur : [jackson:stock]:(~)$ gambas sizeof(CLASS) = 256 ! ERROR: #51: Bad archive: Invalid argument [jackson:stock]:(~)$ [jackson:stock]:(~)$ /usr/bin/gbx sizeof(CLASS) = 256 ! ERROR: #45: File or directory does not exist [jackson:stock]:(~)$ /usr/bin/gbx -x gbx: no archive file. [jackson:stock]:(~)$ and here is the debug report, for what its worth : [jackson:stock]:(~/tmp/gambas-1.0.4)$ cd app/gambas [jackson:stock]:(~/tmp/gambas-1.0.4/app/gambas)$ gbc -agt OK [jackson:stock]:(~/tmp/gambas-1.0.4/app/gambas)$ gdb gbx GNU gdb 6.2-2mdk (Mandrakelinux) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-mandrake-linux-gnu"...(no debugging symbols found)...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) set args -p (gdb) run Starting program: /usr/bin/gbx -p (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...sizeof(CLASS) = 256 ! [Thread debugging using libthread_db enabled] [New Thread 182899912864 (LWP 28056)] ERROR: #2: Cannot load class 'Project': Bad format in static section Program exited with code 01. (gdb) bt No stack. (gdb) Thanks, Robert -- Robert M. Stockmann - RHCE Network Engineer - UNIX/Linux Specialist crashrecovery.org stock at ...944... From grahame at ...457... Mon Apr 11 08:28:05 2005 From: grahame at ...457... (Grahame White) Date: Mon, 11 Apr 2005 07:28:05 +0100 Subject: [Gambas-user] gambas-1.0.4 on Mandrake 10.1 AMD64 In-Reply-To: References: Message-ID: <200504110728.05594.grahame@...457...> > > However when running gambas some problems occur : > > [jackson:stock]:(~)$ gambas > sizeof(CLASS) = 256 ! > ERROR: #51: Bad archive: Invalid argument > [jackson:stock]:(~)$ > [jackson:stock]:(~)$ /usr/bin/gbx > sizeof(CLASS) = 256 ! > ERROR: #45: File or directory does not exist > [jackson:stock]:(~)$ /usr/bin/gbx -x > gbx: no archive file. > [jackson:stock]:(~)$ > I'm seeing the same error with the AMD64 Debian packages too. Grahame From stefan at ...744... Mon Apr 11 13:47:46 2005 From: stefan at ...744... (Stefan Lamprecht) Date: Mon, 11 Apr 2005 13:47:46 +0200 Subject: [Gambas-user] gambas-1.0.4 on Mandrake 10.1 AMD64 In-Reply-To: <200504110728.05594.grahame@...457...> References: <200504110728.05594.grahame@...457...> Message-ID: <200504111347.48836.stefan@...744...> hallo, Am Montag, 11. April 2005 08:28 schrieb Grahame White: > > > > However when running gambas some problems occur : > > > > [jackson:stock]:(~)$ gambas > > sizeof(CLASS) = 256 ! > > ERROR: #51: Bad archive: Invalid argument > > [jackson:stock]:(~)$ > > [jackson:stock]:(~)$ /usr/bin/gbx > > sizeof(CLASS) = 256 ! > > ERROR: #45: File or directory does not exist > > [jackson:stock]:(~)$ /usr/bin/gbx -x > > gbx: no archive file. > > [jackson:stock]:(~)$ > > > I'm seeing the same error with the AMD64 Debian packages too. well, looks exactly like my yesterdays attemp to compile it on suse 64... suse includes some rpms for x86_64, which didn t work on my computer. has anyone compiled any gambas versions _successfully_ in an x86_64 enviroment? liebe gr??e s. From soporte at ...204... Mon Apr 11 14:11:31 2005 From: soporte at ...204... (=?ISO-8859-1?Q?Ram=F3n_P=E9rez?=) Date: Mon, 11 Apr 2005 14:11:31 +0200 Subject: [Gambas-user] kde3.4 Message-ID: <425A6973.10402@...204...> I have updated my Suse 9.2 from kde 3.3 to kde 3.4. After this, gambas doesn't begin. When I run gambas from console nothing happens and always gbx remain in execution. Regards. From forodejazz at ...626... Mon Apr 11 14:15:58 2005 From: forodejazz at ...626... (=?ISO-8859-1?Q?David_Asorey_=C1lvarez?=) Date: Mon, 11 Apr 2005 14:15:58 +0200 Subject: [Gambas-user] kde3.4 In-Reply-To: <425A6973.10402@...204...> References: <425A6973.10402@...204...> Message-ID: Try to recompile Gambas ;-) Maybe your qt library has changed .... On Apr 11, 2005 2:11 PM, Ram?n P?rez wrote: > I have updated my Suse 9.2 from kde 3.3 to kde 3.4. After this, gambas > doesn't begin. When I run gambas from console nothing happens and always > gbx remain in execution. > > Regards. > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- David Asorey ?lvarez forodejazz at ...626... From na2492 at ...9... Mon Apr 11 14:36:52 2005 From: na2492 at ...9... (Charlie Reinl) Date: Mon, 11 Apr 2005 14:36:52 00200 Subject: [Gambas-user] gambas-1.0.4 on Mandrake 10.1 AMD64 Message-ID: <425a6f64.3ee.0@...9...> >hallo, > >Am Montag, 11. April 2005 08:28 schrieb Grahame White: >> >> >> > However when running gambas some problems occur : >> > >> > [jackson:stock]:(~)$ gambas >> > sizeof(CLASS) = 256 ! >> > ERROR: #51: Bad archive: Invalid argument >> > [jackson:stock]:(~)$ >> > [jackson:stock]:(~)$ /usr/bin/gbx >> > sizeof(CLASS) = 256 ! >> > ERROR: #45: File or directory does not exist >> > [jackson:stock]:(~)$ /usr/bin/gbx -x >> > gbx: no archive file. >> > [jackson:stock]:(~)$ >> >> >> I'm seeing the same error with the AMD64 Debian packages too. > >well, looks exactly like my yesterdays attemp to compile it on suse 64... >suse includes some rpms for x86_64, which didn t work on my computer. >has anyone compiled any gambas versions _successfully_ in an x86_64 >enviroment? > > >liebe gr??e > >s. Salut, some times ago it was said, on x86_64 you have to compile gambas in 32 b mode. Have a look in the archiv Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From r.perez at ...204... Mon Apr 11 17:42:24 2005 From: r.perez at ...204... (=?ISO-8859-1?Q?Ram=F3n_P=E9rez?=) Date: Mon, 11 Apr 2005 17:42:24 +0200 Subject: [Gambas-user] kde3.4 In-Reply-To: References: <425A6973.10402@...204...> Message-ID: <425A9AE0.3000908@...204...> I have recompiled already with no problem in recompilation and I have erased the gambas.conf too, but the problem is the same. In Kubuntu with kde 3.4 too, gambas works fine. Regards. David Asorey ?lvarez escribi?: >Try to recompile Gambas ;-) >Maybe your qt library has changed .... > >On Apr 11, 2005 2:11 PM, Ram?n P?rez wrote: > > >>I have updated my Suse 9.2 from kde 3.3 to kde 3.4. After this, gambas >>doesn't begin. When I run gambas from console nothing happens and always >>gbx remain in execution. >> >>Regards. >> >>------------------------------------------------------- >>SF email is sponsored by - The IT Product Guide >>Read honest & candid reviews on hundreds of IT Products from real users. >>Discover which products truly live up to the hype. Start reading now. >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > > > > From rolf.frogs at ...221... Mon Apr 11 20:15:26 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Mon, 11 Apr 2005 20:15:26 +0200 Subject: [Gambas-user] How to use DateDiff Message-ID: <200504112015.34230.rolf.frogs@...221...> Hi everybody out there ... I don't know how to call the DateDiff() function. Could somebody give me a short example? Of which class DateDiff is a method? Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From gambasfr at ...11... Tue Apr 12 00:22:07 2005 From: gambasfr at ...11... (fabien) Date: Tue, 12 Apr 2005 00:22:07 +0200 Subject: [Gambas-user] kde3.4 In-Reply-To: <425A9AE0.3000908@...204...> References: <425A6973.10402@...204...> <425A9AE0.3000908@...204...> Message-ID: <200504120022.07274.gambasfr@...11...> Le Lundi 11 Avril 2005 17:42, Ram?n P?rez a ?crit?: > I have recompiled already with no problem in recompilation and I have > erased the gambas.conf too, but the problem is the same. > In Kubuntu with kde 3.4 too, gambas works fine. and with ubuntu + kde 3.4. The probleme seem to be on gbi2, i've already send a bug repport. i've a segfault on the info file generation. regards, Fabien Bodard > > Regards. > > David Asorey ?lvarez escribi?: > >Try to recompile Gambas ;-) > >Maybe your qt library has changed .... > > > >On Apr 11, 2005 2:11 PM, Ram?n P?rez wrote: > >>I have updated my Suse 9.2 from kde 3.3 to kde 3.4. After this, gambas > >>doesn't begin. When I run gambas from console nothing happens and always > >>gbx remain in execution. > >> > >>Regards. > >> > >>------------------------------------------------------- > >>SF email is sponsored by - The IT Product Guide > >>Read honest & candid reviews on hundreds of IT Products from real users. > >>Discover which products truly live up to the hype. Start reading now. > >>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > >>______________________________________________ > >>Gambas-user mailing list > >>Gambas-user at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From lbaudio at ...172... Tue Apr 12 01:00:26 2005 From: lbaudio at ...172... (LB Audio) Date: Mon, 11 Apr 2005 20:00:26 -0300 Subject: [Gambas-user] Is it possible to make Login and Password using SerialPort Modem? References: <425A6973.10402@...204...> <425A9AE0.3000908@...204...> <200504120022.07274.gambasfr@...11...> Message-ID: <001901c53eea$3fd8cf50$7164a8c0@...946...> Is it possible to make login and password using SerialPort Modem? From danielcampos at ...282... Tue Apr 12 08:07:34 2005 From: danielcampos at ...282... (Daniel Campos) Date: Tue, 12 Apr 2005 08:07:34 +0200 Subject: [Gambas-user] test Message-ID: <425B65A6.5040801@...282...> test From gambas at ...1... Tue Apr 12 11:27:24 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Apr 2005 11:27:24 +0200 Subject: [Gambas-user] gambas 1.0.4 does not start, more info In-Reply-To: <200504091032.18054.gambas@...913...> References: <200504091032.18054.gambas@...913...> Message-ID: <200504121127.24595.gambas@...1...> On Saturday 09 April 2005 12:32, Jos? Mar?a Lucero wrote: > I discovered the problem with my installation of gambas is locale related > i have LANG="es_AR" in my .bashrc file > if i change this to "es_US" gambas starts normally, changing to anything > else gives a messege about not being able to use that locale, but if the > locale starts with "en" gambas starts nevertheless, not so if it is set to > spanish > > any idea if this is a gambas bug in the new version or an installation > problem (posibly a gentoo portage problem?) > > I thik there is the same problem with SuSE. It seems that it is a bug in the QT library with its own translation mechanism. If the qt translation file does not exist for your locale, then it freezes. I will try to find a workaround as soon as possible, and I will send you a patch so that you can tell me if things are better. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Apr 12 11:41:39 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Apr 2005 11:41:39 +0200 Subject: [Gambas-user] Gambas 1.0.4 freezes... Message-ID: <200504121141.39765.gambas@...1...> To all people (SuSE, Gentoo users, or others) that have freeze problems with gambas 1.0.4: Can you recompile with this patch, and tell me if it solves your problem ? Put this file in './src/lib/qt' Thanks in advance, -- Benoit Minisini mailto:gambas at ...1... -------------- next part -------------- A non-text attachment was scrubbed... Name: main.cpp Type: text/x-c++src Size: 11942 bytes Desc: not available URL: From gambas at ...1... Tue Apr 12 11:44:18 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Apr 2005 11:44:18 +0200 Subject: [Gambas-user] gambas2-1.9.5, Component creation In-Reply-To: <200504071051.28979.christian.faurebouvard@...357...> References: <200503231420.28852.gambas@...1...> <200503291845.44812.christian.faurebouvard@...357...> <200504071051.28979.christian.faurebouvard@...357...> Message-ID: <200504121144.18659.gambas@...1...> On Thursday 07 April 2005 16:51, Christian Faure wrote: > Hi, > i run gambas2 from console, > open a project to test gb.form component > it compile ok, > F5 ->hang > > :-( > > Console output: > > #> gambas2 > gb.qt: Label.* declared but not implemented > gb.qt: TextLabel.* declared but not implemented > gb.form: ValueBox.* declared but not implemented > gb.qt: Label.* declared but not implemented > gb.qt: TextLabel.* declared but not implemented > gb.form: ValueBox.* declared but not implemented > gb.qt: Label.* declared but not implemented > gb.qt: TextLabel.* declared but not implemented > gb.form: ValueBox.* declared but not implemented > gb.qt: Label.* declared but not implemented > gb.qt: TextLabel.* declared but not implemented > gb.form: ValueBox.* declared but not implemented > Terminado (killed) > #> > > Regards, > Christian > Can you send me your project ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Apr 12 11:42:26 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Apr 2005 11:42:26 +0200 Subject: [Gambas-user] Does .ColumnViewColumn work ? In-Reply-To: <42567501.9000903@...833...> References: <42567501.9000903@...833...> Message-ID: <200504121142.26829.gambas@...1...> On Friday 08 April 2005 14:11, alan wrote: > Hi > I am trying to convert an Ms/access application to Gambas using > Postgresql. > > Several of the forms require the display and modification of data in a > table . > > After trying TableView, ListView and ColumnView the latter seems to > be the most suitable. However the .ColumnViewColumn does no compile ( > the compiler says that .colnmn does not exist). Is this a problem with > my system? > > I am using 1.9.3 on Mandrake 10.2 RC2 > > Alan Bromley > Can you be more precise about what you are trying to do exactly ? -- Benoit Minisini mailto:gambas at ...1... From thomas at ...947... Tue Apr 12 11:31:59 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Tue, 12 Apr 2005 09:31:59 +0000 Subject: [Gambas-user] config file issue Message-ID: <20050412.sze.16604200@...948...> Dear Gambas-friends, I am building an OpenVPN client front-end, using Gambas. I know that GLADE would do the job, but I am an old VB-guy, so I'll stick with Gambas. My problem is: I need to get info from a .conf file like this-> dev tun proto tcp ... To do this, I have been using the backtick and (g)awk. This works for some time, but suddenly backtick stops working. Seriously, it just doesn't give me any info from the command I ran anymore. Copying the same project to another PC doesn't work either. So, I copied the code to a new project, and rebuilt the gui. Then it works.. but after some more hours coding, I get into the same problem.. backtick suddenly stops giving me feedback. Can someone help? Has anyone seen this before? I am running Ubuntu Hoary. /Thomas -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From gambas at ...1... Tue Apr 12 12:43:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 12 Apr 2005 12:43:59 +0200 Subject: [Gambas-user] config file issue In-Reply-To: <20050412.sze.16604200@...948...> References: <20050412.sze.16604200@...948...> Message-ID: <200504121243.59766.gambas@...1...> On Tuesday 12 April 2005 11:31, Thomas Mathiesen wrote: > Dear Gambas-friends, > > I am building an OpenVPN client front-end, using Gambas. I know that GLADE > would do the job, but I am an old VB-guy, so I'll stick with Gambas. > > My problem is: > > I need to get info from a .conf file like this-> > dev tun > proto tcp > ... > > To do this, I have been using the backtick and (g)awk. > This works for some time, but suddenly backtick stops working. Seriously, > it just doesn't give me any info from the command I ran anymore. What do you do exactly ? Can you try to isolate the problem and send a project ? Regards, -- Benoit Minisini mailto:gambas at ...1... From thomas at ...947... Tue Apr 12 12:08:29 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Tue, 12 Apr 2005 10:08:29 +0000 Subject: [Gambas-user] config file issue Message-ID: <20050412.Bzp.81394100@...948...> > > I need to get info from a .conf file like this-> > > dev tun > > proto tcp > > ... > > > > To do this, I have been using the backtick and (g)awk. > > This works for some time, but suddenly backtick stops working. Seriously, > > it just doesn't give me any info from the command I ran anymore. > > What do you do exactly ? Can you try to isolate the problem and send a > project ? Ohh.. ugly bug found... if you add a menu (using the menu editor) to a form, the backtick doesn't work anymore. I am on Gambas 1.0 by the way. Is it possible to use another menu? /T -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From christian.faurebouvard at ...357... Tue Apr 12 11:21:06 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Tue, 12 Apr 2005 05:21:06 -0400 Subject: [Gambas-user] Re: gambas2-1.9.5, Component creation In-Reply-To: <200504121144.18659.gambas@...1...> References: <200503231420.28852.gambas@...1...> <200504071051.28979.christian.faurebouvard@...357...> <200504121144.18659.gambas@...1...> Message-ID: <200504120521.06586.christian.faurebouvard@...357...> El Martes, 12 de Abril de 2005 05:44, Benoit Minisini escribi?: > On Thursday 07 April 2005 16:51, Christian Faure wrote: > > Hi, > > i run gambas2 from console, > > open a project to test gb.form component > > it compile ok, > > F5 ->hang > > > > :-( > > > > Console output: > > > > #> gambas2 > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > Terminado (killed) > > #> > > > > Regards, > > Christian > > Can you send me your project ? Sure, Is only a new empty project with component gb.form checked. Thanks. PD: The size and position of the label in form1 change between save and open project. -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas2-test-comp-0.0.1.tar.gz Type: application/x-tgz Size: 675 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Tue Apr 12 15:36:41 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 12 Apr 2005 08:36:41 -0500 Subject: [Gambas-user] config file issue In-Reply-To: <20050412.sze.16604200@...948...> References: <20050412.sze.16604200@...948...> Message-ID: <200504120936.41557.sourceforge-raindog2@...94...> On Tuesday 12 April 2005 05:31, Thomas Mathiesen wrote: > I need to get info from a .conf file like this-> > dev tun > proto tcp > ... > To do this, I have been using the backtick and (g)awk. > This works for some time, but suddenly backtick stops working. Speaking as the guy who wrote the backtick function (which could probably use some refinement), I'd love to see a project where it fails to work so I can find the bug in my function. Could you send one? Also, rather than using awk and backtick, it looks to me like you should really be doing dim s as string dim t as string dim pair as new string[] dim c as new collection s = file.load("/path/to/config/file") for each t in split(s, "\n") pair = split(t, " ") c[pair[0]] = pair[1] next Of course, you'd need to make c a public variable rather than using DIM if you want to use it throughout your project. Rob From r.perez at ...204... Tue Apr 12 21:56:23 2005 From: r.perez at ...204... (=?ISO-8859-1?Q?Ram=F3n_P=E9rez?=) Date: Tue, 12 Apr 2005 21:56:23 +0200 Subject: [Gambas-user] Gambas 1.0.4 freezes... In-Reply-To: <200504121141.39765.gambas@...1...> References: <200504121141.39765.gambas@...1...> Message-ID: <425C27E7.606@...204...> Benoit Minisini escribi?: >To all people (SuSE, Gentoo users, or others) that have freeze problems with >gambas 1.0.4: > >Can you recompile with this patch, and tell me if it solves your problem ? > >Put this file in './src/lib/qt' > >Thanks in advance, > > > >------------------------------------------------------------------------ > >/*************************************************************************** > > main.cpp > > The interface between the QT plug-in and the Gambas interpreter > > (c) 2000-2003 Beno?t Minisini > > This program is free software; you can redistribute it and/or modify > it under the terms of the GNU General Public License as published by > the Free Software Foundation; either version 1, or (at your option) > any later version. > > This program is distributed in the hope that it will be useful, > but WITHOUT ANY WARRANTY; without even the implied warranty of > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > GNU General Public License for more details. > > You should have received a copy of the GNU General Public License > along with this program; if not, write to the Free Software > Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > >***************************************************************************/ > >#define __MAIN_CPP > >#include >#include >#include >#include >#include >#include > >#include "gambas.h" > >#define QT_THREAD_SUPPORT >#include > >#include > >#include >#include >#include > >#include >#include >#include >#include >#include >#include >#include > >#if QT_VERSION >= 0x030100 > #include >#endif > >#include "gb.qt.h" > >#include "CFont.h" >#include "CScreen.h" >#include "CWidget.h" >#include "CWindow.h" >#include "CButton.h" >#include "CContainer.h" >#include "CLabel.h" >#include "CListBox.h" >#include "CTextBox.h" >#include "CTextArea.h" >#include "CPictureBox.h" >#include "CMenu.h" >#include "CPanel.h" >#include "CMouse.h" >#include "CKey.h" >#include "CColor.h" >#include "CConst.h" >#include "CCheckBox.h" >#include "CFrame.h" >#include "CRadioButton.h" >#include "CTreeView.h" >#include "CIconView.h" >#include "CGridView.h" >#include "CTabStrip.h" >#include "CDialog.h" >#include "CPicture.h" >#include "CImage.h" >#include "CDrawing.h" >#include "CClipboard.h" >#include "CDraw.h" >#include "CTimer.h" >#include "CWatch.h" >#include "CScrollView.h" >#include "CDrawingArea.h" >#include "CProgress.h" >#include "CMessage.h" >#include "CPrinter.h" > >#include "main.h" > >/*#define DEBUG*/ > >extern "C" { > >GB_INTERFACE GB; > >} > >int MAIN_in_wait = 0; >int MAIN_loop_level = 0; > >static bool in_event_loop = false; >static QTranslator *qt = NULL; > > > >/*************************************************************************** > > MyMimeSourceFactory > > Create a QMimeSourceFactory to handle files stored in an archive > >***************************************************************************/ > >class MyMimeSourceFactory: public QMimeSourceFactory >{ >public: > > MyMimeSourceFactory(); > > virtual const QMimeSource* data(const QString& abs_name) const; > >private: > > QMap extensions; >}; > > >MyMimeSourceFactory::MyMimeSourceFactory() >{ > extensions.replace("htm", "text/html;charset=iso8859-1"); > extensions.replace("html", "text/html;charset=iso8859-1"); > extensions.replace("txt", "text/plain"); > extensions.replace("xml", "text/xml;charset=UTF-8"); > extensions.replace("jpg", "image/jpeg"); > extensions.replace("png", "image/png"); > extensions.replace("gif", "image/gif"); >} > > >const QMimeSource* MyMimeSourceFactory::data(const QString& abs_name) const >{ > char *addr; > long len; > QStoredDrag* sr = 0; > char *path; > > //qDebug("MyMimeSourceFactory::data: %s", (char *)abs_name.latin1()); > > path = (char *)abs_name.latin1(); > > if (true) //abs_name[0] != '/') > { > if (GB.LoadFile(path, 0, &addr, &len)) > GB.Error(NULL); > else > { > QByteArray ba; > ba.setRawData((const char *)addr, len); > > QFileInfo fi(abs_name); > QString e = fi.extension(FALSE); > QCString mimetype = "application/octet-stream"; > > const char* imgfmt; > > if ( extensions.contains(e) ) > mimetype = extensions[e].latin1(); > else > { > QBuffer buffer(ba); > > buffer.open(IO_ReadOnly); > if (( imgfmt = QImageIO::imageFormat( &buffer ) ) ) > mimetype = QCString("image/")+QCString(imgfmt).lower(); > buffer.close(); > } > > sr = new QStoredDrag( mimetype ); > sr->setEncodedData( ba ); > > ba.resetRawData((const char*)addr, len); > > //qDebug("MimeSource: %s %s", abs_name.latin1(), (const char *)mimetype); > > GB.ReleaseFile(&addr, len); > } > } > > return sr; >} > >static MyMimeSourceFactory myMimeSourceFactory; > > >/*************************************************************************** > > MyEventLoop > > Manage window deletion > >***************************************************************************/ > >class MyEventLoop : public QEventLoop >{ >public: > MyEventLoop(); > virtual bool processEvents( ProcessEventsFlags flags ); >}; > >MyEventLoop::MyEventLoop() >: QEventLoop() >{ >} > >bool MyEventLoop::processEvents(ProcessEventsFlags flags) >{ > bool ret; > CWIDGET **ptr; > CWIDGET *ob; > > MAIN_loop_level++; > ret = QEventLoop::processEvents(flags); > MAIN_loop_level--; > > ptr = &CWIDGET_destroy_list; > > for(;;) > { > ob = *ptr; > if (!ob) > break; > > if (MAIN_loop_level <= ob->level) > { > //qDebug(">> delete %p (%p) :%p:%ld", ob, ob->widget, ob->ob.klass, ob->ob.ref); > //*ptr = ob->next; > delete ob->widget; > //GB.Unref((void **)&ob); > //qDebug(" delete %p (%p) :%p:%ld #2", ob, ob->widget, ob->ob.klass, ob->ob.ref); > //qDebug("<< delete %p (%p)", ob, ob->widget); > } > else > { > ptr = &ob->next; > } > } > > return ret; >} > > >/***************************************************************************/ > >static bool must_quit(void) >{ > /* > QPtrDictIterator iter(CWindow::dict); > int n; > CWINDOW *win; > > n = 0; > while ((win = iter.current())) > { > if (QWIDGET(win)->isVisible()) > n++; > > ++iter; > } > */ > > //qDebug("CWindow::count = %d CWatch::count = %d in_event_loop = %d", > // CWindow::count, CWatch::count, in_event_loop); > > return CWindow::count == 0 && CWatch::count == 0 && in_event_loop; >} > >void MAIN_check_quit(void) >{ > if (must_quit()) > { > //qDebug("Must quit !"); > //while (qApp->eventLoop()->hasPendingEvents()) > // qApp->eventLoop()->processEvents(QEventLoop::AllEvents); > qApp->syncX(); > qApp->exit(); > } >} > > >static void QT_InitEventLoop(void) >{ > new MyEventLoop(); >} > >static void QT_Init(void) >{ > static bool init = false; > QFont f; > > if (init) > return; > > /*fcntl(ConnectionNumber(qt_xdisplay()), F_SETFD, FD_CLOEXEC);*/ > QMimeSourceFactory::addFactory(&myMimeSourceFactory); > > //f = QApplication::font(); > //f.setPointSizeFloat((double)f.pointSize() * 96.0 / (double)QPaintDevice::x11AppDpiX()); > //qDebug("Default font size = %g", f.pointSizeFloat()); > //QApplication::setFont(f); > > //QPaintDevice::x11SetAppDpiX(96); > //QPaintDevice::x11SetAppDpiY(96); > > //f = QToolTip::font(); > //f.setPointSize(f.pointSize() - ((f.pointSize() - 1) / 6 + 1)); > //QToolTip::setFont(f); > > // It does not work, why ? > //QTranslator qt( 0 ); > //qDebug("Loading translator %s", (QString("qt_") + QTextCodec::locale()).latin1()); > //qt.load(QString("qt_") + "fr", "/usr/lib/qt3/translations"); > //qApp->installTranslator( &qt ); > > qt = new QTranslator(qApp); > if (qt->load(QString( "qt_") + QTextCodec::locale(), QString(getenv("QTDIR")) + "/translations")) > qApp->installTranslator(qt); > > init = true; >} > > >static void my_main(int *argc, char **argv) >{ > QT_InitEventLoop(); > new QApplication(*argc, argv); > #if QT_VERSION <= 0x030005 > qApp->unlock(); > #endif > //qApp->setStyle("windows"); > QT_Init(); >} > > >static int my_loop() >{ > int ret = 0; > > in_event_loop = true; > > if (!must_quit()) > ret = qApp->exec(); > > //qDebug("Exit event loop"); > > return ret; >} > > >static void my_wait(long duration) >{ > MAIN_in_wait++; > #if QT_VERSION >= 0x030100 > if (duration > 0) > qApp->eventLoop()->processEvents(QEventLoop::AllEvents, duration); > else > qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput, duration); > #else > qApp->processEvents(duration); > #endif > MAIN_in_wait--; >} > > >static void my_watch(int fd, int type, void *callback, long param) >{ > CWatch::watch(fd, type, (GB_WATCH_CALLBACK)callback, param); >} > > >static void my_post(void) >{ > static MyPostCheck check; > > //qDebug("my_post ?"); > > if (MyPostCheck::in_check) > return; > > //qDebug("my_post !"); > > MyPostCheck::in_check = true; > QTimer::singleShot(0, &check, SLOT(check())); >} > > >static void my_quit() >{ > //QWidgetList *list; > > qApp->closeAllWindows(); > > /* > for(;;) > { > list = QApplication::topLevelWidgets(); > if (list->isEmpty()) > break; > > QApplication::postEvent(list->first(), new QEvent(EVENT_CLOSE)); > qApp->processEvents(); > delete list; > } > */ > > //qApp->unlock(); >} > >static void my_error(int code, char *error, char *where) >{ > QString msg; > > CWatch::stop(); > qApp->exit(); > > msg = "This application has raised an unexpected\nerror and must abort.\n\n[%1] %2.\n%3"; > msg = msg.arg(code).arg(error).arg(where); > > QMessageBox::critical(0, TO_QSTRING(GB.Application.Name()), msg); >} > >static void QT_InitWidget(QWidget *widget, void *object) >{ > CWIDGET_new(widget, object); >} > >static void *QT_GetObject(QWidget *widget) >{ > return CWidget::get((QObject *)widget); >} > >static QWidget *QT_GetContainer(void *object) >{ > return CONTAINER(object); >} > >static QPixmap *QT_GetPixmap(CPICTURE *pict) >{ > return pict->pixmap; >} > >static QMimeSourceFactory *QT_MimeSourceFactory(void) >{ > return &myMimeSourceFactory; >} > > >extern "C" { > >GB_DESC *GB_CLASSES[] = >{ > CBorderDesc, CColorDesc, CAlignDesc, CArrangeDesc, CScrollDesc, CKeyDesc, CLineDesc, CFillDesc, > CMessageDesc, > CPictureDesc, > CImageDesc, > CDrawingDesc, > CFontDesc, CFontsDesc, > CMouseDesc, CCursorDesc, > CClipboardDesc, CDragDesc, > CDrawClipDesc, CDrawDesc, // apr?s CFont ! > CDesktopDesc, CApplicationTooltipDesc, CApplicationDesc, > CWidgetDesc, CChildrenDesc, > CContainerDesc, > CMenuChildrenDesc, CMenuDesc, > CLabelDesc, CTextViewDesc, CPictureBoxDesc, > CButtonDesc, CToggleButtonDesc, CToolButtonDesc, > CCheckBoxDesc, CRadioButtonDesc, > CTextBoxSelectionDesc, CTextBoxDesc, CComboBoxItemDesc, CComboBoxDesc, > CTextAreaSelectionDesc, CTextAreaDesc, > CListBoxItemDesc, CListBoxDesc, > CListViewItemDesc, CListViewDesc, > CTreeViewItemDesc, CTreeViewDesc, > CColumnViewItemDesc, CColumnViewColumnDesc, CColumnViewColumnsDesc, CColumnViewDesc, > CIconViewItemDesc, CIconViewDesc, > CGridItemDesc, CGridRowDesc, CGridColumnDesc, CGridRowsDesc, CGridColumnsDesc, > CGridViewDesc, > CFrameDesc, CPanelDesc, CHBoxDesc, CVBoxDesc, CHPanelDesc, CVPanelDesc, > CTabChildrenDesc, CTabDesc, CTabStripDesc, > CScrollViewDesc, > CDrawingAreaDesc, > CProgressDesc, > CWindowMenusDesc, CWindowDesc, CWindowsDesc, CFormDesc, > CDialogDesc, > CTimerDesc, > CPrinterDesc, > NULL >}; > >void *GB_QT_1[] = { > > (void *)1, > > (void *)QT_InitEventLoop, > (void *)QT_Init, > (void *)QT_InitWidget, > (void *)QT_GetObject, > (void *)QT_GetContainer, > (void *)CWIDGET_border_simple, > (void *)CWIDGET_border_full, > (void *)CWIDGET_scrollbar, > (void *)CFONT_create, > (void *)QT_MimeSourceFactory, > (void *)QT_GetPixmap, > NULL >}; > > >int GB_INIT(void) >{ > GB.Hook(GB_HOOK_MAIN, (void *)my_main); > GB.Hook(GB_HOOK_LOOP, (void *)my_loop); > GB.Hook(GB_HOOK_WAIT, (void *)my_wait); > GB.Hook(GB_HOOK_WATCH, (void *)my_watch); > GB.Hook(GB_HOOK_POST, (void *)my_post); > GB.Hook(GB_HOOK_QUIT, (void *)my_quit); > GB.Hook(GB_HOOK_ERROR, (void *)my_error); > > /*GB.Declare(TheClasses);*/ > > return TRUE; >} > >void GB_EXIT() >{ > qApp->setStyle("windows"); > delete qApp; >} > >} > > >/* class MyPostCheck */ > >bool MyPostCheck::in_check = false; > >void MyPostCheck::check(void) >{ > //qDebug("MyPostCheck::check"); > in_check = false; > GB.CheckPost(); >} > > > For me, Suse 9.2 and kde 3.4 updated don't work. Gambas does not start after recompile with the patch. Thanks. From ulisse at ...933... Wed Apr 13 09:26:55 2005 From: ulisse at ...933... (ulisse at ...933...) Date: Wed, 13 Apr 2005 09:26:55 +0200 Subject: [Gambas-user] Too many files open Message-ID: <425cc9bf.3c8.11d8.15331@...933...> Hallo, I'm experiencing the following issue: "System error. Too many files open". My application rises an "Open" statement on a text file in a SUB called "CaricaProdotti()". "CaricaProdotti()" is rised by a timer event (every 90 seconds) and when user click on ListView item. The point is that I close the file at the end of the sub. Error anyway remain. I tried to put a Public variable in the Class that tells if the sub "CaricaProdotti()" is running and avoid opening the file if not running. I tried flushing.... It seems that anyway opening many times the same file rise the error. Anyway what is the exact meaning of "Too many files open" ? Thanks From forodejazz at ...626... Wed Apr 13 10:27:27 2005 From: forodejazz at ...626... (=?ISO-8859-1?Q?David_Asorey_=C1lvarez?=) Date: Wed, 13 Apr 2005 10:27:27 +0200 Subject: [Gambas-user] Diabolic proposal: change the BASIC interpreter Message-ID: First at all, this is not a request, is simple curiosity. (I'm not an "advanced" developer, I'm totally ignorant about C++ and "serious" programming ...). My question: ?are there any way to change the BASIC interpreter for using another language?. That is, using, for example, Python, and not BASIC when writing Gambas applications. Regards. -- David Asorey ?lvarez http://www.laclavedefa.org/codigo_abierto/gambas_tutorial/ From gambas at ...1... Wed Apr 13 13:36:36 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Apr 2005 13:36:36 +0200 Subject: [Gambas-user] Gambas 1.0.4 freezes... In-Reply-To: <425C27E7.606@...204...> References: <200504121141.39765.gambas@...1...> <425C27E7.606@...204...> Message-ID: <200504131336.36350.gambas@...1...> On Tuesday 12 April 2005 21:56, Ram?n P?rez wrote: > > For me, Suse 9.2 and kde 3.4 updated don't work. Gambas does not start > after recompile with the patch. > > Thanks. > Is it possible to have a standard ssh access to your machine ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Apr 13 14:11:43 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Apr 2005 14:11:43 +0200 Subject: [Gambas-user] config file issue In-Reply-To: <20050412.Bzp.81394100@...948...> References: <20050412.Bzp.81394100@...948...> Message-ID: <200504131411.43304.gambas@...1...> On Tuesday 12 April 2005 12:08, Thomas Mathiesen wrote: > > > I need to get info from a .conf file like this-> > > > dev tun > > > proto tcp > > > ... > > > > > > To do this, I have been using the backtick and (g)awk. > > > This works for some time, but suddenly backtick stops working. > > > Seriously, it just doesn't give me any info from the command I ran > > > anymore. > > > > What do you do exactly ? Can you try to isolate the problem and send a > > project ? > > Ohh.. ugly bug found... if you add a menu (using the menu editor) to a > form, the backtick doesn't work anymore. > > I am on Gambas 1.0 by the way. > > Is it possible to use another menu? > > /T > Can you send a project with some code that shows the problem please :-) ? -- Benoit Minisini mailto:gambas at ...1... From thomas at ...947... Wed Apr 13 14:36:15 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Wed, 13 Apr 2005 14:36:15 +0200 Subject: [Gambas-user] config file issue In-Reply-To: <200504131411.43304.gambas@...1...> References: <20050412.Bzp.81394100@...948...> <200504131411.43304.gambas@...1...> Message-ID: <425D123F.8000307@...947...> >>Ohh.. ugly bug found... if you add a menu (using the menu editor) to a >>form, the backtick doesn't work anymore. >> >>I am on Gambas 1.0 by the way. >> >>Is it possible to use another menu? >> >>/T >> > > > Can you send a project with some code that shows the problem please :-) ? Project attached. Try to press the button.. nothing happens in the console, right? So.. remove the menu item (file) and run the program again.. click the button and see that it'll print "ls /" output there. It's connected to the menu .. in some way :( /T -------------- next part -------------- A non-text attachment was scrubbed... Name: backticktest.tar.gz Type: application/x-gzip Size: 1285 bytes Desc: not available URL: From gambas at ...1... Wed Apr 13 14:53:22 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Apr 2005 14:53:22 +0200 Subject: [Gambas-user] config file issue In-Reply-To: <425D123F.8000307@...947...> References: <20050412.Bzp.81394100@...948...> <200504131411.43304.gambas@...1...> <425D123F.8000307@...947...> Message-ID: <200504131453.22106.gambas@...1...> On Wednesday 13 April 2005 14:36, Thomas Mathiesen wrote: > >>Ohh.. ugly bug found... if you add a menu (using the menu editor) to a > >>form, the backtick doesn't work anymore. > >> > >>I am on Gambas 1.0 by the way. > >> > >>Is it possible to use another menu? > >> > >>/T > > > > Can you send a project with some code that shows the problem please :-) ? > > Project attached. > Try to press the button.. nothing happens in the console, right? > So.. remove the menu item (file) and run the program again.. click the > button and see that it'll print "ls /" output there. > > It's connected to the menu .. in some way :( > > /T I found no bug in the code you sent me :-) You named your menu "File". So, when you execute the following line to get the result of the 'ls' command: TRY result = file.Load(s) You are actually trying to call the Load method on the menu named "File", which has overriden the class named "File". If you give your menu any other name, things work! Regards, -- Benoit Minisini mailto:gambas at ...1... From thomas at ...947... Wed Apr 13 15:51:06 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Wed, 13 Apr 2005 15:51:06 +0200 Subject: [Gambas-user] config file issue In-Reply-To: <200504120936.41557.sourceforge-raindog2@...94...> References: <20050412.sze.16604200@...948...> <200504120936.41557.sourceforge-raindog2@...94...> Message-ID: <425D23CA.8090805@...947...> > Speaking as the guy who wrote the backtick function (which could > probably use some refinement), I'd love to see a project where it > fails to work so I can find the bug in my function. Could you send > one? > > Also, rather than using awk and backtick, it looks to me like you > should really be doing > > dim s as string > dim t as string > dim pair as new string[] > dim c as new collection > > s = file.load("/path/to/config/file") > for each t in split(s, "\n") > pair = split(t, " ") > c[pair[0]] = pair[1] > next > > Of course, you'd need to make c a public variable rather than using > DIM if you want to use it throughout your project. > > Rob Great function Rob! I've found out that I could use this Gambas file.load to do the config, but I wanted to get the backtick fixed.. because I know I'll need it one day. /T From sourceforge-raindog2 at ...94... Wed Apr 13 16:08:18 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 13 Apr 2005 09:08:18 -0500 Subject: [Gambas-user] Diabolic proposal: change the BASIC interpreter In-Reply-To: References: Message-ID: <200504131008.18354.sourceforge-raindog2@...94...> On Wednesday 13 April 2005 04:27, David Asorey ?lvarez wrote: > My question: ?are there any way to change the BASIC interpreter for > using another language?. > That is, using, for example, Python, and not BASIC when writing > Gambas applications. I think it'd be easier to change the IDE to support PyQt or PyGtk code, and there are already existing IDEs for those purposes... Boa Constructor, Black Adder, etc.... Rob From gambas at ...1... Wed Apr 13 16:24:53 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Apr 2005 16:24:53 +0200 Subject: [Gambas-user] Too many files open In-Reply-To: <425cc9bf.3c8.11d8.15331@...933...> References: <425cc9bf.3c8.11d8.15331@...933...> Message-ID: <200504131624.53547.gambas@...1...> On Wednesday 13 April 2005 09:26, ulisse at ...933... wrote: > Hallo, > I'm experiencing the following issue: > > "System error. Too many files open". > > My application rises an "Open" statement on a text file in a > SUB called "CaricaProdotti()". > > "CaricaProdotti()" is rised by a timer event (every 90 > seconds) and when user click on ListView item. > > The point is that I close the file at the end of the sub. > Error anyway remain. > > I tried to put a Public variable in the Class that tells if > the sub "CaricaProdotti()" is running and avoid opening the > file if not running. > > I tried flushing.... > > It seems that anyway opening many times the same file rise > the error. > > Anyway what is the exact meaning of "Too many files open" ? > > Thanks > > 'Too many files open' means that you opened too many files :-) Just print something when you open a file, and something other when you close it to see what happens. Or send your project... Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Apr 13 16:23:47 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Apr 2005 16:23:47 +0200 Subject: [Gambas-user] config file issue In-Reply-To: <425D23CA.8090805@...947...> References: <20050412.sze.16604200@...948...> <200504120936.41557.sourceforge-raindog2@...94...> <425D23CA.8090805@...947...> Message-ID: <200504131623.47783.gambas@...1...> On Wednesday 13 April 2005 15:51, Thomas Mathiesen wrote: > > Speaking as the guy who wrote the backtick function (which could > > probably use some refinement), I'd love to see a project where it > > fails to work so I can find the bug in my function. Could you send > > one? > > > > Also, rather than using awk and backtick, it looks to me like you > > should really be doing > > > > dim s as string > > dim t as string > > dim pair as new string[] > > dim c as new collection > > > > s = file.load("/path/to/config/file") > > for each t in split(s, "\n") > > pair = split(t, " ") > > c[pair[0]] = pair[1] > > next > > > > Of course, you'd need to make c a public variable rather than using > > DIM if you want to use it throughout your project. > > > > Rob > > Great function Rob! > I've found out that I could use this Gambas file.load to do the config, > but I wanted to get the backtick fixed.. because I know I'll need it one > day. > > /T > Did you get my last e-mail ? It was not a bug. Just do not name your menu control 'File', so that it does not override the File class when you write something like 'File.Load' :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From thomas at ...947... Wed Apr 13 16:36:48 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Wed, 13 Apr 2005 16:36:48 +0200 Subject: [Gambas-user] config file issue In-Reply-To: <200504131623.47783.gambas@...1...> References: <20050412.sze.16604200@...948...> <200504120936.41557.sourceforge-raindog2@...94...> <425D23CA.8090805@...947...> <200504131623.47783.gambas@...1...> Message-ID: <425D2E80.5060002@...947...> >>>Speaking as the guy who wrote the backtick function (which could >>>probably use some refinement), I'd love to see a project where it >>>fails to work so I can find the bug in my function. Could you send >>>one? >>> >>>Also, rather than using awk and backtick, it looks to me like you >>>should really be doing >>> >>>dim s as string >>>dim t as string >>>dim pair as new string[] >>>dim c as new collection >>> >>>s = file.load("/path/to/config/file") >>>for each t in split(s, "\n") >>> pair = split(t, " ") >>> c[pair[0]] = pair[1] >>>next >>> >>>Of course, you'd need to make c a public variable rather than using >>>DIM if you want to use it throughout your project. >>> >>>Rob >> >>Great function Rob! >>I've found out that I could use this Gambas file.load to do the config, >>but I wanted to get the backtick fixed.. because I know I'll need it one >>day. >> >>/T >> > > > Did you get my last e-mail ? It was not a bug. Just do not name your menu > control 'File', so that it does not override the File class when you write > something like 'File.Load' :-) > > Regards, > Thanks man!! Now I am off to finish this openvpn client :) From ulisse at ...933... Wed Apr 13 17:32:23 2005 From: ulisse at ...933... (ulisse at ...933...) Date: Wed, 13 Apr 2005 17:32:23 +0200 Subject: [Gambas-user] Too many files open Message-ID: <425d3b87.148.1a50.12147@...933...> Benoit, is it possible to send you in a private form? Thanks > > On Wednesday 13 April 2005 09:26, ulisse at ...933... > > wrote: Hallo, > > I'm experiencing the following issue: > > > > "System error. Too many files open". > > > > My application rises an "Open" statement on a text file > > in a SUB called "CaricaProdotti()". > > > > "CaricaProdotti()" is rised by a timer event (every 90 > > seconds) and when user click on ListView item. > > > > The point is that I close the file at the end of the > > sub. Error anyway remain. > > > > I tried to put a Public variable in the Class that tells > > if the sub "CaricaProdotti()" is running and avoid > > opening the file if not running. > > > > I tried flushing.... > > > > It seems that anyway opening many times the same file > > rise the error. > > > > Anyway what is the exact meaning of "Too many files > open" ? > > > Thanks > > > > > > 'Too many files open' means that you opened too many files > :-) > > Just print something when you open a file, and something > other when you close it to see what happens. Or send your > project... > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products > from real users. Discover which products truly live up to > the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Wed Apr 13 17:37:07 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Apr 2005 17:37:07 +0200 Subject: [Gambas-user] Too many files open In-Reply-To: <425d3b87.148.1a50.12147@...933...> References: <425d3b87.148.1a50.12147@...933...> Message-ID: <200504131737.07483.gambas@...1...> On Wednesday 13 April 2005 17:32, ulisse at ...933... wrote: > Benoit, > > is it possible to send you in a private form? > > Thanks > Of course, use my own address in the signature! -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Apr 13 17:44:52 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 13 Apr 2005 17:44:52 +0200 Subject: [Gambas-user] Re: gambas2-1.9.5, Component creation In-Reply-To: <200504120521.06586.christian.faurebouvard@...357...> References: <200503231420.28852.gambas@...1...> <200504121144.18659.gambas@...1...> <200504120521.06586.christian.faurebouvard@...357...> Message-ID: <200504131744.52741.gambas@...1...> On Tuesday 12 April 2005 11:21, Christian Faure wrote: > El Martes, 12 de Abril de 2005 05:44, Benoit Minisini escribi?: > > On Thursday 07 April 2005 16:51, Christian Faure wrote: > > > Hi, > > > i run gambas2 from console, > > > open a project to test gb.form component > > > it compile ok, > > > F5 ->hang > > > > > > :-( > > > > > > Console output: > > > > > > #> gambas2 > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > Terminado (killed) > > > #> > > > > > > Regards, > > > Christian > > > > Can you send me your project ? > > Sure, > Is only a new empty project > with component gb.form checked. > > Thanks. No problem there... If you run gambas2 as root, do you have the same messages ? Were your *.info and *.list files correctly generated ? Look in /usr/local/share/gambas2/info > > PD: > The size and position of the label in form1 change between save and open > project. No problem there too. Strange... -- Benoit Minisini mailto:gambas at ...1... From alessandro.bottoni at ...122... Wed Apr 13 17:41:57 2005 From: alessandro.bottoni at ...122... (alessandro bottoni) Date: Wed, 13 Apr 2005 17:41:57 +0200 Subject: [Gambas-user] Diabolic proposal: change the BASIC interpreter In-Reply-To: References: Message-ID: <200504131741.58306.alessandro.bottoni@...122...> Alle 10:27, mercoled? 13 aprile 2005, David Asorey ?lvarez ha scritto: > First at all, this is not a request, is simple curiosity. > (I'm not an "advanced" developer, I'm totally ignorant about C++ and > "serious" programming ...). > > My question: ?are there any way to change the BASIC interpreter for > using another language?. > > That is, using, for example, Python, and not BASIC when writing Gambas > applications. As long as I can see, replacing the interpreter used by the Gambas IDE would be quite difficult (but not impossible). If you wish a good IDE for Python or other interpreted language, you can check one of the followings: - Boa Constructor : a IDE for Python and GTK. It just works with the "old" versions of GTK and does not have any dialog box editor but it is still an interesting tool and is improving very fast. - theKompany Komodo : a multi-language IDE that can be used with Python. I never used it (it is a commercial product, even if quite cheap) so I do not know if it has a dialog editor or not. - KDevelop: the official IDE of the KDE environment can be used with Python and other scripting languages. - Glade/libglade: Glade is a dialog box builder only. It does not support you in writing code. Despite this, Glade still is a very interesting tool. It allow you to build up a UI with a few clicks, save it in a XML file and reload it (thanks to the libglade library) from within you C/C++ code. Thanks to a few wrappers, Glade and LibGlade can be used with Python and other scripting languages. There is even a porting to PHP (PHP-GTK)! See you Alessandro Bottoni From listas at ...949... Wed Apr 13 21:19:01 2005 From: listas at ...949... (Eduardo Ruiz) Date: Wed, 13 Apr 2005 21:19:01 +0200 Subject: [Gambas-user] Gambas 1.0.4 freezes... In-Reply-To: <425C27E7.606@...204...> References: <200504121141.39765.gambas@...1...> <425C27E7.606@...204...> Message-ID: <425D70A5.1030707@...949...> Change the LANG variable to run it, for example, to execute use this in the shell: LANG="en_US" gambas I think that somebody hate the spanish ones :P At least in my gentoo it solves the problem. Ram?n P?rez escribi?: > Benoit Minisini escribi?: > >> To all people (SuSE, Gentoo users, or others) that have freeze >> problems with gambas 1.0.4: >> >> Can you recompile with this patch, and tell me if it solves your >> problem ? >> >> Put this file in './src/lib/qt' >> >> Thanks in advance, >> >> >> >> ------------------------------------------------------------------------ >> >> /*************************************************************************** >> >> >> main.cpp >> >> The interface between the QT plug-in and the Gambas interpreter >> >> (c) 2000-2003 Beno?t Minisini >> >> This program is free software; you can redistribute it and/or modify >> it under the terms of the GNU General Public License as published by >> the Free Software Foundation; either version 1, or (at your option) >> any later version. >> >> This program is distributed in the hope that it will be useful, >> but WITHOUT ANY WARRANTY; without even the implied warranty of >> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> GNU General Public License for more details. >> >> You should have received a copy of the GNU General Public License >> along with this program; if not, write to the Free Software >> Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. >> >> ***************************************************************************/ >> >> >> #define __MAIN_CPP >> >> #include >> #include >> #include >> #include >> #include >> #include >> >> #include "gambas.h" >> >> #define QT_THREAD_SUPPORT >> #include >> >> #include >> >> #include >> #include >> #include >> >> #include >> #include >> #include >> #include >> #include >> #include >> #include >> >> #if QT_VERSION >= 0x030100 >> #include >> #endif >> >> #include "gb.qt.h" >> >> #include "CFont.h" >> #include "CScreen.h" >> #include "CWidget.h" >> #include "CWindow.h" >> #include "CButton.h" >> #include "CContainer.h" >> #include "CLabel.h" >> #include "CListBox.h" >> #include "CTextBox.h" >> #include "CTextArea.h" >> #include "CPictureBox.h" >> #include "CMenu.h" >> #include "CPanel.h" >> #include "CMouse.h" >> #include "CKey.h" >> #include "CColor.h" >> #include "CConst.h" >> #include "CCheckBox.h" >> #include "CFrame.h" >> #include "CRadioButton.h" >> #include "CTreeView.h" >> #include "CIconView.h" >> #include "CGridView.h" >> #include "CTabStrip.h" >> #include "CDialog.h" >> #include "CPicture.h" >> #include "CImage.h" >> #include "CDrawing.h" >> #include "CClipboard.h" >> #include "CDraw.h" >> #include "CTimer.h" >> #include "CWatch.h" >> #include "CScrollView.h" >> #include "CDrawingArea.h" >> #include "CProgress.h" >> #include "CMessage.h" >> #include "CPrinter.h" >> >> #include "main.h" >> >> /*#define DEBUG*/ >> >> extern "C" { >> >> GB_INTERFACE GB; >> >> } >> >> int MAIN_in_wait = 0; >> int MAIN_loop_level = 0; >> >> static bool in_event_loop = false; >> static QTranslator *qt = NULL; >> >> >> >> /*************************************************************************** >> >> >> MyMimeSourceFactory >> >> Create a QMimeSourceFactory to handle files stored in an archive >> >> ***************************************************************************/ >> >> >> class MyMimeSourceFactory: public QMimeSourceFactory >> { >> public: >> >> MyMimeSourceFactory(); >> >> virtual const QMimeSource* data(const QString& abs_name) const; >> >> private: >> >> QMap extensions; >> }; >> >> >> MyMimeSourceFactory::MyMimeSourceFactory() >> { >> extensions.replace("htm", "text/html;charset=iso8859-1"); >> extensions.replace("html", "text/html;charset=iso8859-1"); >> extensions.replace("txt", "text/plain"); >> extensions.replace("xml", "text/xml;charset=UTF-8"); >> extensions.replace("jpg", "image/jpeg"); >> extensions.replace("png", "image/png"); >> extensions.replace("gif", "image/gif"); >> } >> >> >> const QMimeSource* MyMimeSourceFactory::data(const QString& abs_name) >> const >> { >> char *addr; >> long len; >> QStoredDrag* sr = 0; >> char *path; >> >> //qDebug("MyMimeSourceFactory::data: %s", (char *)abs_name.latin1()); >> >> path = (char *)abs_name.latin1(); >> >> if (true) //abs_name[0] != '/') >> { >> if (GB.LoadFile(path, 0, &addr, &len)) >> GB.Error(NULL); >> else >> { >> QByteArray ba; >> ba.setRawData((const char *)addr, len); >> >> QFileInfo fi(abs_name); >> QString e = fi.extension(FALSE); >> QCString mimetype = "application/octet-stream"; >> >> const char* imgfmt; >> >> if ( extensions.contains(e) ) >> mimetype = extensions[e].latin1(); >> else >> { >> QBuffer buffer(ba); >> >> buffer.open(IO_ReadOnly); >> if (( imgfmt = QImageIO::imageFormat( &buffer ) ) ) >> mimetype = QCString("image/")+QCString(imgfmt).lower(); >> buffer.close(); >> } >> >> sr = new QStoredDrag( mimetype ); >> sr->setEncodedData( ba ); >> >> ba.resetRawData((const char*)addr, len); >> >> //qDebug("MimeSource: %s %s", abs_name.latin1(), (const char >> *)mimetype); >> >> GB.ReleaseFile(&addr, len); >> } >> } >> >> return sr; >> } >> >> static MyMimeSourceFactory myMimeSourceFactory; >> >> >> /*************************************************************************** >> >> >> MyEventLoop >> >> Manage window deletion >> >> ***************************************************************************/ >> >> >> class MyEventLoop : public QEventLoop >> { >> public: >> MyEventLoop(); >> virtual bool processEvents( ProcessEventsFlags flags ); >> }; >> >> MyEventLoop::MyEventLoop() >> : QEventLoop() >> { >> } >> >> bool MyEventLoop::processEvents(ProcessEventsFlags flags) >> { >> bool ret; >> CWIDGET **ptr; >> CWIDGET *ob; >> >> MAIN_loop_level++; >> ret = QEventLoop::processEvents(flags); >> MAIN_loop_level--; >> >> ptr = &CWIDGET_destroy_list; >> >> for(;;) >> { >> ob = *ptr; >> if (!ob) >> break; >> if (MAIN_loop_level <= ob->level) >> { >> //qDebug(">> delete %p (%p) :%p:%ld", ob, ob->widget, >> ob->ob.klass, ob->ob.ref); >> //*ptr = ob->next; >> delete ob->widget; >> //GB.Unref((void **)&ob); >> //qDebug(" delete %p (%p) :%p:%ld #2", ob, ob->widget, >> ob->ob.klass, ob->ob.ref); >> //qDebug("<< delete %p (%p)", ob, ob->widget); >> } >> else >> { >> ptr = &ob->next; } >> } >> >> return ret; >> } >> >> >> /***************************************************************************/ >> >> >> static bool must_quit(void) >> { >> /* >> QPtrDictIterator iter(CWindow::dict); >> int n; >> CWINDOW *win; >> >> n = 0; >> while ((win = iter.current())) >> { >> if (QWIDGET(win)->isVisible()) >> n++; >> >> ++iter; >> } >> */ >> >> //qDebug("CWindow::count = %d CWatch::count = %d in_event_loop = %d", >> // CWindow::count, CWatch::count, in_event_loop); >> >> return CWindow::count == 0 && CWatch::count == 0 && in_event_loop; >> } >> >> void MAIN_check_quit(void) >> { >> if (must_quit()) >> { >> //qDebug("Must quit !"); >> //while (qApp->eventLoop()->hasPendingEvents()) >> // qApp->eventLoop()->processEvents(QEventLoop::AllEvents); >> qApp->syncX(); >> qApp->exit(); >> } >> } >> >> >> static void QT_InitEventLoop(void) >> { >> new MyEventLoop(); >> } >> >> static void QT_Init(void) >> { >> static bool init = false; >> QFont f; >> >> if (init) >> return; >> >> /*fcntl(ConnectionNumber(qt_xdisplay()), F_SETFD, FD_CLOEXEC);*/ >> QMimeSourceFactory::addFactory(&myMimeSourceFactory); >> >> //f = QApplication::font(); >> //f.setPointSizeFloat((double)f.pointSize() * 96.0 / >> (double)QPaintDevice::x11AppDpiX()); >> //qDebug("Default font size = %g", f.pointSizeFloat()); >> //QApplication::setFont(f); >> >> //QPaintDevice::x11SetAppDpiX(96); >> //QPaintDevice::x11SetAppDpiY(96); >> >> //f = QToolTip::font(); >> //f.setPointSize(f.pointSize() - ((f.pointSize() - 1) / 6 + 1)); >> //QToolTip::setFont(f); >> >> // It does not work, why ? >> //QTranslator qt( 0 ); >> //qDebug("Loading translator %s", (QString("qt_") + >> QTextCodec::locale()).latin1()); >> //qt.load(QString("qt_") + "fr", "/usr/lib/qt3/translations"); >> //qApp->installTranslator( &qt ); >> >> qt = new QTranslator(qApp); >> if (qt->load(QString( "qt_") + QTextCodec::locale(), >> QString(getenv("QTDIR")) + "/translations")) >> qApp->installTranslator(qt); >> >> init = true; >> } >> >> >> static void my_main(int *argc, char **argv) >> { >> QT_InitEventLoop(); >> new QApplication(*argc, argv); >> #if QT_VERSION <= 0x030005 >> qApp->unlock(); >> #endif >> //qApp->setStyle("windows"); >> QT_Init(); >> } >> >> >> static int my_loop() >> { >> int ret = 0; >> >> in_event_loop = true; >> >> if (!must_quit()) >> ret = qApp->exec(); >> >> //qDebug("Exit event loop"); >> >> return ret; >> } >> >> >> static void my_wait(long duration) >> { >> MAIN_in_wait++; >> #if QT_VERSION >= 0x030100 >> if (duration > 0) >> qApp->eventLoop()->processEvents(QEventLoop::AllEvents, duration); >> else >> qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput, duration); >> #else >> qApp->processEvents(duration); >> #endif >> MAIN_in_wait--; >> } >> >> >> static void my_watch(int fd, int type, void *callback, long param) >> { >> CWatch::watch(fd, type, (GB_WATCH_CALLBACK)callback, param); >> } >> >> >> static void my_post(void) >> { >> static MyPostCheck check; >> >> //qDebug("my_post ?"); >> >> if (MyPostCheck::in_check) >> return; >> >> //qDebug("my_post !"); >> >> MyPostCheck::in_check = true; >> QTimer::singleShot(0, &check, SLOT(check())); >> } >> >> >> static void my_quit() >> { >> //QWidgetList *list; >> >> qApp->closeAllWindows(); >> >> /* >> for(;;) >> { >> list = QApplication::topLevelWidgets(); >> if (list->isEmpty()) >> break; >> >> QApplication::postEvent(list->first(), new QEvent(EVENT_CLOSE)); >> qApp->processEvents(); >> delete list; >> } >> */ >> >> //qApp->unlock(); >> } >> >> static void my_error(int code, char *error, char *where) >> { >> QString msg; >> >> CWatch::stop(); >> qApp->exit(); >> >> msg = "This application has raised an unexpected\nerror and must >> abort.\n\n[%1] %2.\n%3"; >> msg = msg.arg(code).arg(error).arg(where); >> >> QMessageBox::critical(0, TO_QSTRING(GB.Application.Name()), msg); >> } >> >> static void QT_InitWidget(QWidget *widget, void *object) >> { >> CWIDGET_new(widget, object); >> } >> >> static void *QT_GetObject(QWidget *widget) >> { >> return CWidget::get((QObject *)widget); >> } >> >> static QWidget *QT_GetContainer(void *object) >> { >> return CONTAINER(object); >> } >> >> static QPixmap *QT_GetPixmap(CPICTURE *pict) >> { >> return pict->pixmap; >> } >> >> static QMimeSourceFactory *QT_MimeSourceFactory(void) >> { >> return &myMimeSourceFactory; >> } >> >> >> extern "C" { >> >> GB_DESC *GB_CLASSES[] = >> { >> CBorderDesc, CColorDesc, CAlignDesc, CArrangeDesc, CScrollDesc, >> CKeyDesc, CLineDesc, CFillDesc, >> CMessageDesc, >> CPictureDesc, >> CImageDesc, >> CDrawingDesc, >> CFontDesc, CFontsDesc, >> CMouseDesc, CCursorDesc, >> CClipboardDesc, CDragDesc, >> CDrawClipDesc, CDrawDesc, // apr?s CFont ! >> CDesktopDesc, CApplicationTooltipDesc, CApplicationDesc, >> CWidgetDesc, CChildrenDesc, >> CContainerDesc, >> CMenuChildrenDesc, CMenuDesc, >> CLabelDesc, CTextViewDesc, CPictureBoxDesc, >> CButtonDesc, CToggleButtonDesc, CToolButtonDesc, >> CCheckBoxDesc, CRadioButtonDesc, >> CTextBoxSelectionDesc, CTextBoxDesc, CComboBoxItemDesc, CComboBoxDesc, >> CTextAreaSelectionDesc, CTextAreaDesc, >> CListBoxItemDesc, CListBoxDesc, >> CListViewItemDesc, CListViewDesc, >> CTreeViewItemDesc, CTreeViewDesc, >> CColumnViewItemDesc, CColumnViewColumnDesc, CColumnViewColumnsDesc, >> CColumnViewDesc, >> CIconViewItemDesc, CIconViewDesc, >> CGridItemDesc, CGridRowDesc, CGridColumnDesc, CGridRowsDesc, >> CGridColumnsDesc, >> CGridViewDesc, >> CFrameDesc, CPanelDesc, CHBoxDesc, CVBoxDesc, CHPanelDesc, CVPanelDesc, >> CTabChildrenDesc, CTabDesc, CTabStripDesc, >> CScrollViewDesc, >> CDrawingAreaDesc, >> CProgressDesc, >> CWindowMenusDesc, CWindowDesc, CWindowsDesc, CFormDesc, >> CDialogDesc, >> CTimerDesc, >> CPrinterDesc, >> NULL >> }; >> >> void *GB_QT_1[] = { >> >> (void *)1, >> >> (void *)QT_InitEventLoop, >> (void *)QT_Init, >> (void *)QT_InitWidget, >> (void *)QT_GetObject, >> (void *)QT_GetContainer, >> (void *)CWIDGET_border_simple, >> (void *)CWIDGET_border_full, >> (void *)CWIDGET_scrollbar, >> (void *)CFONT_create, >> (void *)QT_MimeSourceFactory, >> (void *)QT_GetPixmap, >> NULL >> }; >> >> >> int GB_INIT(void) >> { >> GB.Hook(GB_HOOK_MAIN, (void *)my_main); >> GB.Hook(GB_HOOK_LOOP, (void *)my_loop); >> GB.Hook(GB_HOOK_WAIT, (void *)my_wait); >> GB.Hook(GB_HOOK_WATCH, (void *)my_watch); >> GB.Hook(GB_HOOK_POST, (void *)my_post); >> GB.Hook(GB_HOOK_QUIT, (void *)my_quit); >> GB.Hook(GB_HOOK_ERROR, (void *)my_error); >> >> /*GB.Declare(TheClasses);*/ >> >> return TRUE; >> } >> >> void GB_EXIT() >> { >> qApp->setStyle("windows"); >> delete qApp; >> } >> >> } >> >> >> /* class MyPostCheck */ >> >> bool MyPostCheck::in_check = false; >> >> void MyPostCheck::check(void) >> { >> //qDebug("MyPostCheck::check"); >> in_check = false; >> GB.CheckPost(); >> } >> >> >> > For me, Suse 9.2 and kde 3.4 updated don't work. Gambas does not start > after recompile with the patch. > > Thanks. > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From forodejazz at ...626... Thu Apr 14 07:58:23 2005 From: forodejazz at ...626... (=?ISO-8859-1?Q?David_Asorey_=C1lvarez?=) Date: Thu, 14 Apr 2005 07:58:23 +0200 Subject: [Gambas-user] Diabolic proposal: change the BASIC interpreter In-Reply-To: <200504131741.58306.alessandro.bottoni@...122...> References: <200504131741.58306.alessandro.bottoni@...122...> Message-ID: > As long as I can see, replacing the interpreter used by the Gambas IDE would > be quite difficult (but not impossible). > I supposed ... ;-) > If you wish a good IDE for Python or other interpreted language, you can check > one of the followings: > ... Thanks, I know most of them (Eric is my favourite). But, IMHO, for "agile development" or "quick programing", being language independently, Gambas is very superior to any Python IDE that I has tried. That is the reason for my question. I love Python (and I hate BASIC: I'm working with BASIC everyday in my job ;-) and there is a lack of IDEs in Python like Gambas (I know, there is Boa constructor, but I don't like the wxwidgets toolkit, and it is a little unstable in Linux). Thanks to all for your responses. -- David Asorey ?lvarez forodejazz at ...626... From frankberg at ...390... Thu Apr 14 09:03:31 2005 From: frankberg at ...390... (Frank Berg) Date: Thu, 14 Apr 2005 09:03:31 +0200 Subject: [Gambas-user] Re: gambas2-1.9.5, Component creation References: <200503231420.28852.gambas@...1...> <200504071051.28979.christian.faurebouvard@...357...> <200504121144.18659.gambas@...1...> <200504120521.06586.christian.faurebouvard@...357...> Message-ID: <004201c540c0$118207c0$3755fea9@...602...> El Martes, 12 de Abril de 2005 05:44, Benoit Minisini escribi?: > On Thursday 07 April 2005 16:51, Christian Faure wrote: > > Hi, > > i run gambas2 from console, > > open a project to test gb.form component > > it compile ok, > > F5 ->hang > > > > :-( > > > > Console output: > > > > #> gambas2 > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > gb.qt: Label.* declared but not implemented > > gb.qt: TextLabel.* declared but not implemented > > gb.form: ValueBox.* declared but not implemented > > Terminado (killed) > > #> > > > > Regards, hi, same output and effect here by me all my try are: without inherits all is ok, but if i use the keyword "inherits textbox" in the component, the test project hangs my configuration suse 9.2 with all updates kde 3.3 gcc 3.3.4 qt 3.3.3-24 gtk 1.2.10-24 gtk2 2.4.9-10 sdl 1.2.7-41 sdl image 1.2.4-1 sdl mm 0.1.8-889 but none sdl 2d frank From r.perez at ...204... Thu Apr 14 09:21:36 2005 From: r.perez at ...204... (=?ISO-8859-1?Q?Ram=F3n_P=E9rez?=) Date: Thu, 14 Apr 2005 09:21:36 +0200 Subject: [Gambas-user] Gambas 1.0.4 freezes... In-Reply-To: <200504131336.36350.gambas@...1...> References: <200504121141.39765.gambas@...1...> <425C27E7.606@...204...> <200504131336.36350.gambas@...1...> Message-ID: <425E1A00.3060103@...204...> Benoit Minisini escribi?: >On Tuesday 12 April 2005 21:56, Ram?n P?rez wrote: > > >>For me, Suse 9.2 and kde 3.4 updated don't work. Gambas does not start >>after recompile with the patch. >> >>Thanks. >> >> >> > >Is it possible to have a standard ssh access to your machine ? > > > It is, but I have a dinamic IP and when you can use it , is posible than it change. Now my IP is 83.44.172.38. In any case I have proven what Eduardo Ruiz in their mail says to and with "en_US" gambas starts. From gambas at ...1... Thu Apr 14 10:26:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 14 Apr 2005 10:26:48 +0200 Subject: [Gambas-user] Re: gambas2-1.9.5, Component creation In-Reply-To: <004201c540c0$118207c0$3755fea9@...602...> References: <200503231420.28852.gambas@...1...> <200504120521.06586.christian.faurebouvard@...357...> <004201c540c0$118207c0$3755fea9@...602...> Message-ID: <200504141026.48323.gambas@...1...> On Thursday 14 April 2005 09:03, Frank Berg wrote: > El Martes, 12 de Abril de 2005 05:44, Benoit Minisini escribi?: > > On Thursday 07 April 2005 16:51, Christian Faure wrote: > > > Hi, > > > i run gambas2 from console, > > > open a project to test gb.form component > > > it compile ok, > > > F5 ->hang > > > > > > :-( > > > > > > Console output: > > > > > > #> gambas2 > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > gb.qt: Label.* declared but not implemented > > > gb.qt: TextLabel.* declared but not implemented > > > gb.form: ValueBox.* declared but not implemented > > > Terminado (killed) > > > #> > > > > > > Regards, > > hi, > same output and effect here by me > > all my try are: without inherits all is ok, > but if i use the keyword "inherits textbox" in the component, > the test project hangs > > my configuration > suse 9.2 with all updates > kde 3.3 > gcc 3.3.4 > qt 3.3.3-24 > gtk 1.2.10-24 > gtk2 2.4.9-10 > sdl 1.2.7-41 > sdl image 1.2.4-1 > sdl mm 0.1.8-889 > > but none sdl 2d > frank > Can you grant me a ssh access to your machine ? -- Benoit Minisini mailto:gambas at ...1... From nigel at ...38... Thu Apr 14 12:39:58 2005 From: nigel at ...38... (nigel at ...38...) Date: Thu, 14 Apr 2005 12:39:58 +0200 (CEST) Subject: [Gambas-user] How to use DateDiff Message-ID: <7642003.1113475198088.JavaMail.www@...718...> Rolf, Make sure you have the vb component included in you project (check .project file in your project directory for the line library=gb.vb.....or use the IDE :-), then use vb.DateDiff( as in the help). For example: PRINT "Day diff between 04/01/2001 and 21/01/2001 is " & vb.DateDiff("d", Date(2001,01,04), Date(2001,01,21)) regards Nigel > Message date : Apr 11 2005, 07:21 PM > From : "Rolf Schmidt" > To : gambas-user at lists.sourceforge.net > Copy to : > Subject : [Gambas-user] How to use DateDiff > > Hi everybody out there > > ... I don't know how to call the DateDiff() function. Could somebody give me a > short example? > > Of which class DateDiff is a method? > > Fine regards > Rolf > > > [ (no filename) (0.2 Kb) ] -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From jmfo1982 at ...626... Thu Apr 14 16:41:13 2005 From: jmfo1982 at ...626... (=?ISO-8859-1?Q?Jos=E9_Manuel_Ferrer?=) Date: Thu, 14 Apr 2005 16:41:13 +0200 Subject: [Gambas-user] Gambas 1.0.4 freezes... In-Reply-To: <425E1A00.3060103@...204...> References: <200504121141.39765.gambas@...1...> <425C27E7.606@...204...> <200504131336.36350.gambas@...1...> <425E1A00.3060103@...204...> Message-ID: <665a6edf05041407413ba712ac@...627...> On 4/14/05, Ram?n P?rez wrote: > In any case I have proven what Eduardo Ruiz in their mail says to and > with "en_US" gambas starts. What I've tried is to change LANG environmental variable to C and not only it starts, but also the messages of the program are in Spanish, since Spanish is the default language on my system. Benoit: I can create you an account on my machine for you to access via ssh. But you should know that my machine isn't constantly connected to the Internet, therefore we should choose a day and hour to do so, preferably after 21h (GMT +1). From thomas at ...947... Thu Apr 14 15:47:23 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Thu, 14 Apr 2005 13:47:23 +0000 Subject: [Gambas-user] GoVPN 0.2 (BETA) released Message-ID: <20050414.M1V.81674400@...948...> The GoVPN client source has been released at www.clubnix.net and www.gambasforge.net. The code is dirty, but I am functional guy. If anyone wants to help me make this front-end better, just send me an email (thomas at linprofs dot com). /Thomas -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From gambas at ...1... Thu Apr 14 16:53:13 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 14 Apr 2005 16:53:13 +0200 Subject: [Gambas-user] gambas-1.0.5pre1 Message-ID: <200504141653.13878.gambas@...1...> I have just uploaded a pre-release of gambas 1.0.5 there: http://gambas.sf.net/gambas-1.0.5pre1.tar.bz2 I added a configure option to disable the use of qt translation files: $ ./configure --disable-qt-translation Users having freeze problems with the previous version should use this flag and tell me if it solves their problem. Here are the other changes: * New Japanese translation made by Kazutaka Harada. * New Hungarian translation made by Balazs Barany. * BUG: You cannot assign a null name to a control anymore. * BUG: Package version requirements were fixed in the packager wizard. * BUG: The Seek() function should work now. * An error is raised when trying to use WAIT with FOR READ/WRITE in the SHELL and EXEC instructions. I think I will release the final 1.0.5 when the freeze problem with SuSE has a workaround. Regards, -- Benoit Minisini mailto:gambas at ...1... From christian.faurebouvard at ...357... Thu Apr 14 13:48:09 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Thu, 14 Apr 2005 07:48:09 -0400 Subject: [Gambas-user] Re: gambas2-1.9.5, Component creation In-Reply-To: <200504131744.52741.gambas@...1...> References: <200503231420.28852.gambas@...1...> <200504120521.06586.christian.faurebouvard@...357...> <200504131744.52741.gambas@...1...> Message-ID: <200504140748.10152.christian.faurebouvard@...357...> El Mi?rcoles, 13 de Abril de 2005 11:44, Benoit Minisini escribi?: > On Tuesday 12 April 2005 11:21, Christian Faure wrote: > > El Martes, 12 de Abril de 2005 05:44, Benoit Minisini escribi?: > > > On Thursday 07 April 2005 16:51, Christian Faure wrote: > > > > Hi, > > > > i run gambas2 from console, > > > > open a project to test gb.form component > > > > it compile ok, > > > > F5 ->hang > > > > > > > > :-( > > > > > > > > Console output: > > > > > > > > #> gambas2 > > > > gb.qt: Label.* declared but not implemented > > > > gb.qt: TextLabel.* declared but not implemented > > > > gb.form: ValueBox.* declared but not implemented > > > > gb.qt: Label.* declared but not implemented > > > > gb.qt: TextLabel.* declared but not implemented > > > > gb.form: ValueBox.* declared but not implemented > > > > gb.qt: Label.* declared but not implemented > > > > gb.qt: TextLabel.* declared but not implemented > > > > gb.form: ValueBox.* declared but not implemented > > > > gb.qt: Label.* declared but not implemented > > > > gb.qt: TextLabel.* declared but not implemented > > > > gb.form: ValueBox.* declared but not implemented > > > > Terminado (killed) > > > > #> > > > > > > > > Regards, > > > > Christian > > > > > > Can you send me your project ? > > > > Sure, > > Is only a new empty project > > with component gb.form checked. > > > > Thanks. > > No problem there... > > If you run gambas2 as root, do you have the same messages ? Were your > *.info and *.list files correctly generated ? Look in > /usr/local/share/gambas2/info > > > PD: > > The size and position of the label in form1 change between save and open > > project. > > No problem there too. > > Strange... Running as root gives same messages, *.list and *.info exists in /usr/local/share/gambas2/info (see attached files) Thanks. -------------- next part -------------- #ValueBox TextBox _Properties C s *,Type=4,Null=1 _DrawWith C s TextBox Value p v Type p i Null p b _new m -------------- next part -------------- ValueBox From r.perez at ...204... Thu Apr 14 20:17:23 2005 From: r.perez at ...204... (=?ISO-8859-1?Q?Ram=F3n_P=E9rez?=) Date: Thu, 14 Apr 2005 20:17:23 +0200 Subject: [Gambas-user] gambas-1.0.5pre1 In-Reply-To: <200504141653.13878.gambas@...1...> References: <200504141653.13878.gambas@...1...> Message-ID: <425EB3B3.8010601@...204...> Benoit Minisini escribi?: >I have just uploaded a pre-release of gambas 1.0.5 there: > >http://gambas.sf.net/gambas-1.0.5pre1.tar.bz2 > >I added a configure option to disable the use of qt translation files: > >$ ./configure --disable-qt-translation > >Users having freeze problems with the previous version should use this flag >and tell me if it solves their problem. > >Here are the other changes: > >* New Japanese translation made by Kazutaka Harada. >* New Hungarian translation made by Balazs Barany. >* BUG: You cannot assign a null name to a control anymore. >* BUG: Package version requirements were fixed in the packager wizard. >* BUG: The Seek() function should work now. >* An error is raised when trying to use WAIT with FOR READ/WRITE in the SHELL > and EXEC instructions. > >I think I will release the final 1.0.5 when the freeze problem with SuSE has a >workaround. > >Regards, > > > For me, Suse 9.2 and KDE 3.4 the version 1.0.5.pre solves the problem. Gambas start in spanish. Than you Benoit. From Karl.Reinl at ...9... Thu Apr 14 22:46:04 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 14 Apr 2005 22:46:04 +0200 Subject: [Gambas-user] TableView, set a Column unvisible Message-ID: <200504142246.04362.Karl.Reinl@...9...> Salut Benoit, I sended this some times ago, in hope you find the time to set it for gambas-1.0.5 I send it again today. look for CTABLECOLS_Visible in attached file (from gambas-1.0.4). With that you can define a column in TableView visible/unvisible, what means you have access to the value, but the column is not shown. used in gambas : TableView1.Columns[0].Visible = FALSE This works for me, even I know it should be better implemented. Amicalment Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: CTableView.cpp Type: text/x-c++src Size: 29323 bytes Desc: not available URL: From nando_f at ...951... Fri Apr 15 00:29:10 2005 From: nando_f at ...951... (nando) Date: Thu, 14 Apr 2005 18:29:10 -0400 Subject: [Gambas-user] Serial Port Problems Message-ID: <20050414222632.M81411@...951...> I believe the Serial Port Control (which is used in the example program) is faulty with the handshaking bits. Anyone have similar problems and/or solutions? -Fernando From eilert-sprachen at ...221... Fri Apr 15 09:11:56 2005 From: eilert-sprachen at ...221... (Eilert) Date: Fri, 15 Apr 2005 09:11:56 +0200 Subject: [Gambas-user] Three questions about handling Message-ID: <425F693C.6040100@...221...> Good morning everyone! Before I start my next project, I'd like to discuss 3 items I've come across over the last weeks. First: How (and what for) do you use HPanel, VPanel, HBox, VBox? In other IDEs I've seen a way of connecting the elements in a window so when the user changes its size, the elements will automatically react to it. Is this possible to achieve with those here, or maybe in some other way? (Up to now I used to do this by code in the Resize event.) In the extended collection there are sliders, but you cannot drag them to whatever position but they "jump" really to fixed positions. Can I change that somehow? Second: How do you arrange your projects internally to not lose overview over the many SUBs/Functions? I usually set up several modules containing certain stuff which can be done independently from the forms (loading/saving, printing, ini-file handling etc.), but sometimes in those modules and in the form modules the number of SUBs grows so much it actually produces a long, long list which it is very hard to pick up a certain function from. Are there any "rules" from a professional programmer's point of view to avoid this? Third: Are there any speed issues to certain language elements, for instance, SELECT CASE being slower than IF/ELSE or DO...LOOP faster than FOR...NEXT? Thank you for any insight! Rolf From rolf.frogs at ...221... Fri Apr 15 10:27:08 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Fri, 15 Apr 2005 10:27:08 +0200 Subject: [Gambas-user] How to use DateDiff In-Reply-To: <7642003.1113475198088.JavaMail.www@...718...> References: <7642003.1113475198088.JavaMail.www@...718...> Message-ID: <200504151027.11597.rolf.frogs@...221...> Hi Nige > Make sure you have the vb component included in you project (check .project > file in your project directory for the line library=gb.vb.....or use the > IDE :-), then use vb.DateDiff( as in the help). This was the needed info. > For example: > > PRINT "Day diff between 04/01/2001 and 21/01/2001 is " & vb.DateDiff("d", > Date(2001,01,04), Date(2001,01,21)) Thank you very much. Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jmfo1982 at ...626... Fri Apr 15 15:42:50 2005 From: jmfo1982 at ...626... (=?ISO-8859-1?Q?Jos=E9_Manuel_Ferrer?=) Date: Fri, 15 Apr 2005 15:42:50 +0200 Subject: [Gambas-user] gambas-1.0.5pre1 In-Reply-To: <200504141653.13878.gambas@...1...> References: <200504141653.13878.gambas@...1...> Message-ID: <665a6edf0504150642468cc563@...627...> 2005/4/14, Benoit Minisini : > I have just uploaded a pre-release of gambas 1.0.5 there: > > http://gambas.sf.net/gambas-1.0.5pre1.tar.bz2 > ... Hi, I've configured it with "./configure" and compiled it without problems, but when I`ve done a "make install" as root, it failed to compile the module gambas with the following error: Installing the development environment... Compiling gambas... /home/jose/src/gambas-1.0.5pre1/app/gambas/Project.module:846: Not enough arguments to Lock() Compiling gambas-database-manager... OK ... Then when I've ran "gambas", it gave me this error message ERROR: #2: Cannot load class 'Project': Unable to load class file in the command line and in a window. I've not modified any Gambas' source files, they were extracted from the .tar.bz2 archive as-is. Regards, Jos? Manuel From nando_f at ...951... Fri Apr 15 21:46:03 2005 From: nando_f at ...951... (nando) Date: Fri, 15 Apr 2005 15:46:03 -0400 Subject: [Gambas-user] Serial Port Problems In-Reply-To: <20050414222632.M81411@...951...> References: <20050414222632.M81411@...951...> Message-ID: <20050415194209.M34550@...951...> I have discovered that the DTR and RTS (outputs from host) do not behave properly. When I drop either one 'Sport.DTR = False' both go down. This should not happen. The DCE mostly likely will not operate correctly when the DTR is dropped simultaneously with RTS. I do not believe the kernel would be buggy. -Fernando On Thu, 14 Apr 2005 18:29:10 -0400, nando wrote > I believe the Serial Port Control (which is used in the example > program) is faulty with the handshaking bits. > > Anyone have similar problems and/or solutions? > > -Fernando > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From daniel.campos at ...338... Sat Apr 16 00:16:11 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Sat, 16 Apr 2005 00:16:11 +0200 Subject: [Gambas-user] Serial Port Problems In-Reply-To: <20050415194209.M34550@...951...> References: <20050414222632.M81411@...951...> <20050415194209.M34550@...951...> Message-ID: <42603D2B.1090508@...338...> nando escribi?: >I have discovered that the DTR and RTS (outputs from host) do not >behave properly. > >When I drop either one 'Sport.DTR = False' >both go down. This should not happen. > >The DCE mostly likely will not operate correctly >when the DTR is dropped simultaneously with RTS. > >I do not believe the kernel would be buggy. >-Fernando > > > The kernel is buggy, this is sure, but not the serial port driver :-))) OK, try this patch: place this file in: Gambas-1.0.x --> {gambas sources}/src/lib/net or Gambas-1.9.x --> {gambas sources}/gb.net/src And recompile and install the gb.net component, now DTR and RTS will be independient. Regards, D. Campos -------------- next part -------------- A non-text attachment was scrubbed... Name: CSerialPort.c Type: text/x-csrc Size: 19387 bytes Desc: not available URL: From nando_f at ...951... Sat Apr 16 00:52:45 2005 From: nando_f at ...951... (nando) Date: Fri, 15 Apr 2005 18:52:45 -0400 Subject: [Gambas-user] Serial Port Problems In-Reply-To: <42603D2B.1090508@...338...> References: <20050414222632.M81411@...951...> <20050415194209.M34550@...951...> <42603D2B.1090508@...338...> Message-ID: <20050415225132.M59796@...951...> Thank you, Is this fix put in the current dev? -Fernando On Sat, 16 Apr 2005 00:16:11 +0200, Daniel Campos wrote > nando escribi?: > > >I have discovered that the DTR and RTS (outputs from host) do not > >behave properly. > > > >When I drop either one 'Sport.DTR = False' > >both go down. This should not happen. > > > >The DCE mostly likely will not operate correctly > >when the DTR is dropped simultaneously with RTS. > > > >I do not believe the kernel would be buggy. > >-Fernando > > > > > > > The kernel is buggy, this is sure, but not the serial port driver :-) > )) > > OK, try this patch: > > place this file in: > > Gambas-1.0.x --> {gambas sources}/src/lib/net > > or > > Gambas-1.9.x --> {gambas sources}/gb.net/src > > And recompile and install the gb.net component, now DTR and RTS will > be independient. > > Regards, > > D. Campos From daniel.campos at ...338... Sat Apr 16 13:06:57 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Sat, 16 Apr 2005 13:06:57 +0200 Subject: [Gambas-user] Serial Port Problems In-Reply-To: <20050415225132.M59796@...951...> References: <20050414222632.M81411@...951...> <20050415194209.M34550@...951...> <42603D2B.1090508@...338...> <20050415225132.M59796@...951...> Message-ID: <4260F1D1.6030006@...338...> nando escribi?: >Thank you, >Is this fix put in the current dev? >-Fernando > > > Not yet, Beno?t, could you please add the patch to both stable and devel versions?. Regards, D. Campos From thomas at ...947... Sat Apr 16 15:52:33 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Sat, 16 Apr 2005 15:52:33 +0200 Subject: [Gambas-user] Circular references and allocations non freed? Message-ID: <426118A1.5010603@...947...> GoVPN (0.2-2) spits out this when I exit: WARNING: circular references detected frMain (1) WARNING: 60 allocation(s) non freed. I am using QUIT.. so it should clean up all variables, shouldn't it? I have no clue what circular references mean..? Here's the exit code: PUBLIC SUB btExit_Click() 'Same for form_close SaveConfig 'Save settings TRY VPNProcess.kill 'Try to kill VPN process IF ERROR THEN addtodebug("Tried to kill VPNProcess, but no connection found.") 'If no process, just add a note to debug listview QUIT 'Cleans up?! END Anyone? From thomas at ...947... Sat Apr 16 16:48:04 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Sat, 16 Apr 2005 16:48:04 +0200 Subject: [Gambas-user] /usr/bin/gbx2: bad interpreter: No such file or directory? Message-ID: <426125A4.6030709@...947...> Guys and girls, After installing a .deb made using gambas on a machine without gambas, I get the the error "bash: /path/to/my/binary: /usr/bin/gbx2: bad interpreter: No such file or directory. (sorry about being a bit eager in this maillist) From vcalandra at ...69... Sun Apr 17 14:03:26 2005 From: vcalandra at ...69... (Vincenzo Calandra) Date: Sun, 17 Apr 2005 14:03:26 +0200 Subject: [Gambas-user] Gambas and Visual Basic Message-ID: <1113739406.9100.4.camel@...953...> I have discovered this wonderful tool but i am very newbie with Visual Basic. Where i can found in internet a "free" manual? Excuse me for my bad english :-) -- Ciao, Enzo. (vcalandra at ...69...) From mauriziopz at ...626... Sun Apr 17 15:11:01 2005 From: mauriziopz at ...626... (Maurizio Pozzobon) Date: Sun, 17 Apr 2005 15:11:01 +0200 Subject: [Gambas-user] Gambas and Visual Basic In-Reply-To: <1113739406.9100.4.camel@...953...> References: <1113739406.9100.4.camel@...953...> Message-ID: Hi Enzo you can find a free "manual" of gambas in the wiki encyclopedia (http://www.binara.com/gambas-wiki/bin/view/Gambas10/WebHome), since you are italian I think you'd better use the translated one (http://www.binara.com/gambas-wiki/bin/view/GambasItaliano/WebHome), you can find more information at www.gambas.it. Bye P.S. If you were looking for info about Visual Basic (Attention, VB an Gambas aren't source compatibiles!) you may find it at www.html.it ----Italiano---- Ciao Enzo puoi trovare un "manuale" gratuito di gambas nell'enciclopedia wiki (http://www.binara.com/gambas-wiki/bin/view/Gambas10/WebHome) ma dato che sei italiano suppongo ti interessi di pi? la versione tradotta (http://www.binara.com/gambas-wiki/bin/view/GambasItaliano/WebHome), puoi trovare pi? informazioni sul sito www.gambas.it. Ciao P.S. se invece cercavi informazioni su Visual Basic (attenzione VB e Gambas non sono compatibili!) se non mi sbaglio su www.html.it dovresti trovare quello che cerchi. -- Maurizio From nando_f at ...951... Mon Apr 18 17:27:24 2005 From: nando_f at ...951... (nando) Date: Mon, 18 Apr 2005 11:27:24 -0400 Subject: [Gambas-user] Circular references and allocations non freed? In-Reply-To: <426118A1.5010603@...947...> References: <426118A1.5010603@...947...> Message-ID: <20050418152624.M17844@...951...> I sometimes get that error too, but not often, with the same code. On Sat, 16 Apr 2005 15:52:33 +0200, Thomas Mathiesen wrote > GoVPN (0.2-2) spits out this when I exit: > > WARNING: circular references detected > frMain (1) > WARNING: 60 allocation(s) non freed. > > I am using QUIT.. so it should clean up all variables, shouldn't it? > I have no clue what circular references mean..? > > Here's the exit code: > > PUBLIC SUB btExit_Click() 'Same for form_close > > SaveConfig 'Save settings > TRY VPNProcess.kill 'Try to kill VPN process > IF ERROR THEN addtodebug("Tried to kill VPNProcess, but no > connection found.") 'If no process, just add a note to debug > listview QUIT 'Cleans up?! > > END > > Anyone? > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nando_f at ...951... Mon Apr 18 17:26:00 2005 From: nando_f at ...951... (nando) Date: Mon, 18 Apr 2005 11:26:00 -0400 Subject: [Gambas-user] Serial Port Problems In-Reply-To: <4260F1D1.6030006@...338...> References: <20050414222632.M81411@...951...> <20050415194209.M34550@...951...> <42603D2B.1090508@...338...> <20050415225132.M59796@...951...> <4260F1D1.6030006@...338...> Message-ID: <20050418151413.M90542@...951...> I am using the Serial Port control for a device I have in my business. Before this program runs 'live' in the real world, I am testing it various different ways. One test is to write 700B data once every second at 38400. The program will eventually stop executing but is not terminated. Sometimes it takes 4 hours, sometimes 34 hours - it is not constant - but it does stop. The hardware lines are unchanging and all correct when not executing. I have tried to run the executable and inside the IDE. I have the same symptoms. I can 'stop' the program in the IDE. I can 'pause' the program only if an event happens. When I do get to single step, it appears the 'problem' is in native code. I'm trying to determine what's going on so I can move forward Any ideas? -Fernando On Sat, 16 Apr 2005 13:06:57 +0200, Daniel Campos wrote > nando escribi?: > > >Thank you, > >Is this fix put in the current dev? > >-Fernando > > > > > > > Not yet, Beno?t, could you please add the patch to both stable and > devel versions?. > > Regards, > > D. Campos > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op?k > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From GMLDIAS at ...87... Mon Apr 18 17:31:07 2005 From: GMLDIAS at ...87... (GMLDIAS at ...87...) Date: Mon, 18 Apr 2005 11:31:07 -0400 Subject: [Gambas-user] The tableview object internal error Message-ID: <46FA0F3D.31A3281A.00157CE9@...87...> Hi! The TableView Object dont work correct. When i select one column the result is next column example: My tablevies list is: aaaa;bbb;ccc;ddd;eee;fff I'm select the item bbb and show the item ccc In my previous version of gambas this object work correctly. Excuse me my english is not very well my program class: PRIVATE $hConn AS Connection PRIVATE $rData AS Result PUBLIC SUB tbvData_Data(Row AS Integer, Column AS Integer) $rData.MoveTo(Row) tbvData.Data.Text = Str($rData[tbvData.Columns[Column].Text]) mglobal.pNome = Str($rData[tbvData.Columns[0].Text]) END PUBLIC SUB tbvData_Click() ME.Close END PUBLIC SUB tbvData_KeyPress() IF Key.Code = Key.Return OR Key.Code = Key.Enter THEN ME.Close IF Key.Code = Key.Esc OR Key.Code = Key.Escape THEN mglobal.pNome = "" ME.Close ENDIF END PUBLIC SUB achar_KeyRelease() DIM hTable AS Table DIM hField AS ResultField DIM sField AS String DIM iInd AS Integer DIM iLen AS Integer DIM tmpNome AS String INC Application.Busy $hConn = NEW Connection $hConn = mglobal.OpenConnection() tmpNome = achar.Text 'tmpNome = soundex.MakeSondExString(tmpNome) $rData = mglobal.OpenRecordSet($hConn,"SELECT PC_NOME AS PACIENTE, PC_ENDERECO AS ENDERECO, PC_BAIRRO AS BAIRRO FROM Pacientes WHERE LEFT(PC_NOME," & Str(Len(tmpNome)) & ") = '" & tmpNome & "' ORDER BY PC_NOME;") tbvData.Rows.Count = 0 tbvData.Columns.Count = $rData.Fields.Count FOR EACH hField IN $rData.Fields WITH hField tbvData.Columns[iInd].Text = .Name tbvData.Columns[iInd].Width = mglobal.WidthFromType(tbvData, .Type, .Length, .Name) END WITH INC iInd NEXT tbvData.Rows.Count = $rData.Count FINALLY DEC Application.Busy CATCH Message.Error("Cannot exec request." & "\n\n" & Error.Text) END From lordheavy at ...512... Mon Apr 18 17:51:38 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 18 Apr 2005 17:51:38 +0200 Subject: [Gambas-user] Circular references and allocations non freed? In-Reply-To: <426118A1.5010603@...947...> References: <426118A1.5010603@...947...> Message-ID: <200504181751.39374.lordheavy@...512...> Le Samedi 16 Avril 2005 15:52, Thomas Mathiesen a ?crit?: > GoVPN (0.2-2) spits out this when I exit: > > WARNING: circular references detected > frMain (1) > WARNING: 60 allocation(s) non freed. > > > I am using QUIT.. so it should clean up all variables, shouldn't it? > I have no clue what circular references mean..? > > Here's the exit code: > > PUBLIC SUB btExit_Click() 'Same for form_close > > SaveConfig 'Save settings > TRY VPNProcess.kill 'Try to kill VPN process > IF ERROR THEN addtodebug("Tried to kill VPNProcess, but no connection > found.") 'If no process, just add a note to debug listview > QUIT 'Cleans up?! > > END > Use ME.close instead of Quit :) -- Laurent Carlier jabber : LordHeavy at ...943... From thomas at ...947... Mon Apr 18 19:30:19 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Mon, 18 Apr 2005 19:30:19 +0200 Subject: [Gambas-user] Circular references and allocations non freed? In-Reply-To: <200504181751.39374.lordheavy@...512...> References: <426118A1.5010603@...947...> <200504181751.39374.lordheavy@...512...> Message-ID: <4263EEAB.1080304@...947...> Laurent Carlier wrote: > Le Samedi 16 Avril 2005 15:52, Thomas Mathiesen a ?crit : > >>GoVPN (0.2-2) spits out this when I exit: >> >>WARNING: circular references detected >>frMain (1) >>WARNING: 60 allocation(s) non freed. > > Use ME.close instead of Quit :) > I used me.close at first, but it leaves more allocations non-freed.. so I reckon QUIT is better for the system. /T From spaun at ...662... Mon Apr 18 23:26:11 2005 From: spaun at ...662... (Paun) Date: Mon, 18 Apr 2005 23:26:11 +0200 Subject: [Gambas-user] 586 rpm's for 1.04 In-Reply-To: <20050418152624.M17844@...951...> Message-ID: Where I can find rpm-s for Mandrake 10.1 with 586 extension? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.10 - Release Date: 4/14/2005 From gambas at ...1... Tue Apr 19 10:58:29 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Apr 2005 10:58:29 +0200 Subject: [Gambas-user] gambas-1.0.5pre1 In-Reply-To: <665a6edf0504150642468cc563@...627...> References: <200504141653.13878.gambas@...1...> <665a6edf0504150642468cc563@...627...> Message-ID: <200504191058.29188.gambas@...1...> On Friday 15 April 2005 15:42, Jos? Manuel Ferrer wrote: > 2005/4/14, Benoit Minisini : > > I have just uploaded a pre-release of gambas 1.0.5 there: > > > > http://gambas.sf.net/gambas-1.0.5pre1.tar.bz2 > > ... > > Hi, I've configured it with "./configure" and compiled it without > problems, but when I`ve done a "make install" as root, it failed to > compile the module gambas with the following error: > > Installing the development environment... > Compiling gambas... > /home/jose/src/gambas-1.0.5pre1/app/gambas/Project.module:846: Not > enough arguments to Lock() > Compiling gambas-database-manager... > OK > ... > > Then when I've ran "gambas", it gave me this error message > > ERROR: #2: Cannot load class 'Project': Unable to load class file > > in the command line and in a window. > > I've not modified any Gambas' source files, they were extracted from > the .tar.bz2 archive as-is. > > Regards, > Jos? Manuel > > OK. I fixed it. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Apr 19 11:02:20 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Apr 2005 11:02:20 +0200 Subject: [Gambas-user] TableView, set a Column unvisible In-Reply-To: <200504142246.04362.Karl.Reinl@...9...> References: <200504142246.04362.Karl.Reinl@...9...> Message-ID: <200504191102.20493.gambas@...1...> On Thursday 14 April 2005 22:46, Charlie Reinl wrote: > Salut Benoit, > > I sended this some times ago, in hope you find the time to set it for > gambas-1.0.5 I send it again today. > > look for CTABLECOLS_Visible in attached file (from gambas-1.0.4). > > With that you can define a column in TableView visible/unvisible, what > means you have access to the value, but the column is not shown. > > used in gambas : TableView1.Columns[0].Visible = FALSE > > This works for me, even I know it should be better implemented. > > Amicalment > Charlie But I can't add a new feature in the stable version. I must add it in the development one... I am currently working in the interpreter internals. When I will start to work on the GUI component again, I think QT4 will be out, and a new version of GTK+, and so a lot of things will change, and we will be able to add all features that are missing in the stable version :-) Keep your code under the knee... (french expression) Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Apr 19 11:08:46 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Apr 2005 11:08:46 +0200 Subject: [Gambas-user] Three questions about handling In-Reply-To: <425F693C.6040100@...221...> References: <425F693C.6040100@...221...> Message-ID: <200504191108.46867.gambas@...1...> On Friday 15 April 2005 09:11, Eilert wrote: > Good morning everyone! > > Before I start my next project, I'd like to discuss 3 items I've come > across over the last weeks. > > First: How (and what for) do you use HPanel, VPanel, HBox, VBox? In > other IDEs I've seen a way of connecting the elements in a window so > when the user changes its size, the elements will automatically react to > it. Is this possible to achieve with those here, or maybe in some other > way? (Up to now I used to do this by code in the Resize event.) HPanel automatically arrange its children horizontally. VPanel '''''''''''''''''''''''''''''''''' vertically. HBox arrange them from left to right, and then from top to bottom. VBox arrange them from top to bottom, and then from left to right. Another way of automatically arranging controls is using the 'Arrange' property of the Panel and Form controls. Moreover, each control has a 'Expand' property that tells it to fill its parent control in the direction of its arrangement. > > In the extended collection there are sliders, but you cannot drag them > to whatever position but they "jump" really to fixed positions. Can I > change that somehow? What are you talking about ? > > Second: How do you arrange your projects internally to not lose overview > over the many SUBs/Functions? I usually set up several modules > containing certain stuff which can be done independently from the forms > (loading/saving, printing, ini-file handling etc.), but sometimes in > those modules and in the form modules the number of SUBs grows so much > it actually produces a long, long list which it is very hard to pick up > a certain function from. Are there any "rules" from a professional > programmer's point of view to avoid this? > > Third: Are there any speed issues to certain language elements, for > instance, SELECT CASE being slower than IF/ELSE or DO...LOOP faster than > FOR...NEXT? FOR...NEXT is a bit optimized, but any other control structure is replaced by tests (IF/ELSE) and jumps (GOTO). To see the code generated by the compiler, compile your project by hand with the '-v' option: $ gbc -v > > Thank you for any insight! > > Rolf > > Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Apr 19 11:10:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Apr 2005 11:10:05 +0200 Subject: [Gambas-user] Circular references and allocations non freed? In-Reply-To: <20050418152624.M17844@...951...> References: <426118A1.5010603@...947...> <20050418152624.M17844@...951...> Message-ID: <200504191110.05802.gambas@...1...> On Monday 18 April 2005 17:27, nando wrote: > I sometimes get that error too, but not often, with the same code. > > On Sat, 16 Apr 2005 15:52:33 +0200, Thomas Mathiesen wrote > > > GoVPN (0.2-2) spits out this when I exit: > > > > WARNING: circular references detected > > frMain (1) > > WARNING: 60 allocation(s) non freed. > > > > I am using QUIT.. so it should clean up all variables, shouldn't it? > > I have no clue what circular references mean..? > > > > Here's the exit code: > > > > PUBLIC SUB btExit_Click() 'Same for form_close > > > > SaveConfig 'Save settings > > TRY VPNProcess.kill 'Try to kill VPN process > > IF ERROR THEN addtodebug("Tried to kill VPNProcess, but no > > connection found.") 'If no process, just add a note to debug > > listview QUIT 'Cleans up?! > > > > END > > > > Anyone? > > Never use the QUIT instruction to quit a program. Actually this instruction violently aborts your program, and so don't free things cleanly. To cleanly ends a program, close all windows. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Tue Apr 19 11:11:53 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Apr 2005 11:11:53 +0200 Subject: [Gambas-user] Circular references and allocations non freed? In-Reply-To: <4263EEAB.1080304@...947...> References: <426118A1.5010603@...947...> <200504181751.39374.lordheavy@...512...> <4263EEAB.1080304@...947...> Message-ID: <200504191111.53419.gambas@...1...> On Monday 18 April 2005 19:30, Thomas Mathiesen wrote: > Laurent Carlier wrote: > > Le Samedi 16 Avril 2005 15:52, Thomas Mathiesen a ?crit : > >>GoVPN (0.2-2) spits out this when I exit: > >> > >>WARNING: circular references detected > >>frMain (1) > >>WARNING: 60 allocation(s) non freed. > > > > Use ME.close instead of Quit :) > > I used me.close at first, but it leaves more allocations non-freed.. so > I reckon QUIT is better for the system. > > /T > If you close your form, and you have the message, then you really have circular references in your code! This message just tell you to clean your code. But everything is cleanly freed anyway, don't worry. You are not using Windows :-) Regards, -- Benoit Minisini mailto:gambas at ...1... From thomas at ...947... Tue Apr 19 10:47:20 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Tue, 19 Apr 2005 08:47:20 +0000 Subject: [Gambas-user] Circular references and allocations non freed? Message-ID: <20050419.NP4.82743700@...948...> > > >>WARNING: circular references detected > > >>frMain (1) > > >>WARNING: 60 allocation(s) non freed. > > > > > > Use ME.close instead of Quit :) > > > > I used me.close at first, but it leaves more allocations non-freed.. so > > I reckon QUIT is better for the system. > > > > /T > > > > If you close your form, and you have the message, then you really have > circular references in your code! > > This message just tell you to clean your code. But everything is cleanly freed > anyway, don't worry. You are not using Windows :-) Thanks man :) -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From gambas at ...1... Tue Apr 19 14:10:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 19 Apr 2005 14:10:25 +0200 Subject: [Gambas-user] gambas 1.0.5 Message-ID: <200504191410.25389.gambas@...1...> Hi guys, I have just uploaded the final release of gambas 1.0.5. Here are the changes: A new configure flag, '--disable-qt-translation', prevents the qt component for using qt translation files, in the hope of helping to solve the 'freeze' problem with distributions like SuSE. Use this flag to compile gambas if you see that without it the IDE freezes at start. There is a new Japanese translation made by Kazutaka Harada, and a new Hungarian translation made by Balazs Barany. The following bugs were fixed: - You cannot assign a null name to a control anymore. - Package version requirements were fixed in the packager wizard. - The Seek() function should work now. - A file descriptor leak was fixed in an internal function used by the Settings class. - An error is raised now when trying to use WAIT with FOR READ/WRITE in the SHELL and EXEC instructions. - The Serial port fix of Daniel Campos was merged. Enjoy it! -- Benoit Minisini mailto:gambas at ...1... From sourceforge-raindog2 at ...94... Tue Apr 19 16:04:30 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 19 Apr 2005 09:04:30 -0500 Subject: [Gambas-user] 586 rpm's for 1.04 In-Reply-To: References: Message-ID: <200504191004.30823.sourceforge-raindog2@...94...> On Monday 18 April 2005 17:26, Paun wrote: > Where I can find rpm-s for Mandrake 10.1 with 586 extension? Sorry, Mandrake changed their default RPM building target to i686 (or I would imagine, whatever matches the kernel you're running) at some point and I didn't catch it. We have a laptop that's an i586 (Cyrix) so I'll be rebuilding all my RPM's as i586 soon. I really don't think the performance hit will be too bad on i686 machines. Rob From rolf.frogs at ...221... Tue Apr 19 22:22:27 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Tue, 19 Apr 2005 22:22:27 +0200 Subject: [Gambas-user] gambas 1.0.5 In-Reply-To: <200504191410.25389.gambas@...1...> References: <200504191410.25389.gambas@...1...> Message-ID: <200504192222.31658.rolf.frogs@...221...> Hello Benoit, > I have just uploaded the final release of gambas 1.0.5. I would like to tell you my favorit whish for now - perhaps for the next (minor) release As wrote you in a previous mail, I'm working on a more complex database system (using Postgresql). The querys sometimes uses sum() or max() or avg() selects, which could not be handled with normal select functions, so I use EXEC(). Now I would ask you if it is possible to pass the error messages generated by postgresql directly into a message window. Until now most time I get something like "error... unknown UTF8 char...) even if just a comma is missing or (my current problem) if a conflict with a constrait occurse. Once again thank you for your work Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From joe1962 at ...626... Tue Apr 19 21:54:08 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 19 Apr 2005 19:54:08 +0000 Subject: [Gambas-user] Error creating Vector Linux package Message-ID: <200504191954.08142.joe1962@...626...> Hi: I'm trying to create a package for Vector Linux 5.0 SOHO, using checkinstall and it gives the following error at the end: /opt/gambas/lib/gambas/lib.gb.so: not found make[2]: *** [install-exec-local] Error 1 make[2]: Leaving directory `/home/joe1962/Desktop/gambas-1.0.5' make[1]: *** [install-am] Error 2 make[1]: Leaving directory `/home/joe1962/Desktop/gambas-1.0.5' make: *** [install-recursive] Error 1 **** Installation failed. Aborting package creation. I checked and there is no lib.gb.so anywhere. Installing by make install works. Any ideas? Joe1962 From nando_f at ...951... Wed Apr 20 03:51:42 2005 From: nando_f at ...951... (nando) Date: Tue, 19 Apr 2005 21:51:42 -0400 Subject: [Gambas-user] IDE - Deleting a class also delete's the form. Message-ID: <20050420014546.M81835@...951...> Silly me, I wanted to keep the form but revert to a existing same-named class. It seemed that deleting the current one from the project was necessary to allow adding a class of the same name from a different folder. When I went to delete the class, the form was also deleted. Shocked I was. I believe this extra feature is not a desirable thing. Deleting the class ought to just delete the class. Deleting the form ought to just delete the form. From nando_f at ...951... Wed Apr 20 05:24:45 2005 From: nando_f at ...951... (nando) Date: Tue, 19 Apr 2005 23:24:45 -0400 Subject: [Gambas-user] Empty While loop question Message-ID: <20050420031719.M64834@...951...> Question... Assume there is a timer on the form and the following 3-line code fragment is running (which is NOT inside the timer sub) ... Timer1.Enabled = True WHILE Timer1.Enabled = True 'wait here until timer completes WEND ... Public Sub Timer1_Timer Timer1.Enable = False End Sub The purpose is to wait a prescribed amount of time, which the timer is used for, at which time the timer is disabled and the program continues. Question: Why does the timer event not actually fire?? -Fernando From pvera at ...729... Wed Apr 20 06:14:58 2005 From: pvera at ...729... (Pablo Vera) Date: Tue, 19 Apr 2005 23:14:58 -0500 Subject: [Gambas-user] Empty While loop question In-Reply-To: <20050420031719.M64834@...951...> References: <20050420031719.M64834@...951...> Message-ID: <4265D742.7070700@...729...> The problem is that the WHILE-WEND loop runs continously and doesn't allow the event to fire. You need something like this: WHILE Timer1.Enabled = True 'wait here until timer completes WAIT 0.1 'allow events to fire WEND But if you need to wait a specified amount of time, simply use the WAIT command like this: WAIT n where n is the amount of time in seconds that the program should wait. Saludos, Pablo Vera nando wrote: > Question... > Assume there is a timer on the form > and the following 3-line code fragment is running > (which is NOT inside the timer sub) > > ... > Timer1.Enabled = True > WHILE Timer1.Enabled = True 'wait here until timer completes > WEND > ... > > Public Sub Timer1_Timer > > Timer1.Enable = False > > End Sub > > > The purpose is to wait a prescribed amount of time, which the > timer is used for, at which time the timer is disabled and > the program continues. > > Question: Why does the timer event not actually fire?? > -Fernando > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free runtime info, > new features, or free trial, at: http://www.businessobjects.com/devxi/728 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > From nando_f at ...951... Wed Apr 20 06:37:49 2005 From: nando_f at ...951... (nando) Date: Wed, 20 Apr 2005 00:37:49 -0400 Subject: [Gambas-user] Empty While loop question In-Reply-To: <4265D742.7070700@...729...> References: <20050420031719.M64834@...951...> <4265D742.7070700@...729...> Message-ID: <20050420042145.M53279@...951...> Thank you. VB has the same problem. If I need to do pure processing of data for a extended period of time, then while the code is running, the timer would never fire. Question. Since this is the case, would the timer actually fire the timer event after an extended period of processing data if the WAIT command happened much later in time after the actual delay of the timer was expired? ... Timer1.Delay = 1000 Timer1.Enable = True WHILE processing_data=TRUE WEND ... PUBLIC Sub Timer1_Timer() TextBox1.Text = Current_time 'update time in a textbox END ...The time will never update and processing cannot be as fast as possible I think it would be nice if the timer fired after the delay regardless of what other code is doing. Sincerely, -Fernando ---------- Original Message ----------- From: Pablo Vera To: gambas-user at lists.sourceforge.net Sent: Tue, 19 Apr 2005 23:14:58 -0500 Subject: Re: [Gambas-user] Empty While loop question > The problem is that the WHILE-WEND loop runs continously and doesn't > allow the event to fire. > > You need something like this: > > WHILE Timer1.Enabled = True 'wait here until timer completes > WAIT 0.1 'allow events to fire > WEND > > But if you need to wait a specified amount of time, simply use the > WAIT command like this: > > WAIT n > > where n is the amount of time in seconds that the program should wait. > > Saludos, > Pablo Vera > > nando wrote: > > Question... > > Assume there is a timer on the form > > and the following 3-line code fragment is running > > (which is NOT inside the timer sub) > > > > ... > > Timer1.Enabled = True > > WHILE Timer1.Enabled = True 'wait here until timer completes > > WEND > > ... > > > > Public Sub Timer1_Timer > > > > Timer1.Enable = False > > > > End Sub > > > > > > The purpose is to wait a prescribed amount of time, which the > > timer is used for, at which time the timer is disabled and > > the program continues. > > > > Question: Why does the timer event not actually fire?? > > -Fernando > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: New Crystal Reports XI. > > Version 11 adds new functionality designed to reduce time involved in > > creating, integrating, and deploying reporting solutions. Free runtime info, > > new features, or free trial, at: http://www.businessobjects.com/devxi/728 > > _______________________________________________ > > 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: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free > runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From joe1962 at ...626... Wed Apr 20 03:51:09 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 20 Apr 2005 01:51:09 +0000 Subject: [Gambas-user] Empty While loop question In-Reply-To: <20050420042145.M53279@...951...> References: <20050420031719.M64834@...951...> <4265D742.7070700@...729...> <20050420042145.M53279@...951...> Message-ID: <200504200151.09488.joe1962@...626...> On Wednesday, 20 de April de 2005 04:37 am, nando wrote: > Thank you. > > VB has the same problem. > If I need to do pure processing of data for a extended period of time, > then while the code is running, the timer would never fire. > Hi: In VB, you needed to execute a DoEvents() every x number of loops to allow other processing to proceed. I haven't yet researched how to do this in Gambas, since I've not used a timer so far (didn't know yet that it was necessary, either). Joe1962 From eilert-sprachen at ...221... Wed Apr 20 08:30:41 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 20 Apr 2005 08:30:41 +0200 Subject: [Gambas-user] Three questions about handling In-Reply-To: <200504191108.46867.gambas@...1...> References: <425F693C.6040100@...221...> <200504191108.46867.gambas@...1...> Message-ID: <4265F711.6000805@...221...> Bonjour Benoit, > HPanel automatically arrange its children horizontally. > VPanel '''''''''''''''''''''''''''''''''' vertically. > HBox arrange them from left to right, and then from top to bottom. > VBox arrange them from top to bottom, and then from left to right. Alright, I'll experiment with them a bit to find out what they can actually do here. > > Another way of automatically arranging controls is using the 'Arrange' > property of the Panel and Form controls. Oh, didn't notice that Forms have an Arrange property. > > Moreover, each control has a 'Expand' property that tells it to fill its > parent control in the direction of its arrangement. Ok, that might be what I'm looking for. A long time ago I saw that in Qt you can insert kinda rubber bands to force the elements in the form to follow the form's changing sizes. But I think this isn't implemented in Gambas, is it? > > >>In the extended collection there are sliders, but you cannot drag them >>to whatever position but they "jump" really to fixed positions. Can I >>change that somehow? > > > What are you talking about ? :-) That was a bit unclear... I meant HSplit and VSplit. They do not follow the mouse pixel by pixel but jump to their position after you dragged them over a certain distance. What I wanted to know is whether it is possible to influence the width of the jumps or just reducing it to 1 pixel so it follows the mouse fluently. Best regards, Rolf From gambas at ...1... Wed Apr 20 10:45:40 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 20 Apr 2005 10:45:40 +0200 Subject: [Gambas-user] Three questions about handling In-Reply-To: <4265F711.6000805@...221...> References: <425F693C.6040100@...221...> <200504191108.46867.gambas@...1...> <4265F711.6000805@...221...> Message-ID: <200504201045.40972.gambas@...1...> On Wednesday 20 April 2005 08:30, Eilert wrote: > Bonjour Benoit, > > > HPanel automatically arrange its children horizontally. > > VPanel '''''''''''''''''''''''''''''''''' vertically. > > HBox arrange them from left to right, and then from top to bottom. > > VBox arrange them from top to bottom, and then from left to right. > > Alright, I'll experiment with them a bit to find out what they can > actually do here. > > > Another way of automatically arranging controls is using the 'Arrange' > > property of the Panel and Form controls. > > Oh, didn't notice that Forms have an Arrange property. > > > Moreover, each control has a 'Expand' property that tells it to fill its > > parent control in the direction of its arrangement. > > Ok, that might be what I'm looking for. A long time ago I saw that in Qt > you can insert kinda rubber bands to force the elements in the form to > follow the form's changing sizes. But I think this isn't implemented in > Gambas, is it? > > >>In the extended collection there are sliders, but you cannot drag them > >>to whatever position but they "jump" really to fixed positions. Can I > >>change that somehow? > > > > What are you talking about ? > > > :-) That was a bit unclear... > > I meant HSplit and VSplit. They do not follow the mouse pixel by pixel > but jump to their position after you dragged them over a certain > distance. What I wanted to know is whether it is possible to influence > the width of the jumps or just reducing it to 1 pixel so it follows the > mouse fluently. > This behaviour is a QT stuff. It depends on the controls inside the splitters. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Apr 20 10:47:26 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 20 Apr 2005 10:47:26 +0200 Subject: [Gambas-user] gambas 1.0.5 In-Reply-To: <200504192222.31658.rolf.frogs@...221...> References: <200504191410.25389.gambas@...1...> <200504192222.31658.rolf.frogs@...221...> Message-ID: <200504201047.26148.gambas@...1...> On Tuesday 19 April 2005 22:22, Rolf Schmidt wrote: > Hello Benoit, > > > I have just uploaded the final release of gambas 1.0.5. > > I would like to tell you my favorit whish for now - perhaps for the next > (minor) release > > As wrote you in a previous mail, I'm working on a more complex database > system (using Postgresql). The querys sometimes uses sum() or max() or > avg() selects, which could not be handled with normal select functions, so > I use EXEC(). Now I would ask you if it is possible to pass the error > messages generated by postgresql directly into a message window. Until now > most time I get something like "error... unknown UTF8 char...) even if just > a comma is missing or (my current problem) if a conflict with a constrait > occurse. > > Once again thank you for your work > > Rolf Error.Text gives you the error emited by the postgresql client library. I think the library uses System.Charset, so you must convert it to Desktop.Charset with Conv$() before using it in a message box. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Apr 20 10:49:22 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 20 Apr 2005 10:49:22 +0200 Subject: [Gambas-user] IDE - Deleting a class also delete's the form. In-Reply-To: <20050420014546.M81835@...951...> References: <20050420014546.M81835@...951...> Message-ID: <200504201049.22243.gambas@...1...> On Wednesday 20 April 2005 03:51, nando wrote: > Silly me, > I wanted to keep the form but revert to a existing same-named class. > It seemed that deleting the current one from the project was > necessary to allow adding a class of the same name from a different folder. > When I went to delete the class, the form was also deleted. > Shocked I was. > I believe this extra feature is not a desirable thing. > Deleting the class ought to just delete the class. > Deleting the form ought to just delete the form. > The form can't exist without the class, and the class can't exist without the form. So they must disappear simultaneously. To do what you want, you can use Copy & Paste in the editor... Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Apr 20 10:52:52 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 20 Apr 2005 10:52:52 +0200 Subject: [Gambas-user] Empty While loop question In-Reply-To: <200504200151.09488.joe1962@...626...> References: <20050420031719.M64834@...951...> <20050420042145.M53279@...951...> <200504200151.09488.joe1962@...626...> Message-ID: <200504201052.52967.gambas@...1...> On Wednesday 20 April 2005 03:51, Jose J. Rodriguez wrote: > On Wednesday, 20 de April de 2005 04:37 am, nando wrote: > > Thank you. > > > > VB has the same problem. > > If I need to do pure processing of data for a extended period of time, > > then while the code is running, the timer would never fire. > > Hi: > > In VB, you needed to execute a DoEvents() every x number of loops to allow > other processing to proceed. I haven't yet researched how to do this in > Gambas, since I've not used a timer so far (didn't know yet that it was > necessary, either). > > Joe1962 > > Differences from VB: 'WAIT' does not process mouse and keyboard events! This way, you can get timer events and refresh the GUI without getting input from users. 'WAIT x' waits for x seconds (can be a floating point number), AND process mouse or keyboard events So, for old VB users, DoEvents() <=> WAIT 0.01 (or any very small value). But you should better use WAIT alone. Regards, -- Benoit Minisini mailto:gambas at ...1... From rolf.frogs at ...221... Wed Apr 20 11:35:46 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Wed, 20 Apr 2005 11:35:46 +0200 Subject: [Gambas-user] gambas 1.0.5 In-Reply-To: <200504201047.26148.gambas@...1...> References: <200504191410.25389.gambas@...1...> <200504192222.31658.rolf.frogs@...221...> <200504201047.26148.gambas@...1...> Message-ID: <200504201135.50065.rolf.frogs@...221...> Hi Benoit > > As wrote you in a previous mail, I'm working on a more complex database > > system (using Postgresql). The querys sometimes uses sum() or max() or > > avg() selects, which could not be handled with normal select functions, > > so I use EXEC(). Now I would ask you if it is possible to pass the error > > messages generated by postgresql directly into a message window. Until > > now most time I get something like "error... unknown UTF8 char...) even > > if just a comma is missing or (my current problem) if a conflict with a > > constrait occurse. > > Error.Text gives you the error emited by the postgresql client library. I > think the library uses System.Charset, so you must convert it to > Desktop.Charset with Conv$() before using it in a message box. I didn't do any error handling by myself (until now) - I will doit soon. Especially when I test the SQL-statements until they are free of errors I thought I don't need an error handler. So the message boxes arraise should come from the interpreter. Many thanks Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From joe1962 at ...626... Wed Apr 20 15:04:05 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Wed, 20 Apr 2005 13:04:05 +0000 Subject: [Gambas-user] Empty While loop question In-Reply-To: <200504201052.52967.gambas@...1...> References: <20050420031719.M64834@...951...> <200504200151.09488.joe1962@...626...> <200504201052.52967.gambas@...1...> Message-ID: <200504201304.06040.joe1962@...626...> On Wednesday, 20 de April de 2005 08:52 am, Benoit Minisini wrote: > On Wednesday 20 April 2005 03:51, Jose J. Rodriguez wrote: > > On Wednesday, 20 de April de 2005 04:37 am, nando wrote: > > > Thank you. > > > > > > VB has the same problem. > > > If I need to do pure processing of data for a extended period of time, > > > then while the code is running, the timer would never fire. > > > > Hi: > > > > In VB, you needed to execute a DoEvents() every x number of loops to > > allow other processing to proceed. I haven't yet researched how to do > > this in Gambas, since I've not used a timer so far (didn't know yet that > > it was necessary, either). > > > > Joe1962 > > Differences from VB: > > 'WAIT' does not process mouse and keyboard events! This way, you can get > timer events and refresh the GUI without getting input from users. > > 'WAIT x' waits for x seconds (can be a floating point number), AND process > mouse or keyboard events > > So, for old VB users, DoEvents() <=> WAIT 0.01 (or any very small value). > But you should better use WAIT alone. > > Regards, Thanks, Benoit. Joe1962 From bwells at ...475... Wed Apr 20 21:12:42 2005 From: bwells at ...475... (Brant Wells) Date: Wed, 20 Apr 2005 15:12:42 -0400 Subject: [Gambas-user] gb.eval problems in 1.9.5 Message-ID: <200504201512.42824.bwells@...475...> Hi All: I am running Gambas2 (1.9.5) and have it configured as: ./configure --disable-bzlib2 --disable-mysql --disable-odbc --disable-postgresql --disable-sqlite --disable-curl --disable-sdl When I do a make && make install everything installs just fine... But when I go to run gambas2... I get: Cannot find interface of library 'gb.eval' Any ideas? Thanks! ~Brant From bwells at ...475... Wed Apr 20 21:50:45 2005 From: bwells at ...475... (Brant Wells) Date: Wed, 20 Apr 2005 15:50:45 -0400 Subject: [Gambas-user] gb.eval problems in 1.9.5 In-Reply-To: <200504201512.42824.bwells@...475...> References: <200504201512.42824.bwells@...475...> Message-ID: <200504201550.45578.bwells@...475...> Nevermind... I forgot that the gambas2 executable had been renamed to gambas2.gambas... Benoit: Is there any particular reason you did that?? See Y'all. ~Brant On Wednesday 20 April 2005 03:12 pm, Brant Wells wrote: > Hi All: > > I am running Gambas2 (1.9.5) and have it configured as: > > ./configure --disable-bzlib2 --disable-mysql --disable-odbc > --disable-postgresql --disable-sqlite --disable-curl --disable-sdl > > When I do a make && make install everything installs just fine... > > But when I go to run gambas2... I get: > > Cannot find interface of library 'gb.eval' > > Any ideas? > > Thanks! > ~Brant > > > ------------------------------------------------------- > This SF.Net email is sponsored by: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free runtime > info, new features, or free trial, at: > http://www.businessobjects.com/devxi/728 > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ~Brant Wells, Network Administrator Toccoa Falls College Toccoa Falls, GA 30598 706-886-7299 x 5413 From sourceforge-raindog2 at ...94... Wed Apr 20 21:58:16 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 20 Apr 2005 15:58:16 -0400 Subject: [Gambas-user] gb.eval problems in 1.9.5 In-Reply-To: <200504201550.45578.bwells@...475...> References: <200504201512.42824.bwells@...475...> <200504201550.45578.bwells@...475...> Message-ID: <200504201558.17146.sourceforge-raindog2@...94...> On Wednesday 20 April 2005 15:50, Brant Wells wrote: > Nevermind... I forgot that the gambas2 executable had been renamed > to gambas2.gambas... I corrected that in my Mandrake packages. I notice that Gambas components written in Gambas have extensions of .gambas rather than .so, and I assume that gambas2 and gambas2-database-manager got renamed accidentally as part of that change. They run fine when renamed to gambas2 and gambas2-database-manager, so I'll continue to rename them in the packages with successive versions. If there's a real problem I'll add symbolic links of gambas2 -> gambas2.gambas, etc. Rob From sourceforge-raindog2 at ...94... Wed Apr 20 23:32:55 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 20 Apr 2005 17:32:55 -0400 Subject: [Gambas-user] mandrake packages of 1.0.5 Message-ID: <200504201726.15726.sourceforge-raindog2@...94...> I made them i586 this time.... http://www.kudla.org/index.php?wl_mode=more&wl_eid=76 1.0.5 has also been added to cooker contrib, but it is not my package and I don't know who made it. Fans of Fakebas who would like to see the GIMP get a similar treatment should also try the program I just found and packaged, called "regimp3". It's more of a hack than fakebas is to gambas, but it is pretty helpful. The article is the first one on my site right now. Rob From nando_f at ...951... Thu Apr 21 02:02:37 2005 From: nando_f at ...951... (nando) Date: Wed, 20 Apr 2005 20:02:37 -0400 Subject: [Gambas-user] Questions about SELECT statement In-Reply-To: <200504201052.52967.gambas@...1...> References: <20050420031719.M64834@...951...> <20050420042145.M53279@...951...> <200504200151.09488.joe1962@...626...> <200504201052.52967.gambas@...1...> Message-ID: <20050420235000.M48593@...951...> Does the SELECT test the value only once at the beginning? a="" SELECT x CASE 1 a = a & "HELLO 1" CASE 2 a = a & "HELLO 2" CASE 3 a = a & "HELLO 3" INC x CASE 2,4 a = a & "HELLO 4" END SELECT Questions: (1) if x was 3 then the CASE 3 will execute but x will INC so then will it go into CASE 2,4 ? (2) if x was 2 will both cases for 2 be executed? (3) if BREAK used to exit the SELECT statement? Thanks -Fernando From steff.eddy at ...330... Thu Apr 21 03:50:27 2005 From: steff.eddy at ...330... (stefanus) Date: Thu, 21 Apr 2005 08:50:27 +0700 Subject: [Gambas-user] messages to benoit Message-ID: <20050421015027.17284.qmail@...387...> dear Mr. Benoit, i only ask, can you make gambas support DBF???. i know Mysql,postgress and SQlite is more powerfull.cause VB still support DBF (dBase III,clipper and foxpro). best regards, eddy From gambas at ...1... Thu Apr 21 10:48:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Apr 2005 10:48:27 +0200 Subject: [Gambas-user] Questions about SELECT statement In-Reply-To: <20050420235000.M48593@...951...> References: <20050420031719.M64834@...951...> <200504201052.52967.gambas@...1...> <20050420235000.M48593@...951...> Message-ID: <200504211048.27791.gambas@...1...> On Thursday 21 April 2005 02:02, nando wrote: > Does the SELECT test the value only once at the beginning? > > a="" > SELECT x > > CASE 1 > a = a & "HELLO 1" > > CASE 2 > a = a & "HELLO 2" > > CASE 3 > a = a & "HELLO 3" > INC x > > CASE 2,4 > a = a & "HELLO 4" > > END SELECT > > Questions: > (1) if x was 3 then the CASE 3 will execute but x will INC > so then will it go into CASE 2,4 ? > > (2) if x was 2 will both cases for 2 be executed? > > (3) if BREAK used to exit the SELECT statement? > > Thanks > -Fernando > > Only one case statement is executed, the first that is true. -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Apr 21 10:50:01 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Apr 2005 10:50:01 +0200 Subject: [Gambas-user] gb.eval problems in 1.9.5 In-Reply-To: <200504201558.17146.sourceforge-raindog2@...94...> References: <200504201512.42824.bwells@...475...> <200504201550.45578.bwells@...475...> <200504201558.17146.sourceforge-raindog2@...94...> Message-ID: <200504211050.01355.gambas@...1...> On Wednesday 20 April 2005 21:58, Rob wrote: > On Wednesday 20 April 2005 15:50, Brant Wells wrote: > > Nevermind... I forgot that the gambas2 executable had been renamed > > to gambas2.gambas... > > I corrected that in my Mandrake packages. I notice that Gambas > components written in Gambas have extensions of .gambas rather than > .so, and I assume that gambas2 and gambas2-database-manager got > renamed accidentally as part of that change. > > They run fine when renamed to gambas2 and gambas2-database-manager, so > I'll continue to rename them in the packages with successive > versions. If there's a real problem I'll add symbolic links of > gambas2 -> gambas2.gambas, etc. > > Rob > > All these problems are bugs that should be fixed in the next version. All gambas executables will have now the '.gambas' extension. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Apr 21 10:51:17 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Apr 2005 10:51:17 +0200 Subject: [Gambas-user] messages to benoit In-Reply-To: <20050421015027.17284.qmail@...387...> References: <20050421015027.17284.qmail@...387...> Message-ID: <200504211051.17807.gambas@...1...> On Thursday 21 April 2005 03:50, stefanus wrote: > dear Mr. Benoit, > > i only ask, can you make gambas support DBF???. i know Mysql,postgress and > SQlite is more powerfull.cause VB still support DBF (dBase III,clipper and > foxpro). > > > best regards, > > > eddy > Any volunteer to make a DBF driver? I don't know if it possible, as I don't know if DBF support SQL... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Apr 21 10:59:10 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Apr 2005 10:59:10 +0200 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200504191954.08142.joe1962@...626...> References: <200504191954.08142.joe1962@...626...> Message-ID: <200504211059.10710.gambas@...1...> On Tuesday 19 April 2005 21:54, Jose J. Rodriguez wrote: > Hi: > > I'm trying to create a package for Vector Linux 5.0 SOHO, using > checkinstall and it gives the following error at the end: > > /opt/gambas/lib/gambas/lib.gb.so: not found > make[2]: *** [install-exec-local] Error 1 > make[2]: Leaving directory `/home/joe1962/Desktop/gambas-1.0.5' > make[1]: *** [install-am] Error 2 > make[1]: Leaving directory `/home/joe1962/Desktop/gambas-1.0.5' > make: *** [install-recursive] Error 1 > > **** Installation failed. Aborting package creation. > > > I checked and there is no lib.gb.so anywhere. Installing by make install > works. Any ideas? > > Joe1962 > Please send the complete output of the configure/compilation process! Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Thu Apr 21 13:50:27 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Apr 2005 13:50:27 +0200 Subject: [Gambas-user] gambas 1.9.6 Message-ID: <200504211350.28006.gambas@...1...> Hi, Gambas 1.9.6 is out! Here is the ChangeLog of this new development version: --8<----------------------------------------------------------------------- * WARNING! The bytecode has changed. You must entirely recompile your projects. * Now components disabled by libraries and includes detection are not compiled anymore. * A new configure flag, '--disable-qt-translation', prevents the qt component for using qt translation files, in the hope of helping to solve the 'freeze' problem with distributions like SuSE. COMPILER * Support for Long and Single datatypes. * The syntax of EXEC, SHELL and RAISE has changed. They do not use the AS keyword anymore, but the assignment syntax: hProcess = EXEC ... hProcess = SHELL ... bCancel = RAISE ... The OPEN instruction may follow the same way in the future. INTERPRETER * Two new datatypes: Long, a 64 bits integer, and Single, a 4 bytes floating point number. * Two new array classes: Long[] and Single[]. * Support for files larger than 2 GB. Now Lof() and Seek() return a 64-bits Long value. * Two new keywords, LOCK and UNLOCK, to lock and unlock opened files. Just type LOCK #hFile or UNLOCK #hFile. * The Stat() function now returns an object of the class 'Stat', not 'File' anymore. * BUG: Fixed a possible crash when freeing classes at program end. * BUG: Some fixes in the management of components written in Gambas. * BUG: The Seek() function should work now. * BUG: A file descriptor leak was fixed in an internal function used by the Settings class. DEVELOPMENT ENVIRONMENT * Support for Long and Single datatypes. * BUG: Menu editor works again. DATABASE MANAGER * The ODBC driver is supported. DATABASE COMPONENT * The ODBC driver was updated. NETWORK COMPONENT * BUG: The DTR and RTS properties of the SerialPort class were fixed. * The CURL component was updated. EVALUATOR COMPONENT * BUG: Fixed a possible crash when analyzing lines with syntax errors. --8<----------------------------------------------------------------------- I repeat, but YOU MUST RECOMPILE ALL YOUR PROJECTS, as the bytecode has changed, because of the new datatypes. Enjoy it! -- Benoit Minisini mailto:gambas at ...1... From bwells at ...475... Thu Apr 21 14:45:06 2005 From: bwells at ...475... (Brant Wells) Date: Thu, 21 Apr 2005 08:45:06 -0400 Subject: [Gambas-user] gb.eval problems in 1.9.5 In-Reply-To: <200504211050.01355.gambas@...1...> References: <200504201512.42824.bwells@...475...> <200504201558.17146.sourceforge-raindog2@...94...> <200504211050.01355.gambas@...1...> Message-ID: <200504210845.06596.bwells@...475...> Hey Benoit: Is there any particular reason you did that??? Thanks! ~Brant On Thursday 21 April 2005 04:50 am, Benoit Minisini wrote: > On Wednesday 20 April 2005 21:58, Rob wrote: > > On Wednesday 20 April 2005 15:50, Brant Wells wrote: > > > Nevermind... I forgot that the gambas2 executable had been renamed > > > to gambas2.gambas... > > > > I corrected that in my Mandrake packages. I notice that Gambas > > components written in Gambas have extensions of .gambas rather than > > .so, and I assume that gambas2 and gambas2-database-manager got > > renamed accidentally as part of that change. > > > > They run fine when renamed to gambas2 and gambas2-database-manager, so > > I'll continue to rename them in the packages with successive > > versions. If there's a real problem I'll add symbolic links of > > gambas2 -> gambas2.gambas, etc. > > > > Rob > > All these problems are bugs that should be fixed in the next version. > > All gambas executables will have now the '.gambas' extension. > > Regards, -- ~Brant Wells, Network Administrator Toccoa Falls College Toccoa Falls, GA 30598 706-886-7299 x 5413 From gambas at ...954... Fri Apr 22 00:45:05 2005 From: gambas at ...954... (Luke) Date: Thu, 21 Apr 2005 22:45:05 +0000 Subject: [Gambas-user] Use of Translations Message-ID: <42682CF1.101@...954...> Hi, I'm developing a project with Gambas which I'm generating translations for (ie: using the Translate option). However one thing I would like to know is how does a user actually use these translations? Does it automatically switch if the system language/KDE language is set to that language? Or is it based on something else? Thanks, Luke From daniel.campos at ...338... Thu Apr 21 14:54:30 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Thu, 21 Apr 2005 14:54:30 +0200 Subject: [Gambas-user] gambas 1.9.6 In-Reply-To: <200504211350.28006.gambas@...1...> References: <200504211350.28006.gambas@...1...> Message-ID: <4267A286.30005@...338...> Benoit Minisini escribi?: >Hi, > >Gambas 1.9.6 is out! > > > > Problems to ./configure: The gb.xml "configure" file placed at {src}/gb.xml, still tries to work with the "rpc" subfolder, but it exists no more, as now it is implemented in Gambas. Regards, D. Campos From gambas at ...1... Thu Apr 21 15:23:23 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Apr 2005 15:23:23 +0200 Subject: [Gambas-user] gambas 1.9.6 In-Reply-To: <4267A286.30005@...338...> References: <200504211350.28006.gambas@...1...> <4267A286.30005@...338...> Message-ID: <200504211523.23710.gambas@...1...> On Thursday 21 April 2005 14:54, Daniel Campos wrote: > Benoit Minisini escribi?: > >Hi, > > > >Gambas 1.9.6 is out! > > Problems to ./configure: > > The gb.xml "configure" file placed at {src}/gb.xml, still tries to work > with the "rpc" subfolder, but it exists no more, as now it is implemented > in Gambas. > > Regards, > > D. Campos > Oops! I fixed it and uploaded again the package. Should work now... -- Benoit Minisini mailto:gambas at ...1... From rolf.frogs at ...221... Thu Apr 21 15:42:37 2005 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Thu, 21 Apr 2005 15:42:37 +0200 Subject: [Gambas-user] messages to benoit In-Reply-To: <200504211051.17807.gambas@...1...> References: <20050421015027.17284.qmail@...387...> <200504211051.17807.gambas@...1...> Message-ID: <200504211542.40405.rolf.frogs@...221...> Hi Benoit > > i only ask, can you make gambas support DBF???. i know Mysql,postgress > > and SQlite is more powerfull.cause VB still support DBF (dBase > > III,clipper and foxpro). > > > > Any volunteer to make a DBF driver? I don't know if it possible, as I don't > know if DBF support SQL... DBF doe's not support SQL by default, but there is a SQL-Interface in Perl available for DBF. Perhaps it helps. Fine regards Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Thu Apr 21 16:47:09 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 21 Apr 2005 10:47:09 -0400 Subject: [Gambas-user] messages to benoit In-Reply-To: <200504211051.17807.gambas@...1...> References: <20050421015027.17284.qmail@...387...> <200504211051.17807.gambas@...1...> Message-ID: <200504211047.09140.sourceforge-raindog2@...94...> On Thursday 21 April 2005 04:51, Benoit Minisini wrote: > Any volunteer to make a DBF driver? I don't know if it possible, as > I don't know if DBF support SQL... There have been xbase/dbf drivers in unixODBC... however, in their CVS archive http://cvs.sourceforge.net/viewcvs.py/unixodbc/unixODBC/ they show up as being in the "Attic". Some of the files have been updated in the last 6 months so I'm not sure what that means. If someone who's familiar with C and the DBF format wants to whip those into shape, lots of people (not just Gambas developers) will benefit.... and it should be way less work than implementing a sql parser from scratch. Rob From gambas at ...1... Thu Apr 21 17:00:51 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 21 Apr 2005 17:00:51 +0200 Subject: [Gambas-user] Use of Translations In-Reply-To: <42682CF1.101@...954...> References: <42682CF1.101@...954...> Message-ID: <200504211700.51540.gambas@...1...> On Friday 22 April 2005 00:45, Luke wrote: > Hi, > > I'm developing a project with Gambas which I'm generating translations > for (ie: using the Translate option). However one thing I would like to > know is how does a user actually use these translations? Does it > automatically switch if the system language/KDE language is set to that > language? Or is it based on something else? > > Thanks, > Luke > The interpreter chooses the translation by reading the contents of the LANG and LANGUAGE environment variables. For example, to get gambas in japanese, do: $ LANG=ja LANGUAGE=ja gambas Regards, -- Benoit Minisini mailto:gambas at ...1... From ulisse at ...933... Thu Apr 21 22:40:24 2005 From: ulisse at ...933... (ulisse) Date: Thu, 21 Apr 2005 22:40:24 +0200 Subject: [Gambas-user] Settings in Gambas 1.9.6 In-Reply-To: <42682CF1.101@...954...> References: <42682CF1.101@...954...> Message-ID: <200504212240.25685.ulisse@...933...> Is "settings" still there in Gambas 2 (1.9.6) ? It's not recognised from the new compiler (any different method?) From joe1962 at ...626... Thu Apr 21 20:36:26 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Thu, 21 Apr 2005 18:36:26 +0000 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200504211059.10710.gambas@...1...> References: <200504191954.08142.joe1962@...626...> <200504211059.10710.gambas@...1...> Message-ID: <200504211836.26477.joe1962@...626...> Sorry, forgot to compress the files before, the message was over 256KB and is being retained for moderation :). Here it is again: On Thursday, 21 de April de 2005 08:59 am, Benoit Minisini wrote: > > Please send the complete output of the configure/compilation process! > Attached 2 files with the complete outputs from ./configure and chekinstall. The output of make was too long for the console buffer and I don't know how to increase it at the moment, so I just redirected the output to a file. However, the error messages still go to the console, so I pasted those in a separate file, hope you don't need them in exact order :(. Thanks, Joe1962 -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas-1.0.5-messages.tar.bz2 Type: application/x-tbz Size: 19377 bytes Desc: not available URL: From jcostello at ...903... Fri Apr 22 03:55:31 2005 From: jcostello at ...903... (Juan Jose Costello Levien) Date: Thu, 21 Apr 2005 22:55:31 -0300 Subject: [Gambas-user] Developing MIDI app with Gambas Message-ID: <42685993.4040301@...903...> Hi, I want to receive MIDI signals on a MIDI port connected to a MIDI device, and process them as I need. Is there a way to do that? Something related to SDL? Thanks. Juan From sourceforge-raindog2 at ...94... Fri Apr 22 05:02:13 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Thu, 21 Apr 2005 23:02:13 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <42685993.4040301@...903...> References: <42685993.4040301@...903...> Message-ID: <200504212302.13555.sourceforge-raindog2@...94...> On Thursday 21 April 2005 21:55, Juan Jose Costello Levien wrote: > I want to receive MIDI signals on a MIDI port connected to a MIDI > device, and process them as I need. Is there a way to do that? > Something related to SDL? As far as I know, SDL doesn't actually support MIDI input... for that you'd need an interface to ALSA or something like that. There are probably command line programs or a /dev interface to the raw sequencer data, but I dunno if Gambas is fast enough to process out all the MIDI events in realtime. If someone were looking for a component project to undertake, that might be a nice one. Rob From cmcpero at ...142... Fri Apr 22 07:37:09 2005 From: cmcpero at ...142... (Jean-Francois Perreault) Date: Fri, 22 Apr 2005 01:37:09 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <42685993.4040301@...903...> References: <42685993.4040301@...903...> Message-ID: <42688D85.7030101@...142...> Juan Jose Costello Levien wrote: > Hi, > > I want to receive MIDI signals on a MIDI port connected to a MIDI > device, and process them as I need. Is there a way to do that? > Something related to SDL? Hi, well you could use one of the many midi processing libs http://libtimidity.sourceforge.net/ of http://jmusic.ci.qut.edu.au/ the http://www.hypercore.co.jp/opensource/libmidixx/ many http://perso.wanadoo.es/antlarr/libkmid.html midi http://jedi.ks.uiuc.edu/~johns/projects/midid/ processing http://www.jdkoftinoff.com/main/Free_Projects/C++_MIDI_Library/ libs , that are available out there but unfortunately you can't do direct call to external libs' functions with gambas (for now anyway) you can wait for someone to make an interpreter-to-lib interface component (that probably won't give you access to everything the lib can do, and the interface will be completely different than the lib's API (of which only a subset of would be accessible to you anyway)) , but that's not happening anytime soon since gtk and sdl have much high priority than midi unfortunately you could use the alsa or oss character device and build something from scratch (it's probably not -that- hard to get at least some base functionallity), and gambas -is- fast enough for it if you are careful (that means use native variable types wherever speed counts and you're good, unfortunately since the class array types are resizable and work in most cases the native type never got a way to resize them (even destructively) so that could get in the way , but it's not fatal) , the real problem is that you don't have a ioctl function and that means you won't be playing midi anytime soon (you could just call ioctl in libc or whatever , but no external lib calls means you can't) so do what we do and use SHELL and just make a frontend to a couple C apps , but while your there , why not just SHELL EXEC one of the ready-made midi suites http://timidity.sourceforge.net/ of http://www.rosegardenmusic.com/ the http://anthem.sourceforge.net/ the http://muse-sequencer.org/ ready-made http://freshmeat.net/redir/cmt/40762/url_homepage/cmtman.ps midi http://www.filter24.org/seq24/ suites http://www.reduz.com.ar/cheesetronic/ that http://www.manyetas.com/creed/ probably http://nosuch.com/keykit/ already http://gmorgan.sourceforge.net/ do http://hometown.aol.com/knudsenmj/myhomepage/umuselx.htm everything http://www.tml.hut.fi/~tilmonen/mustajuuri/index.html you http://www.musickit.org/ need http://thinksynth.org/ anyway http://brahms.sourceforge.net/ this one looks good http://bloodshed.net/wired/ this one too http://www.hydrogen-music.org/ this one too http://www.arts-project.org/ looks like moog modular http://www.pawfal.org/Software/SSM/ who uses a postscript file as home page ! http://www-2.cs.cmu.edu/afs/cs.cmu.edu/project/music/web/cmt/cmtman.ps well , and that's about it -- Jean-Francois Perreault From jmfo1982 at ...626... Fri Apr 22 12:40:37 2005 From: jmfo1982 at ...626... (=?ISO-8859-1?Q?Jos=E9_Manuel_Ferrer?=) Date: Fri, 22 Apr 2005 12:40:37 +0200 Subject: [Gambas-user] gambas 1.0.5 In-Reply-To: <200504191410.25389.gambas@...1...> References: <200504191410.25389.gambas@...1...> Message-ID: <665a6edf050422034061a1890e@...627...> 2005/4/19, Benoit Minisini : > Hi guys, > > I have just uploaded the final release of gambas 1.0.5. > > Here are the changes: > > A new configure flag, '--disable-qt-translation', prevents the qt component > for using qt translation files, in the hope of helping to solve the 'freeze' > problem with distributions like SuSE. Hi, I've compiled this version without that flag, and it has worked without freezes at startup :) That never happened with 1.0.4. Good job. Regards, Jos? Manuel From gambas at ...954... Sat Apr 23 02:00:53 2005 From: gambas at ...954... (Luke) Date: Sat, 23 Apr 2005 00:00:53 +0000 Subject: [Gambas-user] Use of Translations In-Reply-To: <200504211700.51540.gambas@...1...> References: <42682CF1.101@...954...> <200504211700.51540.gambas@...1...> Message-ID: <42699035.3000608@...954...> Benoit Minisini wrote: >The interpreter chooses the translation by reading the contents of the LANG >and LANGUAGE environment variables. > >For example, to get gambas in japanese, do: > >$ LANG=ja LANGUAGE=ja gambas > >Regards, > > > Thanks for clearing that up. Regards, Luke From gambas at ...954... Sat Apr 23 02:01:35 2005 From: gambas at ...954... (Luke) Date: Sat, 23 Apr 2005 00:01:35 +0000 Subject: [Gambas-user] Reading characters one at a time from standard output Message-ID: <4269905F.7060905@...954...> Is it possible to read characters one at a time from standard output as they are generated? Regards, Luke From sourceforge-raindog2 at ...94... Fri Apr 22 16:04:55 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 22 Apr 2005 10:04:55 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <42688D85.7030101@...142...> References: <42685993.4040301@...903...> <42688D85.7030101@...142...> Message-ID: <200504220959.13784.sourceforge-raindog2@...94...> On Friday 22 April 2005 01:37, Jean-Francois Perreault wrote: > so do what we do and use SHELL and just make a frontend to a couple > C apps , but while your there , why not just SHELL EXEC one of the > ready-made midi suites I assume that Juan is looking for a way to capture MIDI data and use it as input for his program, not merely play or compose songs. Sometimes programs that accept MIDI input have nothing to do with music.... have a look at the GIMP, for example. http://www.gimp.org/unix/howtos/gimp-midi.html But, until such time as someone writes a gb.midi component, I agree with the strategy of writing a C or perl helper app that grabs the raw MIDI data and transforms it into some format that's easily parsed by Gambas (e.g. "$timestamp/$controller/$value\n", if you were writing it in perl.) That was how I played sounds via SDL before the gb.sdl component existed.... opened a perl program on a pipe and sent it pathnames of wav files and trigger commands to sound them. I've been working on a POSIX component off and on.... maybe I need to make a "Linux" component to wrap things like ioctl as well, though I don't think it needs to be part of the Gambas base package. Despite the arguments in favor of direct arbitrary API access, I think that the facts that VB programmers use ActiveX controls vastly more than direct API calls, and that the most common interpreted languages under Linux (perl, python and php) are so successful despite no direct API access, demonstrates that a consistent, non-C-like component interface is always preferable. Most of the API calls VB programmers do can be replaced with running a program over a pipe and receiving its data, since that option is not available to them under Windows (except, again, using API calls.) Nonetheless, I hope to see an eventual "direct API access" equivalent in Gambas, because I am lazy :) Rob From daniel.campos at ...338... Fri Apr 22 16:19:51 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Fri, 22 Apr 2005 16:19:51 +0200 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <200504220959.13784.sourceforge-raindog2@...94...> References: <42685993.4040301@...903...> <42688D85.7030101@...142...> <200504220959.13784.sourceforge-raindog2@...94...> Message-ID: <42690807.7090608@...338...> > >Nonetheless, I hope to see an eventual "direct API access" equivalent >in Gambas, because I am lazy :) > > Here: http://gambas.gnulinex.org/api Daniel >Rob > > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > From francesco.difusco at ...69... Fri Apr 22 16:50:31 2005 From: francesco.difusco at ...69... (francesco) Date: Fri, 22 Apr 2005 16:50:31 +0200 Subject: [Gambas-user] Unable to launch Gambas2 Message-ID: <200504221650.31439.francesco.difusco@...69...> When I type gambas2, I get this error Cannot load class "Project" bad format in extern section ?.?.0 Francesco -------------- next part -------------- A non-text attachment was scrubbed... Name: error.png Type: image/png Size: 10720 bytes Desc: not available URL: From frankberg at ...390... Fri Apr 22 18:02:17 2005 From: frankberg at ...390... (Frank Berg) Date: Fri, 22 Apr 2005 18:02:17 +0200 Subject: [Gambas-user] Unable to launch Gambas2 References: <200504221650.31439.francesco.difusco@...69...> Message-ID: <002401c54754$a88dafd0$0200a8c0@...602...> Hi, same effect in suse 9.2 and suse 9.3 since gambas2-1.9.6 gambas is started now with gambas2.gambas frank ----- Original Message ----- From: "francesco" To: "Gambas Gambas User List" Sent: Friday, April 22, 2005 4:50 PM Subject: [Gambas-user] Unable to launch Gambas2 > When I type gambas2, I get this error > > Cannot load class "Project" bad format in extern section ?.?.0 > > Francesco > From cmcpero at ...142... Fri Apr 22 18:02:19 2005 From: cmcpero at ...142... (Jean-Francois Perreault) Date: Fri, 22 Apr 2005 12:02:19 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <42690807.7090608@...338...> References: <42685993.4040301@...903...> <42688D85.7030101@...142...> <200504220959.13784.sourceforge-raindog2@...94...> <42690807.7090608@...338...> Message-ID: <4269200B.8030108@...142...> Daniel Campos wrote: > >> >> Nonetheless, I hope to see an eventual "direct API access" equivalent >> in Gambas, because I am lazy :) >> > Here: > > http://gambas.gnulinex.org/api > > Daniel I can't read a word of it , but I'm pretty sure I like it ;) From cmcpero at ...142... Fri Apr 22 18:15:14 2005 From: cmcpero at ...142... (Jean-Francois Perreault) Date: Fri, 22 Apr 2005 12:15:14 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <200504220959.13784.sourceforge-raindog2@...94...> References: <42685993.4040301@...903...> <42688D85.7030101@...142...> <200504220959.13784.sourceforge-raindog2@...94...> Message-ID: <42692312.2080800@...142...> Rob wrote: >I've been working on a POSIX component off and on.... maybe I need to >make a "Linux" component to wrap things like ioctl as well, though I >don't think it needs to be part of the Gambas base package. Despite >the arguments in favor of direct arbitrary API access, I think that >the facts that VB programmers use ActiveX controls vastly more than >direct API calls, and that the most common interpreted languages >under Linux (perl, python and php) are so successful despite no >direct API access, demonstrates that a consistent, non-C-like >component interface is always preferable. Most of the API calls VB >programmers do can be replaced with running a program over a pipe and >receiving its data, since that option is not available to them under >Windows (except, again, using API calls.) > >Nonetheless, I hope to see an eventual "direct API access" equivalent >in Gambas, because I am lazy :) > >Rob > > > I haven't really used activex controls outside of the one supplied with visual basic so I always found that limiting and the problem with the talk to another program through a pipe course is that the program has to exist , which it doesn't if you're not reinventing the wheel , so this means you need to know another programmation language -and- be good at it and at that point why are you using gambas ? just a frontend builder ? like glade ? , gambas is more than that just because most vb programmer are fine with the limited facilities of vb doesn't mean no one appreciated the way out API calls offered I mean if I had been making a midi app , by today I would have a working demo , but without api calls I'd be making a module or external program if you make a module then you have to make something other can use and is somewhat well designed or else it won't get distributed with gambas and you won't be able to distribute you application without getting your users to recompile gambas ! components are fine to extend the language and make a friendlier interface for beginners , they are not a replacement to full lib access and making an external program is well ... it's a hack , not a solution python, perl , php , tcl .. etc , they are fine with how they deal with this because they aren't as user-oriented as gambas (or something like that...) Jean-Francois Perreault From sourceforge-raindog2 at ...94... Fri Apr 22 19:46:21 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 22 Apr 2005 13:46:21 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <42692312.2080800@...142...> References: <42685993.4040301@...903...> <200504220959.13784.sourceforge-raindog2@...94...> <42692312.2080800@...142...> Message-ID: <200504221346.21762.sourceforge-raindog2@...94...> On Friday 22 April 2005 12:15, Jean-Francois Perreault wrote: > I haven't really used activex controls outside of the one supplied > with visual basic so I always found that limiting You are not most VB programmers (and neither am I.) > and the problem with the talk to another program through a pipe > course is that the program has to exist , which it > doesn't if you're not reinventing the wheel , so this means you > need to know another programmation language -and- > be good at it and at that point why are you using gambas ? just a > frontend builder ? like glade ? , gambas is more than that I think you have "form designer" and "front end builder" confused. It's easy to design a form in either glade or gambas, but only gambas lets you write the logic behind the form in a way that does not cause VB programmers' eyes to roll back in their heads. Also, many programs (like cdparanoia, or the sox utilities, etc.) have interfaces which are understandable to people who are used to command line tools but not GUI users (which is, at this point, 95% of the end users or more.) Building a front end to those tools is neither as easy as drawing a form nor a waste of time. All that aside, though, there are many instances where a Gambas application may need to access functionality not embodied in a Gambas component, but not merely be a front end program. For example, I wrote a removable media management system for a studio last year in Gambas. It had to keep track of changes in mysql, deal with network disks, removable hard disks, and CD's, and handle differences in filename conventions between MacOS 9, OSX, Windows and Linux. For the CD burning part, I used mkisofs and cdrecord over pipes. Does that make the entire management program a front end to cdrecord? Should I have not written it and made a few grand just because there was no direct API for writing CD's? On Windows I would have had to jump through a lot of hoops that don't exist on Linux, because Linux has many commands that are meant to be run over pipes just like that. > I mean if I had been making a midi app , by today I would have a > working demo , but without api calls I'd be making a module or > external program if you make a module then you have to make > something other can use and is somewhat well designed or else it > won't get distributed with gambas and you won't be able to > distribute you application without getting your users to recompile > gambas ! Not true; I have made packages of Gambas components (like my posix one) that can be distributed separately from gambas, and the package management systems in any reasonable Linux distribution will automatically pull in gambas when you install the component. Obviously, I've used the Gambas package manager to package Gambas projects as well, with the same result. Linux is not Windows, and rather than fighting that, Gambas programmers should embrace it. > components are fine to extend the language and make a friendlier > interface for beginners , they are not a replacement to full lib > access and making an > external program is well ... it's a hack , not a solution Accessing C API's from an interpreted, structless, pointerless language like BASIC.... that's a hack. Using programs over a pipe is "the Unix way". If someone wants functionality that doesn't exist in Gambas, he's free to write a component, write a helper application in another language if he's not up to C, or apparently now, use Daniel's new gb.api component. I just hope gb.api doesn't become a crutch for programmers to use instead of writing new well-designed components for Gambas. Rob From sourceforge-raindog2 at ...94... Fri Apr 22 19:47:46 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 22 Apr 2005 13:47:46 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <42690807.7090608@...338...> References: <42685993.4040301@...903...> <200504220959.13784.sourceforge-raindog2@...94...> <42690807.7090608@...338...> Message-ID: <200504221347.46193.sourceforge-raindog2@...94...> On Friday 22 April 2005 10:19, Daniel Campos wrote: > >Nonetheless, I hope to see an eventual "direct API access" > > equivalent in Gambas, because I am lazy :) > Here: > http://gambas.gnulinex.org/api Thanks, despite the current debate, that's a nice surprise :) Rob From gambasfr at ...11... Fri Apr 22 23:43:48 2005 From: gambasfr at ...11... (fabien) Date: Fri, 22 Apr 2005 23:43:48 +0200 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <200504212302.13555.sourceforge-raindog2@...94...> References: <42685993.4040301@...903...> <200504212302.13555.sourceforge-raindog2@...94...> Message-ID: <200504222343.48404.gambasfr@...11...> Le Vendredi 22 Avril 2005 05:02, Rob a ?crit?: > On Thursday 21 April 2005 21:55, Juan Jose Costello Levien wrote: > > I want to receive MIDI signals on a MIDI port connected to a MIDI > > device, and process them as I need. Is there a way to do that? > > Something related to SDL? yes you need to have timidity installed and sdl compiled with the timidity option It's not real midi but an emulator ... linux dosen't support hardware midi actually > > As far as I know, SDL doesn't actually support MIDI input... for that > you'd need an interface to ALSA or something like that. There are > probably command line programs or a /dev interface to the raw > sequencer data, but I dunno if Gambas is fast enough to process out > all the MIDI events in realtime. > > If someone were looking for a component project to undertake, that > might be a nice one. > > Rob > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Sat Apr 23 03:51:37 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 22 Apr 2005 21:51:37 -0400 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <200504222343.48404.gambasfr@...11...> References: <42685993.4040301@...903...> <200504212302.13555.sourceforge-raindog2@...94...> <200504222343.48404.gambasfr@...11...> Message-ID: <200504222151.37345.sourceforge-raindog2@...94...> On Friday 22 April 2005 17:43, fabien wrote: > Le Vendredi 22 Avril 2005 05:02, Rob a ?crit : > > On Thursday 21 April 2005 21:55, Juan Jose Costello Levien wrote: > > > I want to receive MIDI signals on a MIDI port connected to a > > > MIDI device, and process them as I need. Is there a way to do > > > that? Something related to SDL? > yes you need to have timidity installed and sdl compiled with the > timidity option > It's not real midi but an emulator ... linux dosen't support > hardware midi actually You're thinking of MIDI output. Juan was looking to handle MIDI input. Rob From mrzanderson at ...626... Sat Apr 23 22:53:42 2005 From: mrzanderson at ...626... (Thomas McGannon) Date: Sat, 23 Apr 2005 16:53:42 -0400 Subject: [Gambas-user] Using multiple lines AND Dialog class Message-ID: <200504231653.42547.mrzanderson@...626...> Hello, Im trying to set up a selectDirectory dialog, but I would like it to start at a specific place, currently it starts up pointing at where the executable is. Is there a way to change this? Also i kno that in visual basic you could put a _ at the end of the line and continue writing on the next line and it would accept it as the same line. Is there a similar way of doing this in gambas? Thanks, Thomas From gambasfr at ...11... Sat Apr 23 16:08:02 2005 From: gambasfr at ...11... (fabien) Date: Sat, 23 Apr 2005 16:08:02 +0200 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <200504222151.37345.sourceforge-raindog2@...94...> References: <42685993.4040301@...903...> <200504222343.48404.gambasfr@...11...> <200504222151.37345.sourceforge-raindog2@...94...> Message-ID: <200504231608.02359.gambasfr@...11...> Le Samedi 23 Avril 2005 03:51, Rob a ?crit?: > On Friday 22 April 2005 17:43, fabien wrote: > > Le Vendredi 22 Avril 2005 05:02, Rob a ?crit : > > > On Thursday 21 April 2005 21:55, Juan Jose Costello Levien wrote: > > > > I want to receive MIDI signals on a MIDI port connected to a > > > > MIDI device, and process them as I need. Is there a way to do > > > > that? Something related to SDL? > > > > yes you need to have timidity installed and sdl compiled with the > > timidity option > > It's not real midi but an emulator ... linux dosen't support > > hardware midi actually > > You're thinking of MIDI output. Juan was looking to handle MIDI > input. > > Rob Hem :( oups Sorry ... i was tired yesteday ( 15 hour of work). Mabe you can see with gstreamer or in project code like rosemerta Fabien > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=Click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From sourceforge-raindog2 at ...94... Sat Apr 23 19:41:23 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Sat, 23 Apr 2005 13:41:23 -0400 Subject: [Gambas-user] Using multiple lines AND Dialog class In-Reply-To: <200504231653.42547.mrzanderson@...626...> References: <200504231653.42547.mrzanderson@...626...> Message-ID: <200504231341.23762.sourceforge-raindog2@...94...> On Saturday 23 April 2005 16:53, Thomas McGannon wrote: > Also i kno that in visual basic you could put a _ at the end of the > line and continue writing on the next line and it would accept it > as the same line. Is there a similar way of doing this in gambas? If you're doing string concatenation, you don't even need an underscore, you can just leave a hanging "&" and continue with another string on the next line. Otherwise, as far as I know, you do have to put it all on one line. If you do split string expressions across lines that way, be warned that it will screw up the IDE's debugger, putting the cursor on the wrong line when you get an error. I keep meaning to fix this and submit a patch but it's pretty rare that I split strings like that. Rob From mrzanderson at ...626... Mon Apr 25 02:09:41 2005 From: mrzanderson at ...626... (Tom) Date: Sun, 24 Apr 2005 20:09:41 -0400 Subject: [Gambas-user] Using multiple lines AND Dialog class In-Reply-To: <200504231341.23762.sourceforge-raindog2@...94...> References: <200504231653.42547.mrzanderson@...626...> <200504231341.23762.sourceforge-raindog2@...94...> Message-ID: <200504242009.41968.mrzanderson@...626...> On Saturday 23 April 2005 01:41 pm, Rob wrote: > On Saturday 23 April 2005 16:53, Thomas McGannon wrote: > > Also i kno that in visual basic you could put a _ at the end of the > > line and continue writing on the next line and it would accept it > > as the same line. Is there a similar way of doing this in gambas? > > If you're doing string concatenation, you don't even need an > underscore, you can just leave a hanging "&" and continue with > another string on the next line. Otherwise, as far as I know, you do > have to put it all on one line. > The string concatenation could be helpful to know, but what i was trying to do was have the signiture of a class on multiple lines if they are long, or IF states which have a few statements... It would be good to have this feature as it keeps the code all nice and clean. Thanks anyway though! -Tom From francesco.difusco at ...69... Sun Apr 24 15:56:22 2005 From: francesco.difusco at ...69... (francesco) Date: Sun, 24 Apr 2005 15:56:22 +0200 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section Message-ID: <200504241556.23016.francesco.difusco@...69...> When I try to run Gambas 1.9.6, I get this error "ERROR: #2: Cannot load class 'Project': Bad format in extern section" FRANCESCO From frankberg at ...390... Sun Apr 24 20:49:24 2005 From: frankberg at ...390... (Frank Berg) Date: Sun, 24 Apr 2005 20:49:24 +0200 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section References: <200504241556.23016.francesco.difusco@...69...> Message-ID: <001601c548fe$55f74a50$0200a8c0@...602...> hi, please start gambas with gambas2.gambas frank ----- Original Message ----- From: "francesco" To: "Gambas Gambas User List" Sent: Sunday, April 24, 2005 3:56 PM Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section > When I try to run Gambas 1.9.6, I get this error > > "ERROR: #2: Cannot load class 'Project': Bad format in extern section" > > FRANCESCO > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Mon Apr 25 11:27:47 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 25 Apr 2005 11:27:47 +0200 Subject: [Gambas-user] TreeView expand/collapse Message-ID: <426CB813.5050809@...221...> Hi, Is it possible to expand an item in the TreeView by code? I've got two root entries there, and the first one is the one which is used most. So I'd like to open it by default when the program starts. There is no expand or collapse method as far as I could see, just an event. Someone here who can help me? Thanks! Rolf From mrzanderson at ...626... Tue Apr 26 01:42:11 2005 From: mrzanderson at ...626... (Tom) Date: Mon, 25 Apr 2005 19:42:11 -0400 Subject: [Gambas-user] Checking if a folder/file exists In-Reply-To: <426CB813.5050809@...221...> References: <426CB813.5050809@...221...> Message-ID: <200504251942.12052.mrzanderson@...626...> Hi, Just wondering if there is a function for checking if a file or folder exists? And also if it is possible to find out if the user has actual permssions to write within the folder. Reason for this is that I am developing a program which may require the user to create a new folder, and if the user types a folder path that doesnt exist then obviously I'll get problems. I am just using a String for the path of the folder not the File class. Can anyone give me any suggestions? Thanks! Tom From gambasfr at ...11... Mon Apr 25 14:56:01 2005 From: gambasfr at ...11... (fabien) Date: Mon, 25 Apr 2005 14:56:01 +0200 Subject: [Gambas-user] Checking if a folder/file exists In-Reply-To: <200504251942.12052.mrzanderson@...626...> References: <426CB813.5050809@...221...> <200504251942.12052.mrzanderson@...626...> Message-ID: <200504251456.01306.gambasfr@...11...> Le Mardi 26 Avril 2005 01:42, Tom a ?crit?: > Hi, > > Just wondering if there is a function for checking if a file or folder > exists? And also if it is possible to find out if the user has actual > permssions to write within the folder. > > Reason for this is that I am developing a program which may require the > user to create a new folder, and if the user types a folder path that > doesnt exist then obviously I'll get problems. > > I am just using a String for the path of the folder not the File class. > > Can anyone give me any suggestions? Thanks! > > Tom > > you can look at the ide code in the Fsupselector.class You have the if Exist(path as string) then and you can do a test like : Function TestAccess(sPath as string) as Boolean dim s as new String[] s = Dir(sPath) return true catch return false end Fabien From eilert-sprachen at ...221... Mon Apr 25 13:01:13 2005 From: eilert-sprachen at ...221... (Eilert) Date: Mon, 25 Apr 2005 13:01:13 +0200 Subject: [Gambas-user] Checking if a folder/file exists In-Reply-To: <200504251942.12052.mrzanderson@...626...> References: <426CB813.5050809@...221...> <200504251942.12052.mrzanderson@...626...> Message-ID: <426CCDF9.70106@...221...> Hi Tom, Tom schrieb: > Hi, > > Just wondering if there is a function for checking if a file or folder exists? Yes, there is "exist()", so just IF Exist("Your/Path") THEN > And also if it is possible to find out if the user has actual permssions to > write within the folder. Well, there is a "file" class which might help. Look it up in the help under "gb" and "File". The "stat()" thing might also help. > > Reason for this is that I am developing a program which may require the user > to create a new folder, and if the user types a folder path that doesnt exist > then obviously I'll get problems. Doesn't the ready-made dialog for folders care about that already? Hm, I just typed in "dialog" in the help and got two "dialog" entries. The second one might help you a bit. But there is also a "FileSizeProgram" in the list which may be of use for you. Rolf From francesco.difusco at ...69... Mon Apr 25 14:30:33 2005 From: francesco.difusco at ...69... (francesco) Date: Mon, 25 Apr 2005 14:30:33 +0200 Subject: [Gambas-user] ERROR: #2: Cannot load class 'Project': Bad format in extern section In-Reply-To: <001601c548fe$55f74a50$0200a8c0@...602...> References: <200504241556.23016.francesco.difusco@...69...> <001601c548fe$55f74a50$0200a8c0@...602...> Message-ID: <200504251430.33389.francesco.difusco@...69...> Alle 20:49, domenica 24 aprile 2005, Frank Berg ha scritto: > hi, > > please start gambas with gambas2.gambas Ok, it works fine, now. Thank you Francesco From gambas at ...1... Mon Apr 25 14:40:23 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Apr 2005 14:40:23 +0200 Subject: [Gambas-user] Settings in Gambas 1.9.6 In-Reply-To: <200504212240.25685.ulisse@...933...> References: <42682CF1.101@...954...> <200504212240.25685.ulisse@...933...> Message-ID: <200504251440.23804.gambas@...1...> On Thursday 21 April 2005 22:40, ulisse wrote: > Is "settings" still there in Gambas 2 (1.9.6) ? > > It's not recognised from the new compiler (any different method?) > Yes it is. Don't you see the component in the project properties dialog ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Apr 25 14:43:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Apr 2005 14:43:14 +0200 Subject: [Gambas-user] Unable to launch Gambas2 In-Reply-To: <002401c54754$a88dafd0$0200a8c0@...602...> References: <200504221650.31439.francesco.difusco@...69...> <002401c54754$a88dafd0$0200a8c0@...602...> Message-ID: <200504251443.14536.gambas@...1...> On Friday 22 April 2005 18:02, Frank Berg wrote: > Hi, > > same effect in suse 9.2 and suse 9.3 > since gambas2-1.9.6 gambas is started now with gambas2.gambas > > frank > This is a symlink bug in the installation process I will fix... -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Apr 25 14:42:37 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Apr 2005 14:42:37 +0200 Subject: [Gambas-user] Developing MIDI app with Gambas In-Reply-To: <42685993.4040301@...903...> References: <42685993.4040301@...903...> Message-ID: <200504251442.37458.gambas@...1...> On Friday 22 April 2005 03:55, Juan Jose Costello Levien wrote: > Hi, > > I want to receive MIDI signals on a MIDI port connected to a MIDI > device, and process them as I need. Is there a way to do that? Something > related to SDL? > > Thanks. > > Juan > Maybe watching the midi file descriptor works ? OPEN "/dev/midi" FOR READ WATCH AS #hMidi ... PUBLIC SUB File_Read() DIM sBuffer AS String READ #hMidi, sBuffer, -255 FOR iInd = 1 TO Len(sBuffer) PRINT Hex$(Asc(sBuffer, iInd), 2) NEXT END -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Apr 25 14:43:38 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Apr 2005 14:43:38 +0200 Subject: [Gambas-user] Reading characters one at a time from standard output In-Reply-To: <4269905F.7060905@...954...> References: <4269905F.7060905@...954...> Message-ID: <200504251443.38272.gambas@...1...> On Saturday 23 April 2005 02:01, Luke wrote: > Is it possible to read characters one at a time from standard output as > they are generated? > > Regards, > Luke > Not at the moment. Do you know how terminals work on Unix ? -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Apr 25 14:44:54 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Apr 2005 14:44:54 +0200 Subject: [Gambas-user] TreeView expand/collapse In-Reply-To: <426CB813.5050809@...221...> References: <426CB813.5050809@...221...> Message-ID: <200504251444.54402.gambas@...1...> On Monday 25 April 2005 11:27, Eilert wrote: > Hi, > > Is it possible to expand an item in the TreeView by code? > > I've got two root entries there, and the first one is the one which is > used most. So I'd like to open it by default when the program starts. > > There is no expand or collapse method as far as I could see, just an event. > > Someone here who can help me? Thanks! > > Rolf > > TreeView.Item.Expanded = TRUE/FALSE -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Mon Apr 25 14:50:31 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 25 Apr 2005 14:50:31 +0200 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200504211836.26477.joe1962@...626...> References: <200504191954.08142.joe1962@...626...> <200504211059.10710.gambas@...1...> <200504211836.26477.joe1962@...626...> Message-ID: <200504251450.31570.gambas@...1...> On Thursday 21 April 2005 20:36, Jose J. Rodriguez wrote: > Sorry, forgot to compress the files before, the message was over 256KB and > is being retained for moderation :). Here it is again: > > On Thursday, 21 de April de 2005 08:59 am, Benoit Minisini wrote: > > Please send the complete output of the configure/compilation process! > > Attached 2 files with the complete outputs from ./configure and > chekinstall. The output of make was too long for the console buffer and I > don't know how to increase it at the moment, so I just redirected the > output to a file. However, the error messages still go to the console, so I > pasted those in a separate file, hope you don't need them in exact order > :(. > > Thanks, > Joe1962 I don't understand. By reading your output, you see that the symbolic link 'lib.gb.so' is created first at installation, but gbi program can't find it later. Maybe something destroys it after it was created and before gbi is launched during the installation process ? Can you verify that 'lib.gb.so' is really created during installation ? Can you try to detect if it is destroyed, and when ? Thanks in advance, -- Benoit Minisini mailto:gambas at ...1... From daniel.campos at ...338... Tue Apr 26 10:56:06 2005 From: daniel.campos at ...338... (Daniel Campos) Date: Tue, 26 Apr 2005 10:56:06 +0200 Subject: [Gambas-user] Advertisement Message-ID: <426E0226.6090105@...338...> I've made a little button for web pages, like the ones provided by Firefox. To add the button in your web page, add this code: Get Gambas Regards, D. Campos From thomas at ...947... Tue Apr 26 10:37:16 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Tue, 26 Apr 2005 08:37:16 +0000 Subject: [Gambas-user] Logo comment and something about forums Message-ID: <20050426.EZH.98376600@...948...> Daniel Campos (daniel.campos at ...338...) wrote: > I've made a little button for web pages, like the ones provided by Firefox. Thanks mate! Added it here: http://govpn.clubnix.net/ Another thing; Forums. gambasforge has not yet published their forums, and I reckon we really need something. Clubnix will setup a forum at http://gambas.clubnix.net This is not yet up and running, but I reckon we'll have something before 16.00h today. What kind of categories and forums would you like to have here? Send me a list, and I'll start building it. (If you wanna send private email, send it to thomas at linprofs dot com). /T -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From gambasfr at ...11... Tue Apr 26 13:05:27 2005 From: gambasfr at ...11... (fabien) Date: Tue, 26 Apr 2005 13:05:27 +0200 Subject: [Gambas-user] Advertisement In-Reply-To: <426E0226.6090105@...338...> References: <426E0226.6090105@...338...> Message-ID: <200504261305.27154.gambasfr@...11...> Le Mardi 26 Avril 2005 10:56, Daniel Campos a ?crit?: > I've made a little button for web pages, like the ones provided by Firefox. > > To add the button in your web page, add this code: > > > alt="Get Gambas" border="0" height="60" width="178"> > Mabe you can do the same with this logo :) Fabien > Regards, > > D. Campos > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > 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: new_gambas2.svg Type: image/svg+xml Size: 12620 bytes Desc: not available URL: From sourceforge-raindog2 at ...94... Tue Apr 26 15:42:53 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 26 Apr 2005 09:42:53 -0400 Subject: [Gambas-user] Logo comment and something about forums In-Reply-To: <20050426.EZH.98376600@...948...> References: <20050426.EZH.98376600@...948...> Message-ID: <200504260942.53289.sourceforge-raindog2@...94...> On Tuesday 26 April 2005 04:37, Thomas Mathiesen wrote: > gambasforge has not yet published their forums, and I reckon we > really need something. Clubnix will setup a forum at > http://gambas.clubnix.net The Gambas forum at http://www.linuxbasic.net is lightly used, so I wonder how useful it'll be to have an entire Gambas forum site. Rob From joe1962 at ...626... Tue Apr 26 13:04:55 2005 From: joe1962 at ...626... (Jose J. Rodriguez) Date: Tue, 26 Apr 2005 11:04:55 +0000 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200504251450.31570.gambas@...1...> References: <200504191954.08142.joe1962@...626...> <200504211836.26477.joe1962@...626...> <200504251450.31570.gambas@...1...> Message-ID: <200504261104.55932.joe1962@...626...> On Monday, 25 de April de 2005 12:50 pm, Benoit Minisini wrote: > On Thursday 21 April 2005 20:36, Jose J. Rodriguez wrote: > > Sorry, forgot to compress the files before, the message was over 256KB > > and is being retained for moderation :). Here it is again: > > > > On Thursday, 21 de April de 2005 08:59 am, Benoit Minisini wrote: > > > Please send the complete output of the configure/compilation process! > > > > Attached 2 files with the complete outputs from ./configure and > > chekinstall. The output of make was too long for the console buffer and I > > don't know how to increase it at the moment, so I just redirected the > > output to a file. However, the error messages still go to the console, so > > I pasted those in a separate file, hope you don't need them in exact > > order > > > > :(. > > > > Thanks, > > Joe1962 > > I don't understand. By reading your output, you see that the symbolic link > 'lib.gb.so' is created first at installation, but gbi program can't find it > later. Maybe something destroys it after it was created and before gbi is > launched during the installation process ? > > Can you verify that 'lib.gb.so' is really created during installation ? Can > you try to detect if it is destroyed, and when ? > > Thanks in advance, Hmmm... checkinstall is supposed to simulate the install process to create the install package, without actually installing anything. That's why I had to install Gambas normally first with make install, otherwise checkinstall wouldn't work later (no Gambas compiler available otherwise). What is the purpose of lib.gb.so? Gambas seems to run without it. There are Gambas Slackware (VL is Slackware based) Packages available on www.linuxpackages.net, I wonder how they did it? Manually without checkinstall? Thanks, Joe1962 From sourceforge-raindog2 at ...94... Tue Apr 26 16:21:23 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 26 Apr 2005 10:21:23 -0400 Subject: [Gambas-user] Error creating Vector Linux package In-Reply-To: <200504261104.55932.joe1962@...626...> References: <200504191954.08142.joe1962@...626...> <200504251450.31570.gambas@...1...> <200504261104.55932.joe1962@...626...> Message-ID: <200504261021.23784.sourceforge-raindog2@...94...> On Tuesday 26 April 2005 07:04, Jose J. Rodriguez wrote: > > Can you verify that 'lib.gb.so' is really created during > > installation ? Can you try to detect if it is destroyed, and when > Gambas seems to run without it. There are Gambas Slackware (VL is > Slackware based) Packages available on > www.linuxpackages.net, I wonder how they did it? Manually without > checkinstall? Gambas' make install doesn't seem to install lib.gb.so*, so I cp -a them in my Mandrake RPM spec file after make install completes and before the packages' file lists are checked. Rob From thomas at ...947... Tue Apr 26 15:21:44 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Tue, 26 Apr 2005 13:21:44 +0000 Subject: [Gambas-user] Logo comment and something about forums Message-ID: <20050426.4rP.21019700@...948...> Rob (sourceforge-raindog2 at ...94...) wrote: > > The Gambas forum at http://www.linuxbasic.net is lightly used, so I > wonder how useful it'll be to have an entire Gambas forum site. I had no clue about this forum... and I totally agree. Would it be possible to link this forum from the gambas.sourceforge.net? Does anyone else see the need of the forum at http://gambas.clubnix.net? If not, we'll close this forum. /T -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From sourceforge-raindog2 at ...94... Tue Apr 26 16:52:26 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Tue, 26 Apr 2005 10:52:26 -0400 Subject: [Gambas-user] Logo comment and something about forums In-Reply-To: <20050426.4rP.21019700@...948...> References: <20050426.4rP.21019700@...948...> Message-ID: <200504261052.26883.sourceforge-raindog2@...94...> On Tuesday 26 April 2005 09:21, Thomas Mathiesen wrote: > Rob (sourceforge-raindog2 at ...94...) wrote: > > The Gambas forum at http://www.linuxbasic.net is lightly used, so > > I wonder how useful it'll be to have an entire Gambas forum site. > I had no clue about this forum... and I totally agree. > Would it be possible to link this forum from the > gambas.sourceforge.net? Does anyone else see the need of the forum It already is linked from gambas.sourceforge.net.... look at the Links page. Rob From thomas at ...947... Tue Apr 26 14:14:59 2005 From: thomas at ...947... (Thomas Mathiesen) Date: Tue, 26 Apr 2005 12:14:59 +0000 Subject: [Gambas-user] Announcement: gambas.clubnix.net - The unofficial forum for Gambas users! Message-ID: <20050426.zT3.50691700@...948...> Hi all, Due to lack of a good forum (I've been googling for a while), I created a new phpbb2 forum at http://gambas.clubnix.net As I said earlier, if you would like to see more forums here, just tell me by email, and I'll create them. Benoit, if you'd like to use this as the official forum, I'll create an admin account for you. Just email me privately (thomas at linprofs dot com). /T -- LinProfs Phone: +31703521193 & +31652572454 Web: www.linprofs.com & www.linprofs.nl Email: thomas at ...947... - "Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking" From iggy at ...726... Wed Apr 27 03:30:48 2005 From: iggy at ...726... (Iggy Budiman) Date: Wed, 27 Apr 2005 08:30:48 +0700 Subject: [Gambas-user] Gambas2-1.9.6 doesn't show forms, classes, modules, etc. Message-ID: <426EEB48.1020707@...726...> I installed Gambas2-1.9.6 with disabled GTK (using Mandrake 10.1) Every projects I've opened, the project window only show directories inside the project dirs. I attached the screenshot. Any ideas why this happens? and the solution? The project was made in Gambas-1.0.3 and everything is fine. Thank's in advance, salam -iggy From iggy at ...726... Wed Apr 27 03:37:28 2005 From: iggy at ...726... (Iggy Budiman) Date: Wed, 27 Apr 2005 08:37:28 +0700 Subject: [Gambas-user] Gambas2-1.9.6 doesn't show forms, classes, modules, etc. (the screenshot) Message-ID: <426EECD8.6010504@...726...> Sorry, forgot to attach the screenshot. Here's the one ------------------------------- I installed Gambas2-1.9.6 with disabled GTK (using Mandrake 10.1) Every projects I've opened, the project window only show directories inside the project dirs. I attached the screenshot. Any ideas why this happens? and the solution? The project was made in Gambas-1.0.3 and everything is fine. Thank's in advance, salam -iggy -------------- next part -------------- A non-text attachment was scrubbed... Name: snapshot1.jpg Type: image/jpeg Size: 66358 bytes Desc: not available URL: From eilert-sprachen at ...221... Wed Apr 27 08:19:13 2005 From: eilert-sprachen at ...221... (Eilert) Date: Wed, 27 Apr 2005 08:19:13 +0200 Subject: [Gambas-user] TreeView expand/collapse In-Reply-To: <200504251444.54402.gambas@...1...> References: <426CB813.5050809@...221...> <200504251444.54402.gambas@...1...> Message-ID: <426F2EE1.6030903@...221...> Benoit Minisini schrieb: > On Monday 25 April 2005 11:27, Eilert wrote: > >>Hi, >> >>Is it possible to expand an item in the TreeView by code? >> >>I've got two root entries there, and the first one is the one which is >>used most. So I'd like to open it by default when the program starts. >> >>There is no expand or collapse method as far as I could see, just an event. >> >>Someone here who can help me? Thanks! >> >>Rolf >> >> > > > TreeView.Item.Expanded = TRUE/FALSE > Aaargh - ok :-) Thanks a lot! Rolf From gambas at ...1... Wed Apr 27 11:07:17 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Apr 2005 11:07:17 +0200 Subject: [Gambas-user] Announcement: gambas.clubnix.net - The unofficial forum for Gambas users! In-Reply-To: <20050426.zT3.50691700@...948...> References: <20050426.zT3.50691700@...948...> Message-ID: <200504271107.18025.gambas@...1...> On Tuesday 26 April 2005 14:14, Thomas Mathiesen wrote: > Hi all, > > Due to lack of a good forum (I've been googling for a while), > I created a new phpbb2 forum at > > http://gambas.clubnix.net > > As I said earlier, if you would like to see more forums here, just tell me > by email, and I'll create them. > > Benoit, if you'd like to use this as the official forum, I'll create an > admin account for you. Just email me privately (thomas at linprofs dot > com). > > /T > Personnaly, I'm not a big user of forum. I prefer the mailing-list because I can see, search and archive everything on my computer. As I can't fix all the problems people send me immediately, I need that. With a forum, it is less easy for me. But I understand that other people prefers forums. Everybody is free to make and use them :-) The only thing I can do is make a link on my website. To make it official, I can make the link "bigger". Anyway, the web site needs a complete redesign: I'm looking for a tool that can mix forum & wiki features, with internationalization capabilities (a translated page must be warned when the original was updated). And somedody that can host the site for free :-) But I didn't find this tool yet. Help me! :-) -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Wed Apr 27 11:08:04 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 27 Apr 2005 11:08:04 +0200 Subject: [Gambas-user] Gambas2-1.9.6 doesn't show forms, classes, modules, etc. (the screenshot) In-Reply-To: <426EECD8.6010504@...726...> References: <426EECD8.6010504@...726...> Message-ID: <200504271108.04278.gambas@...1...> On Wednesday 27 April 2005 03:37, Iggy Budiman wrote: > Sorry, forgot to attach the screenshot. > Here's the one > ------------------------------- > I installed Gambas2-1.9.6 with disabled GTK (using Mandrake 10.1) > Every projects I've opened, the project window only show directories > inside the project dirs. > I attached the screenshot. > Any ideas why this happens? and the solution? > The project was made in Gambas-1.0.3 and everything is fine. > > Thank's in advance, > salam > -iggy Strange... Can you send me your project please ? -- Benoit Minisini mailto:gambas at ...1... From mrzanderson at ...626... Wed Apr 27 11:30:59 2005 From: mrzanderson at ...626... (Tom) Date: Wed, 27 Apr 2005 19:30:59 +1000 Subject: [Gambas-user] Gambas command line compiler In-Reply-To: <200504271107.18025.gambas@...1...> References: <20050426.zT3.50691700@...948...> <200504271107.18025.gambas@...1...> Message-ID: <200504271930.59225.mrzanderson@...626...> Hey, Just wondering if there is a command line compiler for gambas apps? It would really help people that want to compile their own soruce without having to install all the Gambas IDE... Thanks From scatman_ at ...17... Wed Apr 27 11:45:23 2005 From: scatman_ at ...17... (scatman) Date: Wed, 27 Apr 2005 11:45:23 +0200 Subject: [Gambas-user] Gambas command line compiler In-Reply-To: <200504271930.59225.mrzanderson@...626...> References: <20050426.zT3.50691700@...948...> <200504271107.18025.gambas@...1...> <200504271930.59225.mrzanderson@...626...> Message-ID: <200504271145.23848.scatman_@...17...> Am Mittwoch, 27. April 2005 11:30 schrieb Tom: > Hey, > Just wondering if there is a command line compiler for gambas apps? It > would really help people that want to compile their own soruce without > having to install all the Gambas IDE... > gbc :-) -- scatman From mrzanderson at ...626... Wed Apr 27 12:01:53 2005 From: mrzanderson at ...626... (Tom) Date: Wed, 27 Apr 2005 20:01:53 +1000 Subject: [Gambas-user] Gambas command line compiler In-Reply-To: <200504271145.23848.scatman_@...17...> References: <20050426.zT3.50691700@...948...> <200504271930.59225.mrzanderson@...626...> <200504271145.23848.scatman_@...17...> Message-ID: <200504272001.53923.mrzanderson@...626...> On Wed April 27 2005 7:45 pm, scatman wrote: > Am Mittwoch, 27. April 2005 11:30 schrieb Tom: > > Hey, > > Just wondering if there is a command line compiler for gambas apps? It > > would really help people that want to compile their own soruce without > > having to install all the Gambas IDE... > > gbc :-) Nice :) And assuming I didnt have gambas installed, where could I get this file from? Is it on the site? Or at some repository? And is it possible to just have that installed? Thanks From scatman_ at ...17... Wed Apr 27 13:39:09 2005 From: scatman_ at ...17... (scatman) Date: Wed, 27 Apr 2005 13:39:09 +0200 Subject: [Gambas-user] Gambas command line compiler In-Reply-To: <200504272001.53923.mrzanderson@...626...> References: <20050426.zT3.50691700@...948...> <200504271145.23848.scatman_@...17...> <200504272001.53923.mrzanderson@...626...> Message-ID: <200504271339.09534.scatman_@...17...> Am Mittwoch, 27. April 2005 12:01 schrieb Tom: > > gbc :-) > > Nice :) And assuming I didnt have gambas installed, where could I get this > file from? Is it on the site? Or at some repository? And is it possible to > just have that installed? Install gambas and you can use gba, gbc, gbx and gbi. Or extract it from a Binary Paket. -- scatman From oxleyd at ...699... Wed Apr 27 16:10:38 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Wed, 27 Apr 2005 16:10:38 +0200 Subject: [Gambas-user] OT: Wireless In-Reply-To: <200502241941.08035.bwells@...475...> Message-ID: <20050427141547.DE5053721A@...700...> Hi all, I know that this is off topic but..... Can anyone recommend a good wireless card for Suse? It will be for a PC rather than a laptop so I need a PCI one. Thanks, Daniel From sourceforge-raindog2 at ...94... Wed Apr 27 16:32:13 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 27 Apr 2005 10:32:13 -0400 Subject: [Gambas-user] Announcement: gambas.clubnix.net - The unofficial forum for Gambas users! In-Reply-To: <200504271107.18025.gambas@...1...> References: <20050426.zT3.50691700@...948...> <200504271107.18025.gambas@...1...> Message-ID: <200504271032.13292.sourceforge-raindog2@...94...> On Wednesday 27 April 2005 05:07, Benoit Minisini wrote: > Anyway, the web site needs a complete redesign: I'm looking for a > tool that can mix forum & wiki features, with internationalization > capabilities (a translated page must be warned when the original > was updated). And somedody that can host the site for free :-) But > I didn't find this tool yet. Don't forget the ability to export the whole thing as a set of HTML files for the help system, and the need to translate all of our existing documentation to the new system. I agree that twiki is lacking in the internationalization department but moinmoin has similar i18n problems and mediawiki's publishability is.... not. This is the first time we have brought this up on the list rather than in private, so maybe someone else has another idea :) BTW, the announcement of gambas.clubnix.net was posted before Thomas's subsequent post acknowledging the existence of linuxbasic.net's Gambas forum... it just made it to the list first for some reason. As far as I know, the clubnix forum only got set up because the Linuxbasic.net forum wasn't prominent enough. (And I do wish there were a phpBB-based forum rather than the slightly weird software linuxbasic.net uses... but, linuxbasic.net appeared before I set up my first forum and I don't want to step on their toes either.) Rob From na2492 at ...9... Wed Apr 27 20:52:48 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 27 Apr 2005 20:52:48 00200 Subject: [Gambas-user] OT: Wireless Message-ID: <426fdf80.4926.0@...9...> >Hi all, > >I know that this is off topic but..... > >Can anyone recommend a good wireless card for Suse? It will be for a PC >rather than a laptop so I need a PCI one. > >Thanks, >Daniel Salut, SuSE has/had a hardware-database. Look at www.suse.com for that. Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From na2492 at ...9... Wed Apr 27 21:00:10 2005 From: na2492 at ...9... (Charlie Reinl) Date: Wed, 27 Apr 2005 21:00:10 00200 Subject: [Gambas-user] OT: Wireless Message-ID: <426fe13a.4f42.0@...9...> >>Hi all, >> >>I know that this is off topic but..... >> >>Can anyone recommend a good wireless card for Suse? It will be for a PC >>rather than a laptop so I need a PCI one. >> >>Thanks, >>Daniel > >Salut, > >SuSE has/had a hardware-database. >Look at www.suse.com for that. > >Amicalment >Charlie >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > Salut, look at http://cdb.novell.com/searchForm.php?searchtype=simple&LANG=en_UK&PHPSESSID=a858be28eb91d08e5c0500b0a7dbfbc1 Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * From sourceforge-raindog2 at ...94... Wed Apr 27 21:45:42 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 27 Apr 2005 15:45:42 -0400 Subject: [Gambas-user] examples in 1.9.x Message-ID: <200504271545.42308.sourceforge-raindog2@...94...> Hey Benoit, I noticed in 1.9.6 that there are no examples in the tarball. It may have been that way for a few versions, I don't know. Is it just that the examples need updating to build under 1.9.x or do we need to come up with a new set of examples for gambas2? Rob From lordheavy at ...512... Wed Apr 27 21:54:27 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Wed, 27 Apr 2005 21:54:27 +0200 Subject: [Gambas-user] examples in 1.9.x In-Reply-To: <200504271545.42308.sourceforge-raindog2@...94...> References: <200504271545.42308.sourceforge-raindog2@...94...> Message-ID: <200504272154.27475.lordheavy@...512...> Le Mercredi 27 Avril 2005 21:45, Rob a ?crit?: > Hey Benoit, > > I noticed in 1.9.6 that there are no examples in the tarball. It may > have been that way for a few versions, I don't know. Is it just that > the examples need updating to build under 1.9.x or do we need to come > up with a new set of examples for gambas2? > > Rob > Perhaps it goes in the way of examples must be part of components, not of the IDE ? Regards, -- Laurent Carlier jabber : LordHeavy at ...943... From sourceforge-raindog2 at ...94... Wed Apr 27 22:16:21 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Wed, 27 Apr 2005 16:16:21 -0400 Subject: [Gambas-user] examples in 1.9.x In-Reply-To: <200504272154.27475.lordheavy@...512...> References: <200504271545.42308.sourceforge-raindog2@...94...> <200504272154.27475.lordheavy@...512...> Message-ID: <200504271616.21243.sourceforge-raindog2@...94...> On Wednesday 27 April 2005 15:54, Laurent Carlier wrote: > Perhaps it goes in the way of examples must be part of components, > not of the IDE ? Maybe so, but all the existing components are still part of the Gambas tarball and the examples aren't. Rob From gambas at ...1... Thu Apr 28 09:52:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 28 Apr 2005 09:52:28 +0200 Subject: [Gambas-user] examples in 1.9.x In-Reply-To: <200504271616.21243.sourceforge-raindog2@...94...> References: <200504271545.42308.sourceforge-raindog2@...94...> <200504272154.27475.lordheavy@...512...> <200504271616.21243.sourceforge-raindog2@...94...> Message-ID: <200504280952.28146.gambas@...1...> On Wednesday 27 April 2005 22:16, Rob wrote: > On Wednesday 27 April 2005 15:54, Laurent Carlier wrote: > > Perhaps it goes in the way of examples must be part of components, > > not of the IDE ? > > Maybe so, but all the existing components are still part of the Gambas > tarball and the examples aren't. > > Rob > > Oops. I forgot them :-p -- Benoit Minisini mailto:gambas at ...1... From oxleyd at ...699... Thu Apr 28 10:46:19 2005 From: oxleyd at ...699... (Daniel Oxley) Date: Thu, 28 Apr 2005 10:46:19 +0200 Subject: [Gambas-user] OT: Wireless In-Reply-To: <426fe13a.4f42.0@...9...> Message-ID: <20050428085130.75F2D37225@...700...> Thanks Charlie, however it seems that either I am searching wrong or there are not many supported devices or the DB is out of date! Daniel -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Charlie Reinl Sent: 27 April 2005 21:00 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] OT: Wireless >>Hi all, >> >>I know that this is off topic but..... >> >>Can anyone recommend a good wireless card for Suse? It will be for a >>PC >>rather than a laptop so I need a PCI one. >> >>Thanks, >>Daniel > >Salut, > >SuSE has/had a hardware-database. >Look at www.suse.com for that. > >Amicalment >Charlie >* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * > Salut, look at http://cdb.novell.com/searchForm.php?searchtype=simple&LANG=en_UK&PHPSESSID= a858be28eb91d08e5c0500b0a7dbfbc1 Amicalment Charlie * Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de * ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From whoknowz at ...626... Thu Apr 28 15:39:46 2005 From: whoknowz at ...626... (whoknowz) Date: Thu, 28 Apr 2005 18:39:46 +0500 Subject: [Gambas-user] Displaying pictures (BLOB) in a database table Message-ID: <3bab1b02050428063956c42043@...627...> Hi everyone, I am wondering if I could get a image from a database field and display it on a form. Can any of you guide me to a sample code? Regards, Nashith From nmpf at ...959... Thu Apr 28 21:07:27 2005 From: nmpf at ...959... (nmpf) Date: Thu, 28 Apr 2005 20:07:27 +0100 Subject: [Gambas-user] About the browser widget..... Message-ID: <000b01c54c25$84f6e0c0$0301a8c0@...960...> Hello, how can i use the browser widget to access flash (swf) items ?, i think that the applet doesnt use the plugins :S There are some way that the widget can be used with plugins ? thanks in advance Nuno From fonz at ...961... Thu Apr 28 22:58:26 2005 From: fonz at ...961... (fonz at ...961...) Date: Thu, 28 Apr 2005 13:58:26 -0700 (PDT) Subject: [Gambas-user] executing Message-ID: <3613.80.42.203.101.1114721906.squirrel@...961...> Ok so I am a noob to Gambas, I am using Fedora Core 3 to run it, when I say make execuatable for my project it then creates it but if I try to run it nothing happens and the "choose a program to open box appears", why is this? _______________________________________________________________ Save rainforest for free with a Planet-Save.com e-mail account: http://www.planet-save.com From gambas at ...1... Fri Apr 29 11:25:19 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Apr 2005 11:25:19 +0200 Subject: [Gambas-user] About the browser widget..... In-Reply-To: <000b01c54c25$84f6e0c0$0301a8c0@...960...> References: <000b01c54c25$84f6e0c0$0301a8c0@...960...> Message-ID: <200504291125.19475.gambas@...1...> On Thursday 28 April 2005 21:07, nmpf wrote: > Hello, how can i use the browser widget to access flash (swf) items ?, i > think that the applet doesnt use the plugins :S > > There are some way that the widget can be used with plugins ? > > > thanks in advance > > Nuno > Actually the browser widget is badly named. It is just a control that displays HTML with KHTML. Regards, -- Benoit Minisini mailto:gambas at ...1... From gambas at ...1... Fri Apr 29 11:24:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Apr 2005 11:24:48 +0200 Subject: [Gambas-user] Displaying pictures (BLOB) in a database table In-Reply-To: <3bab1b02050428063956c42043@...627...> References: <3bab1b02050428063956c42043@...627...> Message-ID: <200504291124.48659.gambas@...1...> On Thursday 28 April 2005 15:39, whoknowz wrote: > Hi everyone, > > I am wondering if I could get a image from a database field and > display it on a form. Can any of you guide me to a sample code? > > Regards, Nashith > > BLOB are not supported yet. To use them, send direct SQL commands to the driver with the Exec() method. Regards, -- Benoit Minisini mailto:gambas at ...1... From sluca at ...67... Fri Apr 29 17:06:17 2005 From: sluca at ...67... (Scaramella Luca) Date: Fri, 29 Apr 2005 15:06:17 +0000 Subject: [Gambas-user] Gambas 1.9.6 and Contro, Groups Message-ID: Hi, I'm using Gambas 1.9.6 and fedora cora 2. I converted a form from VB and when i try to run it i've got: The program has stopped unexpetedly by raising signal #11. After some test i've found the problem happens because the conversion from vb created a Public method with a parameter index as Integer converting from an array of buttons (vb style) with the same name(Control Group) If i delete or i change the method as Private the problem disapears. Thanks From sourceforge-raindog2 at ...94... Fri Apr 29 17:25:56 2005 From: sourceforge-raindog2 at ...94... (Rob) Date: Fri, 29 Apr 2005 11:25:56 -0400 Subject: [Gambas-user] Gambas 1.9.6 and Contro, Groups In-Reply-To: References: Message-ID: <200504291125.56885.sourceforge-raindog2@...94...> On Friday 29 April 2005 11:06, Scaramella Luca wrote: > I'm using Gambas 1.9.6 and fedora cora 2. > I converted a form from VB and when i try to run it i've got: > The program has stopped unexpetedly by raising signal #11. While any "signal #11" problems need to be fixed in the compiler or interpreter, I'm sure something changed that causes the code my converter outputs to work less well. I'll have a look. Rob From gambas at ...1... Fri Apr 29 17:29:59 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 29 Apr 2005 17:29:59 +0200 Subject: [Gambas-user] Gambas 1.9.6 and Contro, Groups In-Reply-To: References: Message-ID: <200504291730.00158.gambas@...1...> On Friday 29 April 2005 17:06, Scaramella Luca wrote: > Hi, > I'm using Gambas 1.9.6 and fedora cora 2. > I converted a form from VB and when i try to run it i've got: > > The program has stopped unexpetedly by raising signal #11. > > After some test i've found the problem happens because the conversion from > vb > created a Public method with a parameter index as Integer converting from > an array of buttons (vb style) with the same name(Control Group) > > If i delete or i change the method as Private the problem disapears. > > Thanks > Can you send me the generated project that crashes please ? -- Benoit Minisini mailto:gambas at ...1... From vcalandra at ...69... Sat Apr 30 18:52:38 2005 From: vcalandra at ...69... (Vincenzo Calandra) Date: Sat, 30 Apr 2005 18:52:38 +0200 Subject: [Gambas-user] Please.... Message-ID: <1114879958.8918.6.camel@...953...> Anyone can give me a sample code to open a sqlite database and list data on a TableView? :~( Many many tanks!! -- Ciao, Enzo. (vcalandra at ...69...) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smiley-11.png Type: image/png Size: 820 bytes Desc: not available URL: