From lordheavy at ...512... Sun Oct 2 19:55:01 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 02 Oct 2005 19:55:01 +0200 Subject: [Gambas-user] qt and opengl Message-ID: <43401EF5.5050102@...512...> This is the first steps for an opengl widget for qt http://gambas.tuxfamily.org/download (qt.opengl) Joined an example. Have fun, -- Laurent Carlier jabber : LordHeavy at ...943... -------------- next part -------------- A non-text attachment was scrubbed... Name: glbox-0.0.1.tar.gz Type: application/x-gzip Size: 1431 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: glbox.jpg Type: image/jpeg Size: 71378 bytes Desc: not available URL: From lordheavy at ...512... Sun Oct 2 20:03:26 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 02 Oct 2005 20:03:26 +0200 Subject: [Gambas-user] qt and opengl In-Reply-To: <43401EF5.5050102@...512...> References: <43401EF5.5050102@...512...> Message-ID: <434020EE.5030907@...512...> Laurent Carlier a ?crit : > http://gambas.tuxfamily.org/download (qt.opengl) Oops, bad link : http://gamebas.tuxfamily.org/download file : gambas2-gb-qt-opengl-1.9.19.tar.gz -- Laurent Carlier jabber : LordHeavy at ...943... From lordheavy at ...512... Sat Oct 1 23:18:51 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Sat, 01 Oct 2005 23:18:51 +0200 Subject: [Gambas-user] OpenGL widget for Qt (gb.qt.opengl) Message-ID: <433EFD3B.5040002@...512...> First release of a opengl widget for Qt, it's not surely not perfect :) Attached here an example and a screenshot. Here the gb.qt.opengl component : http://gamebas.tuxfamily.org/download/ Regards, -- Laurent Carlier jabber : LordHeavy at ...943... -------------- next part -------------- A non-text attachment was scrubbed... Name: glbox-0.0.1.tar.gz Type: application/x-gzip Size: 1431 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: glbox.jpg Type: image/jpeg Size: 71378 bytes Desc: not available URL: From gambas at ...1... Sun Oct 2 15:37:13 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Oct 2005 15:37:13 +0200 Subject: [Gambas-user] compilation error on gb.v4l In-Reply-To: <433C5F3B.20505@...357...> References: <433C5F3B.20505@...357...> Message-ID: <200510021537.13158.gambas@...1...> On Thursday 29 September 2005 23:40, Ga?l Le Hec'H wrote: > Hi, > When I try to compile gambas 1.9.20 on a fresh full install of slackware > 10.2 I get this error during compilation : > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -pipe -Wall -fno-strict-aliasing > -Wno-unused-v > alue -g -Os -MT CWebcam.lo -MD -MP -MF .deps/CWebcam.Tpo -c CWebcam.c > -fPIC -DP > IC -o .libs/CWebcam.o > CWebcam.c: In function `CFEATURES_driver': > CWebcam.c:927: error: storage size of `vcap' isn't known > CWebcam.c:929: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:929: error: (Each undeclared identifier is reported only once > CWebcam.c:929: error: for each function it appears in.) > CWebcam.c:927: warning: unused variable `vcap' > CWebcam.c: In function `CFEATURES_bus': > CWebcam.c:942: error: storage size of `vcap' isn't known > CWebcam.c:944: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:942: warning: unused variable `vcap' > CWebcam.c: In function `CFEATURES_version': > CWebcam.c:958: error: storage size of `vcap' isn't known > CWebcam.c:960: error: `VIDIOC_QUERYCAP' undeclared (first use in this > function) > CWebcam.c:958: warning: unused variable `vcap' > CWebcam.c: In function `CTUNER_low': > CWebcam.c:1040: error: storage size of `vfreq' isn't known > CWebcam.c:1046: error: `VIDIOC_G_FREQUENCY' undeclared (first use in > this functi on) > CWebcam.c:1051: error: `V4L2_TUNER_CAP_LOW' undeclared (first use in > this functi on) > CWebcam.c:1040: warning: unused variable `vfreq' > CWebcam.c: In function `CTUNER_frequency': > CWebcam.c:1070: error: storage size of `vfreq' isn't known > CWebcam.c:1077: error: `VIDIOC_G_FREQUENCY' undeclared (first use in > this functi on) > CWebcam.c:1088: error: `VIDIOC_S_FREQUENCY' undeclared (first use in > this functi on) > CWebcam.c:1070: warning: unused variable `vfreq' > make[4]: *** [CWebcam.lo] Error 1 > make[4]: Leaving directory `/usr/src/gambas2-1.9.20/gb.v4l/src' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/usr/src/gambas2-1.9.20/gb.v4l' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/usr/src/gambas2-1.9.20/gb.v4l' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/gambas2-1.9.20' > make: *** [all] Error 2 > > If I disable-v4l the compilation succed. > I think (Daniel Campos should confirm) that the gb.v4l driver need VideoForLinux 2. What is your kernel version? Does it have V4L 2 ? Regards, -- Benoit Minisini mailto:gambas at ...1... From comtux at ...626... Sun Oct 2 23:03:48 2005 From: comtux at ...626... (Steve Starr) Date: Sun, 2 Oct 2005 21:03:48 +0000 Subject: [Gambas-user] Re: (no subject) In-Reply-To: <433D7921.2000707@...1000...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> <433D7921.2000707@...1000...> Message-ID: <78f4b7670510021403vb26a4d6jccac413c010dfde@...627...> Thanks that worked. :) On 9/30/05, Werner wrote: > Steve Starr wrote: > > >Anyone wan't to tell me how i get a QuoteDbl into TextArea? > >The gambas code editor gets mad if i try to do thid TextArea.Text = (" " > ") > > > >Thanks > > > > > > > Assuming you want to display this: " > > have you tried " \" " this? > > The backslash is the escape character. > Werner > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Oct 2 15:33:15 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Oct 2005 15:33:15 +0200 Subject: [Gambas-user] Installing gambas on Fedora Core 4 In-Reply-To: <20050928022424.8120.qmail@...1143...> References: <20050928022424.8120.qmail@...1143...> Message-ID: <200510021533.15145.gambas@...1...> On Wednesday 28 September 2005 04:24, Naveen Agarawal wrote: > Hi all! > > I have also got the same message i.e. component > missing fform.createcontrol.833. The terminal window > also shows following messages: > > Warning: cannot find /usr/share/gambas/info/gb.info > Warning: cannot find /usr/share/gambas/info/gb.qt.info > Warning: cannot find /usr/share/gambas/info/gb.qt.info > Warning: cannot find /usr/share/gambas/info/gb.qt.info > > What could be the reason? I installed using the > command yum install gambas. > > Regards! > The binary packages seem to be broken. You can regenerate the missing *.info files by hand by running 'gbi -a' as root after having the packages installed. Regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...512... Sun Oct 2 23:17:51 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Sun, 02 Oct 2005 23:17:51 +0200 Subject: [Gambas-user] Gambas 2 install files In-Reply-To: <433DB060.3070303@...1127...> References: <433D37BC.9090806@...1...> <200509301726.53995.felice.cafarelli@...324...> <200509301409.26185.sourceforge-raindog2@...94...> <433DB060.3070303@...1127...> Message-ID: <43404E7F.3010907@...512...> K Windle a ?crit : > + gba > /home/drakx/RPM/tmp/rpm-tmp.47823: line 23: gba: command not found > error: Bad exit status from /home/drakx/RPM/tmp/rpm-tmp.47823 (%build) It should be gba2 not gba :-/ -- Laurent Carlier jabber : LordHeavy at ...943... From gambas at ...1... Sun Oct 2 15:38:19 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Oct 2005 15:38:19 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> Message-ID: <200510021538.19390.gambas@...1...> On Friday 30 September 2005 18:47, Steve Starr wrote: > Anyone wan't to tell me how i get a QuoteDbl into TextArea? > The gambas code editor gets mad if i try to do thid TextArea.Text = (" " ") > > Thanks > Put a backslash before the double quote. Regards, -- Benoit Minisini mailto:gambas at ...1... From lordheavy at ...512... Sat Oct 1 01:18:27 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Sat, 01 Oct 2005 01:18:27 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> Message-ID: <433DC7C3.2030205@...512...> Steve Starr a ?crit : > Anyone wan't to tell me how i get a QuoteDbl into TextArea? > The gambas code editor gets mad if i try to do thid TextArea.Text = (" " ") > > Thanks > You should add slash character before : TextArea.Text = (" \" ") Regards, -- Laurent Carlier jabber : LordHeavy at ...943... From orven_llantos at ...43... Sat Oct 1 05:49:32 2005 From: orven_llantos at ...43... (Orven Llantos) Date: Sat, 1 Oct 2005 04:49:32 +0100 (BST) Subject: [Gambas-user] gambas<-->postgresql users Message-ID: <20051001034932.95422.qmail@...1152...> hi guys, if you were able to connect gambas to postgresql on a 32-bit machine,please tell me where can i find the postgresql-devel and postgresql-libs for it. i've been searchin' the net now for a while and the only available rpms are for 64-bit machines and they failed upon installation. This is my system details: OS: Fedora Core 4 Processor: Pentium 4 2.26 Memory: 256 DDRAM Motherboard: ASUS-MX Gambas-version: 1.9.20 PostgreSQL version: 8.0 PSQL ODBC version: 8.00.0100 unixODBC version: 2.2.11 Orven Send instant messages to your online friends http://uk.messenger.yahoo.com From alphajunior at ...940... Sat Oct 1 20:38:07 2005 From: alphajunior at ...940... (alphajunior) Date: Sat, 1 Oct 2005 15:38:07 -0300 Subject: [Gambas-user] Re:Gambas-user digest, Vol 1 #1505 - 8 msgs Message-ID: Hello, any one here had alread made comunication through the parallel port??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.faurebouvard at ...357... Sun Oct 2 19:56:23 2005 From: christian.faurebouvard at ...357... (Christian Faure) Date: Sun, 2 Oct 2005 19:56:23 +0200 Subject: [Gambas-user] gambas<-->postgresql users In-Reply-To: <20051001034932.95422.qmail@...1152...> References: <20051001034932.95422.qmail@...1152...> Message-ID: <200510021956.24005.christian.faurebouvard@...357...> El S?bado, 1 de Octubre de 2005 05:49, Orven Llantos escribi?: > hi guys, > > if you were able to connect gambas to postgresql on a > 32-bit machine,please tell me where can i find the > postgresql-devel and postgresql-libs for it. i've been > searchin' the net now for a while and the only > available rpms are for 64-bit machines and they failed > upon installation. > > This is my system details: > OS: Fedora Core 4 > Processor: Pentium 4 2.26 > Memory: 256 DDRAM > Motherboard: ASUS-MX > Gambas-version: 1.9.20 > PostgreSQL version: 8.0 > PSQL ODBC version: 8.00.0100 > unixODBC version: 2.2.11 > > > Orven > If you download postgresql source, then you have devel packages. when compile gambas, in configure step, verify postgresql include and lib dir. From werda at ...1000... Sat Oct 1 09:17:15 2005 From: werda at ...1000... (Werner) Date: Sat, 01 Oct 2005 15:17:15 +0800 Subject: [Gambas-user] (no subject) In-Reply-To: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> Message-ID: <433E37FB.8080604@...1000...> Steve Starr wrote: >Anyone wan't to tell me how i get a QuoteDbl into TextArea? >The gambas code editor gets mad if i try to do thid TextArea.Text = (" " ") > >Thanks > > > Assuming you want to display this: " have you tried " \" " this? The backslash is the escape character. Werner From oreip at ...1... Mon Oct 3 00:32:40 2005 From: oreip at ...1... (PV) Date: Mon, 03 Oct 2005 00:32:40 +0200 Subject: [Gambas-user] Firebird driver In-Reply-To: <433DB46B.4070206@...889...> References: <433D37BC.9090806@...1...> <433D5B65.2070603@...889...> <433D7B9E.8050609@...1...> <433DB46B.4070206@...889...> Message-ID: <43406008.6070704@...1...> On 30/09/2005 23:55, Daniel wrote: > ok > after you have installed gb.db.firebird, you make this command > 1) ./reconfig _#### significant #### > _1.a) rm makefile in ./gb.db.firebird and in ./gb.db.firebird/src > 2) ./configure > 3) make clean > 4) make > 5) move the libs ./src/.libs/gb.db.firebird.so gb.db.firebird.so.0 and > gb.db.firebird.so.0.0.0 in /usr/lib This is what I've already done before, I tried once again but with no success: Gambas still raises signal #6 and dies. Here's the offending code: PUBLIC SUB Button1_Click() DIM c AS NEW Connection WITH c .Type = "firebird" .Host = "localhost" .Name = "/opt/firebird/data/mydb.gdb" .Login = "blabla" .Password = "blabla" END WITH TRY c.Open IF ERROR THEN message("Error: " & Error.Text) END IF END Stepping through the code I can see that the crash occurs (not surprisingly) on the Open instruction. I have full access to the db and the directory tree containing it, user login and password do exist and I can connect without any problems to the db through isql. Also, no problems to connect to an existing sqlite3 db in Gambas. Can you see any glitches in the above code or is anything missing? Thanks, Piero From gambas at ...1... Sun Oct 2 15:31:30 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 2 Oct 2005 15:31:30 +0200 Subject: [Gambas-user] Gambas Interbase/Firebird driver over IBPP classes In-Reply-To: <200509251647.16736.sourceforge-raindog2@...94...> References: <1127711932.5578.6.camel@...861...> <200509251647.16736.sourceforge-raindog2@...94...> Message-ID: <200510021531.30866.gambas@...1...> On Sunday 25 September 2005 22:47, Rob Kudla wrote: > On Mon September 26 2005 01:18, deki wrote: > > Is is possible to design a Interbase/Firebird driver for Gambas who > > will be using classes directly form within libibpp.so library? > > I suppose that is required to build a library wrapper around > > libibpp.so, but what about exporting API classes and using them > > directly in Basic? Could anyone give me a shortest possible example > > The API support is new, and there isn't much example code out there. > Maybe have a look here: > > http://gambas.gnulinex.org/api/ > > You haven't gotten IB/FB to work with gb.db.odbc, I take it? > > Rob > A Firebird driver has just been made by Daniel XXX (i don't know his name), but I couldn't download it to put it in the sources yet. Regards, -- Benoit Minisini mailto:gambas at ...1... From werda at ...1000... Sat Oct 1 03:31:58 2005 From: werda at ...1000... (Werner) Date: Sat, 01 Oct 2005 09:31:58 +0800 Subject: [Gambas-user] (no subject) In-Reply-To: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> Message-ID: <433DE70E.6030601@...1000...> Steve Starr wrote: >Anyone wan't to tell me how i get a QuoteDbl into TextArea? >The gambas code editor gets mad if i try to do thid TextArea.Text = (" " ") > >Thanks > > > Assuming you want to display this: " have you tried this: " \" " ? The backslash is the escape character. Werner From mconfortino at ...1153... Mon Oct 3 12:58:40 2005 From: mconfortino at ...1153... (Marcelo Confortino) Date: Mon, 03 Oct 2005 07:58:40 -0300 Subject: [Gambas-user] Image storing and retrieving In-Reply-To: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> Message-ID: <43410EE0.3020009@...1153...> Hi! Does anybody know how to store and retrieve an image in a MySQL table? I succeeded in storing a jpeg in a medium blob or blob column, using the 'load_file' MySQL function, but when I try to move the blob to a PictureBox I get the message 'Wanted picture, got string instead'. Any ideas? Thanks. From a.ciric at ...1147... Mon Oct 3 13:40:59 2005 From: a.ciric at ...1147... (Alex Ciric) Date: Mon, 03 Oct 2005 13:40:59 +0200 Subject: [Gambas-user] Exotic Mysql Problem In-Reply-To: <11926510.1128070531384.JavaMail.www@...796...> References: <11926510.1128070531384.JavaMail.www@...796...> Message-ID: <434118CB.1010000@...1147...> Thanks, this worked perfectly. However, i dont know whether this is a bug or a feature. Maybe we have to ask MS to solve this mystery. :) nigel at ...38... schrieb: > Alex, > Not sure how you are using this but I have successfully tested the following: > > rResult = hConn.Exec("Select max(field) as maxfield from table") > . > . > . > PRINT rResult!maxfield > Does this help? > Nigel > >>Message Received: Sep 29 2005, 08:27 PM >>From: "Alex Ciric" >>To: gambas-user at lists.sourceforge.net >>Cc: >>Subject: [Gambas-user] Exotic Mysql Problem >> >>Hi. >> >>In my application i have to use the mysql-macro max(). >>If i do a query like "select * from table" this works very good with >>gambas and i am able to use the results for further stuff. >>But if i do a query like "select max(field) from table" i get an error >>message "field not found in myqsl table" >> >>Does anyone know this behavior or have a workaround? >> >>Sincerely >> >>alex Ciric >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by: >>Power Architecture Resource Center: Free content, downloads, discussions, >>and more. http://solutions.newsforge.com/ibmarch.tmpl >>_______________________________________________ >>Gambas-user mailing list >>Gambas-user at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> From daniel at ...889... Mon Oct 3 20:08:58 2005 From: daniel at ...889... (Daniel) Date: Mon, 03 Oct 2005 20:08:58 +0200 Subject: [Gambas-user] Firebird driver In-Reply-To: <43406008.6070704@...1...> References: <433D37BC.9090806@...1...> <433D5B65.2070603@...889...> <433D7B9E.8050609@...1...> <433DB46B.4070206@...889...> <43406008.6070704@...1...> Message-ID: <434173BA.7060107@...889...> PV wrote: > On 30/09/2005 23:55, Daniel wrote: > >> ok >> after you have installed gb.db.firebird, you make this command >> 1) ./reconfig _#### significant #### >> _1.a) rm makefile in ./gb.db.firebird and in ./gb.db.firebird/src >> 2) ./configure >> 3) make clean >> 4) make >> 5) move the libs ./src/.libs/gb.db.firebird.so gb.db.firebird.so.0 >> and gb.db.firebird.so.0.0.0 in /usr/lib > > > This is what I've already done before, I tried once again but with no > success: > Gambas still raises signal #6 and dies. > > Here's the offending code: > > PUBLIC SUB Button1_Click() > > DIM c AS NEW Connection > > WITH c > .Type = "firebird" > .Host = "localhost" > .Name = "/opt/firebird/data/mydb.gdb" > .Login = "blabla" > .Password = "blabla" > END WITH > > TRY c.Open > IF ERROR THEN > message("Error: " & Error.Text) > END IF > > END > > Stepping through the code I can see that the crash occurs (not > surprisingly) on the Open instruction. > > I have full access to the db and the directory tree containing it, > user login > and password do exist and I can connect without any problems to the db > through > isql. > Also, no problems to connect to an existing sqlite3 db in Gambas. > > Can you see any glitches in the above code or is anything missing? > > > Thanks, > Piero > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > attention the name from the database is case sensitive on linux server compiling ibpp in debug code -> make DEBUG=1 and see the output in the console daniel From kai at ...1127... Mon Oct 3 23:32:10 2005 From: kai at ...1127... (K. Windle) Date: Mon, 03 Oct 2005 22:32:10 +0100 Subject: [Gambas-user] Gambas 2 install files In-Reply-To: <43404E7F.3010907@...512...> References: <433D37BC.9090806@...1...> <200509301726.53995.felice.cafarelli@...324...> <200509301409.26185.sourceforge-raindog2@...94...> <433DB060.3070303@...1127...> <43404E7F.3010907@...512...> Message-ID: <4341A35A.20800@...1127...> Laurent Carlier wrote: >K Windle a ?crit : > > >>+ gba >>/home/drakx/RPM/tmp/rpm-tmp.47823: line 23: gba: command not found >>error: Bad exit status from /home/drakx/RPM/tmp/rpm-tmp.47823 (%build) >> >> > >It should be gba2 not gba :-/ > > > OK but thats what was done while i started gambas 2 from a terminal so how do i fox that ? From lordheavy at ...512... Mon Oct 3 23:56:51 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Mon, 03 Oct 2005 23:56:51 +0200 Subject: [Gambas-user] Gambas 2 install files In-Reply-To: <4341A35A.20800@...1127...> References: <433D37BC.9090806@...1...> <200509301726.53995.felice.cafarelli@...324...> <200509301409.26185.sourceforge-raindog2@...94...> <433DB060.3070303@...1127...> <43404E7F.3010907@...512...> <4341A35A.20800@...1127...> Message-ID: <4341A923.8090704@...512...> K. Windle a ?crit : > > OK but thats what was done while i started gambas 2 from a terminal so > how do i fox that ? > Try to replace the package.module from gambas2 source ide (app/src/gambas2) with the following file and rebuild the ide. So rebuild the package and try if it work. If you can't, a quick dirty fiw should be to make a symlink between /usr/bin/gba and /usr/bin/gba2 Regards, -- Laurent Carlier jabber : LordHeavy at ...943... -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Package.module URL: From jose.santos at ...429... Tue Oct 4 13:01:59 2005 From: jose.santos at ...429... (Dani Santos) Date: Tue, 04 Oct 2005 13:01:59 +0200 Subject: [Gambas-user] Developing a gambas component using gambas. Message-ID: <1128423719.18978.14.camel@...999...> Hi all. I'm trying to make a gambas component using gambas (C/C+ is too much to me). I followed J.L. Redrejo advices and donloaded the gambas-gb-form source code to see how is it built. I have made several progress but I've got some questions to make: - ?How do I asign the icon that is shown in the gambas-toolbox to my gambas component? - ?How can I have a preview of the control I'm making in design-time? I mean with this that I only see a slashed rectangle, but I don't see the components it is made with. For instance, if I use the gb.form component in a application and I put a ColorChooser component in a form, I can see how it is perfectly with all it's controls, but not so with my component. Finally, this is the script I use to add my component to the list of components of gambas. It's only for the test phase. ?Is it correct? ?Is there a betterway? daniel at ...1154...:~/srcGambas/gb.dycontrols$ cat instala-componente.sh #!/bin/sh case $1 in -a) cp -vf gb.dycontrols/gb.dycontrols.* /usr/lib/gambas2 chmod 644 /usr/lib/gambas2/gb.dycontrols.component chmod 755 /usr/lib/gambas2/gb.dycontrols.gambas cp -vf gb.dycontrols/.info /usr/share/gambas2/info/gb.dycontrols.info cp -vf gb.dycontrols/.list /usr/share/gambas2/info/gb.dycontrols.list break;; -d) rm -vf /usr/lib/gambas2/gb.dycontrols.component rm -vf /usr/lib/gambas2/gb.dycontrols.gambas rm -vf /usr/share/gambas2/info/gb.dycontrols.info rm -vf /usr/share/gambas2/info/gb.dycontrols.list break;; esac NOTES: - You must be logged as root to use the script: - ./instala-componente.sh -a -> Installs the component. - ./instala-componente.sh -d -> Removes the component. Regards. -- Jos? Daniel Santos Delgado Programador del IESO Quercus (Malpartida de Plasencia) http://iesoquercus.juntaextremadura.net/dani/ Tfno: 927010850 Fax: 927010851 From naveenagrawal at ...43... Tue Oct 4 19:12:30 2005 From: naveenagrawal at ...43... (Naveen Agarawal) Date: Tue, 4 Oct 2005 10:12:30 -0700 (PDT) Subject: [Gambas-user] Installing gambas on Fedora Core 4 In-Reply-To: <200510021533.15145.gambas@...1...> Message-ID: <20051004171230.53397.qmail@...1155...> Hi! Thanks a lot but I got the following message! Cannot write file: /usr/share/gambas/info/gb.db.info any clue? --- Benoit Minisini wrote: > On Wednesday 28 September 2005 04:24, Naveen > Agarawal wrote: > > Hi all! > > > > I have also got the same message i.e. component > > missing fform.createcontrol.833. The terminal > window > > also shows following messages: > > > > Warning: cannot find > /usr/share/gambas/info/gb.info > > Warning: cannot find > /usr/share/gambas/info/gb.qt.info > > Warning: cannot find > /usr/share/gambas/info/gb.qt.info > > Warning: cannot find > /usr/share/gambas/info/gb.qt.info > > > > What could be the reason? I installed using the > > command yum install gambas. > > > > Regards! > > > > The binary packages seem to be broken. You can > regenerate the missing *.info > files by hand by running 'gbi -a' as root after > having the packages > installed. > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, > downloads, discussions, > and more. > http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Every body has his shares of ups and downs but one should never say no to life. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From j.m.curl at ...17... Tue Oct 4 21:53:55 2005 From: j.m.curl at ...17... (Jason Curl) Date: Tue, 4 Oct 2005 21:53:55 +0200 Subject: [Gambas-user] Installing gambas on Fedora Core 4 In-Reply-To: <20051004171230.53397.qmail@...1155...> Message-ID: Are you running as root? i.e. instead of $ gbi -a you see # gbi -a -----Original Message----- From: gambas-user-admin at lists.sourceforge.net [mailto:gambas-user-admin at lists.sourceforge.net] On Behalf Of Naveen Agarawal Sent: Tuesday, 4 October 2005 19:13 To: gambas-user at lists.sourceforge.net Subject: Re: [Gambas-user] Installing gambas on Fedora Core 4 Hi! Thanks a lot but I got the following message! Cannot write file: /usr/share/gambas/info/gb.db.info any clue? --- Benoit Minisini wrote: > On Wednesday 28 September 2005 04:24, Naveen > Agarawal wrote: > > Hi all! > > > > I have also got the same message i.e. component > > missing fform.createcontrol.833. The terminal > window > > also shows following messages: > > > > Warning: cannot find > /usr/share/gambas/info/gb.info > > Warning: cannot find > /usr/share/gambas/info/gb.qt.info > > Warning: cannot find > /usr/share/gambas/info/gb.qt.info > > Warning: cannot find > /usr/share/gambas/info/gb.qt.info > > > > What could be the reason? I installed using the > > command yum install gambas. > > > > Regards! > > > > The binary packages seem to be broken. You can > regenerate the missing *.info > files by hand by running 'gbi -a' as root after > having the packages > installed. > > Regards, > > -- > Benoit Minisini > mailto:gambas at ...1... From tetsuo at ...756... Wed Oct 5 10:20:40 2005 From: tetsuo at ...756... (tetsuo) Date: Wed, 05 Oct 2005 10:20:40 +0200 Subject: [Gambas-user] how to use embedder? Message-ID: <43438CD8.20406@...756...> Hi all, someone knows how to use "embedder" component in gambas 1.9.20? I didn't find anything about it... From john.bartlett at ...427... Wed Oct 5 15:38:00 2005 From: john.bartlett at ...427... (John Bartlett) Date: Wed, 5 Oct 2005 15:38:00 +0200 Subject: [Gambas-user] String variable limited to 128 characters. Message-ID: <200510051538.00724.john.bartlett@...427...> All, I am trying to generate some long strings and the length seems to be limited to 128 characters. Am I doing anything wrong? -- Regards, John Bartlett Managing Director BCi Ltd Woodbine Cottage Eastleigh Road Havant Hampshire PO9 2NY T: +44 (0) 2392 477950 F: +44 (0) 2392 477951 M: +44 (0) 7801 959393 E: john.bartlett at ...427... W: www.bci.eu.com ________________________________________________________________________ This e-mail correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it. You should delete it from your system and notify the sender immediately. Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of BCi Ltd. ________________________________________________________________________ From naveenagrawal at ...43... Wed Oct 5 18:56:08 2005 From: naveenagrawal at ...43... (Naveen Agarawal) Date: Wed, 5 Oct 2005 09:56:08 -0700 (PDT) Subject: [Gambas-user] Installing gambas on Fedora Core 4 In-Reply-To: Message-ID: <20051005165608.47126.qmail@...1156...> Hi Thanks a lot! I was running as a root. Actually there is no such folder. After checking for info files I came to know that these files are stored in /opt/gambas/share/gambas/info. I then manually created a folder under /usr/share and copied the files. It worked fine afterwards. But still I would like to know what was wrong with the installation? Regards! --- Jason Curl wrote: > Are you running as root? i.e. instead of > > $ gbi -a > > you see > > # gbi -a > > -----Original Message----- > From: gambas-user-admin at lists.sourceforge.net > [mailto:gambas-user-admin at lists.sourceforge.net] On > Behalf Of Naveen > Agarawal > Sent: Tuesday, 4 October 2005 19:13 > To: gambas-user at lists.sourceforge.net > Subject: Re: [Gambas-user] Installing gambas on > Fedora Core 4 > > Hi! > > Thanks a lot but I got the following message! > > Cannot write file: /usr/share/gambas/info/gb.db.info > > any clue? > > --- Benoit Minisini > wrote: > > > On Wednesday 28 September 2005 04:24, Naveen > > Agarawal wrote: > > > Hi all! > > > > > > I have also got the same message i.e. component > > > missing fform.createcontrol.833. The terminal > > window > > > also shows following messages: > > > > > > Warning: cannot find > > /usr/share/gambas/info/gb.info > > > Warning: cannot find > > /usr/share/gambas/info/gb.qt.info > > > Warning: cannot find > > /usr/share/gambas/info/gb.qt.info > > > Warning: cannot find > > /usr/share/gambas/info/gb.qt.info > > > > > > What could be the reason? I installed using the > > > command yum install gambas. > > > > > > Regards! > > > > > > > The binary packages seem to be broken. You can > > regenerate the missing *.info > > files by hand by running 'gbi -a' as root after > > having the packages > > installed. > > > > Regards, > > > > -- > > Benoit Minisini > > mailto:gambas at ...1... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, > downloads, discussions, > and more. > http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Every body has his shares of ups and downs but one should never say no to life. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com From gambas-user at lists.sourceforge.net Wed Oct 5 22:20:29 2005 From: gambas-user at lists.sourceforge.net (Werner Staudacher) Date: Wed, 05 Oct 2005 20:20:29 +0000 Subject: [Gambas-user] String variable limited to 128 characters. In-Reply-To: <200510051538.00724.john.bartlett@...427...> References: <200510051538.00724.john.bartlett@...427...> Message-ID: <4344358D.5020604@lists.sourceforge.net> John Bartlett schrieb: >All, > >I am trying to generate some long strings and the length seems to be limited >to 128 characters. Am I doing anything wrong? > > > I think so, yes. I handle filecontent in variable up to 2000 chars or more. Do you have samplecode how you do it? From gambas at ...1... Wed Oct 5 21:36:13 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Oct 2005 21:36:13 +0200 Subject: [Gambas-user] Gambas 2 install files In-Reply-To: <4341A923.8090704@...512...> References: <433D37BC.9090806@...1...> <4341A35A.20800@...1127...> <4341A923.8090704@...512...> Message-ID: <200510052136.14089.gambas@...1...> On Monday 03 October 2005 23:56, Laurent Carlier wrote: > K. Windle a ?crit : > > OK but thats what was done while i started gambas 2 from a terminal so > > how do i fox that ? > > Try to replace the package.module from gambas2 source ide > (app/src/gambas2) with the following file and rebuild the ide. > > So rebuild the package and try if it work. > > If you can't, a quick dirty fiw should be to make a symlink between > /usr/bin/gba and /usr/bin/gba2 > > Regards, Making packages from the gambas2 current IDE is not supported! The executed code is the old gambas1 IDE code... Regards, -- Benoit Minisini From gambas at ...1... Wed Oct 5 21:37:11 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Oct 2005 21:37:11 +0200 Subject: [Gambas-user] Firebird driver In-Reply-To: <43406008.6070704@...1...> References: <433D37BC.9090806@...1...> <433DB46B.4070206@...889...> <43406008.6070704@...1...> Message-ID: <200510052137.12060.gambas@...1...> On Monday 03 October 2005 00:32, PV wrote: > On 30/09/2005 23:55, Daniel wrote: > > ok > > after you have installed gb.db.firebird, you make this command > > 1) ./reconfig _#### significant #### > > _1.a) rm makefile in ./gb.db.firebird and in ./gb.db.firebird/src > > 2) ./configure > > 3) make clean > > 4) make > > 5) move the libs ./src/.libs/gb.db.firebird.so gb.db.firebird.so.0 and > > gb.db.firebird.so.0.0.0 in /usr/lib > > This is what I've already done before, I tried once again but with no > success: Gambas still raises signal #6 and dies. > > Here's the offending code: > > PUBLIC SUB Button1_Click() > > DIM c AS NEW Connection > > WITH c > .Type = "firebird" > .Host = "localhost" > .Name = "/opt/firebird/data/mydb.gdb" > .Login = "blabla" > .Password = "blabla" > END WITH > > TRY c.Open > IF ERROR THEN > message("Error: " & Error.Text) > END IF > > END > > Stepping through the code I can see that the crash occurs (not > surprisingly) on the Open instruction. > > I have full access to the db and the directory tree containing it, user > login and password do exist and I can connect without any problems to the > db through isql. > Also, no problems to connect to an existing sqlite3 db in Gambas. > > Can you see any glitches in the above code or is anything missing? > > > Thanks, > Piero > If you get such a crash, try to get a backtrace with gdb (as explained on the website), and send it Daniel... Regards, -- Benoit Minisini From gambas at ...1... Wed Oct 5 21:39:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Oct 2005 21:39:28 +0200 Subject: [Gambas-user] Image storing and retrieving In-Reply-To: <43410EE0.3020009@...1153...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> <43410EE0.3020009@...1153...> Message-ID: <200510052139.28977.gambas@...1...> On Monday 03 October 2005 12:58, Marcelo Confortino wrote: > Hi! Does anybody know how to store and retrieve an image in a MySQL > table? I succeeded in storing a jpeg in a medium blob or blob column, > using the 'load_file' MySQL function, but when I try to move the blob to > a PictureBox I get the message 'Wanted picture, got string instead'. Any > ideas? Thanks. > Blobs are not supported yet, because of the many differences between the different DBMS. Try to: - Put the blob string in a temporary file. - Give this file an extension that matches the picture format. - Load the file in a Picture object. - Set MyPictureBox.Picture with this picture object. Regards, -- Benoit Minisini From gambas at ...1... Wed Oct 5 21:45:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Oct 2005 21:45:05 +0200 Subject: [Gambas-user] Developing a gambas component using gambas. In-Reply-To: <1128423719.18978.14.camel@...999...> References: <1128423719.18978.14.camel@...999...> Message-ID: <200510052145.05656.gambas@...1...> On Tuesday 04 October 2005 13:01, Dani Santos wrote: > Hi all. Hi, > > I'm trying to make a gambas component using gambas (C/C+ is too much to > me). So you should write this mail on the devel mailing-list... > > I followed J.L. Redrejo advices and donloaded the gambas-gb-form source > code to see how is it built. I have made several progress but I've got > some questions to make: > > - ?How do I asign the icon that is shown in the gambas-toolbox to my > gambas component? The icons are hard-coded in the IDE at the moment. They should be put outside, in a directory like /usr/share/gambas2/controls for example. > - ?How can I have a preview of the control I'm making in design-time? I > mean with this that I only see a slashed rectangle, but I don't see the > components it is made with. For instance, if I use the gb.form component > in a application and I put a ColorChooser component in a form, I can see > how it is perfectly with all it's controls, but not so with my > component. You can see a preview only if the IDE uses the component the control belongs to. Otherwise, you only see a dashed frame. So if your component is not gb.qt, gb.form or gb.qt.ext, you will never see it! I'm thinking about a way to specify a standard gb.qt control for drawing the real control, with a "_DrawWith" property or something like that. > > Finally, this is the script I use to add my component to the list of > components of gambas. It's only for the test phase. ?Is it correct? ?Is > there a betterway? > daniel at ...1154...:~/srcGambas/gb.dycontrols$ cat instala-componente.sh > #!/bin/sh > > case $1 in > -a) > cp -vf gb.dycontrols/gb.dycontrols.* /usr/lib/gambas2 > chmod 644 /usr/lib/gambas2/gb.dycontrols.component > chmod 755 /usr/lib/gambas2/gb.dycontrols.gambas > cp -vf > gb.dycontrols/.info /usr/share/gambas2/info/gb.dycontrols.info > cp -vf > gb.dycontrols/.list /usr/share/gambas2/info/gb.dycontrols.list > break;; > -d) > rm -vf /usr/lib/gambas2/gb.dycontrols.component > rm -vf /usr/lib/gambas2/gb.dycontrols.gambas > rm -vf /usr/share/gambas2/info/gb.dycontrols.info > rm -vf /usr/share/gambas2/info/gb.dycontrols.list > break;; > esac > > NOTES: > - You must be logged as root to use the script: > - ./instala-componente.sh -a -> Installs the component. > - ./instala-componente.sh -d -> Removes the component. > You can't do that. Components written in Gambas must be inserted into the 'comp' directory inside the source tree, and you must update the ORDER file in it, to tell which order must be used when compiling these components. So when your component is finished, send it me and I will add it into the main source tree. Like other components written in C/C++. I didn't have the time to document all that yet... Sorry :-) > > Regards. Regards, -- Benoit Minisini From gambas at ...1... Wed Oct 5 21:49:35 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 5 Oct 2005 21:49:35 +0200 Subject: [Gambas-user] how to use embedder? In-Reply-To: <43438CD8.20406@...756...> References: <43438CD8.20406@...756...> Message-ID: <200510052149.35945.gambas@...1...> On Wednesday 05 October 2005 10:20, tetsuo wrote: > Hi all, someone knows how to use "embedder" component in gambas 1.9.20? > I didn't find anything about it... > Quickly: - MyEmbedder.Embed(X11WindowId) to embed an existing window. - MyEmbedded.Discard to cancel the embedding. Or you can execute a child process by giving it the MyEmbedder.Id as argument, and, in the child process, call 'Application.Embedder = MyEmbedderIdArgument' to automatically embed the next opened window inside the parent process Embedder control. Regards, -- Benoit Minisini From mconfortino at ...1153... Wed Oct 5 21:50:02 2005 From: mconfortino at ...1153... (Marcelo Confortino) Date: Wed, 05 Oct 2005 16:50:02 -0300 Subject: [Gambas-user] Image storing and retrieving In-Reply-To: <200510052139.28977.gambas@...1...> References: <78f4b7670509300947g6efee60m5c1a0f319c3483dd@...627...> <43410EE0.3020009@...1153...> <200510052139.28977.gambas@...1...> Message-ID: <43442E6A.1010701@...1153...> Benoit Minisini escribi?: >On Monday 03 October 2005 12:58, Marcelo Confortino wrote: > > >>Hi! Does anybody know how to store and retrieve an image in a MySQL >>table? I succeeded in storing a jpeg in a medium blob or blob column, >>using the 'load_file' MySQL function, but when I try to move the blob to >>a PictureBox I get the message 'Wanted picture, got string instead'. Any >>ideas? Thanks. >> >> >> > >Blobs are not supported yet, because of the many differences between the >different DBMS. > >Try to: >- Put the blob string in a temporary file. >- Give this file an extension that matches the picture format. >- Load the file in a Picture object. >- Set MyPictureBox.Picture with this picture object. > >Regards, > > > Thanks, Benoit. I've already done that, and it works. I was looking for something simpler. By the way, is it possible to do something like dim a, b, c, d as string when we need to declare several variables of the same type? Thanks again. M. From sourceforge-raindog2 at ...94... Thu Oct 6 00:25:00 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 5 Oct 2005 18:25:00 -0400 Subject: [Gambas-user] some gambas packages available again Message-ID: <200510051825.00885.sourceforge-raindog2@...94...> While I'm still running www.kudla.org off of my laptop, I put the most recent Mandriva packages I'd made of Gambas into the root directory of the web server. Currently, that means 1.0.9 (I know, stale...) and 1.9.20 are available. My laptop is somewhere between LE 2005 and cooker, so your mileage may vary. I'm working on a way to get my 10.1 packages on the web till I get the new server built, and I'll post when I do. Rob From itadmin at ...1141... Thu Oct 6 04:00:08 2005 From: itadmin at ...1141... (felix) Date: Thu, 06 Oct 2005 10:00:08 +0800 Subject: [Gambas-user] Re: Installing gambas on Fedora Core 4 In-Reply-To: <20051005030956.20F6D88090@...763...> References: <20051005030956.20F6D88090@...763...> Message-ID: <43448528.4070401@...1141...> gambas-user-request at lists.sourceforge.net wrote: >From: "Jason Curl" >To: >Subject: RE: [Gambas-user] Installing gambas on Fedora Core 4 >Date: Tue, 4 Oct 2005 21:53:55 +0200 >Reply-To: gambas-user at lists.sourceforge.net > >Are you running as root? i.e. instead of > >$ gbi -a > >you see > ># gbi -a > I got the same error message, and I was running as root. When I tried looking at the directory /usr/share/gambas/info I found it doesn't exist. From kchularrit at ...734... Thu Oct 6 03:50:48 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Wed, 5 Oct 2005 18:50:48 -0700 Subject: [Gambas-user] How to do a "confirm" window? Message-ID: <200510051850.48541.kchularrit@...734...> I've been trying to put together a "confirm" window for program exit and just cannot get the thing to work. It's just one window with two buttons marked "Exit" and "Cancel". When I select "Exit" I want to create a new "confirm" window to see if the user really wants to exit. I've tried everything I can think of and it's driving me nuts! Any help appreciated, apologies for length. Here is the main Class file "FMain.class" FMain.form is just a window with two buttons, "Exit" and "Cancel". ' Gambas class file STATIC PUBLIC ExitFlag AS Boolean ' TRUE = Exit, FALSE = Don't Exit STATIC PUBLIC SUB _init() ExitFlag = FALSE END STATIC PUBLIC SUB _exit() END PUBLIC SUB _new() END PUBLIC SUB _free() END STATIC PUBLIC FUNCTION Run() AS Boolean DIM hForm AS Form hForm = NEW FMain ' CExit.Visible = FALSE ' CExit.InExitScreen = FALSE RETURN hForm.ShowModal() END PUBLIC SUB btnExit_Click() ME.Minimized = TRUE FExit.InExitScreen = TRUE FExit.Confirm() WHILE FExit.InExitScreen = TRUE ' Do Nothing WEND IF ExitFlag <> FALSE THEN ME.Close ENDIF ' CExit.Delete ' CExit.InExitScreen = FALSE ME.Minimized = FALSE ME.Refresh END PUBLIC SUB btnCancel_Click() ME.Close() END "End of FMain.class Here is the FExit.class file: ' This should open a window with two buttons, "Yes" and "No". "Yes" sets an exit flag in FMain.class, while selecting either closes the confirm' window. ' Gambas class file PUBLIC InExitScreen AS Boolean PUBLIC SUB Confirm() DIM hExitScreen AS FExit ' DIM btnYes AS Button ' DIM btnNo AS Button hExitScreen = NEW FExit FMain.ExitFlag = FALSE ' hExitScreen.SetFocus hExitScreen.Show hExitScreen.SetFocus ' hExitScreen.Enabled = TRUE ' hExitScreen.Width = 200 ' hExitScreen.Refresh ' hExitScreen.Height = 100 hExitScreen.Refresh ' btnYes = NEW btnYes btnYes.Show btnYes.Refresh ' btnYes.x = 8 ' btnYes.y = 8 ' btnYes.Text = "Yes" ' btnYes.Refresh hExitScreen.Refresh ' btnNo = NEW button(hExitScreen) AS "btnNo" ' btnNo.x = 108 ' btnNo.y = 8 ' btnNo.Text = "No" btnNo.Show btnNo.Refresh ' hExitScreen.Refresh ' hExitScreen.Show hExitScreen.Refresh WHILE FExit.InExitScreen = TRUE ' Do Nothing WEND END PUBLIC SUB btnYes_Click() InExitScreen = FALSE FMain.ExitFlag = TRUE END PUBLIC SUB btnNo_Click() InExitScreen = FALSE END ' End of FExit.class From itadmin at ...1141... Thu Oct 6 05:27:52 2005 From: itadmin at ...1141... (felix) Date: Thu, 06 Oct 2005 11:27:52 +0800 Subject: [Gambas-user] Re: Installing gambas on Fedora Core 4 In-Reply-To: <20051006030949.2D8E5891EE@...763...> References: <20051006030949.2D8E5891EE@...763...> Message-ID: <434499B8.90104@...1141...> Sorry. My message is actually "Cannot write file: /usr/share/gambas/info/gb.xml.libxml.info." The directory /usr/share/gambas does not exist, and neither do /opt/gambas/share/gambas/info. In fact, /opt is empty on my box. Thanks. >I got the same error message, and I was running as root. > >When I tried looking at the directory /usr/share/gambas/info I found >it doesn't exist. > From tetsuo at ...756... Thu Oct 6 10:04:19 2005 From: tetsuo at ...756... (tetsuo) Date: Thu, 06 Oct 2005 10:04:19 +0200 Subject: [Gambas-user] how to use embedder? In-Reply-To: <200510052149.35945.gambas@...1...> References: <43438CD8.20406@...756...> <200510052149.35945.gambas@...1...> Message-ID: <4344DA83.1080009@...756...> Benoit Minisini wrote: > On Wednesday 05 October 2005 10:20, tetsuo wrote: > >>Hi all, someone knows how to use "embedder" component in gambas 1.9.20? >>I didn't find anything about it... >> > > > Quickly: > > - MyEmbedder.Embed(X11WindowId) to embed an existing window. > - MyEmbedded.Discard to cancel the embedding. > > Or you can execute a child process by giving it the MyEmbedder.Id as argument, > and, in the child process, call 'Application.Embedder = MyEmbedderIdArgument' > to automatically embed the next opened window inside the parent process > Embedder control. > > Regards, > ok, thanks benoit ... but i have another problem now: I've tried to embed a "xterm" window manually opened from WM , and it works perfectly. In this case i have got the WindowID from "xwininfo"; how can i get the X11WindowId of external window launched from a gambas application (for example an xterm started with EXEC or with SHELL)? ...and then, is it possible to obtain the X11WindowsId of an external application launched from extern of gambas application (pheraps i can get the list of opened windows in the WM)? From danielcampos at ...282... Thu Oct 6 10:54:03 2005 From: danielcampos at ...282... (Daniel Campos) Date: Thu, 06 Oct 2005 08:54:03 +0000 Subject: [Gambas-user] gb.gtk.pdf 051006 Message-ID: <1128588843.7930.1.camel@...1128...> Hi: A new version of the gb.gtk.pdf component is available: it adds the "Info" interface so you can receive information about the PDF document (author, creation date...) Regards, D. Campos From gambas at ...1... Thu Oct 6 13:22:42 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 6 Oct 2005 13:22:42 +0200 Subject: [Gambas-user] how to use embedder? In-Reply-To: <4344DA83.1080009@...756...> References: <43438CD8.20406@...756...> <200510052149.35945.gambas@...1...> <4344DA83.1080009@...756...> Message-ID: <200510061322.42891.gambas@...1...> On Thursday 06 October 2005 10:04, tetsuo wrote: > Benoit Minisini wrote: > > On Wednesday 05 October 2005 10:20, tetsuo wrote: > >>Hi all, someone knows how to use "embedder" component in gambas 1.9.20? > >>I didn't find anything about it... > > > > Quickly: > > > > - MyEmbedder.Embed(X11WindowId) to embed an existing window. > > - MyEmbedded.Discard to cancel the embedding. > > > > Or you can execute a child process by giving it the MyEmbedder.Id as > > argument, and, in the child process, call 'Application.Embedder = > > MyEmbedderIdArgument' to automatically embed the next opened window > > inside the parent process Embedder control. > > > > Regards, > > ok, thanks benoit ... but i have another problem now: > > I've tried to embed a "xterm" window manually opened from WM , and it > works perfectly. In this case i have got the WindowID from "xwininfo"; > how can i get the X11WindowId of external window launched from a gambas > application (for example an xterm started with EXEC or with SHELL)? > > ...and then, is it possible to obtain the X11WindowsId of an external > application launched from extern of gambas application (pheraps i can > get the list of opened windows in the WM)? > > The application you want to embed must have an option to pass the Embedder window id (like mplayer), or have a way to give back its own main window id (like all KDE applications with dcop). As for xterm, you must look in the man page to see if there is a way to get the window id. Otherwise, you can search the opened main windows with Desktop.Find(Title, Application, Role) that returns an array of windows id that match the specified criteria. Regards, -- Benoit Minisini From tetsuo at ...756... Thu Oct 6 14:33:56 2005 From: tetsuo at ...756... (tetsuo) Date: Thu, 06 Oct 2005 14:33:56 +0200 Subject: [Gambas-user] how to use embedder? In-Reply-To: <200510061322.42891.gambas@...1...> References: <43438CD8.20406@...756...> <200510052149.35945.gambas@...1...> <4344DA83.1080009@...756...> <200510061322.42891.gambas@...1...> Message-ID: <434519B4.70605@...756...> > As for xterm, you must look in the man page to see if there is a way to get > the window id. > > Otherwise, you can search the opened main windows with Desktop.Find(Title, > Application, Role) that returns an array of windows id that match the > specified criteria. > > Regards, xterm has a env-variable "WINDOWID", now it works for me very well. In other different cases i'll use the desktop.find() way. Many thanks for helps, gambas is GREAT!! :D From comtux at ...626... Thu Oct 6 18:45:00 2005 From: comtux at ...626... (Steve Starr) Date: Thu, 6 Oct 2005 12:45:00 -0400 Subject: [Gambas-user] Re: how to use embedder? In-Reply-To: <434519B4.70605@...756...> References: <43438CD8.20406@...756...> <200510052149.35945.gambas@...1...> <4344DA83.1080009@...756...> <200510061322.42891.gambas@...1...> <434519B4.70605@...756...> Message-ID: <78f4b7670510060945h46ea9eb8yc06835d3fc58778d@...627...> tetsuo could you tell us step by step exactly how you used the embedder component? possible post some code. Thanks. :) On 10/6/05, tetsuo wrote: > > As for xterm, you must look in the man page to see if there is a way to > get > > the window id. > > > > Otherwise, you can search the opened main windows with Desktop.Find(Title, > > > Application, Role) that returns an array of windows id that match the > > specified criteria. > > > > Regards, > > > xterm has a env-variable "WINDOWID", now it works for me very well. In > other different cases i'll use the desktop.find() way. > > Many thanks for helps, gambas is GREAT!! :D > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vbtricks at ...18... Thu Oct 6 19:28:33 2005 From: vbtricks at ...18... (VBTricks.de.vu Webmaster) Date: Thu, 06 Oct 2005 19:28:33 +0200 Subject: [Gambas-user] Creating an interface for Lame Message-ID: <43455EC1.4070908@...18...> Hello, I want to write a interface for lame. Therefore I need to run the lame app using some parameters. How do I get the text lame writes to the console to my application (while lame is processing the file), to display a progress bar? Thanks in advance, Stefan -- ___________________________________www.VBTricks.de.vu the free resource for Visual Basic, Gambas and Pascal components, tips & complete projects www: http://www.VBTricks.de.vu mail: vbtricks gmx net _____________________________________________________ From kchularrit at ...734... Fri Oct 7 07:39:05 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Thu, 6 Oct 2005 22:39:05 -0700 Subject: [Gambas-user] Trying to do a "confirm" window (hopefully worded better) Message-ID: <200510062239.05553.kchularrit@...734...> ??I'm trying to do a "confirm" window to ask the user if they really want to exit a program. ?I'm not sure what I'm doing wrong, but it doesn't work. ????????Right now, the program is just one window (FMain.form) with two buttons, created by the Gambas "New Project" command with "Standard Dialog" option. ?I changed the name of the "OK" button to say "Exit", the "Cancel" button was left alone. ????????When the user selects the "Exit" button, I want the main window to minimize and a "Confirm" window to show. ?I have defined the "Confirm" window (FExit.form) to also have two buttons, called "Yes" and "No". ?Selecting either button should close the "Confirm" window and return to the main program. ?Selecting "Yes" should set an exit-flag in the main program, which then exits. ?Selecting "No" should just return to the main program, which should restore the main window. ????????The main window minimizes like it should but the confirm-window never shows. ?When I "un-minimize" the main window, the buttons are blank and do not respond. ????????Can anyone tell me what I'm doing wrong? ?I'm using Gambas 1.9.20 in Debian Sarge from the www.linex.org packages, with "gb", "gb.debug", and "gb.qt" checked in the "components" property of the project file. ????????I'm using a couple of blank WHILE loops to wait for the user to respond- is this appropriate? ?I'm kind of new to event-driven programs and this has me stymied. ????????Here's my main class file. ' Gambas class file ?(FMain.class) ' TRUE = Exit, FALSE = Don't Exit STATIC PUBLIC ExitFlag AS Boolean STATIC PUBLIC SUB _init() ? ? ExitFlag = FALSE END STATIC PUBLIC SUB _exit() END PUBLIC SUB _new() END PUBLIC SUB _free() END STATIC PUBLIC FUNCTION Run() AS Boolean ? ? ' This function was created by Gambas ? ? DIM hForm AS Form ? ? hForm = NEW FMain ? ? RETURN hForm.ShowModal() END PUBLIC SUB btnExit_Click() ? ? ' Minimize Main Window ? ? ME.Minimized = TRUE ? ? ' Show "Confirm" Window ? ? FExit.Confirm() ? ? WHILE FExit.InExitScreen = TRUE ? ? ? ? ' Wait for user to respond to "Confirm" window ? ? WEND ? ? IF ExitFlag <> FALSE THEN ? ? ? ? ' User really wants to exit- do so. ? ? ? ? ME.Close ? ? ENDIF ? ? ' User goofed. ?Return to main program. ? ? ' Restore Main Window ? ? ME.Minimized = FALSE ? ? ME.Refresh END PUBLIC SUB btnCancel_Click() ? ? ' Exit ? ? ME.Close() END ========================================== Here's my "Exit-class" file: ' Gambas class file (FExit.class) ' Exit window - just contains two buttons PUBLIC ExitForm AS FExit ' "Yes" button - user really wants to exit. PUBLIC btnYes AS Button ' "No" button - Oops, return to main. PUBLIC btnNo AS Button ' TRUE = Wait for user to respond to "Confirm" window. PRIVATE StayInLoop AS Boolean ' TRUE = User is in "Confirm" window. PUBLIC InExitScreen AS Boolean PUBLIC SUB _new() ? ? ' Filler ? ? InExitScreen = TRUE END PUBLIC SUB _free() END PUBLIC SUB Confirm() ? ? ' Display new window. ? ? ExitForm = NEW FExit ? ? FExit.Caption = "Confirm" ? ? ' (Try to) Display window. ? ? FExit.Show ? ? FExit.Refresh ? ? ' Create buttons. ? ? btnYes = NEW Button(ME) ? ? btnNo = NEW Button(ME) ? ? FExit.Refresh ? ? ' Set loop flag. ? ? StayInLoop = TRUE ? ? WHILE StayInLoop = TRUE ? ? ? ? ' Wait for user to respond. ? ? WEND ? ? ' Close window. ? ? FExit.Close ? ? ' Clear Exit-window flag. ? ? InExitScreen = FALSE END PUBLIC SUB Yes_Click() ? ? ' Set Program-Exit flag in main routine. ? ? FMain.ExitFlag = TRUE ? ? ' Clear loop-flag. ? ? StayInLoop = FALSE END PUBLIC SUB No_Click() ? ? ' Clear loop-flag. ? ? StayInLoop = FALSE END ================================================ From danielcampos at ...282... Fri Oct 7 08:22:13 2005 From: danielcampos at ...282... (Daniel Campos) Date: Fri, 07 Oct 2005 08:22:13 +0200 Subject: [Gambas-user] Re: how to use embedder? In-Reply-To: <78f4b7670510060945h46ea9eb8yc06835d3fc58778d@...627...> References: <43438CD8.20406@...756...> <200510052149.35945.gambas@...1...> <4344DA83.1080009@...756...> <200510061322.42891.gambas@...1...> <434519B4.70605@...756...> <78f4b7670510060945h46ea9eb8yc06835d3fc58778d@...627...> Message-ID: <1128666133.4884.1.camel@...1128...> Here's a sample. I would use that feature only for applications that support the Xembed protocol... Regards, D. Campos El jue, 06-10-2005 a las 12:45 -0400, Steve Starr escribi?: > tetsuo could you tell us step by step exactly how you used the > embedder component? > possible post some code. > > Thanks. :) > On 10/6/05, tetsuo wrote: > > > As for xterm, you must look in the man page to see if there is a way to > > get > > > the window id. > > > > > > Otherwise, you can search the opened main windows with Desktop.Find(Title, > > > > > Application, Role) that returns an array of windows id that match the > > > specified criteria. > > > > > > Regards, > > > > > > xterm has a env-variable "WINDOWID", now it works for me very well. In > > other different cases i'll use the desktop.find() way. > > > > Many thanks for helps, gambas is GREAT!! :D > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > 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: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > 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: MyEmbed.tar.gz Type: application/x-compressed-tar Size: 1054 bytes Desc: not available URL: From picander78 at ...325... Fri Oct 7 08:58:45 2005 From: picander78 at ...325... (Marco Gusy) Date: Fri, 7 Oct 2005 08:58:45 +0200 Subject: [Gambas-user] Creating an interface for Lame In-Reply-To: <43455EC1.4070908@...18...> References: <43455EC1.4070908@...18...> Message-ID: <200510070858.45406.picander78@...325...> Alle 19:28, gioved? 06 ottobre 2005, VBTricks.de.vu Webmaster ha scritto: > Hello, > > I want to write a interface for lame. Therefore I need to run the lame > app using some parameters. How do I get the text lame writes to the > console to my application (while lame is processing the file), to > display a progress bar? > > > Thanks in advance, > > Stefan I already did it somehow... If you want I send you my sources Marco From mike_keehan at ...679... Fri Oct 7 09:10:22 2005 From: mike_keehan at ...679... (Mike Keehan) Date: Fri, 07 Oct 2005 08:10:22 +0100 Subject: [Gambas-user] Trying to do a "confirm" window (hopefully worded better) In-Reply-To: <200510062239.05553.kchularrit@...734...> References: <200510062239.05553.kchularrit@...734...> Message-ID: <43461F5E.6070500@...679...> Kchula-Rrit wrote: > I'm trying to do a "confirm" window to ask the user if they really want to > exit a program. I'm not sure what I'm doing wrong, but it doesn't work. > > You could try the 'Message' class. Look it up in the Help Browser. Message.Question is defined as follows:- "Displays a question message box, with up to three buttons. The index of the button clicked by the user is returned. " Mike. From tetsuo at ...756... Fri Oct 7 12:26:06 2005 From: tetsuo at ...756... (tetsuo) Date: Fri, 07 Oct 2005 12:26:06 +0200 Subject: [Gambas-user] Re: how to use embedder? In-Reply-To: <78f4b7670510060945h46ea9eb8yc06835d3fc58778d@...627...> References: <43438CD8.20406@...756...> <200510052149.35945.gambas@...1...> <4344DA83.1080009@...756...> <200510061322.42891.gambas@...1...> <434519B4.70605@...756...> <78f4b7670510060945h46ea9eb8yc06835d3fc58778d@...627...> Message-ID: <43464D3E.4010901@...756...> Steve Starr wrote: > tetsuo could you tell us step by step exactly how you used the > embedder component? > possible post some code. > > Thanks. :) this is the code; it need of a form and an object-embedder named Embedder1... but i don't like it: PRIVATE shellProc AS Process PUBLIC SUB Form_Open() shellProc = EXEC ["Eterm", "--title", "keyword"] WAIT 1'this is a bad condition PRINT desktop.Find("keyword")[0] Embedder1.Embed(desktop.Find("keyword")[0]) END PUBLIC SUB Process_Kill() ME.close END PUBLIC SUB Form_Close() Embedder1.Discard shellProc.Kill END Problems and bad conditions for this code: the EXEC and SHELL functions, without WAIT flag, return imediatly when the process is created (but not the windowID), so the desktop.find() method called do not recognized new window. For this problem i thinked to use a temporized WAIT, but it depend on the loads and performaces of the local system; so this is a BAD solution. When the X11-terminals starts they write the WINDOWID env-variable; i could use -e option for execute "echo $WINDOWID". But i don't know how to integrate this action in gambas; i can't read this line from gambas, and the -e option close the term after the esxecution of command. Pheraps the $WINDOWID way is wrong; another bad conseguence is that it's valid only form terms and not for each kind of X11-window. I didn't understand how to use Application.embedder. Pheraps it is only possible good way... I didn't understand the example MyEmbed of Daniel Campos :D From gambas at ...1... Fri Oct 7 14:06:57 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 7 Oct 2005 14:06:57 +0200 Subject: [Gambas-user] Trying to do a "confirm" window (hopefully worded better) In-Reply-To: <200510062239.05553.kchularrit@...734...> References: <200510062239.05553.kchularrit@...734...> Message-ID: <200510071406.57986.gambas@...1...> On Friday 07 October 2005 07:39, Kchula-Rrit wrote: > ??I'm trying to do a "confirm" window to ask the user if they really want > to exit a program. ?I'm not sure what I'm doing wrong, but it doesn't work. > > ????????Right now, the program is just one window (FMain.form) with two > buttons, created by the Gambas "New Project" command with "Standard Dialog" > option. ?I changed the name of the "OK" button to say "Exit", the "Cancel" > button was left alone. > > ????????When the user selects the "Exit" button, I want the main window to > minimize and a "Confirm" window to show. ?I have defined the "Confirm" > window (FExit.form) to also have two buttons, called "Yes" and "No". > ?Selecting either button should close the "Confirm" window and return to > the main program. ?Selecting "Yes" should set an exit-flag in the main > program, which then exits. ?Selecting "No" should just return to the main > program, which should restore the main window. > > ????????The main window minimizes like it should but the confirm-window > never shows. ? > When I "un-minimize" the main window, the buttons are blank > and do not respond. > > ????????Can anyone tell me what I'm doing wrong? ?I'm using Gambas 1.9.20 > in Debian Sarge from the www.linex.org packages, with "gb", "gb.debug", and > "gb.qt" checked in the "components" property of the project file. > > ????????I'm using a couple of blank WHILE loops to wait for the user to > respond- is this appropriate? ?I'm kind of new to event-driven programs and > this has me stymied. > > ????????Here's my main class file. > ' Gambas class file ?(FMain.class) > > ' TRUE = Exit, FALSE = Don't Exit > STATIC PUBLIC ExitFlag AS Boolean > > STATIC PUBLIC SUB _init() > > ? ? ExitFlag = FALSE > > END > > STATIC PUBLIC SUB _exit() > > END > > PUBLIC SUB _new() > > END > > PUBLIC SUB _free() > > END > > STATIC PUBLIC FUNCTION Run() AS Boolean > > ? ? ' This function was created by Gambas > ? ? DIM hForm AS Form > > ? ? hForm = NEW FMain > > ? ? RETURN hForm.ShowModal() > > END > > PUBLIC SUB btnExit_Click() > > ? ? ' Minimize Main Window > ? ? ME.Minimized = TRUE > > ? ? ' Show "Confirm" Window > ? ? FExit.Confirm() > > ? ? WHILE FExit.InExitScreen = TRUE > ? ? ? ? ' Wait for user to respond to "Confirm" window This is an infinite loop, it never ends. You must understand that GUI programming is event loop driver, and what an event loop is exactly. In other words, nothing happens in the GUI while you are executing Gambas code, *unless* you call the WAIT instruction. But do not implement your own event loop by looping around the WAIT instruction. Just use Form.Show, Form.ShowModal and Form.Close. So you must do FExit.ShowModal(), so that the FExit form is shown as a dialog. This function returns when FExit is closed. > ? ? WEND > > ? ? IF ExitFlag <> FALSE THEN > ? ? ? ? ' User really wants to exit- do so. > ? ? ? ? ME.Close > ? ? ENDIF > > ? ? ' User goofed. ?Return to main program. > ? ? ' Restore Main Window > ? ? ME.Minimized = FALSE > ? ? ME.Refresh > > END > > PUBLIC SUB btnCancel_Click() > > ? ? ' Exit > ? ? ME.Close() > > END > ========================================== > > Here's my "Exit-class" file: > ' Gambas class file (FExit.class) > > ' Exit window - just contains two buttons > PUBLIC ExitForm AS FExit > > ' "Yes" button - user really wants to exit. > PUBLIC btnYes AS Button > > ' "No" button - Oops, return to main. > PUBLIC btnNo AS Button > > ' TRUE = Wait for user to respond to "Confirm" window. > PRIVATE StayInLoop AS Boolean > > ' TRUE = User is in "Confirm" window. > PUBLIC InExitScreen AS Boolean > > > PUBLIC SUB _new() > > > ? ? ' Filler > ? ? InExitScreen = TRUE > > END > > > PUBLIC SUB _free() > > > END > > PUBLIC SUB Confirm() > > > ? ? ' Display new window. > ? ? ExitForm = NEW FExit > ? ? FExit.Caption = "Confirm" > ? ? ' (Try to) Display window. > ? ? FExit.Show > ? ? FExit.Refresh > > ? ? ' Create buttons. > ? ? btnYes = NEW Button(ME) > ? ? btnNo = NEW Button(ME) > > ? ? FExit.Refresh > > ? ? ' Set loop flag. > ? ? StayInLoop = TRUE > > ? ? WHILE StayInLoop = TRUE > ? ? ? ? ' Wait for user to respond. This is a loop that never ends too. > ? ? WEND > > ? ? ' Close window. > ? ? FExit.Close > > ? ? ' Clear Exit-window flag. > ? ? InExitScreen = FALSE > > END > > PUBLIC SUB Yes_Click() > > > ? ? ' Set Program-Exit flag in main routine. > ? ? FMain.ExitFlag = TRUE > > ? ? ' Clear loop-flag. > ? ? StayInLoop = FALSE > > END > > PUBLIC SUB No_Click() > > ? ? ' Clear loop-flag. > ? ? StayInLoop = FALSE > > END > > ================================================ > Regards, -- Benoit Minisini From kchularrit at ...734... Fri Oct 7 19:44:16 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Fri, 7 Oct 2005 10:44:16 -0700 Subject: [Gambas-user] Trying to do a "confirm" window (hopefully worded better) In-Reply-To: <200510071406.57986.gambas@...1...> References: <200510062239.05553.kchularrit@...734...> <200510071406.57986.gambas@...1...> Message-ID: <200510071044.16807.kchularrit@...734...> On Friday October 7 2005 05:06 am, Benoit Minisini wrote: > On Friday 07 October 2005 07:39, Kchula-Rrit wrote: > ... > So you must do FExit.ShowModal(), so that the FExit form is shown as a > dialog. This function returns when FExit is closed. On Friday October 7 2005 12:10 am, Mike Keehan wrote: > > You could try the 'Message' class. Look it up in the Help Browser. > Message.Question is defined as follows:- > > "Displays a question message box, with up to three buttons. > The index of the button clicked by the user is returned. " I tried both ways and they worked great! The Message.Question is easier but, since I already have the Exit Window defined and all I think I'll use it. I'll keep the Message.Question as a comment in the code for now, in case I change my mind. The whole "Confirm" routine is gone, as are the infinite loops and the clunky stuff in the FExit.class routine. Perhaps I should explain about the infinite loops. I had initially thought that the GUI and the code ran separately from each other and tried to make the code just wait for the GUI to set the loop-variable to FALSE. My thanks to Mr Minisini for pointing-out how things really work. Gambas is SO cool! K-R. From orven_llantos at ...43... Sat Oct 8 09:37:08 2005 From: orven_llantos at ...43... (Orven Llantos) Date: Sat, 8 Oct 2005 08:37:08 +0100 (BST) Subject: [Gambas-user] gambas + wireless Message-ID: <20051008073708.73786.qmail@...1159...> hi guys, for all those who were suggesting ideas on how to connect gambas to postgre -- THANK YOU VERY MUCH! i was able to do it now and you guys helped me made it. now, i'm into something -- wireless communication using bluetooth. is there a way for us to use gambas in wireless communication? how? im using fedora core 4. -orven Send instant messages to your online friends http://uk.messenger.yahoo.com From gambas at ...1... Sat Oct 8 14:19:54 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 8 Oct 2005 14:19:54 +0200 Subject: [Gambas-user] Come back on the internet... Message-ID: <200510081419.54447.gambas@...1...> Just to say that I finally got back a working internet connection! I have many many mails to process, so to all the people who sent me patches, examples, source code, bugs reports, and so on: be patient! I will release a 1.9.21 as soon as possible (with gtk update, corba component, firebird driver). I need it because I use Gambas in my job, and this version will add a new feature I need - The ability to transparently handle Unix/Windows/Mac newline character sequences. I have no time to really work on Gambas, because my acting studies - I have a *lot* of work there too. This is the reason why I changed so many things during the two summer days. So, for the new IDE, everybody must be *very* patient! Anyway, I will try to post some explanations on the way it will work. Then, maybe it will be possible that other people could work on it. Regards, -- Benoit Minisini From comtux at ...626... Sun Oct 9 13:50:58 2005 From: comtux at ...626... (Steve Starr) Date: Sun, 9 Oct 2005 07:50:58 -0400 Subject: [Gambas-user] DrawingArea & Saveing Pictures Message-ID: <78f4b7670510090450w20f7fbc9n8aa6bd475d6b239c@...627...> Hello everyone :) OK here it goes! What i am trying to do is build a cartooning application. My first problem is actual the drawing part now this code here works but if you move the mouse to fast you just get a bunch of Ellipse's spread out on your DrawingArea. So my question is how to i make this code so no matter how fast you move the mouse when drawing it your line stays solid instead of looking spread out? PUBLIC SUB DrawingArea1_MouseMove() Draw.Begin(DrawingArea1) Draw.FillColor = ColorBox1.Color Draw.ForeColor = ColorBox1.Color draw.FillStyle = 1 Draw.Ellipse (Mouse.X-4, Mouse.Y-4, SpinBox1.Value, SpinBox1.Value) DrawingArea1.Clear Draw.End END And my second question is how can i save what ever i draw on the drawing area as a picture like a png or an JPEG etc? Thanks to all that reply :) From francois.desfontaine at ...402... Sun Oct 9 22:31:02 2005 From: francois.desfontaine at ...402... (Desfontaine =?ISO-8859-1?Q?Fran=E7ois?=) Date: Sun, 09 Oct 2005 20:31:02 +0000 Subject: [Gambas-user] Database application - Sorting records Message-ID: <1128889862.8544.14.camel@...37...> I am testing the possibility to use Gambas to make Mysql database projects. I have found how to add, modify, delete or display records from a MySql table, but I have not found how to sort records. (I have found no possibility for executing a SQL command "SELECT * FROM table ORDER BY field") Have somebody a response to that question ? Thanks. Francois From werda at ...1000... Mon Oct 10 05:00:16 2005 From: werda at ...1000... (Werner) Date: Mon, 10 Oct 2005 11:00:16 +0800 Subject: [Gambas-user] Database application - Sorting records In-Reply-To: <1128889862.8544.14.camel@...37...> References: <1128889862.8544.14.camel@...37...> Message-ID: <4349D940.6070502@...1000...> Desfontaine Fran?ois wrote: >I am testing the possibility to use Gambas to make Mysql database >projects. I have found how to add, modify, delete or display records >from a MySql table, but I have not found how to sort records. >(I have found no possibility for executing a SQL command "SELECT * FROM >table ORDER BY field") >Have somebody a response to that question ? >Thanks. > >Francois > > > Assuming - hConn is a properly opened connection and - res is a result object try the following: res = hConn.Find("people","lastname=&1 AND firstname=&2 ORDER BY birthdate DESC LIMIT 10","Doe","John") It should give you up to 10 people named John Doe sorted descending by birth date. Also of interest to you might be how to use the mysql library functions such as MIN, MAX, AVG, SOUNDEX etc. There was a recent discussion on this under the title "Exotic Mysql Problem". I quote it below. Actually it's a good example why top posting is a bad idea :-) Regards Werner ------------------------------------------------ Thanks, this worked perfectly. However, i dont know whether this is a bug or a feature. Maybe we have to ask MS to solve this mystery. :) nigel at ...38... schrieb: Alex, Not sure how you are using this but I have successfully tested the following: rResult = hConn.Exec("Select max(field) as maxfield from table") . . . PRINT rResult!maxfield Does this help? Nigel Message Received: Sep 29 2005, 08:27 PM From: "Alex Ciric" To: gambas-user at lists.sourceforge.net Cc: Subject: [Gambas-user] Exotic Mysql Problem Hi. In my application i have to use the mysql-macro max(). If i do a query like "select * from table" this works very good with gambas and i am able to use the results for further stuff. But if i do a query like "select max(field) from table" i get an error message "field not found in myqsl table" Does anyone know this behavior or have a workaround? Sincerely alex Ciric From werda at ...1000... Mon Oct 10 05:42:32 2005 From: werda at ...1000... (Werner) Date: Mon, 10 Oct 2005 11:42:32 +0800 Subject: [Gambas-user] Cannot find driver for database: mysql (Oh no, another one) Message-ID: <4349E328.8050607@...1000...> I know the standard answer is: Install mysql devel. There are 2 pc's on an intranet: Machine A: SuSE 9.3 Gambas1.0.11 mysql 4.021-4.2 mysql-Max 4.021-4.2 mysql-client 4.021-4.2 mysql-devel 4.021-4.2 On this machine MySql was downgraded from 4.1xx-xx. Machine B: SuSE9.2 Gambas1.0.11 mysql 4.021-4.6 (suse update from -4.2) mysql-Max 4.021-4.6 (suse update from -4.2) mysql-client 4.021-4.2 mysql-devel 4.021-4.2 On Machine A Gambas can connect to MySql running on itself or on machine B. Both connections work. Machine B cannot connect to MySql at all. I compared the location of the files on both machines and could not find any discrepancies. The devel files are in /usr/include/mysql and are identical as they should be. There is a deadline looming at the end of the week. Please feed me with ideas what I could try. Many thanks. Werner Dahn From jose.santos at ...429... Mon Oct 10 08:40:28 2005 From: jose.santos at ...429... (Dani Santos) Date: Mon, 10 Oct 2005 08:40:28 +0200 Subject: [Gambas-user] Developing a gambas component using gambas. In-Reply-To: <200510052145.05656.gambas@...1...> References: <1128423719.18978.14.camel@...999...> <200510052145.05656.gambas@...1...> Message-ID: <1128926428.3887.8.camel@...999...> Thanks Benoit. I thought that the creation of gambas-based components was more dynamic. The component I am developing will reproduce one ActiveX Component that I used in my VB programmer days to easy the development of the applications but I'm not sure if it will be useful for other. I think I will follow programming my app without that component but I will code all the logic of the component into a class so it will be easy to create the component if people find it useful. Regards. El mi?, 05-10-2005 a las 21:45 +0200, Benoit Minisini escribi?: > On Tuesday 04 October 2005 13:01, Dani Santos wrote: > > Hi all. > > Hi, > > > > > I'm trying to make a gambas component using gambas (C/C+ is too much to > > me). > > So you should write this mail on the devel mailing-list... > > > > > I followed J.L. Redrejo advices and donloaded the gambas-gb-form source > > code to see how is it built. I have made several progress but I've got > > some questions to make: > > > > - ?How do I asign the icon that is shown in the gambas-toolbox to my > > gambas component? > > The icons are hard-coded in the IDE at the moment. They should be put outside, > in a directory like /usr/share/gambas2/controls for example. > > > - ?How can I have a preview of the control I'm making in design-time? I > > mean with this that I only see a slashed rectangle, but I don't see the > > components it is made with. For instance, if I use the gb.form component > > in a application and I put a ColorChooser component in a form, I can see > > how it is perfectly with all it's controls, but not so with my > > component. > > You can see a preview only if the IDE uses the component the control belongs > to. Otherwise, you only see a dashed frame. So if your component is not > gb.qt, gb.form or gb.qt.ext, you will never see it! > > I'm thinking about a way to specify a standard gb.qt control for drawing the > real control, with a "_DrawWith" property or something like that. > > > > > Finally, this is the script I use to add my component to the list of > > components of gambas. It's only for the test phase. ?Is it correct? ?Is > > there a betterway? > > daniel at ...1154...:~/srcGambas/gb.dycontrols$ cat instala-componente.sh > > #!/bin/sh > > > > case $1 in > > -a) > > cp -vf gb.dycontrols/gb.dycontrols.* /usr/lib/gambas2 > > chmod 644 /usr/lib/gambas2/gb.dycontrols.component > > chmod 755 /usr/lib/gambas2/gb.dycontrols.gambas > > cp -vf > > gb.dycontrols/.info /usr/share/gambas2/info/gb.dycontrols.info > > cp -vf > > gb.dycontrols/.list /usr/share/gambas2/info/gb.dycontrols.list > > break;; > > -d) > > rm -vf /usr/lib/gambas2/gb.dycontrols.component > > rm -vf /usr/lib/gambas2/gb.dycontrols.gambas > > rm -vf /usr/share/gambas2/info/gb.dycontrols.info > > rm -vf /usr/share/gambas2/info/gb.dycontrols.list > > break;; > > esac > > > > NOTES: > > - You must be logged as root to use the script: > > - ./instala-componente.sh -a -> Installs the component. > > - ./instala-componente.sh -d -> Removes the component. > > > > You can't do that. Components written in Gambas must be inserted into the > 'comp' directory inside the source tree, and you must update the ORDER file > in it, to tell which order must be used when compiling these components. > > So when your component is finished, send it me and I will add it into the main > source tree. Like other components written in C/C++. > > I didn't have the time to document all that yet... Sorry :-) > > > > > Regards. > > Regards, > -- Jos? Daniel Santos Delgado Programador del IESO Quercus (Malpartida de Plasencia) http://iesoquercus.juntaextremadura.net/dani/ Tfno: 927010850 Fax: 927010851 From gambas at ...1... Mon Oct 10 13:04:47 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 10 Oct 2005 13:04:47 +0200 Subject: [Gambas-user] Developing a gambas component using gambas. In-Reply-To: <1128926428.3887.8.camel@...999...> References: <1128423719.18978.14.camel@...999...> <200510052145.05656.gambas@...1...> <1128926428.3887.8.camel@...999...> Message-ID: <200510101304.47573.gambas@...1...> On Monday 10 October 2005 08:40, Dani Santos wrote: > Thanks Benoit. I thought that the creation of gambas-based components > was more dynamic. More dynamic in which way? > > The component I am developing will reproduce one ActiveX Component that > I used in my VB programmer days to easy the development of the > applications but I'm not sure if it will be useful for other. What does your component do? > > I think I will follow programming my app without that component but I > will code all the logic of the component into a class so it will be easy > to create the component if people find it useful. > > Regards. > Regards, -- Benoit Minisini From vinians at ...927... Mon Oct 10 14:17:15 2005 From: vinians at ...927... (vinians) Date: Mon, 10 Oct 2005 09:17:15 -0300 Subject: [Gambas-user] Getting the 'name' property Message-ID: Hi all, anyone can help-me how to get the 'name' of an object? see this code: FUNCTION GetNamofControls(hObject AS Object) AS String[] DIM hControl AS Control DIM iNumTabs AS Integer DIM i AS Integer DIM sNames AS String sNames = "" FOR EACH hControl IN hObject.Children IF Object.Class(hControl) = "TextBox" OR Object.Class(hControl) = "ComboBox" OR Object.Class(hControl) = "TextArea" THEN sNames = sNames & Object.GetProperty(hControl, "name") & " " <--------- if was 'text' or other this code work! ENDIF IF Object.Class(hControl) = "TabStrip" THEN iNumTabs = Object.GetProperty(hControl, "Count") FOR i = 0 TO iNumTabs - 1 Object.SetProperty(hControl, "Index", i) sNames = sNames & GetaNomeControles(hControl).Join(" ") & " " NEXT Object.SetProperty(hControl, "Index", 0) ENDIF NEXT RETURN Split(sNames, " ") END This code should function, but I get the 'Property Name does not exists' please I need help pleae! From sourceforge-raindog2 at ...94... Tue Oct 11 02:49:13 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Mon, 10 Oct 2005 20:49:13 -0400 Subject: [Gambas-user] Getting the 'name' property In-Reply-To: References: Message-ID: <200510102049.14372.sourceforge-raindog2@...94...> On Mon October 10 2005 08:17, vinians wrote: > Hi all, anyone can help-me how to get the 'name' of an object? The names of symbols aren't retained by the Gambas compilation process for some reason. You have to stick everything you want to use to identify an object in its Tag property or something like that. Rob From jose.santos at ...429... Tue Oct 11 08:59:55 2005 From: jose.santos at ...429... (Dani Santos) Date: Tue, 11 Oct 2005 08:59:55 +0200 Subject: [Gambas-user] Developing a gambas component using gambas. In-Reply-To: <200510101304.47573.gambas@...1...> References: <1128423719.18978.14.camel@...999...> <200510052145.05656.gambas@...1...> <1128926428.3887.8.camel@...999...> <200510101304.47573.gambas@...1...> Message-ID: <1129013995.3892.24.camel@...999...> Let's see. I may have no understood the previous Mail... El lun, 10-10-2005 a las 13:04 +0200, Benoit Minisini escribi?: > On Monday 10 October 2005 08:40, Dani Santos wrote: > > Thanks Benoit. I thought that the creation of gambas-based components > > was more dynamic. > > More dynamic in which way? > You say icons are hard-coded in the IDE and that the component must be inserted in the comp directory in the source tree. I thought that I could develop a component an add it to the code of my project as, for example, a form or a class (in the same way I did in VB), or compile it and add a Reference to the compiled component in my project so it can use it. In other words: let's suposse that I want a component which consists in a label that displays its text in red forecolor; let's suposse that it is of vital importance to me :-) , but a complete nonsense to other programmers. I thought that there was an easy way to make a component like that and add it to my project. > > > > > The component I am developing will reproduce one ActiveX Component that > > I used in my VB programmer days to easy the development of the > > applications but I'm not sure if it will be useful for other. > > What does your component do? In my VB programmer days, I developed VB applications against M$ Access Databases. Most of the forms of the applications I developed consisted in formularies that recolected data from the user and most of the controls of the applications had common needs; i mean: - TextBoxes that took only numeric values (integer or float). - TextBoxes that took only upper-case values. - TextBoxes that took only Valid DNI Numbers (Spanish Identification Cards). - TextBoxes with a search-button that showed a grid with posible values. - etc, etc. Those controls also had the same behaviour: "Enter" tabbed to the following control, if you clicked with the mouse on it, the whole text of the TextBox was selected, etc. It was the same code in the same events all the time so we developed a simple control that once it was correctly initilized it easied a lot the development of the application. That's what I'm doing just now (in a very alpha version ;) ). > > > > > I think I will follow programming my app without that component but I > > will code all the logic of the component into a class so it will be easy > > to create the component if people find it useful. > > > > Regards. > > > > Regards, > I'm currently starting to develop an application that, firstly, will complement the application we use to control the library of the High School I work at (its a widows app) and later substitute it (or so I hope ;) ). Regards and thank you very much for your interest. -- Jos? Daniel Santos Delgado Programador del IESO Quercus (Malpartida de Plasencia) http://iesoquercus.juntaextremadura.net/dani/ Tfno: 927010850 Fax: 927010851 From sakya_tg at ...325... Tue Oct 11 13:20:30 2005 From: sakya_tg at ...325... (sakya) Date: Tue, 11 Oct 2005 11:20:30 +0000 Subject: [Gambas-user] Re:Creating an interface for Lame Message-ID: <434B9FFE.1000509@...325...> Hi! To get the output of a command: Declare a process variable (form level): Private Proc as Process launch the external command with the EXEC command like: EXEC ["lame", "audio.wav", "audio.mp3"] for READ as proc In this way you launch lame and the Gambas program continues to next line (doesn't wait for Lame to end) Declare a sub Process_Read and read the lame's output: PUBLIC SUB Process_Read() DIM line as String LINE INPUT #LAST, line END Analyze the lame's output and do what you need to. :-) If you want to read also errors from lame: PUBLIC SUB Process_Error(sData AS String) END The sData variable contains the error text. Ciaooo Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From vinians at ...927... Tue Oct 11 14:58:06 2005 From: vinians at ...927... (vinians) Date: Tue, 11 Oct 2005 09:58:06 -0300 Subject: [Gambas-user] Getting the 'name' property Message-ID: ---------- Cabe?alho original ----------- De: gambas-user-admin at lists.sourceforge.net Para: gambas-user at lists.sourceforge.net C?pia: Data: Mon, 10 Oct 2005 20:49:13 -0400 Assunto: Re: [Gambas-user] Getting the 'name' property > On Mon October 10 2005 08:17, vinians wrote: > > Hi all, anyone can help-me how to get the 'name' of an object? > > The names of symbols aren't retained by the Gambas compilation process > for some reason. You have to stick everything you want to use to > identify an object in its Tag property or something like that. > > Rob > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thank you very much... to Benoit : please include the 'name' property on the next version of Gambas! I love this languagem and I need to get the 'name' property ;) From gambas at ...1... Tue Oct 11 15:17:19 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Oct 2005 15:17:19 +0200 Subject: [Gambas-user] Getting the 'name' property In-Reply-To: References: Message-ID: <200510111517.19162.gambas@...1...> On Tuesday 11 October 2005 14:58, vinians wrote: > ---------- Cabe?alho original ----------- > > De: gambas-user-admin at lists.sourceforge.net > Para: gambas-user at lists.sourceforge.net > C?pia: > Data: Mon, 10 Oct 2005 20:49:13 -0400 > Assunto: Re: [Gambas-user] Getting the 'name' property > > > On Mon October 10 2005 08:17, vinians wrote: > > > Hi all, anyone can help-me how to get the 'name' of an object? > > > > The names of symbols aren't retained by the Gambas compilation process > > for some reason. You have to stick everything you want to use to > > identify an object in its Tag property or something like that. > > > > Rob > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Thank you very much... > to Benoit : please include the 'name' property on the next version of > Gambas! I love this languagem and I need to get the 'name' property ;) > The problem is that this 'name' property eats a lot of memory for a feature that don't concern all the objects created by the language, and that is mainly used for implementing features that can be done in other ways. But I will see if I can do something like that in another way, only for the Controls... Regards, -- Benoit Minisini From gambas at ...1... Tue Oct 11 15:34:55 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Oct 2005 15:34:55 +0200 Subject: [Gambas-user] The Merchant Of Venice Message-ID: <200510111534.55169.gambas@...1...> This is not a mail related to Gambas :-), but just a question for people that speaks english better than me. In the Merchant Of Venice (Shakespeare), there is the following dialog: ... SALANIO: That's certain, if the devil may be her judge. SHYLOCK: My own flesh and blood to rebel! SALANIO: Out upon it, old carrion! rebels it at these years? SHYLOCK: I say, my daughter is my flesh and blood. ... What does 'Out upon it' mean ? And 'rebels it at these years?' If someone can help me, I will be very happy! Regards, -- Benoit Minisini From vinians at ...927... Tue Oct 11 15:29:22 2005 From: vinians at ...927... (vinians) Date: Tue, 11 Oct 2005 10:29:22 -0300 Subject: [Gambas-user] Variable numbers of arguments Message-ID: Hi again! I need to make a function like 'printf' which have a variable number of arguments how to do this in Gambas? Function MyPrintf(sFormat as String, Args as Variant...) as String or something like this ;P ps. I dont want to use Arrays but true variable parameters Thanks in advance From gambas at ...1... Tue Oct 11 15:48:54 2005 From: gambas at ...1... (Benoit Minisini) Date: Tue, 11 Oct 2005 15:48:54 +0200 Subject: [Gambas-user] Developing a gambas component using gambas. In-Reply-To: <1129013995.3892.24.camel@...999...> References: <1128423719.18978.14.camel@...999...> <200510101304.47573.gambas@...1...> <1129013995.3892.24.camel@...999...> Message-ID: <200510111548.54847.gambas@...1...> On Tuesday 11 October 2005 08:59, Dani Santos wrote: > Let's see. I may have no understood the previous Mail... > > El lun, 10-10-2005 a las 13:04 +0200, Benoit Minisini escribi?: > > On Monday 10 October 2005 08:40, Dani Santos wrote: > > > Thanks Benoit. I thought that the creation of gambas-based components > > > was more dynamic. > > > > More dynamic in which way? > > You say icons are hard-coded in the IDE Yes. This is bad design, but this is not important while only the IDE needs these icons. > and that the component must be > inserted in the comp directory in the source tree. Yes. Like drivers in the Linux kernel source tree. > > I thought that I could develop a component an add it to the code of my > project as, for example, a form or a class (in the same way I did in > VB), or compile it and add a Reference to the compiled component in my > project so it can use it. > > In other words: let's suposse that I want a component which consists in > a label that displays its text in red forecolor; let's suposse that it > is of vital importance to me :-) , but a complete nonsense to other > programmers. I thought that there was an easy way to make a component > like that and add it to my project. > You make a component if you aim to share somethings between different gambas projects. You can take all the classes of your component and put it in your project if you want. It will work the same, provided that there is no name clash. The only difference is that a component has its own name space. Only the classes marked with the EXPORT keyword are in the global name space. All other classes are hidden. > > > The component I am developing will reproduce one ActiveX Component that > > > I used in my VB programmer days to easy the development of the > > > applications but I'm not sure if it will be useful for other. > > > > What does your component do? > > In my VB programmer days, I developed VB applications against M$ Access > Databases. Most of the forms of the applications I developed consisted > in formularies that recolected data from the user and most of the > controls of the applications had common needs; i mean: > > - TextBoxes that took only numeric values (integer or float). > - TextBoxes that took only upper-case values. > - TextBoxes that took only Valid DNI Numbers (Spanish Identification > Cards). > - TextBoxes with a search-button that showed a grid with posible values. > - etc, etc. > > Those controls also had the same behaviour: "Enter" tabbed to the > following control, if you clicked with the mouse on it, the whole text > of the TextBox was selected, etc. > > It was the same code in the same events all the time so we developed a > simple control that once it was correctly initilized it easied a lot the > development of the application. > > That's what I'm doing just now (in a very alpha version ;) ). > That seems very useful to put that in a component (except the Spanish Identification Card that may be too specific). Send me your code when it is stable, and I will take some controls to put them in the gb.form component (for example, or in another one I don't know) Anyway, I plan to make a 'per-user' component directory so that one can install gambas component without having to touch the one installed in the gambas installation directory. The next IDE will be able to make RPMs from a component project, so that you can install a program like you want by installing only two RPMs (one for the project, and one for the component). > > > I think I will follow programming my app without that component but I > > > will code all the logic of the component into a class so it will be > > > easy to create the component if people find it useful. > > > > > > Regards. > > > > Regards, > > I'm currently starting to develop an application that, firstly, will > complement the application we use to control the library of the High > School I work at (its a widows app) and later substitute it (or so I > hope ;) ). > > > Regards and thank you very much for your interest. Regards, -- Benoit Minisini From vinians at ...927... Tue Oct 11 15:54:10 2005 From: vinians at ...927... (vinians) Date: Tue, 11 Oct 2005 10:54:10 -0300 Subject: [Gambas-user] Bigger forms! Message-ID: I upgraded my old Gambas application to version 1.9.20 and I get all my forms 2 or 3 times large than berfore. How to solve this problem, I need to redesign my forms again? Thanks in advance From hscast at ...407... Tue Oct 11 19:52:47 2005 From: hscast at ...407... (Scott Castaline) Date: Tue, 11 Oct 2005 13:52:47 -0400 Subject: [Gambas-user] Newbie Message-ID: <434BFBEF.7080308@...407...> It's been many years since I've done any kind of programmi... background is predominately been hardware. I am wondering ... point me in the right direction for tutorial material or t... BASIC, that would be relevant and current to GAMBAS. TIA Scott Castaline From vbtricks at ...18... Tue Oct 11 20:01:30 2005 From: vbtricks at ...18... (VBTricks.de.vu Webmaster) Date: Tue, 11 Oct 2005 20:01:30 +0200 Subject: [Gambas-user] Problems with Shell Command Message-ID: <434BFDFA.1090708@...18...> Hello, trying to "compile" a gambas app, but the following line SHELL lamecmd FOR READ AS pr returns the error "unexpected AS". Did the syntax change? I am using Gambas 1.9.20. Stefan -- ___________________________________www.VBTricks.de.vu the free resource for Visual Basic, Gambas and Pascal components, tips & complete projects www: http://www.VBTricks.de.vu mail: vbtricks gmx net _____________________________________________________ From hscast at ...407... Tue Oct 11 20:40:32 2005 From: hscast at ...407... (Scott Castaline) Date: Tue, 11 Oct 2005 14:40:32 -0400 Subject: [Gambas-user] Newbie Message-ID: <434C0720.4050701@...407...> (Sorry for the chopped-up earlier e-mail) It's been many years since I've done any kind of programming, my tech background is predominately been hardware. I am wondering if anyone can point me in the right direction for tutorial material or text books on BASIC, that would be relevant and current to GAMBAS. TIA Scott Castaline From eeller at ...826... Tue Oct 11 21:07:02 2005 From: eeller at ...826... (Eldon Eller) Date: Tue, 11 Oct 2005 12:07:02 -0700 Subject: [Gambas-user] The Merchant Of Venice In-Reply-To: <200510111534.55169.gambas@...1...> References: <200510111534.55169.gambas@...1...> Message-ID: <434C0D56.1040001@...826...> I am not a Shakespeare scholar, but here is my understanding: "Out upon it" is not phrase to be found in modern English. From the context I take it to mean "Stop it" or "knock it off" or "nonsense." I think "rebels it at these years?" is to say "she is old enough to decide for herself; she is not rebelling." Benoit Minisini wrote: >This is not a mail related to Gambas :-), but just a question for people that >speaks english better than me. > >In the Merchant Of Venice (Shakespeare), there is the following dialog: > >... >SALANIO: That's certain, if the devil may be her judge. >SHYLOCK: My own flesh and blood to rebel! >SALANIO: Out upon it, old carrion! rebels it at these years? >SHYLOCK: I say, my daughter is my flesh and blood. >... > >What does 'Out upon it' mean ? And 'rebels it at these years?' > >If someone can help me, I will be very happy! > >Regards, > > > From sourceforge-raindog2 at ...94... Tue Oct 11 21:49:45 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 11 Oct 2005 15:49:45 -0400 Subject: [Gambas-user] Newbie In-Reply-To: <434C0720.4050701@...407...> References: <434C0720.4050701@...407...> Message-ID: <200510111549.47364.sourceforge-raindog2@...94...> On Tue October 11 2005 14:40, Scott Castaline wrote: > It's been many years since I've done any kind of programming, my > tech background is predominately been hardware. I am wondering if > anyone can point me in the right direction for tutorial material or > text books on BASIC, that would be relevant and current to GAMBAS. Linux Format (a UK-based desktop-oriented Linux magazine, sadly quite expensive when bought here in the US) is doing a monthly BASIC column now using Gambas. They jumped right in with their first issue with a little database browser application. Unfortunately, that's the only tutorial I know of at present apart from some small and badly-outdated ones on the Gambas wiki. There's at least one textbook that sounds like it's near completion, but it may be a little while before you can buy one commercially. However, if you haven't done any programming in anything that looks like Gambas, you may be able to use Visual Basic tutorials to at least point you in the right direction. Gambas is probably closer to VB.net than VB6 or earlier, but I personally find it far less annoying than either incarnation of VB. A good grasp of object-oriented programming will also be a huge help to you with Gambas, since it's much more object-centric than VB is (but less than Java.) But it's only been 9 months since Gambas 1.0 was first released, and developer tools tend to either have to be heavily adopted or come from a company called Microsoft to get Dummies(tm) books in their first year. I think before too long Gambas will start getting a lot more attention, especially if version 2.0 somehow ends up working under Windows without Cygwin. On a side note, on the same trip to the bookstore (Barnes and Noble) on which I discovered the Linux Format BASIC column, I was wandering by the computer section and noticed that the Linux stuff has been moved out of the bottom rows of the developer section to a section by itself with all the Dummies books and desktop-oriented books on the top shelf at eye level. Having just read earlier that day that Linux was failing to meet analysts' 2001 predictions for desktop market share, it was a nice confirmation that people are interested in Linux, and not just to run their web servers: bookstores don't put obscure hackers' toys on prominent display. Rob From danielcampos at ...282... Tue Oct 11 22:43:31 2005 From: danielcampos at ...282... (danielcampos at ...282...) Date: Tue, 11 Oct 2005 22:43:31 +0200 Subject: [Gambas-user] Getting the 'name' property Message-ID: Hi: I can not help you directly, however: http://forum.wordreference.com/forumdisplay.php?f=3 I've found a lot of answers in the spanish/english forum, and I suppose the french/english forum can help you about that. Regards, D. Campos ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T?l?phone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,16 ? TTC/min) From gambasfr at ...11... Tue Oct 11 22:47:20 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Tue, 11 Oct 2005 22:47:20 +0200 Subject: [Gambas-user] Variable numbers of arguments In-Reply-To: References: Message-ID: <200510112247.20938.gambasfr@...11...> Le Mardi 11 Octobre 2005 15:29, vinians a ?crit?: > Hi again! > I need to make a function like 'printf' which have a variable number of > arguments how to do this in Gambas? > > Function MyPrintf(sFormat as String, Args as Variant...) as String or > something like this ;P > > ps. I dont want to use Arrays but true variable parameters > > Thanks in advance it exist in gambas :) subst(MyPatternString as String, Args as String,...) Like : PRINT Subst("Hello &1, i'm &2 year old", "dude", str(age)) http://64.128.110.55/help/lang/subst You can do a function yourself... but dynamic argument exist only in gambas2 with the '...' statement and param class. Fabien Bodard From gambasfr at ...11... Tue Oct 11 22:53:08 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Tue, 11 Oct 2005 22:53:08 +0200 Subject: [Gambas-user] Problems with Shell Command In-Reply-To: <434BFDFA.1090708@...18...> References: <434BFDFA.1090708@...18...> Message-ID: <200510112253.08400.gambasfr@...11...> Le Mardi 11 Octobre 2005 20:01, VBTricks.de.vu Webmaster a ?crit?: > Hello, > > trying to "compile" a gambas app, but the following line > SHELL lamecmd FOR READ AS pr > returns the error "unexpected AS". Did the syntax change? yes :-) look that : http://64.128.110.55/help/lang/shell Fabien Bodard From gambas at ...1... Wed Oct 12 00:41:35 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 12 Oct 2005 00:41:35 +0200 Subject: [Gambas-user] The Merchant Of Venice In-Reply-To: <434C0D56.1040001@...826...> References: <200510111534.55169.gambas@...1...> <434C0D56.1040001@...826...> Message-ID: <200510120041.36044.gambas@...1...> On Tuesday 11 October 2005 21:07, Eldon Eller wrote: > I am not a Shakespeare scholar, but here is my understanding: > "Out upon it" is not phrase to be found in modern English. From the > context I take it to mean "Stop it" or "knock it off" or "nonsense." I > think "rebels it at these years?" is to say "she is old enough to decide > for herself; she is not rebelling." > > Benoit Minisini wrote: > >This is not a mail related to Gambas :-), but just a question for people > > that speaks english better than me. > > > >In the Merchant Of Venice (Shakespeare), there is the following dialog: > > > >... > >SALANIO: That's certain, if the devil may be her judge. > >SHYLOCK: My own flesh and blood to rebel! > >SALANIO: Out upon it, old carrion! rebels it at these years? > >SHYLOCK: I say, my daughter is my flesh and blood. > >... > > > >What does 'Out upon it' mean ? And 'rebels it at these years?' > > > >If someone can help me, I will be very happy! > > > >Regards, Thank you very much! My french traduction of that is a non sense. What you say is far more logical... Regards, -- Benoit Minisini From vinians at ...927... Wed Oct 12 01:35:46 2005 From: vinians at ...927... (vinians) Date: Tue, 11 Oct 2005 20:35:46 -0300 Subject: [Gambas-user] Variable numbers of arguments Message-ID: ---------- Cabe?alho original ----------- De: gambas-user-admin at lists.sourceforge.net Para: gambas-user at lists.sourceforge.net C?pia: Data: Tue, 11 Oct 2005 22:47:20 +0200 Assunto: Re: [Gambas-user] Variable numbers of arguments > Le Mardi 11 Octobre 2005 15:29, vinians a ?crit : > > Hi again! > > I need to make a function like 'printf' which have a variable number of > > arguments how to do this in Gambas? > > > > Function MyPrintf(sFormat as String, Args as Variant...) as String or > > something like this ;P > > > > ps. I dont want to use Arrays but true variable parameters > > > > Thanks in advance > > it exist in gambas :) > > subst(MyPatternString as String, Args as String,...) > > Like : > > PRINT Subst("Hello &1, i'm &2 year old", "dude", str(age)) > > http://64.128.110.55/help/lang/subst > > > You can do a function yourself... but dynamic argument exist only in gambas2 > with the '...' statement and param class. > > Fabien Bodard > Thanks, very much! When Gambas2 will be released? From iggy.budiman.linux at ...626... Wed Oct 12 04:40:41 2005 From: iggy.budiman.linux at ...626... (iggy) Date: Wed, 12 Oct 2005 09:40:41 +0700 Subject: [Gambas-user] Getting the 'name' property In-Reply-To: <20051011195345.12A8D33F58@...763...> References: <20051011195345.12A8D33F58@...763...> Message-ID: <434C77A9.3000600@...726...> >>>On Mon October 10 2005 08:17, vinians wrote: >>> >>>>Hi all, anyone can help-me how to get the 'name' of an object? >>> >>>The names of symbols aren't retained by the Gambas compilation process >>>for some reason. You have to stick everything you want to use to >>>identify an object in its Tag property or something like that. >>> >>>Rob >>> >>Thank you very much... >>to Benoit : please include the 'name' property on the next version of >>Gambas! I love this languagem and I need to get the 'name' property ;) >> > The problem is that this 'name' property eats a lot of memory for a > feature=20 > that don't concern all the objects created by the language, and that > is=20 mainly used for implementing features that can be done in other > ways. > But I will see if I can do something like that in another way, only > for the=20 Controls... > Regards, > =2D-=20 > Benoit Minisini I really need that feature too. I often used that feature in vb days. But this days of gambas, i have to modify a lot for gambas' lack of name property. in vb i can use : me.controls("txt" & rs.field(counter).name).text=rs.field(counter) that means i can assign the value from every recordset to any controls in the form that has name txt+fieldname. I can do that for control in other form, still in single line (just change the me into form name) in gambas i use a lot of lines. i have to scan all controls in the form, when found controls with tag contain the name of the controls, then i can continue assign the values. thats not just it. If i need the tag for other use, then i need assign a class corresponding to the control tag, just to get the real control tag. And for the control in a tab in another form, i have to scan each form that has the proper tag, then i have to scan each tab that has proper tag, then i have to scan each control in the tab that has proper tag. i would appreciate a lot if gambas has this feature. salam From hscast at ...407... Wed Oct 12 15:30:44 2005 From: hscast at ...407... (Scott Castaline) Date: Wed, 12 Oct 2005 09:30:44 -0400 Subject: [Gambas-user] Newbie In-Reply-To: <200510111549.47364.sourceforge-raindog2@...94...> References: <434C0720.4050701@...407...> <200510111549.47364.sourceforge-raindog2@...94...> Message-ID: <434D1004.3090606@...407...> Rob Kudla wrote: >On Tue October 11 2005 14:40, Scott Castaline wrote: > > >>It's been many years since I've done any kind of programming, my >>tech background is predominately been hardware. I am wondering if >>anyone can point me in the right direction for tutorial material or >>text books on BASIC, that would be relevant and current to GAMBAS. >> >> > >Linux Format (a UK-based desktop-oriented Linux magazine, sadly quite >expensive when bought here in the US) is doing a monthly BASIC column >now using Gambas. They jumped right in with their first issue with a >little database browser application. Unfortunately, that's the only >tutorial I know of at present apart from some small and >badly-outdated ones on the Gambas wiki. There's at least one >textbook that sounds like it's near completion, but it may be a >little while before you can buy one commercially. > >However, if you haven't done any programming in anything that looks >like Gambas, you may be able to use Visual Basic tutorials to at >least point you in the right direction. Gambas is probably closer to >VB.net than VB6 or earlier, but I personally find it far less >annoying than either incarnation of VB. A good grasp of >object-oriented programming will also be a huge help to you with >Gambas, since it's much more object-centric than VB is (but less than >Java.) > >But it's only been 9 months since Gambas 1.0 was first released, and >developer tools tend to either have to be heavily adopted or come >from a company called Microsoft to get Dummies(tm) books in their >first year. I think before too long Gambas will start getting a lot >more attention, especially if version 2.0 somehow ends up working >under Windows without Cygwin. > >On a side note, on the same trip to the bookstore (Barnes and Noble) >on which I discovered the Linux Format BASIC column, I was wandering >by the computer section and noticed that the Linux stuff has been >moved out of the bottom rows of the developer section to a section by >itself with all the Dummies books and desktop-oriented books on the >top shelf at eye level. Having just read earlier that day that Linux >was failing to meet analysts' 2001 predictions for desktop market >share, it was a nice confirmation that people are interested in >Linux, and not just to run their web servers: bookstores don't put >obscure hackers' toys on prominent display. > >Rob > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions, >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > Thanks for the response. Any personal suggestions on book titles/authors? There appears to be so many but as I've found in the past only a few are usually worth anything. TIA Scott From kai at ...1127... Wed Oct 12 17:19:26 2005 From: kai at ...1127... (K Windle) Date: Wed, 12 Oct 2005 16:19:26 +0100 Subject: [Gambas-user] Newbie In-Reply-To: <434D1004.3090606@...407...> References: <434C0720.4050701@...407...> <200510111549.47364.sourceforge-raindog2@...94...> <434D1004.3090606@...407...> Message-ID: <434D297E.7080400@...1127...> Scott Castaline wrote: > Rob Kudla wrote: > >> On Tue October 11 2005 14:40, Scott Castaline wrote: >> >> >>> It's been many years since I've done any kind of programming, my >>> tech background is predominately been hardware. I am wondering if >>> anyone can point me in the right direction for tutorial material or >>> text books on BASIC, that would be relevant and current to GAMBAS. >>> >> >> >> Linux Format (a UK-based desktop-oriented Linux magazine, sadly quite >> expensive when bought here in the US) is doing a monthly BASIC column >> now using Gambas. They jumped right in with their first issue with a >> little database browser application. Unfortunately, that's the only >> tutorial I know of at present apart from some small and >> badly-outdated ones on the Gambas wiki. There's at least one >> textbook that sounds like it's near completion, but it may be a >> little while before you can buy one commercially. >> However, if you haven't done any programming in anything that looks >> like Gambas, you may be able to use Visual Basic tutorials to at >> least point you in the right direction. Gambas is probably closer to >> VB.net than VB6 or earlier, but I personally find it far less >> annoying than either incarnation of VB. A good grasp of >> object-oriented programming will also be a huge help to you with >> Gambas, since it's much more object-centric than VB is (but less than >> Java.) >> >> But it's only been 9 months since Gambas 1.0 was first released, and >> developer tools tend to either have to be heavily adopted or come >> from a company called Microsoft to get Dummies(tm) books in their >> first year. I think before too long Gambas will start getting a lot >> more attention, especially if version 2.0 somehow ends up working >> under Windows without Cygwin. >> >> On a side note, on the same trip to the bookstore (Barnes and Noble) >> on which I discovered the Linux Format BASIC column, I was wandering >> by the computer section and noticed that the Linux stuff has been >> moved out of the bottom rows of the developer section to a section by >> itself with all the Dummies books and desktop-oriented books on the >> top shelf at eye level. Having just read earlier that day that Linux >> was failing to meet analysts' 2001 predictions for desktop market >> share, it was a nice confirmation that people are interested in >> Linux, and not just to run their web servers: bookstores don't put >> obscure hackers' toys on prominent display. >> >> Rob >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: >> Power Architecture Resource Center: Free content, downloads, >> discussions, >> and more. http://solutions.newsforge.com/ibmarch.tmpl >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > Thanks for the response. Any personal suggestions on book > titles/authors? There appears to be so many but as I've found in the > past only a few are usually worth anything. > > TIA > > Scott > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Hmm not that im aware of, though i will make one small seggestion check out www.realsoftware.com From sourceforge-raindog2 at ...94... Wed Oct 12 18:59:39 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 12 Oct 2005 12:59:39 -0400 Subject: [Gambas-user] Newbie In-Reply-To: <434D297E.7080400@...1127...> References: <434C0720.4050701@...407...> <434D1004.3090606@...407...> <434D297E.7080400@...1127...> Message-ID: <200510121259.40014.sourceforge-raindog2@...94...> On Wed October 12 2005 11:19, K Windle wrote: > > Thanks for the response. Any personal suggestions on book > > titles/authors? There appears to be so many but as I've found in > > the past only a few are usually worth anything. > Hmm not that im aware of, though i will make one small seggestion > check out www.realsoftware.com Yeah, RealBASIC is also in the same league as VB and Gambas, and there are 6 or 7 books out there about it (it has the advantages of being very well-established and recently cross-platform with a nice MDI user interface, and the disadvantage of costing $400 a seat for each platform with no source.) I found the VB for Dummies book useful for getting an intern up to speed 6 or 7 years ago.... no idea how good it would be now, or how applicable it would be to Gambas. Rob From jr at ...1090... Wed Oct 12 19:41:38 2005 From: jr at ...1090... (John Rittinghouse) Date: Wed, 12 Oct 2005 12:41:38 -0500 Subject: [Gambas-user] re: Trying to do a confirm window Message-ID: <1129138898.6056.26.camel@...1130...> Why not use the Gambas MessageBoxes. Here is an example: SELECT Message.Delete("Quit?", "Yes","No","Cancel") CASE 1 TextLabel1.Text = "Quitting" CASE 2 TextLabel1.Text = "Not Quitting" CASE 3 TextLabel1.Text = "Canceled!" END SELECT -- regards, jr __________________________________ John W. Rittinghouse, Ph.D., CISM From gambasfr at ...11... Wed Oct 12 22:16:11 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Wed, 12 Oct 2005 22:16:11 +0200 Subject: [Gambas-user] Variable numbers of arguments In-Reply-To: References: Message-ID: <200510122216.11720.gambasfr@...11...> Le Mercredi 12 Octobre 2005 01:35, vinians a ?crit?: > ---------- Cabe?alho original ----------- > > De: gambas-user-admin at lists.sourceforge.net > Para: gambas-user at lists.sourceforge.net > C?pia: > Data: Tue, 11 Oct 2005 22:47:20 +0200 > Assunto: Re: [Gambas-user] Variable numbers of arguments > > > Le Mardi 11 Octobre 2005 15:29, vinians a ?crit : > > > Hi again! > > > I need to make a function like 'printf' which have a variable number of > > > arguments how to do this in Gambas? > > > > > > Function MyPrintf(sFormat as String, Args as Variant...) as String or > > > something like this ;P > > > > > > ps. I dont want to use Arrays but true variable parameters > > > > > > Thanks in advance > > > > it exist in gambas :) > > > > subst(MyPatternString as String, Args as String,...) > > > > Like : > > > > PRINT Subst("Hello &1, i'm &2 year old", "dude", str(age)) > > > > http://64.128.110.55/help/lang/subst > > > > > > You can do a function yourself... but dynamic argument exist only in > > gambas2 with the '...' statement and param class. > > > > Fabien Bodard > > Thanks, very much! When Gambas2 will be released? it exist in beta develloppement as Gambas 1.9.20 and the stable version .... mabe in many month... year ? ... We have time :) Fabien > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jr at ...1090... Thu Oct 13 04:48:31 2005 From: jr at ...1090... (John Rittinghouse) Date: Wed, 12 Oct 2005 21:48:31 -0500 Subject: [Gambas-user] Gambas Book available online Message-ID: <1129171711.30275.5.camel@...1091...> The finished version of the book "A Beginner's Guide to Gambas" is available for download. I have created a special account for Gambas users to login and download it directly from my server. Here are the details: ftp to 63.214.254.147 login: gambas pwd: gambas This will allow anyone in the Gambas community to download the pdf version of the book. It has been my pleasure to work with Gambas and to contribute this book to the Gambas user community. Comments, suggestions, criticisms, etc. can be sent directly to me at jr at ...1090... . The download site also includes all the sample code used in the book. The printed version of the book should be available in about 6-8 weeks. I hope you all find it useful and enjoy it. kind regards, John W. Rittinghouse, Ph.D., CISM -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfabiani at ...1109... Thu Oct 13 08:33:33 2005 From: jfabiani at ...1109... (johnf) Date: Wed, 12 Oct 2005 23:33:33 -0700 Subject: [Gambas-user] drag and drop in the IDE Message-ID: <200510122333.33246.jfabiani@...1109...> Hi (from a newbie), I have just installed 1.9.17 and I don't understand how to do a simple drag and drop on to the form from the tool bar. I have started reading the book (applies to 1 and not 2) and it works when compiling and running. But the first part of the book adds the controls via code. How does one add controls via drag and drop? John From ariefbayu at ...626... Thu Oct 13 10:26:22 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 13 Oct 2005 15:26:22 +0700 Subject: [Gambas-user] Gambas Book available online In-Reply-To: <1129171711.30275.5.camel@...1091...> References: <1129171711.30275.5.camel@...1091...> Message-ID: <976ad9050510130126x6970b915n@...627...> I can't connect to your server :(. Could you put it in some other place, or mail it to me? 2005/10/13, John Rittinghouse : > > The finished version of the book "A Beginner's Guide to Gambas" is > available for download. > I have created a special account for Gambas users to login and download it > directly > from my server. Here are the details: > > ftp to 63.214.254.147 > login: gambas > pwd: gambas > > This will allow anyone in the Gambas community to download the pdf version > of the book. > It has been my pleasure to work with Gambas and to contribute this book to > the Gambas user community. > Comments, suggestions, criticisms, etc. can be sent directly to me at > jr at ...1090... . The download > site also includes all the sample code used in the book. The printed > version of the book should be available > in about 6-8 weeks. I hope you all find it useful and enjoy it. > > > kind regards, > > > John W. Rittinghouse, Ph.D., CISM > > -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From tetsuo at ...756... Thu Oct 13 11:41:17 2005 From: tetsuo at ...756... (tetsuo) Date: Thu, 13 Oct 2005 11:41:17 +0200 Subject: [Gambas-user] Question about postgres 'oid' field Message-ID: <434E2BBD.3090104@...756...> When a record is inserted in a table, postgres creates an unique 'oid' attached to record. I need to capture it; i haven't a known unique field in the object that help me to find exactly it. Capture of 'oid' must be an atomic action associated with insert-query, because i have multiple concurrent client. Each client must capture own 'oid', executing his insert-query. How can i do it? Thanks P.S.: I know ... my english is horrible, sorry :D From jr at ...1090... Thu Oct 13 11:58:46 2005 From: jr at ...1090... (John Rittinghouse) Date: Thu, 13 Oct 2005 04:58:46 -0500 Subject: [Gambas-user] re: Gambas book Message-ID: <1129197526.30275.24.camel@...1091...> That is because you are using a web browser instead of an FTP client like cute-ftp. My server will not support using a browser for FTP. FTP clients are freely available and once you download and install, simply try again. The server is working and being hit quite a bit. good luck jr I can't connect to your server :(. Could you put it in some other place, or mail it to me? 2005/10/13, John Rittinghouse : > > The finished version of the book "A Beginner's Guide to Gambas" is > available for download. > I have created a special account for Gambas users to login and download it > directly > from my server. Here are the details: > > ftp to 63.214.254.147 > login: gambas > pwd: gambas > > This will allow anyone in the Gambas community to download the pdf version > of the book. > It has been my pleasure to work with Gambas and to contribute this book to > the Gambas user community. > Comments, suggestions, criticisms, etc. can be sent directly to me at > jr at ...1160... . The download > site also includes all the sample code used in the book. The printed > version of the book should be available > in about 6-8 weeks. I hope you all find it useful and enjoy it. > > > kind regards, > > > John W. Rittinghouse, Ph.D., CISM > > -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jr at ...1090... Thu Oct 13 12:04:19 2005 From: jr at ...1090... (John Rittinghouse) Date: Thu, 13 Oct 2005 05:04:19 -0500 Subject: [Gambas-user] re: Drag and Drop in the IDE Message-ID: <1129197860.30275.27.camel@...1091...> The controls are not drag and drop - more like click and draw. Click on a control first, then move the mouse to the form you wish to place the control and outline the width/height of the control. It should appear with resize handles. To move the control works like in VB. jr -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavy at ...512... Thu Oct 13 12:17:08 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 13 Oct 2005 12:17:08 +0200 Subject: [Gambas-user] re: Gambas book In-Reply-To: <1129197526.30275.24.camel@...1091...> References: <1129197526.30275.24.camel@...1091...> Message-ID: <434E3424.6020904@...512...> John Rittinghouse a ?crit : > That is because you are using a web browser instead of an FTP client > like cute-ftp. My server will not support using a browser for FTP. FTP > clients are freely available and once you download and install, simply > try again. The server is working and being hit quite a bit. > > good luck > jr > > Works fine with firefox, konqueror, ... don't forget to put ftp:// before ! Regards, -- Laurent Carlier jabber : LordHeavy at ...943... From oreip at ...1... Thu Oct 13 13:30:28 2005 From: oreip at ...1... (PV) Date: Thu, 13 Oct 2005 13:30:28 +0200 Subject: [Gambas-user] Documentation system Message-ID: <434E4554.9040305@...1...> Hi all, is there any documentation on how to set up the doc.cgi application found in gambas2 source tree? I guess it should be the new doc system mentioned in the list some time ago, but I haven't found any hints on how to use it (studying the source code would require some time that I don't have right now). TIA, Piero From gambas at ...1... Thu Oct 13 13:48:55 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 13 Oct 2005 13:48:55 +0200 Subject: [Gambas-user] Documentation system In-Reply-To: <434E4554.9040305@...1...> References: <434E4554.9040305@...1...> Message-ID: <200510131348.55598.gambas@...1...> On Thursday 13 October 2005 13:30, PV wrote: > Hi all, > > is there any documentation on how to set up the doc.cgi application found > in gambas2 source tree? > I guess it should be the new doc system mentioned in the list some time > ago, but I haven't found any hints on how to use it (studying the source > code would require some time that I don't have right now). > > TIA, > Piero > This program is experimental, early alpha version, and not terminated... So there is no documentation of how to use it yet. What do you want to do with it? -- Benoit Minisini From ariefbayu at ...626... Thu Oct 13 14:01:00 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 13 Oct 2005 19:01:00 +0700 Subject: [Gambas-user] re: Gambas book In-Reply-To: <434E3424.6020904@...512...> References: <1129197526.30275.24.camel@...1091...> <434E3424.6020904@...512...> Message-ID: <976ad9050510130501v19d6dfbei@...627...> 2005/10/13, Laurent Carlier : > > John Rittinghouse a ?crit : > > That is because you are using a web browser instead of an FTP client > > like cute-ftp. My server will not support using a browser for FTP. FTP > > clients are freely available and once you download and install, simply > > try again. The server is working and being hit quite a bit. > > > > good luck > > jr > > > > > > Works fine with firefox, konqueror, ... > don't forget to put ftp:// before ! > > Regards, > > -- > > Laurent Carlier > jabber : LordHeavy at ...943... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > hohohoho, my fault not read the ftp part. *sue me!!! :p* -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From vinians at ...927... Thu Oct 13 14:21:03 2005 From: vinians at ...927... (vinians) Date: Thu, 13 Oct 2005 09:21:03 -0300 Subject: [Gambas-user] Variable numbers of arguments Message-ID: ---------- Cabe?alho original ----------- De: gambas-user-admin at lists.sourceforge.net Para: gambas-user at lists.sourceforge.net C?pia: Data: Wed, 12 Oct 2005 22:16:11 +0200 Assunto: Re: [Gambas-user] Variable numbers of arguments > Le Mercredi 12 Octobre 2005 01:35, vinians a ?crit?: > > ---------- Cabe?alho original ----------- > > > > De: gambas-user-admin at lists.sourceforge.net > > Para: gambas-user at lists.sourceforge.net > > C?pia: > > Data: Tue, 11 Oct 2005 22:47:20 +0200 > > Assunto: Re: [Gambas-user] Variable numbers of arguments > > > > > Le Mardi 11 Octobre 2005 15:29, vinians a ?crit : > > > > Hi again! > > > > I need to make a function like 'printf' which have a variable number of > > > > arguments how to do this in Gambas? > > > > > > > > Function MyPrintf(sFormat as String, Args as Variant...) as String or > > > > something like this ;P > > > > > > > > ps. I dont want to use Arrays but true variable parameters > > > > > > > > Thanks in advance > > > > > > it exist in gambas :) > > > > > > subst(MyPatternString as String, Args as String,...) > > > > > > Like : > > > > > > PRINT Subst("Hello &1, i'm &2 year old", "dude", str(age)) > > > > > > http://64.128.110.55/help/lang/subst > > > > > > > > > You can do a function yourself... but dynamic argument exist only in > > > gambas2 with the '...' statement and param class. > > > > > > Fabien Bodard > > > > Thanks, very much! When Gambas2 will be released? > > it exist in beta develloppement as Gambas 1.9.20 and the stable version .... > mabe in many month... year ? ... We have time :) > > Fabien Hi again! Im using Gambas 1.9.20 can you show me an example function? (please) Thanxs in advance From hscast at ...407... Thu Oct 13 16:06:38 2005 From: hscast at ...407... (Scott Castaline) Date: Thu, 13 Oct 2005 10:06:38 -0400 Subject: [Gambas-user] re: Gambas book In-Reply-To: <434E3424.6020904@...512...> References: <1129197526.30275.24.camel@...1091...> <434E3424.6020904@...512...> Message-ID: <434E69EE.5020703@...407...> Laurent Carlier wrote: >John Rittinghouse a ?crit : > > >>That is because you are using a web browser instead of an FTP client >>like cute-ftp. My server will not support using a browser for FTP. FTP >>clients are freely available and once you download and install, simply >>try again. The server is working and being hit quite a bit. >> >>good luck >>jr >> >> >> >> > >Works fine with firefox, konqueror, ... >don't forget to put ftp:// before ! > >Regards, > > > how do you get firefox not to log in as anonymous user. I get the Alert "530 Login or password incorrect" TIA Scott From mauriziopz at ...626... Thu Oct 13 16:37:57 2005 From: mauriziopz at ...626... (Maurizio Pozzobon) Date: Thu, 13 Oct 2005 16:37:57 +0200 Subject: [Gambas-user] re: Gambas book In-Reply-To: <434E69EE.5020703@...407...> References: <1129197526.30275.24.camel@...1091...> <434E3424.6020904@...512...> <434E69EE.5020703@...407...> Message-ID: ftp://gambas at ...1163.../ Try this -- Maurizio -------------- next part -------------- An HTML attachment was scrubbed... URL: From picander78 at ...325... Thu Oct 13 16:46:16 2005 From: picander78 at ...325... (Marco Gusy) Date: Thu, 13 Oct 2005 16:46:16 +0200 Subject: [Gambas-user] re: Gambas book In-Reply-To: References: <1129197526.30275.24.camel@...1091...> <434E69EE.5020703@...407...> Message-ID: <200510131646.17191.picander78@...325...> Alle 16:37, gioved? 13 ottobre 2005, Maurizio Pozzobon ha scritto: > ftp://gambas at ...1163.../ > > Try this > > -- > Maurizio or maybe ftp://gambas:gambas at ...1163.../ From jfabiani at ...1109... Thu Oct 13 16:46:58 2005 From: jfabiani at ...1109... (johnf) Date: Thu, 13 Oct 2005 07:46:58 -0700 Subject: [Gambas-user] re: Drag and Drop in the IDE In-Reply-To: <1129197860.30275.27.camel@...1091...> References: <1129197860.30275.27.camel@...1091...> Message-ID: <200510130746.58277.jfabiani@...1109...> On Thursday 13 October 2005 03:04, John Rittinghouse wrote: > The controls are not drag and drop - more like click and draw. Click on > a control first, then move the mouse to the form you wish to place the > control and outline the width/height of the control. It should appear > with resize handles. To move the control works like in VB. > > jr Thanks - duh! Well I did say I was a newbie I hope! John From gert at ...1065... Thu Oct 13 18:50:15 2005 From: gert at ...1065... (Gert Horne) Date: Thu, 13 Oct 2005 16:50:15 +0000 Subject: [Gambas-user] Book Message-ID: <434E9047.5070706@...1065...> Hi, I also followed the conversation on the book, and is quite keen on getting my hands on a copy. Tried the link 2 http://63.214.254.147/ I also have trouble connecting. From lordheavy at ...512... Thu Oct 13 16:51:13 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 13 Oct 2005 16:51:13 +0200 Subject: [Gambas-user] re: Gambas book In-Reply-To: <1129197526.30275.24.camel@...1091...> References: <1129197526.30275.24.camel@...1091...> Message-ID: <434E7461.60309@...512...> John Rittinghouse a ?crit : > That is because you are using a web browser instead of an FTP client > like cute-ftp. My server will not support using a browser for FTP. FTP > clients are freely available and once you download and install, simply > try again. The server is working and being hit quite a bit. > > good luck > jr > -- nomade:/home/lordh# apt-get install cute-ftp Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package cute-ftp -- ;-) -- Laurent Carlier jabber : LordHeavy at ...943... From lordheavy at ...512... Thu Oct 13 16:59:13 2005 From: lordheavy at ...512... (Laurent Carlier) Date: Thu, 13 Oct 2005 16:59:13 +0200 Subject: [Gambas-user] Book In-Reply-To: <434E9047.5070706@...1065...> References: <434E9047.5070706@...1065...> Message-ID: <434E7641.3000007@...512...> Gert Horne a ?crit : > Hi, > > I also followed the conversation on the book, and is quite keen on > getting my hands on a copy. > > Tried the link 2 http://63.214.254.147/ > I also have trouble connecting. > Works better with ftp://63.214.254.147/ Regards, -- Laurent Carlier jabber : LordHeavy at ...943... From juanibaz at ...626... Thu Oct 13 16:59:24 2005 From: juanibaz at ...626... (Juan Ibaceta) Date: Thu, 13 Oct 2005 16:59:24 +0200 Subject: [Gambas-user] Book In-Reply-To: <434E9047.5070706@...1065...> References: <434E9047.5070706@...1065...> Message-ID: <200510131659.24514.juanibaz@...626...> On Thursday 13 October 2005 06:50 pm, Gert Horne wrote: > http://63.214.254.147/ Hi, it is ftp://63.214.254.147/ I know that with Konqueror it is possible to do it. greetings Juan /---------------------------------------------- Linux user number 395903 At http://counter.li.org/ Visit my Photo-blog and post your comments http://juan_pictures.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From hscast at ...407... Thu Oct 13 17:56:33 2005 From: hscast at ...407... (Scott Castaline) Date: Thu, 13 Oct 2005 11:56:33 -0400 Subject: [Gambas-user] re: Gambas book In-Reply-To: <200510131646.17191.picander78@...325...> References: <1129197526.30275.24.camel@...1091...> <434E69EE.5020703@...407...> <200510131646.17191.picander78@...325...> Message-ID: <434E83B1.8020608@...407...> Marco Gusy wrote: >Alle 16:37, gioved? 13 ottobre 2005, Maurizio Pozzobon ha scritto: > > >>ftp://gambas at ...1163.../ >> >>Try this >> >>-- >>Maurizio >> >> > >or maybe > >ftp://gambas:gambas at ...1163.../ > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions, >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > I wound up usin my cli ftp client to download the files, but did try the above method. I forgot that would allow nonannonymous user logins. Thanks for the input..... :-) Scott From oreip at ...1... Thu Oct 13 20:31:45 2005 From: oreip at ...1... (PV) Date: Thu, 13 Oct 2005 20:31:45 +0200 Subject: [Gambas-user] Documentation system In-Reply-To: <200510131348.55598.gambas@...1...> References: <434E4554.9040305@...1...> <200510131348.55598.gambas@...1...> Message-ID: <434EA811.7060505@...1...> On 13/10/2005 13:48, Benoit Minisini wrote: > This program is experimental, early alpha version, and not terminated... So > there is no documentation of how to use it yet. What do you want to do with > it? Nothing special, just wanted to test it by installing it on my local web server. But since it's in such an early development stage, I'll curb my curiosity... :) Ciao, Piero From hscast at ...407... Thu Oct 13 20:32:27 2005 From: hscast at ...407... (Scott Castaline) Date: Thu, 13 Oct 2005 14:32:27 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas Message-ID: <434EA83B.70107@...407...> John, is it possible to allow printing of the book for my own personal use. I like to be able to use it as a text book writing notes on it and highlighting sections. I also admitt that I'm from the "older hard copy is preferred generation" and find it easier to follow along. TIA Scott From gambasfr at ...11... Thu Oct 13 21:36:23 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Thu, 13 Oct 2005 21:36:23 +0200 Subject: [Gambas-user] drag and drop in the IDE In-Reply-To: <200510122333.33246.jfabiani@...1109...> References: <200510122333.33246.jfabiani@...1109...> Message-ID: <200510132136.24067.gambasfr@...11...> Le Jeudi 13 Octobre 2005 08:33, johnf a ?crit?: > Hi (from a newbie), > I have just installed 1.9.17 and I don't understand how to do a simple drag > and drop on to the form from the tool bar. > > I have started reading the book (applies to 1 and not 2) and it works when > compiling and running. But the first part of the book adds the controls > via code. How does one add controls via drag and drop? > John hi john, What the book not talk about not work ! click on the button tool, and on the form the leftbutton down and move. Fabien Bodard > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From Karl.Reinl at ...9... Thu Oct 13 23:35:59 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Thu, 13 Oct 2005 23:35:59 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas Message-ID: <200510132335.59753.Karl.Reinl@...9...> Salut John, I had a short go with your examples and found these Errors and mal functions. Programs also should work, even if the user don't do the right things. Here what I found: BitOps --> Start the program and at first of all push a Button (not 'Quit' ) --> ERROR ColumnView Example --> Start the program and at first of all push the 'Reset' Button --> ERROR FileOps --> 'Help' points to '/root/My Documents/Gambas for Beginners/FileOps/Help.html' KbdOps --> ESC don't QUIT ListViewExample --> enter an item twice --> ERROR Amicalment Charlie -------------- next part -------------- An HTML attachment was scrubbed... URL: From isy21 at ...1082... Fri Oct 14 08:13:17 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Fri, 14 Oct 2005 13:13:17 +0700 Subject: [Gambas-user] Print directly to printer Message-ID: <200510141313.18490.isy21@...1082...> Hi, all Can i have a sample of print directly to printer ? My application need print directly to printed invoice directly, without preview screen. sorry to ask, cause i new in gambas (about 2 month) -- Regards, Ignatius Syofian From ariefbayu at ...626... Fri Oct 14 10:28:52 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 14 Oct 2005 15:28:52 +0700 Subject: [Gambas-user] re: Gambas book In-Reply-To: <434E83B1.8020608@...407...> References: <1129197526.30275.24.camel@...1091...> <434E69EE.5020703@...407...> <200510131646.17191.picander78@...325...> <434E83B1.8020608@...407...> Message-ID: <976ad9050510140128s3597d945w@...627...> use online ftp client : net2ftp.com >>> it's quite good and fast to *SPAM :p* 2005/10/13, Scott Castaline : > > Marco Gusy wrote: > > >Alle 16:37, gioved? 13 ottobre 2005, Maurizio Pozzobon ha scritto: > > > > > >>ftp://gambas at ...1163.../ > >> > >>Try this > >> > >>-- > >>Maurizio > >> > >> > > > >or maybe > > > >ftp://gambas:gambas at ...1163.../ > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by: > >Power Architecture Resource Center: Free content, downloads, discussions, > >and more. http://solutions.newsforge.com/ibmarch.tmpl > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > I wound up usin my cli ftp client to download the files, but did try the > above method. I forgot that would allow nonannonymous user logins. > Thanks for the input..... :-) > > Scott > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From ariefbayu at ...626... Fri Oct 14 10:47:58 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 14 Oct 2005 15:47:58 +0700 Subject: [Gambas-user] Edit and Delete using MySQL problem Message-ID: <976ad9050510140147k71ff5dbr@...627...> Hi Guys, I have some question on update and delete a record. I want to create an app that record all my friends. I've manage on add and find data, but when I create a routine to edit a record, It's return a error telling me that the query is incorrect. But when I execute the query using mysql CLI it word fine. I'm using a sample edit routin from John's book at page 334. I atach my project for you guys to check it. TIA BTW : good work john, it's a GREAT book!!!. -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From ariefbayu at ...626... Fri Oct 14 11:01:20 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Fri, 14 Oct 2005 16:01:20 +0700 Subject: [Gambas-user] Re: Edit and Delete using MySQL problem In-Reply-To: <976ad9050510140147k71ff5dbr@...627...> References: <976ad9050510140147k71ff5dbr@...627...> Message-ID: <976ad9050510140201m6f4502fek@...627...> 2005/10/14, Arief Bayu Purwanto : > > Hi Guys, I have some question on update and delete a record. > I want to create an app that record all my friends. > I've manage on add and find data, but when I create a routine to edit a > record, > It's return a error telling me that the query is incorrect. > But when I execute the query using mysql CLI it word fine. > > I'm using a sample edit routin from John's book at page 334. > I atach my project for you guys to check it. > > TIA > BTW : good work john, it's a GREAT book!!!. > > -- > -- Yahoo!ID : ar1ef_310 > -- http://www.silentstudio.net Ups, forgot the attached project :( -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DaftarTeman.tar.gz Type: application/x-gzip Size: 16596 bytes Desc: not available URL: From gambas at ...1... Fri Oct 14 13:47:48 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 14 Oct 2005 13:47:48 +0200 Subject: [Gambas-user] Re: Edit and Delete using MySQL problem In-Reply-To: <976ad9050510140201m6f4502fek@...627...> References: <976ad9050510140147k71ff5dbr@...627...> <976ad9050510140201m6f4502fek@...627...> Message-ID: <200510141347.48647.gambas@...1...> On Friday 14 October 2005 11:01, Arief Bayu Purwanto wrote: > 2005/10/14, Arief Bayu Purwanto : > > Hi Guys, I have some question on update and delete a record. > > I want to create an app that record all my friends. > > I've manage on add and find data, but when I create a routine to edit a > > record, > > It's return a error telling me that the query is incorrect. > > But when I execute the query using mysql CLI it word fine. > > > > I'm using a sample edit routin from John's book at page 334. > > I atach my project for you guys to check it. > > > > TIA > > BTW : good work john, it's a GREAT book!!!. > > > > -- > > -- Yahoo!ID : ar1ef_310 > > -- http://www.silentstudio.net > > Ups, forgot the attached project :( > > -- > -- Yahoo!ID : ar1ef_310 > -- http://www.silentstudio.net I looked in the book, and effectively, the example is false! DB.Find(x, y, ...) or DB.Edit(x, y, ...) generates the following request: "SELECT * FROM x WHERE y". In other words, y is a WHERE clause (as said in the wiki). You can see what is sent to the database server by setting DB.Debug = TRUE. Regards, -- Benoit Minisini From pvera at ...729... Fri Oct 14 17:24:11 2005 From: pvera at ...729... (Pablo Vera) Date: Fri, 14 Oct 2005 10:24:11 -0500 Subject: [Gambas-user] Print directly to printer In-Reply-To: <200510141313.18490.isy21@...1082...> References: <200510141313.18490.isy21@...1082...> Message-ID: <434FCD9B.7090303@...729...> The printer acts as a drawing area, so you can do something like this: ---------------------------------------------------------------- Draw.Begin(Printer) Draw.Font.Name = "Arial" Draw.Font.Size = 80 Draw.Text("Hello World", X1, Y1) ' Prints text @ (X1,Y1) Printer.NewPage ' Begins a new page Draw.Image(Ticket, X2, Y2) ' Draws an image @ (X2,Y2) Draw.End ' Sends document to printer ---------------------------------------------------------------- I hope this helps. Saludos, Pablo Vera Ignatius Syofian wrote: > Hi, all > > Can i have a sample of print directly to printer ? > My application need print directly to printed invoice directly, without > preview screen. > > sorry to ask, cause i new in gambas (about 2 month) From Karl.Reinl at ...9... Fri Oct 14 18:08:39 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 14 Oct 2005 18:08:39 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas (2) Message-ID: <200510141808.40113.Karl.Reinl@...9...> Salut John, this is what I found in the book. -- a little bit of notation but misunderstood, bad for beginners DIM sStringLength AS Integer ~ page 125 (2*) sDateTime = Val(Str$(Now)) PRINT sDateTime; " is a string representation of current system time." page 143 page 296 and 297 are very intersting for a beginner, oh yeah page 348 the line befor END WITH has wrong fontsize.( page 344 also one line) Amicalment Charlie From jr at ...1090... Fri Oct 14 18:36:06 2005 From: jr at ...1090... (John Rittinghouse) Date: Fri, 14 Oct 2005 11:36:06 -0500 Subject: [Gambas-user] RE: Edit and Delete using MySQL problem Message-ID: <1129307767.6037.3.camel@...1130...> My apologies for the error in the book. It is one of the few places where I was demonstrating syntax and did not actually run the code first. I will correct the book, of course, and ensure the download site has a corrected copy ...in the interim, I am collecting all of the feedback and suggestions to make the changes / corrections where possible. regards, jr From: Arief Bayu Purwanto Edit and Delete using MySQL problem 2005-10-14 01:48 Hi Guys, I have some question on update and delete a record. I want to create an app that record all my friends. I've manage on add and find data, but when I create a routine to edit a record, It's return a error telling me that the query is incorrect. But when I execute the query using mysql CLI it word fine. I'm using a sample edit routin from John's book at page 334. I atach my project for you guys to check it. TIA BTW : good work john, it's a GREAT book!!!. -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net From: Arief Bayu Purwanto Re: Edit and Delete using MySQL problem 2005-10-14 02:01 2005/10/14, Arief Bayu Purwanto : > > Hi Guys, I have some question on update and delete a record. > I want to create an app that record all my friends. > I've manage on add and find data, but when I create a routine to edit a > record, > It's return a error telling me that the query is incorrect. > But when I execute the query using mysql CLI it word fine. > > I'm using a sample edit routin from John's book at page 334. > I atach my project for you guys to check it. > > TIA > BTW : good work john, it's a GREAT book!!!. > > -- > -- Yahoo!ID : ar1ef_310 > -- http://www.silentstudio.net Ups, forgot the attached project :( -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net From: Benoit Minisini Re: Re: Edit and Delete using MySQL problem 2005-10-14 04:39 On Friday 14 October 2005 11:01, Arief Bayu Purwanto wrote: > 2005/10/14, Arief Bayu Purwanto : > > Hi Guys, I have some question on update and delete a record. > > I want to create an app that record all my friends. > > I've manage on add and find data, but when I create a routine to edit a > > record, > > It's return a error telling me that the query is incorrect. > > But when I execute the query using mysql CLI it word fine. > > > > I'm using a sample edit routin from John's book at page 334. > > I atach my project for you guys to check it. > > > > TIA > > BTW : good work john, it's a GREAT book!!!. > > > > -- > > -- Yahoo!ID : ar1ef_310 > > -- http://www.silentstudio.net > > Ups, forgot the attached project :( > > -- > -- Yahoo!ID : ar1ef_310 > -- http://www.silentstudio.net I looked in the book, and effectively, the example is false! DB.Find(x, y, ...) or DB.Edit(x, y, ...) generates the following request: "SELECT * FROM x WHERE y". In other words, y is a WHERE clause (as said in the wiki). You can see what is sent to the database server by setting DB.Debug = TRUE. Regards, -- Benoit Minisini From hscast at ...407... Fri Oct 14 18:50:04 2005 From: hscast at ...407... (Scott Castaline) Date: Fri, 14 Oct 2005 12:50:04 -0400 Subject: [Gambas-user] IDE sizing problems Message-ID: <434FE1BC.9020203@...407...> Can anyone tell me why the apperrance of the IDE has changed? I am running on Ubuntu (Warty 4.10) which uses Gnome for its Desktop Environment. When I first installed Gambas everything appearred alright. The next time I started it, the graphics seemed to have changed. The startup splash screen text got larger and seems to be covered over by something. The text in the dialog boxes in creating a new project got larger than the form was designed for so some of it cannot be seen. Then when the IDE starts up, the Project Manager window is stretched out so that I can't see the bottom of it, and all text is very disportinate. It seems as though it changed screen resolution, but only for Gambas, everything else is normal. Attached is a screen shot of the Gambas IDE, hopefully that will explain my problem. As they say a picture is worth 1,000 words. TIA Scott Castaline From jr at ...1090... Fri Oct 14 19:06:38 2005 From: jr at ...1090... (John Rittinghouse) Date: Fri, 14 Oct 2005 12:06:38 -0500 Subject: [Gambas-user] RE: A Beginner's Guide to Gambas (2) Message-ID: <1129309598.6037.12.camel@...1130...> Thanks Charlie. Obviously, sStringLength on page 125 should be iStringLength but sDateTime is a string var used to catch the return value from the VAL call, as indicated in the code on page 143. The font size on those two places you mentioned was reduced to make the code fit on a single line - it was a deliberate change and you may find that it occurs in a couple of other places as well. Regarding the sample code errors in your previous mail, you are correct that it is not bulletproof. I will leave that to the readers to correct as I was trying to demonstrate how to use Gambas more than I was trying to teach good coding skills (something we could probably all take a refresher on) . You will find, if you read the chapter on errors, that I do cover the topic of making your code more robust. Keep sending your feedback - it is all welcome! regards, jr From: Charlie Reinl A Beginner's Guide to Gambas (2) 2005-10-14 08:57 Salut John, this is what I found in the book. -- a little bit of notation but misunderstood, bad for beginners DIM sStringLength AS Integer ~ page 125 (2*) sDateTime = Val(Str$(Now)) PRINT sDateTime; " is a string representation of current system time." page 143 page 296 and 297 are very intersting for a beginner, oh yeah page 348 the line befor END WITH has wrong fontsize.( page 344 also one line) Amicalment Charlie From jcubillo at ...990... Fri Oct 14 14:15:08 2005 From: jcubillo at ...990... (Jcubillo) Date: Fri, 14 Oct 2005 12:15:08 -0000 Subject: [Gambas-user] Bigger forms Message-ID: <200510141815.j9EIF8UL004232@...989...> Yo ten?a el mismo problema y lo solucione de la siguiente manera cambiando la tipograf?a que estaba en 96 dpi y lo cambie a 75 dpi. Gnome: Escritorio, Preferencias, Tipograf?a, Detalles Saludos a todos. From jr at ...1090... Fri Oct 14 20:23:14 2005 From: jr at ...1090... (John Rittinghouse) Date: Fri, 14 Oct 2005 13:23:14 -0500 Subject: [Gambas-user] Errata Sheet for the Gambas Book Message-ID: <1129314194.6037.24.camel@...1130...> Folks, I have posted an Errata sheet on the ftp download site with corrections to the book as they are reported and fixed. I truly appreciate the feedback and will make every effort to correct and update the book to keep it current. The Errata sheet will always be current for the latest changes. For those of you that have already downloaded the book (460+ downloads so far), the corrected copy of the .pdf file will be available on the Monday following an error report. There are instances where a few of the code snippets will be wrong in the book (intentionally) btw. When this happens, the text in the paragraphs surrounding such bad code will usually explain why it won't work or why it is bad code. As an example, one of the sample programs calls a help file that is non-existent. The text in the book explains that you need to put a .html file in the program directory for it to work. Finally, one more bit of good news to those who use Linspire - the book will be available in the CNR Warehouse for download in a week or so. -- regards, jr __________________________________ John W. Rittinghouse, Ph.D., CISM From kchularrit at ...734... Fri Oct 14 20:41:07 2005 From: kchularrit at ...734... (Kchula-Rrit) Date: Fri, 14 Oct 2005 11:41:07 -0700 Subject: [Gambas-user] What are the IDE keyboard shortcuts? Message-ID: <200510141141.07897.kchularrit@...734...> Does anyone have a list of the keyboard shortcuts for the Gambas debugger? These are the ones I know of: F4 shows the "properties" window F5 runs the program F6 shows the tool-box window ^F (Control-F) Search or Find in text files Also, this might be a good thing to include in the Gambas book. K-R. From dcamposf at ...626... Fri Oct 14 22:26:13 2005 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 14 Oct 2005 22:26:13 +0200 Subject: [Gambas-user] Moving to gmail Message-ID: <7259b5ae0510141326t4bef6cbeg@...627...> Hi all: I'm moving to Gmail, my subscription to netcourrier will finish on October,18, and I don't want to pay again for POP access having free options (free as in beer). So my new public address is: dcamposf at ...626... Please delete my netcourrier address from your address books! The netcourrier account will be alive a long time still, however I will use it less and less... Benoit: could you please change my mail address in the "Hall of Fame"? Apart from this, I will use the netcourrier account for the Spanish Gambas list some time more as I don't have time now to change the options in the administrative interface. Regards, Daniel Campos From Karl.Reinl at ...9... Fri Oct 14 23:24:38 2005 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Fri, 14 Oct 2005 23:24:38 +0200 Subject: [Gambas-user] Huge Forms, when moving gambas1 projects to gambas2 Message-ID: <200510142324.38640.Karl.Reinl@...9...> Salut, I do not know if the answer is given on the list. But me also, I'V got huge Forms (about 7 times as in gambas1) when I copied project from gambas1 to gambas2. The answer is the 'Snap to grid' pixels size in Properties/Properties. Befor moving gambas1 projects to gambas2 set it to 7, so the problem disapear. If you don'T have no more a gambas1 on your box, you can do it in the .project file . You have to change the value of 'Snap'. I think it is a bug in gambas2. The grid size is not read when change from 'Move' to 'MoveScaled' . Hope that helps all who ran into that problem. Amicalment Charlie From dcamposf at ...626... Fri Oct 14 23:20:35 2005 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 14 Oct 2005 23:20:35 +0200 Subject: [Gambas-user] Huge Forms, when moving gambas1 projects to gambas2 In-Reply-To: <200510142324.38640.Karl.Reinl@...9...> References: <200510142324.38640.Karl.Reinl@...9...> Message-ID: <7259b5ae0510141420k51007134j@...627...> Hi: The problem is that now the IDE is using MoveRelative() and ResizeRelative(), which deppends on the font size. Future Gambas versions (in the new IDE, I think), will have the option to select fixed or relative size for forms and controls. Anyway the "Relative" option is quite interesting, as the user always find the same application aspect even if they use little or big fonts (for example, due to eye problems), so you can satisfy more costumers without writting any line of code :-) Regards, D. Campos 2005/10/14, Charlie Reinl : > Salut, > > I do not know if the answer is given on the list. > But me also, I'V got huge Forms (about 7 times as in gambas1) when I copied > project from gambas1 to gambas2. > > The answer is the 'Snap to grid' pixels size in Properties/Properties. > Befor moving gambas1 projects to gambas2 set it to 7, so the problem disapear. > If you don'T have no more a gambas1 on your box, you can do it in the .project > file . You have to change the value of 'Snap'. > > I think it is a bug in gambas2. The grid size is not read when change from > 'Move' to 'MoveScaled' . > > Hope that helps all who ran into that problem. > > Amicalment > Charlie > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From na2492 at ...9... Fri Oct 14 23:14:36 2005 From: na2492 at ...9... (Charlie Reinl) Date: Fri, 14 Oct 2005 23:14:36 00200 Subject: [Gambas-user] RE: A Beginner's Guide to Gambas (2) Message-ID: <43501fbc.23e9.0@...9...> >Thanks Charlie. Obviously, sStringLength on page 125 should be >iStringLength but sDateTime is a string var used to catch the return >value from the VAL call, as indicated in the code on page 143. But for a beginner that will not be logic, that I mean. he will think around why he change a date to a String, makes a Number (val) and then he store that number in an String variable ????????? > >The font size on those two places you mentioned was reduced to make the >code fit on a single line - it was a deliberate change and you may find >that it occurs in a couple of other places as well. Regarding the >sample code errors in your previous mail, you are correct that it is not >bulletproof. I will leave that to the readers to correct as I was trying >to demonstrate how to use Gambas more than I was trying to teach good >coding skills (something we could probably all take a refresher on) >. You will find, if you read the chapter on errors, that I do >cover the topic of making your code more robust. Keep sending your >feedback - it is all welcome! > >regards, >jr > > >From: Charlie Reinl > A Beginner's Guide to Gambas (2) >2005-10-14 08:57 > > Salut John, > > this is what I found in the book. > > > -- a little bit of notation but misunderstood, bad for beginners > DIM sStringLength AS Integer > ~ page 125 (2*) > > sDateTime = Val(Str$(Now)) > PRINT sDateTime; " is a string representation of current system time." > page 143 > > page 296 and 297 are very intersting for a beginner, oh yeah > > page 348 the line befor END WITH has wrong fontsize.( page 344 also one >line) > > > Amicalment > Charlie > > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Power Architecture Resource Center: Free content, downloads, discussions, >and more. http://solutions.newsforge.com/ibmarch.tmpl >_______________________________________________ >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... Sat Oct 15 00:01:45 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 15 Oct 2005 00:01:45 +0200 Subject: [Gambas-user] Huge Forms, when moving gambas1 projects to gambas2 In-Reply-To: <7259b5ae0510141420k51007134j@...627...> References: <200510142324.38640.Karl.Reinl@...9...> <7259b5ae0510141420k51007134j@...627...> Message-ID: <200510150001.45460.gambas@...1...> On Friday 14 October 2005 23:20, Daniel Campos wrote: > Hi: > > The problem is that now the IDE is using MoveRelative() and > ResizeRelative(), which deppends on the font size. Future Gambas > versions (in the new IDE, I think), will have the option to select > fixed or relative size for forms and controls. > > Anyway the "Relative" option is quite interesting, as the user always > find the same application aspect even if they use little or big fonts > (for example, due to eye problems), so you can satisfy more costumers > without writting any line of code :-) > > Regards, > > D. Campos > > 2005/10/14, Charlie Reinl : > > Salut, > > > > I do not know if the answer is given on the list. > > But me also, I'V got huge Forms (about 7 times as in gambas1) when I > > copied project from gambas1 to gambas2. > > > > The answer is the 'Snap to grid' pixels size in Properties/Properties. > > Befor moving gambas1 projects to gambas2 set it to 7, so the problem > > disapear. If you don'T have no more a gambas1 on your box, you can do it > > in the .project file . You have to change the value of 'Snap'. > > > > I think it is a bug in gambas2. The grid size is not read when change > > from 'Move' to 'MoveScaled' . > > > > Hope that helps all who ran into that problem. > > > > Amicalment > > Charlie > > > > When you open a Gambas 1 project with Gambas 2, the IDE does the following: - It takes the absolute coordinates of each control. - It divides it by the value specified in 'Snap to grid'. - It multiplies the result by the value of Desktop.Scale, which is Font.Height("X") / 2 I admit it is a little rough, but this was done for an experimental feature, that seems to be useful now. Anyway, I'm currently thinking about changing the way Gambas store a project inside a directory, so I will have to make a true Gambas 1 -> Gambas 2 project converter. Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Sat Oct 15 07:43:19 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 15 Oct 2005 01:43:19 -0400 Subject: [Gambas-user] Huge Forms, when moving gambas1 projects to gambas2 In-Reply-To: <7259b5ae0510141420k51007134j@...627...> References: <200510142324.38640.Karl.Reinl@...9...> <7259b5ae0510141420k51007134j@...627...> Message-ID: <200510150143.20897.sourceforge-raindog2@...94...> On Fri October 14 2005 17:20, Daniel Campos wrote: > Anyway the "Relative" option is quite interesting, as the user > always find the same application aspect even if they use little or > big fonts (for example, due to eye problems), so you can satisfy > more costumers without writting any line of code :-) This is something I've put in almost every VB and Gambas program I've written in the last 8-9 years, though I had to do it manually using the Form_Resize event handler. Pretty cool that it'll be automatic in Gambas now. Rob From jr at ...1090... Sat Oct 15 14:12:29 2005 From: jr at ...1090... (John Rittinghouse) Date: Sat, 15 Oct 2005 07:12:29 -0500 Subject: [Gambas-user] RE: Re: RE: A Beginner's Guide to Gambas (2) Message-ID: <1129378349.7346.8.camel@...1091...> Charlie, If you read carefully, you will find that whole section is devoted to how a programmer can convert from one data type to another. That is the WHY and it IS the point of the whole section entitled "Converting Data Types" and even beginners need to know how to convert from one data type to another. The particular section you refer to explains when and why a programmer would use VAL to convert dates and the return value of VAL is required to be a string data type. The code in that section shows one how converting from one data type to another will produce the same results for the same data (the current time) for the various data types shown. Otherwise, the conversion would not be correct. I hope this helps clear it up. regards, jr From: Charlie Reinl Re: RE: A Beginner's Guide to Gambas (2) 2005-10-14 14:21 >Thanks Charlie. Obviously, sStringLength on page 125 should be >iStringLength but sDateTime is a string var used to catch the return >value from the VAL call, as indicated in the code on page 143. But for a beginner that will not be logic, that I mean. he will think around why he change a date to a String, makes a Number (val) and then he store that number in an String variable ????????? > >The font size on those two places you mentioned was reduced to make the >code fit on a single line - it was a deliberate change and you may find >that it occurs in a couple of other places as well. Regarding the >sample code errors in your previous mail, you are correct that it is not >bulletproof. I will leave that to the readers to correct as I was trying >to demonstrate how to use Gambas more than I was trying to teach good >coding skills (something we could probably all take a refresher on) >. You will find, if you read the chapter on errors, that I do >cover the topic of making your code more robust. Keep sending your >feedback - it is all welcome! > >regards, >jr > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sclewin at ...1126... Sat Oct 15 16:29:23 2005 From: sclewin at ...1126... (Scott) Date: Sat, 15 Oct 2005 10:29:23 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <1129378349.7346.8.camel@...1091...> References: <1129378349.7346.8.camel@...1091...> Message-ID: <43511243.6050407@...1126...> Hi, I have started reading the book and I like it, I am very new to Gambas and programming and this looks like it will be a big help, thank you. I just have a few questions/comments from what I have read so far; I'm up to page 37. First, I was very pleased to see comments on proper programming practices. Thanks to you I will now make sure to name my variables using the variable type in its name. Also, I noticed you mentioned "QUIT" to be used in a program to end it. That has never worked for me in version 1 or 2 of the program, I will have the program end, but a console will pop up with the message, "WARNING: circular references detected Form1 (1) Mutex destroy failure: Device or resource busy WARNING: 2 allocation(s) non freed.". I have been using "ME.Close" and that seems to work well to quit. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From gambas at ...1... Sat Oct 15 16:54:46 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 15 Oct 2005 16:54:46 +0200 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <43511243.6050407@...1126...> References: <1129378349.7346.8.camel@...1091...> <43511243.6050407@...1126...> Message-ID: <200510151654.46819.gambas@...1...> On Saturday 15 October 2005 16:29, Scott wrote: > Hi, > > I have started reading the book and I like it, I am very new to > Gambas and programming and this looks like it will be a big help, thank > you. I just have a few questions/comments from what I have read so far; > I'm up to page 37. > > First, I was very pleased to see comments on proper programming > practices. Thanks to you I will now make sure to name my variables > using the variable type in its name. Also, I noticed you mentioned > "QUIT" to be used in a program to end it. That has never worked for me > in version 1 or 2 of the program, I will have the program end, but a > console will pop up with the message, "WARNING: circular references > detected Form1 (1) Mutex destroy failure: Device or resource busy > WARNING: 2 allocation(s) non freed.". I have been using "ME.Close" and > that seems to work well to quit. These messages are just warnings. When you use QUIT, the interpreter try to free everything itself, but can't succeed when there are open windows. You should never use the QUIT instruction. Closing all your windows must be sufficient. Regards, -- Benoit Minisini From sclewin at ...1126... Sat Oct 15 16:53:10 2005 From: sclewin at ...1126... (Scott) Date: Sat, 15 Oct 2005 10:53:10 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200510151654.46819.gambas@...1...> References: <1129378349.7346.8.camel@...1091...> <43511243.6050407@...1126...> <200510151654.46819.gambas@...1...> Message-ID: <435117D6.6050006@...1126...> Benoit Minisini wrote: > These messages are just warnings. When you use QUIT, the interpreter try to > free everything itself, but can't succeed when there are open windows. > > You should never use the QUIT instruction. Closing all your windows must be > sufficient. > oh, ok. So, am I doing the right thing using the Me.close to close that window and then make sure the other windows are closed as well? -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From jr at ...1090... Sat Oct 15 17:36:28 2005 From: jr at ...1090... (John Rittinghouse) Date: Sat, 15 Oct 2005 10:36:28 -0500 Subject: [Gambas-user] QUIT Command Message-ID: <1129390588.6156.3.camel@...1130...> Scott, Thanks and I get the same result with QUIT. I believe this QUIT command is intended for maintaining some type of compatibility with VB programs and is used to maintain that type of compatible functionality. Me.Close is the better alternative for Gambas but if there are any other points to be made about the QUIT command, Benoit would be the best to answer that. I will go back and see if I can make the book a bit more clear on that. regards, jr From: Scott A Beginner's Guide to Gambas 2005-10-15 07:29 Hi, I have started reading the book and I like it, I am very new to Gambas and programming and this looks like it will be a big help, thank you. I just have a few questions/comments from what I have read so far; I'm up to page 37. First, I was very pleased to see comments on proper programming practices. Thanks to you I will now make sure to name my variables using the variable type in its name. Also, I noticed you mentioned "QUIT" to be used in a program to end it. That has never worked for me in version 1 or 2 of the program, I will have the program end, but a console will pop up with the message, "WARNING: circular references detected Form1 (1) Mutex destroy failure: Device or resource busy WARNING: 2 allocation(s) non freed.". I have been using "ME.Close" and that seems to work well to quit. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" -- regards, jr __________________________________ John W. Rittinghouse, Ph.D., CISM From sourceforge-raindog2 at ...94... Sat Oct 15 19:52:12 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 15 Oct 2005 13:52:12 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <43511243.6050407@...1126...> References: <1129378349.7346.8.camel@...1091...> <43511243.6050407@...1126...> Message-ID: <200510151352.14590.sourceforge-raindog2@...94...> On Sat October 15 2005 10:29, Scott wrote: > resource busy WARNING: 2 allocation(s) non freed.". I have been > using "ME.Close" and that seems to work well to quit. I have had some issues where I was running multiple background programs, and even after terminating them neither ME.Close nor QUIT would end the Gambas program.... I'm guessing the background programs spawned their own children who didn't die, and Gambas is waiting forever for the SIGCHLD that never comes. In that instance, I do a SHELL "kill -9 " & Application.ID and while I'm sure it's even worse than using QUIT, it ends the program without any warnings.... Rob From sclewin at ...1126... Sat Oct 15 20:03:00 2005 From: sclewin at ...1126... (Scott) Date: Sat, 15 Oct 2005 14:03:00 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <200510151352.14590.sourceforge-raindog2@...94...> References: <1129378349.7346.8.camel@...1091...> <43511243.6050407@...1126...> <200510151352.14590.sourceforge-raindog2@...94...> Message-ID: <43514454.8080104@...1126...> Rob Kudla wrote: > On Sat October 15 2005 10:29, Scott wrote: > >> resource busy WARNING: 2 allocation(s) non freed.". I have been >> using "ME.Close" and that seems to work well to quit. >> > > I have had some issues where I was running multiple background > programs, and even after terminating them neither ME.Close nor QUIT > would end the Gambas program.... Thanks, I will keep that in mind if I have problems closing the program with the ME.Close. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" -------------- next part -------------- An HTML attachment was scrubbed... URL: From sclewin at ...1126... Sat Oct 15 20:37:55 2005 From: sclewin at ...1126... (Scott) Date: Sat, 15 Oct 2005 14:37:55 -0400 Subject: [Gambas-user] A Beginner's Guide to Gambas In-Reply-To: <434EA83B.70107@...407...> References: <434EA83B.70107@...407...> Message-ID: <43514C83.3060806@...1126...> Hi, I may have found a typo for you on page 91. You have PUBLIC SUB ListBox1_Click() IF Trim(ListBox1.Text) = "System.Charset" THEN TextLabel1.Text = System.Charset I believe you probably meant to have = "Charset" where you have = "System.Charset" -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From mariodonick at ...31... Sun Oct 16 13:30:29 2005 From: mariodonick at ...31... (Mario Donick) Date: Sun, 16 Oct 2005 13:30:29 +0200 Subject: [Gambas-user] Role Playing Game written in Gambas Message-ID: <435239D5.2070100@...31...> Hello at all, this is my first message to this list. Currently I am developing a game called "Avadan" that is a role playing game in the style of nethack/angband/rogue etc. It's entirely written using Gambas 1.9.20 and therefore uses SDL. I recently made available a first alpha-preview of the game at sourceforge. If you are interested, you may look at: http://sourceforge.net/projects/avadan/ In the moment, there is no possibility to win the game and because I haven't finished all graphics and data files, it will crash in many stages. But it is possible to discover certain dungeons and see how all is working. The first beta is planned for November 1st, the second beta for November 15th and the first stable build for December 1st. Hopefully there won't be so much changes in the SDL component of Gambas until then ;) Greetings, Mario From jr at ...1090... Sun Oct 16 15:04:39 2005 From: jr at ...1090... (John Rittinghouse) Date: Sun, 16 Oct 2005 08:04:39 -0500 Subject: [Gambas-user] Gambas Book corrections Message-ID: <1129467879.24818.5.camel@...1091...> Folks, All of the errors/corrections pointed out so far have been incorporated in the book on the download site. If you want a copy that reflects these latest changes and fixes, please download it again from the ftp site mentioned in my previous postings. The book and the errata sheet have changed, but no changes have been made to the readme file or to the example programs. Thanks again to everybody for the suggestions, comments, and feedback. It is always welcome. I would like to try to keep this book current and accurate for everyone so keep it up! all the best jr -------------- next part -------------- An HTML attachment was scrubbed... URL: From kztyrvlq at ...966... Sun Oct 16 20:24:26 2005 From: kztyrvlq at ...966... (A Person) Date: Sun, 16 Oct 2005 15:54:26 -0230 Subject: [Gambas-user] AM/PM ? Message-ID: <43529ADA.6010103@...966...> Good Day All . . . I am trying to use as an example, FORMAT$(NOW, "h:nn AM/PM") where NOW time is 1324hrs. 1:24 is the result for the above example. 1:24 PM is the proper return. The time is displayed in the proper format (-12) but the AM/PM is nowhere to be seen. 24 hour time works. No problem. 13:24 is the return. I am using 1.0.11. A mailing list search reports one hit where the above is coded as a patch to work. Please help me out. What is wrong? Paul From gambasfr at ...11... Sun Oct 16 22:06:18 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sun, 16 Oct 2005 22:06:18 +0200 Subject: [Gambas-user] Role Playing Game written in Gambas In-Reply-To: <435239D5.2070100@...31...> References: <435239D5.2070100@...31...> Message-ID: <200510162206.19062.gambasfr@...11...> Le Dimanche 16 Octobre 2005 13:30, Mario Donick a ?crit?: > Hello at all, > > this is my first message to this list. > > Currently I am developing a game called "Avadan" that is a role playing > game in the style of nethack/angband/rogue etc. It's entirely written > using Gambas 1.9.20 and therefore uses SDL. I recently made available a > first alpha-preview of the game at sourceforge. If you are interested, > you may look at: > > > http://sourceforge.net/projects/avadan/ it seem to be interessant... > > > In the moment, there is no possibility to win the game and because I > haven't finished all graphics and data files, it will crash in many > stages. But it is possible to discover certain dungeons and see how all > is working. The first beta is planned for November 1st, the second beta > for November 15th and the first stable build for December 1st. > > Hopefully there won't be so much changes in the SDL component of Gambas > until then ;) Hum.... Maybe ;-) > > Greetings, > Mario > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jsowden at ...1051... Mon Oct 17 06:36:59 2005 From: jsowden at ...1051... (John R. Sowden) Date: Sun, 16 Oct 2005 21:36:59 -0700 Subject: [Gambas-user] Tutorial: Code is going to wrong controls Message-ID: <200510162137.00309.jsowden@...1051...> I am trying to learn gambas (my first at oo prog). A demo, with spanish control labels (for id), has a small form with 2 buttons, accept and cancel. when I copy code from the demo pdf, it goes to both controls. I conformed that the controls ar4e labeled FInputBoxAccept and FInputBoxCancel (not the same). Also, the demo has some code for the "InputBox Dialog". Where does this go? tia -- John R. Sowden AMERICAN SENTRY SYSTEMS, INC. Residential & Commercial Alarm Service UL Listed Central Station Serving the San Francisco Bay Area Since 1967 mail at ...1051... www.americansentry.net From itadmin at ...1141... Mon Oct 17 11:30:23 2005 From: itadmin at ...1141... (felix) Date: Mon, 17 Oct 2005 17:30:23 +0800 Subject: [Gambas-user] A note on installing gambas on Fedore Core 4 Message-ID: <43536F2F.7080909@...1141...> All, I was able to install gambas on FC4 (which already has qt and mysql) with the command "yum install gambas*" The asterisk is all important. It is what made the attempt good. Regards, Felix From gambas at ...1... Mon Oct 17 22:44:14 2005 From: gambas at ...1... (Benoit Minisini) Date: Mon, 17 Oct 2005 22:44:14 +0200 Subject: [Gambas-user] A note on installing gambas on Fedore Core 4 In-Reply-To: <43536F2F.7080909@...1141...> References: <43536F2F.7080909@...1141...> Message-ID: <200510172244.14790.gambas@...1...> On Monday 17 October 2005 11:30, felix wrote: > All, > > I was able to install gambas on FC4 (which already has qt and > mysql) with the command "yum install gambas*" > > The asterisk is all important. It is what made the attempt good. > > > Regards, > Felix > OK, I add the asterisk to the website. Regards, -- Benoit Minisini From sakya_tg at ...325... Tue Oct 18 12:12:40 2005 From: sakya_tg at ...325... (sakya) Date: Tue, 18 Oct 2005 10:12:40 +0000 Subject: [Gambas-user] ClassName Message-ID: <4354CA98.1020101@...325...> Hi! Ho can I get the ClassName of an object in a loop like: for each obj in form.Children next Many thanks! Ciao Sakya ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com From sakya_tg at ...325... Tue Oct 18 12:14:08 2005 From: sakya_tg at ...325... (sakya) Date: Tue, 18 Oct 2005 10:14:08 +0000 Subject: [Gambas-user] TabOrder Message-ID: <4354CAF0.4070301@...325...> Hi! How can I set the control's taborder? I can't find a property for this... Many thanks Ciao Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From jose.santos at ...429... Tue Oct 18 10:33:50 2005 From: jose.santos at ...429... (Dani Santos) Date: Tue, 18 Oct 2005 10:33:50 +0200 Subject: [Gambas-user] ClassName In-Reply-To: <4354CA98.1020101@...325...> References: <4354CA98.1020101@...325...> Message-ID: <1129624430.4115.1.camel@...999...> Supossing you've got a txtTest TextBox: if Object.Class (txtTest) = "TextBox" then ' Control code ... endif Regards. El mar, 18-10-2005 a las 10:12 +0000, sakya escribi?: > Hi! > > Ho can I get the ClassName of an object in a loop like: > > for each obj in form.Children > > next > > Many thanks! > Ciao > Sakya > > > ___________________________________ > Yahoo! Messenger: chiamate gratuite in tutto il mondo > http://it.messenger.yahoo.com > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Jos? Daniel Santos Delgado Programador del IESO Quercus (Malpartida de Plasencia) http://iesoquercus.juntaextremadura.net/dani/ Tfno: 927010850 Fax: 927010851 From sakya_tg at ...325... Tue Oct 18 12:43:40 2005 From: sakya_tg at ...325... (sakya) Date: Tue, 18 Oct 2005 10:43:40 +0000 Subject: [Gambas-user] ClassName In-Reply-To: <1129624430.4115.1.camel@...999...> References: <4354CA98.1020101@...325...> <1129624430.4115.1.camel@...999...> Message-ID: <4354D1DC.7010505@...325...> Hi Dani! >Supossing you've got a txtTest TextBox: > >if Object.Class (txtTest) = "TextBox" then > ' Control code ... >endif > > Many many thanks! :-) Ciao Sakya ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com From pumidru at ...325... Tue Oct 18 11:05:26 2005 From: pumidru at ...325... (ghenzo ghenzo) Date: Tue, 18 Oct 2005 11:05:26 +0200 (CEST) Subject: [Gambas-user] (no subject) Message-ID: <20051018090527.29276.qmail@...1170...> ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com From jr at ...1090... Tue Oct 18 13:48:19 2005 From: jr at ...1090... (John Rittinghouse) Date: Tue, 18 Oct 2005 06:48:19 -0500 Subject: [Gambas-user] re: AM/PM Message-ID: <1129636099.25333.8.camel@...1091...> try this: PRINT Format(Now, "hh:nn:AM/PM") Note that there is no space in the format string. When I run this code, it works fine. hope this helps you out. jr -------------- next part -------------- An HTML attachment was scrubbed... URL: From jr at ...1090... Tue Oct 18 14:04:25 2005 From: jr at ...1090... (John Rittinghouse) Date: Tue, 18 Oct 2005 07:04:25 -0500 Subject: [Gambas-user] re: re: AM/PM? Message-ID: <1129637065.25333.11.camel@...1091...> Paul, Here is a short console program that should help on the AM/PM question. Sorry this was not included on the last posting. regards jr -------------------- STATIC PUBLIC SUB Main() DIM dTime AS Date dTime = Time(13, 24, 00) PRINT Format(Now, "hh:nn:AM/PM") PRINT Format(dTime, "hh:nn:AM/PM") END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Vince.Scott at ...1171... Tue Oct 18 15:45:53 2005 From: Vince.Scott at ...1171... (Scott, Vince) Date: Tue, 18 Oct 2005 08:45:53 -0500 Subject: [Gambas-user] re: re: AM/PM? Message-ID: Hello...I just join this users group and I am look for some information on the error message "No return value"....Do you know what this means and how to get rid of it? Any help would be greatly appreciated. Vince Scott ________________________________ From: gambas-user-admin at lists.sourceforge.net on behalf of John Rittinghouse Sent: Tue 10/18/2005 7:04 AM To: Gambas List Subject: [Gambas-user] re: re: AM/PM? Paul, Here is a short console program that should help on the AM/PM question. Sorry this was not included on the last posting. regards jr -------------------- STATIC PUBLIC SUB Main() DIM dTime AS Date dTime = Time(13, 24, 00) PRINT Format(Now, "hh:nn:AM/PM") PRINT Format(dTime, "hh:nn:AM/PM") END This communication is confidential and may be legally privileged. If you are not the intended recipient, (i) please do not read or disclose to others, (ii) please notify the sender by reply mail, and (iii) please delete this communication from your system. Failure to follow this process may be unlawful. Thank you for your cooperation. -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3789 bytes Desc: not available URL: From hscast at ...407... Tue Oct 18 16:15:49 2005 From: hscast at ...407... (Scott Castaline) Date: Tue, 18 Oct 2005 10:15:49 -0400 Subject: [Gambas-user] re: re: AM/PM? In-Reply-To: <1129637065.25333.11.camel@...1091...> References: <1129637065.25333.11.camel@...1091...> Message-ID: <43550395.9000406@...407...> John Rittinghouse wrote: > Paul, > > Here is a short console program that should help on the AM/PM > question. Sorry this was not included on the last posting. > regards > jr > > -------------------- > > STATIC PUBLIC SUB Main() > DIM dTime AS Date > > dTime = Time(13, 24, 00) > PRINT Format(Now, "hh:nn:AM/PM") > PRINT Format(dTime, "hh:nn:AM/PM") > END > > You can also do it this way: STATIC PUBLIC SUB Main() DIM dTime AS Date dTime = Time(13, 24, 00) PRINT Format(Now, "hh:nn AM/PM") PRINT Format(dTime, "hh:nn AM/PM") END The colon between min ?M is removed giving a more normal appearance. Scott Castaline From sourceforge-raindog2 at ...94... Tue Oct 18 17:56:41 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 18 Oct 2005 11:56:41 -0400 Subject: [Gambas-user] TabOrder In-Reply-To: <4354CAF0.4070301@...325...> References: <4354CAF0.4070301@...325...> Message-ID: <200510181156.42118.sourceforge-raindog2@...94...> On Tue October 18 2005 06:14, sakya wrote: > How can I set the control's taborder? I can't find a property > for this... Currently, the tab order of the controls is the same as their z-order ("Send to Front"/"Send to Back") on the form. So you need to click on each control in your desired order and then right click and "Send to Front" if I remember correctly. Rob From kztyrvlq at ...966... Tue Oct 18 19:04:54 2005 From: kztyrvlq at ...966... (A Person) Date: Tue, 18 Oct 2005 14:34:54 -0230 Subject: [Gambas-user] Re: Re: AM/PM (John) Message-ID: <43552B36.1010209@...966...> Good Day John & All . . . John, Thanks for the reply. Unfortunately it did not work. I modified my code as per your instructions. 2:15: was returned. I pasted your code into a new project. 2:17: and 1:24: were returned. It appears that my 1.0.11 Gambas does not in anyway acknowledge AM/PM. I don't mind using 24 hour time but my wife doesn't understand it. I need help. Paul From daniel at ...889... Tue Oct 18 22:56:16 2005 From: daniel at ...889... (Daniel) Date: Tue, 18 Oct 2005 22:56:16 +0200 Subject: [Gambas-user] TabOrder In-Reply-To: <4354CAF0.4070301@...325...> References: <4354CAF0.4070301@...325...> Message-ID: <43556170.6060104@...889...> sakya wrote: > Hi! > > How can I set the control's taborder? I can't find a property for this... > > Many thanks > Ciao > Sakya > > > > > > ___________________________________ Yahoo! Mail: gratis 1GB per i > messaggi e allegati da 10MB http://mail.yahoo.it > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > on a form you can use the right click+arrangement+horizontal or left right or vertival or top bottom daniel From jr at ...1090... Tue Oct 18 23:00:12 2005 From: jr at ...1090... (John Rittinghouse) Date: Tue, 18 Oct 2005 16:00:12 -0500 Subject: [Gambas-user] AM PM failures Message-ID: <1129669213.11624.1.camel@...1091...> Paul, please send me your code block at this email address: jr @ aphanes . net i put spaces in the email names to keep them from getting chopped up by sourceforge...obviously, do not use the spaces in the email address. regards, jr -------------- next part -------------- An HTML attachment was scrubbed... URL: From sclewin at ...1126... Wed Oct 19 00:20:15 2005 From: sclewin at ...1126... (Scott) Date: Tue, 18 Oct 2005 18:20:15 -0400 Subject: [Gambas-user] Problem Message-ID: <4355751F.5030305@...1126...> Hi, First, I can not see what is wrong with the following line of code. PUBLIC approval AS Variant I get a syntax error when I try to run it. I don't get what is wrong because this should be right based on the documentation I read and I used it in another program with v1.9.20. Is it a possible problem with v1.0.3 as that is what I am stuck with at the moment. Also, there seems to be a problem with the linex.org download of version 2. I tried it and only some of the packages downloaded while the others said they could not find some dependencies. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From gambas at ...1... Wed Oct 19 00:23:05 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 Oct 2005 00:23:05 +0200 Subject: [Gambas-user] Re: Re: AM/PM (John) In-Reply-To: <43552B36.1010209@...966...> References: <43552B36.1010209@...966...> Message-ID: <200510190023.06094.gambas@...1...> On Tuesday 18 October 2005 19:04, A Person wrote: > Good Day John & All . . . > > John, Thanks for the reply. Unfortunately it did not work. > > I modified my code as per your instructions. > > 2:15: was returned. > > I pasted your code into a new project. > > 2:17: and 1:24: were returned. It appears that my 1.0.11 Gambas does not > in anyway acknowledge AM/PM. > > I don't mind using 24 hour time but my wife doesn't understand it. > > I need help. > > Paul > > The am/pm words are printed only if your current localization supports it. Try this for example: System.Language = "C" PRINT Format$(CDate("15:30"), "hh:nn AM/PM") Regards, -- Benoit Minisini From kztyrvlq at ...966... Wed Oct 19 04:31:05 2005 From: kztyrvlq at ...966... (A Person) Date: Wed, 19 Oct 2005 00:01:05 -0230 Subject: [Gambas-user] Re: AM/PM (Benoit) Message-ID: <4355AFE9.9070209@...966...> Good Day Benoit . . . Thank You for the post. My System.Language is en_GB.UTF-8. Obviously this does not support AM/PM. I could not find specific documentation or information about the system.language options. I do not know what the "C" means. What I did do through trial and error was I found that System.Language = "" has the same effect as "C". So as a compromise, I included this before the code and System.Language = "en_GB.UTF-8" after the code. This works! I don't know what effect it will have on my program but I have got to keep this one in house. Thanks for the tip. Paul From kztyrvlq at ...966... Wed Oct 19 04:50:11 2005 From: kztyrvlq at ...966... (A Person) Date: Wed, 19 Oct 2005 00:20:11 -0230 Subject: [Gambas-user] AM/PM - Noon to 1PM Problem Message-ID: <4355B463.4020001@...966...> Good Day All . . . After considerable effort I now have AM/PM working in 1.0.11. Sort of! Any time between noon and 1PM does not return properly. The following are examples. Format(Time(11, 0, 0), "h:nn AM/PM") = 11:00 AM Format(Time(12, 0, 0), "h:nn AM/PM") = 0:00 PM Format(Time(12, 30, 0), "h:nn AM/PM") = 0:30 PM Format(Time(12, 0, 0), "hh:nn AM/PM") = 00:00 PM Format(Time(12, 30, 0), "h:nn AM/PM") = 00:30 PM Format(Time(13, 0, 0), "h:nn AM/PM") = 1:00 PM What am I doing wrong this time? Are these types of difficulties present in the Gambas2 versions? Is it time for me to become upwardly mobile? I really appreciate your help on this. Paul From sourceforge-raindog2 at ...94... Wed Oct 19 05:57:16 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 18 Oct 2005 23:57:16 -0400 Subject: [Gambas-user] AM/PM - Noon to 1PM Problem In-Reply-To: <4355B463.4020001@...966...> References: <4355B463.4020001@...966...> Message-ID: <200510182357.18261.sourceforge-raindog2@...94...> On Tue October 18 2005 22:50, A Person wrote: > Are these types of difficulties present in the Gambas2 > versions? Is it time for me to become upwardly mobile? I don't mean to minimize the annoyance that can be caused by time formats being incorrect, but if this format issue has been a showstopper for you, you should stay away from gambas2 for a while yet.... the syntax can (and does) still change from version to version, and things can still behave unpredictably. Personally, I wrote a "gb.posix" component last year just so I could use strftime() in my Gambas projects. (Posted it here, no one cared.) Nowadays I guess I would use gb.api to do the same thing. I like having one standard set of formats rather than having to go, "Hmmm, is a minute 'm' or 'n' or 'M' in this language?" I like to know that I can type "%Y-%m-%d %H:%M:%S" and get 2005-10-18 23:55 in whatever languages give me access to strftime(). I personally don't mind, except when I find a project I was working on circa 1.9.2 and want to pick it back up ;) Rob From isy21 at ...1082... Wed Oct 19 11:50:49 2005 From: isy21 at ...1082... (Ignatius Syofian) Date: Wed, 19 Oct 2005 16:50:49 +0700 Subject: [Gambas-user] need help:Checkbox Message-ID: <200510191650.49839.isy21@...1082...> Hi, all I use checkbox in my form. in query mode, if i use checkbox1.enable=false then i will grey the checkbox text if i use checkbox1.enable=true user can clik the checkbox to change the value from true to false or false to true. The problem is i want to show the checkbox.text in normal mode , but user can't change the value of checkbox without press edit button. How can i do that. Sorry about my poor english. Thank a lot -- Regards, Ignatius Syofian From jose.santos at ...429... Wed Oct 19 13:45:37 2005 From: jose.santos at ...429... (Dani Santos) Date: Wed, 19 Oct 2005 13:45:37 +0200 Subject: [Gambas-user] Validate Event and CausesValidation Message-ID: <1129722337.15926.10.camel@...999...> Let's suposse a simple form with Ok and Cancel buttons. I need to validate the contents of some textboxes before focus is lost outside the control. I also need a Cancel Button so, if pressed, doesn't cause validation in any control of the form. (Exactly the same behaviour my old VB had). I haven't had much sucess implementing in the LostFocus event. It would be nicer if the validation would take place before the focus was lost. I have not figured out how to do it: I could control the Tab KeyPress in an event but the user always could use the mouse to go to the next control. Any idea? Thanks in advance! -- Jos? Daniel Santos Delgado Programador del IESO Quercus (Malpartida de Plasencia) http://iesoquercus.juntaextremadura.net/dani/ Tfno: 927010850 Fax: 927010851 From werda at ...1000... Wed Oct 19 16:09:57 2005 From: werda at ...1000... (Werner) Date: Wed, 19 Oct 2005 22:09:57 +0800 Subject: [Gambas-user] need help:Checkbox In-Reply-To: <200510191650.49839.isy21@...1082...> References: <200510191650.49839.isy21@...1082...> Message-ID: <435653B5.8050708@...1000...> Ignatius Syofian wrote: > Hi, all > > I use checkbox in my form. > in query mode, if i use checkbox1.enable=false then > i will grey the checkbox text > if i use checkbox1.enable=true > user can clik the checkbox to change the value from true to false or > false to true. > > The problem is i want to show the checkbox.text in normal mode , but user > can't change the value of checkbox without press edit button. > > How can i do that. > > Sorry about my poor english. > Thank a lot > > It might be that you have a very special situation. The general idea of having a disabled control at all is to inform the user that that this control is potentially available but not in the particular circumstances. There is a very good book "Tog on Interface" by Bruce Tognazzini about user interface guidelines. It is now over 15 years old but physiology doesn't change that fast. If you really want to do this you could always place a text box with the same text, same font etc. just above the control text and then make it visible/insible. Regards, Werner From gambas at ...1... Wed Oct 19 16:37:25 2005 From: gambas at ...1... (Benoit Minisini) Date: Wed, 19 Oct 2005 16:37:25 +0200 Subject: [Gambas-user] AM/PM - Noon to 1PM Problem In-Reply-To: <200510182357.18261.sourceforge-raindog2@...94...> References: <4355B463.4020001@...966...> <200510182357.18261.sourceforge-raindog2@...94...> Message-ID: <200510191637.26282.gambas@...1...> On Wednesday 19 October 2005 05:57, Rob Kudla wrote: > On Tue October 18 2005 22:50, A Person wrote: > > Are these types of difficulties present in the Gambas2 > > versions? Is it time for me to become upwardly mobile? > > I don't mean to minimize the annoyance that can be caused by time > formats being incorrect, but if this format issue has been a > showstopper for you, you should stay away from gambas2 for a > while yet.... the syntax can (and does) still change from > version to version, and things can still behave unpredictably. > > Personally, I wrote a "gb.posix" component last year just so I > could use strftime() in my Gambas projects. (Posted it here, no > one cared.) Nowadays I guess I would use gb.api to do the same > thing. I like having one standard set of formats rather than > having to go, "Hmmm, is a minute 'm' or 'n' or 'M' in this > language?" I like to know that I can type "%Y-%m-%d %H:%M:%S" > and get 2005-10-18 23:55 in whatever languages give me access to > strftime(). > > I personally don't mind, except when I find a project I was > working on circa 1.9.2 and want to pick it back up ;) > > Rob > The time formats are directly taken from the system. I mean, Gambas behaves exactly like the shell 'date' command, except that the format string syntax is different. And so, according to the GNU documentation, 12:00 is PM and 24:00 is AM. I don't know if it is the truth, but Gambas returns you what the GNU libraries tell him! Regards, -- Benoit Minisini From sourceforge-raindog2 at ...94... Wed Oct 19 17:37:41 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 19 Oct 2005 11:37:41 -0400 Subject: [Gambas-user] AM/PM - Noon to 1PM Problem In-Reply-To: <200510191637.26282.gambas@...1...> References: <4355B463.4020001@...966...> <200510182357.18261.sourceforge-raindog2@...94...> <200510191637.26282.gambas@...1...> Message-ID: <200510191137.42626.sourceforge-raindog2@...94...> On Wed October 19 2005 10:37, Benoit Minisini wrote: > And so, according to the GNU documentation, 12:00 is PM and > 24:00 is AM. I don't know if it is the truth, but Gambas > returns you what the GNU libraries tell him! Well, strftime(), which is straight out of GNU libc, does this for 11:30, 12:30 and 13:30 (using %I:%M %p): 11:30 AM 12:30 PM 01:30 PM So I'm not sure which glibc function you're using to format the date, but maybe you should use strftime() instead ;) Rob From sclewin at ...1126... Wed Oct 19 17:47:44 2005 From: sclewin at ...1126... (Scott) Date: Wed, 19 Oct 2005 11:47:44 -0400 Subject: [Gambas-user] Show stopper Message-ID: <43566AA0.5060903@...1126...> Hi, I am getting very annoyed with this. It seems that v1.0.3 has a serious flaw where global variables are not possible, you can only make local ones using dim. To make things worse the Repository on the Gambas site for Debian based systems does not have all the dependencies, so it is not possible for anyone to get version two that uses a Debian based system. Can anyone help me? Does anyone know a repository that has debs for a newer version 1 or a version 2 that works? Can anyone give me very easy instructions to install from the source provided on the Gambas site; I am still new to Linux and have not compiled anything before. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From massenpost at ...1093... Wed Oct 19 19:11:48 2005 From: massenpost at ...1093... (Peter Lang) Date: Wed, 19 Oct 2005 19:11:48 +0200 Subject: [Gambas-user] Show stopper In-Reply-To: <43566AA0.5060903@...1126...> References: <43566AA0.5060903@...1126...> Message-ID: <200510191911.48317.massenpost@...1093...> On Wednesday 19 October 2005 17:47, Scott wrote: > Hi, > > I am getting very annoyed with this. It seems that v1.0.3 has a > serious flaw where global variables are not possible, you can only make > local ones using dim. To make things worse the Repository on the Gambas > site for Debian based systems does not have all the dependencies, so it > is not possible for anyone to get version two that uses a Debian based > system. > > Can anyone help me? Does anyone know a repository that has debs for > a newer version 1 or a version 2 that works? Can anyone give me very > easy instructions to install from the source provided on the Gambas > site; I am still new to Linux and have not compiled anything before. Hi Scott, you can use my personal repository, but it's not garantied to work always, its my first selfmade Debianpackage. But until there are new "working" packages on linex you can use it. Just put this in your /etc/apt/sources.list deb http://www.plasoft.de/debian/ / Alternativly, if you want to compile gambas, you can look at my website, it's really easy. www.peter-lang.com -> Online Brain->Linux-> Compiling Gambas This is a personal Mail (not to the List), because i dont want my repository in a public Mailinglist. Greetings from Germany Peter -- http://learn.to/quote BOFH excuse #105: UPS interrupted the server's power From sclewin at ...1126... Wed Oct 19 20:38:27 2005 From: sclewin at ...1126... (Scott) Date: Wed, 19 Oct 2005 14:38:27 -0400 Subject: [Gambas-user] Show stopper In-Reply-To: <200510191911.48317.massenpost@...1093...> References: <43566AA0.5060903@...1126...> <200510191911.48317.massenpost@...1093...> Message-ID: <435692A3.9020305@...1126...> Sadly enough, it seems that any Gambas after the v1.0.3 is not compatible with Ubuntu or Kubuntu v5.10. I started checking to see what dependencies where missing from the Linex repository, so I could find them myself, and found out that to install some of them I would need to uninstall my desktop. I had version 1.9.20 running on my computer when I have v5.04 of Ubuntu & KUbuntu, so it is good with that version, but not with the newer version. This is very sad as I liked Gambas and now I am going to need to learn a new programming language. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From massenpost at ...1093... Thu Oct 20 00:10:28 2005 From: massenpost at ...1093... (Peter Lang) Date: Thu, 20 Oct 2005 00:10:28 +0200 Subject: [Gambas-user] Show stopper In-Reply-To: <435692A3.9020305@...1126...> References: <43566AA0.5060903@...1126...> <200510191911.48317.massenpost@...1093...> <435692A3.9020305@...1126...> Message-ID: <200510200010.28863.massenpost@...1093...> On Wednesday 19 October 2005 20:38, Scott wrote: > Sadly enough, > > it seems that any Gambas after the v1.0.3 is not compatible with > Ubuntu or Kubuntu v5.10. I started checking to see what dependencies > where missing from the Linex repository, so I could find them myself, > and found out that to install some of them I would need to uninstall my > desktop. I had version 1.9.20 running on my computer when I have v5.04 > of Ubuntu & KUbuntu, so it is good with that version, but not with the > newer version. > > This is very sad as I liked Gambas and now I am going to need to > learn a new programming language. Searching for the right dependencies on the linex packages won't lead to success, i think. Debian Sid is undergoing large chages this time. Try to compile gambas an you will succeed. The needed libaries are mentioned on my website, the packagenames are from debian sarge, you just have to search for the right package on kubuntu and you'r on the right way, it's really easy just as gambas itself. Peter -- http://learn.to/quote BOFH excuse #218: The UPS doesn't have a battery backup. From gambas at ...1... Thu Oct 20 00:17:20 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Oct 2005 00:17:20 +0200 Subject: [Gambas-user] AM/PM - Noon to 1PM Problem In-Reply-To: <200510191137.42626.sourceforge-raindog2@...94...> References: <4355B463.4020001@...966...> <200510191637.26282.gambas@...1...> <200510191137.42626.sourceforge-raindog2@...94...> Message-ID: <200510200017.20331.gambas@...1...> On Wednesday 19 October 2005 17:37, Rob Kudla wrote: > On Wed October 19 2005 10:37, Benoit Minisini wrote: > > And so, according to the GNU documentation, 12:00 is PM and > > 24:00 is AM. I don't know if it is the truth, but Gambas > > returns you what the GNU libraries tell him! > > Well, strftime(), which is straight out of GNU libc, does this > for 11:30, 12:30 and 13:30 (using %I:%M %p): > > 11:30 AM > 12:30 PM > 01:30 PM > > So I'm not sure which glibc function you're using to format the > date, but maybe you should use strftime() instead ;) > > Rob > I use strftime() - There is no other function I know. -- Benoit Minisini From jr at ...1090... Thu Oct 20 00:50:55 2005 From: jr at ...1090... (John Rittinghouse) Date: Wed, 19 Oct 2005 17:50:55 -0500 Subject: [Gambas-user] Trashed Docs on Wiki Message-ID: <1129762256.593.7.camel@...1091...> Has anyone else noticed that the Wiki docs (static) maintained by Rob Kudla have been trashed with russian porn links? jr -------------- next part -------------- An HTML attachment was scrubbed... URL: From fidojones at ...805... Thu Oct 20 00:56:28 2005 From: fidojones at ...805... (Lorenzo Tejera) Date: Thu, 20 Oct 2005 00:56:28 +0200 (CEST) Subject: [Gambas-user] Columnview.Clear in GTK not work Message-ID: <55630.85.155.33.88.1129762588.squirrel@...1174...> Columnview.Clear in GTK not work In qt works fine, but in GTK in gambas 1.9.20 not I don't remember if it's fixed..... From gambas at ...1... Thu Oct 20 01:05:37 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Oct 2005 01:05:37 +0200 Subject: [Gambas-user] Trashed Docs on Wiki In-Reply-To: <1129762256.593.7.camel@...1091...> References: <1129762256.593.7.camel@...1091...> Message-ID: <200510200105.37779.gambas@...1...> On Thursday 20 October 2005 00:50, John Rittinghouse wrote: > Has anyone else noticed that the Wiki docs (static) maintained by Rob > Kudla have been trashed with russian porn links? > jr This was done two days ago, and I remove them today. Do you see them again? -- Benoit Minisini From felixcafarelli at ...1176... Thu Oct 20 01:33:20 2005 From: felixcafarelli at ...1176... (Felice Cafarelli) Date: Thu, 20 Oct 2005 01:33:20 +0200 Subject: [Gambas-user] this query don't works, why? Message-ID: <200510200133.20662.felixcafarelli@...1176...> This query on a mysql database don't works sSQLUsers = "SELECT user,password FROM user WHERE user = '" & FMain.$sUser & "' and password = '" & txtOldPassword.Text & "' and host = '" & FMain.$sHost & "'" but works the query sSQLUsers = "SELECT user,password FROM user WHERE user = "'" & FMain.$sUser & "'" I need to specify more parameters but it seems that doesn't work with more than 1 parameter... Anyone should help??? Cheers Felix From sourceforge-raindog2 at ...94... Thu Oct 20 01:55:23 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 19 Oct 2005 19:55:23 -0400 Subject: [Gambas-user] Trashed Docs on Wiki In-Reply-To: <200510200105.37779.gambas@...1...> References: <1129762256.593.7.camel@...1091...> <200510200105.37779.gambas@...1...> Message-ID: <200510191955.24415.sourceforge-raindog2@...94...> On Wed October 19 2005 19:05, Benoit Minisini wrote: > This was done two days ago, and I remove them today. Do you > see them again? Apparently the Gambas 2.0 documentation system will arrive not a moment too soon ;) TWiki has lately been subject not only to defacing like this (because it has no way to verify new users are humans and not scripts like the ones used to post all that spam), but vulnerabilities that have allowed the attackers to run arbitrary code on our server as the apache user. As useful as it has been, at this point I'll be happy to get rid of TWiki. Rob From sourceforge-raindog2 at ...94... Thu Oct 20 01:51:55 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Wed, 19 Oct 2005 19:51:55 -0400 Subject: [Gambas-user] AM/PM - Noon to 1PM Problem In-Reply-To: <200510200017.20331.gambas@...1...> References: <4355B463.4020001@...966...> <200510191137.42626.sourceforge-raindog2@...94...> <200510200017.20331.gambas@...1...> Message-ID: <200510191951.56697.sourceforge-raindog2@...94...> On Wed October 19 2005 18:17, Benoit Minisini wrote: > > Well, strftime(), which is straight out of GNU libc, does > > this for 11:30, 12:30 and 13:30 (using %I:%M %p): > > 12:30 PM > > 01:30 PM > I use strftime() - There is no other function I know. Interesting. In that case, I don't understand why strftime("%I:%M %p", 0, 30, 12, 19, 10, 2005) returns 12:30 PM, but Format(Time(12, 30, 0), "h:nn AM/PM") which should be equivalent, returns 0:30 PM. Aren't you evaluating the "h" placeholder as "%I"? Rob From sclewin at ...1126... Thu Oct 20 02:11:26 2005 From: sclewin at ...1126... (Scott) Date: Wed, 19 Oct 2005 20:11:26 -0400 Subject: [Gambas-user] Show stopper In-Reply-To: <200510200010.28863.massenpost@...1093...> References: <43566AA0.5060903@...1126...> <200510191911.48317.massenpost@...1093...> <435692A3.9020305@...1126...> <200510200010.28863.massenpost@...1093...> Message-ID: <4356E0AE.9090307@...1126...> Peter Lang wrote: > On Wednesday 19 October 2005 20:38, Scott wrote: > >> Sadly enough, >> >> it seems that any Gambas after the v1.0.3 is not compatible with >> Ubuntu or Kubuntu v5.10. I started checking to see what dependencies >> where missing from the Linex repository, so I could find them myself, >> and found out that to install some of them I would need to uninstall my >> desktop. I had version 1.9.20 running on my computer when I have v5.04 >> of Ubuntu & KUbuntu, so it is good with that version, but not with the >> newer version. >> >> This is very sad as I liked Gambas and now I am going to need to >> learn a new programming language. >> > > Try to compile gambas an you will succeed. I tried to compile both the newest version 1, version 1.9.18, and 1.9.20 and got the same error. checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. It seems there is something wrong with the cpp package I have. I went and installed every cpp package I can find. I also went to your web page, thank you, and installed every package listed. I simply don't seem to be having any luck, but thank you greatly for your help. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" -------------- next part -------------- An HTML attachment was scrubbed... URL: From sclewin at ...1126... Thu Oct 20 02:46:12 2005 From: sclewin at ...1126... (Scott) Date: Wed, 19 Oct 2005 20:46:12 -0400 Subject: [Gambas-user] Show stopper In-Reply-To: <200510200010.28863.massenpost@...1093...> References: <43566AA0.5060903@...1126...> <200510191911.48317.massenpost@...1093...> <435692A3.9020305@...1126...> <200510200010.28863.massenpost@...1093...> Message-ID: <4356E8D4.9060205@...1126...> Hi, good news, I think I found a way to get public variables to work in v1.0.3. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From emin.huseynov at ...626... Thu Oct 20 08:02:20 2005 From: emin.huseynov at ...626... (Emin Huseynov) Date: Thu, 20 Oct 2005 11:02:20 +0500 Subject: [Gambas-user] Trashed Docs on Wiki In-Reply-To: <1129762256.593.7.camel@...1091...> References: <1129762256.593.7.camel@...1091...> Message-ID: HEllo, Why dont you guys have a static help system, and additional forum for community discussions. Wiki is not the best way to store help info like this. I can help with any kind of php/mysql programming if needed Thanks Emin On 10/20/05, John Rittinghouse wrote: > > Has anyone else noticed that the Wiki docs (static) maintained by Rob > Kudla have been trashed with russian porn links? > jr > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ariefbayu at ...626... Thu Oct 20 08:25:49 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Thu, 20 Oct 2005 13:25:49 +0700 Subject: [Gambas-user] this query don't works, why? In-Reply-To: <200510200133.20662.felixcafarelli@...1176...> References: <200510200133.20662.felixcafarelli@...1176...> Message-ID: <976ad9050510192325j1a7a95c8r@...627...> 2005/10/20, Felice Cafarelli : > > This query on a mysql database don't works > > sSQLUsers = "SELECT user,password FROM user WHERE user = '" & FMain.$sUser > & > "' and password = '" & txtOldPassword.Text & "' and host = '" & > FMain.$sHost > & "'" > > but works the query > > sSQLUsers = "SELECT user,password FROM user WHERE user = "'" & > FMain.$sUser & > "'" > > I need to specify more parameters but it seems that doesn't work with more > than 1 parameter... > Anyone should help??? > > Cheers > Felix > What result do you get? no result or error? -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronan at ...384... Thu Oct 20 09:34:59 2005 From: ronan at ...384... (Ronan Chilvers) Date: Thu, 20 Oct 2005 08:34:59 +0100 Subject: [Gambas-user] Show stopper In-Reply-To: <4356E0AE.9090307@...1126...> References: <43566AA0.5060903@...1126...> <200510191911.48317.massenpost@...1093...> <435692A3.9020305@...1126...> <200510200010.28863.massenpost@...1093...> <4356E0AE.9090307@...1126...> Message-ID: <20051020083459.7efa0725@...1179...> Hi Scott On Wed, 19 Oct 2005 20:11:26 -0400 Scott wrote: > Peter Lang wrote: > > checking how to run the C++ preprocessor... /lib/cpp > configure: error: C++ preprocessor "/lib/cpp" fails sanity check > See `config.log' for more details. > > It seems there is something wrong with the cpp package I have. I > went and installed every cpp package I can find. I also went to your > web page, thank you, and installed every package listed. I simply > don't seem to be having any luck, but thank you greatly for your help. > You need to install the g++ package. This error indicates that you don't have the C++ compiler installed. On Ubuntu (5.04 or 5.10) you'll also need to install libqt-mt-dev (which will install a set of dependencies too). In order to get things like database access working, you'll need to install the dev packages for whichever database you want. I can probably knock up a list of them if you want it. I have successfully compiled gambas on both Ubuntu 5.04 and 5.10. I would expect Kubuntu to be the same since the underlying system is identical (things like qt would already be installed since KDE uses it). To install any of the above, either do sudo apt-get install from the command line or use synaptic to search for, mark and install them. Cheers -- Ronan e: ronan at ...384... t: 01903 739 997 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From bernieman at ...977... Thu Oct 20 11:10:10 2005 From: bernieman at ...977... (BernieMan) Date: Thu, 20 Oct 2005 11:10:10 +0200 Subject: [Gambas-user] FTP Question Message-ID: <43575EF2.6030303@...977...> Hello all, Is it possible to have a ftp-possibility within a program. For example: I have a program which creates files. I want these files send to my webspace. I dont want to use the shell-functions, if this is possible. Any ideas thanx in advance BM From jr at ...1090... Thu Oct 20 13:08:10 2005 From: jr at ...1090... (John Rittinghouse) Date: Thu, 20 Oct 2005 06:08:10 -0500 Subject: [Gambas-user] re: re: Trashed docs on Wiki Message-ID: <1129806490.593.18.camel@...1091...> No, it appears the problem was fixed. jr >On Thursday 20 October 2005 00:50, John Rittinghouse wrote: > Has anyone else noticed that the Wiki docs (static) maintained by Rob > Kudla have been trashed with russian porn links? > jr >This was done two days ago, and I remove them today. Do you see them again? >-- >Benoit Minisini -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigel at ...38... Thu Oct 20 14:41:34 2005 From: nigel at ...38... (nigel at ...38...) Date: Thu, 20 Oct 2005 14:41:34 +0200 (CEST) Subject: [Gambas-user] this query don't works, why? Message-ID: <8983634.1129812094519.JavaMail.www@...713...> Try switching Debug on before executing the sql. It will show what statement is being executed; eg. DB.Debug = True Nigel > Message Received: Oct 20 2005, 12:34 AM > From: "Felice Cafarelli" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] this query don't works, why? > > This query on a mysql database don't works > > sSQLUsers = "SELECT user,password FROM user WHERE user = '" & FMain.$sUser & > "' and password = '" & txtOldPassword.Text & "' and host = '" & FMain.$sHost > & "'" > > but works the query > > sSQLUsers = "SELECT user,password FROM user WHERE user = "'" & FMain.$sUser & > "'" > > I need to specify more parameters but it seems that doesn't work with more > than 1 parameter... > Anyone should help??? > > Cheers > Felix > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From felixcafarelli at ...1176... Thu Oct 20 15:53:15 2005 From: felixcafarelli at ...1176... (Felice Cafarelli) Date: Thu, 20 Oct 2005 15:53:15 +0200 Subject: [Gambas-user] this query don't works, why? In-Reply-To: <976ad9050510192325j1a7a95c8r@...627...> References: <200510200133.20662.felixcafarelli@...1176...> <976ad9050510192325j1a7a95c8r@...627...> Message-ID: <200510201553.15683.felixcafarelli@...1176...> Alle 08:25, gioved? 20 ottobre 2005, Arief Bayu Purwanto ha scritto: > 2005/10/20, Felice Cafarelli : > > This query on a mysql database don't works > > > > sSQLUsers = "SELECT user,password FROM user WHERE user = '" & > > FMain.$sUser & > > "' and password = '" & txtOldPassword.Text & "' and host = '" & > > FMain.$sHost > > & "'" > > > > but works the query > > > > sSQLUsers = "SELECT user,password FROM user WHERE user = "'" & > > FMain.$sUser & > > "'" > > > > I need to specify more parameters but it seems that doesn't work with > > more than 1 parameter... > > Anyone should help??? > > > > Cheers > > Felix > > What result do you get? no result or error? > Yes, the error is "no result", but if I comment the last part of the query, it gives me a result... a little peculiar, isn't it? From felixcafarelli at ...1176... Thu Oct 20 16:19:27 2005 From: felixcafarelli at ...1176... (Felice Cafarelli) Date: Thu, 20 Oct 2005 16:19:27 +0200 Subject: [Gambas-user] this query don't works, why? In-Reply-To: <8983634.1129812094519.JavaMail.www@...713...> References: <8983634.1129812094519.JavaMail.www@...713...> Message-ID: <200510201619.27574.felixcafarelli@...1176...> Alle 14:41, gioved? 20 ottobre 2005, nigel at ...38... ha scritto: > Try switching Debug on before executing the sql. > It will show what statement is being executed; > > eg. DB.Debug = True > > Nigel Hi, Nigel... it was the first thing i did... the sql statement is correct (or so i thought before now), any ideas? I'm working on the system tables of a mysql server, precisely on the 'user' table... with gambas1.0.9 on a mandriva2005 and administrative rights on the mysql server, could help? Hi all Felix From ngerrard at ...1181... Thu Oct 20 17:29:00 2005 From: ngerrard at ...1181... (Nigel Gerrard) Date: Thu, 20 Oct 2005 16:29:00 +0100 Subject: [Gambas-user] this query don't works, why? Message-ID: Hello Felice, I believe your problem is with the select statement; is your password encrypted? If you did select user, password, host from user where user = 'username' and host = 'hostname', I suspect that it would work. Give it a try and let me know. Try putting together a statement that sends the following to mysql: 'select user, password, host from user where user = 'username' and password = password('user password')' Nigel > Message Received: Oct 20 2005, 03:19 PM > From: "Felice Cafarelli" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] this query don't works, why? > > Alle 14:41, gioved? 20 ottobre 2005, nigel at ...38... ha > scritto: > > Try switching Debug on before executing the sql. > > It will show what statement is being executed; > > > > eg. DB.Debug = True > > > > Nigel > > Hi, Nigel... it was the first thing i did... the sql statement is correct (or > so i thought before now), any ideas? I'm working on the system tables of a > mysql server, precisely on the 'user' table... with gambas1.0.9 on a > mandriva2005 and administrative rights on the mysql server, could help? > Hi all > Felix > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From sourceforge-raindog2 at ...94... Thu Oct 20 18:44:31 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 20 Oct 2005 12:44:31 -0400 Subject: [Gambas-user] Trashed Docs on Wiki In-Reply-To: References: <1129762256.593.7.camel@...1091...> Message-ID: <200510201244.32442.sourceforge-raindog2@...94...> On Thu October 20 2005 02:02, Emin Huseynov wrote: > Why dont you guys have a static help system, and additional > forum for community discussions. > Wiki is not the best way to store help info like this. When we started the wiki, the Gambas documentation consisted of one Staroffice document. The idea of the wiki was to get people to contribute more and more documentation and to allow us to easily change the structure of the documentation. To a degree, it succeeded. Some people complained about the documentation for Gambas 1.0, but compared to some of the other high-level languages I've used under Linux, it was a dream. (It was also a dream compared to VB5 and VB6, which apparently don't install the documentation by default, so whenever I visit a client who has done the installation themselves, I end up having to google for the simplest things.) And it would have kept working, except every other project in the world started doing the same thing and some Russian and Chinese spammers learned to abuse wikis. Benoit has written a new, much faster, much more translation-friendly, and much more structured wiki which is included in the Gambas 2.0 beta series source. It requires the administrator to manually add users, which will eliminate the problem with spambots registering accounts and polluting the documentation. It's much closer to a traditional CMS (which is what I think you're describing) while still allowing contributions of stuff like example code which is essential to community-based documentation.... as proven by MySQL even before the popularity of wikis. > I can help with any kind of php/mysql programming if needed Benoit's CMS is actually written in Gambas, serving as a pretty awesome example of what Gambas can do in a CGI context, and does use MySQL as a back end. But since it's part of the Gambas source tree, why not post any of your improvements to it on gambas-devel? Thanks... Rob From sourceforge-raindog2 at ...94... Thu Oct 20 18:45:41 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Thu, 20 Oct 2005 12:45:41 -0400 Subject: [Gambas-user] re: re: Trashed docs on Wiki In-Reply-To: <1129806490.593.18.camel@...1091...> References: <1129806490.593.18.camel@...1091...> Message-ID: <200510201245.43127.sourceforge-raindog2@...94...> On Thu October 20 2005 07:08, John Rittinghouse wrote: > No, it appears the problem was fixed. The static version of the wiki only gets generated once a day, so that's why you saw the problem after Benoit had already fixed it. I think I'm going to disable automated new user creation for now. I'll post instructions for requesting an account on the wiki when I do. But we should be switching to Benoit's new program ( http://new.gambasdoc.org ) pretty soon anyway. It's really a lot nicer and more structured. Rob From felixcafarelli at ...1176... Thu Oct 20 19:28:03 2005 From: felixcafarelli at ...1176... (Felice Cafarelli) Date: Thu, 20 Oct 2005 19:28:03 +0200 Subject: [Gambas-user] this query don't works, why? In-Reply-To: References: Message-ID: <200510201928.03750.felixcafarelli@...1176...> Alle 17:29, gioved? 20 ottobre 2005, Nigel Gerrard ha scritto: YESSS, the error was there: password encryption. Thanks a lot > Hello Felice, > > I believe your problem is with the select statement; is your password > encrypted? > If you did select user, password, host from user where user = 'username' > and host = 'hostname', I suspect that it would work. > Give it a try and let me know. > > Try putting together a statement that sends the following to mysql: > 'select user, password, host from user where user = 'username' and password > = password('user password')' > > Nigel > > > Message Received: Oct 20 2005, 03:19 PM > > From: "Felice Cafarelli" > > To: gambas-user at lists.sourceforge.net > > Cc: > > Subject: Re: [Gambas-user] this query don't works, why? > > > > Alle 14:41, gioved? 20 ottobre 2005, nigel at ...38... ha > > > > scritto: > > > Try switching Debug on before executing the sql. > > > It will show what statement is being executed; > > > > > > eg. DB.Debug = True > > > > > > Nigel > > > > Hi, Nigel... it was the first thing i did... the sql statement is correct > > (or > > > so i thought before now), any ideas? I'm working on the system tables of > > a > > > mysql server, precisely on the 'user' table... with gambas1.0.9 on a > > mandriva2005 and administrative rights on the mysql server, could help? > > Hi all > > Felix > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: > > Power Architecture Resource Center: Free content, downloads, discussions, > > and more. http://solutions.newsforge.com/ibmarch.tmpl > > _______________________________________________ > > 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: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Thu Oct 20 23:52:34 2005 From: gambas at ...1... (Benoit Minisini) Date: Thu, 20 Oct 2005 23:52:34 +0200 Subject: [Gambas-user] re: re: Trashed docs on Wiki In-Reply-To: <200510201245.43127.sourceforge-raindog2@...94...> References: <1129806490.593.18.camel@...1091...> <200510201245.43127.sourceforge-raindog2@...94...> Message-ID: <200510202352.34172.gambas@...1...> On Thursday 20 October 2005 18:45, Rob Kudla wrote: > On Thu October 20 2005 07:08, John Rittinghouse wrote: > > No, it appears the problem was fixed. > > The static version of the wiki only gets generated once a day, so > that's why you saw the problem after Benoit had already fixed > it. > > I think I'm going to disable automated new user creation for now. > I'll post instructions for requesting an account on the wiki > when I do. But we should be switching to Benoit's new program > ( http://new.gambasdoc.org ) pretty soon anyway. It's really a > lot nicer and more structured. > > Rob > I have "acting studies holidays" from 23 Oct. until 2 Nov. I will go to Extremadura (Spain) for a talk on Gambas between 24 Oct. and 28 Oct. Look at http://www.opensourceworldconference.com for the details. During the resting time, I will try to: - Update the new wiki so that we can switch to it. - Makes a new gambas version with the latest bug fixes, components and so on. Regards, -- Benoit Minisini From sclewin at ...1126... Fri Oct 21 00:21:11 2005 From: sclewin at ...1126... (Scott) Date: Thu, 20 Oct 2005 18:21:11 -0400 Subject: [Gambas-user] Show stopper In-Reply-To: <20051020083459.7efa0725@...1179...> References: <43566AA0.5060903@...1126...> <200510191911.48317.massenpost@...1093...> <435692A3.9020305@...1126...> <200510200010.28863.massenpost@...1093...> <4356E0AE.9090307@...1126...> <20051020083459.7efa0725@...1179...> Message-ID: <43581857.2060101@...1126...> Ronan Chilvers wrote: > Hi Scott > > > You need to install the g++ package. Thanks to you and Peter I have installed my first program from source. The g++ was the last dependency I needed and now I have v1.0.11 working. This is a big step for me as I started using Linux only a little over 4 months ago. A big thank you :) -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From vishwajith.eng at ...626... Sat Oct 22 08:08:01 2005 From: vishwajith.eng at ...626... (r vishwajith) Date: Sat, 22 Oct 2005 12:08:01 +0600 Subject: [Gambas-user] Accessing parallel port... Message-ID: <8d7acf260510212308j735cb3f8wed8b80ef50d956df@...627...> Hi all, I'm new to gambas...It's a wonderful devlopment env. :-) Could any one explain me how to access parallel port using gambas...Actually what i need is to drive some electronics using parallel port. tnx, --- Vishwajith R -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishwajith.eng at ...626... Sat Oct 22 08:14:07 2005 From: vishwajith.eng at ...626... (r vishwajith) Date: Sat, 22 Oct 2005 12:14:07 +0600 Subject: [Gambas-user] Accessing parallel port... In-Reply-To: <8d7acf260510212308j735cb3f8wed8b80ef50d956df@...627...> References: <8d7acf260510212308j735cb3f8wed8b80ef50d956df@...627...> Message-ID: <8d7acf260510212314wcd1b06dr2ac7acf6517d32d3@...627...> Hi all, I'm new to gambas...It's a wonderful devlopment env. :-) Could any one explain me how to access parallel port using gambas...Actually what i need is to drive some electronics using parallel port. tnx, --- Vishwajith R -------------- next part -------------- An HTML attachment was scrubbed... URL: From emin.huseynov at ...626... Sat Oct 22 08:46:47 2005 From: emin.huseynov at ...626... (Emin Huseynov) Date: Sat, 22 Oct 2005 11:46:47 +0500 Subject: [Gambas-user] translation , new language Message-ID: Hello, I would like to start translating Gambas in Azerbaijani ( http://en.wikipedia.org/wiki/Azerbaijani ) , What needs to be done? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at ...1... Sat Oct 22 11:08:28 2005 From: gambas at ...1... (Benoit Minisini) Date: Sat, 22 Oct 2005 11:08:28 +0200 Subject: [Gambas-user] translation , new language In-Reply-To: References: Message-ID: <200510221108.29009.gambas@...1...> On Saturday 22 October 2005 08:46, Emin Huseynov wrote: > Hello, > I would like to start translating Gambas in Azerbaijani ( > http://en.wikipedia.org/wiki/Azerbaijani ) , > What needs to be done? > > Thanks Open the IDE source code, and add this line to the _init function of the 'Language' module: Name["az"] = ("Azerbaijani (Azerbaijan)") Then rerun the IDE from the IDE, and you can start translating. Regards, -- Benoit Minisini From emin.huseynov at ...626... Sat Oct 22 11:31:41 2005 From: emin.huseynov at ...626... (Emin Huseynov) Date: Sat, 22 Oct 2005 14:31:41 +0500 Subject: [Gambas-user] translation , new language In-Reply-To: <200510221108.29009.gambas@...1...> References: <200510221108.29009.gambas@...1...> Message-ID: Hello, Benoit I ment i want to translate Gamba itself, not my app. How is this possible? On 10/22/05, Benoit Minisini wrote: > > On Saturday 22 October 2005 08:46, Emin Huseynov wrote: > > Hello, > > I would like to start translating Gambas in Azerbaijani ( > > http://en.wikipedia.org/wiki/Azerbaijani ) , > > What needs to be done? > > > > Thanks > > Open the IDE source code, and add this line to the _init function of the > 'Language' module: > > Name["az"] = ("Azerbaijani (Azerbaijan)") > > Then rerun the IDE from the IDE, and you can start translating. > > Regards, > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From igor.furlan at ...626... Sat Oct 22 19:00:54 2005 From: igor.furlan at ...626... (Primorec) Date: Sat, 22 Oct 2005 10:00:54 -0700 Subject: [Gambas-user] Accessing parallel port... In-Reply-To: <8d7acf260510212314wcd1b06dr2ac7acf6517d32d3@...627...> References: <8d7acf260510212308j735cb3f8wed8b80ef50d956df@...627...> <8d7acf260510212314wcd1b06dr2ac7acf6517d32d3@...627...> Message-ID: <54728e740510221000t1bb2431bx36985f8f0fcd4a68@...627...> write your stuff in C using http://parapin.sourceforge.net/ and talk from GAMBAS to the parallel port through system call On 10/21/05, r vishwajith wrote: > > Hi all, > > I'm new to gambas...It's a wonderful devlopment env. :-) > > Could any one explain me how to access parallel port using > gambas...Actually what i need is to drive some electronics using parallel > port. > > tnx, > > --- > Vishwajith R > -- There is no such thing as 'knowledge' for the sake of knowledge. Knowledge is power. "I know. You don't know". -------------- next part -------------- An HTML attachment was scrubbed... URL: From sourceforge-raindog2 at ...94... Sat Oct 22 19:35:30 2005 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Sat, 22 Oct 2005 13:35:30 -0400 Subject: [Gambas-user] Accessing parallel port... In-Reply-To: <54728e740510221000t1bb2431bx36985f8f0fcd4a68@...627...> References: <8d7acf260510212308j735cb3f8wed8b80ef50d956df@...627...> <8d7acf260510212314wcd1b06dr2ac7acf6517d32d3@...627...> <54728e740510221000t1bb2431bx36985f8f0fcd4a68@...627...> Message-ID: <200510221335.31191.sourceforge-raindog2@...94...> On Sat October 22 2005 13:00, Primorec wrote: > write your stuff in C using http://parapin.sourceforge.net/ > and talk from GAMBAS to the parallel port through system call It depends. Parapin's only good for pin-level stuff.... largely homebrew projects where you use individual pins for signaling. I looked at it last year for a 80's joystick conversion project, but luckily I found a way to do it over USB instead. He might just be able to open /dev/lp0 read/write to do what he wants to do, though setting ioctl's and the like might be a problem. Eventually, I imagine someone will write both pin-level and traditional parallel port components, but that will take someone who has both a need for such functionality and a familiarity with C or C++... and is not afraid of the Gambas API ;) Rob From pmalcher at ...1185... Sun Oct 23 05:14:03 2005 From: pmalcher at ...1185... (pmalcher at ...1185...) Date: 22 Oct 2005 23:14:03 -0400 Subject: [Gambas-user] =?utf-8?Q?Re:_Gambas=2Duser_digest,_Vol_1_#1533_=2D_7_msgs?= Message-ID: <20051023031403.63627.qmail@...1186...> Due to Hurricane Wilma, ALL GGWS in-home support and web design services, as well as new client hosting signups, will be suspended until further notice on Thursday, October 20, 2005. We will make every effort to resume operations in a timely manner. From gambasfr at ...11... Sun Oct 23 10:52:53 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Sun, 23 Oct 2005 10:52:53 +0200 Subject: [Gambas-user] translation , new language In-Reply-To: References: <200510221108.29009.gambas@...1...> Message-ID: <200510231052.53443.gambasfr@...11...> Le Samedi 22 Octobre 2005 11:31, Emin Huseynov a ?crit?: > Hello, Benoit > I ment i want to translate Gamba itself, not my app. > How is this possible? > yes look at : http://binara.com/gambas-wiki/bin/view/Gambas/HowToTranslateGambas You will have all you need here ! Regards, Fabien Bodard From jfabiani at ...1109... Mon Oct 24 03:17:15 2005 From: jfabiani at ...1109... (johnf) Date: Sun, 23 Oct 2005 18:17:15 -0700 Subject: [Gambas-user] newbie needs help with Postgres Message-ID: <200510231817.15118.jfabiani@...1109...> I'm using SUSE 10.0 with gambas 1.9.17 as installed from YAST. I have loaded all the Postgres Libs I could find. But I the error 'cannot find driver for database: postgresql' Thanks in advance John From jfabiani at ...1109... Mon Oct 24 03:41:37 2005 From: jfabiani at ...1109... (johnf) Date: Sun, 23 Oct 2005 18:41:37 -0700 Subject: [Gambas-user] newbie needs help with Postgres In-Reply-To: <200510231817.15118.jfabiani@...1109...> References: <200510231817.15118.jfabiani@...1109...> Message-ID: <200510231841.37472.jfabiani@...1109...> I guess I fixed it. I installed Gambas 1.9.20 by recompiling from the source. Now it works. I guess the 1.9.17 as compiled by Novell did not include the Postgres drivers. John On Sunday 23 October 2005 18:17, johnf wrote: > I'm using SUSE 10.0 with gambas 1.9.17 as installed from YAST. I have > loaded all the Postgres Libs I could find. > > But I the error 'cannot find driver for database: postgresql' > > Thanks in advance > > John > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From pmalcher at ...1185... Mon Oct 24 05:09:51 2005 From: pmalcher at ...1185... (pmalcher at ...1185...) Date: 23 Oct 2005 23:09:51 -0400 Subject: [Gambas-user] =?utf-8?Q?Re:_Gambas=2Duser_digest,_Vol_1_#1534_=2D_4_msgs?= Message-ID: <20051024030951.33400.qmail@...1186...> Due to Hurricane Wilma, ALL GGWS in-home support and web design services, as well as new client hosting signups, will be suspended until further notice on Thursday, October 20, 2005. We will make every effort to resume operations in a timely manner. From ariefbayu at ...626... Mon Oct 24 09:40:31 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 24 Oct 2005 14:40:31 +0700 Subject: [Gambas-user] gb.api question Message-ID: <976ad9050510240040l4e8ab183g@...627...> Guys, I look on some example at gambasforge. There's some example that use gb.api. But when I run the example at gambas and gambas2, the result allway the same. That gambas not know the gb.api library. Do i need to download a separate package to use the example? Many thanks for the answer. -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcamposf at ...626... Mon Oct 24 13:37:35 2005 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 24 Oct 2005 13:37:35 +0200 Subject: [Gambas-user] gb.api question In-Reply-To: <976ad9050510240040l4e8ab183g@...627...> References: <976ad9050510240040l4e8ab183g@...627...> Message-ID: <7259b5ae0510240437m6aedda6fh@...627...> Hi: I've not updated gb.api since the first gambas2 versions, so I will not work with current versions. I plan to update it soon, so It will be ready for Gambas2 release, but It will take some weeks... Regards, D. Campos 2005/10/24, Arief Bayu Purwanto : > Guys, I look on some example at gambasforge. There's some example that use > gb.api. > But when I run the example at gambas and gambas2, the result allway the > same. That gambas not know the gb.api library. > Do i need to download a separate package to use the example? > > Many thanks for the answer. > > -- > -- Yahoo!ID : ar1ef_310 > -- http://www.silentstudio.net From gambasfr at ...11... Mon Oct 24 13:44:15 2005 From: gambasfr at ...11... (Fabien Bodard) Date: Mon, 24 Oct 2005 13:44:15 +0200 Subject: [Gambas-user] gb.api question In-Reply-To: <976ad9050510240040l4e8ab183g@...627...> References: <976ad9050510240040l4e8ab183g@...627...> Message-ID: <200510241344.15926.gambasfr@...11...> Le Lundi 24 Octobre 2005 09:40, Arief Bayu Purwanto a ?crit?: > Guys, I look on some example at gambasforge. There's some example that use > gb.api. > But when I run the example at gambas and gambas2, the result allway the > same. That gambas not know the gb.api library. > Do i need to download a separate package to use the example? > > Many thanks for the answer. > in fact gb.api was an old componant of gb2 made by Daniel Campos... replaced now by some internal keyword... But i agree with you for 2 things ! First one, the gambas2 doc is not uptodate (but we are all in lack of time), the gambasforge is not uptodate.. i apologize.. i need to rework all the site. But i want it to be at the maximum writed in gambas. And now .. i think some help to do it will be welcome. Fabien Bodard > -- Yahoo!ID : ar1ef_310 > -- http://www.silentstudio.net From dcamposf at ...626... Mon Oct 24 14:00:11 2005 From: dcamposf at ...626... (Daniel Campos) Date: Mon, 24 Oct 2005 14:00:11 +0200 Subject: [Gambas-user] gb.api question In-Reply-To: <200510241344.15926.gambasfr@...11...> References: <976ad9050510240040l4e8ab183g@...627...> <200510241344.15926.gambasfr@...11...> Message-ID: <7259b5ae0510240500j221211abg@...627...> Hi Fabien: > > in fact gb.api was an old componant of gb2 made by Daniel Campos... replaced > now by some internal keyword... > > However gb.api extends the "api capabilities" of Gambas, as it provides a way to manage structures easily, and callbacks. Of course, I removed the api-call part of the code, that Beno?t added to the interpreter, but I still need to update all the rest of the code. Regards, D. Campos From ariefbayu at ...626... Mon Oct 24 14:09:50 2005 From: ariefbayu at ...626... (Arief Bayu Purwanto) Date: Mon, 24 Oct 2005 19:09:50 +0700 Subject: [Gambas-user] gb.api question In-Reply-To: <7259b5ae0510240500j221211abg@...627...> References: <976ad9050510240040l4e8ab183g@...627...> <200510241344.15926.gambasfr@...11...> <7259b5ae0510240500j221211abg@...627...> Message-ID: <976ad9050510240509j74734d4ej@...627...> In fact, I really like this gb.api things. I look at the code i download and I just love it, cuz I don't like C. So, I think i can use qt api from gambas. and it's cool if it happen!!! 2005/10/24, Daniel Campos : > > Hi Fabien: > > > > > in fact gb.api was an old componant of gb2 made by Daniel Campos... > replaced > > now by some internal keyword... > > > > > > However gb.api extends the "api capabilities" of Gambas, as it > provides a way to manage structures easily, and callbacks. Of course, > I removed the api-call part of the code, that Beno?t added to the > interpreter, but I still need to update all the rest of the code. > > Regards, > > D. Campos > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- -- Yahoo!ID : ar1ef_310 -- http://www.silentstudio.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.ciric at ...1147... Mon Oct 24 17:10:58 2005 From: a.ciric at ...1147... (Alex Ciric) Date: Mon, 24 Oct 2005 17:10:58 +0200 Subject: [Gambas-user] Is there a limit for MySQL-Connections? In-Reply-To: <200510241344.15926.gambasfr@...11...> References: <976ad9050510240040l4e8ab183g@...627...> <200510241344.15926.gambasfr@...11...> Message-ID: <435CF982.7050704@...1147...> Hi together. I am working on a crm solution. So i am using a log of SQL-Queries. But often i get a Sig11 error or sometimes an "SQL-Connection already opened" Error. Is this because of an Connetion-limit or are there other interesting limits when using SQL-DBs with gambas? Thx Alex From sclewin at ...1126... Mon Oct 24 18:22:43 2005 From: sclewin at ...1126... (Scott) Date: Mon, 24 Oct 2005 12:22:43 -0400 Subject: [Gambas-user] Exponent Message-ID: <435D0A53.3060600@...1126...> Hi, it seems Gambas likes to show large numbers as exponents. How do I stop this feature for a single label? Thanks. -- Your friend, Scott http://www.bmts.com/~sclewin "No one is good at everything, but everyone is good at something" From jfabiani at ...1109... Tue Oct 25 03:46:56 2005 From: jfabiani at ...1109... (johnf) Date: Mon, 24 Oct 2005 18:46:56 -0700 Subject: [Gambas-user] Is there a report writer? Message-ID: <200510241846.56469.jfabiani@...1109...> Hi, Just wondering if someone has written a report writer from a result? John From pmalcher at ...1185... Tue Oct 25 07:15:43 2005 From: pmalcher at ...1185... (pmalcher at ...1185...) Date: 25 Oct 2005 01:15:43 -0400 Subject: [Gambas-user] =?utf-8?Q?Re:_Gambas=2Duser_digest,_Vol_1_#1535_=2D_9_msgs?= Message-ID: <20051025051543.56957.qmail@...1186...> Due to Hurricane Wilma, ALL GGWS in-home support and web design services, as well as new client hosting signups, will be suspended until further notice on Thursday, October 20, 2005. We will make every effort to resume operations in a timely manner. From pumidru at ...325... Tue Oct 25 09:05:33 2005 From: pumidru at ...325... (ghenzo ghenzo) Date: Tue, 25 Oct 2005 09:05:33 +0200 (CEST) Subject: [Gambas-user] (no subject) Message-ID: <20051025070533.40725.qmail@...1170...> ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From nigel at ...38... Tue Oct 25 10:48:14 2005 From: nigel at ...38... (nigel at ...38...) Date: Tue, 25 Oct 2005 10:48:14 +0200 (CEST) Subject: [Gambas-user] Is there a limit for MySQL-Connections? Message-ID: <327097.1130230094179.JavaMail.www@...796...> Alex, Do you have any code that reproduces this error? I will investigate it if so. Regards Nigel > Message Received: Oct 24 2005, 04:14 PM > From: "Alex Ciric" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: [Gambas-user] Is there a limit for MySQL-Connections? > > Hi together. > > I am working on a crm solution. So i am using a log of SQL-Queries. > But often i get a Sig11 error or sometimes an "SQL-Connection already > opened" Error. > > Is this because of an Connetion-limit or are there other interesting > limits when using SQL-DBs with gambas? > > Thx > > Alex > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From a.ciric at ...1147... Tue Oct 25 11:45:59 2005 From: a.ciric at ...1147... (Alex Ciric) Date: Tue, 25 Oct 2005 11:45:59 +0200 Subject: [Gambas-user] Is there a limit for MySQL-Connections? In-Reply-To: <327097.1130230094179.JavaMail.www@...796...> References: <327097.1130230094179.JavaMail.www@...796...> Message-ID: <435DFED7.7030405@...1147...> Hello Nigel, thanks for your answer. In the meantime i solved that problem by making more instances of my sql-class. Here is my code of that class: ------------------------------ ' Gambas class file STATIC sql_open AS Boolean STATIC conn AS NEW Connection PUBLIC authenticated AS String 'THIS MAKES PROBLEMS PUBLIC SUB _new() IF (sql_open = FALSE) THEN make_connection END STATIC PUBLIC FUNCTION sql_query(query AS String) AS result DIM res AS Result DIM sql AS String sql = query res = conn.Exec(sql) RETURN res END STATIC FUNCTION make_connection() AS Boolean WITH conn .Type = "mysql" .Host = "localhost" .Login = "root" .Password = "" .Name = "ciric" TRY conn.Open IF ERROR THEN Message("Cannot Open Database. Error = " & Error.Text) RETURN FALSE END IF sql_open = TRUE RETURN TRUE END WITH END PUBLIC SUB _free() 'conn.Close END ------------------------------ Now i make an instance of that class for every single form i use. But there are two last problems: 1. It seems, that the constructor is not executed for every instance. Example: i have a main form including some details about customers. If i open another form with more details, i create a new instance of my sql-class for that specific form. Also i close the parent form. This executes "conn.close". The new form then says that there is no sql-connection. Do you have any clue? 2. At the top i have the variable "authenticated" declared as Public. At the moment this variable is NOT used in the whole application. But if i delete that variable, i get the error "Class MAIN is static" when i want to execute a sql query. Why is this? Thanks. Alex nigel at ...38... schrieb: > Alex, > > Do you have any code that reproduces this error? I will investigate it if so. > > Regards > > Nigel > > >>Message Received: Oct 24 2005, 04:14 PM >>From: "Alex Ciric" >>To: gambas-user at lists.sourceforge.net >>Cc: >>Subject: [Gambas-user] Is there a limit for MySQL-Connections? >> >>Hi together. >> >>I am working on a crm solution. So i am using a log of SQL-Queries. >>But often i get a Sig11 error or sometimes an "SQL-Connection already >>opened" Error. >> >>Is this because of an Connetion-limit or are there other interesting >>limits when using SQL-DBs with gambas? >> >>Thx >> >>Alex >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by the JBoss Inc. >>Get Certified Today * Register for a JBoss Training Course >>Free Certification Exam for All Training Attendees Through End of 2005 >>Visit http://www.jboss.com/services/certification for more information >>_______________________________________________ >>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 the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mikaelu at ...1188... Tue Oct 25 17:09:58 2005 From: mikaelu at ...1188... (Mikael Ulfenborg) Date: Tue, 25 Oct 2005 17:09:58 +0200 Subject: [Gambas-user] Crossword program Message-ID: <435E4AC6.8040700@...1188...> Hello all, First an announcement: My first Gambas project is live, gmbcrossword a crossword construction program for swedish type crosswords. You can read more at http://gmbcrossword.sourceforge.net/ Then a question: Is it possible to make the Ctrl-keys up/down states work under gambas 1.03 ? I've tried with a global variable and key events but the event always reports Ctrl-key down until I press another key on the keyboard (I want to use Ctrl-mouse click). From pmalcher at ...1185... Wed Oct 26 08:25:36 2005 From: pmalcher at ...1185... (pmalcher at ...1185...) Date: 26 Oct 2005 02:25:36 -0400 Subject: [Gambas-user] =?utf-8?Q?Re:_Gambas=2Duser_digest,_Vol_1_#1536_=2D_5_msgs?= Message-ID: <20051026062536.39473.qmail@...1186...> Due to Hurricane Wilma, ALL GGWS in-home support and web design services, as well as new client hosting signups, will be suspended until further notice on Thursday, October 20, 2005. We will make every effort to resume operations in a timely manner. From sakya_tg at ...325... Thu Oct 27 15:06:11 2005 From: sakya_tg at ...325... (sakya) Date: Thu, 27 Oct 2005 13:06:11 +0000 Subject: [Gambas-user] Stat bug? Message-ID: <4360D0C3.3060302@...325...> Hi! Executing print stat(fileName).Type Crashes with error (value too big for datatype) if the file is very big (I tried with 6.5 Gb). Is this a bug? Thanks Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From sakya_tg at ...325... Thu Oct 27 15:12:23 2005 From: sakya_tg at ...325... (sakya) Date: Thu, 27 Oct 2005 13:12:23 +0000 Subject: [Gambas-user] Stat bug? In-Reply-To: <4360D0C3.3060302@...325...> References: <4360D0C3.3060302@...325...> Message-ID: <4360D237.70700@...325...> sakya wrote: > Hi! > > Executing > print stat(fileName).Type > > Crashes with error (value too big for datatype) if the file is very > big (I tried with 6.5 Gb). > Is this a bug? I forgot: Gambas 1.0.11 :-) Ciaooo Sakya ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From yulmizar at ...1189... Fri Oct 28 03:30:56 2005 From: yulmizar at ...1189... (Yulmizar) Date: Thu, 27 Oct 2005 20:30:56 -0500 Subject: [Gambas-user] Re: Welcome to the "Gambas-user" mailing list In-Reply-To: <20051026075641.F11BE13266@...773...> References: <20051026075641.F11BE13266@...773...> Message-ID: <200510272030.56368.yulmizar@...1189...> Send instant messages to your online friends http://asia.messenger.yahoo.com From dcamposf at ...626... Thu Oct 27 23:06:32 2005 From: dcamposf at ...626... (Daniel Campos) Date: Thu, 27 Oct 2005 23:06:32 +0200 Subject: [Gambas-user] Columnview.Clear in GTK not work In-Reply-To: <55630.85.155.33.88.1129762588.squirrel@...1174...> References: <55630.85.155.33.88.1129762588.squirrel@...1174...> Message-ID: <7259b5ae0510271406m61eca525y@...627...> No, it does not work (yet) Regards, D. Campos 2005/10/20, Lorenzo Tejera : > Columnview.Clear in GTK not work > > In qt works fine, but in GTK in gambas 1.9.20 not > > I don't remember if it's fixed..... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From pchelper at ...1190... Fri Oct 28 20:32:50 2005 From: pchelper at ...1190... (Adi Spivak) Date: Fri, 28 Oct 2005 20:32:50 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error Message-ID: <43626ED2.7000004@...1190...> hello i need some help with a compile error i get while tring to compile gambas with sqlite support ( i need sqlite support for a program i want to use). i use : slackware 10.2 (i say 10.2 couse i make sure my system is up to date for many years now as far as developmant and requiered packages are consorned). kde 3.4.3 kernel 2.6.13 sqlite 3.2.7 gambas 1.0.11 and compile it with the following configue: ./configure --with-sqlite-libraries=/usr/local/lib --with-sqlite-includes=/usr/local/include --with-zlib-includes=/usr/local/zlib/include --with-zlib-libraries=/usr/local/zlib/lib and the error is like this: mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share -I/usr/local/include -g -O2 -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 In file included from dataset.h:38, from sqlitedataset.h:33, from main.cpp:40: qry_dat.h:38:20: sqlite.h: No such file or directory In file included from dataset.h:38, from sqlitedataset.h:33, from main.cpp:40: qry_dat.h:225: error: syntax error before `*' token In file included from sqlitedataset.h:33, from main.cpp:40: dataset.h:72: warning: `class Database' has virtual functions but non-virtual destructor dataset.h:158: warning: `class Dataset' has virtual functions but non-virtual destructor In file included from main.cpp:40: sqlitedataset.h:34:20: sqlite.h: No such file or directory In file included from main.cpp:40: sqlitedataset.h:71: error: syntax error before `*' token sqlitedataset.h:84: error: syntax error before `*' token sqlitedataset.h:68: warning: `class SqliteDatabase' has virtual functions but non-virtual destructor sqlitedataset.h:86: error: extraneous `int' ignored sqlitedataset.h:86: error: virtual outside class declaration sqlitedataset.h:86: error: invalid return type for function `SqliteDatabase status()' sqlitedataset.h:86: error: because the following virtual functions are abstract: dataset.h:117: error: virtual int Database::setErr(int) dataset.h:127: error: virtual long int Database::nextid(const char*) sqlitedataset.h:87: error: virtual outside class declaration sqlitedataset.h:89: error: virtual outside class declaration sqlitedataset.h:92: error: virtual outside class declaration sqlitedataset.h:94: error: virtual outside class declaration sqlitedataset.h:96: error: virtual outside class declaration sqlitedataset.h:98: error: virtual outside class declaration sqlitedataset.h:100: error: virtual outside class declaration sqlitedataset.h:104: error: virtual outside class declaration sqlitedataset.h:105: error: virtual outside class declaration sqlitedataset.h:106: error: virtual outside class declaration sqlitedataset.h: In function `bool in_transaction()': sqlitedataset.h:108: error: `_in_transaction' undeclared (first use this function) sqlitedataset.h:108: error: (Each undeclared identifier is reported only once for each function it appears in.) sqlitedataset.h: At global scope: sqlitedataset.h:111: error: syntax error before `}' token sqlitedataset.h:129: error: syntax error before `*' token sqlitedataset.h:121: warning: `class SqliteDataset' has virtual functions but non-virtual destructor main.cpp: In function `long int db_version()': main.cpp:546: error: `sqlite_version' undeclared (first use this function) main.cpp: In function `void* open_database(DB_DESC*, char**)': main.cpp:582: error: cannot allocate an object of type `SqliteDatabase' main.cpp:582: error: since type `SqliteDatabase' has abstract virtual functions main.cpp:628: error: `sqlite_encoding' undeclared (first use this function) main.cpp: In function `int database_create(void*, char*)': main.cpp:1998: error: cannot declare variable `conn2' to be of type ` SqliteDatabase' main.cpp:1998: error: since type `SqliteDatabase' has abstract virtual functions make[5]: *** [main.lo] Error 1 make[5]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db/sqlite' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gambas-1.0.11/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/gambas-1.0.11/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gambas-1.0.11' make: *** [all] Error 2 thank you for any help i can get. if i missed some vital system info i forgot to mention, just ask and i will replay. Adi -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2785 bytes Desc: S/MIME Cryptographic Signature URL: From gambas at ...1... Fri Oct 28 20:41:56 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Oct 2005 20:41:56 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error In-Reply-To: <43626ED2.7000004@...1190...> References: <43626ED2.7000004@...1190...> Message-ID: <200510282041.56366.gambas@...1...> On Friday 28 October 2005 20:32, Adi Spivak wrote: > hello > i need some help with a compile error i get while tring to compile > gambas with sqlite support ( i need sqlite support for a program i want > to use). > i use : > slackware 10.2 (i say 10.2 couse i make sure my system is up to date for > many years now as far as developmant and requiered packages are consorned). > kde 3.4.3 > kernel 2.6.13 > sqlite 3.2.7 > gambas 1.0.11 > and compile it with the following configue: > ./configure --with-sqlite-libraries=/usr/local/lib > --with-sqlite-includes=/usr/local/include > --with-zlib-includes=/usr/local/zlib/include > --with-zlib-libraries=/usr/local/zlib/lib > > and the error is like this: > > mkdir .libs > g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share > -I/usr/local/include -g -O2 -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 > In file included from dataset.h:38, > from sqlitedataset.h:33, > from main.cpp:40: > qry_dat.h:38:20: sqlite.h: No such file or directory > In file included from dataset.h:38, > from sqlitedataset.h:33, > from main.cpp:40: > qry_dat.h:225: error: syntax error before `*' token > In file included from sqlitedataset.h:33, > from main.cpp:40: > dataset.h:72: warning: `class Database' has virtual functions but > non-virtual > destructor > dataset.h:158: warning: `class Dataset' has virtual functions but > non-virtual > destructor > In file included from main.cpp:40: > sqlitedataset.h:34:20: sqlite.h: No such file or directory ==> Where is located 'sqlite.h' on your system? -- Benoit Minisini From gambas at ...1... Fri Oct 28 20:45:08 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Oct 2005 20:45:08 +0200 Subject: [Gambas-user] Stat bug? In-Reply-To: <4360D237.70700@...325...> References: <4360D0C3.3060302@...325...> <4360D237.70700@...325...> Message-ID: <200510282045.08537.gambas@...1...> On Thursday 27 October 2005 15:12, sakya wrote: > sakya wrote: > > Hi! > > > > Executing > > print stat(fileName).Type > > > > Crashes with error (value too big for datatype) if the file is very > > big (I tried with 6.5 Gb). > > Is this a bug? > > I forgot: Gambas 1.0.11 :-) > > Ciaooo > Sakya > Does the interpreter crashed, or did you just get an error? -- Benoit Minisini From pchelper at ...1190... Fri Oct 28 20:48:54 2005 From: pchelper at ...1190... (Adi Spivak) Date: Fri, 28 Oct 2005 20:48:54 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error In-Reply-To: <200510282041.56366.gambas@...1...> References: <43626ED2.7000004@...1190...> <200510282041.56366.gambas@...1...> Message-ID: <43627296.90305@...1190...> Benoit Minisini wrote: >On Friday 28 October 2005 20:32, Adi Spivak wrote: > > >>hello >>i need some help with a compile error i get while tring to compile >>gambas with sqlite support ( i need sqlite support for a program i want >>to use). >>i use : >>slackware 10.2 (i say 10.2 couse i make sure my system is up to date for >>many years now as far as developmant and requiered packages are consorned). >>kde 3.4.3 >>kernel 2.6.13 >>sqlite 3.2.7 >>gambas 1.0.11 >>and compile it with the following configue: >>./configure --with-sqlite-libraries=/usr/local/lib >>--with-sqlite-includes=/usr/local/include >>--with-zlib-includes=/usr/local/zlib/include >>--with-zlib-libraries=/usr/local/zlib/lib >> >>and the error is like this: >> >>mkdir .libs >> g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share >>-I/usr/local/include -g -O2 -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 >>In file included from dataset.h:38, >> from sqlitedataset.h:33, >> from main.cpp:40: >>qry_dat.h:38:20: sqlite.h: No such file or directory >>In file included from dataset.h:38, >> from sqlitedataset.h:33, >> from main.cpp:40: >>qry_dat.h:225: error: syntax error before `*' token >>In file included from sqlitedataset.h:33, >> from main.cpp:40: >>dataset.h:72: warning: `class Database' has virtual functions but >>non-virtual >> destructor >>dataset.h:158: warning: `class Dataset' has virtual functions but >>non-virtual >> destructor >>In file included from main.cpp:40: >>sqlitedataset.h:34:20: sqlite.h: No such file or directory >> >> > >==> Where is located 'sqlite.h' on your system? > > > root at ...1191...:/usr/src/gambas-1.0.11# locate sqlite.h /usr/src/sqlite-3.2.7/src/sqlite.h.in /usr/src/koffice-1.4.2/kexi/kexidb/drivers/sqlite/driver/sqlite.h /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql/src/sqlite.h /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql3/src/sqlite.h /usr/src/php-5.0.5/ext/dbx/dbx_sqlite.h /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h.in /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h /usr/src/php-5.0.5/ext/sqlite/php_sqlite.h /usr/src/libgda-1.3.91/providers/sqlite/gda-sqlite.h /usr/local/include/php/ext/sqlite/libsqlite/src/sqlite.h -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2785 bytes Desc: S/MIME Cryptographic Signature URL: From pchelper at ...1190... Fri Oct 28 20:55:51 2005 From: pchelper at ...1190... (Adi Spivak) Date: Fri, 28 Oct 2005 20:55:51 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error In-Reply-To: <43627296.90305@...1190...> References: <43626ED2.7000004@...1190...> <200510282041.56366.gambas@...1...> <43627296.90305@...1190...> Message-ID: <43627437.9040703@...1190...> Adi Spivak wrote: > Benoit Minisini wrote: > >>On Friday 28 October 2005 20:32, Adi Spivak wrote: >> >> >>>hello >>>i need some help with a compile error i get while tring to compile >>>gambas with sqlite support ( i need sqlite support for a program i want >>>to use). >>>i use : >>>slackware 10.2 (i say 10.2 couse i make sure my system is up to date for >>>many years now as far as developmant and requiered packages are consorned). >>>kde 3.4.3 >>>kernel 2.6.13 >>>sqlite 3.2.7 >>>gambas 1.0.11 >>>and compile it with the following configue: >>>./configure --with-sqlite-libraries=/usr/local/lib >>>--with-sqlite-includes=/usr/local/include >>>--with-zlib-includes=/usr/local/zlib/include >>>--with-zlib-libraries=/usr/local/zlib/lib >>> >>>and the error is like this: >>> >>>mkdir .libs >>> g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share >>>-I/usr/local/include -g -O2 -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 >>>In file included from dataset.h:38, >>> from sqlitedataset.h:33, >>> from main.cpp:40: >>>qry_dat.h:38:20: sqlite.h: No such file or directory >>>In file included from dataset.h:38, >>> from sqlitedataset.h:33, >>> from main.cpp:40: >>>qry_dat.h:225: error: syntax error before `*' token >>>In file included from sqlitedataset.h:33, >>> from main.cpp:40: >>>dataset.h:72: warning: `class Database' has virtual functions but >>>non-virtual >>> destructor >>>dataset.h:158: warning: `class Dataset' has virtual functions but >>>non-virtual >>> destructor >>>In file included from main.cpp:40: >>>sqlitedataset.h:34:20: sqlite.h: No such file or directory >>> >>> >> >>==> Where is located 'sqlite.h' on your system? >> >> >> > root at ...1191...:/usr/src/gambas-1.0.11# locate sqlite.h > /usr/src/sqlite-3.2.7/src/sqlite.h.in > /usr/src/koffice-1.4.2/kexi/kexidb/drivers/sqlite/driver/sqlite.h > /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql/src/sqlite.h > /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql3/src/sqlite.h > /usr/src/php-5.0.5/ext/dbx/dbx_sqlite.h > /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h.in > /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h > /usr/src/php-5.0.5/ext/sqlite/php_sqlite.h > /usr/src/libgda-1.3.91/providers/sqlite/gda-sqlite.h > /usr/local/include/php/ext/sqlite/libsqlite/src/sqlite.h > i also have this: -rw-r--r-- 1 root root 54891 Oct 27 22:07 /usr/local/include/sqlite3.h -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2785 bytes Desc: S/MIME Cryptographic Signature URL: From gambas at ...1... Fri Oct 28 20:55:55 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Oct 2005 20:55:55 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error In-Reply-To: <43627296.90305@...1190...> References: <43626ED2.7000004@...1190...> <200510282041.56366.gambas@...1...> <43627296.90305@...1190...> Message-ID: <200510282055.55538.gambas@...1...> On Friday 28 October 2005 20:48, Adi Spivak wrote: > Benoit Minisini wrote: > >On Friday 28 October 2005 20:32, Adi Spivak wrote: > >>hello > >>i need some help with a compile error i get while tring to compile > >>gambas with sqlite support ( i need sqlite support for a program i want > >>to use). > >>i use : > >>slackware 10.2 (i say 10.2 couse i make sure my system is up to date for > >>many years now as far as developmant and requiered packages are > >> consorned). kde 3.4.3 > >>kernel 2.6.13 > >>sqlite 3.2.7 > >>gambas 1.0.11 > >>and compile it with the following configue: > >>./configure --with-sqlite-libraries=/usr/local/lib > >>--with-sqlite-includes=/usr/local/include > >>--with-zlib-includes=/usr/local/zlib/include > >>--with-zlib-libraries=/usr/local/zlib/lib > >> > >>and the error is like this: > >> > >>mkdir .libs > >> g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share > >>-I/usr/local/include -g -O2 -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 > >>In file included from dataset.h:38, > >> from sqlitedataset.h:33, > >> from main.cpp:40: > >>qry_dat.h:38:20: sqlite.h: No such file or directory > >>In file included from dataset.h:38, > >> from sqlitedataset.h:33, > >> from main.cpp:40: > >>qry_dat.h:225: error: syntax error before `*' token > >>In file included from sqlitedataset.h:33, > >> from main.cpp:40: > >>dataset.h:72: warning: `class Database' has virtual functions but > >>non-virtual > >> destructor > >>dataset.h:158: warning: `class Dataset' has virtual functions but > >>non-virtual > >> destructor > >>In file included from main.cpp:40: > >>sqlitedataset.h:34:20: sqlite.h: No such file or directory > > > >==> Where is located 'sqlite.h' on your system? > > root at ...1191...:/usr/src/gambas-1.0.11# locate sqlite.h > /usr/src/sqlite-3.2.7/src/sqlite.h.in > /usr/src/koffice-1.4.2/kexi/kexidb/drivers/sqlite/driver/sqlite.h > /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql/src/sqlite.h > /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql3/src/sqlite.h > /usr/src/php-5.0.5/ext/dbx/dbx_sqlite.h > /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h.in > /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h > /usr/src/php-5.0.5/ext/sqlite/php_sqlite.h > /usr/src/libgda-1.3.91/providers/sqlite/gda-sqlite.h > /usr/local/include/php/ext/sqlite/libsqlite/src/sqlite.h So if you tell the configure script that sqlite includes are in /usr/local/include, it can't work as there is no sqlite.h file in /usr/local/include. Maybe you should put /usr/src/sqlite-3.2.7/src ? -- Benoit Minisini From gambas at ...1... Fri Oct 28 20:57:51 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Oct 2005 20:57:51 +0200 Subject: [Gambas-user] Exponent In-Reply-To: <435D0A53.3060600@...1126...> References: <435D0A53.3060600@...1126...> Message-ID: <200510282057.52013.gambas@...1...> On Monday 24 October 2005 18:22, Scott wrote: > Hi, > > it seems Gambas likes to show large numbers as exponents. How do I > stop this feature for a single label? Thanks. By default, a number N is printed in exponent form if its absolute value is lower then 10^-4 or greater than 10^7. If you don't want that, you must use the Format$() function. Regards, -- Benoit Minisini From gambas at ...1... Fri Oct 28 21:00:02 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Oct 2005 21:00:02 +0200 Subject: [Gambas-user] Is there a limit for MySQL-Connections? In-Reply-To: <435DFED7.7030405@...1147...> References: <327097.1130230094179.JavaMail.www@...796...> <435DFED7.7030405@...1147...> Message-ID: <200510282100.02408.gambas@...1...> On Tuesday 25 October 2005 11:45, Alex Ciric wrote: > Hello Nigel, > > thanks for your answer. In the meantime i solved that problem by making > more instances of my sql-class. > > Here is my code of that class: > ------------------------------ > ' Gambas class file > STATIC sql_open AS Boolean > STATIC conn AS NEW Connection conn is static, and so there is ONE conn variable for each instance of this class. > PUBLIC authenticated AS String 'THIS MAKES PROBLEMS If you remove it, then your class has only static variables. Gambas then raises an error if you try to instanciate it, as it find stupid having an object with *no* dynamic field. Regards, -- Benoit Minisini From gambas at ...1... Fri Oct 28 21:05:42 2005 From: gambas at ...1... (Benoit Minisini) Date: Fri, 28 Oct 2005 21:05:42 +0200 Subject: [Gambas-user] AM/PM - Noon to 1PM Problem In-Reply-To: <200510191951.56697.sourceforge-raindog2@...94...> References: <4355B463.4020001@...966...> <200510200017.20331.gambas@...1...> <200510191951.56697.sourceforge-raindog2@...94...> Message-ID: <200510282105.42555.gambas@...1...> On Thursday 20 October 2005 01:51, Rob Kudla wrote: > On Wed October 19 2005 18:17, Benoit Minisini wrote: > > > Well, strftime(), which is straight out of GNU libc, does > > > this for 11:30, 12:30 and 13:30 (using %I:%M %p): > > > 12:30 PM > > > 01:30 PM > > > > I use strftime() - There is no other function I know. > > Interesting. In that case, I don't understand why > > strftime("%I:%M %p", 0, 30, 12, 19, 10, 2005) > > returns 12:30 PM, but > > Format(Time(12, 30, 0), "h:nn AM/PM") > > which should be equivalent, returns 0:30 PM. Aren't you > evaluating the "h" placeholder as "%I"? > > Rob > OK, I understand the problem. What you need is: Normal hour: 0 <= hour <= 23 Hour with AM/PM: 1 <= hour <= 12 The bug is that in the second case, gambas uses 0 <= hour <= 11 I will try to fix that. Regards, -- Benoit Minisini From nigel at ...38... Fri Oct 28 21:16:01 2005 From: nigel at ...38... (nigel at ...38...) Date: Fri, 28 Oct 2005 21:16:01 +0200 (CEST) Subject: [Gambas-user] help with gambas in sqlite releted compile error Message-ID: <7625612.1130526961605.JavaMail.www@...792...> And if your version is sqlite 3 then it should be the sqlite3 driver that is used. Nigel > Message Received: Oct 28 2005, 07:57 PM > From: "Benoit Minisini" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] help with gambas in sqlite releted compile error > > On Friday 28 October 2005 20:48, Adi Spivak wrote: > > Benoit Minisini wrote: > > >On Friday 28 October 2005 20:32, Adi Spivak wrote: > > >>hello > > >>i need some help with a compile error i get while tring to compile > > >>gambas with sqlite support ( i need sqlite support for a program i want > > >>to use). > > >>i use : > > >>slackware 10.2 (i say 10.2 couse i make sure my system is up to date for > > >>many years now as far as developmant and requiered packages are > > >> consorned). kde 3.4.3 > > >>kernel 2.6.13 > > >>sqlite 3.2.7 > > >>gambas 1.0.11 > > >>and compile it with the following configue: > > >>./configure --with-sqlite-libraries=/usr/local/lib > > >>--with-sqlite-includes=/usr/local/include > > >>--with-zlib-includes=/usr/local/zlib/include > > >>--with-zlib-libraries=/usr/local/zlib/lib > > >> > > >>and the error is like this: > > >> > > >>mkdir .libs > > >> g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share > > >>-I/usr/local/include -g -O2 -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 > > >>In file included from dataset.h:38, > > >> from sqlitedataset.h:33, > > >> from main.cpp:40: > > >>qry_dat.h:38:20: sqlite.h: No such file or directory > > >>In file included from dataset.h:38, > > >> from sqlitedataset.h:33, > > >> from main.cpp:40: > > >>qry_dat.h:225: error: syntax error before `*' token > > >>In file included from sqlitedataset.h:33, > > >> from main.cpp:40: > > >>dataset.h:72: warning: `class Database' has virtual functions but > > >>non-virtual > > >> destructor > > >>dataset.h:158: warning: `class Dataset' has virtual functions but > > >>non-virtual > > >> destructor > > >>In file included from main.cpp:40: > > >>sqlitedataset.h:34:20: sqlite.h: No such file or directory > > > > > >==> Where is located 'sqlite.h' on your system? > > > > root at ...1191...:/usr/src/gambas-1.0.11# locate sqlite.h > > /usr/src/sqlite-3.2.7/src/sqlite.h.in > > /usr/src/koffice-1.4.2/kexi/kexidb/drivers/sqlite/driver/sqlite.h > > /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql/src/sqlite.h > > /usr/src/koffice-1.4.2/kexi/3rdparty/kexisql3/src/sqlite.h > > /usr/src/php-5.0.5/ext/dbx/dbx_sqlite.h > > /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h.in > > /usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h > > /usr/src/php-5.0.5/ext/sqlite/php_sqlite.h > > /usr/src/libgda-1.3.91/providers/sqlite/gda-sqlite.h > > /usr/local/include/php/ext/sqlite/libsqlite/src/sqlite.h > > So if you tell the configure script that sqlite includes are > in /usr/local/include, it can't work as there is no sqlite.h file > in /usr/local/include. > > Maybe you should put /usr/src/sqlite-3.2.7/src ? > > -- > Benoit Minisini > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From pchelper at ...1190... Fri Oct 28 21:18:41 2005 From: pchelper at ...1190... (Adi Spivak) Date: Fri, 28 Oct 2005 21:18:41 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error In-Reply-To: <200510282055.55538.gambas@...1...> References: <43626ED2.7000004@...1190...> <200510282041.56366.gambas@...1...> <43627296.90305@...1190...> <200510282055.55538.gambas@...1...> Message-ID: <43627991.1010408@...1190...> Benoit Minisini wrote: >On Friday 28 October 2005 20:48, Adi Spivak wrote: > > >>Benoit Minisini wrote: >> >> >>>On Friday 28 October 2005 20:32, Adi Spivak wrote: >>> >>> >>>>hello >>>>i need some help with a compile error i get while tring to compile >>>>gambas with sqlite support ( i need sqlite support for a program i want >>>>to use). >>>>i use : >>>>slackware 10.2 (i say 10.2 couse i make sure my system is up to date for >>>>many years now as far as developmant and requiered packages are >>>>consorned). kde 3.4.3 >>>>kernel 2.6.13 >>>>sqlite 3.2.7 >>>>gambas 1.0.11 >>>>and compile it with the following configue: >>>>./configure --with-sqlite-libraries=/usr/local/lib >>>>--with-sqlite-includes=/usr/local/include >>>>--with-zlib-includes=/usr/local/zlib/include >>>>--with-zlib-libraries=/usr/local/zlib/lib >>>> >>>>and the error is like this: >>>> >>>>mkdir .libs >>>>g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share >>>>-I/usr/local/include -g -O2 -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 >>>>In file included from dataset.h:38, >>>> from sqlitedataset.h:33, >>>> from main.cpp:40: >>>>qry_dat.h:38:20: sqlite.h: No such file or directory >>>>In file included from dataset.h:38, >>>> from sqlitedataset.h:33, >>>> from main.cpp:40: >>>>qry_dat.h:225: error: syntax error before `*' token >>>>In file included from sqlitedataset.h:33, >>>> from main.cpp:40: >>>>dataset.h:72: warning: `class Database' has virtual functions but >>>>non-virtual >>>> destructor >>>>dataset.h:158: warning: `class Dataset' has virtual functions but >>>>non-virtual >>>> destructor >>>>In file included from main.cpp:40: >>>>sqlitedataset.h:34:20: sqlite.h: No such file or directory >>>> >>>> >>>==> Where is located 'sqlite.h' on your system? >>> >>> >>root at ...1191...:/usr/src/gambas-1.0.11# locate sqlite.h >>/usr/src/sqlite-3.2.7/src/sqlite.h.in >>/usr/src/koffice-1.4.2/kexi/kexidb/drivers/sqlite/driver/sqlite.h >>/usr/src/koffice-1.4.2/kexi/3rdparty/kexisql/src/sqlite.h >>/usr/src/koffice-1.4.2/kexi/3rdparty/kexisql3/src/sqlite.h >>/usr/src/php-5.0.5/ext/dbx/dbx_sqlite.h >>/usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h.in >>/usr/src/php-5.0.5/ext/sqlite/libsqlite/src/sqlite.h >>/usr/src/php-5.0.5/ext/sqlite/php_sqlite.h >>/usr/src/libgda-1.3.91/providers/sqlite/gda-sqlite.h >>/usr/local/include/php/ext/sqlite/libsqlite/src/sqlite.h >> >> > >So if you tell the configure script that sqlite includes are >in /usr/local/include, it can't work as there is no sqlite.h file >in /usr/local/include. > >Maybe you should put /usr/src/sqlite-3.2.7/src ? > > > tried your advice and got this error: mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share -I/usr/src/sqlite-3.2.7/src -g -O2 -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 In file included from dataset.h:38, from sqlitedataset.h:33, from main.cpp:40: qry_dat.h:225: error: syntax error before `*' token In file included from sqlitedataset.h:33, from main.cpp:40: dataset.h:72: warning: `class Database' has virtual functions but non-virtual destructor dataset.h:158: warning: `class Dataset' has virtual functions but non-virtual destructor In file included from main.cpp:40: sqlitedataset.h:71: error: syntax error before `*' token sqlitedataset.h:84: error: syntax error before `*' token sqlitedataset.h:68: warning: `class SqliteDatabase' has virtual functions but non-virtual destructor sqlitedataset.h:86: error: extraneous `int' ignored sqlitedataset.h:86: error: virtual outside class declaration sqlitedataset.h:86: error: invalid return type for function `SqliteDatabase status()' sqlitedataset.h:86: error: because the following virtual functions are abstract: dataset.h:117: error: virtual int Database::setErr(int) dataset.h:127: error: virtual long int Database::nextid(const char*) sqlitedataset.h:87: error: virtual outside class declaration sqlitedataset.h:89: error: virtual outside class declaration sqlitedataset.h:92: error: virtual outside class declaration sqlitedataset.h:94: error: virtual outside class declaration sqlitedataset.h:96: error: virtual outside class declaration sqlitedataset.h:98: error: virtual outside class declaration sqlitedataset.h:100: error: virtual outside class declaration sqlitedataset.h:104: error: virtual outside class declaration sqlitedataset.h:105: error: virtual outside class declaration sqlitedataset.h:106: error: virtual outside class declaration sqlitedataset.h: In function `bool in_transaction()': sqlitedataset.h:108: error: `_in_transaction' undeclared (first use this function) sqlitedataset.h:108: error: (Each undeclared identifier is reported only once for each function it appears in.) sqlitedataset.h: At global scope: sqlitedataset.h:111: error: syntax error before `}' token sqlitedataset.h:129: error: syntax error before `*' token sqlitedataset.h:121: warning: `class SqliteDataset' has virtual functions but non-virtual destructor main.cpp: In function `long int db_version()': main.cpp:546: error: `sqlite_version' undeclared (first use this function) main.cpp: In function `void* open_database(DB_DESC*, char**)': main.cpp:582: error: cannot allocate an object of type `SqliteDatabase' main.cpp:582: error: since type `SqliteDatabase' has abstract virtual functions main.cpp:628: error: `sqlite_encoding' undeclared (first use this function) main.cpp: In function `int database_create(void*, char*)': main.cpp:1998: error: cannot declare variable `conn2' to be of type ` SqliteDatabase' main.cpp:1998: error: since type `SqliteDatabase' has abstract virtual functions make[5]: *** [main.lo] Error 1 make[5]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db/sqlite' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/src/gambas-1.0.11/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/gambas-1.0.11/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/gambas-1.0.11' make: *** [all] Error 2 Thanks. Adi Spivak -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2785 bytes Desc: S/MIME Cryptographic Signature URL: From pchelper at ...1190... Fri Oct 28 21:42:00 2005 From: pchelper at ...1190... (Adi Spivak) Date: Fri, 28 Oct 2005 21:42:00 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error In-Reply-To: <7625612.1130526961605.JavaMail.www@...792...> References: <7625612.1130526961605.JavaMail.www@...792...> Message-ID: <43627F08.1060201@...1190...> nigel at ...38... wrote: >And if your version is sqlite 3 then it should be the sqlite3 driver that is used. > >Nigel > > > > please explain your remark. i did not understand. how do i use the sqlite3 driver? Thanks Adi Spivak -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2785 bytes Desc: S/MIME Cryptographic Signature URL: From htakada at ...626... Fri Oct 28 21:58:41 2005 From: htakada at ...626... (Hugo) Date: Fri, 28 Oct 2005 16:58:41 -0300 Subject: [Gambas-user] gambas IDE doesnt run Message-ID: Hello, I had installed the latest gambas development release ( 2-1.9.20) on a FC4 machine, everything was ok, but when I try to launch the IDE I get nothing, nothing hapens, is there some kind of log file where I can look at for error information or something like that. thanks in advance Hugo -------------- next part -------------- An HTML attachment was scrubbed... URL: From nando_f at ...951... Fri Oct 28 22:22:44 2005 From: nando_f at ...951... (nando) Date: Fri, 28 Oct 2005 16:22:44 -0400 Subject: [Gambas-user] Gridview Cell colors Message-ID: <20051028201728.M27621@...951...> I am converting VB to Gambas. I am requiring to change cellforecolor and cellbackcolor in GridView. I used Flexgrid in VB which did have these. I find that this is not possible with Gambas/Qt. Or..am I missing how to do it? Different cell colors in Gridview are needed especially with Titles. -Fernando From dcamposf at ...626... Fri Oct 28 22:31:08 2005 From: dcamposf at ...626... (Daniel Campos) Date: Fri, 28 Oct 2005 22:31:08 +0200 Subject: [Gambas-user] gambas IDE doesnt run In-Reply-To: References: Message-ID: <7259b5ae0510281331m6f3a15ebt@...627...> Try using: export LANG=en gambas2 Sometimes the IDE hangs if English is not the default language. It happens with some versions of the QT library... Regards, D. Campos 2005/10/28, Hugo : > Hello, I had installed the latest gambas development release ( 2-1.9.20) on > a FC4 machine, everything was ok, but when I try to launch the IDE I get > nothing, nothing hapens, is there some kind of log file where I can look at > for error information or something like that. > > thanks in advance > > Hugo > From htakada at ...626... Fri Oct 28 22:53:32 2005 From: htakada at ...626... (Hugo) Date: Fri, 28 Oct 2005 17:53:32 -0300 Subject: [Gambas-user] gambas IDE doesnt run In-Reply-To: <7259b5ae0510281331m6f3a15ebt@...627...> References: <7259b5ae0510281331m6f3a15ebt@...627...> Message-ID: Hola Daniel, Eso era , Gracias por el tip !!!! Hugo On 28/10/05, Daniel Campos wrote: > > Try using: > > export LANG=en > gambas2 > > Sometimes the IDE hangs if English is not the default language. It > happens with some versions of the QT library... > > Regards, > > D. Campos > > 2005/10/28, Hugo : > > Hello, I had installed the latest gambas development release ( 2-1.9.20) > on > > a FC4 machine, everything was ok, but when I try to launch the IDE I get > > nothing, nothing hapens, is there some kind of log file where I can look > at > > for error information or something like that. > > > > thanks in advance > > > > Hugo > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- An HTML attachment was scrubbed... URL: From na2492 at ...9... Fri Oct 28 23:29:35 2005 From: na2492 at ...9... (Charlie Reinl) Date: Fri, 28 Oct 2005 23:29:35 +0200 Subject: [Gambas-user] gambas IDE doesnt run In-Reply-To: References: Message-ID: <1130534975.14623.0.camel@...37...> Am Freitag, den 28.10.2005, 16:58 -0300 schrieb Hugo: > Hello, I had installed the latest gambas development release > ( 2-1.9.20) on a FC4 machine, everything was ok, but when I try to > launch the IDE I get nothing, nothing hapens, is there some kind of > log file where I can look at for error information or something like > that. > > thanks in advance > > Hugo Salut , start a shell. type gambas2.gambas, then you see what happens. Amicalment Charlie From abu.syafa at ...626... Sat Oct 29 00:36:38 2005 From: abu.syafa at ...626... (abu syafa) Date: Sat, 29 Oct 2005 05:36:38 +0700 Subject: [Gambas-user] error install on slack 10.2 Message-ID: <46f0b9ad0510281536x322a73f5s753c4edf6d468936@...627...> i'v just move to slackware 10.2 then trying install gambas gambas2-1.9.20 but i've got errors like this: -=--------------=- In file included from /usr/include/c++/3.3.6/bits/basic_ios.h:44, from /usr/include/c++/3.3.6/ios:51, from /usr/include/c++/3.3.6/ostream:45, from /usr/include/c++/3.3.6/iterator:70, from /usr/lib/qt/include/qvaluelist.h:48, from /usr/lib/qt/include/qmap.h:46, from /usr/lib/qt/include/qmime.h:43, from /usr/lib/qt/include/qevent.h:45, from /usr/lib/qt/include/qobject.h:45, from /usr/lib/qt/include/qwidget.h:43, from ../gb.qt.h:29, from main.h:27, from CEditor.cpp:26: /usr/include/c++/3.3.6/bits/locale_facets.h:976: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make[5]: *** [CEditor.lo] Error 1 make[5]: Leaving directory `/tmp/gambas2-1.9.20/gb.qt/src/editor' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/tmp/gambas2-1.9.20/gb.qt/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/gambas2-1.9.20/gb.qt' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/gambas2-1.9.20/gb.qt' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/gambas2-1.9.20' make: *** [all] Error 2 -=---------------------------=- is there something error on my GCC or what ??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From genone at ...89... Fri Oct 28 23:57:32 2005 From: genone at ...89... (Marius Mauch) Date: Sat, 29 Oct 2005 00:57:32 +0300 Subject: [Gambas-user] error install on slack 10.2 In-Reply-To: <46f0b9ad0510281536x322a73f5s753c4edf6d468936@...627...> References: <46f0b9ad0510281536x322a73f5s753c4edf6d468936@...627...> Message-ID: <43629ECC.9020700@...89...> abu syafa wrote: > i'v just move to slackware 10.2 then trying install gambas > gambas2-1.9.20 > > but i've got errors like this: > -=--------------=- > In file included from /usr/include/c++/3.3.6/bits/basic_ios.h:44, > from /usr/include/c++/3.3.6/ios:51, > from /usr/include/c++/3.3.6/ostream:45, > from /usr/include/c++/3.3.6/iterator:70, > from /usr/lib/qt/include/qvaluelist.h:48, > from /usr/lib/qt/include/qmap.h:46, > from /usr/lib/qt/include/qmime.h:43, > from /usr/lib/qt/include/qevent.h:45, > from /usr/lib/qt/include/qobject.h:45, > from /usr/lib/qt/include/qwidget.h:43, > from ../gb.qt.h:29, > from main.h:27, > from CEditor.cpp:26: > /usr/include/c++/3.3.6/bits/locale_facets.h:976: internal compiler > error: Segmentation > fault Either your toolchain is broken (very unlikely with a binary distro) or your hardware is failing. Try a memory test, make sure you're not overclocking and check that all temperatures are ok. Marius From jfabiani at ...1109... Sat Oct 29 00:57:33 2005 From: jfabiani at ...1109... (johnf) Date: Fri, 28 Oct 2005 15:57:33 -0700 Subject: [Gambas-user] gambas IDE doesnt run In-Reply-To: References: Message-ID: <200510281557.33989.jfabiani@...1109...> On Friday 28 October 2005 12:58, Hugo wrote: > Hello, I had installed the latest gambas development release ( 2-1.9.20) on > a FC4 machine, everything was ok, but when I try to launch the IDE I get > nothing, nothing hapens, is there some kind of log file where I can look at > for error information or something like that. > > thanks in advance > > Hugo Start the RB from a terminal and you should see the error messages. John From jfabiani at ...1109... Sat Oct 29 01:07:02 2005 From: jfabiani at ...1109... (johnf) Date: Fri, 28 Oct 2005 16:07:02 -0700 Subject: [Gambas-user] gambas IDE doesnt run In-Reply-To: <200510281557.33989.jfabiani@...1109...> References: <200510281557.33989.jfabiani@...1109...> Message-ID: <200510281607.03044.jfabiani@...1109...> On Friday 28 October 2005 15:57, johnf wrote: > On Friday 28 October 2005 12:58, Hugo wrote: > > Hello, I had installed the latest gambas development release ( 2-1.9.20) > > on a FC4 machine, everything was ok, but when I try to launch the IDE I > > get nothing, nothing hapens, is there some kind of log file where I can > > look at for error information or something like that. > > > > thanks in advance > > > > Hugo > > Start the RB from a terminal and you should see the error messages. > John Not RB but Gambas. John From gambas at ...1... Sun Oct 30 00:43:45 2005 From: gambas at ...1... (Benoit Minisini) Date: Sun, 30 Oct 2005 00:43:45 +0200 Subject: [Gambas-user] Release of gambas 1.9.21 Message-ID: <200510300043.45467.gambas@...1...> Hi all, It was a long time before a new release... Here is the changelog: --8<------------------------------------------------------------------------- CONFIGURATION * Now the search of libintl, libgettextlib and libiconv libraries display a more accurate warning message. DEVELOPMENT ENVIRONMENT * BUG: The automatic completion does not crash anymore when a class inherits an unknown parent class. DATABASE MANAGER * BUG: Deleting rows in a table works again. * BUG: Field names are case unsensitive now in the table edition window. COMPILER * WARNING: The SCAN instruction has been removed, and replaced by the Scan() subroutine. INTERPRETER * NEW: a new API that allows components to define a function for creating Image objects, and for using it. * NEW: Object.Is(), a new static method for checking if the class of an object is or inherits a given class. * NEW: Stream.EndOfLine is a new property for setting the end of line pattern of a stream. This pattern is used by the LINE INPUT and PRINT functions. Possible values are gb.Unix, gb.Windows and gb.Mac. By default, the end of line pattern is gb.Unix. * WARNING: The SCAN instruction has been removed, and replaced by the Scan() subroutine. * NEW: A component is not loaded if it has the same name as the project. This way, debugging component made in gambas are far easier. * BUG: Enumerating objects like Result works again. * BUG: Looping with a Byte or Short variable now works correctly. * BUG: Formatting a date with AM/PM now displays an hour value between 1 and 12, and not 0 and 11 as before. * BUG: Displaying numbers in decimal now is more accurate, and should not display things like 123,00000000001 anymore. * BUG: The interpreter event loop was fixed. SETTINGS COMPONENT * NEW: Settings.Read() and Settings.Write() allow reading and writing settings for Window objects: position, and size. QT COMPONENT * NEW: The Separator control, that displays an horizontal or vertical separator line. * BUG: The DblClick event is now posted, and not raised immediately as before. * NEW: Window.ToolBox, a new property to tell the window manager that a window is a toolbar. QT EXTENSION COMPONENT * BUG: Some fixes in highlighting process of the Editor control. KDE HTML COMPONENT * NEW: Webrowser.Java, a new property for allowing java in the browser. GTK+ COMPONENT * Updated. DATABASE COMPONENT: * NEW: Result.Delete now takes an optional boolean parameter to prevent the deleted record for being removed for the Result object. XML COMPONENT * BUG: Patch from Dirk Mueller, that fixes an uninitialized variable access. OPENGL COMPONENT * Updated. CORBA COMPONENT * New component made by Carlo Sorda. LDAP COMPONENT * New component made by Carlo Sorda. --8<------------------------------------------------------------------------- As you may have noticed, there are two new components: one for using the ldap library, one other for doing Corba things. They have been made by Carlo Sorda, and he will explain you far better than me how to use them... Regards, -- Benoit Minisini From abu.syafa at ...626... Sun Oct 30 23:27:00 2005 From: abu.syafa at ...626... (abu syafa) Date: Mon, 31 Oct 2005 05:27:00 +0700 Subject: [Gambas-user] error install on slack 10.2 In-Reply-To: <43629ECC.9020700@...89...> References: <46f0b9ad0510281536x322a73f5s753c4edf6d468936@...627...> <43629ECC.9020700@...89...> Message-ID: <46f0b9ad0510301427r52a21e20gaac30f5e9b5172db@...627...> On 10/29/05, Marius Mauch wrote: > > hey... my cpu is Celeron 2,13D and overclocked to 2,24 the cpu temperatur is near 55 - 62 Celcius Is it normal ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From nigel at ...38... Mon Oct 31 10:32:17 2005 From: nigel at ...38... (nigel at ...38...) Date: Mon, 31 Oct 2005 10:32:17 +0100 (CET) Subject: [Gambas-user] help with gambas in sqlite releted compile error Message-ID: <31293551.1130751137829.JavaMail.www@...713...> Ok. I see that you are using gambas 1.0.11 (Which doesn't come with the sqlite3 driver..this is available with the development version). Sqlite 3 uses different headers and some different calls tp sqlite (2.?). Try taking the driver down from http://www.gambasforge.net/code.php?id=29. Regards nigel > Message Received: Oct 28 2005, 08:43 PM > From: "Adi Spivak" > To: gambas-user at lists.sourceforge.net > Cc: > Subject: Re: [Gambas-user] help with gambas in sqlite releted compile error > > nigel at ...38... wrote: > > >And if your version is sqlite 3 then it should be the sqlite3 driver that is used. > > > >Nigel > > > > > > > > > please explain your remark. i did not understand. how do i use the > sqlite3 driver? > Thanks > Adi Spivak > > > [ smime.p7s (3.7 Kb) ] From pchelper at ...1190... Mon Oct 31 14:18:21 2005 From: pchelper at ...1190... (Adi Spivak) Date: Mon, 31 Oct 2005 15:18:21 +0200 Subject: [Gambas-user] help with gambas in sqlite releted compile error In-Reply-To: <31293551.1130751137829.JavaMail.www@...713...> References: <31293551.1130751137829.JavaMail.www@...713...> Message-ID: <20051031131421.M81755@...1190...> tried that and got this error: Making all in sqlite make[5]: Entering directory `/usr/src/gambas-1.0.11/src/lib/db/sqlite3' /bin/sh ../../../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. - I../../../.. -I../../../../src/share @SQLITE3_INC@ -g -O2 -pipe -Wall -fno- exceptions -g -Os -fno-omit-frame-pointer -c main.cpp g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../src/share @SQLITE3_INC@ -g -O2 -pipe -Wall -fno-exceptions -g -Os -fno-omit-frame- pointer -Wp,-MD,.deps/main.pp -c main.cpp -fPIC -DPIC -o .libs/main.o g++: cannot specify -o with -c or -S and multiple compilations make[5]: *** [main.lo] Error 1 make[5]: Leaving directory `/usr/src/gambas-1.0.11/src/lib/db/sqlite3' i use g++ (gcc) version 3.3.6 Thanks Adi Spivak On Mon, 31 Oct 2005 10:32:17 +0100 (CET), nigel wrote > Ok. I see that you are using gambas 1.0.11 (Which doesn't come with > the sqlite3 driver..this is available with the development version). > Sqlite 3 uses different headers and some different calls tp sqlite > (2.?). > > Try taking the driver down from http://www.gambasforge.net/code.php?id=29. > > Regards > > nigel > > > Message Received: Oct 28 2005, 08:43 PM > > From: "Adi Spivak" > > To: gambas-user at lists.sourceforge.net > > Cc: > > Subject: Re: [Gambas-user] help with gambas in sqlite releted compile error > > > > nigel at ...38... wrote: > > > > >And if your version is sqlite 3 then it should be the sqlite3 driver that is used. > > > > > >Nigel > > > > > > > > > > > > > > please explain your remark. i did not understand. how do i use the > > sqlite3 driver? > > Thanks > > Adi Spivak > > > > > [ smime.p7s (3.7 Kb) ] > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of > 2005 Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Oplag Internet Solutions. ( http://www.oplag.net ) From nando_f at ...951... Mon Oct 31 23:49:31 2005 From: nando_f at ...951... (nando) Date: Mon, 31 Oct 2005 17:49:31 -0500 Subject: [Gambas-user] TableView Question Message-ID: <20051031224520.M8573@...951...> I looked at the 'HOW TO PUT VALUES IN A TABLEVIEW WIDGET' located at 'www.gambasforge.net/code.php?id=31#notes' Can someone please inform me as to what makes SUB TableView1_Data event fire? It is not evident to me. I single stepped through it - No code invokes it so it must be an event. -Fernando