From eilert-sprachen at ...221... Thu Aug 1 00:22:30 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 01 Aug 2013 00:22:30 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <51F988DB.3020202@...1...> References: <51F83D1C.9090109@...221...> <1375296259.2267.7.camel@...3024...> <51F98749.6010504@...221...> <51F988DB.3020202@...1...> Message-ID: <51F98E26.1030108@...221...> Am 31.07.2013 23:59, schrieb Beno?t Minisini: > Le 31/07/2013 23:53, Rolf-Werner Eilert a ?crit : >> >> Hm, would any provider accept mails without giving username and >> password? I don't know any. And most providers offer a way of secure >> access, not using port 25 but 465 or 587. I just don't know if this is >> supported by gb.net.smtp. If yes, I would prefer it of course. >> >> Is there a way of observing what email.Send is doing? Or have I simply >> got to wait for it to return, hoping it will do so some day? >> >> Rolf >> > > Did you see the 'Debug' property in the doc? :-) > Arrgh - no, I somehow ignored it, thanks for the tipp! Meanwhile I have the impression I solved some of the problems. I managed to reach the provider, there is no error message, but I haven't got the message yet on the other email account. But I won't wait any longer, will check tomorrow. If necessary, I'll use Debug ;-) Regards Rolf From eilert-sprachen at ...221... Thu Aug 1 00:25:36 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 01 Aug 2013 00:25:36 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <1375296259.2267.7.camel@...3024...> References: <51F83D1C.9090109@...221...> <1375296259.2267.7.camel@...3024...> Message-ID: <51F98EE0.10808@...221...> Am 31.07.2013 20:44, schrieb Willy Raets: > On Wed, 2013-07-31 at 00:24 +0200, Rolf-Werner Eilert wrote: >> Ok, maybe I got this completely wrong, so here's my first trial with >> gb.net.smtp: >> >> Public Sub Main() >> >> Dim email As New SmtpClient >> >> With email >> .Add("Is this the mailtext?") >> .To.Add("mymainemail at ...3165...") >> .From = "sender at ...3166..." >> .Subject = "Just a test" >> .Port = 25 >> .Host = "smtp.provider.de" >> .User = "username" >> .Password = "password" >> End With >> >> email.Send >> >> End >> >> >> Everything is accepted, but email.Send never returns, i. e. the program >> never stops and I've never got an email. >> >> Does .Add really add the message text, or is it for attachments only? >> Where would I have to add the message body text then? >> >> The plan is to automatically send an email like from an ordinary mail >> client (Thunderbird) via my smtp provider to the receiver. There should >> be a mail text and a pdf attached. >> >> Regards >> >> Rolf > > email.Add("This is the body of the mail",,"") > email.Add("This is attached as text file", "text/plain", "File.txt") > > First line should give you the body and the second line should produce > you an attachment named File.txt with content "This is attached as text > file". > > Don't know about attaching pdf, haven't been there but I am curious too. > > email.Send should send the mail. Don't know why it doesn't. > > Do you need the username and password for smtp at your provider? Else > just skip it as it is send in plain text and easy to trap with a network > sniffer. > > Meanwhile I got it running - at least there is no more error message. Before I had some data wrong, there was an error message after some waiting. Now I used the ssl connection and added Encrypt = net.ssl It seems to run now, but the testmail has never appeared. Regards Rolf From eilert-sprachen at ...221... Thu Aug 1 00:36:18 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 01 Aug 2013 00:36:18 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <51F988DB.3020202@...1...> References: <51F83D1C.9090109@...221...> <1375296259.2267.7.camel@...3024...> <51F98749.6010504@...221...> <51F988DB.3020202@...1...> Message-ID: <51F99162.602@...221...> Am 31.07.2013 23:59, schrieb Beno?t Minisini: > Le 31/07/2013 23:53, Rolf-Werner Eilert a ?crit : >> >> Hm, would any provider accept mails without giving username and >> password? I don't know any. And most providers offer a way of secure >> access, not using port 25 but 465 or 587. I just don't know if this is >> supported by gb.net.smtp. If yes, I would prefer it of course. >> >> Is there a way of observing what email.Send is doing? Or have I simply >> got to wait for it to return, hoping it will do so some day? >> >> Rolf >> > > Did you see the 'Debug' property in the doc? :-) > Help says, it is "printed to the standard error" - where is "standard error"? Sorry, slightly confused... I looked through /var/log, but nothing. In the debug window, the only thing that appeared was "-> quit". Rolf From eilert-sprachen at ...221... Thu Aug 1 00:38:31 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 01 Aug 2013 00:38:31 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <51F988DB.3020202@...1...> References: <51F83D1C.9090109@...221...> <1375296259.2267.7.camel@...3024...> <51F98749.6010504@...221...> <51F988DB.3020202@...1...> Message-ID: <51F991E7.6070007@...221...> Am 31.07.2013 23:59, schrieb Beno?t Minisini: > Le 31/07/2013 23:53, Rolf-Werner Eilert a ?crit : >> >> Hm, would any provider accept mails without giving username and >> password? I don't know any. And most providers offer a way of secure >> access, not using port 25 but 465 or 587. I just don't know if this is >> supported by gb.net.smtp. If yes, I would prefer it of course. >> >> Is there a way of observing what email.Send is doing? Or have I simply >> got to wait for it to return, hoping it will do so some day? >> >> Rolf >> > > Did you see the 'Debug' property in the doc? :-) > Sorry, I meant "Console window" not "Debug window". Time to go to bed... Rolf From jprovan at ...626... Thu Aug 1 05:24:40 2013 From: jprovan at ...626... (Jim Provan) Date: Wed, 31 Jul 2013 22:24:40 -0500 Subject: [Gambas-user] Cloning a control In-Reply-To: References: Message-ID: Thank you. That works great. My computer understand French :). jk Jim Provan On Wed, Jul 31, 2013 at 5:20 AM, Fabien Bodard wrote: > Le 31 juil. 2013 07:06, "Jim Provan" a ?crit : > > > > This is probably a noob question, but then, I am a noob to Gambas, but > not > > to programming in general. How do you clone a control ? > > > > I want to make a copy of a control. I have done this in C#, and use it > > fairly frequently in an app that I am writing, but cannot figure out how > to > > accomplish this in Gambas. > > > > > > Jim Provan > > > http://www.gambasforge.org/code-62-copier-un-controle-ou-un-conteneur-et-ses-enfants.html > > Its in french but it is what you want to achieve > > > > ------------------------------------------------------------------------------ > > Get your SQL database under version control now! > > Version control is standard for application code, but databases havent > > caught up. So what steps can you take to put your SQL databases under > > version control? Why should you start doing it? Read more to find out. > > > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jprovan at ...626... Thu Aug 1 15:03:35 2013 From: jprovan at ...626... (Jim Provan) Date: Thu, 1 Aug 2013 08:03:35 -0500 Subject: [Gambas-user] gb.net.curl Issues Message-ID: Is there an override property for the .Get() and .Post() methods of an HttpClient to accept self signed certificates such as curl's "--no-check-certificates" option ? Jim Provan From gambas at ...1... Thu Aug 1 19:22:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 01 Aug 2013 19:22:00 +0200 Subject: [Gambas-user] gb.net.curl Issues In-Reply-To: References: Message-ID: <51FA9938.10403@...1...> Le 01/08/2013 15:03, Jim Provan a ?crit : > Is there an override property for the .Get() and .Post() methods of an > HttpClient to accept self signed certificates such as curl's > "--no-check-certificates" option ? > > Jim Provan I don't have this option on the curl provided with my Ubuntu 13.04... -- Beno?t Minisini From jprovan at ...626... Thu Aug 1 22:42:33 2013 From: jprovan at ...626... (Jim Provan) Date: Thu, 1 Aug 2013 15:42:33 -0500 Subject: [Gambas-user] gb.net.curl Issues In-Reply-To: <51FA9938.10403@...1...> References: <51FA9938.10403@...1...> Message-ID: So, how do you deal with self-signed certificates ? Jim Provan On Thu, Aug 1, 2013 at 12:22 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 01/08/2013 15:03, Jim Provan a ?crit : > > Is there an override property for the .Get() and .Post() methods of an > > HttpClient to accept self signed certificates such as curl's > > "--no-check-certificates" option ? > > > > Jim Provan > > I don't have this option on the curl provided with my Ubuntu 13.04... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sat Aug 3 18:14:29 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 3 Aug 2013 17:14:29 +0100 (BST) Subject: [Gambas-user] big-endian / little-endian conversion Message-ID: <1375546469.41265.YahooMailBasic@...3070...> Hello, I was trying a big-endian / little-endian conversion. In web I found this C function: ((word>>8) & 0x00FF) | ((word<<8) & 0xFF00) word is a " 16bit " value. Well, I translated that function in Gambas: Print Hex((Shr(&2301, 8) And &00FF) Or (Shl(&2301, 8) And &FF00)) I was waiting for this value: 01 23 but I do not understand why I obtain this results: 23 01 23 Where do I make the mistake ? Thanks vuott From jussi.lahtinen at ...626... Sat Aug 3 19:23:15 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 3 Aug 2013 20:23:15 +0300 Subject: [Gambas-user] big-endian / little-endian conversion In-Reply-To: <1375546469.41265.YahooMailBasic@...3070...> References: <1375546469.41265.YahooMailBasic@...3070...> Message-ID: Dim word As Short = &2301 Print Hex((Shr(word, 8) And &00FF) Or (Shl(word, 8) And &FF00)) Or: Print Hex((Shr(CShort(&2301), 8) And &00FF) Or (Shl(CShort(&2301), 8) And &FF00)) Jussi On Sat, Aug 3, 2013 at 7:14 PM, Ru Vuott wrote: > Hello, > > I was trying a big-endian / little-endian conversion. > > In web I found this C function: > > ((word>>8) & 0x00FF) | ((word<<8) & 0xFF00) > > word is a " 16bit " value. > > > Well, > > I translated that function in Gambas: > > Print Hex((Shr(&2301, 8) And &00FF) Or (Shl(&2301, 8) And &FF00)) > > I was waiting for this value: 01 23 > > but I do not understand why I obtain this results: 23 01 23 > > > Where do I make the mistake ? > > Thanks > > vuott > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Sat Aug 3 20:12:19 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 3 Aug 2013 19:12:19 +0100 (BST) Subject: [Gambas-user] big-endian / little-endian conversion In-Reply-To: Message-ID: <1375553539.12100.YahooMailBasic@...3066...> Hello Jussi, thank you for your suggestion. Bye Vuott -------------------------------------------- Sab 3/8/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] big-endian / little-endian conversion A: "mailing list for gambas users" Cc: "Benoit" Data: Sabato 3 agosto 2013, 19:23 Dim word As Short = &2301 Print Hex((Shr(word, 8) And &00FF) Or (Shl(word, 8) And &FF00)) Or: Print Hex((Shr(CShort(&2301), 8) And &00FF) Or (Shl(CShort(&2301), 8) And &FF00)) Jussi On Sat, Aug 3, 2013 at 7:14 PM, Ru Vuott wrote: > Hello, > > I was trying a big-endian / little-endian conversion. > > In web I found this C function: > >? ? ((word>>8) & 0x00FF) | ((word<<8) & 0xFF00) > >? word is a? " 16bit "? value. > > > Well, > > I translated that function in Gambas: > >? ???Print Hex((Shr(&2301, 8) And &00FF) Or (Shl(&2301, 8) And &FF00)) > > I was waiting for this value:???01 23 > > but I do not understand why I obtain this results:? 23 01 23 > > > Where do I make the mistake ? > > Thanks > > vuott > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Aug 3 20:14:52 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 03 Aug 2013 20:14:52 +0200 Subject: [Gambas-user] gb.net.curl Issues In-Reply-To: References: <51FA9938.10403@...1...> Message-ID: <51FD489C.2030601@...1...> Le 01/08/2013 22:42, Jim Provan a ?crit : > So, how do you deal with self-signed certificates ? > > Jim Provan > I don't know... I found an option related to that in the curl library documentation, so I can add it to the gb.net.curl component. But I didn't find that option in the curl command-line tool. Strange... -- Beno?t Minisini From jprovan at ...626... Sat Aug 3 21:44:38 2013 From: jprovan at ...626... (Jim Provan) Date: Sat, 3 Aug 2013 14:44:38 -0500 Subject: [Gambas-user] gb.net.curl Issues In-Reply-To: <51FD489C.2030601@...1...> References: <51FA9938.10403@...1...> <51FD489C.2030601@...1...> Message-ID: Ok, merci. Jim Provan On Sat, Aug 3, 2013 at 1:14 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 01/08/2013 22:42, Jim Provan a ?crit : > > So, how do you deal with self-signed certificates ? > > > > Jim Provan > > > > I don't know... I found an option related to that in the curl library > documentation, so I can add it to the gb.net.curl component. > > But I didn't find that option in the curl command-line tool. Strange... > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From wally at ...2037... Sun Aug 4 08:41:38 2013 From: wally at ...2037... (wally) Date: Sun, 04 Aug 2013 08:41:38 +0200 Subject: [Gambas-user] svn update problem Message-ID: <2454652.GWkKWGp3R9@...3157...> Hi any idea what's up here ? ..gambas3_svn/trunk>svn up Updating '.': svn: E000104: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/gambas/code/gambas/trunk' svn: E000104: Can't read from connection: Connection reset by peer ..gambas3_svn/trunk> thx wally From Karl.Reinl at ...2345... Sun Aug 4 11:20:49 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sun, 04 Aug 2013 11:20:49 +0200 Subject: [Gambas-user] svn update problem In-Reply-To: <2454652.GWkKWGp3R9@...3157...> References: <2454652.GWkKWGp3R9@...3157...> Message-ID: <1375608049.2421.3.camel@...40...> Am Sonntag, den 04.08.2013, 08:41 +0200 schrieb wally: > Hi > > any idea what's up here ? > > ..gambas3_svn/trunk>svn up > Updating '.': > svn: E000104: Unable to connect to a repository at URL > 'svn://svn.code.sf.net/p/gambas/code/gambas/trunk' > svn: E000104: Can't read from connection: Connection reset by peer > ..gambas3_svn/trunk> > > thx wally > Salut Wally, svn co svn://svn.code.sf.net/p/gambas/code/gambas/trunk just worked for me actually- May be it was down. -- Amicalement Charlie From wally at ...2037... Sun Aug 4 11:36:07 2013 From: wally at ...2037... (wally) Date: Sun, 04 Aug 2013 11:36:07 +0200 Subject: [Gambas-user] svn update problem In-Reply-To: <1375608049.2421.3.camel@...40...> References: <2454652.GWkKWGp3R9@...3157...> <1375608049.2421.3.camel@...40...> Message-ID: <2583484.WGlH6q3Cti@...3157...> Karl, yes, it works now also for me. God, please give me patience, but right now ! :) On Sunday 04 August 2013 11:20:49 Charlie Reinl wrote: > Am Sonntag, den 04.08.2013, 08:41 +0200 schrieb wally: > > Hi > > > > any idea what's up here ? > > > > ..gambas3_svn/trunk>svn up > > Updating '.': > > svn: E000104: Unable to connect to a repository at URL > > 'svn://svn.code.sf.net/p/gambas/code/gambas/trunk' > > svn: E000104: Can't read from connection: Connection reset by peer > > ..gambas3_svn/trunk> > > > > thx wally > > Salut Wally, > > svn co svn://svn.code.sf.net/p/gambas/code/gambas/trunk > > just worked for me actually- > May be it was down. From gambas at ...1... Sun Aug 4 14:05:08 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 04 Aug 2013 14:05:08 +0200 Subject: [Gambas-user] gb.net.curl Issues In-Reply-To: References: <51FA9938.10403@...1...> <51FD489C.2030601@...1...> Message-ID: <51FE4374.6030100@...1...> Le 03/08/2013 21:44, Jim Provan a ?crit : > Ok, merci. > > Jim Provan > > I added the two SSL options in revision #5771. Can you try them and tell me if they work? HttpClient.SSL.VerifyPeer = False ' True by default HttpClient.SSL.VerifyHost = False ' True by default Regards, -- Beno?t Minisini From gambas at ...2524... Sun Aug 4 16:07:20 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Sun, 04 Aug 2013 14:07:20 +0000 Subject: [Gambas-user] Issue 458 in gambas: Repeated CRITICAL messages Message-ID: <0-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 458 by john.aaron.rose at ...626...: Repeated CRITICAL messages http://code.google.com/p/gambas/issues/detail?id=458 Many times repeated messages at runtime: ** (CombineAV:4881): CRITICAL **: os_bar_hide: assertion `OS_IS_BAR (bar)' failed (CombineAV:4881): Gtk-CRITICAL **: IA__gtk_widget_hide: assertion `GTK_IS_WIDGET (widget)' failed ** (CombineAV:4881): CRITICAL **: os_bar_set_parent: assertion `OS_IS_BAR (bar)' failed Version: 3.4.2 Operating system: Linux Distribution: Ubuntu Architecture: x86_64 GUI component: GTK+ Desktop used: Gnome 3: Unity Install the mjpegtools package. Run the app using 2 small files with .m4v & mp2 extensions: ideally should use proper files of those types (but I have attached q.m2v & q.mp2 (which are copies of a text file & renamed) as they both give the same console messages & do not create a combined audio/visual file with .mpg (this happens with the console command equivalent to running the app). PS the console overflows the window showing the console (during running & after running when viewing the console): unable to scroll to the end. Therefore, cannot tell if there are any other messages at the bottom of the console window. Attachments: CombineAV.tar.gz 16.0 KB q.m2v 10 bytes q.mp2 10 bytes -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Sun Aug 4 17:35:54 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 4 Aug 2013 17:35:54 +0200 Subject: [Gambas-user] smtp-client doesn't return In-Reply-To: <51F99162.602@...221...> References: <51F83D1C.9090109@...221...> <1375296259.2267.7.camel@...3024...> <51F98749.6010504@...221...> <51F988DB.3020202@...1...> <51F99162.602@...221...> Message-ID: <20130804153554.GA497@...2774...> On Thu, 01 Aug 2013, Rolf-Werner Eilert wrote: > > > Am 31.07.2013 23:59, schrieb Beno?t Minisini: > > Le 31/07/2013 23:53, Rolf-Werner Eilert a ?crit : > >> > >> Hm, would any provider accept mails without giving username and > >> password? I don't know any. And most providers offer a way of secure > >> access, not using port 25 but 465 or 587. I just don't know if this is > >> supported by gb.net.smtp. If yes, I would prefer it of course. > >> > >> Is there a way of observing what email.Send is doing? Or have I simply > >> got to wait for it to return, hoping it will do so some day? > >> > >> Rolf > >> > > > > Did you see the 'Debug' property in the doc? :-) > > > > > Help says, it is "printed to the standard error" - where is "standard > error"? Sorry, slightly confused... I looked through /var/log, but nothing. > > In the debug window, the only thing that appeared was "-> quit". > Standard error (stderr) is an output stream of a program. Normally it points to the same device as the standard output does. So both texts will appear intermixed - but immediately visible to you. If you only see a "-> quit" in the console window then it's because the class only wrote this to stderr, nothing more. Regards, Tobi From taboege at ...626... Sun Aug 4 17:59:35 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 4 Aug 2013 17:59:35 +0200 Subject: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator Message-ID: <20130804155935.GB497@...2774...> Hi Benoit, when writing programs that use gb.ncurses it is difficult to emit debugging information, i.e. one cannot use the handy Debug or Error instructions because they write "string\n" to stderr where "string\r\n" would be needed in ncurses mode. While it would be easy to add a "\r" to the end of each string, it would also most likely mess up the display of the program. I think it would be best to be able to redirect the standard error of a program which is run in a terminal emulator back to the console window in the IDE. In my imagination this would be a simple checkbox in the project options dialog. Could you please implement this? Regards, Tobi From gambas at ...1... Sun Aug 4 20:06:11 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 04 Aug 2013 20:06:11 +0200 Subject: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator In-Reply-To: <20130804155935.GB497@...2774...> References: <20130804155935.GB497@...2774...> Message-ID: <51FE9813.3050408@...1...> Le 04/08/2013 17:59, Tobias Boege a ?crit : > Hi Benoit, > > when writing programs that use gb.ncurses it is difficult to emit debugging > information, i.e. one cannot use the handy Debug or Error instructions > because they write "string\n" to stderr where "string\r\n" would be needed > in ncurses mode. > > While it would be easy to add a "\r" to the end of each string, it would > also most likely mess up the display of the program. I think it would be > best to be able to redirect the standard error of a program which is run in > a terminal emulator back to the console window in the IDE. > > In my imagination this would be a simple checkbox in the project options > dialog. Could you please implement this? > > Regards, > Tobi > Why does ncurses change the behaviour of the standard error stream? I don't see the reason... And what do you mean by "redirect the standard error of a program which is run in a terminal emulator back to the console window in the IDE"? This is what is already done for all debugged programs! -- Beno?t Minisini From taboege at ...626... Sun Aug 4 20:31:23 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 4 Aug 2013 20:31:23 +0200 Subject: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator In-Reply-To: <51FE9813.3050408@...1...> References: <20130804155935.GB497@...2774...> <51FE9813.3050408@...1...> Message-ID: <20130804183122.GD497@...2774...> On Sun, 04 Aug 2013, Beno?t Minisini wrote: > Le 04/08/2013 17:59, Tobias Boege a ?crit : > > Hi Benoit, > > > > when writing programs that use gb.ncurses it is difficult to emit debugging > > information, i.e. one cannot use the handy Debug or Error instructions > > because they write "string\n" to stderr where "string\r\n" would be needed > > in ncurses mode. > > > > While it would be easy to add a "\r" to the end of each string, it would > > also most likely mess up the display of the program. I think it would be > > best to be able to redirect the standard error of a program which is run in > > a terminal emulator back to the console window in the IDE. > > > > In my imagination this would be a simple checkbox in the project options > > dialog. Could you please implement this? > > > > Regards, > > Tobi > > > > Why does ncurses change the behaviour of the standard error stream? I > don't see the reason... > It changes the tty line discipline and stderr just happens to be directed to that tty. Normally the tty has the ONLCR bit set when humans operate with it which means: translate each incoming newline into a carriage-return- newline sequence. NCurses turns this bit off. Try "stty -onlcr" in a terminal to see the result. > And what do you mean by "redirect the standard error of a program which > is run in a terminal emulator back to the console window in the IDE"? > This is what is already done for all debugged programs! > AFAICS, when I have the "Use a terminal emulator" setting checked in the project options, writing to stderr results in output to the controlling terminal (xterm in my case), not to the IDE console. I have a screenshot attached and the project used to generate the display. I hope this makes it clear enough? I'd like to have an option to send the strings from Error and Debug to the IDE console, not to the terminal emulator. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: no-carriage-return-0.0.1.tar.gz Type: application/octet-stream Size: 4697 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: no-carriage-return.png Type: image/png Size: 5685 bytes Desc: not available URL: From gambas at ...1... Sun Aug 4 22:08:23 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 04 Aug 2013 22:08:23 +0200 Subject: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator In-Reply-To: <20130804183122.GD497@...2774...> References: <20130804155935.GB497@...2774...> <51FE9813.3050408@...1...> <20130804183122.GD497@...2774...> Message-ID: <51FEB4B7.50109@...1...> Le 04/08/2013 20:31, Tobias Boege a ?crit : >> >> Why does ncurses change the behaviour of the standard error stream? I >> don't see the reason... >> > > It changes the tty line discipline and stderr just happens to be directed > to that tty. Normally the tty has the ONLCR bit set when humans operate with > it which means: translate each incoming newline into a carriage-return- > newline sequence. > > NCurses turns this bit off. Try "stty -onlcr" in a terminal to see the > result. > Maybe you can turn this bit on just after NCurses initialisation? >> And what do you mean by "redirect the standard error of a program which >> is run in a terminal emulator back to the console window in the IDE"? >> This is what is already done for all debugged programs! >> > > AFAICS, when I have the "Use a terminal emulator" setting checked in the > project options, writing to stderr results in output to the controlling > terminal (xterm in my case), not to the IDE console. > > I have a screenshot attached and the project used to generate the display. I > hope this makes it clear enough? I'd like to have an option to send the > strings from Error and Debug to the IDE console, not to the terminal > emulator. > > Regards, > Tobi > The debugged program is entirely under the control of the terminal emulator. I don't know how I can tell it to redirect its standard error output to the standard error output of the terminal emulator, or (better) a specific pipe, so that the IDE gets the data... It should be possible with a named pipe, I will try... -- Beno?t Minisini From taboege at ...626... Sun Aug 4 22:15:22 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 4 Aug 2013 22:15:22 +0200 Subject: [Gambas-user] Feature request: Redirecting stderr of a program run in a terminal emulator In-Reply-To: <51FEB4B7.50109@...1...> References: <20130804155935.GB497@...2774...> <51FE9813.3050408@...1...> <20130804183122.GD497@...2774...> <51FEB4B7.50109@...1...> Message-ID: <20130804201522.GE497@...2774...> On Sun, 04 Aug 2013, Beno?t Minisini wrote: > Le 04/08/2013 20:31, Tobias Boege a ?crit : > >> > >> Why does ncurses change the behaviour of the standard error stream? I > >> don't see the reason... > >> > > > > It changes the tty line discipline and stderr just happens to be directed > > to that tty. Normally the tty has the ONLCR bit set when humans operate with > > it which means: translate each incoming newline into a carriage-return- > > newline sequence. > > > > NCurses turns this bit off. Try "stty -onlcr" in a terminal to see the > > result. > > > > Maybe you can turn this bit on just after NCurses initialisation? > It's possible but ncurses does what it does to have the tty in a known state and I shouldn't mess around with it behind ncurses' back... > >> And what do you mean by "redirect the standard error of a program which > >> is run in a terminal emulator back to the console window in the IDE"? > >> This is what is already done for all debugged programs! > >> > > > > AFAICS, when I have the "Use a terminal emulator" setting checked in the > > project options, writing to stderr results in output to the controlling > > terminal (xterm in my case), not to the IDE console. > > > > I have a screenshot attached and the project used to generate the display. I > > hope this makes it clear enough? I'd like to have an option to send the > > strings from Error and Debug to the IDE console, not to the terminal > > emulator. > > > > Regards, > > Tobi > > > > The debugged program is entirely under the control of the terminal > emulator. I don't know how I can tell it to redirect its standard error > output to the standard error output of the terminal emulator, or > (better) a specific pipe, so that the IDE gets the data... It should be > possible with a named pipe, I will try... > Yes, my first thought was way too simple... But actually it should be doable with something like "exec 2>/.../gambas-named-pipe" just before the program is executed in the terminal emulator. Regards, Tobi From sebikul at ...626... Mon Aug 5 02:40:22 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Sun, 4 Aug 2013 21:40:22 -0300 Subject: [Gambas-user] gb.openal resources... In-Reply-To: <51EE3F3E.3000507@...1...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> <20130722201338.4674f80f@...3104...> <51EE3F3E.3000507@...1...> Message-ID: The only problem now is that the official version for libopenal in Lucid is1.12. Can the component be compiled with this version? If not, i will see if i can get a ported package added to the ppa. On Tue, Jul 23, 2013 at 5:30 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 23/07/2013 04:30, Sebastian Kulesz a ?crit : > > I'm getting build errors with openal 1.13 (1.14 builds fine). Here is a > > log: > > > https://launchpadlibrarian.net/145629777/buildlog_ubuntu-precise-i386.gambas3_3.4.99-1%2Bsvn4605-build28~precise1_FAILEDTOBUILD.txt.gz > > > > Error is: > > > > c_alc.c:457:2: error: 'ALC_EXT_CAPTURE' undeclared here (not in a > function) > > > > Please try revision #5763, and report other missings symbols in > openal-soft 1.13. > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Aug 5 03:06:01 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 05 Aug 2013 03:06:01 +0200 Subject: [Gambas-user] gb.openal resources... In-Reply-To: References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> <20130722201338.4674f80f@...3104...> <51EE3F3E.3000507@...1...> Message-ID: <51FEFA79.9010507@...1...> Le 05/08/2013 02:40, Sebastian Kulesz a ?crit : > The only problem now is that the official version for libopenal in > Lucid is1.12. Can the component be compiled with this version? If not, > i will see > if i can get a ported package added to the ppa. > I think so if it is just a matter of missing symbols. Just report me what fails, and I will modify the sources so that it compiles. Regards, -- Beno?t Minisini From sebikul at ...626... Mon Aug 5 04:28:55 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Sun, 4 Aug 2013 23:28:55 -0300 Subject: [Gambas-user] gb.openal resources... In-Reply-To: <51FEFA79.9010507@...1...> References: <1374429807.81462.YahooMailNeo@...3064...> <20130721204427.5ab95f7a@...3104...> <1374481526.1225.YahooMailNeo@...3066...> <51ED6B74.9020806@...1887...> <20130722194650.7326334b@...3104...> <20130722201338.4674f80f@...3104...> <51EE3F3E.3000507@...1...> <51FEFA79.9010507@...1...> Message-ID: I patched the configure.ac to lower the required version to 1.12. The compilation succeeded but had a few warnings. Here [0] is the log. These are the warnings; make[5]: Entering directory `/build/buildd/gambas3-3.4.99-2+svn4616/gb.openal/src' CC gb_openal_la-main.lo CC gb_openal_la-c_al.lo CC gb_openal_la-c_alc.lo CC gb_openal_la-c_alure.lo c_alure.c: In function 'Alure_StreamSizeIsMicroSec': c_alure.c:190: warning: implicit declaration of function 'alureStreamSizeIsMicroSec' c_alure.c: In function 'Alure_GetStreamLength': c_alure.c:265: warning: implicit declaration of function 'alureGetStreamLength' c_alure.c: In function 'Alure_GetStreamFrequency': c_alure.c:272: warning: implicit declaration of function 'alureGetStreamFrequency' c_alure.c: In function 'Alure_SetStreamOrder': c_alure.c:299: warning: implicit declaration of function 'alureSetStreamOrder' c_alure.c: In function 'Alure_SetStreamPatchset': c_alure.c:306: warning: implicit declaration of function 'alureSetStreamPatchset' c_alure.c: In function 'Alure_Update': c_alure.c:322: warning: implicit declaration of function 'alureUpdate' c_alure.c: In function 'Alure_UpdateInterval': c_alure.c:333: warning: implicit declaration of function 'alureUpdateInterval' c_alure.c: In function 'Alure_PlaySourceStream': c_alure.c:341: warning: implicit declaration of function 'alurePlaySourceStream' c_alure.c: In function 'Alure_PlaySource': c_alure.c:347: warning: implicit declaration of function 'alurePlaySource' c_alure.c: In function 'Alure_StopSource': c_alure.c:353: warning: implicit declaration of function 'alureStopSource' c_alure.c: In function 'Alure_ResumeSource': c_alure.c:359: warning: implicit declaration of function 'alureResumeSource' CCLD gb.openal.la [0] https://launchpadlibrarian.net/146764073/buildlog_ubuntu-lucid-amd64.gambas3_3.4.99-2%2Bsvn4616-build29~lucid1_UPLOADING.txt.gz On Sun, Aug 4, 2013 at 10:06 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 05/08/2013 02:40, Sebastian Kulesz a ?crit : > > The only problem now is that the official version for libopenal in > > Lucid is1.12. Can the component be compiled with this version? If not, > > i will see > > if i can get a ported package added to the ppa. > > > > I think so if it is just a matter of missing symbols. Just report me > what fails, and I will modify the sources so that it compiles. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Mon Aug 5 16:22:34 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Aug 2013 16:22:34 +0200 Subject: [Gambas-user] SQLite3 VARYING CHARACTER(255) taken as Boolean? Message-ID: <20130805142234.GC3059@...2774...> Hi, we have a case at http://gambas-club.de where one uses an SQLite3 database with some fields being of type VARYING CHARACTER(255). These are all shown to be Booleans by Gambas code. Note that the TEXT type apparently is handled correctly. I have absolutely no idea of the Gambas DBMS drivers, therefore seek an explanation (or fix). Minimal project and the database attached. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: club-db-problem-0.0.1.tar.gz Type: application/octet-stream Size: 9917 bytes Desc: not available URL: From gambas at ...2524... Mon Aug 5 16:06:33 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 05 Aug 2013 14:06:33 +0000 Subject: [Gambas-user] Issue 459 in gambas: Gambas 3.4.2 IDE not working recompile all when downgrading Message-ID: <0-6813199134517018827-11311946481671102461-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 459 by supp... at ...3170...: Gambas 3.4.2 IDE not working recompile all when downgrading http://code.google.com/p/gambas/issues/detail?id=459 1) Describe the problem. When I downgraded from trunk to stable (3.4.2) I ran into issues with out of date bytecode errors. Doing a Compile All from IDE doesn't solve them. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: 3.4.2 Revision: [System] OperatingSystem=Linux Kernel=3.8.0-26-generic Architecture=x86 Distribution=Ubuntu 13.04 Desktop=GNOME Theme=QGtk Language=en_US.UTF-8 Memory=2017M [Libraries] GStreamer=libgstreamer-0.10.so.0.30.0 GTK+=libgtk-x11-2.0.so.0.2400.17 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 3) Provide a little project that reproduces the bug or the crash. 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. I had trunk installed, but want to compile proper binaries for end users. So installed 3.4.2 version (from svn tag/3.4.2) Versions when trunk installed: $ gbx3 -V 3.4.90 r5769 $ gbc3 -V 3.4.90 r5769 After sudo make install of 3.4.2: $ gbx3 -V 3.4.2 $ gbc3 -V 3.4.2 Now open existing project and run it, I got attached error. Doing a Compile All (ALT-F7) doesn't fix it. Reopening project, nothing solves it. The files under .gambas stay old. It only seems to recompile a few files which are open in IDE. ls -l .gambas ... -rw-rw-r-- 1 ron ron 684 aug 4 12:23 CTIMERDELAY -rw-rw-r-- 1 ron ron 692 aug 4 12:23 CTIMERONOFF ... Doing in gbc3 -agpmt in project dir is the only way to fix this. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: Screenshot from 2013-08-05 16:00:43.png 39.6 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Mon Aug 5 16:53:57 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Aug 2013 16:53:57 +0200 Subject: [Gambas-user] Cannot Split() against ASCII NUL byte Message-ID: <20130805145357.GD3059@...2774...> Hi, the Split() function seems to have problems splitting against the ASCII NUL (aka "\0") byte. In the attached project, there are four test cases from whose results I assume that Split() stops working on the separator when it encounters a NUL just if it was a C string. Look especially at the last test. I currently work around this issue by using the "tr" program. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: split-nul-0.0.1.tar.gz Type: application/octet-stream Size: 5133 bytes Desc: not available URL: From jprovan at ...626... Mon Aug 5 17:09:52 2013 From: jprovan at ...626... (Jim Provan) Date: Mon, 05 Aug 2013 10:09:52 -0500 Subject: [Gambas-user] Cannot Split() against ASCII NUL byte In-Reply-To: <20130805145357.GD3059@...2774...> References: <20130805145357.GD3059@...2774...> Message-ID: <51FFC040.7000908@...626...> On 08/05/2013 09:53 AM, Tobias Boege wrote: > Hi, > > the Split() function seems to have problems splitting against the ASCII NUL > (aka "\0") byte. In the attached project, there are four test cases from > whose results I assume that Split() stops working on the separator when it > encounters a NUL just if it was a C string. Look especially at the last > test. > > I currently work around this issue by using the "tr" program. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user This will always occur in any language, as a string is terminated by the null character internally. From taboege at ...626... Mon Aug 5 18:31:40 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 5 Aug 2013 18:31:40 +0200 Subject: [Gambas-user] Cannot Split() against ASCII NUL byte In-Reply-To: <51FFC040.7000908@...626...> References: <20130805145357.GD3059@...2774...> <51FFC040.7000908@...626...> Message-ID: <20130805163140.GB7331@...2774...> On Mon, 05 Aug 2013, Jim Provan wrote: > On 08/05/2013 09:53 AM, Tobias Boege wrote: > > Hi, > > > > the Split() function seems to have problems splitting against the ASCII NUL > > (aka "\0") byte. In the attached project, there are four test cases from > > whose results I assume that Split() stops working on the separator when it > > encounters a NUL just if it was a C string. Look especially at the last > > test. > > > > I currently work around this issue by using the "tr" program. > > > > Regards, > > Tobi > > > > > > ------------------------------------------------------------------------------ > > Get your SQL database under version control now! > > Version control is standard for application code, but databases havent > > caught up. So what steps can you take to put your SQL databases under > > version control? Why should you start doing it? Read more to find out. > > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > > > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > This will always occur in any language, as a string is terminated by the > null character internally. > Bzzzt! Wrong. In Gambas a string is a structure containing a pointer and a length so that the data can contain as much NUL as you want. Look at [0] and especially at [1] were I was told the same thing. Split() may be one of the functions mentioned there which by design (not by bug) do not support "\0" but in my imagination - without knowing the code - it should be as easy as using memmem() instead of strstr() to find a Gambas string (Separator) in another Gambas string (Text) and to split accordingly. Regards, Tobi [0] http://gambasdoc.org/help/lang/type/string?v3 [1] http://sourceforge.net/mailarchive/message.php?msg_id=29289747 From tom at ...3139... Mon Aug 5 20:49:01 2013 From: tom at ...3139... (Tom) Date: Mon, 05 Aug 2013 14:49:01 -0400 Subject: [Gambas-user] Cannot Split() against ASCII NUL byte In-Reply-To: <51FFC040.7000908@...626...> References: <20130805145357.GD3059@...2774...> <51FFC040.7000908@...626...> Message-ID: <51FFF39D.1030802@...3139...> On 8/5/2013 11:09 AM, Jim Provan wrote: > On 08/05/2013 09:53 AM, Tobias Boege wrote: >> Hi, >> >> the Split() function seems to have problems splitting against the ASCII NUL >> (aka "\0") byte. In the attached project, there are four test cases from >> whose results I assume that Split() stops working on the separator when it >> encounters a NUL just if it was a C string. Look especially at the last >> test. >> >> I currently work around this issue by using the "tr" program. >> >> Regards, >> Tobi >> >> >> ------------------------------------------------------------------------------ >> Get your SQL database under version control now! >> Version control is standard for application code, but databases havent >> caught up. So what steps can you take to put your SQL databases under >> version control? Why should you start doing it? Read more to find out. >> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk >> >> >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > This will always occur in any language, as a string is terminated by the > null character internally. Not in real Basic languages. Basic traditionally does NOT use a Null terminator for String types. > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jprovan at ...626... Mon Aug 5 21:28:57 2013 From: jprovan at ...626... (Jim Provan) Date: Mon, 5 Aug 2013 14:28:57 -0500 Subject: [Gambas-user] Cannot Split() against ASCII NUL byte In-Reply-To: <20130805163140.GB7331@...2774...> References: <20130805145357.GD3059@...2774...> <51FFC040.7000908@...626...> <20130805163140.GB7331@...2774...> Message-ID: I stand corrected. Thank you. Jim Provan On Mon, Aug 5, 2013 at 11:31 AM, Tobias Boege wrote: > On Mon, 05 Aug 2013, Jim Provan wrote: > > On 08/05/2013 09:53 AM, Tobias Boege wrote: > > > Hi, > > > > > > the Split() function seems to have problems splitting against the > ASCII NUL > > > (aka "\0") byte. In the attached project, there are four test cases > from > > > whose results I assume that Split() stops working on the separator > when it > > > encounters a NUL just if it was a C string. Look especially at the last > > > test. > > > > > > I currently work around this issue by using the "tr" program. > > > > > > Regards, > > > Tobi > > > > > > > > > > ------------------------------------------------------------------------------ > > > Get your SQL database under version control now! > > > Version control is standard for application code, but databases havent > > > caught up. So what steps can you take to put your SQL databases under > > > version control? Why should you start doing it? Read more to find out. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > > > > > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > This will always occur in any language, as a string is terminated by the > > null character internally. > > > > Bzzzt! Wrong. In Gambas a string is a structure containing a pointer and a > length so that the data can contain as much NUL as you want. Look at [0] > and > especially at [1] were I was told the same thing. > > Split() may be one of the functions mentioned there which by design (not by > bug) do not support "\0" but in my imagination - without knowing the code - > it should be as easy as using memmem() instead of strstr() to find a Gambas > string (Separator) in another Gambas string (Text) and to split > accordingly. > > Regards, > Tobi > > [0] http://gambasdoc.org/help/lang/type/string?v3 > [1] http://sourceforge.net/mailarchive/message.php?msg_id=29289747 > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Tue Aug 6 13:32:31 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 6 Aug 2013 13:32:31 +0200 Subject: [Gambas-user] How to interpret the "circular references" message? Message-ID: <20130806113231.GC542@...2774...> Hi, I have got some circular references in my project which I want to get rid of. Actually I haven't really got an idea of where the cause could lie so I wonder if there is anything useful in the message from Gambas. My questions are: What does the order of the classes signify? What are these numbers before each class? Regards, Tobi From marcobra.ubuntu at ...626... Tue Aug 6 16:58:28 2013 From: marcobra.ubuntu at ...626... (marco bra) Date: Tue, 6 Aug 2013 16:58:28 +0200 Subject: [Gambas-user] Error (bug report request at startup) running MapView example Message-ID: Hi with gambas trunk rev. 5773 Starting MapView i get: ** Oops! Internal error! ** ** Symbol 'Alt' declared twice in class 'Key' ** Program aborting. Sorry! :-( ** Please send a bug report at gambas at ...1... Thank you marco -- Linux Infinite Freedom I'm writing from this place: http://www.openstreetmap.org/?lat=44.39945&lon=8.6798&zoom=15&layers=M From gambas at ...1... Tue Aug 6 17:23:20 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 06 Aug 2013 17:23:20 +0200 Subject: [Gambas-user] Error (bug report request at startup) running MapView example In-Reply-To: References: Message-ID: <520114E8.4030701@...1...> Le 06/08/2013 16:58, marco bra a ?crit : > Hi with gambas trunk rev. 5773 > > Starting MapView i get: > > ** Oops! Internal error! ** > ** Symbol 'Alt' declared twice in class 'Key' > > ** Program aborting. Sorry! :-( > ** Please send a bug report at gambas at ...1... > > Thank you > marco > It should be fixed in revision #5774. Regards, -- Beno?t Minisini From marcobra.ubuntu at ...626... Tue Aug 6 17:44:48 2013 From: marcobra.ubuntu at ...626... (marco bra) Date: Tue, 6 Aug 2013 17:44:48 +0200 Subject: [Gambas-user] Error (bug report request at startup) running MapView example In-Reply-To: <520114E8.4030701@...1...> References: <520114E8.4030701@...1...> Message-ID: Fixed Thanks Marco 2013/8/6 Beno?t Minisini : > Le 06/08/2013 16:58, marco bra a ?crit : >> Hi with gambas trunk rev. 5773 >> >> Starting MapView i get: >> >> ** Oops! Internal error! ** >> ** Symbol 'Alt' declared twice in class 'Key' >> >> ** Program aborting. Sorry! :-( >> ** Please send a bug report at gambas at ...1... >> >> Thank you >> marco >> > > It should be fixed in revision #5774. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Linux Infinite Freedom I'm writing from this place: http://www.openstreetmap.org/?lat=44.39945&lon=8.6798&zoom=15&layers=M From mmcg29440 at ...3163... Tue Aug 6 19:56:07 2013 From: mmcg29440 at ...3163... (Marty McGlensey) Date: Tue, 6 Aug 2013 13:56:07 -0400 Subject: [Gambas-user] Wild cards in filter expressions Message-ID: Hello, I need to write a filter expression for a datasource that includes wildcard characters (* or ?). I'd like to filter on this expression name = '*mith'. The result should be all records with a name equal to Smith. I'm using MySql as the underlying database. The usual wildcards are the * and ?. In MySql I have found it to be %. Does Gambas support wildcards in filter strings? If so, what are they? Is there a work around? Thanks, Marty From Karl.Reinl at ...2345... Tue Aug 6 21:26:41 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Tue, 06 Aug 2013 21:26:41 +0200 Subject: [Gambas-user] Wild cards in filter expressions In-Reply-To: References: Message-ID: <1375817201.2507.11.camel@...40...> Am Dienstag, den 06.08.2013, 13:56 -0400 schrieb Marty McGlensey: > Hello, > > > > I need to write a filter expression for a datasource that includes wildcard > characters (* or ?). I'd like to filter on this expression name = '*mith'. > The result should be all records with a name equal to Smith. I'm using MySql > as the underlying database. The usual wildcards are the * and ?. In MySql I > have found it to be %. > > > > Does Gambas support wildcards in filter strings? If so, what are they? Is > there a work around? > > > > Thanks, > > Marty Salut Marty, SQL Wildcards work with LIKE and that has nothing to do with gambas. your mysql query could be : Select * from Where name like '%mith' or Select * from Where name like '%m%th' or Select * from Where name like '%th' or Select * from Where name like '%t%' You will always find your Smith too. or Select * from Where name = 'Smith' -- Amicalement Charlie From jprovan at ...626... Tue Aug 6 22:23:10 2013 From: jprovan at ...626... (Jim Provan) Date: Tue, 6 Aug 2013 15:23:10 -0500 Subject: [Gambas-user] gb.net.curl Issues In-Reply-To: <51FE4374.6030100@...1...> References: <51FA9938.10403@...1...> <51FD489C.2030601@...1...> <51FE4374.6030100@...1...> Message-ID: http.SSL.VerifyHost = False http.SSL.VerifyPeer = False http.User = "admin" http.Password = "admin1" http.Auth = Net.AuthBasic http.Async = False http.Debug = True http.Async = True http.Timeout = 60 then the Get.... returns * About to connect() to 10.25.52.11 port 443 (#0) * Trying 10.25.52.11... * Connected to 10.25.52.11 (10.25.52.11) port 443 (#0) * found 159 certificates in /etc/ssl/certs/ca-certificates.crt * server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none * Closing connection 0 It doesn't appear to be working. Jim Provan On Sun, Aug 4, 2013 at 7:05 AM, Beno?t Minisini < gambas at ...1...> wrote: > Le 03/08/2013 21:44, Jim Provan a ?crit : > > Ok, merci. > > > > Jim Provan > > > > > > I added the two SSL options in revision #5771. Can you try them and tell > me if they work? > > HttpClient.SSL.VerifyPeer = False ' True by default > HttpClient.SSL.VerifyHost = False ' True by default > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed Aug 7 00:36:54 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 07 Aug 2013 00:36:54 +0200 Subject: [Gambas-user] SQLite3 VARYING CHARACTER(255) taken as Boolean? In-Reply-To: <20130805142234.GC3059@...2774...> References: <20130805142234.GC3059@...2774...> Message-ID: <52017A86.1010100@...1...> Le 05/08/2013 16:22, Tobias Boege a ?crit : > Hi, > > we have a case at http://gambas-club.de where one uses an SQLite3 database > with some fields being of type VARYING CHARACTER(255). These are all shown > to be Booleans by Gambas code. Note that the TEXT type apparently is handled > correctly. > > I have absolutely no idea of the Gambas DBMS drivers, therefore seek an > explanation (or fix). > > Minimal project and the database attached. > > Regards, > Tobi > The Gambas <-> Database datatype mapping is detailed there: http://gambasdoc.org/help/doc/db-type-mapping?v3 But SQLite is special as the field datatype has no real meaning for it (every field can store anything), it is just a string description. (Actually it is not 100% true, look in the SQLite documentation). I will look at the Gambas sqlite drivers to see how they interpret "VARYING CHARACTER(255)"... -- Beno?t Minisini From gambas at ...2524... Wed Aug 7 06:27:32 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 07 Aug 2013 04:27:32 +0000 Subject: [Gambas-user] Issue 24 in gambas: Desktop.SendKeys("[RETURN]") doesn't work In-Reply-To: <1-6813199134517018827-15429362418293401508-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15429362418293401508-gambas=googlecode.com@...2524...> <0-6813199134517018827-15429362418293401508-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15429362418293401508-gambas=googlecode.com@...2524...> Comment #2 on issue 24 by victorg... at ...626...: Desktop.SendKeys("[RETURN]") doesn't work http://code.google.com/p/gambas/issues/detail?id=24 Hello I'm Victor I would want to know if you would help me I'm starting to program with gambas3 and I'm using SendKeys and webview to get a web page and automatic navigate in the same page,I'm using: Desktop.SendKeys("[Return]") work fine Desktop.SendKeys("[Tab]") work fine how can select all or send ctrl+a to copy the web content I appreciate your comments o sugestions Regards Victor G. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Wed Aug 7 10:08:42 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 7 Aug 2013 10:08:42 +0200 Subject: [Gambas-user] Starting a Process and forgetting about it Message-ID: <20130807080842.GA860@...2774...> Hi, in a project I need to start a server Process and watch its Kill event while the program is running. The server shall, however, continue to run even after my program exits. I'm kind of stuck here: If I create a Process, Gambas keeps watching it and doesn't shutdown the program until the process dies. Can I somehow tell Gambas to forget about that Process and just exit? I have used the Quit instruction until a minute ago (without any errors or complaints) to get the program down ultimately but as I know this is a Bad Idea: here's my mail. Now I'm working around this problem like that: I use the Shell instruction to start a shell as the child process Gambas watches. I can safely kill the shell which makes Gambas happy and reparents the server to init which is also fine. I have either to document this workaround because IMHO it's quite subtle or have an explicit way of having Gambas forget about a Process... Regards, Tobi From gambas at ...2524... Wed Aug 7 14:23:23 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 07 Aug 2013 12:23:23 +0000 Subject: [Gambas-user] Issue 460 in gambas: Desktop.Sendkeys("{[Control_L]A}") does not work Message-ID: <0-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 460 by victorg... at ...626...: Desktop.Sendkeys("{[Control_L]A}") does not work http://code.google.com/p/gambas/issues/detail?id=460 1) Describe the problem. Hello I'm Victor I would want to know if you would help me I'm starting to program with gambas3 and I'm using SendKeys and webview to get a web page and automatic navigate in the same page,I'm using: Desktop.SendKeys("[Return]") work fine Desktop.SendKeys("[Tab]") work fine Desktop.Sendkeys("{[Control_L]A}") does work how can select all or send ctrl+a to copy the web content 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: 3.4.9 Operating system: Linux / Raspbian 3) Provide a little project that reproduces the bug or the crash. Desktop.Sendkeys("{[Control_L]A}") does not work it send unknow key : Control_L 5) Explain clearly how to reproduce the bug or the crash. Before that web page is opened and try to copy all content with Desktop.Sendkeys("{[Control_L]A}") -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From bbruen at ...2308... Wed Aug 7 15:22:23 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 07 Aug 2013 22:52:23 +0930 Subject: [Gambas-user] Another Best Approach Question: Statistics over an array of objects Message-ID: <1375881743.26148.26.camel@...2688...> I'm looking for good ideas again I'm afraid. I have an array of objects that can be best described as a set of categories with an associated value. Something along the lines of [Cat1:String, Cat2:String, Cat3:String, Value:Float]. The general idea is that the user would select one of the categories and then the project would calculate a set of statistics across that category. For example the categories could be "Age", "Sex", "Height" and the Value may be, say, weight. What I am trying to do is develop a generic module/class accepting the input array that will return another array of objects being the statistical analysis of the input array across the specified category. The statics are fairly basic (at this stage) being the average for each category, the sample standard deviation and the sample standard error. Generally the input array length is reasonably short, ~30 to ~300 items. Also the category domains are demonstrably short, between 3 and ~10 identities. I could (and have done) use the database (postgresql) statistics functions and re-query the entire dataset given the user category selection. However, the time to execute this is unacceptably slow (the full dataset is over 3,000,000 rows). Furthermore, I would have to devise a generic way to build the specific query required each time. Another way could be to develop an interface to r or something but I am hesitant to embark on that path given my knowledge of stats libraries like that. So, just looking for a "good idea". regards Bruce From taboege at ...626... Wed Aug 7 15:58:30 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 7 Aug 2013 15:58:30 +0200 Subject: [Gambas-user] Another Best Approach Question: Statistics over an array of objects In-Reply-To: <1375881743.26148.26.camel@...2688...> References: <1375881743.26148.26.camel@...2688...> Message-ID: <20130807135830.GD860@...2774...> On Wed, 07 Aug 2013, Bruce wrote: > I'm looking for good ideas again I'm afraid. > > > I have an array of objects that can be best described as a set of > categories with an associated value. Something along the lines of > [Cat1:String, Cat2:String, Cat3:String, Value:Float]. > > The general idea is that the user would select one of the categories and > then the project would calculate a set of statistics across that > category. For example the categories could be "Age", "Sex", "Height" > and the Value may be, say, weight. > > What I am trying to do is develop a generic module/class accepting the > input array that will return another array of objects being the > statistical analysis of the input array across the specified category. > The statics are fairly basic (at this stage) being the average for each > category, the sample standard deviation and the sample standard error. > > Generally the input array length is reasonably short, ~30 to ~300 items. > Also the category domains are demonstrably short, between 3 and ~10 > identities. > > I could (and have done) use the database (postgresql) statistics > functions and re-query the entire dataset given the user category > selection. However, the time to execute this is unacceptably slow (the > full dataset is over 3,000,000 rows). Furthermore, I would have to > devise a generic way to build the specific query required each time. > > Another way could be to develop an interface to r or something but I am > hesitant to embark on that path given my knowledge of stats libraries > like that. > > So, just looking for a "good idea". > Sorry, I don't understand... You want to give a Variant[] to a class, like: Public Sub btnGiveStats_Click() Dim hStats As Stats hStats = Stats.Give(["Age", "Sex", "Height", fWeight]) End Right? What is this array supposed to signify? On what data shall it operate? I mean: is there a table of persons (with fields Age, Sex, Height, ...) and the funtion shall count ... something? Is the "weight" used to weigh the average figure? Thinking about it further, I admit that I don't understand anything... at all. :-) Regards, Tobi From bbruen at ...2308... Wed Aug 7 16:26:34 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 07 Aug 2013 23:56:34 +0930 Subject: [Gambas-user] Another Best Approach Question: Statistics over an array of objects In-Reply-To: <20130807135830.GD860@...2774...> References: <1375881743.26148.26.camel@...2688...> <20130807135830.GD860@...2774...> Message-ID: <1375885594.26148.64.camel@...2688...> On Wed, 2013-08-07 at 15:58 +0200, Tobias Boege wrote: > On Wed, 07 Aug 2013, Bruce wrote: > > I'm looking for good ideas again I'm afraid. > > > > > > I have an array of objects that can be best described as a set of > > categories with an associated value. Something along the lines of > > [Cat1:String, Cat2:String, Cat3:String, Value:Float]. > > > > The general idea is that the user would select one of the categories and > > then the project would calculate a set of statistics across that > > category. For example the categories could be "Age", "Sex", "Height" > > and the Value may be, say, weight. > > > > What I am trying to do is develop a generic module/class accepting the > > input array that will return another array of objects being the > > statistical analysis of the input array across the specified category. > > The statics are fairly basic (at this stage) being the average for each > > category, the sample standard deviation and the sample standard error. > > > > Generally the input array length is reasonably short, ~30 to ~300 items. > > Also the category domains are demonstrably short, between 3 and ~10 > > identities. > > > > I could (and have done) use the database (postgresql) statistics > > functions and re-query the entire dataset given the user category > > selection. However, the time to execute this is unacceptably slow (the > > full dataset is over 3,000,000 rows). Furthermore, I would have to > > devise a generic way to build the specific query required each time. > > > > Another way could be to develop an interface to r or something but I am > > hesitant to embark on that path given my knowledge of stats libraries > > like that. > > > > So, just looking for a "good idea". > > > > Sorry, I don't understand... You want to give a Variant[] to a class, like: > > Public Sub btnGiveStats_Click() > Dim hStats As Stats > > hStats = Stats.Give(["Age", "Sex", "Height", fWeight]) > End > > Right? > > What is this array supposed to signify? On what data shall it operate? I > mean: is there a table of persons (with fields Age, Sex, Height, ...) and > the funtion shall count ... something? Is the "weight" used to weigh the > average figure? > > Thinking about it further, I admit that I don't understand anything... at > all. :-) > > Regards, > Tobi OK, rephrased. I'm looking for good ideas to create a generic statistics module with a function: Analyse(category as Integer, data_array as []) as Analysis[] [] is an array of objects, these objects consist of an unknown number of category properties and a value property. Analysis is a class that exhibit some basic statistics of "value" across the specified "category". In short, Analysis(category,data_array) is returning a kind of a crosstab of the value against the selected category. So we could get a user directive to anlayse "Weight" (the value) across "Sex" (the category) and the returned array would be [{"2years",12.3432, 1.123, 0.34}, {"3years", 14.1643,1.112,0.01},{"4years",16.954,2.001,0.13}, etc] where the {} contents are the properties of the Analysis class, viz Category,Average,StdDev,StdErr. The question is whether it would be to write statistical analysis routines from scratch or is there a better (or easier) way using either a) "known" libraries, or b) developing a set of generic methods to use the underlying database stats functions c) a published gambas component? regards Bruce From bbruen at ...2308... Wed Aug 7 16:34:43 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 08 Aug 2013 00:04:43 +0930 Subject: [Gambas-user] Another Best Approach Question: Statistics over an array of objects In-Reply-To: <1375885594.26148.64.camel@...2688...> References: <1375881743.26148.26.camel@...2688...> <20130807135830.GD860@...2774...> <1375885594.26148.64.camel@...2688...> Message-ID: <1375886083.26148.67.camel@...2688...> On Wed, 2013-08-07 at 23:56 +0930, Bruce wrote: > On Wed, 2013-08-07 at 15:58 +0200, Tobias Boege wrote: > > On Wed, 07 Aug 2013, Bruce wrote: > > > I'm looking for good ideas again I'm afraid. > > > > > > > > > I have an array of objects that can be best described as a set of > > > categories with an associated value. Something along the lines of > > > [Cat1:String, Cat2:String, Cat3:String, Value:Float]. > > > > > > The general idea is that the user would select one of the categories and > > > then the project would calculate a set of statistics across that > > > category. For example the categories could be "Age", "Sex", "Height" > > > and the Value may be, say, weight. > > > > > > What I am trying to do is develop a generic module/class accepting the > > > input array that will return another array of objects being the > > > statistical analysis of the input array across the specified category. > > > The statics are fairly basic (at this stage) being the average for each > > > category, the sample standard deviation and the sample standard error. > > > > > > Generally the input array length is reasonably short, ~30 to ~300 items. > > > Also the category domains are demonstrably short, between 3 and ~10 > > > identities. > > > > > > I could (and have done) use the database (postgresql) statistics > > > functions and re-query the entire dataset given the user category > > > selection. However, the time to execute this is unacceptably slow (the > > > full dataset is over 3,000,000 rows). Furthermore, I would have to > > > devise a generic way to build the specific query required each time. > > > > > > Another way could be to develop an interface to r or something but I am > > > hesitant to embark on that path given my knowledge of stats libraries > > > like that. > > > > > > So, just looking for a "good idea". > > > > > > > Sorry, I don't understand... You want to give a Variant[] to a class, like: > > > > Public Sub btnGiveStats_Click() > > Dim hStats As Stats > > > > hStats = Stats.Give(["Age", "Sex", "Height", fWeight]) > > End > > > > Right? > > > > What is this array supposed to signify? On what data shall it operate? I > > mean: is there a table of persons (with fields Age, Sex, Height, ...) and > > the funtion shall count ... something? Is the "weight" used to weigh the > > average figure? > > > > Thinking about it further, I admit that I don't understand anything... at > > all. :-) > > > > Regards, > > Tobi > > OK, rephrased. > > I'm looking for good ideas to create a generic statistics module with a > function: > Analyse(category as Integer, data_array as []) as Analysis[] > > [] is an array of objects, these objects consist of an > unknown number of category properties and a value property. Analysis is > a class that exhibit some basic statistics of "value" across the specified > "category". > > In short, Analysis(category,data_array) is returning a kind of a crosstab of the value against the selected category. > So we could get a user directive to anlayse "Weight" (the value) across "Sex" (the category) and the returned array would be > [{"2years",12.3432, 1.123, 0.34}, {"3years", 14.1643,1.112,0.01},{"4years",16.954,2.001,0.13}, etc] > where the {} contents are the properties of the Analysis class, viz Category,Average,StdDev,StdErr. > > The question is whether it would be to write statistical analysis routines from > scratch or is there a better (or easier) way using either > a) "known" libraries, or > b) developing a set of generic methods to use the underlying database stats functions > c) a published gambas component? > > regards > Bruce > Oops, I meant > In short, Analysis(category,data_array) is returning a kind of a > crosstab of the value against the selected category. > So we could get a user directive to anlayse "Weight" (the value) > across "AGE" (the category) and the returned array would be > [{"2years",12.3432, 1.123, 0.34}, {"3years", > 14.1643,1.112,0.01},{"4years",16.954,2.001,0.13}, etc] > where the {} contents are the properties of the Analysis class, viz > Category,Average,StdDev,StdErr. B From taboege at ...626... Wed Aug 7 21:43:58 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 7 Aug 2013 21:43:58 +0200 Subject: [Gambas-user] Desktop.SendKeys() and modifiers and layouts Message-ID: <20130807194358.GL860@...2774...> Hi, First thing: Desktop.SendKeys() (gb.desktop) seems to have problems sending some keys generated via the AltGr modifier (is the labelled AltGr on non-German keyboards, too? I hope so). Anyways, on a German keyboard we compose @ = AltGr+q, [ = AltGr+8, ] = AltGr+9, etc.. But neither Desktop.SendKeys("@") nor Desktop.SendKeys("{[Alt_R]q"} gives an "@" but always "q" instead. It's the same for every other key I tried. It always results in the "base key" being sent. Does anyone not have this problem? --- Second thing: Moreover, I use a German keyboard layout and a (British) english locale. On the German keyboard we have "-" where on an american keyboard the "/" key is. If I, on my system, use Desktop.SendKey("-") it actually produces a "/" in the target window. How strange is that? Same with the more prominent example of "z" and "y" because German keyboards are qwertz and american ones are qwerty. I type "z" and "y" is sent... Any thoughts? Regards, Tobi From bbruen at ...2308... Thu Aug 8 11:08:38 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 08 Aug 2013 18:38:38 +0930 Subject: [Gambas-user] Killing an arbitrary process Message-ID: <1375952918.8638.7.camel@...2688...> I am using gnuplot to draw some graphs in a panel. To do this I create a gnuplot script and then Shell that script with $sop = Shell scmd where $sop is a process. Here's the problem. When gnuplot creates the plot it does so as a new process, typically the pid is one more than $sop.Handle. When the program is closed the gnuplot process remains, so I want to kill it. So, how can I kill an arbitrary process? Better still, is there a way to get information on an arbitrary process so that I can check it is a child of $sop and if so kill it? tia Bruce From taboege at ...626... Thu Aug 8 12:01:41 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 8 Aug 2013 12:01:41 +0200 Subject: [Gambas-user] Killing an arbitrary process In-Reply-To: <1375952918.8638.7.camel@...2688...> References: <1375952918.8638.7.camel@...2688...> Message-ID: <20130808100141.GA585@...2774...> On Thu, 08 Aug 2013, Bruce wrote: > I am using gnuplot to draw some graphs in a panel. To do this I create a > gnuplot script and then Shell that script with > $sop = Shell scmd > where $sop is a process. > > Here's the problem. When gnuplot creates the plot it does so as a new > process, typically the pid is one more than $sop.Handle. When the > program is closed the gnuplot process remains, so I want to kill it. > Don't count on the child having PID = $sop.Handle + 1. This would be racy. You want to kill the gnuplot process which you have in $sop? Then it's as simple as: Public Sub Form_Close() Try $sop.Kill() End > So, how can I kill an arbitrary process? Better still, is there a way > to get information on an arbitrary process so that I can check it is a > child of $sop and if so kill it? > I've just got a similar problem. But I had to watch for arbitrary processes to be killed, start them again and detect their threads. My solution was to use Linux' /proc interface. If this is portable enough for you: Look at "/proc/" & Str$($sop.Handle) &/ "tasks". You'll find the TIDs of all threads spawned by $sop. If gnuplot does not use threads but distinct child processes (let the PID of a process you suspect to be a child be denoted by CPID), you can find the parent PID in /proc/$CPID/status and in /proc/$CPID/stat. For the "stat" file, a parser is relatively simple: $ awk '{print $4;}' References: <1375881743.26148.26.camel@...2688...> <20130807135830.GD860@...2774...> <1375885594.26148.64.camel@...2688...> <1375886083.26148.67.camel@...2688...> Message-ID: <20130808105128.GB585@...2774...> On Thu, 08 Aug 2013, Bruce wrote: > On Wed, 2013-08-07 at 23:56 +0930, Bruce wrote: > > On Wed, 2013-08-07 at 15:58 +0200, Tobias Boege wrote: > > > On Wed, 07 Aug 2013, Bruce wrote: > > > > I'm looking for good ideas again I'm afraid. > > > > > > > > > > > > I have an array of objects that can be best described as a set of > > > > categories with an associated value. Something along the lines of > > > > [Cat1:String, Cat2:String, Cat3:String, Value:Float]. > > > > > > > > The general idea is that the user would select one of the categories and > > > > then the project would calculate a set of statistics across that > > > > category. For example the categories could be "Age", "Sex", "Height" > > > > and the Value may be, say, weight. > > > > > > > > What I am trying to do is develop a generic module/class accepting the > > > > input array that will return another array of objects being the > > > > statistical analysis of the input array across the specified category. > > > > The statics are fairly basic (at this stage) being the average for each > > > > category, the sample standard deviation and the sample standard error. > > > > > > > > Generally the input array length is reasonably short, ~30 to ~300 items. > > > > Also the category domains are demonstrably short, between 3 and ~10 > > > > identities. > > > > > > > > I could (and have done) use the database (postgresql) statistics > > > > functions and re-query the entire dataset given the user category > > > > selection. However, the time to execute this is unacceptably slow (the > > > > full dataset is over 3,000,000 rows). Furthermore, I would have to > > > > devise a generic way to build the specific query required each time. > > > > > > > > Another way could be to develop an interface to r or something but I am > > > > hesitant to embark on that path given my knowledge of stats libraries > > > > like that. > > > > > > > > So, just looking for a "good idea". > > > > > > > > > > Sorry, I don't understand... You want to give a Variant[] to a class, like: > > > > > > Public Sub btnGiveStats_Click() > > > Dim hStats As Stats > > > > > > hStats = Stats.Give(["Age", "Sex", "Height", fWeight]) > > > End > > > > > > Right? > > > > > > What is this array supposed to signify? On what data shall it operate? I > > > mean: is there a table of persons (with fields Age, Sex, Height, ...) and > > > the funtion shall count ... something? Is the "weight" used to weigh the > > > average figure? > > > > > > Thinking about it further, I admit that I don't understand anything... at > > > all. :-) > > > > > > Regards, > > > Tobi > > > > OK, rephrased. > > > > I'm looking for good ideas to create a generic statistics module with a > > function: > > Analyse(category as Integer, data_array as []) as Analysis[] > > > > [] is an array of objects, these objects consist of an > > unknown number of category properties and a value property. Analysis is > > a class that exhibit some basic statistics of "value" across the specified > > "category". > > > > In short, Analysis(category,data_array) is returning a kind of a crosstab of the value against the selected category. > > So we could get a user directive to anlayse "Weight" (the value) across "Sex" (the category) and the returned array would be > > [{"2years",12.3432, 1.123, 0.34}, {"3years", 14.1643,1.112,0.01},{"4years",16.954,2.001,0.13}, etc] > > where the {} contents are the properties of the Analysis class, viz Category,Average,StdDev,StdErr. > > > > The question is whether it would be to write statistical analysis routines from > > scratch or is there a better (or easier) way using either > > a) "known" libraries, or I don't know any... I'd write this as a Gambas module out of pure naivity. > > b) developing a set of generic methods to use the underlying database stats functions > > c) a published gambas component? > > > > regards > > Bruce > > > Oops, I meant > > In short, Analysis(category,data_array) is returning a kind of a > > crosstab of the value against the selected category. > > So we could get a user directive to anlayse "Weight" (the value) > > across "AGE" (the category) and the returned array would be > > [{"2years",12.3432, 1.123, 0.34}, {"3years", > > 14.1643,1.112,0.01},{"4years",16.954,2.001,0.13}, etc] > > where the {} contents are the properties of the Analysis class, viz > > Category,Average,StdDev,StdErr. > B In my ears, this sounds more like an introspection problem than a mathematical one, right? For a given category (age), there are multiple properties in each object (I assume that the property name is the same across all objects, though) which contain a value. The algorithm would be, IIUC: 1. Ask one of the objects to give you the names of all properties belonging to the category. 2. Enumerate all of these property name strings (sProp) 2.1. For Each object In data_array, get the value of the current property 2.2. Do the math As a function it would look like: Public Struct Analysis Name As String Average As Float StdDev As Float StdErr As Float End Struct Public Sub Analysis(iCat As Integer, aObjs As Object[]) As Analysis[] Dim aResult As New Analysis[] Dim hAnalysis As Analysis Dim sProp As String Dim hObject As Object Dim iValue As Integer ' Get the names of all properties in the objects which are associated with ' the given category (as a String[]) For Each sProp In aObjs[0].AssociatedProperties(iCat) hAnalysis = New Analysis hAnalysis.Name = sProp For Each hObject In aObjs iValue = Object.GetProperty(hObject, sProp) ' Do the math Next aResult.Add(hAnalysis) Next Return hAnalysis End The difficult and most maintainance-burdened part is the AssociatedProperties() function: each class which you want to analyse has to implement it. I think of it like: ' This is SomeClass.class Property 2years As Integer Property 3years As Integer Property 4years As Integer Public Function AssociatedProperties(iCat As Integer) As String[] Select Case iCat Case CategoryAge Return ["2years", "3years", "4years"] Case CategorySex Return ... Case Category... Return ... End Select End Of course, it would be much easier if you followed a specific pattern, i.e. if you named all "age" properties like "Xyears" you can iterate over all symbols in a class and dynamically find the property names: Property 2years As Integer Property 3years As Integer Property 4years As Integer Public Function AssociatedProperties(iCat As Integer) As String[] Dim aProps As New String[] Dim sSym As String For Each sSym In Object.Class(Me).Symbols If Object.Class(Me)[sSym].Kind = Class.Property Then Select Case iCat Case CategoryAge If sSym Ends "years" Then aProps.Add(sSym) Case CategorySex ... Case ... ... End Select Endif Next Return aProps End I hope this mail isn't overkill and helps you a bit further :-) Regards, Tobi From taboege at ...626... Thu Aug 8 13:21:33 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 8 Aug 2013 13:21:33 +0200 Subject: [Gambas-user] Another Best Approach Question: Statistics over an array of objects In-Reply-To: <20130808105128.GB585@...2774...> References: <1375881743.26148.26.camel@...2688...> <20130807135830.GD860@...2774...> <1375885594.26148.64.camel@...2688...> <1375886083.26148.67.camel@...2688...> <20130808105128.GB585@...2774...> Message-ID: <20130808112133.GC585@...2774...> On Thu, 08 Aug 2013, Tobias Boege wrote: > Public Sub Analysis(iCat As Integer, aObjs As Object[]) As Analysis[] > Dim aResult As New Analysis[] > Dim hAnalysis As Analysis > Dim sProp As String > Dim hObject As Object > Dim iValue As Integer > > ' Get the names of all properties in the objects which are associated with > ' the given category (as a String[]) > For Each sProp In aObjs[0].AssociatedProperties(iCat) > hAnalysis = New Analysis > hAnalysis.Name = sProp > > For Each hObject In aObjs > iValue = Object.GetProperty(hObject, sProp) > ' Do the math > Next > aResult.Add(hAnalysis) > Next > Return hAnalysis > End Return aResult would be the correct Return statement here. From pinozollo at ...626... Thu Aug 8 17:46:07 2013 From: pinozollo at ...626... (Pino Zollo) Date: Thu, 08 Aug 2013 11:46:07 -0400 Subject: [Gambas-user] Help Gambas2 on Mint15 Message-ID: <5203BD3F.9080205@...626...> Hi, I need to run my old programs written in Gambas2 on a Mint15 PC with MATE. While Gambas 3 compiles very well, with Gambas2 I can not because of QT: ./configure says: Disabled gb.qt gb.qt.kde gb.qte Which version of QT is needed ? If I compile like this, without QT, then rises a problem with gb.pdf Thanks for help Pino From whenamalone at ...626... Fri Aug 9 03:59:11 2013 From: whenamalone at ...626... (monika) Date: Thu, 8 Aug 2013 18:59:11 -0700 (PDT) Subject: [Gambas-user] GAMBAS2 is now being used in school teaching in KERALA state in INDIA Message-ID: <1376013551082-42751.post@...3046...> hi Benoit,GAMBAS2 is now being used in school teaching in KERALA state in INDIA. Using GAMBAS2 we (some teachers of KERALA) wrote a software called SETIGam(Self Evaluation Tool In Gambas) to help our students in their learning process. It is very much apprieciated and the students are very much intrested in it. We hope this will give a good promotion to GAMBAS2 in our state. Thank u Benoit for ur great servise and we salute your genius.......... -- View this message in context: http://gambas.8142.n7.nabble.com/GAMBAS2-is-now-being-used-in-school-teaching-in-KERALA-state-in-INDIA-tp42751.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Aug 9 04:16:59 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 09 Aug 2013 04:16:59 +0200 Subject: [Gambas-user] GAMBAS2 is now being used in school teaching in KERALA state in INDIA In-Reply-To: <1376013551082-42751.post@...3046...> References: <1376013551082-42751.post@...3046...> Message-ID: <5204511B.7020600@...1...> Le 09/08/2013 03:59, monika a ?crit : > hi Benoit,GAMBAS2 is now being used in school teaching in KERALA state in > INDIA. Using GAMBAS2 we (some teachers of KERALA) wrote a software called > SETIGam(Self Evaluation Tool In Gambas) to help our students in their > learning process. It is very much apprieciated and the students are very > much intrested in it. We hope this will give a good promotion to GAMBAS2 in > our state. Thank u Benoit for ur great servise and we salute your > genius.......... > Thank you for your kind mail! Is there any reason why you are using the old version of Gambas (Gambas 2) and not the new version, (Gambas 3) ? -- Beno?t Minisini From whenamalone at ...626... Fri Aug 9 06:59:31 2013 From: whenamalone at ...626... (monika) Date: Thu, 8 Aug 2013 21:59:31 -0700 (PDT) Subject: [Gambas-user] GAMBAS2 is now being used in school teaching in KERALA state in INDIA In-Reply-To: <5204511B.7020600@...1...> References: <1376013551082-42751.post@...3046...> <5204511B.7020600@...1...> Message-ID: hi Benoit, we are using Edubuntu OS in our State Syllabus. In which they haven't included Gambas3 and they are using Gambas2. We hope in the next distribution of Edubuntu they may include Gambas3. On Fri, Aug 9, 2013 at 7:48 AM, Beno?t Minisini [via Gambas] < ml-node+s8142n42752h17 at ...3046...> wrote: > Le 09/08/2013 03:59, monika a ?crit : > > hi Benoit,GAMBAS2 is now being used in school teaching in KERALA state > in > > INDIA. Using GAMBAS2 we (some teachers of KERALA) wrote a software > called > > SETIGam(Self Evaluation Tool In Gambas) to help our students in their > > learning process. It is very much apprieciated and the students are very > > much intrested in it. We hope this will give a good promotion to GAMBAS2 > in > > our state. Thank u Benoit for ur great servise and we salute your > > genius.......... > > > > Thank you for your kind mail! > > Is there any reason why you are using the old version of Gambas (Gambas > 2) and not the new version, (Gambas 3) ? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://gambas.8142.n7.nabble.com/GAMBAS2-is-now-being-used-in-school-teaching-in-KERALA-state-in-INDIA-tp42751p42752.html > To unsubscribe from GAMBAS2 is now being used in school teaching in > KERALA state in INDIA, click here > . > NAML > -- View this message in context: http://gambas.8142.n7.nabble.com/GAMBAS2-is-now-being-used-in-school-teaching-in-KERALA-state-in-INDIA-tp42751p42753.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Fri Aug 9 08:57:48 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 9 Aug 2013 08:57:48 +0200 Subject: [Gambas-user] GAMBAS2 is now being used in school teaching in KERALA state in INDIA In-Reply-To: References: <1376013551082-42751.post@...3046...> <5204511B.7020600@...1...> Message-ID: I hope too.... The differences between gambas2 and gambas3. Are really big in term of features.. But I'm really happy to see gambas learned at school. It give me more strength to complete my missing docs and my incomplete components :-) Thank you Regards, Fabien Bodard Le 9 ao?t 2013 07:00, "monika" a ?crit : > hi Benoit, > we are using Edubuntu OS in our State Syllabus. In which they haven't > included Gambas3 and they are using Gambas2. > We hope in the next distribution of Edubuntu they may include Gambas3. > > > On Fri, Aug 9, 2013 at 7:48 AM, Beno?t Minisini [via Gambas] < > ml-node+s8142n42752h17 at ...3046...> wrote: > > > Le 09/08/2013 03:59, monika a ?crit : > > > hi Benoit,GAMBAS2 is now being used in school teaching in KERALA state > > in > > > INDIA. Using GAMBAS2 we (some teachers of KERALA) wrote a software > > called > > > SETIGam(Self Evaluation Tool In Gambas) to help our students in their > > > learning process. It is very much apprieciated and the students are > very > > > much intrested in it. We hope this will give a good promotion to > GAMBAS2 > > in > > > our state. Thank u Benoit for ur great servise and we salute your > > > genius.......... > > > > > > > Thank you for your kind mail! > > > > Is there any reason why you are using the old version of Gambas (Gambas > > 2) and not the new version, (Gambas 3) ? > > > > -- > > Beno?t Minisini > > > > > ------------------------------------------------------------------------------ > > > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > below: > > > > > http://gambas.8142.n7.nabble.com/GAMBAS2-is-now-being-used-in-school-teaching-in-KERALA-state-in-INDIA-tp42751p42752.html > > To unsubscribe from GAMBAS2 is now being used in school teaching in > > KERALA state in INDIA, click here< > http://gambas.8142.n7.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=42751&code=d2hlbmFtYWxvbmVAZ21haWwuY29tfDQyNzUxfDI1ODA2OTc4Mg== > > > > . > > NAML< > http://gambas.8142.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/GAMBAS2-is-now-being-used-in-school-teaching-in-KERALA-state-in-INDIA-tp42751p42753.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Fri Aug 9 10:25:43 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 9 Aug 2013 10:25:43 +0200 Subject: [Gambas-user] GAMBAS2 is now being used in school teaching in KERALA state in INDIA In-Reply-To: <1376013551082-42751.post@...3046...> References: <1376013551082-42751.post@...3046...> Message-ID: <20130809082543.GA511@...2774...> On Thu, 08 Aug 2013, monika wrote: > hi Benoit,GAMBAS2 is now being used in school teaching in KERALA state in > INDIA. Using GAMBAS2 we (some teachers of KERALA) wrote a software called > SETIGam(Self Evaluation Tool In Gambas) to help our students in their > learning process. It is very much apprieciated and the students are very > much intrested in it. We hope this will give a good promotion to GAMBAS2 in > our state. Thank u Benoit for ur great servise and we salute your > genius.......... > Nice! But why Gambas2 and not 3? Well, we don't immediately salute your genius, Benoit :-) But Gambas since 2.9 (or something around that) was used at Markgraf-Albrecht-Gymnasium (grammar school) Osterburg. It superseded Delphi since 2009. Actually this year, we had Gambas3 trunk (yes, I went up and packaged it from time to time) running on the students' computers. I got to give some lessons to this year's 11th class (and my own 12th of course). Sadly, they didn't care much about the class. I wish some of them would have been Indians :-) However, they were 2 * 15 bug hunters and at least I remember there was a single one found... The bad news is that now I've graduated, they can't maintain the Linux server and intranet anymore, so next year Gambas will be gone from Osterburg... Regards, Tobi From mckaygerhard at ...626... Fri Aug 9 15:43:34 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 9 Aug 2013 09:13:34 -0430 Subject: [Gambas-user] pass parameters to another form invoke where? Message-ID: i need to invoke another from from main form, but need to pass one parameter, how can i do that? i have tho following code in main form, where i cant pass parameters to the "FAuth" form that invoke?: ' create a instance of the another form, that have tow input text, id and password fauth = New FAuth ' verify that user already wirte some input If fauth.ShowModal() Or Not inputcodigo Or Not inputid Then Return Else ' if user already wirte some input, then let doit .... Endif Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Fri Aug 9 16:00:55 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 9 Aug 2013 16:00:55 +0200 Subject: [Gambas-user] pass parameters to another form invoke where? In-Reply-To: References: Message-ID: <20130809140055.GC511@...2774...> On Fri, 09 Aug 2013, PICCORO McKAY Lenz wrote: > i need to invoke another from from main form, but need to pass one > parameter, how can i do that? > > i have tho following code in main form, where i cant pass parameters to the > "FAuth" form that invoke?: > > ' create a instance of the another form, that have tow input text, id and > password > fauth = New FAuth > ' verify that user already wirte some input > If fauth.ShowModal() Or Not inputcodigo Or Not inputid Then > Return > Else > ' if user already wirte some input, then let doit > .... > Endif > In FAuth you can write: Public Sub MyShowModal(theParameter As ...) ' Do something with theParameter Me.ShowModal() End Then you would do in FMain: hAuth = New FAuth hAuth.MyShowModal(...) instead of using hAuth.ShowModal() directly. Regards, Tobi From bill-lancaster at ...2231... Fri Aug 9 17:10:40 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 9 Aug 2013 08:10:40 -0700 (PDT) Subject: [Gambas-user] Message Box Already Displayed Message-ID: <1376061040795-42758.post@...3046...> In a fairly simple programme I get this error when only one message box is displayed Is there a known cause for this? -- View this message in context: http://gambas.8142.n7.nabble.com/Message-Box-Already-Displayed-tp42758.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Fri Aug 9 17:32:03 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 9 Aug 2013 17:32:03 +0200 Subject: [Gambas-user] Message Box Already Displayed In-Reply-To: <1376061040795-42758.post@...3046...> References: <1376061040795-42758.post@...3046...> Message-ID: <20130809153203.GD511@...2774...> On Fri, 09 Aug 2013, bill-lancaster wrote: > In a fairly simple programme I get this error when only one message box is > displayed > > Is there a known cause for this? > The cause is that you *want* to display another one... This sometimes happens to me when I display a Message box from an event handler. It seems, while the Message box is displayed (waiting for the user), the event loop is called again and may dispatch the same event another time which will then cause your error. I personally use this construct to serialise these Message boxes: Do Try Message.Error(("This was an error")) While Error instead of just Message.Error(("This was an error")) Regards, Tobi From gambas.fr at ...626... Fri Aug 9 17:38:59 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 9 Aug 2013 17:38:59 +0200 Subject: [Gambas-user] pass parameters to another form invoke where? In-Reply-To: <20130809140055.GC511@...2774...> References: <20130809140055.GC511@...2774...> Message-ID: Well Tobi I think you need to complete the idea. in fAuth : Private $iId as Integer Public Value as Integer Public sub Run(Id as integer) as boolean dim hForm as new hAuth $iId = Id return not hForm.ShowModal() End Public sub _Load() 'Get UserInfo from $iId and then txtUser.Text = resultuser End Public sub btnValidate_Click() return end Public Sub bntCancel_Click() return true endif 'in the main form if not hAuth.Run(user.id) then print hAuth.Value 2013/8/9 Tobias Boege > On Fri, 09 Aug 2013, PICCORO McKAY Lenz wrote: > > i need to invoke another from from main form, but need to pass one > > parameter, how can i do that? > > > > i have tho following code in main form, where i cant pass parameters to > the > > "FAuth" form that invoke?: > > > > ' create a instance of the another form, that have tow input text, id and > > password > > fauth = New FAuth > > ' verify that user already wirte some input > > If fauth.ShowModal() Or Not inputcodigo Or Not inputid Then > > Return > > Else > > ' if user already wirte some input, then let doit > > .... > > Endif > > > > In FAuth you can write: > > Public Sub MyShowModal(theParameter As ...) > ' Do something with theParameter > Me.ShowModal() > End > > Then you would do in FMain: > > hAuth = New FAuth > hAuth.MyShowModal(...) > > instead of using hAuth.ShowModal() directly. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From Karl.Reinl at ...2345... Fri Aug 9 18:50:42 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Fri, 09 Aug 2013 18:50:42 +0200 Subject: [Gambas-user] Help Gambas2 on Mint15 In-Reply-To: <5203BD3F.9080205@...626...> References: <5203BD3F.9080205@...626...> Message-ID: <1376067042.2513.15.camel@...40...> Am Donnerstag, den 08.08.2013, 11:46 -0400 schrieb Pino Zollo: > Hi, > > I need to run my old programs written in Gambas2 on a Mint15 PC with MATE. > > While Gambas 3 compiles very well, with Gambas2 I can not because of QT: > > ./configure says: > > Disabled > gb.qt > gb.qt.kde > gb.qte > > > Which version of QT is needed ? > > > If I compile like this, without QT, then rises a problem with gb.pdf > > > Thanks for help > > > Pino Salut Pino, you need qt 3.x, also for kde 3.x and forget qte (=> QT/Embedded) -- Amicalement Charlie From mckaygerhard at ...626... Fri Aug 9 19:33:15 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 9 Aug 2013 13:03:15 -0430 Subject: [Gambas-user] Compiling? what are disabled/happen if i not have kde4 devel libs installed? Message-ID: where modules need depends on kde4libs for compiling gambas? i mean, what happen if i not have installed runtime and devel libraries of kde4 ? when compiling gambas! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Fri Aug 9 19:37:30 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 09 Aug 2013 19:37:30 +0200 Subject: [Gambas-user] Compiling? what are disabled/happen if i not have kde4 devel libs installed? In-Reply-To: References: Message-ID: <520528DA.7080609@...1...> Le 09/08/2013 19:33, PICCORO McKAY Lenz a ?crit : > where modules need depends on kde4libs for compiling gambas? > > i mean, what happen if i not have installed runtime and devel libraries of > kde4 ? when compiling gambas! > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com Gambas 3 depends on no KDE libraries. Regards, -- Beno?t Minisini From mckaygerhard at ...626... Sat Aug 10 00:12:25 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 9 Aug 2013 17:42:25 -0430 Subject: [Gambas-user] Build error in gb.net.curl Message-ID: Err i have already installed libcurl-openssl-dev, should be installed their conunter part libcurl-gnutls-dev ? CC gb_net_curl_la-CNet.lo CNet.c:65: error: ?CURLAUTH_DIGEST_IE? no se declar? aqu? (no en una funci?n) CNet.c:146: error: ?CURLE_SSL_CRL_BADFILE? no se declar? aqu? (no en una funci?n) CNet.c:147: error: ?CURLE_SSL_ISSUER_ERROR? no se declar? aqu? (no en una funci?n) make[5]: *** [gb_net_curl_la-CNet.lo] Error 1 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From vuott at ...325... Sat Aug 10 02:23:54 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 10 Aug 2013 01:23:54 +0100 (BST) Subject: [Gambas-user] Updating Error in rev. 5781 Message-ID: <1376094234.39780.YahooMailBasic@...3070...> Hello, I was updating my Gambas-3 with rev. 5781, when I obtained this error: ****************************** make[5]: Entering directory `/home/vuott/trunk/main/lib/data' CC gb_data_la-main.lo main.c:27:23: fatal error: c_avltree.h: No such file or directory compilation terminated. make[5]: *** [gb_data_la-main.lo] Error 1 make[5]: Leaving directory `/home/vuott/trunk/main/lib/data' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/vuott/trunk/main/lib' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/vuott/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/vuott/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vuott/trunk' make: *** [all] Error 2 ********************************* Regards vuott From bill-lancaster at ...2231... Sat Aug 10 08:37:43 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Fri, 9 Aug 2013 23:37:43 -0700 (PDT) Subject: [Gambas-user] Message Box Already Displayed In-Reply-To: <20130809153203.GD511@...2774...> References: <1376061040795-42758.post@...3046...> <20130809153203.GD511@...2774...> Message-ID: <1376116663444-42767.post@...3046...> Thanks Tobi Yes, the problem was assocaited with an event. Bill -- View this message in context: http://gambas.8142.n7.nabble.com/Message-Box-Already-Displayed-tp42758p42767.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Sat Aug 10 09:02:50 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 10 Aug 2013 00:02:50 -0700 (PDT) Subject: [Gambas-user] mysql seach string contains single quote Message-ID: <1376118170941-42768.post@...3046...> Have seen a couple of posts that refer to this but can't quite understand the answer I have a database which conntains a string 'Queen's Head' so hResult = hConn.Exec("SELECT contacts.* FROM contacts WHERE Title = 'Queen's Head'") produces an error. How best to solve this? -- View this message in context: http://gambas.8142.n7.nabble.com/mysql-seach-string-contains-single-quote-tp42768.html Sent from the gambas-user mailing list archive at Nabble.com. From bbruen at ...2308... Sat Aug 10 09:21:14 2013 From: bbruen at ...2308... (Bruce) Date: Sat, 10 Aug 2013 16:51:14 +0930 Subject: [Gambas-user] Another Best Approach Question: Statistics over an array of objects In-Reply-To: <20130808112133.GC585@...2774...> References: <1375881743.26148.26.camel@...2688...> <20130807135830.GD860@...2774...> <1375885594.26148.64.camel@...2688...> <1375886083.26148.67.camel@...2688...> <20130808105128.GB585@...2774...> <20130808112133.GC585@...2774...> Message-ID: <1376119274.8638.8.camel@...2688...> On Thu, 2013-08-08 at 13:21 +0200, Tobias Boege wrote: > On Thu, 08 Aug 2013, Tobias Boege wrote: > > Public Sub Analysis(iCat As Integer, aObjs As Object[]) As Analysis[] > > Dim aResult As New Analysis[] > > Dim hAnalysis As Analysis > > Dim sProp As String > > Dim hObject As Object > > Dim iValue As Integer > > > > ' Get the names of all properties in the objects which are associated with > > ' the given category (as a String[]) > > For Each sProp In aObjs[0].AssociatedProperties(iCat) > > hAnalysis = New Analysis > > hAnalysis.Name = sProp > > > > For Each hObject In aObjs > > iValue = Object.GetProperty(hObject, sProp) > > ' Do the math > > Next > > aResult.Add(hAnalysis) > > Next > > Return hAnalysis > > End > > Return aResult > > would be the correct Return statement here. > Thanks Tobi, The Object.GetProperty was the clue I needed! regards Bruce From johny.provoost at ...27... Sat Aug 10 10:06:22 2013 From: johny.provoost at ...27... (Johny Provoost) Date: Sat, 10 Aug 2013 10:06:22 +0200 Subject: [Gambas-user] mysql seach string contains single quote In-Reply-To: <1376118170941-42768.post@...3046...> References: <1376118170941-42768.post@...3046...> Message-ID: <5205F47E.9060002@...27...> Op 10-08-13 09:02, bill-lancaster schreef: > Have seen a couple of posts that refer to this but can't quite understand the > answer > > I have a database which conntains a string 'Queen's Head' > > so > hResult = hConn.Exec("SELECT contacts.* FROM contacts WHERE Title = > 'Queen's Head'") > produces an error. > > How best to solve this? > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/mysql-seach-string-contains-single-quote-tp42768.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > It's because Queen's Head has a ' in the string. I always use Var="Queen's Head" hResult=hConn.Exec("SELECT contacts.* FROM contacts WHERE Title=" &"\"" & Var & "\"") or hResult=hConn.Exec("SELECT contacts.* FROM contacts WHERE Title=" & Chr(34) & Var & Chr(34)) Maybe there other solutions, I'm not a professional programmer. Johny From taboege at ...626... Sat Aug 10 10:23:17 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Aug 2013 10:23:17 +0200 Subject: [Gambas-user] Updating Error in rev. 5781 In-Reply-To: <1376094234.39780.YahooMailBasic@...3070...> References: <1376094234.39780.YahooMailBasic@...3070...> Message-ID: <20130810082317.GI511@...2774...> On Sat, 10 Aug 2013, Ru Vuott wrote: > Hello, > > I was updating my Gambas-3 with rev. 5781, when I obtained this error: > > ****************************** > > make[5]: Entering directory `/home/vuott/trunk/main/lib/data' > CC gb_data_la-main.lo > main.c:27:23: fatal error: c_avltree.h: No such file or directory > compilation terminated. > make[5]: *** [gb_data_la-main.lo] Error 1 > make[5]: Leaving directory `/home/vuott/trunk/main/lib/data' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/vuott/trunk/main/lib' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/vuott/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/vuott/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/vuott/trunk' > make: *** [all] Error 2 > > ********************************* My fault. Fixed in #5782. Regards, Tobi From bill-lancaster at ...2231... Sat Aug 10 10:43:58 2013 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sat, 10 Aug 2013 01:43:58 -0700 (PDT) Subject: [Gambas-user] mysql seach string contains single quote In-Reply-To: <5205F47E.9060002@...27...> References: <1376118170941-42768.post@...3046...> <5205F47E.9060002@...27...> Message-ID: <1376124238362-42772.post@...3046...> Johny, that's great. I spent more than an hour this morning on this. Thank you very much -- View this message in context: http://gambas.8142.n7.nabble.com/mysql-seach-string-contains-single-quote-tp42768p42772.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sat Aug 10 10:56:16 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Aug 2013 10:56:16 +0200 Subject: [Gambas-user] mysql seach string contains single quote In-Reply-To: <5205F47E.9060002@...27...> References: <1376118170941-42768.post@...3046...> <5205F47E.9060002@...27...> Message-ID: <20130810085616.GJ511@...2774...> On Sat, 10 Aug 2013, Johny Provoost wrote: > > Op 10-08-13 09:02, bill-lancaster schreef: > > Have seen a couple of posts that refer to this but can't quite understand the > > answer > > > > I have a database which conntains a string 'Queen's Head' > > > > so > > hResult = hConn.Exec("SELECT contacts.* FROM contacts WHERE Title = > > 'Queen's Head'") > > produces an error. > > > > How best to solve this? > > > > > > > > -- > > View this message in context: http://gambas.8142.n7.nabble.com/mysql-seach-string-contains-single-quote-tp42768.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > It's because Queen's Head has a ' in the string. > > I always use > Var="Queen's Head" > hResult=hConn.Exec("SELECT contacts.* FROM contacts WHERE Title=" > &"\"" & Var & "\"") > or > hResult=hConn.Exec("SELECT contacts.* FROM contacts WHERE Title=" & > Chr(34) & Var & Chr(34)) > This is even shorter: hResult = hConn.Exec("SELECT contacts.* FROM contacts WHERE Title='Queen\\'s Head'") Since ' is meaningful in MySQL, you have to mask it with \ and since you do this in a Gambas string constant, you have to double the backslash. Regards, Tobi From Karl.Reinl at ...2345... Sat Aug 10 11:56:30 2013 From: Karl.Reinl at ...2345... (Charlie Reinl) Date: Sat, 10 Aug 2013 11:56:30 +0200 Subject: [Gambas-user] mysql seach string contains single quote In-Reply-To: <1376118170941-42768.post@...3046...> References: <1376118170941-42768.post@...3046...> Message-ID: <1376128590.2500.8.camel@...40...> Am Samstag, den 10.08.2013, 00:02 -0700 schrieb bill-lancaster: > Have seen a couple of posts that refer to this but can't quite understand the > answer > > I have a database which conntains a string 'Queen's Head' > > so > hResult = hConn.Exec("SELECT contacts.* FROM contacts WHERE Title = > 'Queen's Head'") > produces an error. > > How best to solve this? > Salut, and this work also: hResult = hConn.Exec("SELECT contacts.* FROM contacts WHERE Title =&1" ,"'Queen's Head'") ' that is the gambas way or hResult = hConn.Exec("SELECT contacts.* FROM contacts WHERE Title =" & Replace("'Queen's Head'","'","''")) ' that is the SQL way ** both examples not tested -- Amicalement Charlie From taboege at ...626... Sat Aug 10 14:06:05 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Aug 2013 14:06:05 +0200 Subject: [Gambas-user] Interest in a difficult bug? Message-ID: <20130810120605.GK511@...2774...> Hi Benoit, in a project I can reliably reproduce the following message: ** Oops! Internal error! ** ** Cannot write signal #17 into signal pipe: Bad file descriptor ** Program aborting. Sorry! :-( ** Please send a bug report at gambas at ...1... Tough, I didn't succeed in isolating the cause. The code deals with one Process object only but uses Exec and Shell quite often. The project also has to deal with some race conditions. I have meanwhile removed that Process object from the code and refactored that part in pure Gambas. My project works flawlessly now. Anyway, are you interested in fixing this issue? I mean, this looks like a bit of work to me (particularly because I have no minimal example for you) and I, for sure, did strange things in the code. Regards, Tobi From vuott at ...325... Sat Aug 10 16:50:44 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 10 Aug 2013 15:50:44 +0100 (BST) Subject: [Gambas-user] Updating Error in rev. 5781 In-Reply-To: <20130810082317.GI511@...2774...> Message-ID: <1376146244.97714.YahooMailBasic@...3065...> Yes, Tobi, now it's ok. bye vuott -------------------------------------------- Sab 10/8/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] Updating Error in rev. 5781 A: "mailing list for gambas users" Data: Sabato 10 agosto 2013, 10:23 On Sat, 10 Aug 2013, Ru Vuott wrote: > Hello, > > I was updating my Gambas-3 with rev. 5781, when I obtained this error: > > ****************************** > > make[5]: Entering directory `/home/vuott/trunk/main/lib/data' >???CC? ???gb_data_la-main.lo > main.c:27:23: fatal error: c_avltree.h: No such file or directory > compilation terminated. > make[5]: *** [gb_data_la-main.lo] Error 1 > make[5]: Leaving directory `/home/vuott/trunk/main/lib/data' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/home/vuott/trunk/main/lib' > make[3]: *** [all-recursive] Error 1 > make[3]: Leaving directory `/home/vuott/trunk/main' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/home/vuott/trunk/main' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/home/vuott/trunk' > make: *** [all] Error 2 > > ********************************* My fault. Fixed in #5782. Regards, Tobi ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sat Aug 10 17:33:00 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 10 Aug 2013 17:33:00 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <20130810120605.GK511@...2774...> References: <20130810120605.GK511@...2774...> Message-ID: <52065D2C.8010107@...1...> Le 10/08/2013 14:06, Tobias Boege a ?crit : > Hi Benoit, > > in a project I can reliably reproduce the following message: > > ** Oops! Internal error! ** > ** Cannot write signal #17 into signal pipe: Bad file descriptor > ** Program aborting. Sorry! :-( > ** Please send a bug report at gambas at ...1... > > Tough, I didn't succeed in isolating the cause. The code deals with one > Process object only but uses Exec and Shell quite often. The project also > has to deal with some race conditions. > > I have meanwhile removed that Process object from the code and refactored > that part in pure Gambas. My project works flawlessly now. > > Anyway, are you interested in fixing this issue? I mean, this looks like a > bit of work to me (particularly because I have no minimal example for you) > and I, for sure, did strange things in the code. > > Regards, > Tobi > Of course I'm interested. But I need more precise details, and some way to reproduce it if possible. -- Beno?t Minisini From gambas at ...1... Sat Aug 10 17:35:15 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 10 Aug 2013 17:35:15 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <52065D2C.8010107@...1...> References: <20130810120605.GK511@...2774...> <52065D2C.8010107@...1...> Message-ID: <52065DB3.9060606@...1...> Le 10/08/2013 17:33, Beno?t Minisini a ?crit : > Le 10/08/2013 14:06, Tobias Boege a ?crit : >> Hi Benoit, >> >> in a project I can reliably reproduce the following message: >> >> ** Oops! Internal error! ** >> ** Cannot write signal #17 into signal pipe: Bad file descriptor >> ** Program aborting. Sorry! :-( >> ** Please send a bug report at gambas at ...1... >> >> Tough, I didn't succeed in isolating the cause. The code deals with one >> Process object only but uses Exec and Shell quite often. The project also >> has to deal with some race conditions. >> >> I have meanwhile removed that Process object from the code and refactored >> that part in pure Gambas. My project works flawlessly now. >> >> Anyway, are you interested in fixing this issue? I mean, this looks >> like a >> bit of work to me (particularly because I have no minimal example for >> you) >> and I, for sure, did strange things in the code. >> >> Regards, >> Tobi >> > > Of course I'm interested. But I need more precise details, and some way > to reproduce it if possible. > Do you use tasks? Do you run processes inside tasks? -- Beno?t Minisini From taboege at ...626... Sat Aug 10 18:57:21 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Aug 2013 18:57:21 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <52065DB3.9060606@...1...> References: <20130810120605.GK511@...2774...> <52065D2C.8010107@...1...> <52065DB3.9060606@...1...> Message-ID: <20130810165721.GB497@...2774...> On Sat, 10 Aug 2013, Beno?t Minisini wrote: > Le 10/08/2013 17:33, Beno?t Minisini a ?crit : > > Le 10/08/2013 14:06, Tobias Boege a ?crit : > >> Hi Benoit, > >> > >> in a project I can reliably reproduce the following message: > >> > >> ** Oops! Internal error! ** > >> ** Cannot write signal #17 into signal pipe: Bad file descriptor > >> ** Program aborting. Sorry! :-( > >> ** Please send a bug report at gambas at ...1... > >> > >> Tough, I didn't succeed in isolating the cause. The code deals with one > >> Process object only but uses Exec and Shell quite often. The project also > >> has to deal with some race conditions. > >> > >> I have meanwhile removed that Process object from the code and refactored > >> that part in pure Gambas. My project works flawlessly now. > >> > >> Anyway, are you interested in fixing this issue? I mean, this looks > >> like a > >> bit of work to me (particularly because I have no minimal example for > >> you) > >> and I, for sure, did strange things in the code. > >> > >> Regards, > >> Tobi > >> > > > > Of course I'm interested. But I need more precise details, and some way > > to reproduce it if possible. > > > > Do you use tasks? Do you run processes inside tasks? > No tasks involved. I've got a minimal project working! It's not that I wasn't minded giving you the real project but it isn't just more complex but also needs other software installed and set up which I didn't want to bother you with. Finally, there is a project attached. Its goal is to spawn a sleeping child process which shall detach from the Gambas process. This way, the process can run in the background and even survive the Gambas parent process. In fact, Gambas doesn't even know that the process exists (because it detached from the shell which was started by the Gambas program into a new session and the shell died) so Gambas doesn't want to wait for the started child to terminate. In the example, the called program is "sleep". Normally, this would be a server or something which is intended to survive the starting program. The second goal of the program is, whenever the sleep program crashes, to restart it. To this end, it creates an instance of a shell script. Let $PID denote the PID of the sleep process: while test -d /proc/$PID; sleep 1; done This process will terminate as soon as the sleep process terminated. As we can safely keep this shell script in a Process object (it is not meant to survive the Gambas program), we can use its Kill event to detect the detached sleep process' termination and start a new sleep accordingly. Enough of the theory. I found two reliable ways to crash the interpreter: 1) Segfault. 1. Start the attached program; 2. Open a terminal and run "pkill sleep" (or kill the sleep process some other way). You should see the program reacting on the external crash; it spawns a new sleep process and documents that with Debug output; 3. Re-run "pkill sleep". You should see a Segfault. 2) Oops. 1. Start the attached program; 2. Hit enter in the console window to initiate a "controlled kill" by the project itself; 3. Repeat Step 2; 4. Open a terminal and run "pkill sleep" to provoke an external kill; 5. Repeat Step 2. The oops is about a Bad file descriptor when writing signal #17 (SIGCHLD) to the signal pipe. Actually, the 2nd way doesn't seem too reliable as I *sometimes* get a segfault with this method, too. These two things must be related somewhere. Hope this helps. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: program-restart-oops-0.0.1.tar.gz Type: application/octet-stream Size: 5399 bytes Desc: not available URL: From taboege at ...626... Sat Aug 10 19:07:10 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 10 Aug 2013 19:07:10 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <20130810165721.GB497@...2774...> References: <20130810120605.GK511@...2774...> <52065D2C.8010107@...1...> <52065DB3.9060606@...1...> <20130810165721.GB497@...2774...> Message-ID: <20130810170710.GC497@...2774...> On Sat, 10 Aug 2013, Tobias Boege wrote: > No tasks involved. > > I've got a minimal project working! It's not that I wasn't minded giving you > the real project but it isn't just more complex but also needs other > software installed and set up which I didn't want to bother you with. > > Finally, there is a project attached. Its goal is to spawn a sleeping child > process which shall detach from the Gambas process. This way, the process > can run in the background and even survive the Gambas parent process. In > fact, Gambas doesn't even know that the process exists (because it detached > from the shell which was started by the Gambas program into a new session > and the shell died) so Gambas doesn't want to wait for the started child to > terminate. > > In the example, the called program is "sleep". Normally, this would be a > server or something which is intended to survive the starting program. > > The second goal of the program is, whenever the sleep program crashes, to > restart it. To this end, it creates an instance of a shell script. Let $PID > denote the PID of the sleep process: > > while test -d /proc/$PID; sleep 1; done > > This process will terminate as soon as the sleep process terminated. As we > can safely keep this shell script in a Process object (it is not meant to > survive the Gambas program), we can use its Kill event to detect the > detached sleep process' termination and start a new sleep accordingly. > > Enough of the theory. I found two reliable ways to crash the interpreter: > > 1) Segfault. > 1. Start the attached program; > 2. Open a terminal and run "pkill sleep" (or kill the sleep process some > other way). You should see the program reacting on the external crash; > it spawns a new sleep process and documents that with Debug output; > 3. Re-run "pkill sleep". You should see a Segfault. > > 2) Oops. > 1. Start the attached program; > 2. Hit enter in the console window to initiate a "controlled kill" by the > project itself; > 3. Repeat Step 2; > 4. Open a terminal and run "pkill sleep" to provoke an external kill; > 5. Repeat Step 2. The oops is about a Bad file descriptor when writing > signal #17 (SIGCHLD) to the signal pipe. > > Actually, the 2nd way doesn't seem too reliable as I *sometimes* get a > segfault with this method, too. These two things must be related somewhere. > > Hope this helps. Oh, and maybe I should note that I circumvented these crashes in my working project by replacing the shell script while test -d /proc/$PID; sleep 1; done by a Gambas Timer Public Sub Timer_Timer() If Not Exist("/proc" &/ Str$($iPid)) Then HandleCrash() End So it has certainly something to do with that very Process object being messed around with (yes, I admit it)... Regards, Tobi From pinozollo at ...626... Sat Aug 10 23:04:09 2013 From: pinozollo at ...626... (Pino Zollo) Date: Sat, 10 Aug 2013 17:04:09 -0400 Subject: [Gambas-user] Help Gambas2 on Mint15 Message-ID: <5206AAC9.3000203@...626...> Hi Benoit, Is there any chance to have qt4 suported on Gambas2 2.24.0 ? I really need to run Gambas2 old aplications on Mint15 MATE..... I have tryed to install qt3, but without luck. Merci Pino From gambas at ...1... Sun Aug 11 00:30:51 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 11 Aug 2013 00:30:51 +0200 Subject: [Gambas-user] Help Gambas2 on Mint15 In-Reply-To: <5206AAC9.3000203@...626...> References: <5206AAC9.3000203@...626...> Message-ID: <5206BF1B.8020907@...1...> Le 10/08/2013 23:04, Pino Zollo a ?crit : > Hi Benoit, > > Is there any chance to have qt4 suported on Gambas2 2.24.0 ? > > I really need to run Gambas2 old aplications on Mint15 MATE..... > > I have tryed to install qt3, but without luck. > > Merci > > > Pino > No chance. There is no development on Gambas 2 anymore. Regards, -- Beno?t Minisini From taboege at ...626... Sun Aug 11 13:33:10 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Aug 2013 13:33:10 +0200 Subject: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause Message-ID: <20130811113310.GC620@...2774...> Hi Benoit, what bothers me from time to time is that With is *so* handy but can't be used to access Array or Collection elements like: With hCollection ' or hArray Print ["key"] ' or Print [0] End With I see that this would be a syntactical problem because ["key"] and [0] may equivalently well be recognised as inline arrays. But we have another option, right? There is still the ! operator which is unambiguous: With hCollection Print !key End With Should be no problem if implemented. What do you think? And while we are at it, couldn't the ! operator at the same time get the capability to support integers, so that the above will also work with an array: With hArray Print !0 End With Regards, Tobi From introlinux at ...626... Sun Aug 11 14:45:50 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sun, 11 Aug 2013 14:45:50 +0200 Subject: [Gambas-user] GAMBAS PATH Message-ID: Hi, Beno?t, would reconsider the possibility to run GAMBAS from a given path with a environment variable or another method? It would be a great help to run programs made with older versions of GAMBAS in new systems that do not have in its repositories older versions of GAMBAS. It would be useful to run programs made in GAMBAS in home directory too without root permissions. And you could play with several versions only copying necessary files in the work folder. And another advantage is that you can be sure that the user will have just the version your program need =:-) Thanks. From taboege at ...626... Sun Aug 11 14:56:20 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Aug 2013 14:56:20 +0200 Subject: [Gambas-user] GAMBAS PATH In-Reply-To: References: Message-ID: <20130811125619.GA21867@...2774...> On Sun, 11 Aug 2013, Antonio S?nchez wrote: > Hi, Beno?t, would reconsider the possibility to run GAMBAS from a given > path with a environment variable or another method? It would be a great > help to run programs made with older versions of GAMBAS in new systems that > do not have in its repositories older versions of GAMBAS. > > It would be useful to run programs made in GAMBAS in home directory too > without root permissions. > > And you could play with several versions only copying necessary files in > the work folder. > > And another advantage is that you can be sure that the user will have just > the version your program need =:-) > I've hacked around in the interpreter some time ago to allow just that. I'm not sure if I succeeded but give me some time and I'll try to dig the stuff out again. Regards, Tobi From vuott at ...325... Sun Aug 11 16:15:24 2013 From: vuott at ...325... (Ru Vuott) Date: Sun, 11 Aug 2013 15:15:24 +0100 (BST) Subject: [Gambas-user] Error in revision 5785 ! Message-ID: <1376230524.99216.YahooMailBasic@...3065...> Hello, updating my Gambas-3 with revision 5785 I obtained this error: make[3]: Entering directory `/home/vuott/trunk/main' Making all in gbc make[4]: Entering directory `/home/vuott/trunk/main/gbc' CC gbc3-gbc.o CCLD gbc3 /bin/bash: ../libtool: No such file or directory make[4]: *** [gbc3] Error 127 make[4]: Leaving directory `/home/vuott/trunk/main/gbc' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/vuott/trunk/main' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/vuott/trunk/main' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/vuott/trunk' make: *** [all] Error 2 Regards vuott From taboege at ...626... Sun Aug 11 16:20:59 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Aug 2013 16:20:59 +0200 Subject: [Gambas-user] GAMBAS PATH In-Reply-To: <20130811125619.GA21867@...2774...> References: <20130811125619.GA21867@...2774...> Message-ID: <20130811142059.GB21867@...2774...> On Sun, 11 Aug 2013, Tobias Boege wrote: > On Sun, 11 Aug 2013, Antonio S?nchez wrote: > > Hi, Beno?t, would reconsider the possibility to run GAMBAS from a given > > path with a environment variable or another method? It would be a great > > help to run programs made with older versions of GAMBAS in new systems that > > do not have in its repositories older versions of GAMBAS. > > > > It would be useful to run programs made in GAMBAS in home directory too > > without root permissions. > > > > And you could play with several versions only copying necessary files in > > the work folder. > > > > And another advantage is that you can be sure that the user will have just > > the version your program need =:-) > > > > I've hacked around in the interpreter some time ago to allow just that. I'm > not sure if I succeeded but give me some time and I'll try to dig the stuff > out again. > Okay, the attached patch seems to work. When applied, gbx3 will first look at the environment variable GAMBAS_ROOT. If it is defined, non-empty, the contained path exists and is a directory, then this is taken as the Gambas installation directory for the duration of the program. All components and resources are located relative to that directory instead of the normal /usr then (of course only if the /usr is not hard-coded). My proof was a gb.ncurses project as simple as: --- Public Sub Main() Window.Print("hello") End --- I installed the patched interpreter to /usr as usual. Then I made a simple modification to gb.ncurses which adds ", man" to each printed string. I then installed the modified gb.ncurses along with the interpreter like $ make install DESTDIR=~ which creates a usr/ directory under ~/ with the alternate Gambas installation. $ gbx3 leads to the expected output "hello" whereas $ GAMBAS_ROOT=~/usr gbx3 gives me "hello, man". So this works at least with components. Note that the interpreter which runs is still the one under /usr. Only the components it loads are from ~/usr. You may run into compatibility issues of you are not cautious with this patch. The best thing would be to set your PATH to prefer the interpreter which belongs to the components you want to run, i.e. in the above case # Also take the gbx3 from ~/usr $ PATH=~/usr/bin:$PATH GAMBAS_ROOT=~/usr gbx3 A quick grep looks also good: the /usr path doesn't seem to hang anywhere hardcoded: $ grep /usr -R * --include=*.c --include=*.cpp --include=*.h --exclude=gb_common.h gb.httpd/src/thttpd.h://#define CGI_PATH "/usr/local/bin:/usr/ucb:/bin:/usr/bin" gb.httpd/src/thttpd.h:#define CGI_LD_LIBRARY_PATH "/usr/local/lib:/usr/lib" gb.qt4/src/main.cpp: && !_translator->load(QString("qt_") + locale, QString("/usr/lib/qt4/translations")) gb.qt4/src/main.cpp: && !_translator->load(QString("qt_") + locale, QString("/usr/share/qt4/translations"))); main/gbx/gbx_archive.c: if (!path) path = exist_library("/usr/bin", arch->name); main/share/gb_component.h:#define GAMBAS_LINK_PATH "/usr/bin/gbx" GAMBAS_VERSION_STRING main/gbc/gbc_archive.c: fputs("#! /usr/bin/env gbr" GAMBAS_VERSION_STRING "\n", arch_file); But seriously, I'd be cautious... How likely can a hardcoded path sneak in and break compatibility - or something that I haven't thought of! If you change the grep to include also components written in Gambas and the IDE (--include=*.module --include=*.class), the you'll find quite some hardcoded /usr paths! Anyway, have fun with it as long as it doesn't break too much :-) I'll be writing this up as an article for the adventurous Gambas users... The patch should apply against the latest revision. Regards, Tobi -------------- next part -------------- Index: main/share/gb_file_temp.h =================================================================== --- main/share/gb_file_temp.h (revision 5776) +++ main/share/gb_file_temp.h (working copy) @@ -1130,7 +1130,21 @@ const char *FILE_find_gambas(void) { const char *path; + static char buf[sizeof(file_buffer)]; + path = getenv("GAMBAS_ROOT"); + if (path && *path) { + if (!FILE_is_dir(path)) { + fprintf(stderr, "WARNING: GAMBAS_ROOT defined but " + "not a directory. Ignoring.\n"); + goto ignore; + } + path = FILE_cat(path, "bin/gbx" GAMBAS_VERSION_STRING, NULL); + strcpy(buf, file_buffer); + return buf; + } +ignore: + if (FILE_exist(GAMBAS_LINK_PATH)) { path = FILE_readlink(GAMBAS_LINK_PATH); From taboege at ...626... Sun Aug 11 16:47:02 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Aug 2013 16:47:02 +0200 Subject: [Gambas-user] GAMBAS PATH In-Reply-To: References: Message-ID: <20130811144702.GD21867@...2774...> On Sun, 11 Aug 2013, Antonio S?nchez wrote: > Hi, Beno?t, would reconsider the possibility to run GAMBAS from a given > path with a environment variable or another method? It would be a great > help to run programs made with older versions of GAMBAS in new systems that > do not have in its repositories older versions of GAMBAS. > > It would be useful to run programs made in GAMBAS in home directory too > without root permissions. > > And you could play with several versions only copying necessary files in > the work folder. > > And another advantage is that you can be sure that the user will have just > the version your program need =:-) > Oh, and you may want to look at the official solution[0] Benoit supposed earlier this year. Regards, Tobi [0] http://sourceforge.net/mailarchive/message.php?msg_id=30551350 From vuott at ...325... Sun Aug 11 17:06:22 2013 From: vuott at ...325... (Ru Vuott) Date: Sun, 11 Aug 2013 16:06:22 +0100 (BST) Subject: [Gambas-user] Error in revision 5785, countermand: NO problem ! Message-ID: <1376233582.53098.YahooMailBasic@...3070...> Hello, I apologize for the false alarm. No problem .... ehmmm I had omitted to launch the line: ~ $ ./configure -C So, No problems in revision 5785. Excuse me. regards vuott From introlinux at ...626... Sun Aug 11 17:54:31 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sun, 11 Aug 2013 17:54:31 +0200 Subject: [Gambas-user] GAMBAS PATH In-Reply-To: <20130811144702.GD21867@...2774...> References: <20130811144702.GD21867@...2774...> Message-ID: Thanks for your feedback, Tobias. If the interpreter is the same, it is not useful for the purposes mentioned above. If I understand correctly, your patch gets to locate your program components in other place. But it is not useful in a system with a diferent version of gambas than yours. Gambas use 3 paths: /usr/bin, /usr/share/gambas and /usr/lib/gambas It would be great if you could create a directory in a flash drive, for example: .../gambas342/share/ .../gambas342/lib/ .../gambas343/bin/ ...copy all files and take that particular version of GAMBAS anywhere and with a GB_PATH=".../gambas342/" before your program, it know where look for GAMBAS interpreter. If you exclude examples, you'd have a portable version of gambas below 15Mb. And you have the security your program runs everywhere and for a long time. Now, the policy for programs made with GAMBAS is a sad "upgrade or die" and it is a real shame you can't run programs because the version of your distribution is too low or too high for your program. 2013/8/11 Tobias Boege > On Sun, 11 Aug 2013, Antonio S?nchez wrote: > > Hi, Beno?t, would reconsider the possibility to run GAMBAS from a given > > path with a environment variable or another method? It would be a great > > help to run programs made with older versions of GAMBAS in new systems > that > > do not have in its repositories older versions of GAMBAS. > > > > It would be useful to run programs made in GAMBAS in home directory too > > without root permissions. > > > > And you could play with several versions only copying necessary files in > > the work folder. > > > > And another advantage is that you can be sure that the user will have > just > > the version your program need =:-) > > > > Oh, and you may want to look at the official solution[0] Benoit supposed > earlier this year. > > Regards, > Tobi > > [0] http://sourceforge.net/mailarchive/message.php?msg_id=30551350 > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Sun Aug 11 18:22:19 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Aug 2013 18:22:19 +0200 Subject: [Gambas-user] GAMBAS PATH In-Reply-To: References: <20130811144702.GD21867@...2774...> Message-ID: <20130811162219.GE21867@...2774...> On Sun, 11 Aug 2013, Antonio S?nchez wrote: > Thanks for your feedback, Tobias. > If the interpreter is the same, it is not useful for the purposes mentioned > above. > If I understand correctly, your patch gets to locate your program > components in other place. But it is not useful in a system with a diferent > version of gambas than yours. > > Gambas use 3 paths: /usr/bin, /usr/share/gambas and /usr/lib/gambas > > It would be great if you could create a directory in a flash drive, for > example: > > .../gambas342/share/ > .../gambas342/lib/ > .../gambas343/bin/ > > ...copy all files and take that particular version of GAMBAS anywhere and > with a GB_PATH=".../gambas342/" before your program, it know where look for > GAMBAS interpreter. If you exclude examples, you'd have a portable version > of gambas below 15Mb. And you have the security your program runs > everywhere and for a long time. > Now, the policy for programs made with GAMBAS is a sad "upgrade or die" and > it is a real shame you can't run programs because the version of your > distribution is too low or too high for your program. > If you apply that patch and export GAMBAS_ROOT=.../gambas342/, your gbx3 will not use /usr but .../gambas342 instead to search for its stuff (most of its stuff). I think this is what you wanted, no? As I said, I don't think that you can create a well-behaving portable Gambas distribution as there are some hardcoded uses of the /usr prefix in the source code of at least the IDE. These portions will likely fail when you execute your portable Gambas in an environment where no normal Gambas is installed. Regards, Tobi From introlinux at ...626... Sun Aug 11 18:36:40 2013 From: introlinux at ...626... (=?ISO-8859-1?Q?Antonio_S=E1nchez?=) Date: Sun, 11 Aug 2013 18:36:40 +0200 Subject: [Gambas-user] GAMBAS PATH In-Reply-To: <20130811162219.GE21867@...2774...> References: <20130811144702.GD21867@...2774...> <20130811162219.GE21867@...2774...> Message-ID: I'm going to try your patch. I want to know what happens if you don't have installed gambas in the system and you use only your patched version in other places. 2013/8/11 Tobias Boege > On Sun, 11 Aug 2013, Antonio S?nchez wrote: > > Thanks for your feedback, Tobias. > > If the interpreter is the same, it is not useful for the purposes > mentioned > > above. > > If I understand correctly, your patch gets to locate your program > > components in other place. But it is not useful in a system with a > diferent > > version of gambas than yours. > > > > Gambas use 3 paths: /usr/bin, /usr/share/gambas and /usr/lib/gambas > > > > It would be great if you could create a directory in a flash drive, for > > example: > > > > .../gambas342/share/ > > .../gambas342/lib/ > > .../gambas343/bin/ > > > > ...copy all files and take that particular version of GAMBAS anywhere and > > with a GB_PATH=".../gambas342/" before your program, it know where look > for > > GAMBAS interpreter. If you exclude examples, you'd have a portable > version > > of gambas below 15Mb. And you have the security your program runs > > everywhere and for a long time. > > Now, the policy for programs made with GAMBAS is a sad "upgrade or die" > and > > it is a real shame you can't run programs because the version of your > > distribution is too low or too high for your program. > > > > If you apply that patch and export GAMBAS_ROOT=.../gambas342/, your gbx3 > will not use /usr but .../gambas342 instead to search for its stuff (most > of > its stuff). I think this is what you wanted, no? > > As I said, I don't think that you can create a well-behaving portable > Gambas > distribution as there are some hardcoded uses of the /usr prefix in the > source code of at least the IDE. These portions will likely fail when you > execute your portable Gambas in an environment where no normal Gambas is > installed. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mmcg29440 at ...3163... Sun Aug 11 21:27:10 2013 From: mmcg29440 at ...3163... (Marty) Date: Sun, 11 Aug 2013 15:27:10 -0400 Subject: [Gambas-user] How to share one datasource across two forms? Message-ID: <5207E58E.1070906@...3163...> Hello, First let me say thank you to all those who have answered my past posts. As I get deeper into programming databases with Gambas, more questions come out. I have two forms which show data from the same table. The data is split up so that the user interface is less confusing. My first question is how can I show the data on form 2 when the datasource is on form 1? I'd like to use a datacombo box to provide input to a field but, get the list from another table. Is this possible? One more. I also need a data aware checkbox. I want to save the logical value of the checkbox to the datasource. Any suggestions? I'm used to MS VB and data access there is quite different. In many respects Gambas has a much simpler approach. Thanks, Marty From ea7dfh at ...2382... Mon Aug 12 00:01:13 2013 From: ea7dfh at ...2382... (Jesus) Date: Mon, 12 Aug 2013 00:01:13 +0200 Subject: [Gambas-user] GAMBAS PATH In-Reply-To: References: Message-ID: <520809A9.1080300@...2382...> El 11/08/13 14:45, Antonio S?nchez escribi?: > Hi, Beno?t, would reconsider the possibility to run GAMBAS from a given > path with a environment variable or another method? It would be a great > help to run programs made with older versions of GAMBAS in new systems that > do not have in its repositories older versions of GAMBAS. > > It would be useful to run programs made in GAMBAS in home directory too > without root permissions. > > And you could play with several versions only copying necessary files in > the work folder. > > And another advantage is that you can be sure that the user will have just > the version your program need =:-) > > > Thanks. Some time ago, I was playing with gambas2 and the GB_DIR environment variable. I was able to start my programs from anywhere in the mounted storage units. However, since then, I haven't used GB_DIR anymore, but I guess Benoit could explain here if this is still a valid option for the purpose. In the meantime, Antonio, you could check some threads in the Spanish forum, perhaps that will give you some clues. http://www.gambas-es.org/viewtopic.php?p=1388#p1388 Regards -- Jesus Guardon From gambas at ...1... Mon Aug 12 05:14:49 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 12 Aug 2013 05:14:49 +0200 Subject: [Gambas-user] Fwd: A Gambas component based on Clipper library In-Reply-To: <520843D4.5030103@...1...> References: <520843D4.5030103@...1...> Message-ID: <52085329.3080608@...1...> -------- Message original -------- Sujet: A Gambas component based on Clipper library Date : Mon, 12 Aug 2013 04:09:24 +0200 De : Beno?t Minisini Pour : awj1958 at ...626... Hi, I wanted to thank you a lot for your great Clipper library. I have just used it in Gambas, a sort of better "Linux Visual Basic" if you don't know it (http://gambas.sourceforge.net) for implementing a component that allows to offset polygons. Now I can offset polygons in the Gambas IDE image editor! (See screenshot). I hope that your license is compatible with the Gambas GPL v2. Apparently yes, just tell me if I am wrong. Best regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: offset.jpg Type: image/jpeg Size: 253204 bytes Desc: not available URL: From kevinfishburne at ...1887... Mon Aug 12 06:35:46 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Mon, 12 Aug 2013 00:35:46 -0400 Subject: [Gambas-user] segfault with insanely large array of structures Message-ID: <52086622.2080405@...1887...> I know this code is horrible (it will be changed), but the following declarations and procedure raise a signal 11 and populate some of the array properties with non-zero values: ' Plan structures and array (server). Public Struct PlanBlockStructure ' Structure containing individual block data. Created As Boolean ' If block PWO has already been created. Skin As Short ' Block skin. HeightCurrent As Single ' Current height in feet of block. HeightTarget As Single ' Target height in feet of block. Grading As Boolean ' If grading is required. WorldX As Integer ' Hard coordinates of block once construction has been initiated. WorldY As Integer ' Hard coordinates of block once construction has been initiated. End Struct Public Struct PlanStructure ' Structure containing individual plan data. Block[300, 300] As Struct PlanBlockStructure Stage As Byte ' Current build stage (0 = design, 1 = clear and grade, 2 = wall construction, 3 = roofing construction, 4 = flooring construction, 5 = finished/maintenance). CurrentX As Short ' Current position in block array. CurrentY As Short ' Current position in block array. GradeTo As Single ' Elevation in feet to grade landscape to. CenterX As Integer ' Build site center coordinate. CenterY As Integer ' Build site center coordinate. End Struct Public Plan[2000] As Struct PlanStructure ' Architecutral plans. ' Plan maintenance (server). Public LastTime As Single = Timer ' Time last architectural plan was maintained. Public Sub Plan_Maintenance() ' Maintain architectural plans. ' General declarations. Dim Index As Short ' Plan to maintain. Dim Elevation As Integer ' Elevation of current tile in inches. Dim Excavation As Integer ' Number of inches to excavate to match specified grade. ' Check if plans are due to be updated. If Timer < (LastTime + 0.1) Then Return LastTime = Timer ' Cycle through plans. For Index = 0 To 1999 ' Check if plan stage requires maintenance. If Plan[Index].Stage <> 0 Then ' Check plan stage. Select Case Plan[Index].Stage ' Clear and grade. Case 1 ' Advance position in plan to next position requiring grading. Do Until Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].Grading ' Increment X position in grid. Plan[Index].CurrentX += 1 ' Check if X position needs wrapping. If Plan[Index].CurrentX >= 300 Then ' Wrap X position. Plan[Index].CurrentX = 0 ' Increment Y position in grid. Plan[Index].CurrentY += 1 ' Check if Y position needs wrapping. If Plan[Index].CurrentY >= 300 Then ' Advance to next stage. Plan[Index].Stage += 1 Endif Endif Loop ' Clear snow and vegetation depths. Tiles.Depth_Assign_Snow(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY, 0) Tiles.Depth_Assign_Vegetation(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY, 0) ' Calculate hard elevation. Elevation = Tiles.Depth_Get_Hard(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY) ' Calculate excavation amount. Excavation = Elevation - Plan[Index].GradeTo * 12 ' Grade landscape. Tiles.Excavate(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY, Excavation, True) ' Mark block as graded. Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].Grading = False ' Wall construction. Case 2 ' Roofing construction. Case 3 ' Flooring construction. Case 4 ' Finished/maintenance. Case 5 End Select Endif Next End ' END OF CODE I attached the above code for better readability. It's notable that if the For...Next loop only addresses the first few indices of Plan[] that it works, which leads me to believe the array of structures is improperly allocated, probably due to its ridiculous size. The fact that some of the array property values read as non-zero before being assigned makes me think their pointers are pointing to out-of-process RAM being used by something else entirely. I suck at low-level programming so I'm just speculating ignorantly, sorry. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 -------------- next part -------------- ' Plan structures and array (server). Public Struct PlanBlockStructure ' Structure containing individual block data. Created As Boolean ' If block PWO has already been created. Skin As Short ' Block skin. HeightCurrent As Single ' Current height in feet of block. HeightTarget As Single ' Target height in feet of block. Grading As Boolean ' If grading is required. WorldX As Integer ' Hard coordinates of block once construction has been initiated. WorldY As Integer ' Hard coordinates of block once construction has been initiated. End Struct Public Struct PlanStructure ' Structure containing individual plan data. Block[300, 300] As Struct PlanBlockStructure Stage As Byte ' Current build stage (0 = design, 1 = clear and grade, 2 = wall construction, 3 = roofing construction, 4 = flooring construction, 5 = finished/maintenance). CurrentX As Short ' Current position in block array. CurrentY As Short ' Current position in block array. GradeTo As Single ' Elevation in feet to grade landscape to. CenterX As Integer ' Build site center coordinate. CenterY As Integer ' Build site center coordinate. End Struct Public Plan[2000] As Struct PlanStructure ' Architecutral plans. ' Plan maintenance (server). Public LastTime As Single = Timer ' Time last architectural plan was maintained. Public Sub Plan_Maintenance() ' Maintain architectural plans. ' General declarations. Dim Index As Short ' Plan to maintain. Dim Elevation As Integer ' Elevation of current tile in inches. Dim Excavation As Integer ' Number of inches to excavate to match specified grade. ' Check if plans are due to be updated. If Timer < (LastTime + 0.1) Then Return LastTime = Timer ' Cycle through plans. For Index = 0 To 1999 ' Check if plan stage requires maintenance. If Plan[Index].Stage <> 0 Then ' Check plan stage. Select Case Plan[Index].Stage ' Clear and grade. Case 1 ' Advance position in plan to next position requiring grading. Do Until Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].Grading ' Increment X position in grid. Plan[Index].CurrentX += 1 ' Check if X position needs wrapping. If Plan[Index].CurrentX >= 300 Then ' Wrap X position. Plan[Index].CurrentX = 0 ' Increment Y position in grid. Plan[Index].CurrentY += 1 ' Check if Y position needs wrapping. If Plan[Index].CurrentY >= 300 Then ' Advance to next stage. Plan[Index].Stage += 1 Endif Endif Loop ' Clear snow and vegetation depths. Tiles.Depth_Assign_Snow(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY, 0) Tiles.Depth_Assign_Vegetation(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY, 0) ' Calculate hard elevation. Elevation = Tiles.Depth_Get_Hard(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY) ' Calculate excavation amount. Excavation = Elevation - Plan[Index].GradeTo * 12 ' Grade landscape. Tiles.Excavate(Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].WorldY, Excavation, True) ' Mark block as graded. Plan[Index].Block[Plan[Index].CurrentX, Plan[Index].CurrentY].Grading = False ' Wall construction. Case 2 ' Roofing construction. Case 3 ' Flooring construction. Case 4 ' Finished/maintenance. Case 5 End Select Endif Next End From taboege at ...626... Mon Aug 12 11:29:32 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 12 Aug 2013 11:29:32 +0200 Subject: [Gambas-user] segfault with insanely large array of structures In-Reply-To: <52086622.2080405@...1887...> References: <52086622.2080405@...1887...> Message-ID: <20130812092932.GA682@...2774...> On Mon, 12 Aug 2013, Kevin Fishburne wrote: > I know this code is horrible (it will be changed), but the following > declarations and procedure raise a signal 11 and populate some of > the array properties with non-zero values: > > ' Plan structures and array (server). > Public Struct PlanBlockStructure ' Structure containing individual > block data. > Created As Boolean ' If block PWO has already been created. > Skin As Short ' Block skin. > HeightCurrent As Single ' Current height in feet of block. > HeightTarget As Single ' Target height in feet of block. > Grading As Boolean ' If grading is required. > WorldX As Integer ' Hard coordinates of block once > construction has been initiated. > WorldY As Integer ' Hard coordinates of block once > construction has been initiated. > End Struct > Public Struct PlanStructure ' Structure containing individual plan data. > Block[300, 300] As Struct PlanBlockStructure > Stage As Byte ' Current build stage (0 = design, 1 = clear > and grade, 2 = wall construction, 3 = roofing construction, 4 = > flooring construction, 5 = finished/maintenance). > CurrentX As Short ' Current position in block array. > CurrentY As Short ' Current position in block array. > GradeTo As Single ' Elevation in feet to grade landscape to. > CenterX As Integer ' Build site center coordinate. > CenterY As Integer ' Build site center coordinate. > End Struct > Public Plan[2000] As Struct PlanStructure ' Architecutral plans. > > ' Plan maintenance (server). > Public LastTime As Single = Timer ' Time last architectural plan was > maintained. > > Public Sub Plan_Maintenance() > > ' Maintain architectural plans. > > ' General declarations. > Dim Index As Short ' Plan to maintain. > Dim Elevation As Integer ' Elevation of current tile in inches. > Dim Excavation As Integer ' Number of inches to excavate to match > specified grade. > > ' Check if plans are due to be updated. > If Timer < (LastTime + 0.1) Then Return > LastTime = Timer > > ' Cycle through plans. > For Index = 0 To 1999 > > ' Check if plan stage requires maintenance. > If Plan[Index].Stage <> 0 Then > > ' Check plan stage. > Select Case Plan[Index].Stage > > ' Clear and grade. > Case 1 > ' Advance position in plan to next position requiring grading. > Do Until Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].Grading > ' Increment X position in grid. > Plan[Index].CurrentX += 1 > ' Check if X position needs wrapping. > If Plan[Index].CurrentX >= 300 Then > ' Wrap X position. > Plan[Index].CurrentX = 0 > ' Increment Y position in grid. > Plan[Index].CurrentY += 1 > ' Check if Y position needs wrapping. > If Plan[Index].CurrentY >= 300 Then > ' Advance to next stage. > Plan[Index].Stage += 1 > Endif > Endif > Loop > ' Clear snow and vegetation depths. > Tiles.Depth_Assign_Snow(Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldX, > Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldY, 0) > Tiles.Depth_Assign_Vegetation(Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldX, > Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldY, 0) > ' Calculate hard elevation. > Elevation = > Tiles.Depth_Get_Hard(Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldX, > Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldY) > ' Calculate excavation amount. > Excavation = Elevation - Plan[Index].GradeTo * 12 > ' Grade landscape. > Tiles.Excavate(Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldX, > Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldY, Excavation, True) > ' Mark block as graded. > Plan[Index].Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].Grading = False > > ' Wall construction. > Case 2 > > ' Roofing construction. > Case 3 > > ' Flooring construction. > Case 4 > > ' Finished/maintenance. > Case 5 > > > End Select > > Endif > > Next > > End > > ' END OF CODE > > I attached the above code for better readability. It's notable that > if the For...Next loop only addresses the first few indices of > Plan[] that it works, which leads me to believe the array of > structures is improperly allocated, probably due to its ridiculous > size. The fact that some of the array property values read as > non-zero before being assigned makes me think their pointers are > pointing to out-of-process RAM being used by something else > entirely. I suck at low-level programming so I'm just speculating > ignorantly, sorry. > Have you tried to calculate your memory needs? Here's my attempt (the occupied memory from Plan[2000] if we're just counting the Gambas variables inside - if there was no memory overhead for Gambas variable maintenance structures and other things): $ pcalc "DEC=1 ((1+2+4+4+1+4+4)*300^2+1+2+2+4+4+4)*2000/1024^3" 3.35279 You are allocating 3.3 GiB... Well, this is particularly funny if you think about it: _In case_ Gambas does not check a NULL return from malloc() somewhere because this allocation fails, you could actually access valid memory with a large enough offset into your array :-) However, you wouldn't be able to access Plan[0] or generally low offsets. So this doesn't seem to be the case here. If the allocation was successful, it is also impossible, no matter how large the array is, that you get to read something you're not supposed to read - at least on Linux. A backtrace should clear this up, I think. Regards, Tobi From allegfede at ...626... Mon Aug 12 12:08:02 2013 From: allegfede at ...626... (Federico Allegretti) Date: Mon, 12 Aug 2013 12:08:02 +0200 Subject: [Gambas-user] drag & drop in a tableview cell Message-ID: [ENG] i made a quick test: http://sourceforge.net/projects/otva/files/2013-08-12_dragdrop_troubles/scheduler-0.0.6.tar.gz/download to check how to make drag&drop in a gridview/tableview cell. both have the .finditem method that returns the object item overed by mouse or a NULL value ... But nor tableview nor gridview have a .ITEM property and gambas ide raises an error .... strange things appening .... gambas version 3.4.2 on an ubuntu 12.04 machine [ITA] fatto un rapido test: http://sourceforge.net/projects/otva/files/2013-08-12_dragdrop_troubles/scheduler-0.0.6.tar.gz/download in pratica ne tableview ne gridview hanno FIGLI, benche' entrambe espongano il metodo .findchild lo stesso dovrebbe restituire NULL (se non e' stato trovato alcun figlio) oppure il puntatore as .ITEM ... ma ITEM non e' un metodo supportato da gridview o tableview ..... MHHHHH strana cosa ....... -- Messagenet VOIP: 5338759 My blogs: http://altri-media.blogspot.com/ http://subbaqquerie.blogspot.com/ YouTube Channel: AllegFede VIMEO HD videos: http://www.vimeo.com/user1912745/videos From ivan-kern at ...308... Mon Aug 12 13:39:05 2013 From: ivan-kern at ...308... (Ivan Kern) Date: Mon, 12 Aug 2013 13:39:05 +0200 Subject: [Gambas-user] Microsoft Access database Message-ID: <003601ce9750$90a71550$b1f53ff0$@freenet.de> Hi, Is it possible to connect Microsoft access database with Gambas? If yea, please, an example. Best regards, Ivan From Gambas at ...1950... Mon Aug 12 14:26:54 2013 From: Gambas at ...1950... (Caveat) Date: Mon, 12 Aug 2013 14:26:54 +0200 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <003601ce9750$90a71550$b1f53ff0$@freenet.de> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> Message-ID: <5208D48E.7000709@...1950...> Not that I know of, but I have written a system to convert MSAccess databases to MySQL/postgresql/MSSQLServer. It's written in java and uses the jackcess library (http://jackcess.sourceforge.net/). I also wrote a server which makes calls to the jackcess library based on simple text commands, so in theory you could make a basic client in Gambas... Let's first see if anyone has already found a way to talk to access dbs directly in Gambas... Kind regards, Caveat On 12/08/13 13:39, Ivan Kern wrote: > > > Hi, > > > > > > Is it possible to connect Microsoft access database with Gambas? > > If yea, please, an example. > > > > Best regards, > > Ivan > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rmorgan62 at ...626... Mon Aug 12 14:41:29 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 12 Aug 2013 05:41:29 -0700 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <5208D48E.7000709@...1950...> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> Message-ID: I would think you should be able to use the ODBC component to connect ot MSAccess? Check this out: http://office.microsoft.com/en-us/access-help/administer-odbc-data-sources-HA010275550.aspx And this: http://gambasdoc.org/help/doc/odbc?en&v3 On Mon, Aug 12, 2013 at 5:26 AM, Caveat wrote: > Not that I know of, but I have written a system to convert MSAccess > databases to MySQL/postgresql/MSSQLServer. It's written in java and > uses the jackcess library (http://jackcess.sourceforge.net/). > > I also wrote a server which makes calls to the jackcess library based on > simple text commands, so in theory you could make a basic client in > Gambas... > > Let's first see if anyone has already found a way to talk to access dbs > directly in Gambas... > > Kind regards, > Caveat > > On 12/08/13 13:39, Ivan Kern wrote: > > > > > > Hi, > > > > > > > > > > > > Is it possible to connect Microsoft access database with Gambas? > > > > If yea, please, an example. > > > > > > > > Best regards, > > > > Ivan > > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From jussi.lahtinen at ...626... Mon Aug 12 16:31:44 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 12 Aug 2013 17:31:44 +0300 Subject: [Gambas-user] segfault with insanely large array of structures In-Reply-To: <52086622.2080405@...1887...> References: <52086622.2080405@...1887...> Message-ID: Can you make this crash code into runnable project? Jussi On Mon, Aug 12, 2013 at 7:35 AM, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > I know this code is horrible (it will be changed), but the following > declarations and procedure raise a signal 11 and populate some of the array > properties with non-zero values: > > ' Plan structures and array (server). > Public Struct PlanBlockStructure ' Structure containing individual block > data. > Created As Boolean ' If block PWO has already been created. > Skin As Short ' Block skin. > HeightCurrent As Single ' Current height in feet of block. > HeightTarget As Single ' Target height in feet of block. > Grading As Boolean ' If grading is required. > WorldX As Integer ' Hard coordinates of block once construction > has been initiated. > WorldY As Integer ' Hard coordinates of block once construction > has been initiated. > End Struct > Public Struct PlanStructure ' Structure containing individual plan data. > Block[300, 300] As Struct PlanBlockStructure > Stage As Byte ' Current build stage (0 = design, 1 = clear and > grade, 2 = wall construction, 3 = roofing construction, 4 = flooring > construction, 5 = finished/maintenance). > CurrentX As Short ' Current position in block array. > CurrentY As Short ' Current position in block array. > GradeTo As Single ' Elevation in feet to grade landscape to. > CenterX As Integer ' Build site center coordinate. > CenterY As Integer ' Build site center coordinate. > End Struct > Public Plan[2000] As Struct PlanStructure ' Architecutral plans. > > ' Plan maintenance (server). > Public LastTime As Single = Timer ' Time last architectural plan was > maintained. > > Public Sub Plan_Maintenance() > > ' Maintain architectural plans. > > ' General declarations. > Dim Index As Short ' Plan to maintain. > Dim Elevation As Integer ' Elevation of current tile in inches. > Dim Excavation As Integer ' Number of inches to excavate to match > specified grade. > > ' Check if plans are due to be updated. > If Timer < (LastTime + 0.1) Then Return > LastTime = Timer > > ' Cycle through plans. > For Index = 0 To 1999 > > ' Check if plan stage requires maintenance. > If Plan[Index].Stage <> 0 Then > > ' Check plan stage. > Select Case Plan[Index].Stage > > ' Clear and grade. > Case 1 > ' Advance position in plan to next position requiring grading. > Do Until Plan[Index].Block[Plan[Index].**CurrentX, > Plan[Index].CurrentY].Grading > ' Increment X position in grid. > Plan[Index].CurrentX += 1 > ' Check if X position needs wrapping. > If Plan[Index].CurrentX >= 300 Then > ' Wrap X position. > Plan[Index].CurrentX = 0 > ' Increment Y position in grid. > Plan[Index].CurrentY += 1 > ' Check if Y position needs wrapping. > If Plan[Index].CurrentY >= 300 Then > ' Advance to next stage. > Plan[Index].Stage += 1 > Endif > Endif > Loop > ' Clear snow and vegetation depths. > Tiles.Depth_Assign_Snow(Plan[**Index].Block[Plan[Index].**CurrentX, > Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].**CurrentX, > Plan[Index].CurrentY].WorldY, 0) > Tiles.Depth_Assign_Vegetation(**Plan[Index].Block[Plan[Index].**CurrentX, > Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].**CurrentX, > Plan[Index].CurrentY].WorldY, 0) > ' Calculate hard elevation. > Elevation = Tiles.Depth_Get_Hard(Plan[** > Index].Block[Plan[Index].**CurrentX, Plan[Index].CurrentY].WorldX, > Plan[Index].Block[Plan[Index].**CurrentX, Plan[Index].CurrentY].WorldY) > ' Calculate excavation amount. > Excavation = Elevation - Plan[Index].GradeTo * 12 > ' Grade landscape. > Tiles.Excavate(Plan[Index].**Block[Plan[Index].CurrentX, > Plan[Index].CurrentY].WorldX, Plan[Index].Block[Plan[Index].**CurrentX, > Plan[Index].CurrentY].WorldY, Excavation, True) > ' Mark block as graded. > Plan[Index].Block[Plan[Index].**CurrentX, > Plan[Index].CurrentY].Grading = False > > ' Wall construction. > Case 2 > > ' Roofing construction. > Case 3 > > ' Flooring construction. > Case 4 > > ' Finished/maintenance. > Case 5 > > > End Select > > Endif > > Next > > End > > ' END OF CODE > > I attached the above code for better readability. It's notable that if the > For...Next loop only addresses the first few indices of Plan[] that it > works, which leads me to believe the array of structures is improperly > allocated, probably due to its ridiculous size. The fact that some of the > array property values read as non-zero before being assigned makes me think > their pointers are pointing to out-of-process RAM being used by something > else entirely. I suck at low-level programming so I'm just speculating > ignorantly, sorry. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mckaygerhard at ...626... Mon Aug 12 17:10:17 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 12 Aug 2013 10:40:17 -0430 Subject: [Gambas-user] pass parameters to another form invoke where? Message-ID: Thanka Tobias and Fabien, theres what i think about two solutions: 1) The proposed from tobias are not beatifull but easy to understand and good hack .. From: Tobias Boege > In FAuth you can write: > > Public Sub MyShowModal(theParameter As ...) > ' Do something with theParameter > Me.ShowModal() > End > > Then you would do in FMain: > > hAuth = New FAuth > hAuth.MyShowModal(...) > > instead of using hAuth.ShowModal() directly. > > 2) But i prefer the proposed from Fabien, very elegant... Thanks From: Fabien Bodard > Well Tobi I think you need to complete the idea. > > > in fAuth : > > Private $iId as Integer > Public Value as Integer > Public sub Run(Id as integer) as boolean > dim hForm as new hAuth > $iId = Id > return not hForm.ShowModal() > > End > > Public sub _Load() > > 'Get UserInfo from $iId and then > txtUser.Text = resultuser > > End > > > Public sub btnValidate_Click() > > return > > end > > Public Sub bntCancel_Click() > > > return true > > endif > > 'in the main form > > > if not hAuth.Run(user.id) then print hAuth.Value > > > From nando_f at ...951... Mon Aug 12 17:20:51 2013 From: nando_f at ...951... (nando) Date: Mon, 12 Aug 2013 11:20:51 -0400 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <5208D48E.7000709@...1950...> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> Message-ID: <20130812151830.M78415@...951...> ACCESS db is really just a file ,and not a 'server' like MySQL You need software to install on your linux box to tickle the file. There is something out there, I did use something on a box a while back. (sorry forgot what is was) ---------- Original Message ----------- From: Caveat To: gambas-user at lists.sourceforge.net Sent: Mon, 12 Aug 2013 14:26:54 +0200 Subject: Re: [Gambas-user] Microsoft Access database > Not that I know of, but I have written a system to convert MSAccess > databases to MySQL/postgresql/MSSQLServer. It's written in java and > uses the jackcess library (http://jackcess.sourceforge.net/). > > I also wrote a server which makes calls to the jackcess library based on > simple text commands, so in theory you could make a basic client in > Gambas... > > Let's first see if anyone has already found a way to talk to access dbs > directly in Gambas... > > Kind regards, > Caveat > > On 12/08/13 13:39, Ivan Kern wrote: > > > > > > Hi, > > > > > > > > > > > > Is it possible to connect Microsoft access database with Gambas? > > > > If yea, please, an example. > > > > > > > > Best regards, > > > > Ivan > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From eilert-sprachen at ...221... Mon Aug 12 18:28:50 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 12 Aug 2013 18:28:50 +0200 Subject: [Gambas-user] Sending mails "solved" Message-ID: <52090D42.9020701@...221...> Hi folks, just FYI, for you were so nice to try to get me up with the Gambas SMTP client: Finally, I picked up a discussion Benoit had had with someone else some time ago that it's tricky to really implement authorisation here. Then I remembered another discussion in some forum about a similar thing. So I searched again and found a script named "sendEmail" written in Perl which is easily doing the job. It hasn't been updated since 2009, but it's running out of the box, so I simply use a Shell command to let it send the mails the way I wanted. For Benoit this could be a template to complete his SMTP in Gambas. It's well commented, you can find it at http://caspian.dotconf.net/menu/Software/SendEmail/ Regards Rolf From gambas at ...1... Mon Aug 12 18:35:09 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 12 Aug 2013 18:35:09 +0200 Subject: [Gambas-user] Sending mails "solved" In-Reply-To: <52090D42.9020701@...221...> References: <52090D42.9020701@...221...> Message-ID: <52090EBD.407@...1...> Le 12/08/2013 18:28, Rolf-Werner Eilert a ?crit : > Hi folks, > > just FYI, for you were so nice to try to get me up with the Gambas SMTP > client: > > Finally, I picked up a discussion Benoit had had with someone else some > time ago that it's tricky to really implement authorisation here. Then I > remembered another discussion in some forum about a similar thing. So I > searched again and found a script named "sendEmail" written in Perl > which is easily doing the job. > > It hasn't been updated since 2009, but it's running out of the box, so I > simply use a Shell command to let it send the mails the way I wanted. > > For Benoit this could be a template to complete his SMTP in Gambas. It's > well commented, you can find it at > http://caspian.dotconf.net/menu/Software/SendEmail/ > > Regards > > Rolf > SmtpClient supports SSL and TLS authorisation. What was not working? -- Beno?t Minisini From gambas at ...1... Mon Aug 12 18:47:43 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 12 Aug 2013 18:47:43 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <20130810165721.GB497@...2774...> References: <20130810120605.GK511@...2774...> <52065D2C.8010107@...1...> <52065DB3.9060606@...1...> <20130810165721.GB497@...2774...> Message-ID: <520911AF.3080103@...1...> Le 10/08/2013 18:57, Tobias Boege a ?crit : > On Sat, 10 Aug 2013, Beno?t Minisini wrote: >> Le 10/08/2013 17:33, Beno?t Minisini a ?crit : >>> Le 10/08/2013 14:06, Tobias Boege a ?crit : >>>> Hi Benoit, >>>> >>>> in a project I can reliably reproduce the following message: >>>> >>>> ** Oops! Internal error! ** >>>> ** Cannot write signal #17 into signal pipe: Bad file descriptor >>>> ** Program aborting. Sorry! :-( >>>> ** Please send a bug report at gambas at ...1... >>>> >>>> Tough, I didn't succeed in isolating the cause. The code deals with one >>>> Process object only but uses Exec and Shell quite often. The project also >>>> has to deal with some race conditions. >>>> >>>> I have meanwhile removed that Process object from the code and refactored >>>> that part in pure Gambas. My project works flawlessly now. >>>> >>>> Anyway, are you interested in fixing this issue? I mean, this looks >>>> like a >>>> bit of work to me (particularly because I have no minimal example for >>>> you) >>>> and I, for sure, did strange things in the code. >>>> >>>> Regards, >>>> Tobi >>>> >>> >>> Of course I'm interested. But I need more precise details, and some way >>> to reproduce it if possible. >>> >> >> Do you use tasks? Do you run processes inside tasks? >> > > No tasks involved. > > I've got a minimal project working! It's not that I wasn't minded giving you > the real project but it isn't just more complex but also needs other > software installed and set up which I didn't want to bother you with. > > Finally, there is a project attached. Its goal is to spawn a sleeping child > process which shall detach from the Gambas process. This way, the process > can run in the background and even survive the Gambas parent process. In > fact, Gambas doesn't even know that the process exists (because it detached > from the shell which was started by the Gambas program into a new session > and the shell died) so Gambas doesn't want to wait for the started child to > terminate. > > In the example, the called program is "sleep". Normally, this would be a > server or something which is intended to survive the starting program. > > The second goal of the program is, whenever the sleep program crashes, to > restart it. To this end, it creates an instance of a shell script. Let $PID > denote the PID of the sleep process: > > while test -d /proc/$PID; sleep 1; done > > This process will terminate as soon as the sleep process terminated. As we > can safely keep this shell script in a Process object (it is not meant to > survive the Gambas program), we can use its Kill event to detect the > detached sleep process' termination and start a new sleep accordingly. > > Enough of the theory. I found two reliable ways to crash the interpreter: > > 1) Segfault. > 1. Start the attached program; > 2. Open a terminal and run "pkill sleep" (or kill the sleep process some > other way). You should see the program reacting on the external crash; > it spawns a new sleep process and documents that with Debug output; > 3. Re-run "pkill sleep". You should see a Segfault. > > 2) Oops. > 1. Start the attached program; > 2. Hit enter in the console window to initiate a "controlled kill" by the > project itself; > 3. Repeat Step 2; > 4. Open a terminal and run "pkill sleep" to provoke an external kill; > 5. Repeat Step 2. The oops is about a Bad file descriptor when writing > signal #17 (SIGCHLD) to the signal pipe. > > Actually, the 2nd way doesn't seem too reliable as I *sometimes* get a > segfault with this method, too. These two things must be related somewhere. > > Hope this helps. > > Regards, > Tobi > No crash at all there. The line: Shell "setsid sleep 10000" Wait never returns until the sleep is exausted or if I kill it manually. Then we enter the next loop which never terminate, as "pgrep sleep" now always return nothing. -- Beno?t Minisini From gambas at ...1... Mon Aug 12 18:48:48 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 12 Aug 2013 18:48:48 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <520911AF.3080103@...1...> References: <20130810120605.GK511@...2774...> <52065D2C.8010107@...1...> <52065DB3.9060606@...1...> <20130810165721.GB497@...2774...> <520911AF.3080103@...1...> Message-ID: <520911F0.7010709@...1...> Le 12/08/2013 18:47, Beno?t Minisini a ?crit : > > No crash at all there. The line: > > Shell "setsid sleep 10000" Wait > > never returns until the sleep is exausted or if I kill it manually. Then > we enter the next loop which never terminate, as "pgrep sleep" now > always return nothing. > OK, got it. I had to add a "&" at the end of the shell command. -- Beno?t Minisini From gambas at ...1... Mon Aug 12 18:58:42 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 12 Aug 2013 18:58:42 +0200 Subject: [Gambas-user] segfault with insanely large array of structures In-Reply-To: <52086622.2080405@...1887...> References: <52086622.2080405@...1887...> Message-ID: <52091442.2020507@...1...> Le 12/08/2013 06:35, Kevin Fishburne a ?crit : > I know this code is horrible (it will be changed), but the following > declarations and procedure raise a signal 11 and populate some of the > array properties with non-zero values: > > ' Plan structures and array (server). > Public Struct PlanBlockStructure ' Structure containing individual block > data. > Created As Boolean ' If block PWO has already been created. > Skin As Short ' Block skin. > HeightCurrent As Single ' Current height in feet of block. > HeightTarget As Single ' Target height in feet of block. > Grading As Boolean ' If grading is required. > WorldX As Integer ' Hard coordinates of block once construction > has been initiated. > WorldY As Integer ' Hard coordinates of block once construction > has been initiated. > End Struct > Public Struct PlanStructure ' Structure containing individual plan data. > Block[300, 300] As Struct PlanBlockStructure > Stage As Byte ' Current build stage (0 = design, 1 = clear and > grade, 2 = wall construction, 3 = roofing construction, 4 = flooring > construction, 5 = finished/maintenance). > CurrentX As Short ' Current position in block array. > CurrentY As Short ' Current position in block array. > GradeTo As Single ' Elevation in feet to grade landscape to. > CenterX As Integer ' Build site center coordinate. > CenterY As Integer ' Build site center coordinate. > End Struct > Public Plan[2000] As Struct PlanStructure ' Architecutral plans. > Without a little project that reproduces the crash or at least an indication of where it crashes exactly, I can't do anything. But I can tell you that if you use embedded arrays (the "xxx[xxx] As ..." declarations), everything is allocated inside the object structure. It should work (independently of the available RAM, as Linux memory allocation is always successful, it crashes only when you want to access it). But 3,3 Gb being greater than 2^31, maybe there is bug somewhere, or it is too big to allocate that in one shot even to the kernel. -- Beno?t Minisini From taboege at ...626... Mon Aug 12 20:45:32 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 12 Aug 2013 20:45:32 +0200 Subject: [Gambas-user] ListView.Current.MoveFirst() upside down Message-ID: <20130812184532.GE682@...2774...> Hi, attached is a simple project which uses ListView.Current.MoveFirst() to move the double-clicked item to the top of the ListView. However, MoveFirst() moves the item to the last position while MoveLast() moves to the first position. Am I misunderstanding how ListView thinks about first and last elements? Is the direction reversed? If so, why? Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: listview-current-movefirst-0.0.1.tar.gz Type: application/octet-stream Size: 4765 bytes Desc: not available URL: From gambas at ...1... Mon Aug 12 22:01:48 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 12 Aug 2013 22:01:48 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <520911F0.7010709@...1...> References: <20130810120605.GK511@...2774...> <52065D2C.8010107@...1...> <52065DB3.9060606@...1...> <20130810165721.GB497@...2774...> <520911AF.3080103@...1...> <520911F0.7010709@...1...> Message-ID: <52093F2C.6000207@...1...> Le 12/08/2013 18:48, Beno?t Minisini a ?crit : > Le 12/08/2013 18:47, Beno?t Minisini a ?crit : >> >> No crash at all there. The line: >> >> Shell "setsid sleep 10000" Wait >> >> never returns until the sleep is exausted or if I kill it manually. Then >> we enter the next loop which never terminate, as "pgrep sleep" now >> always return nothing. >> > > OK, got it. I had to add a "&" at the end of the shell command. > The two bugs should be fixed by revision #5790. Regards, -- Beno?t Minisini From rmorgan62 at ...626... Tue Aug 13 00:10:47 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 12 Aug 2013 15:10:47 -0700 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <20130812151830.M78415@...951...> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> Message-ID: Some ideas... Are you running MS Access on the same system under wine? Or on a remote machine? Do you need to actually connect to ms access or can you import the access database in to MySQL or Postgres? Access is actually a program. It's data-store is a file(s). Access also has a funny query language that looks almost like T-SQL but is not quite... It has been a long time since I did this, 2008-2009... But it was both possible then to both connect to and import data from an Access database. I am sure if you search and read you will find a solution. I recall the import used mbtools. But my code is now gone and I cannot recall all the details. Once you know how to accomplish the task at hand, you can use GAMBAS to program the process. Perhaps by calling mbtools or by directly accessing the access database. Also you might find the MSSQL linux server helpful. Never used it but it should allow serving an access data store over odbc. On Mon, Aug 12, 2013 at 8:20 AM, nando wrote: > ACCESS db is really just a file ,and not a 'server' like MySQL > You need software to install on your linux box to tickle the file. > There is something out there, I did use something on a box a while back. > (sorry forgot what is was) > > > ---------- Original Message ----------- > From: Caveat > To: gambas-user at lists.sourceforge.net > Sent: Mon, 12 Aug 2013 14:26:54 +0200 > Subject: Re: [Gambas-user] Microsoft Access database > > > Not that I know of, but I have written a system to convert MSAccess > > databases to MySQL/postgresql/MSSQLServer. It's written in java and > > uses the jackcess library (http://jackcess.sourceforge.net/). > > > > I also wrote a server which makes calls to the jackcess library based on > > simple text commands, so in theory you could make a basic client in > > Gambas... > > > > Let's first see if anyone has already found a way to talk to access dbs > > directly in Gambas... > > > > Kind regards, > > Caveat > > > > On 12/08/13 13:39, Ivan Kern wrote: > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > Is it possible to connect Microsoft access database with Gambas? > > > > > > If yea, please, an example. > > > > > > > > > > > > Best regards, > > > > > > Ivan > > > > > > > ------------------------------------------------------------------------------ > > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > > It's a free troubleshooting tool designed for production. > > > Get down to code-level detail for bottlenecks, with <2% overhead. > > > Download for free and get started troubleshooting in minutes. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...1... Tue Aug 13 01:28:07 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 13 Aug 2013 01:28:07 +0200 Subject: [Gambas-user] How to interpret the "circular references" message? In-Reply-To: <20130806113231.GC542@...2774...> References: <20130806113231.GC542@...2774...> Message-ID: <52096F87.60109@...1...> Le 06/08/2013 13:32, Tobias Boege a ?crit : > Hi, > > I have got some circular references in my project which I want to get rid > of. Actually I haven't really got an idea of where the cause could lie so I > wonder if there is anything useful in the message from Gambas. > > My questions are: What does the order of the classes signify? What are these > numbers before each class? > > Regards, > Tobi > The order means nothing. The number is the number of objects allocated for each class. Regards, -- Beno?t Minisini From gambas at ...1... Tue Aug 13 01:29:04 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 13 Aug 2013 01:29:04 +0200 Subject: [Gambas-user] Starting a Process and forgetting about it In-Reply-To: <20130807080842.GA860@...2774...> References: <20130807080842.GA860@...2774...> Message-ID: <52096FC0.8090405@...1...> Le 07/08/2013 10:08, Tobias Boege a ?crit : > Hi, > > in a project I need to start a server Process and watch its Kill event while > the program is running. The server shall, however, continue to run even > after my program exits. > > I'm kind of stuck here: If I create a Process, Gambas keeps watching it and > doesn't shutdown the program until the process dies. Can I somehow tell > Gambas to forget about that Process and just exit? > > I have used the Quit instruction until a minute ago (without any errors or > complaints) to get the program down ultimately but as I know this is a Bad > Idea: here's my mail. > > Now I'm working around this problem like that: I use the Shell instruction > to start a shell as the child process Gambas watches. I can safely kill the > shell which makes Gambas happy and reparents the server to init which is > also fine. I have either to document this workaround because IMHO it's quite > subtle or have an explicit way of having Gambas forget about a Process... > > Regards, > Tobi > I added the Process.Ignore() method in revision #5791 for that. Tell me if it works for you. Regards, -- Beno?t Minisini From gambas at ...1... Tue Aug 13 01:31:02 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 13 Aug 2013 01:31:02 +0200 Subject: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause In-Reply-To: <20130811113310.GC620@...2774...> References: <20130811113310.GC620@...2774...> Message-ID: <52097036.7020703@...1...> Le 11/08/2013 13:33, Tobias Boege a ?crit : > Hi Benoit, > > what bothers me from time to time is that With is *so* handy but can't be > used to access Array or Collection elements like: > > With hCollection ' or hArray > Print ["key"] ' or Print [0] > End With > > I see that this would be a syntactical problem because ["key"] and [0] may > equivalently well be recognised as inline arrays. But we have another > option, right? There is still the ! operator which is unambiguous: > > With hCollection > Print !key > End With > > Should be no problem if implemented. What do you think? And while we are at > it, couldn't the ! operator at the same time get the capability to support > integers, so that the above will also work with an array: > > With hArray > Print !0 > End With > > Regards, > Tobi > The '!' can't be used, because a!b is just syntactic sugar for a["b"]. Maybe a syntax like .[x] = y could be used, as at the moment .[x] is a syntax error... I will think about it. -- Beno?t Minisini From gambas at ...2524... Tue Aug 13 01:37:33 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 12 Aug 2013 23:37:33 +0000 Subject: [Gambas-user] Issue 440 in gambas: Faulty error message from valid code In-Reply-To: <1-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> <0-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #2 on issue 440 by benoit.m... at ...626...: Faulty error message from valid code http://code.google.com/p/gambas/issues/detail?id=440 That bug seems to be fixed, but I don't remember in which revision. Can you confirm ? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Aug 13 01:50:39 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 12 Aug 2013 23:50:39 +0000 Subject: [Gambas-user] Issue 458 in gambas: Repeated CRITICAL messages In-Reply-To: <0-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 458 by benoit.m... at ...626...: Repeated CRITICAL messages http://code.google.com/p/gambas/issues/detail?id=458 I can't reproduce the messages with Unity with the latest revision. Can you tell me if the problem is fixed for you? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Aug 13 01:52:30 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 12 Aug 2013 23:52:30 +0000 Subject: [Gambas-user] Issue 459 in gambas: Gambas 3.4.2 IDE not working recompile all when downgrading In-Reply-To: <0-6813199134517018827-11311946481671102461-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-11311946481671102461-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-11311946481671102461-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 459 by benoit.m... at ...626...: Gambas 3.4.2 IDE not working recompile all when downgrading http://code.google.com/p/gambas/issues/detail?id=459 "compile all" forces the recompilation of everything, as you did in the command line. Please send me a project where "compile all" does not fix the problem so that I can take a look. Thanks! -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Aug 13 01:54:32 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Mon, 12 Aug 2013 23:54:32 +0000 Subject: [Gambas-user] Issue 460 in gambas: Desktop.Sendkeys("{[Control_L]A}") does not work In-Reply-To: <0-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 460 by benoit.m... at ...626...: Desktop.Sendkeys("{[Control_L]A}") does not work http://code.google.com/p/gambas/issues/detail?id=460 Please send your project so that I can debug. Anyway, if you want to manipulate the HTML page contents, you should use the WebView properties and the DOM instead of using Desktop.SendKeys(), which is not reliable. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Aug 13 02:05:26 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Aug 2013 00:05:26 +0000 Subject: [Gambas-user] Issue 460 in gambas: Desktop.Sendkeys("{[Control_L]A}") does not work In-Reply-To: <1-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> <0-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #2 on issue 460 by benoit.m... at ...626...: Desktop.Sendkeys("{[Control_L]A}") does not work http://code.google.com/p/gambas/issues/detail?id=460 OK : please write Desktop.SendKeys("{[Control_L]a}"), because having an "A" needs the SHIFT key (which leads to Control+Shift+A). Anyway, The WebView has no CTRL+A shortcut to select all, so you will have to do the good way: learn how to use the WebView properties and methods. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From eilert-sprachen at ...221... Tue Aug 13 08:25:01 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 13 Aug 2013 08:25:01 +0200 Subject: [Gambas-user] Sending mails "solved" In-Reply-To: <52090EBD.407@...1...> References: <52090D42.9020701@...221...> <52090EBD.407@...1...> Message-ID: <5209D13D.5070305@...221...> Am 12.08.2013 18:35, schrieb Beno?t Minisini: > Le 12/08/2013 18:28, Rolf-Werner Eilert a ?crit : >> Hi folks, >> >> just FYI, for you were so nice to try to get me up with the Gambas SMTP >> client: >> >> Finally, I picked up a discussion Benoit had had with someone else some >> time ago that it's tricky to really implement authorisation here. Then I >> remembered another discussion in some forum about a similar thing. So I >> searched again and found a script named "sendEmail" written in Perl >> which is easily doing the job. >> >> It hasn't been updated since 2009, but it's running out of the box, so I >> simply use a Shell command to let it send the mails the way I wanted. >> >> For Benoit this could be a template to complete his SMTP in Gambas. It's >> well commented, you can find it at >> http://caspian.dotconf.net/menu/Software/SendEmail/ >> >> Regards >> >> Rolf >> > > SmtpClient supports SSL and TLS authorisation. What was not working? > Well... it simply didn't send the mails, or more specific: the mails never arrived anywhere, and I couldn't make out any error messages anywhere. The only message I got was the ending "-> quit". During my holidays, it might have been caused by a bad internet connection, but it wouldn't run here either. Maybe you remember, you told me to look in the "standard errors", but I didn't find anything at /var/log... Then this weekend I found a discussion from last year or so you had had with someone on the SMTP topic, and it turned out you could not find a way to complete programming. In the documentation it says "not everything is supported yet". So I looked for another way of implementing it. Here is my test project which was intended to be included into the bigger main project once it had been running. My personal data have been changed: Public Sub Main() Dim t$ As String Dim email As New SmtpClient t$ = File.Load(Application.Path &/ "test.pdf") With email .Add("This is the mail text") .Add(t$, mime.Binary, "test.pdf") .To.Add("eilert-sprachen at ...221...") .From = "myname at ...20..." .Subject = "Ein Test" .Encrypt = Net.SSL .Port = 587 .Host = "smtp.web.de" .User = "username" .Password = "password" .Debug = True End With Try email.Send If Error Then Print Error.Text Print Error.Where Endif End I tried this with my yahoo account and t-online account (= German Telecom), sending mails forth and back, but to no avail. When I tried sendEmail giving it the same data, the mail was sent at once. Rolf From taboege at ...626... Tue Aug 13 10:46:51 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 13 Aug 2013 10:46:51 +0200 Subject: [Gambas-user] How to interpret the "circular references" message? In-Reply-To: <52096F87.60109@...1...> References: <20130806113231.GC542@...2774...> <52096F87.60109@...1...> Message-ID: <20130813084651.GA833@...2774...> On Tue, 13 Aug 2013, Beno?t Minisini wrote: > Le 06/08/2013 13:32, Tobias Boege a ?crit : > > Hi, > > > > I have got some circular references in my project which I want to get rid > > of. Actually I haven't really got an idea of where the cause could lie so I > > wonder if there is anything useful in the message from Gambas. > > > > My questions are: What does the order of the classes signify? What are these > > numbers before each class? > > > > Regards, > > Tobi > > > > The order means nothing. The number is the number of objects allocated > for each class. > OK, so this is not _that_ useful. Anyways, I fixed it by the good old looking-again-at-the-sources trick. Regards, Tobi From gambas at ...2524... Tue Aug 13 10:54:42 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Aug 2013 08:54:42 +0000 Subject: [Gambas-user] Issue 458 in gambas: Repeated CRITICAL messages In-Reply-To: <1-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> <0-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12802906792772151370-gambas=googlecode.com@...2524...> Comment #2 on issue 458 by john.aaron.rose at ...626...: Repeated CRITICAL messages http://code.google.com/p/gambas/issues/detail?id=458 Problem not fixed. I'm on Ubuntu Precise 64 bit with Gambas 3.4.2 (installed from kendek's ppa). Could my using Alan Bell's Quicklists for Unity ppa (instruction on https://www.techsupportalert.com/content/tips-and-tricks-ubuntu-after-installation-ubuntu-1204.htm#Enable-Quick-Lists) have an impact? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From taboege at ...626... Tue Aug 13 11:22:48 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 13 Aug 2013 11:22:48 +0200 Subject: [Gambas-user] Starting a Process and forgetting about it In-Reply-To: <52096FC0.8090405@...1...> References: <20130807080842.GA860@...2774...> <52096FC0.8090405@...1...> Message-ID: <20130813092248.GB833@...2774...> On Tue, 13 Aug 2013, Beno?t Minisini wrote: > Le 07/08/2013 10:08, Tobias Boege a ?crit : > > Hi, > > > > in a project I need to start a server Process and watch its Kill event while > > the program is running. The server shall, however, continue to run even > > after my program exits. > > > > I'm kind of stuck here: If I create a Process, Gambas keeps watching it and > > doesn't shutdown the program until the process dies. Can I somehow tell > > Gambas to forget about that Process and just exit? > > > > I have used the Quit instruction until a minute ago (without any errors or > > complaints) to get the program down ultimately but as I know this is a Bad > > Idea: here's my mail. > > > > Now I'm working around this problem like that: I use the Shell instruction > > to start a shell as the child process Gambas watches. I can safely kill the > > shell which makes Gambas happy and reparents the server to init which is > > also fine. I have either to document this workaround because IMHO it's quite > > subtle or have an explicit way of having Gambas forget about a Process... > > > > Regards, > > Tobi > > > > I added the Process.Ignore() method in revision #5791 for that. Tell me > if it works for you. > The commit log tells that the process is automatically killed (not waited for) when the Gambas program exits. This is not what I needed. It would be a shorthand for something like this in the startup class: --- Private $hProcess As Process Public Sub Form_Close() Try $hProcess.Kill() End Public Sub btnStartProcess_Click() $hProcess = Shell "..." As "Process" End --- because you don't need to save the Process object anymore to have it killed. You could now do: --- Public Sub btnStartProcess_Click() Dim hProcess As Process hProcess = Shell "..." As "Process" hProcess.Ignore() End ' Use Last in any "Process" events --- Right? What I wanted to do is run a child process and if the Gambas program exits, do nothing about the process and let init adopt it (the child shall continue to run). However, I don't think this is a common enough scenario to have it implemented directly in the Process object. I got by by using Shell "setsid ... &". Whereas automatically killing background child processes seems to be a nice addition. Thanks for your effort anyway. Regards, Tobi From gambas at ...1... Tue Aug 13 11:31:19 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 13 Aug 2013 11:31:19 +0200 Subject: [Gambas-user] Starting a Process and forgetting about it In-Reply-To: <20130813092248.GB833@...2774...> References: <20130807080842.GA860@...2774...> <52096FC0.8090405@...1...> <20130813092248.GB833@...2774...> Message-ID: <5209FCE7.5020005@...1...> Le 13/08/2013 11:22, Tobias Boege a ?crit : > On Tue, 13 Aug 2013, Beno?t Minisini wrote: >> Le 07/08/2013 10:08, Tobias Boege a ?crit : >>> Hi, >>> >>> in a project I need to start a server Process and watch its Kill event while >>> the program is running. The server shall, however, continue to run even >>> after my program exits. >>> >>> I'm kind of stuck here: If I create a Process, Gambas keeps watching it and >>> doesn't shutdown the program until the process dies. Can I somehow tell >>> Gambas to forget about that Process and just exit? >>> >>> I have used the Quit instruction until a minute ago (without any errors or >>> complaints) to get the program down ultimately but as I know this is a Bad >>> Idea: here's my mail. >>> >>> Now I'm working around this problem like that: I use the Shell instruction >>> to start a shell as the child process Gambas watches. I can safely kill the >>> shell which makes Gambas happy and reparents the server to init which is >>> also fine. I have either to document this workaround because IMHO it's quite >>> subtle or have an explicit way of having Gambas forget about a Process... >>> >>> Regards, >>> Tobi >>> >> >> I added the Process.Ignore() method in revision #5791 for that. Tell me >> if it works for you. >> > > The commit log tells that the process is automatically killed (not waited > for) when the Gambas program exits. This is not what I needed. It would be a > shorthand for something like this in the startup class: > > --- > Private $hProcess As Process > > Public Sub Form_Close() > Try $hProcess.Kill() > End > > Public Sub btnStartProcess_Click() > $hProcess = Shell "..." As "Process" > End > --- > > because you don't need to save the Process object anymore to have it killed. > You could now do: > > --- > Public Sub btnStartProcess_Click() > Dim hProcess As Process > > hProcess = Shell "..." As "Process" > hProcess.Ignore() > End > > ' Use Last in any "Process" events > --- > > Right? What I wanted to do is run a child process and if the Gambas program > exits, do nothing about the process and let init adopt it (the child shall > continue to run). > > However, I don't think this is a common enough scenario to have it > implemented directly in the Process object. I got by by using Shell > "setsid ... &". Whereas automatically killing background child processes > seems to be a nice addition. Thanks for your effort anyway. > > Regards, > Tobi > I could call setsid() for the child process, but I have no syntax in the EXEC/SHELL instruction for that. I will think about it... -- Beno?t Minisini From taboege at ...626... Tue Aug 13 12:15:40 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 13 Aug 2013 12:15:40 +0200 Subject: [Gambas-user] Starting a Process and forgetting about it In-Reply-To: <5209FCE7.5020005@...1...> References: <20130807080842.GA860@...2774...> <52096FC0.8090405@...1...> <20130813092248.GB833@...2774...> <5209FCE7.5020005@...1...> Message-ID: <20130813101540.GC833@...2774...> On Tue, 13 Aug 2013, Beno?t Minisini wrote: > > However, I don't think this is a common enough scenario to have it > > implemented directly in the Process object. I got by by using Shell > > "setsid ... &". Whereas automatically killing background child processes > > seems to be a nice addition. Thanks for your effort anyway. > > > > Regards, > > Tobi > > > > I could call setsid() for the child process, but I have no syntax in the > EXEC/SHELL instruction for that. I will think about it... > Besides the syntax, there is another thing to be aware of: If there is a pipe from child -> parent (write -> read) and after the parent dies, the child writes to the pipe, it will receive a SIGPIPE and die, too, if it doesnt't catch this signal. It means if whatever flag to enable setsid() is set, the user must carefully think about adding For Read/Write/Input/Output. Regards, Tobi From rmorgan62 at ...626... Tue Aug 13 13:09:14 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 13 Aug 2013 04:09:14 -0700 Subject: [Gambas-user] Sending mails "solved" In-Reply-To: <5209D13D.5070305@...221...> References: <52090D42.9020701@...221...> <52090EBD.407@...1...> <5209D13D.5070305@...221...> Message-ID: A little food for thought.... I am not sure about Yahoo or Google over seas but here in the US Google for sure, and I believe Yahoo both will not accept mail from a home server. I used to run my own mail servers and still do but with the limitation that I cannot send mail to Google without having a paid Google account for each domain. Google and many free mail suppliers did this to combat spam. I have not tried in a year or so to send from any of my domains that do not have a paid google account attached. So if they reversed this, I am unaware. On Mon, Aug 12, 2013 at 11:25 PM, Rolf-Werner Eilert < eilert-sprachen at ...221...> wrote: > > > Am 12.08.2013 18:35, schrieb Beno?t Minisini: > > Le 12/08/2013 18:28, Rolf-Werner Eilert a ?crit : > >> Hi folks, > >> > >> just FYI, for you were so nice to try to get me up with the Gambas SMTP > >> client: > >> > >> Finally, I picked up a discussion Benoit had had with someone else some > >> time ago that it's tricky to really implement authorisation here. Then I > >> remembered another discussion in some forum about a similar thing. So I > >> searched again and found a script named "sendEmail" written in Perl > >> which is easily doing the job. > >> > >> It hasn't been updated since 2009, but it's running out of the box, so I > >> simply use a Shell command to let it send the mails the way I wanted. > >> > >> For Benoit this could be a template to complete his SMTP in Gambas. It's > >> well commented, you can find it at > >> http://caspian.dotconf.net/menu/Software/SendEmail/ > >> > >> Regards > >> > >> Rolf > >> > > > > SmtpClient supports SSL and TLS authorisation. What was not working? > > > > Well... it simply didn't send the mails, or more specific: the mails > never arrived anywhere, and I couldn't make out any error messages > anywhere. The only message I got was the ending "-> quit". During my > holidays, it might have been caused by a bad internet connection, but it > wouldn't run here either. > > Maybe you remember, you told me to look in the "standard errors", but I > didn't find anything at /var/log... > > Then this weekend I found a discussion from last year or so you had had > with someone on the SMTP topic, and it turned out you could not find a > way to complete programming. In the documentation it says "not > everything is supported yet". So I looked for another way of > implementing it. > > Here is my test project which was intended to be included into the > bigger main project once it had been running. My personal data have been > changed: > > Public Sub Main() > Dim t$ As String > Dim email As New SmtpClient > > t$ = File.Load(Application.Path &/ "test.pdf") > > With email > .Add("This is the mail text") > .Add(t$, mime.Binary, "test.pdf") > .To.Add("eilert-sprachen at ...221...") > .From = "myname at ...20..." > .Subject = "Ein Test" > .Encrypt = Net.SSL > .Port = 587 > .Host = "smtp.web.de" > .User = "username" > .Password = "password" > .Debug = True > End With > > Try email.Send > > If Error Then > Print Error.Text > Print Error.Where > Endif > > End > > > I tried this with my yahoo account and t-online account (= German > Telecom), sending mails forth and back, but to no avail. > > When I tried sendEmail giving it the same data, the mail was sent at once. > > Rolf > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From gambas at ...2524... Tue Aug 13 14:36:39 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Aug 2013 12:36:39 +0000 Subject: [Gambas-user] Issue 440 in gambas: Faulty error message from valid code In-Reply-To: <2-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> <0-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Comment #3 on issue 440 by jussi.la... at ...626...: Faulty error message from valid code http://code.google.com/p/gambas/issues/detail?id=440 No this bug is still in revision 5791. Related bug, 439 is fixed, not this one. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...2524... Tue Aug 13 14:57:14 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Aug 2013 12:57:14 +0000 Subject: [Gambas-user] Issue 440 in gambas: Faulty error message from valid code In-Reply-To: <3-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> <0-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Updates: Status: WontFix Comment #4 on issue 440 by benoit.m... at ...626...: Faulty error message from valid code http://code.google.com/p/gambas/issues/detail?id=440 Ah, ok. This is not a bug: the Class1._call method is dynamic, and if you use the Class1() syntax, you are looking for a static _call method. As there is no _call static method, the interpreter uses a default one that is just a conversion to Class1 (a cast). And so "1" is converted to Class1, which fails, and you get the error message. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From ivan-kern at ...308... Tue Aug 13 14:57:05 2013 From: ivan-kern at ...308... (Ivan Kern) Date: Tue, 13 Aug 2013 14:57:05 +0200 Subject: [Gambas-user] Microsoft Access database In-Reply-To: References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> Message-ID: <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> I thank you all. I'm running MS Access on the remote machine and I need actually connect to MS access. I still have no solution. Kind regards, Ivan -----Urspr?ngliche Nachricht----- Von: Randall Morgan [mailto:rmorgan62 at ...626...] Gesendet: Dienstag, 13. August 2013 00:11 An: nando_f at ...951...; mailing list for gambas users Betreff: Re: [Gambas-user] Microsoft Access database Some ideas... Are you running MS Access on the same system under wine? Or on a remote machine? Do you need to actually connect to ms access or can you import the access database in to MySQL or Postgres? Access is actually a program. It's data-store is a file(s). Access also has a funny query language that looks almost like T-SQL but is not quite... It has been a long time since I did this, 2008-2009... But it was both possible then to both connect to and import data from an Access database. I am sure if you search and read you will find a solution. I recall the import used mbtools. But my code is now gone and I cannot recall all the details. Once you know how to accomplish the task at hand, you can use GAMBAS to program the process. Perhaps by calling mbtools or by directly accessing the access database. Also you might find the MSSQL linux server helpful. Never used it but it should allow serving an access data store over odbc. On Mon, Aug 12, 2013 at 8:20 AM, nando wrote: > ACCESS db is really just a file ,and not a 'server' like MySQL You > need software to install on your linux box to tickle the file. > There is something out there, I did use something on a box a while back. > (sorry forgot what is was) > > > ---------- Original Message ----------- > From: Caveat > To: gambas-user at lists.sourceforge.net > Sent: Mon, 12 Aug 2013 14:26:54 +0200 > Subject: Re: [Gambas-user] Microsoft Access database > > > Not that I know of, but I have written a system to convert MSAccess > > databases to MySQL/postgresql/MSSQLServer. It's written in java and > > uses the jackcess library (http://jackcess.sourceforge.net/). > > > > I also wrote a server which makes calls to the jackcess library > > based on simple text commands, so in theory you could make a basic > > client in Gambas... > > > > Let's first see if anyone has already found a way to talk to access > > dbs directly in Gambas... > > > > Kind regards, > > Caveat > > > > On 12/08/13 13:39, Ivan Kern wrote: > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > Is it possible to connect Microsoft access database with Gambas? > > > > > > If yea, please, an example. > > > > > > > > > > > > Best regards, > > > > > > Ivan > > > > > > > ---------------------------------------------------------------------- > -------- > > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > > It's a free troubleshooting tool designed for production. > > > Get down to code-level detail for bottlenecks, with <2% overhead. > > > Download for free and get started troubleshooting in minutes. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c > lktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > ---------------------------------------------------------------------- > -------- > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c > lktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > > ---------------------------------------------------------------------- > -------- Get 100% visibility into Java/.NET code with AppDynamics > Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c > lktrk _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? ---------------------------------------------------------------------------- -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From rmorgan62 at ...626... Tue Aug 13 15:14:36 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 13 Aug 2013 06:14:36 -0700 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> Message-ID: Ok, Simplest solution is to install MSSQL Server (personal version should work) and follow directions for accessing an Access data store via MSSQL Server (Lots of info on the net). Then Connect to the SQL server over the network. On Tue, Aug 13, 2013 at 5:57 AM, Ivan Kern wrote: > I thank you all. > > I'm running MS Access on the remote machine and I need actually connect to > MS access. > I still have no solution. > > Kind regards, > Ivan > > -----Urspr?ngliche Nachricht----- > Von: Randall Morgan [mailto:rmorgan62 at ...626...] > Gesendet: Dienstag, 13. August 2013 00:11 > An: nando_f at ...951...; mailing list for gambas users > Betreff: Re: [Gambas-user] Microsoft Access database > > Some ideas... > > Are you running MS Access on the same system under wine? Or on a remote > machine? Do you need to actually connect to ms access or can you import the > access database in to MySQL or Postgres? > > Access is actually a program. It's data-store is a file(s). Access also has > a funny query language that looks almost like T-SQL but is not quite... It > has been a long time since I did this, 2008-2009... But it was both > possible > then to both connect to and import data from an Access database. I am sure > if you search and read you will find a solution. I recall the import used > mbtools. But my code is now gone and I cannot recall all the details. > > Once you know how to accomplish the task at hand, you can use GAMBAS to > program the process. Perhaps by calling mbtools or by directly accessing > the > access database. Also you might find the MSSQL linux server helpful. > Never used it but it should allow serving an access data store over odbc. > > > > > On Mon, Aug 12, 2013 at 8:20 AM, nando wrote: > > > ACCESS db is really just a file ,and not a 'server' like MySQL You > > need software to install on your linux box to tickle the file. > > There is something out there, I did use something on a box a while back. > > (sorry forgot what is was) > > > > > > ---------- Original Message ----------- > > From: Caveat > > To: gambas-user at lists.sourceforge.net > > Sent: Mon, 12 Aug 2013 14:26:54 +0200 > > Subject: Re: [Gambas-user] Microsoft Access database > > > > > Not that I know of, but I have written a system to convert MSAccess > > > databases to MySQL/postgresql/MSSQLServer. It's written in java and > > > uses the jackcess library (http://jackcess.sourceforge.net/). > > > > > > I also wrote a server which makes calls to the jackcess library > > > based on simple text commands, so in theory you could make a basic > > > client in Gambas... > > > > > > Let's first see if anyone has already found a way to talk to access > > > dbs directly in Gambas... > > > > > > Kind regards, > > > Caveat > > > > > > On 12/08/13 13:39, Ivan Kern wrote: > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > Is it possible to connect Microsoft access database with Gambas? > > > > > > > > If yea, please, an example. > > > > > > > > > > > > > > > > Best regards, > > > > > > > > Ivan > > > > > > > > > > ---------------------------------------------------------------------- > > -------- > > > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > > > It's a free troubleshooting tool designed for production. > > > > Get down to code-level detail for bottlenecks, with <2% overhead. > > > > Download for free and get started troubleshooting in minutes. > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c > > lktrk > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > ---------------------------------------------------------------------- > > -------- > > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > > It's a free troubleshooting tool designed for production. > > > Get down to code-level detail for bottlenecks, with <2% overhead. > > > Download for free and get started troubleshooting in minutes. > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c > > lktrk > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------- End of Original Message ------- > > > > > > > > ---------------------------------------------------------------------- > > -------- Get 100% visibility into Java/.NET code with AppDynamics > > Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c > > lktrk _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it > take? > > ---------------------------------------------------------------------------- > -- > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From rmorgan62 at ...626... Tue Aug 13 15:18:58 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 13 Aug 2013 06:18:58 -0700 Subject: [Gambas-user] Microsoft Access database In-Reply-To: References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> Message-ID: Here's how to setup ODBC for Access and MSSQL Server: http://office.microsoft.com/en-us/access-help/administer-odbc-data-sources-HA010275550.aspx On Tue, Aug 13, 2013 at 6:14 AM, Randall Morgan wrote: > Ok, > > Simplest solution is to install MSSQL Server (personal version should > work) and follow directions for accessing an Access data store via MSSQL > Server (Lots of info on the net). Then Connect to the SQL server over the > network. > > > On Tue, Aug 13, 2013 at 5:57 AM, Ivan Kern wrote: > >> I thank you all. >> >> I'm running MS Access on the remote machine and I need actually connect to >> MS access. >> I still have no solution. >> >> Kind regards, >> Ivan >> >> -----Urspr?ngliche Nachricht----- >> Von: Randall Morgan [mailto:rmorgan62 at ...626...] >> Gesendet: Dienstag, 13. August 2013 00:11 >> An: nando_f at ...951...; mailing list for gambas users >> Betreff: Re: [Gambas-user] Microsoft Access database >> >> Some ideas... >> >> Are you running MS Access on the same system under wine? Or on a remote >> machine? Do you need to actually connect to ms access or can you import >> the >> access database in to MySQL or Postgres? >> >> Access is actually a program. It's data-store is a file(s). Access also >> has >> a funny query language that looks almost like T-SQL but is not quite... It >> has been a long time since I did this, 2008-2009... But it was both >> possible >> then to both connect to and import data from an Access database. I am sure >> if you search and read you will find a solution. I recall the import used >> mbtools. But my code is now gone and I cannot recall all the details. >> >> Once you know how to accomplish the task at hand, you can use GAMBAS to >> program the process. Perhaps by calling mbtools or by directly accessing >> the >> access database. Also you might find the MSSQL linux server helpful. >> Never used it but it should allow serving an access data store over odbc. >> >> >> >> >> On Mon, Aug 12, 2013 at 8:20 AM, nando wrote: >> >> > ACCESS db is really just a file ,and not a 'server' like MySQL You >> > need software to install on your linux box to tickle the file. >> > There is something out there, I did use something on a box a while back. >> > (sorry forgot what is was) >> > >> > >> > ---------- Original Message ----------- >> > From: Caveat >> > To: gambas-user at lists.sourceforge.net >> > Sent: Mon, 12 Aug 2013 14:26:54 +0200 >> > Subject: Re: [Gambas-user] Microsoft Access database >> > >> > > Not that I know of, but I have written a system to convert MSAccess >> > > databases to MySQL/postgresql/MSSQLServer. It's written in java and >> > > uses the jackcess library (http://jackcess.sourceforge.net/). >> > > >> > > I also wrote a server which makes calls to the jackcess library >> > > based on simple text commands, so in theory you could make a basic >> > > client in Gambas... >> > > >> > > Let's first see if anyone has already found a way to talk to access >> > > dbs directly in Gambas... >> > > >> > > Kind regards, >> > > Caveat >> > > >> > > On 12/08/13 13:39, Ivan Kern wrote: >> > > > >> > > > >> > > > Hi, >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > Is it possible to connect Microsoft access database with Gambas? >> > > > >> > > > If yea, please, an example. >> > > > >> > > > >> > > > >> > > > Best regards, >> > > > >> > > > Ivan >> > > > >> > > > >> > ---------------------------------------------------------------------- >> > -------- >> > > > Get 100% visibility into Java/.NET code with AppDynamics Lite! >> > > > It's a free troubleshooting tool designed for production. >> > > > Get down to code-level detail for bottlenecks, with <2% overhead. >> > > > Download for free and get started troubleshooting in minutes. >> > > > >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c >> > lktrk >> > > > _______________________________________________ >> > > > Gambas-user mailing list >> > > > Gambas-user at lists.sourceforge.net >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > >> > > >> > > >> > ---------------------------------------------------------------------- >> > -------- >> > > Get 100% visibility into Java/.NET code with AppDynamics Lite! >> > > It's a free troubleshooting tool designed for production. >> > > Get down to code-level detail for bottlenecks, with <2% overhead. >> > > Download for free and get started troubleshooting in minutes. >> > > >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c >> > lktrk >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------- End of Original Message ------- >> > >> > >> > >> > ---------------------------------------------------------------------- >> > -------- Get 100% visibility into Java/.NET code with AppDynamics >> > Lite! >> > It's a free troubleshooting tool designed for production. >> > Get down to code-level detail for bottlenecks, with <2% overhead. >> > Download for free and get started troubleshooting in minutes. >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.c >> > lktrk _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> >> -- >> If you ask me if it can be done. The answer is YES, it can always be done. >> The correct questions however are... What will it cost, and how long will >> it >> take? >> >> ---------------------------------------------------------------------------- >> -- >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > If you ask me if it can be done. The answer is YES, it can always be done. > The correct questions however are... What will it cost, and how long will > it take? > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From bbruen at ...2308... Tue Aug 13 15:31:16 2013 From: bbruen at ...2308... (Bruce) Date: Tue, 13 Aug 2013 23:01:16 +0930 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> Message-ID: <1376400676.8638.30.camel@...2688...> On Tue, 2013-08-13 at 14:57 +0200, Ivan Kern wrote: > I thank you all. > > I'm running MS Access on the remote machine and I need actually connect to > MS access. > I still have no solution. > > Kind regards, > Ivan I am grasping at the thin straws of memory here, but for what it's worth. I used to do something along these lines, but IIRC: a) MSAccess did/does not run as a server process, especially to remote machines. In order to get it to that we had to use ODBC and establish a connection process on the "server" and similarly an ODBC client on the remote "client" machine. In the case of a single connection to the "server" this was reasonably trivial, but if multiple "clients" were involved this bordered on a nightmare. b) the linux/GNU/whatever ODBC libraries we used were extremely basic but did work within their constraints. In short, scalabilty was a pipe dream. c) there was/is a community called databaseadvisors(.com) who were a great deal of help. Looking at your problem from a distance, using a proper rdms is in the long term a better road. ymmd. best of luck Bruce From mckaygerhard at ...626... Tue Aug 13 15:36:36 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 13 Aug 2013 09:06:36 -0430 Subject: [Gambas-user] Build error in gb.net.curl Message-ID: ping? ... theres need curls to have enabled the async DNS querys? i got error building curl related: From: PICCORO McKAY Lenz > > CC gb_net_curl_la-CNet.lo > CNet.c:65: error: ?CURLAUTH_DIGEST_IE? no se declar? aqu? (no en una > funci?n) > CNet.c:146: error: ?CURLE_SSL_CRL_BADFILE? no se declar? aqu? (no en una > funci?n) > CNet.c:147: error: ?CURLE_SSL_ISSUER_ERROR? no se declar? aqu? (no en una > funci?n) > make[5]: *** [gb_net_curl_la-CNet.lo] Error 1 > What is the minimum version that must be used, I can not use the latest, need to know the limit .. for the backports for distributions.. Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From taboege at ...626... Tue Aug 13 15:44:28 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 13 Aug 2013 15:44:28 +0200 Subject: [Gambas-user] Build error in gb.net.curl In-Reply-To: References: Message-ID: <20130813134428.GD833@...2774...> On Tue, 13 Aug 2013, PICCORO McKAY Lenz wrote: > ping? ... theres need curls to have enabled the async DNS querys? i got > error building curl related: > > From: PICCORO McKAY Lenz > > > > > CC gb_net_curl_la-CNet.lo > > CNet.c:65: error: ?CURLAUTH_DIGEST_IE? no se declar? aqu? (no en una > > funci?n) > > CNet.c:146: error: ?CURLE_SSL_CRL_BADFILE? no se declar? aqu? (no en una > > funci?n) > > CNet.c:147: error: ?CURLE_SSL_ISSUER_ERROR? no se declar? aqu? (no en una > > funci?n) > > make[5]: *** [gb_net_curl_la-CNet.lo] Error 1 > > > > What is the minimum version that must be used, I can not use the latest, need > to know the limit .. for the backports for distributions.. > According to the docs[0], it's 7.13. Regards, Tobi [0] http://gambasdoc.org/help/install?v3 From sourceforge-raindog2 at ...94... Tue Aug 13 16:03:52 2013 From: sourceforge-raindog2 at ...94... (Rob Kudla) Date: Tue, 13 Aug 2013 10:03:52 -0400 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <1376400676.8638.30.camel@...2688...> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> <1376400676.8638.30.camel@...2688...> Message-ID: <520A3CC8.7010901@...94...> On 2013-08-13 09:31, Bruce wrote: > a) MSAccess did/does not run as a server process, especially to remote > machines. In order to get it to that we had to use ODBC and establish > a connection process on the "server" and similarly an ODBC client on > the remote "client" machine. In the case of a single connection to the > "server" this was reasonably trivial, but if multiple "clients" were > involved this bordered on a nightmare. This can't be stressed enough. Furthermore, if Access is actually running on the remote machine as Ivan said, that counts as a client. If you access the database via ODBC at the same time as through Access itself, whether your ODBC client is VB, Gambas or anything else, you risk corruption. Like sqlite, Access is designed for single-user data storage, even if Microsoft has added features over the years to make it seem otherwise. I did a project exactly like this about 8 years ago, and we ended up moving the data into a MySQL server, converting the tables to ODBC links using some Access macro we found in a MySQL forum, and accessing the MySQL data natively from Gambas and a web inquiry system. Even so, Access misbehaved constantly and made it a nightmare. Multi-user networked database applications need a multi-user networked database server. Period. Rob From rmorgan62 at ...626... Tue Aug 13 16:44:02 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Tue, 13 Aug 2013 07:44:02 -0700 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <520A3CC8.7010901@...94...> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> <1376400676.8638.30.camel@...2688...> <520A3CC8.7010901@...94...> Message-ID: This is true, You should not change your access database while connecting to it via ODBC. Also, you may find some queries don't work as expected. Again, Access looks like a T-SQL database but is not really. It would be best to use the ODBC connection to update a local MySQL or Postgres database on your Linux box. Not only would it be faster, but much more reliable. If you provide access via odbc through MSSQL Server and not via MS Access then, the issues with multiple clients and updates shouldn't be an issue as MSSQL manages the connections and data source. On Tue, Aug 13, 2013 at 7:03 AM, Rob Kudla wrote: > On 2013-08-13 09:31, Bruce wrote: > > a) MSAccess did/does not run as a server process, especially to remote > > machines. In order to get it to that we had to use ODBC and establish > > a connection process on the "server" and similarly an ODBC client on > > the remote "client" machine. In the case of a single connection to the > > "server" this was reasonably trivial, but if multiple "clients" were > > involved this bordered on a nightmare. > > This can't be stressed enough. Furthermore, if Access is actually running > on the remote machine as Ivan said, that counts as a client. If you access > the database via ODBC at the same time as through Access itself, whether > your ODBC client is VB, Gambas or anything else, you risk corruption. Like > sqlite, Access is designed for single-user data storage, even if Microsoft > has added features over the years to make it seem otherwise. > > I did a project exactly like this about 8 years ago, and we ended up > moving the data into a MySQL server, converting the tables to ODBC links > using some Access macro we found in a MySQL forum, and accessing the MySQL > data natively from Gambas and a web inquiry system. Even so, Access > misbehaved constantly and made it a nightmare. > > Multi-user networked database applications need a multi-user networked > database > server. Period. > > Rob > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From Gambas at ...1950... Tue Aug 13 16:52:00 2013 From: Gambas at ...1950... (Caveat) Date: Tue, 13 Aug 2013 16:52:00 +0200 Subject: [Gambas-user] Microsoft Access database In-Reply-To: <520A3CC8.7010901@...94...> References: <003601ce9750$90a71550$b1f53ff0$@freenet.de> <5208D48E.7000709@...1950...> <20130812151830.M78415@...951...> <001801ce9824$a0b58ba0$e220a2e0$@freenet.de> <1376400676.8638.30.camel@...2688...> <520A3CC8.7010901@...94...> Message-ID: <520A4810.9070409@...1950...> Hi Ivan Ready to take another look at converting your multi-user database (ahem! SINGLE USER FILE!) to a proper dbms? :-D I did also look at mdbtools and the like before rolling my own conversion tool but nothing worked particularly well... I ended up with some fugly combination of awk, sed, grep, etc. and it still didn't do the conversion right! If your data isn't particularly sensitive nor particularly huge, send it on and I'll see what my conversion program makes of it. Right now, I've converted the database we use at work for stock control, invoicing etc. to both MSSQLServer and MySQL and of course, the ubiquitous Northwind sample db. I'm still planning on adding support for binary data fields... if you don't have any, then you're in luck! Kind regards, Caveat On 13/08/13 16:03, Rob Kudla wrote: > On 2013-08-13 09:31, Bruce wrote: >> a) MSAccess did/does not run as a server process, especially to remote >> machines. In order to get it to that we had to use ODBC and establish >> a connection process on the "server" and similarly an ODBC client on >> the remote "client" machine. In the case of a single connection to the >> "server" this was reasonably trivial, but if multiple "clients" were >> involved this bordered on a nightmare. > This can't be stressed enough. Furthermore, if Access is actually running > on the remote machine as Ivan said, that counts as a client. If you access > the database via ODBC at the same time as through Access itself, whether > your ODBC client is VB, Gambas or anything else, you risk corruption. Like > sqlite, Access is designed for single-user data storage, even if Microsoft > has added features over the years to make it seem otherwise. > > I did a project exactly like this about 8 years ago, and we ended up > moving the data into a MySQL server, converting the tables to ODBC links > using some Access macro we found in a MySQL forum, and accessing the MySQL > data natively from Gambas and a web inquiry system. Even so, Access > misbehaved constantly and made it a nightmare. > > Multi-user networked database applications need a multi-user networked database > server. Period. > > Rob > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From eilert-sprachen at ...221... Tue Aug 13 17:31:18 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 13 Aug 2013 17:31:18 +0200 Subject: [Gambas-user] Sending mails "solved" In-Reply-To: References: <52090D42.9020701@...221...> <52090EBD.407@...1...> <5209D13D.5070305@...221...> Message-ID: <520A5146.6010601@...221...> Yes, not from a server (MTA), but from an e-mail client like Thunderbird, an MUA. So I tried to use yahoo and the others as MTA. Am 13.08.2013 13:09, schrieb Randall Morgan: > A little food for thought.... > > I am not sure about Yahoo or Google over seas but here in the US Google for > sure, and I believe Yahoo both will not accept mail from a home server. I > used to run my own mail servers and still do but with the limitation that I > cannot send mail to Google without having a paid Google account for each > domain. Google and many free mail suppliers did this to combat spam. I have > not tried in a year or so to send from any of my domains that do not have a > paid google account attached. So if they reversed this, I am unaware. > > > On Mon, Aug 12, 2013 at 11:25 PM, Rolf-Werner Eilert < > eilert-sprachen at ...221...> wrote: > >> >> >> Am 12.08.2013 18:35, schrieb Beno?t Minisini: >>> Le 12/08/2013 18:28, Rolf-Werner Eilert a ?crit : >>>> Hi folks, >>>> >>>> just FYI, for you were so nice to try to get me up with the Gambas SMTP >>>> client: >>>> >>>> Finally, I picked up a discussion Benoit had had with someone else some >>>> time ago that it's tricky to really implement authorisation here. Then I >>>> remembered another discussion in some forum about a similar thing. So I >>>> searched again and found a script named "sendEmail" written in Perl >>>> which is easily doing the job. >>>> >>>> It hasn't been updated since 2009, but it's running out of the box, so I >>>> simply use a Shell command to let it send the mails the way I wanted. >>>> >>>> For Benoit this could be a template to complete his SMTP in Gambas. It's >>>> well commented, you can find it at >>>> http://caspian.dotconf.net/menu/Software/SendEmail/ >>>> >>>> Regards >>>> >>>> Rolf >>>> >>> >>> SmtpClient supports SSL and TLS authorisation. What was not working? >>> >> >> Well... it simply didn't send the mails, or more specific: the mails >> never arrived anywhere, and I couldn't make out any error messages >> anywhere. The only message I got was the ending "-> quit". During my >> holidays, it might have been caused by a bad internet connection, but it >> wouldn't run here either. >> >> Maybe you remember, you told me to look in the "standard errors", but I >> didn't find anything at /var/log... >> >> Then this weekend I found a discussion from last year or so you had had >> with someone on the SMTP topic, and it turned out you could not find a >> way to complete programming. In the documentation it says "not >> everything is supported yet". So I looked for another way of >> implementing it. >> >> Here is my test project which was intended to be included into the >> bigger main project once it had been running. My personal data have been >> changed: >> >> Public Sub Main() >> Dim t$ As String >> Dim email As New SmtpClient >> >> t$ = File.Load(Application.Path &/ "test.pdf") >> >> With email >> .Add("This is the mail text") >> .Add(t$, mime.Binary, "test.pdf") >> .To.Add("eilert-sprachen at ...221...") >> .From = "myname at ...20..." >> .Subject = "Ein Test" >> .Encrypt = Net.SSL >> .Port = 587 >> .Host = "smtp.web.de" >> .User = "username" >> .Password = "password" >> .Debug = True >> End With >> >> Try email.Send >> >> If Error Then >> Print Error.Text >> Print Error.Where >> Endif >> >> End >> >> >> I tried this with my yahoo account and t-online account (= German >> Telecom), sending mails forth and back, but to no avail. >> >> When I tried sendEmail giving it the same data, the mail was sent at once. >> >> Rolf >> >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > From eilert-sprachen at ...221... Tue Aug 13 17:55:57 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 13 Aug 2013 17:55:57 +0200 Subject: [Gambas-user] Printing from command line possible? Message-ID: <520A570D.8080208@...221...> Somehow I remember that you already pointed me to the solution - was it you Benoit? I lost part of my mails from holidays, so no chance to look it up. When I have a command line program and want it to produce a PDF - how can I do without having the X server? From the IDE, there is no problem, everything running as expected. But as soon as I try to start the program from command line, I get "X server not found". The problem seems to be gb.qt4 which is necessary to have "Printer". Thanks for your help Rolf From mckaygerhard at ...626... Tue Aug 13 18:07:03 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 13 Aug 2013 11:37:03 -0430 Subject: [Gambas-user] Build error in gb.net.curl Message-ID: From: Tobias Boege > > > CC gb_net_curl_la-CNet.lo > > > CNet.c:65: error: ?CURLAUTH_DIGEST_IE? no se declar? aqu? (no en una > > > funci?n) > > > CNet.c:146: error: ?CURLE_SSL_CRL_BADFILE? no se declar? aqu? (no en > una > > > funci?n) > > > CNet.c:147: error: ?CURLE_SSL_ISSUER_ERROR? no se declar? aqu? (no en > una > > > funci?n) > > > make[5]: *** [gb_net_curl_la-CNet.lo] Error 1 > > > > > What is the minimum version that must be used, I can not use the latest, > need > > to know the limit .. for the backports for distributions.. > >According to the docs[0], it's 7.13. > i have 7.18 and not compiled, so then? i need usefully info.. not references to outdated docs... i repeat: does need curl enabled async DNS querys with lib c-ares? theres need curls to have enabled the async DNS querys? o what minimun version do i have? From gambas at ...2524... Tue Aug 13 18:25:24 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Aug 2013 16:25:24 +0000 Subject: [Gambas-user] Issue 440 in gambas: Faulty error message from valid code In-Reply-To: <4-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> References: <4-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> <0-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Message-ID: <5-6813199134517018827-14566035306270880607-gambas=googlecode.com@...2524...> Comment #5 on issue 440 by jussi.la... at ...626...: Faulty error message from valid code http://code.google.com/p/gambas/issues/detail?id=440 OK, I understand now. Is it possible to have warning about this? Otherwise this may be bit cryptic. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From mckaygerhard at ...626... Tue Aug 13 18:54:44 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 13 Aug 2013 12:24:44 -0430 Subject: [Gambas-user] Build error in gb.net.curl In-Reply-To: References: Message-ID: i noted also that in debian there are two devel packages from curl: libcurl4-gnutls-dev libcurl4-openssl-dev agains what flavor must be complied gambas? and again? also does need curl enabled async DNS querys with lib c-ares? > CC gb_net_curl_la-CNet.lo > CNet.c:65: error: ?CURLAUTH_DIGEST_IE? no se declar? aqu? (no en una >> funci?n) >> CNet.c:146: error: ?CURLE_SSL_CRL_BADFILE? no se declar? aqu? (no en una >> funci?n) >> CNet.c:147: error: ?CURLE_SSL_ISSUER_ERROR? no se declar? aqu? (no en >> una funci?n) >> make[5]: *** [gb_net_curl_la-CNet.lo] Error 1 >> > seem based ohn errors i have installed the openssl flavor? ping? From gambas at ...2524... Wed Aug 14 01:15:40 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Tue, 13 Aug 2013 23:15:40 +0000 Subject: [Gambas-user] Issue 460 in gambas: Desktop.Sendkeys("{[Control_L]A}") does not work In-Reply-To: <2-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> <0-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-16562977428533103275-gambas=googlecode.com@...2524...> Comment #3 on issue 460 by victorg... at ...626...: Desktop.Sendkeys("{[Control_L]A}") does not work http://code.google.com/p/gambas/issues/detail?id=460 Righ now my projet is ongoing and working,thanks a lot for your recomendation. Regards Victor G -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From shanep1967 at ...169... Wed Aug 14 02:13:11 2013 From: shanep1967 at ...169... (Shane) Date: Wed, 14 Aug 2013 10:13:11 +1000 Subject: [Gambas-user] update Message-ID: <520ACB97.3040101@...169...> just updated gambas from http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu now gambas wont run from command line i get $ gambas3 gbr3: unable to load component: gb.clipper From sebikul at ...626... Wed Aug 14 05:13:43 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Wed, 14 Aug 2013 00:13:43 -0300 Subject: [Gambas-user] update In-Reply-To: <520ACB97.3040101@...169...> References: <520ACB97.3040101@...169...> Message-ID: I'm really sorry about that. I did not have enough time to update the PPA since gb.clipper came out. I will fix it tomorrow as soon as I get home. If it's urgent you can always downgrade your installation from the dpkg cache. Downgrading the IDE package to a working version should suffice. I will let you know when new builds are on the way. On Aug 13, 2013 9:14 PM, "Shane" wrote: > just updated gambas from > http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu > now gambas wont run from command line i get $ gambas3 gbr3: unable to > load component: gb.clipper > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep1967 at ...169... Wed Aug 14 06:08:43 2013 From: shanep1967 at ...169... (Shane) Date: Wed, 14 Aug 2013 14:08:43 +1000 Subject: [Gambas-user] update In-Reply-To: References: <520ACB97.3040101@...169...> Message-ID: <520B02CB.1010204@...169...> On 14/08/13 13:13, Sebastian Kulesz wrote: > I'm really sorry about that. I did not have enough time to update the PPA > since gb.clipper came out. I will fix it tomorrow as soon as I get home. > > If it's urgent you can always downgrade your installation from the dpkg > cache. Downgrading the IDE package to a working version should suffice. > > I will let you know when new builds are on the way. > On Aug 13, 2013 9:14 PM, "Shane" wrote: > >> just updated gambas from >> http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu >> now gambas wont run from command line i get $ gambas3 gbr3: unable to >> load component: gb.clipper >> >> >> >> ------------------------------------------------------------------------------ >> Get 100% visibility into Java/.NET code with AppDynamics Lite! >> It's a free troubleshooting tool designed for production. >> Get down to code-level detail for bottlenecks, with <2% overhead. >> Download for free and get started troubleshooting in minutes. >> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ok Thanks i Downgraded now its working From eilert-sprachen at ...221... Wed Aug 14 09:22:05 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 14 Aug 2013 09:22:05 +0200 Subject: [Gambas-user] Cairo library - printing text Message-ID: <520B301D.6060107@...221...> Hi all, Found the gb.cairo class, and I hope it will make PDFs from command line. The task is not too ambitious, just 2 pages, but there is a lot of text (4 paragraphs) on one of them. Due to documentation, the DrawText function in Cairo just prints a single line, and I have to move to the starting point before, is that correct? Is there another function that has as much comfort as the DrawText function of the Paint class? And what is the difference between DrawText and Text? In the documentation, it says Begin only starts printing on an image by now, but how with PDF? (A simple example of how to start and end printing with Cairo would be nice here, e. g. on the first Cairo page.) Thanks for your advice. Rolf From gambas at ...1... Wed Aug 14 10:11:19 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 14 Aug 2013 10:11:19 +0200 Subject: [Gambas-user] Cairo library - printing text In-Reply-To: <520B301D.6060107@...221...> References: <520B301D.6060107@...221...> Message-ID: <520B3BA7.8050100@...1...> Le 14/08/2013 09:22, Rolf-Werner Eilert a ?crit : > Hi all, > > Found the gb.cairo class, and I hope it will make PDFs from command line. > > The task is not too ambitious, just 2 pages, but there is a lot of text > (4 paragraphs) on one of them. > > Due to documentation, the DrawText function in Cairo just prints a > single line, and I have to move to the starting point before, is that > correct? Is there another function that has as much comfort as the > DrawText function of the Paint class? And what is the difference between > DrawText and Text? > > In the documentation, it says Begin only starts printing on an image by > now, but how with PDF? (A simple example of how to start and end > printing with Cairo would be nice here, e. g. on the first Cairo page.) > > Thanks for your advice. > > Rolf > The documentation is not up to date. Now gb.cairo can draws on any of its "Surface" classes (you can read the Cairo documentation and Cairo examples, as gb.cairo has almost exactly the same interface, usually simplyfing it). It works like that : Dim hCairoPdfSurface As CairoPdfSurface hCairoPdfSurface = New CairoPdfSurface ( Path As String, Width As Float, Height As Float ) Cairo.Begin(hCairoPdfSurface) ... Cairo.ShowPage() ' Go to the next page ... Cairo.End() As for drawing text : Cairo implements just a "toy" API. That means if you want full unicode text handling, you need to use gb.qt4 or gb.gtk. Cairo.Text() adds text glyphs to the current path (cairo_text_path() cairo function), while Cairo.DrawText() draws them directly (cairo_show_text() cairo function) Regards, -- Beno?t Minisini From gambas at ...1... Wed Aug 14 10:16:47 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 14 Aug 2013 10:16:47 +0200 Subject: [Gambas-user] Cairo library - printing text In-Reply-To: <520B3BA7.8050100@...1...> References: <520B301D.6060107@...221...> <520B3BA7.8050100@...1...> Message-ID: <520B3CEF.9000104@...1...> Le 14/08/2013 10:11, Beno?t Minisini a ?crit : > The documentation is not up to date. Now gb.cairo can draws on any of ---> "can draw" > its "Surface" classes (you can read the Cairo documentation and Cairo > examples, as gb.cairo has almost exactly the same interface, usually > simplyfing it). ---> "simplifying it" -- Beno?t Minisini From eilert-sprachen at ...221... Wed Aug 14 12:26:06 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 14 Aug 2013 12:26:06 +0200 Subject: [Gambas-user] Cairo library - printing text In-Reply-To: <520B3BA7.8050100@...1...> References: <520B301D.6060107@...221...> <520B3BA7.8050100@...1...> Message-ID: <520B5B3E.10802@...221...> Am 14.08.2013 10:11, schrieb Beno?t Minisini: > Le 14/08/2013 09:22, Rolf-Werner Eilert a ?crit : >> Hi all, >> >> Found the gb.cairo class, and I hope it will make PDFs from command line. >> >> The task is not too ambitious, just 2 pages, but there is a lot of text >> (4 paragraphs) on one of them. >> >> Due to documentation, the DrawText function in Cairo just prints a >> single line, and I have to move to the starting point before, is that >> correct? Is there another function that has as much comfort as the >> DrawText function of the Paint class? And what is the difference between >> DrawText and Text? >> >> In the documentation, it says Begin only starts printing on an image by >> now, but how with PDF? (A simple example of how to start and end >> printing with Cairo would be nice here, e. g. on the first Cairo page.) >> >> Thanks for your advice. >> >> Rolf >> > > The documentation is not up to date. Now gb.cairo can draws on any of > its "Surface" classes (you can read the Cairo documentation and Cairo > examples, as gb.cairo has almost exactly the same interface, usually > simplyfing it). > > It works like that : > > Dim hCairoPdfSurface As CairoPdfSurface > > hCairoPdfSurface = New CairoPdfSurface ( Path As String, Width As Float, > Height As Float ) > > Cairo.Begin(hCairoPdfSurface) > > ... > > Cairo.ShowPage() ' Go to the next page > > ... > > Cairo.End() > > As for drawing text : Cairo implements just a "toy" API. That means if > you want full unicode text handling, you need to use gb.qt4 or gb.gtk. > > Cairo.Text() adds text glyphs to the current path (cairo_text_path() > cairo function), while Cairo.DrawText() draws them directly > (cairo_show_text() cairo function) > > Regards, > Just tried it, this runs well, but how to set font-name and font-size for .Text and .DrawText? Rolf From eilert-sprachen at ...221... Wed Aug 14 12:30:37 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 14 Aug 2013 12:30:37 +0200 Subject: [Gambas-user] Cairo library - printing text In-Reply-To: <520B5B3E.10802@...221...> References: <520B301D.6060107@...221...> <520B3BA7.8050100@...1...> <520B5B3E.10802@...221...> Message-ID: <520B5C4D.2090205@...221...> Am 14.08.2013 12:26, schrieb Rolf-Werner Eilert: > > > Am 14.08.2013 10:11, schrieb Beno?t Minisini: >> Le 14/08/2013 09:22, Rolf-Werner Eilert a ?crit : >>> Hi all, >>> >>> Found the gb.cairo class, and I hope it will make PDFs from command line. >>> >>> The task is not too ambitious, just 2 pages, but there is a lot of text >>> (4 paragraphs) on one of them. >>> >>> Due to documentation, the DrawText function in Cairo just prints a >>> single line, and I have to move to the starting point before, is that >>> correct? Is there another function that has as much comfort as the >>> DrawText function of the Paint class? And what is the difference between >>> DrawText and Text? >>> >>> In the documentation, it says Begin only starts printing on an image by >>> now, but how with PDF? (A simple example of how to start and end >>> printing with Cairo would be nice here, e. g. on the first Cairo page.) >>> >>> Thanks for your advice. >>> >>> Rolf >>> >> >> The documentation is not up to date. Now gb.cairo can draws on any of >> its "Surface" classes (you can read the Cairo documentation and Cairo >> examples, as gb.cairo has almost exactly the same interface, usually >> simplyfing it). >> >> It works like that : >> >> Dim hCairoPdfSurface As CairoPdfSurface >> >> hCairoPdfSurface = New CairoPdfSurface ( Path As String, Width As Float, >> Height As Float ) >> >> Cairo.Begin(hCairoPdfSurface) >> >> ... >> >> Cairo.ShowPage() ' Go to the next page >> >> ... >> >> Cairo.End() >> >> As for drawing text : Cairo implements just a "toy" API. That means if >> you want full unicode text handling, you need to use gb.qt4 or gb.gtk. >> >> Cairo.Text() adds text glyphs to the current path (cairo_text_path() >> cairo function), while Cairo.DrawText() draws them directly >> (cairo_show_text() cairo function) >> >> Regards, >> > > Just tried it, this runs well, but how to set font-name and font-size > for .Text and .DrawText? > > Rolf Sorry, rubbish, I found it... :-) From taboege at ...626... Wed Aug 14 15:57:26 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 14 Aug 2013 15:57:26 +0200 Subject: [Gambas-user] Interest in a difficult bug? In-Reply-To: <52093F2C.6000207@...1...> References: <20130810120605.GK511@...2774...> <52065D2C.8010107@...1...> <52065DB3.9060606@...1...> <20130810165721.GB497@...2774...> <520911AF.3080103@...1...> <520911F0.7010709@...1...> <52093F2C.6000207@...1...> Message-ID: <20130814135726.GE728@...2774...> On Mon, 12 Aug 2013, Beno?t Minisini wrote: > Le 12/08/2013 18:48, Beno?t Minisini a ?crit : > > Le 12/08/2013 18:47, Beno?t Minisini a ?crit : > >> > >> No crash at all there. The line: > >> > >> Shell "setsid sleep 10000" Wait > >> > >> never returns until the sleep is exausted or if I kill it manually. Then > >> we enter the next loop which never terminate, as "pgrep sleep" now > >> always return nothing. > >> > > > > OK, got it. I had to add a "&" at the end of the shell command. > > > > The two bugs should be fixed by revision #5790. > Yep. They are fixed. Thanks, Tobi From sebikul at ...626... Wed Aug 14 18:35:00 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Wed, 14 Aug 2013 13:35:00 -0300 Subject: [Gambas-user] update In-Reply-To: <520B02CB.1010204@...169...> References: <520ACB97.3040101@...169...> <520B02CB.1010204@...169...> Message-ID: I have already updated the PPA. I restructured the way it is build so updating it is easier and faster, just to avoid this situations. Expect the new builds to be available within a couple of hours. On Wed, Aug 14, 2013 at 1:08 AM, Shane wrote: > On 14/08/13 13:13, Sebastian Kulesz wrote: > > I'm really sorry about that. I did not have enough time to update the PPA > > since gb.clipper came out. I will fix it tomorrow as soon as I get home. > > > > If it's urgent you can always downgrade your installation from the dpkg > > cache. Downgrading the IDE package to a working version should suffice. > > > > I will let you know when new builds are on the way. > > On Aug 13, 2013 9:14 PM, "Shane" wrote: > > > >> just updated gambas from > >> http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu > >> now gambas wont run from command line i get $ gambas3 gbr3: unable to > >> load component: gb.clipper > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Get 100% visibility into Java/.NET code with AppDynamics Lite! > >> It's a free troubleshooting tool designed for production. > >> Get down to code-level detail for bottlenecks, with <2% overhead. > >> Download for free and get started troubleshooting in minutes. > >> > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ok Thanks i Downgraded now its working > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From ian.roper at ...1974... Wed Aug 14 19:49:57 2013 From: ian.roper at ...1974... (Ian Roper) Date: Thu, 15 Aug 2013 01:49:57 +0800 Subject: [Gambas-user] Gambas Comparison constant Gb.Like - How does it work ? Message-ID: <520BC345.2050903@...1974...> Greetings, Could you please explain the way in which the comparison constant 'gb.like' works. I tried to use this to search a string array. TmpArry.Add("Something") TmpArry.Add("Another Thing") If TmpArry.Find("some",gb.like) > -1 then {/this does not work}// / I found the behavior was the same as gb.IgnoreCase. it will return a value of the Array Index if you do this If TmpArry.Find("something",gb.like) > -1 then {/this does work !}// / I made the assumption that it would search from left to right starting at the 'Start' parameter I tried this: If TmpArry.Find("some",gb.like,0) > -1 then {/this does not work}// / If TmpArry.Find("some",gb.like,1) > -1 then {/this does not work}// /There was no difference in the results. Many thanks. Ian // From gambas at ...1... Wed Aug 14 20:18:31 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 14 Aug 2013 20:18:31 +0200 Subject: [Gambas-user] Gambas Comparison constant Gb.Like - How does it work ? In-Reply-To: <520BC345.2050903@...1974...> References: <520BC345.2050903@...1974...> Message-ID: <520BC9F7.9040101@...1...> Le 14/08/2013 19:49, Ian Roper a ?crit : > Greetings, > > Could you please explain the way in which the comparison constant > 'gb.like' works. > I tried to use this to search a string array. > > TmpArry.Add("Something") > TmpArry.Add("Another Thing") > If TmpArry.Find("some",gb.like) > -1 then {/this does not work}// > / > I found the behavior was the same as gb.IgnoreCase. > it will return a value of the Array Index if you do this > > If TmpArry.Find("something",gb.like) > -1 then {/this does work !}// > / > I made the assumption that it would search from left to right starting > at the 'Start' parameter > I tried this: > If TmpArry.Find("some",gb.like,0) > -1 then {/this does not work}// > / > If TmpArry.Find("some",gb.like,1) > -1 then {/this does not work}// > > /There was no difference in the results. > > Many thanks. > > Ian > // It works like the LIKE instruction. Did you read the documentation of the LIKE instruction? -- Beno?t Minisini From gambas at ...1... Wed Aug 14 20:19:32 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Wed, 14 Aug 2013 20:19:32 +0200 Subject: [Gambas-user] Build error in gb.net.curl In-Reply-To: References: Message-ID: <520BCA34.7040807@...1...> Le 13/08/2013 18:54, PICCORO McKAY Lenz a ?crit : > i noted also that in debian there are two devel packages from curl: > > libcurl4-gnutls-dev > libcurl4-openssl-dev > > agains what flavor must be complied gambas? > > and again? also does need curl enabled async DNS querys with lib c-ares? > >> CC gb_net_curl_la-CNet.lo > >> CNet.c:65: error: ?CURLAUTH_DIGEST_IE? no se declar? aqu? (no en una >>> funci?n) >>> CNet.c:146: error: ?CURLE_SSL_CRL_BADFILE? no se declar? aqu? (no en una >>> funci?n) >>> CNet.c:147: error: ?CURLE_SSL_ISSUER_ERROR? no se declar? aqu? (no en >>> una funci?n) >>> make[5]: *** [gb_net_curl_la-CNet.lo] Error 1 >>> >> > seem based ohn errors i have installed the openssl flavor? > > ping? Which version of libcurl is installed on your system? Why are your mails full of unreadable characters? -- Beno?t Minisini From eilert-sprachen at ...221... Thu Aug 15 12:07:52 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Aug 2013 12:07:52 +0200 Subject: [Gambas-user] strange behaviour from commandline - empty mail attachments Message-ID: <520CA878.2080803@...221...> I could build a client which prints a pdf from commandline and sends it to someone via e-mail, the Cairo class makes the pdfs. My Gambas program is called by cron. It checks a mailbox and reads the mails if any. These are contact forms. The data are then processed into a pdf and the resulting pdf sent back to the person which sent the contact form. The strange thing is, as long as I start the program by hand, everything runs as expected. But when it is started by cron, the pdfs which are sent back reach the recipient empty, i. e. 0 Bytes. Sending is achieved by an external Perl script named sendEmail, I shell out to start it. (This is because the SMTP client in Gambas doesn't want to send these mails via any of my providers, haven't found the reason yet.) But it doesn't seem to be this script's mistake. I tested the same pdf-file with a special version of the program which jumped directly into mail despatch, and when I started it from within the IDE, everything ran fine, but from cron it would send 0 byte pdfs. This is slightly OT, but it might have to do with the way Gambas handles Shells or file rights or something completely different... Does anyone here have an idea? Rolf From bbruen at ...2308... Thu Aug 15 12:25:18 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 15 Aug 2013 19:55:18 +0930 Subject: [Gambas-user] strange behaviour from commandline - empty mail attachments In-Reply-To: <520CA878.2080803@...221...> References: <520CA878.2080803@...221...> Message-ID: <1376562319.8638.46.camel@...2688...> On Thu, 2013-08-15 at 12:07 +0200, Rolf-Werner Eilert wrote: > I could build a client which prints a pdf from commandline and sends it > to someone via e-mail, the Cairo class makes the pdfs. > > My Gambas program is called by cron. It checks a mailbox and reads the > mails if any. These are contact forms. The data are then processed into > a pdf and the resulting pdf sent back to the person which sent the > contact form. > > The strange thing is, as long as I start the program by hand, everything > runs as expected. But when it is started by cron, the pdfs which are > sent back reach the recipient empty, i. e. 0 Bytes. > > Sending is achieved by an external Perl script named sendEmail, I shell > out to start it. (This is because the SMTP client in Gambas doesn't want > to send these mails via any of my providers, haven't found the reason yet.) > > But it doesn't seem to be this script's mistake. I tested the same > pdf-file with a special version of the program which jumped directly > into mail despatch, and when I started it from within the IDE, > everything ran fine, but from cron it would send 0 byte pdfs. > > This is slightly OT, but it might have to do with the way Gambas handles > Shells or file rights or something completely different... Does anyone > here have an idea? > > Rolf Hi Rolf, The first thing I'd be looking at is your working directories, I presume you are using temporary files somewhere. Don't forget that the cron daemon is running in a completely different environment to your User environment. hth Bruce From eilert-sprachen at ...221... Thu Aug 15 12:44:30 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Aug 2013 12:44:30 +0200 Subject: [Gambas-user] strange behaviour from commandline - empty mail attachments In-Reply-To: <1376562319.8638.46.camel@...2688...> References: <520CA878.2080803@...221...> <1376562319.8638.46.camel@...2688...> Message-ID: <520CB10E.8000307@...221...> Am 15.08.2013 12:25, schrieb Bruce: > On Thu, 2013-08-15 at 12:07 +0200, Rolf-Werner Eilert wrote: >> I could build a client which prints a pdf from commandline and sends it >> to someone via e-mail, the Cairo class makes the pdfs. >> >> My Gambas program is called by cron. It checks a mailbox and reads the >> mails if any. These are contact forms. The data are then processed into >> a pdf and the resulting pdf sent back to the person which sent the >> contact form. >> >> The strange thing is, as long as I start the program by hand, everything >> runs as expected. But when it is started by cron, the pdfs which are >> sent back reach the recipient empty, i. e. 0 Bytes. >> >> Sending is achieved by an external Perl script named sendEmail, I shell >> out to start it. (This is because the SMTP client in Gambas doesn't want >> to send these mails via any of my providers, haven't found the reason yet.) >> >> But it doesn't seem to be this script's mistake. I tested the same >> pdf-file with a special version of the program which jumped directly >> into mail despatch, and when I started it from within the IDE, >> everything ran fine, but from cron it would send 0 byte pdfs. >> >> This is slightly OT, but it might have to do with the way Gambas handles >> Shells or file rights or something completely different... Does anyone >> here have an idea? >> >> Rolf > > Hi Rolf, > > The first thing I'd be looking at is your working directories, I presume > you are using temporary files somewhere. Don't forget that the cron > daemon is running in a completely different environment to your User > environment. > > hth > Bruce > > Yes, this is something I suspected, but I cannot imagine what should be wrong. I only give complete paths to the programs, cron starts the Gambas app under my rights, and it is running as expected up to the point where the helper script is to upload the pdf file. Another point: There is a file for the mail body text which is formed by the Gambas app before calling the external script, and the script reads it and inserts it into the mail properly. Rights are 644 for all files. So why does the script send an empty pdf then? In the logs, there is nothing which would point to a refused file. The provider takes and acknowledges receipt of it. So the only thing I could think of is that the script indicates the name of the file "xyz.pdf" but never sends any data for it, then simply says "that's it". So, what could cause the script to overlook one file and accept another? Rolf From eilert-sprachen at ...221... Thu Aug 15 13:22:49 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Aug 2013 13:22:49 +0200 Subject: [Gambas-user] strange behaviour from commandline - empty mail attachments In-Reply-To: <1376562319.8638.46.camel@...2688...> References: <520CA878.2080803@...221...> <1376562319.8638.46.camel@...2688...> Message-ID: <520CBA09.9060606@...221...> Am 15.08.2013 12:25, schrieb Bruce: > On Thu, 2013-08-15 at 12:07 +0200, Rolf-Werner Eilert wrote: >> I could build a client which prints a pdf from commandline and sends it >> to someone via e-mail, the Cairo class makes the pdfs. >> >> My Gambas program is called by cron. It checks a mailbox and reads the >> mails if any. These are contact forms. The data are then processed into >> a pdf and the resulting pdf sent back to the person which sent the >> contact form. >> >> The strange thing is, as long as I start the program by hand, everything >> runs as expected. But when it is started by cron, the pdfs which are >> sent back reach the recipient empty, i. e. 0 Bytes. >> >> Sending is achieved by an external Perl script named sendEmail, I shell >> out to start it. (This is because the SMTP client in Gambas doesn't want >> to send these mails via any of my providers, haven't found the reason yet.) >> >> But it doesn't seem to be this script's mistake. I tested the same >> pdf-file with a special version of the program which jumped directly >> into mail despatch, and when I started it from within the IDE, >> everything ran fine, but from cron it would send 0 byte pdfs. >> >> This is slightly OT, but it might have to do with the way Gambas handles >> Shells or file rights or something completely different... Does anyone >> here have an idea? >> >> Rolf > > Hi Rolf, > > The first thing I'd be looking at is your working directories, I presume > you are using temporary files somewhere. Don't forget that the cron > daemon is running in a completely different environment to your User > environment. > > hth > Bruce > I quickly browsed through the Perl script, and there are error messages in case it cannot read the attachment. I'm not that intimate with Perl, but I still suspect the Shell mechanisms of Gambas to confuse the script. Rolf From eilert-sprachen at ...221... Thu Aug 15 13:34:13 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Aug 2013 13:34:13 +0200 Subject: [Gambas-user] strange behaviour from commandline - empty mail attachments In-Reply-To: <1376562319.8638.46.camel@...2688...> References: <520CA878.2080803@...221...> <1376562319.8638.46.camel@...2688...> Message-ID: <520CBCB5.6060506@...221...> Am 15.08.2013 12:25, schrieb Bruce: > On Thu, 2013-08-15 at 12:07 +0200, Rolf-Werner Eilert wrote: >> I could build a client which prints a pdf from commandline and sends it >> to someone via e-mail, the Cairo class makes the pdfs. >> >> My Gambas program is called by cron. It checks a mailbox and reads the >> mails if any. These are contact forms. The data are then processed into >> a pdf and the resulting pdf sent back to the person which sent the >> contact form. >> >> The strange thing is, as long as I start the program by hand, everything >> runs as expected. But when it is started by cron, the pdfs which are >> sent back reach the recipient empty, i. e. 0 Bytes. >> >> Sending is achieved by an external Perl script named sendEmail, I shell >> out to start it. (This is because the SMTP client in Gambas doesn't want >> to send these mails via any of my providers, haven't found the reason yet.) >> >> But it doesn't seem to be this script's mistake. I tested the same >> pdf-file with a special version of the program which jumped directly >> into mail despatch, and when I started it from within the IDE, >> everything ran fine, but from cron it would send 0 byte pdfs. >> >> This is slightly OT, but it might have to do with the way Gambas handles >> Shells or file rights or something completely different... Does anyone >> here have an idea? >> >> Rolf > > Hi Rolf, > > The first thing I'd be looking at is your working directories, I presume > you are using temporary files somewhere. Don't forget that the cron > daemon is running in a completely different environment to your User > environment. > > hth > Bruce > Just to make this complete, I did another test: Even when I start the Gambas program from commandline by hand, it runs flawlessly. Mails are sent and attachments arrive. Yes, it really seems to be the cron environment which somehow confuses the external script. If I don't get it running this way, would you see another way? (Why only don't I get the SMTP client in Gambas running? It would solve this problem... Alright, I'll start another thread for it...) Rolf From eilert-sprachen at ...221... Thu Aug 15 13:40:20 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 15 Aug 2013 13:40:20 +0200 Subject: [Gambas-user] SMTP client doesn't want Message-ID: <520CBE24.2080703@...221...> Ok folks, here's my other thread about gb.net.smtp. I want to send an e-mail with an attachment. The MTA is my German Telecom provider t-online, so I use my name as sender and log in. The guys use STARTTLS as far as I know. When I use TLS, I get an "authentication failed". When I use SSL, it only says "-> quit" nothing ever happens. Do you see anything missing here: mail.From = "eilert-sprachen at ...221..." mail.To.Add(feld[1]) 'recipient's e-mail mail.Subject = "Ihre E-Mail" mail.Add(Application.Path &/ mdatei) 'message body mail.Add(Application.Path &/ feld[0]) 'attachment: pdf-file mail.Host = "securesmtp.t-online.de" mail.Port = 587 mail.Encrypt = Net.TLS 'also tried Net.SSL mail.User = "username" mail.Password = "password" mail.Debug = True mail.Send() Thanks for your help... Rolf From mckaygerhard at ...626... Thu Aug 15 14:39:14 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Aug 2013 08:09:14 -0430 Subject: [Gambas-user] Gambas-user Digest, Vol 87, Issue 24 In-Reply-To: References: Message-ID: From: Beno?t Minisini > Le 13/08/2013 18:54, PICCORO McKAY Lenz a ?crit : >> i noted also that in debian there are two devel packages from curl: >> >> libcurl4-gnutls-dev >> libcurl4-openssl-dev >> 1) agains what flavor must be complied gambas? i said clearly in previously mqails that i have curl 7.18.2, docs said 7.13 , (and many others out of date?) >> 2) and again? also does need curl enabled async DNS querys with lib c-ares? >> >>> CC gb_net_curl_la-CNet.lo >> >>> CNet.c:65: error: ?CURLAUTH_DIGEST_IE? no se declar? aqu? (no en una >>>> funci?n) >>>> CNet.c:146: error: ?CURLE_SSL_CRL_BADFILE? no se declar? aqu? (no en una >>>> funci?n) >>>> CNet.c:147: error: ?CURLE_SSL_ISSUER_ERROR? no se declar? aqu? (no en >>>> una funci?n) >>>> make[5]: *** [gb_net_curl_la-CNet.lo] Error 1 and about that: > Why are your mails full of unreadable characters? seems sourge force or icecat cannot process latin UTF8 chars, my locale are es_VE.UTF8 so i'm on right.. the mail must be fixed or i must fix the icecat From gambas at ...1... Thu Aug 15 15:30:46 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 15 Aug 2013 15:30:46 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 87, Issue 24 In-Reply-To: References: Message-ID: <520CD806.6080201@...1...> Le 15/08/2013 14:39, PICCORO McKAY Lenz a ?crit : > From: Beno?t Minisini >> Le 13/08/2013 18:54, PICCORO McKAY Lenz a ?crit : >>> i noted also that in debian there are two devel packages from curl: >>> >>> libcurl4-gnutls-dev >>> libcurl4-openssl-dev >>> > 1) agains what flavor must be complied gambas? i said clearly in > previously mqails that i have curl 7.18.2, docs said 7.13 , (and many > others out of date?) Can you send run "curl --version" and send me the output? -- Beno?t Minisini From gambas at ...1... Thu Aug 15 15:33:29 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 15 Aug 2013 15:33:29 +0200 Subject: [Gambas-user] Gambas-user Digest, Vol 87, Issue 24 In-Reply-To: <520CD806.6080201@...1...> References: <520CD806.6080201@...1...> Message-ID: <520CD8A9.8020204@...1...> Le 15/08/2013 15:30, Beno?t Minisini a ?crit : > Le 15/08/2013 14:39, PICCORO McKAY Lenz a ?crit : >> From: Beno?t Minisini >>> Le 13/08/2013 18:54, PICCORO McKAY Lenz a ?crit : >>>> i noted also that in debian there are two devel packages from curl: >>>> >>>> libcurl4-gnutls-dev >>>> libcurl4-openssl-dev >>>> >> 1) agains what flavor must be complied gambas? i said clearly in >> previously mqails that i have curl 7.18.2, docs said 7.13 , (and many >> others out of date?) > > Can you send run "curl --version" and send me the output? > Can you send me your '/usr/include/curl/curl.h' file too? Thanks! -- Beno?t Minisini From gambas at ...1... Thu Aug 15 16:17:48 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 15 Aug 2013 16:17:48 +0200 Subject: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause In-Reply-To: <52097036.7020703@...1...> References: <20130811113310.GC620@...2774...> <52097036.7020703@...1...> Message-ID: <520CE30C.7090705@...1...> Le 13/08/2013 01:31, Beno?t Minisini a ?crit : > Le 11/08/2013 13:33, Tobias Boege a ?crit : >> Hi Benoit, >> >> what bothers me from time to time is that With is *so* handy but can't be >> used to access Array or Collection elements like: >> >> With hCollection ' or hArray >> Print ["key"] ' or Print [0] >> End With >> >> I see that this would be a syntactical problem because ["key"] and [0] >> may >> equivalently well be recognised as inline arrays. But we have another >> option, right? There is still the ! operator which is unambiguous: >> >> With hCollection >> Print !key >> End With >> >> Should be no problem if implemented. What do you think? And while we >> are at >> it, couldn't the ! operator at the same time get the capability to >> support >> integers, so that the above will also work with an array: >> >> With hArray >> Print !0 >> End With >> >> Regards, >> Tobi >> > > The '!' can't be used, because a!b is just syntactic sugar for a["b"]. > > Maybe a syntax like .[x] = y could be used, as at the moment .[x] is a > syntax error... I will think about it. > This is implemented in revision #5797: Dim aStr As New String[2] With aStr .[0] = "a" .[1] = "b" Print .[0];; .[1] End With Enjoy! -- Beno?t Minisini From taboege at ...626... Thu Aug 15 16:32:17 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 15 Aug 2013 16:32:17 +0200 Subject: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause In-Reply-To: <520CE30C.7090705@...1...> References: <20130811113310.GC620@...2774...> <52097036.7020703@...1...> <520CE30C.7090705@...1...> Message-ID: <20130815143217.GF472@...2774...> On Thu, 15 Aug 2013, Beno?t Minisini wrote: > Le 13/08/2013 01:31, Beno?t Minisini a ?crit : > > Le 11/08/2013 13:33, Tobias Boege a ?crit : > >> Hi Benoit, > >> > >> what bothers me from time to time is that With is *so* handy but can't be > >> used to access Array or Collection elements like: > >> > >> With hCollection ' or hArray > >> Print ["key"] ' or Print [0] > >> End With > >> > >> I see that this would be a syntactical problem because ["key"] and [0] > >> may > >> equivalently well be recognised as inline arrays. But we have another > >> option, right? There is still the ! operator which is unambiguous: > >> > >> With hCollection > >> Print !key > >> End With > >> > >> Should be no problem if implemented. What do you think? And while we > >> are at > >> it, couldn't the ! operator at the same time get the capability to > >> support > >> integers, so that the above will also work with an array: > >> > >> With hArray > >> Print !0 > >> End With > >> > >> Regards, > >> Tobi > >> > > > > The '!' can't be used, because a!b is just syntactic sugar for a["b"]. > > > > Maybe a syntax like .[x] = y could be used, as at the moment .[x] is a > > syntax error... I will think about it. > > > > This is implemented in revision #5797: > > Dim aStr As New String[2] > With aStr > .[0] = "a" > .[1] = "b" > Print .[0];; .[1] > End With > > Enjoy! Nice! Works also with Collection-like objects. The only thing I noticed was that it's not very comfortable to type in the IDE, i.e. once you are in the With clause and type ".", you will presented the list of symbols in the auto-completion popup. If you press "[", the first thing in there is inserted before the "[". Anyway, this is very great! Thanks, Tobi From gambas at ...1... Thu Aug 15 16:38:21 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 15 Aug 2013 16:38:21 +0200 Subject: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause In-Reply-To: <20130815143217.GF472@...2774...> References: <20130811113310.GC620@...2774...> <52097036.7020703@...1...> <520CE30C.7090705@...1...> <20130815143217.GF472@...2774...> Message-ID: <520CE7DD.8020808@...1...> Le 15/08/2013 16:32, Tobias Boege a ?crit : >> This is implemented in revision #5797: >> >> Dim aStr As New String[2] >> With aStr >> .[0] = "a" >> .[1] = "b" >> Print .[0];; .[1] >> End With >> >> Enjoy! > > Nice! Works also with Collection-like objects. The only thing I noticed was > that it's not very comfortable to type in the IDE, i.e. once you are in the > With clause and type ".", you will presented the list of symbols in the > auto-completion popup. If you press "[", the first thing in there is > inserted before the "[". > > Anyway, this is very great! > > Thanks, > Tobi > Yep, the IDE is not yet aware of that new syntax... In revision #5798, I implemented the same thing for the "!" operator. With !field1 = "foo" !field2 = "bar" End With Regards, -- Beno?t Minisini From gambas at ...1... Thu Aug 15 16:51:53 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 15 Aug 2013 16:51:53 +0200 Subject: [Gambas-user] How to share one datasource across two forms? In-Reply-To: <5207E58E.1070906@...3163...> References: <5207E58E.1070906@...3163...> Message-ID: <520CEB09.6010405@...1...> Le 11/08/2013 21:27, Marty a ?crit : > Hello, > > First let me say thank you to all those who have answered my past posts. > > As I get deeper into programming databases with Gambas, more questions > come out. I have two forms which show data from the same table. The data > is split up so that the user interface is less confusing. My first > question is how can I show the data on form 2 when the datasource is on > form 1? You can't share a DataSource between two different forms, because DataSource is also a control container. But, technically, I could have add a way to specify the DataSource of a control explicitely... > > I'd like to use a datacombo box to provide input to a field but, get the > list from another table. Is this possible? DataCombo takes its contents from another table, provided that it shares a common primary key with the main table. See the documentation of DataCombo.Table, DataCombo.Field and DataCombo.Display. > > One more. I also need a data aware checkbox. I want to save the logical > value of the checkbox to the datasource. Any suggestions? You must implement it by hand at the moment. I didn't implement "DataCheckBox", because a database boolean field actually understands three value: True, False and Null. Maybe I could use the Tristate property... I will think about it. Regards, -- Beno?t Minisini From taboege at ...626... Thu Aug 15 17:11:08 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 15 Aug 2013 17:11:08 +0200 Subject: [Gambas-user] Feature request: Use key- (and index-)accessor in a With clause In-Reply-To: <520CE7DD.8020808@...1...> References: <20130811113310.GC620@...2774...> <52097036.7020703@...1...> <520CE30C.7090705@...1...> <20130815143217.GF472@...2774...> <520CE7DD.8020808@...1...> Message-ID: <20130815151108.GI472@...2774...> On Thu, 15 Aug 2013, Beno?t Minisini wrote: > Le 15/08/2013 16:32, Tobias Boege a ?crit : > >> This is implemented in revision #5797: > >> > >> Dim aStr As New String[2] > >> With aStr > >> .[0] = "a" > >> .[1] = "b" > >> Print .[0];; .[1] > >> End With > >> > >> Enjoy! > > > > Nice! Works also with Collection-like objects. The only thing I noticed was > > that it's not very comfortable to type in the IDE, i.e. once you are in the > > With clause and type ".", you will presented the list of symbols in the > > auto-completion popup. If you press "[", the first thing in there is > > inserted before the "[". > > > > Anyway, this is very great! > > > > Thanks, > > Tobi > > > > Yep, the IDE is not yet aware of that new syntax... > > In revision #5798, I implemented the same thing for the "!" operator. > > With > !field1 = "foo" > !field2 = "bar" > End With > Yes, everything works perfectly. The IDE now, too. Thank you very much. Regards, Tobi From mckaygerhard at ...626... Thu Aug 15 18:31:05 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Aug 2013 12:01:05 -0430 Subject: [Gambas-user] Build error in gb.net.curl Message-ID: From: Beno?t Minisini > Can you send run "curl --version" and send me the output? i dont understand.. I had to install the curl package that is just a command line ... venenux:/home/demon# curl --version curl 7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.8 libssh2/0.18 Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz venenux:/home/demon# I think that devel packages and pkg-config output are the main, In debian there are two devel packages flavors from curl: * libcurl4-gnutls-dev * libcurl4-openssl-dev but note in lenny or squeeze there's no libc-ares support for async DNS response. > Can you send me your '/usr/include/curl/curl.h' file too? Thanks! The header are independent of that ok, but i suppost linker results may vary? The curl, opengl and media components are the only parts that i need to fine tune to backported the holly gambas3 (3.4.1) to lenny and squeeze, and now i working in backported and packaged the 3.4.2, i note the ppa are bad quality , due devel package not handle the so files, just some binaryes, so files are packet along with shared versioned named. -------------- next part -------------- A non-text attachment was scrubbed... Name: curl.h Type: text/x-chdr Size: 68756 bytes Desc: not available URL: From eilert-sprachen at ...221... Fri Aug 16 09:13:44 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 16 Aug 2013 09:13:44 +0200 Subject: [Gambas-user] Empty PDF problem - maybe Cairo too slow? Message-ID: <520DD128.9010508@...221...> I have been trying around this problem and found a reproduceable behaviour. To make it short, this is the standard way in my program: Within SUB Main, I read the mails from the server (contact forms), one by one. Each one's data is processed into a pdf (pdf made by Cairo class) and a mail text body, then sent to the recipient by e-mail via the external script (shelling out). When the whole thing runs from cron, it will deliver 0 Byte PDFs, but the originals on the system are fine (the copies remain in the directory). The mailing system does not see any error. Now is the trick: When I use a ready-made pdf copy and call mail-sending SUB with these data directly, it will deliver the PDF correctly. This is reproduceable. So my thought was, it might be that when started from cron, the Gambas app runs through so fast that it calls mail sending BEFORE Cairo is ready writing the PDF. This would mean Cairo is working on its own. So there is a file (you have to give the file name before starting to print), but 0 bytes, and that is sent. Only after sending the mail, the rest of the data is written and remains in the directory. How could I check for Cairo to be done with the file before sending the mail? Or should I just wait couple of seconds? Rolf From patrick at ...3142... Fri Aug 16 13:48:44 2013 From: patrick at ...3142... (Patrick) Date: Fri, 16 Aug 2013 04:48:44 -0700 (PDT) Subject: [Gambas-user] [idea] Mini-Liux Distrubution Dedicated for running Gambas Program?? Message-ID: <1376653723872-42885.post@...3046...> Gambas is great, and it can do great work. I am wondering is it possible to build a 'very small' linux distrubition like DamSamllLinux, but with only Gambas support such that each gambas app can be running in a self-contained 'machine' with a very small foot-print. In that case, VerySmall LiveCD demo (or USBkey-demo) or Gambas APP will be possible, Most importantly, the gambas will be greatly promoted..... welcome any comments and pointer. -- View this message in context: http://gambas.8142.n7.nabble.com/idea-Mini-Liux-Distrubution-Dedicated-for-running-Gambas-Program-tp42885.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Fri Aug 16 13:52:27 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 16 Aug 2013 13:52:27 +0200 Subject: [Gambas-user] [idea] Mini-Liux Distrubution Dedicated for running Gambas Program?? In-Reply-To: <1376653723872-42885.post@...3046...> References: <1376653723872-42885.post@...3046...> Message-ID: <520E127B.20106@...1...> Le 16/08/2013 13:48, Patrick a ?crit : > Gambas is great, and it can do great work. > > I am wondering is it possible to build a 'very small' linux distrubition > like DamSamllLinux, but with only Gambas support such that each gambas app > can be running in a self-contained 'machine' with a very small foot-print. > > In that case, > > VerySmall LiveCD demo (or USBkey-demo) > > or Gambas APP will be possible, > > Most importantly, the gambas will be greatly promoted..... > > welcome any comments and pointer. > It depends on the components and external programs your gambas application needs: each component comes with its own dependencies, that may force you to install tons of packages... -- Beno?t Minisini From gambas at ...1... Fri Aug 16 13:55:41 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 16 Aug 2013 13:55:41 +0200 Subject: [Gambas-user] Empty PDF problem - maybe Cairo too slow? In-Reply-To: <520DD128.9010508@...221...> References: <520DD128.9010508@...221...> Message-ID: <520E133D.9050700@...1...> Le 16/08/2013 09:13, Rolf-Werner Eilert a ?crit : > I have been trying around this problem and found a reproduceable behaviour. > > To make it short, this is the standard way in my program: > > Within SUB Main, I read the mails from the server (contact forms), one > by one. Each one's data is processed into a pdf (pdf made by Cairo > class) and a mail text body, then sent to the recipient by e-mail via > the external script (shelling out). > > When the whole thing runs from cron, it will deliver 0 Byte PDFs, but > the originals on the system are fine (the copies remain in the > directory). The mailing system does not see any error. > > Now is the trick: When I use a ready-made pdf copy and call mail-sending > SUB with these data directly, it will deliver the PDF correctly. This is > reproduceable. > > So my thought was, it might be that when started from cron, the Gambas > app runs through so fast that it calls mail sending BEFORE Cairo is > ready writing the PDF. This would mean Cairo is working on its own. So > there is a file (you have to give the file name before starting to > print), but 0 bytes, and that is sent. Only after sending the mail, the > rest of the data is written and remains in the directory. > > How could I check for Cairo to be done with the file before sending the > mail? Or should I just wait couple of seconds? > > Rolf > AFAIK, Cairo is synchronous, so when Cairo.End() returns, your PDF file should be complete. Show us some code... -- Beno?t Minisini From rolf.frogs at ...221... Sat Aug 17 10:48:39 2013 From: rolf.frogs at ...221... (Rolf Schmidt) Date: Sat, 17 Aug 2013 10:48:39 +0200 Subject: [Gambas-user] Empty PDF problem - maybe Cairo too slow? In-Reply-To: <520DD128.9010508@...221...> References: <520DD128.9010508@...221...> Message-ID: <520F38E7.6010001@...221...> Hi Rolf-Werner > When the whole thing runs from cron, it will deliver 0 Byte PDFs, but > the originals on the system are fine (the copies remain in the > directory). The mailing system does not see any error. Problems with cron usually result from missing pathes. Cron does not starts a shell with its enviroment. So you have to use absolut paths to your programm(s) and perhap setup environment variable if needed. Hope th?t helps Rolf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: From abbat.81 at ...787... Sat Aug 17 17:54:45 2013 From: abbat.81 at ...787... (abbat81) Date: Sat, 17 Aug 2013 08:54:45 -0700 (PDT) Subject: [Gambas-user] For Each Line in String Message-ID: <1376754885137-42889.post@...3046...> Dim sPics as astring Shell "ls ~/Pictures/" to sPics For Each Line in sPics Print Line Next Fow can I do it? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/For-Each-Line-in-String-tp42889.html Sent from the gambas-user mailing list archive at Nabble.com. From jussi.lahtinen at ...626... Sat Aug 17 19:20:10 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sat, 17 Aug 2013 20:20:10 +0300 Subject: [Gambas-user] For Each Line in String In-Reply-To: <1376754885137-42889.post@...3046...> References: <1376754885137-42889.post@...3046...> Message-ID: http://gambasdoc.org/help/lang/split Maybe by using gb.newline as separator. Jussi On Sat, Aug 17, 2013 at 6:54 PM, abbat81 wrote: > > Dim sPics as astring > > Shell "ls ~/Pictures/" to sPics > > For Each Line in sPics > Print Line > Next > > > Fow can I do it? > Thanks > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/For-Each-Line-in-String-tp42889.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Sat Aug 17 20:13:47 2013 From: abbat.81 at ...787... (abbat81) Date: Sat, 17 Aug 2013 11:13:47 -0700 (PDT) Subject: [Gambas-user] For Each Line in String In-Reply-To: References: <1376754885137-42889.post@...3046...> Message-ID: <1376763227323-42891.post@...3046...> It works if line if full but I need some part of line. Works: FOR EACH Sb IN Elt PRINT Sb NEXT I need: FOR EACH Sb IN Elt PRINT Left(Sb, 5) NEXT It gives me 5 chars of first line only. I should get every 5 chsrs of every line. -- View this message in context: http://gambas.8142.n7.nabble.com/For-Each-Line-in-String-tp42889p42891.html Sent from the gambas-user mailing list archive at Nabble.com. From paulwheeler at ...546... Sat Aug 17 20:41:43 2013 From: paulwheeler at ...546... (paulwheeler) Date: Sat, 17 Aug 2013 11:41:43 -0700 Subject: [Gambas-user] For Each Line in String In-Reply-To: References: <1376754885137-42889.post@...3046...> Message-ID: <520FC3E7.1080508@...546...> Not sure what you wanted to do with the information, but this code will get the directory info, output it to a file, print it to the console, and put it into an array. NOTE: This is an excerpt from the gambas-diskinfo (Version 1.0.33) code written by Demosthenes Koptsis. Sometimes it is just easier to borrow than to re-create. Hope this helps. paul ' Gambas class file ' Excerpt from gambas-diskinfo Version 1.0.33 ' Written by: Demosthenes Koptsis ' ' Run this and look at Console output ' Public Sub _new() Dim hfile As File Dim strLine As String Dim strFilePath As String Dim strDirPath As String Dim strLineArray As String[] = ["initializing"] Dim strElement As String Dim sPics As String 'empty sLineArray strLineArray.Clear strDirPath = "/home/paul/Desktop" strFilePath = "/home/paul/Desktop/sPics.txt" Shell ("ls /home/paul/Desktop > /home/paul/Desktop/sPics.txt") Wait '' Shell ("ls " & strDirPath & " > " & strFilePath)Wait() If Exist(strFilePath) Then 'if file exists hFile = Open strFilePath For Input 'open file for input While Not Eof(hFile) 'until the end Line Input #hFile, strLine 'read a line Print strLine ' & "\n" ' print to console so you can see what is happening strLineArray.Add(strLine) 'add line to array Wend Endif 'print each element for check For Each strElement In strLineArray Print strElement Next End Public Sub btnQuit_Click() Me.Close End On 08/17/2013 10:20 AM, Jussi Lahtinen wrote: [1]http://gambasdoc.org/help/lang/split Maybe by using gb.newline as separator. Jussi On Sat, Aug 17, 2013 at 6:54 PM, abbat81 [2] wrote: Dim sPics as astring Shell "ls ~/Pictures/" to sPics For Each Line in sPics Print Line Next Fow can I do it? Thanks -- View this message in context: [3]http://gambas.8142.n7.nabble.com/For-Each-Line-in-String-tp42889.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. [4]http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [5]Gambas-user at lists.sourceforge.net [6]https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. [7]http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [8]Gambas-user at lists.sourceforge.net [9]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://gambasdoc.org/help/lang/split 2. mailto:abbat.81 at ...787... 3. http://gambas.8142.n7.nabble.com/For-Each-Line-in-String-tp42889.html 4. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk 5. mailto:Gambas-user at lists.sourceforge.net 6. https://lists.sourceforge.net/lists/listinfo/gambas-user 7. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk 8. mailto:Gambas-user at lists.sourceforge.net 9. https://lists.sourceforge.net/lists/listinfo/gambas-user From mckaygerhard at ...626... Sat Aug 17 20:59:19 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 17 Aug 2013 14:29:19 -0430 Subject: [Gambas-user] [idea] Mini-Liux Distrubution Dedicated for running Gambas Program?? Message-ID: From: Patrick > Subject: [Gambas-user] [idea] Mini-Liux Distrubution Dedicated for > > I am wondering is it possible to build a 'very small' linux distrubition > like DamSamllLinux, but with only Gambas support such that each gambas app > can be running in a self-contained 'machine' with a very small foot-print. This could be not complety possible, due some important gambas modules need many other software for works, by example the IDE need both QT4 and GTK2 for work, and the installation of QT4 need almost 180Mb for runtime only. > > VerySmall LiveCD demo (or USBkey-demo) for that, a ide and modules are not enought, due lack of documentation user must go to search on mail list and forums, and for that will need good web browser, this means NSS, XULRUNNER and FIREFOX/ICECAT for good running on the net/web , currently firefox get 40Mb from disk for install, adn chromiun get 80Mb > > or Gambas APP will be possible, > > Most importantly, the gambas will be greatly promoted..... > > welcome any comments and pointer. > > > From: Beno?t Minisini > It depends on the components and external programs your gambas > application needs: each component comes with its own dependencies, that > may force you to install tons of packages... this idea like me, venenux will come with gambas 3.4 build in, but the only problem i have its the media module, currently need gstreamer 0.10.31 as minimun, and in that case the real are 1.0.0 due usage of newer api funtions such like gstdatetime and timeline operations. there's some possibility to made media module iwth older gstreamer << 0.10.31? From vuott at ...325... Sat Aug 17 21:09:17 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 17 Aug 2013 20:09:17 +0100 (BST) Subject: [Gambas-user] About coordinates in .FindChild(...) function Message-ID: <1376766557.45702.YahooMailBasic@...3063...> Hello, I was trying " .FindChild ( X As Integer, Y As Integer ) As Control " function, I noticed that this function detects and returns any "Child" Object of a its "Parent" Container, only if this Object is positioned at the coordinates .X = 0 and .Y = 0 . So, even if only one of the two coordinates is greater than zero, the "child" object is no longer identified/returned. It is normal or I'm doing something wrong? Regards vuott From vuott at ...325... Sat Aug 17 21:09:17 2013 From: vuott at ...325... (Ru Vuott) Date: Sat, 17 Aug 2013 20:09:17 +0100 (BST) Subject: [Gambas-user] About coordinates in .FindChild(...) function Message-ID: <1376766557.45702.YahooMailBasic@...3063...> Hello, I was trying " .FindChild ( X As Integer, Y As Integer ) As Control " function, I noticed that this function detects and returns any "Child" Object of a its "Parent" Container, only if this Object is positioned at the coordinates .X = 0 and .Y = 0 . So, even if only one of the two coordinates is greater than zero, the "child" object is no longer identified/returned. It is normal or I'm doing something wrong? Regards vuott From gambas.fr at ...626... Sat Aug 17 22:00:34 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 17 Aug 2013 22:00:34 +0200 Subject: [Gambas-user] For Each Line in String In-Reply-To: <1376754885137-42889.post@...3046...> References: <1376754885137-42889.post@...3046...> Message-ID: Le 17 ao?t 2013 17:55, "abbat81" a ?crit : > > > Dim sPics as astring >dim sline as string > Shell "ls ~/Pictures/" to sPics > > For Each sLine in split(sPics"/n") > Print sLine > Next Ok > > > Fow can I do it? > Thanks > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/For-Each-Line-in-String-tp42889.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Sat Aug 17 22:01:47 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 17 Aug 2013 22:01:47 +0200 Subject: [Gambas-user] For Each Line in String In-Reply-To: References: <1376754885137-42889.post@...3046...> Message-ID: Le 17 ao?t 2013 22:00, "Fabien Bodard" a ?crit : > > > Le 17 ao?t 2013 17:55, "abbat81" a ?crit : > > > > > > Dim sPics as astring > >dim sline as string > > > Shell "ls ~/Pictures/" to sPics > > > > For Each sLine in split(sPics, "/n") > > Print sLine > > Next > > Ok > > > > > > > Fow can I do it? > > Thanks > > > > > > > > -- > > View this message in context: http://gambas.8142.n7.nabble.com/For-Each-Line-in-String-tp42889.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > > Get 100% visibility into Java/.NET code with AppDynamics Lite! > > It's a free troubleshooting tool designed for production. > > Get down to code-level detail for bottlenecks, with <2% overhead. > > Download for free and get started troubleshooting in minutes. > > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user From abbat.81 at ...787... Sat Aug 17 22:51:59 2013 From: abbat.81 at ...787... (abbat81) Date: Sat, 17 Aug 2013 13:51:59 -0700 (PDT) Subject: [Gambas-user] Get one line from text Message-ID: <1376772719647-42897.post@...3046...> Hi all. I need your help. I cant get one line from text. My text is: #!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Terminal=false Name[uk_UA]=??????? Exec=/Games/Kids/???????/Griboed_exec Icon=/Games/Kids/???????/1857.png Comment[uk_UA]=??????? Name=??????? Comment=??????? Encoding=UTF-8 How can I get string: "Icon=/Games/Kids/???????/1857.png" Thanks. -- View this message in context: http://gambas.8142.n7.nabble.com/Get-one-line-from-text-tp42897.html Sent from the gambas-user mailing list archive at Nabble.com. From nemh at ...2007... Sat Aug 17 23:28:14 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sat, 17 Aug 2013 23:28:14 +0200 Subject: [Gambas-user] Get one line from text In-Reply-To: <1376772719647-42897.post@...3046...> References: <1376772719647-42897.post@...3046...> Message-ID: <20130817232814.4c731f31@...3104...> > Hi all. > > I need your help. > I cant get one line from text. > > My text is: > > > #!/usr/bin/env xdg-open > > [Desktop Entry] > Version=1.0 > Type=Application > Terminal=false > Name[uk_UA]=??????? > Exec=/Games/Kids/???????/Griboed_exec > Icon=/Games/Kids/???????/1857.png > Comment[uk_UA]=??????? > Name=??????? > Comment=??????? > Encoding=UTF-8 > > > > > How can I get string: > "Icon=/Games/Kids/???????/1857.png" > > Thanks. > Dim ofile As File Dim cline As String ofile = Open "/path/filename.desktop" For Read While Not Eof(ofile) Line Input #ofile, cline If InStr(cline, "Icon=") = 1 Then Print Right(cline, -5) Wend Close #ofile From mckaygerhard at ...626... Sun Aug 18 00:32:59 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 17 Aug 2013 18:02:59 -0430 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) Message-ID: Gambas3 now has a new way of programing for basic: Gambas Server Pages. I'm glad to see tech like php or jsp but easy to write.. one proble was How now i expose in http server-like my GSP made? i see the gbw binary and the info are very lack.. i mean, with JSP/Servlet we use tomcat i mean, with PHP/PHTML we use apache/php so then how to put that in lighttpd or apache2 to offer as dinamic html webs? some tips please.. thanks in advance benoit. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Sun Aug 18 01:55:02 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 18 Aug 2013 01:55:02 +0200 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) In-Reply-To: References: Message-ID: <52100D56.6080105@...1...> Le 18/08/2013 00:32, PICCORO McKAY Lenz a ?crit : > Gambas3 now has a new way of programing for basic: Gambas Server Pages. > > I'm glad to see tech like php or jsp but easy to write.. one proble > was How now i expose in http server-like my GSP made? > > i see the gbw binary and the info are very lack.. > > i mean, with JSP/Servlet we use tomcat > i mean, with PHP/PHTML we use apache/php > > so then how to put that in lighttpd or apache2 to offer as dinamic html webs? > > some tips please.. thanks in advance benoit. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > Don't use Gambas server pages, this is just a bad way of doing things. Gambas can do better: make a normal project with the gb.web component and use it as a CGI script. Regards, -- Beno?t Minisini From jscops at ...11... Sun Aug 18 02:32:45 2013 From: jscops at ...11... (Jack) Date: Sun, 18 Aug 2013 02:32:45 +0200 Subject: [Gambas-user] starfield Message-ID: <5210162D.7030500@...11...> Bonjour, Here is a starfield with scrolltext. thank you at Guy Carlier for its examples. http://www.gambasforge.org/code-85-starfield2.html -- Cordialement Jacky Tripoteau From gambas.fr at ...626... Sun Aug 18 15:13:29 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sun, 18 Aug 2013 15:13:29 +0200 Subject: [Gambas-user] Get one line from text In-Reply-To: <20130817232814.4c731f31@...3104...> References: <1376772719647-42897.post@...3046...> <20130817232814.4c731f31@...3104...> Message-ID: Le 17 ao?t 2013 23:29, "Kende Kriszti?n" a ?crit : > > > Hi all. > > > > I need your help. > > I cant get one line from text. > > > > My text is: > > > > > > #!/usr/bin/env xdg-open > > > > [Desktop Entry] > > Version=1.0 > > Type=Application > > Terminal=false > > Name[uk_UA]=??????? > > Exec=/Games/Kids/???????/Griboed_exec > > Icon=/Games/Kids/???????/1857.png > > Comment[uk_UA]=??????? > > Name=??????? > > Comment=??????? > > Encoding=UTF-8 > > > > > > > > > > How can I get string: > > "Icon=/Games/Kids/???????/1857.png" > > > > Thanks. > > > > Dim ofile As File > Dim cline As String > > ofile = Open "/path/filename.desktop" For Read > While Not Eof(ofile) > Line Input #ofile, cline > > If InStr(cline, "Icon=") = 1 Then Print Right(cline, -5) > > Wend > Close #ofile > Dim sline as string For each sline in split(file.load("/path/filename..."),"\n") If trim(sLine) begins "Icon=" then Print scan(sLine, "*=*")[1] Endif Next > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Sun Aug 18 18:18:46 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 18 Aug 2013 18:18:46 +0200 Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: <1376766557.45702.YahooMailBasic@...3063...> References: <1376766557.45702.YahooMailBasic@...3063...> Message-ID: <5210F3E6.9050909@...1...> Le 17/08/2013 21:09, Ru Vuott a ?crit : > Hello, > > I was trying " .FindChild ( X As Integer, Y As Integer ) As Control " function, I noticed that this function detects and returns any "Child" Object of a its "Parent" Container, only if this Object is positioned at the coordinates .X = 0 and .Y = 0 . > > So, even if only one of the two coordinates is greater than zero, the "child" object is no longer identified/returned. > > It is normal or I'm doing something wrong? > > Regards > vuott > Do you have some code that shows me the problem? -- Beno?t Minisini From gambas at ...1... Sun Aug 18 18:20:30 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 18 Aug 2013 18:20:30 +0200 Subject: [Gambas-user] How to interpret the "circular references" message? In-Reply-To: <20130813084651.GA833@...2774...> References: <20130806113231.GC542@...2774...> <52096F87.60109@...1...> <20130813084651.GA833@...2774...> Message-ID: <5210F44E.7020706@...1...> Le 13/08/2013 10:46, Tobias Boege a ?crit : > On Tue, 13 Aug 2013, Beno?t Minisini wrote: >> Le 06/08/2013 13:32, Tobias Boege a ?crit : >>> Hi, >>> >>> I have got some circular references in my project which I want to get rid >>> of. Actually I haven't really got an idea of where the cause could lie so I >>> wonder if there is anything useful in the message from Gambas. >>> >>> My questions are: What does the order of the classes signify? What are these >>> numbers before each class? >>> >>> Regards, >>> Tobi >>> >> >> The order means nothing. The number is the number of objects allocated >> for each class. >> > > OK, so this is not _that_ useful. Anyways, I fixed it by the good old > looking-again-at-the-sources trick. > > Regards, > Tobi > It can help you by telling you which classes have objects that were not freed, so you have a little clue about where to start investigating... -- Beno?t Minisini From mmcg29440 at ...3163... Sun Aug 18 19:53:44 2013 From: mmcg29440 at ...3163... (Marty McGlensey) Date: Sun, 18 Aug 2013 13:53:44 -0400 Subject: [Gambas-user] How do I use the buttons on the FileChooser control? Message-ID: I have added the FileChooser to my form. Set the root and filter properties and enabled "ShowButtons". It all works except that I cannot figure out how to access the OK or Cancel button click event. I've tried the change event but don't see how to tie that to the buttons. I want to use them to leave the FileChooser with a file path or cancel that I can catch with a if / endif. Thanks, Marty From gambas at ...1... Sun Aug 18 21:04:25 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 18 Aug 2013 21:04:25 +0200 Subject: [Gambas-user] How do I use the buttons on the FileChooser control? In-Reply-To: References: Message-ID: <52111AB9.7020809@...1...> Le 18/08/2013 19:53, Marty McGlensey a ?crit : > I have added the FileChooser to my form. Set the root and filter properties > and enabled "ShowButtons". It all works except that I cannot figure out how > to access the OK or Cancel button click event. I've tried the change event > but don't see how to tie that to the buttons. > > > > I want to use them to leave the FileChooser with a file path or cancel that > I can catch with a if / endif. > > > > Thanks, > > Marty > FileChooser has an Activate and a Cancel event to know if "OK" or "Cancel" button was clicked. Regards, -- Beno?t Minisini From taboege at ...626... Sun Aug 18 21:08:54 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 18 Aug 2013 21:08:54 +0200 Subject: [Gambas-user] Application_Read() called with no end Message-ID: <20130818190854.GC503@...2774...> Hi Benoit, I'm using Application_Read() in a project now and it seems to misbehave. I have attached a project which mirrors its input from within Application_Read() using the Debug instruction. The problem is, even though the file I am redirecting in is completely read, Application_Read() is still called with no end: $ echo "abc" >/tmp/file $ gbx3 From eilert-sprachen at ...221... Mon Aug 19 08:31:27 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Mon, 19 Aug 2013 08:31:27 +0200 Subject: [Gambas-user] Empty PDF problem - maybe Cairo too slow? In-Reply-To: <520F38E7.6010001@...221...> References: <520DD128.9010508@...221...> <520F38E7.6010001@...221...> Message-ID: <5211BBBF.6030800@...221...> Am 17.08.2013 10:48, schrieb Rolf Schmidt: > Hi Rolf-Werner > >> When the whole thing runs from cron, it will deliver 0 Byte PDFs, but >> the originals on the system are fine (the copies remain in the >> directory). The mailing system does not see any error. > > Problems with cron usually result from missing pathes. Cron does not > starts a shell with its enviroment. So you have to use absolut paths to > your programm(s) and perhap setup environment variable if needed. > > Hope th?t helps > Rolf > > At first, I thought this might solve it, but it's some problem within the external Perl script when called from a shell within a cron environment. It seems to have to do with paths, but it's beyond my reach, maybe a call to a Perl library. In the end, I solved this by starting the mail transfer not from a shell within the Gambas program but afterwards. The sendEmail Perl script then runs on its own, called by a bash script, and reads the data from a list the Gambas program has prepared beforehand. Calling myProgram.Gambas && myMailScript runs flawlessly. It's just a shame I didn't get the Gambas SMTP client to work, it would have made things a lot easier. Regards Rolf From vuott at ...325... Mon Aug 19 16:49:48 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 19 Aug 2013 15:49:48 +0100 (BST) Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: <5210F3E6.9050909@...1...> Message-ID: <1376923788.66571.YahooMailBasic@...3063...> Hello Beno?t, I did some other testing and analysis: I place a "TextLabel" on Form I have noticed that the object "Child" is identified with the function ".FindChild(...)", if the object is placed in the "range" of the coordinates TextLabel1.X = 99 TextLabel1.Y = 29. In fact, if I place the "TextLabel" at coordinates .X = 100 - .Y = 30, the "TextLabel" is no longer returned by that function. And so on: -> .X = 100 - .Y = 29 no good -> .X = 99 - .Y = 30 no good For the test I used this simple line: If IsNull(Me.FindChild(99, 29)) = False Then Print Object.Type(Me.FindChild(99, 29)) Regards vuott -------------------------------------------- Dom 18/8/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] About coordinates in .FindChild(...) function A: "mailing list for gambas users" Data: Domenica 18 agosto 2013, 18:18 Le 17/08/2013 21:09, Ru Vuott a ?crit : > Hello, > > I was trying " .FindChild ( X As Integer, Y As Integer ) As Control "? function, I noticed that this function detects and returns any "Child" Object of a its "Parent" Container, only if this Object is positioned at the coordinates .X = 0 and .Y = 0 . > > So, even if only one of the two coordinates is greater than zero, the "child" object is no longer identified/returned. > > It is normal or I'm doing something wrong? > > Regards > vuott > Do you have some code that shows me the problem? -- Beno?t Minisini ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Mon Aug 19 16:58:42 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 19 Aug 2013 16:58:42 +0200 Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: <1376923788.66571.YahooMailBasic@...3063...> References: <5210F3E6.9050909@...1...> <1376923788.66571.YahooMailBasic@...3063...> Message-ID: Le 19 ao?t 2013 16:50, "Ru Vuott" a ?crit : > > Hello Beno?t, > > I did some other testing and analysis: I place a "TextLabel" on Form > I have noticed that the object "Child" is identified with the function ".FindChild(...)", if the object is placed in the "range" of the coordinates > TextLabel1.X = 99 > TextLabel1.Y = 29. > > In fact, if I place the "TextLabel" at coordinates .X = 100 - .Y = 30, the "TextLabel" is no longer returned by that function. > And so on: > -> .X = 100 - .Y = 29 no good > -> .X = 99 - .Y = 30 no good > > For the test I used this simple line: > > If IsNull(Me.FindChild(99, 29)) = False Then Print Object.Type(Me.FindChild(99, 29)) > > Why ... = False ? This is not needed Ok so if I understand well the find child don't take position into account... Just the size > Regards > vuott > > > -------------------------------------------- > Dom 18/8/13, Beno?t Minisini ha scritto: > > Oggetto: Re: [Gambas-user] About coordinates in .FindChild(...) function > A: "mailing list for gambas users" > Data: Domenica 18 agosto 2013, 18:18 > > Le 17/08/2013 21:09, Ru Vuott a > ?crit : > > Hello, > > > > I was trying " .FindChild ( X As Integer, Y As Integer > ) As Control " function, I noticed that this function > detects and returns any "Child" Object of a its "Parent" > Container, only if this Object is positioned at the > coordinates .X = 0 and .Y = 0 . > > > > So, even if only one of the two coordinates is greater > than zero, the "child" object is no longer > identified/returned. > > > > It is normal or I'm doing something wrong? > > > > Regards > > vuott > > > > Do you have some code that shows me the problem? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics > Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% > overhead. > Download for free and get started troubleshooting in > minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From vuott at ...325... Mon Aug 19 18:15:14 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 19 Aug 2013 17:15:14 +0100 (BST) Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: Message-ID: <1376928914.48466.YahooMailBasic@...3063...> > Ok so if I understand well the find child don't take position into account... Just the size So that actually the object can be detected/returned by the function ".ChilFind()", it seems to me that: 1) it has to be placed in its position range: - ChildObject.X <= 99 - ChildObject.Y <= 29 2) (it being understood the previous point 1 ) also the arguments of function have...: anyContainer.ChilFind(<= 99, <= 29) Try yourself. bye vuott -------------------------------------------- Lun 19/8/13, Fabien Bodard ha scritto: Oggetto: Re: [Gambas-user] About coordinates in .FindChild(...) function A: "mailing list for gambas users" Data: Luned? 19 agosto 2013, 16:58 Le 19 ao?t 2013 16:50, "Ru Vuott" a ?crit : > > Hello Beno?t, > > I did some other testing and analysis: I place a "TextLabel" on Form > I have noticed that the object "Child" is identified with the function ".FindChild(...)", if the object is placed in the "range" of the coordinates >? TextLabel1.X = 99 >? TextLabel1.Y = 29. > > In fact, if I place the "TextLabel" at coordinates .X = 100? -? .Y = 30, the "TextLabel" is no longer returned by that function. > And so on: > -> .X = 100? -? .Y = 29???no good > ->? .X = 99? -? .Y = 30 no good > > For the test I used this simple line: > >? If IsNull(Me.FindChild(99, 29)) = False Then Print Object.Type(Me.FindChild(99, 29)) > > Why ... = False ? This is not needed Ok so if I understand well the find child don't take position into account... Just the size > Regards > vuott > > > -------------------------------------------- > Dom 18/8/13, Beno?t Minisini ha scritto: > >? Oggetto: Re: [Gambas-user] About coordinates in .FindChild(...) function >? A: "mailing list for gambas users" >? Data: Domenica 18 agosto 2013, 18:18 > >? Le 17/08/2013 21:09, Ru Vuott a >? ?crit : >? > Hello, >? > >? > I was trying " .FindChild ( X As Integer, Y As Integer >? ) As Control "? function, I noticed that this function >? detects and returns any "Child" Object of a its "Parent" >? Container, only if this Object is positioned at the >? coordinates .X = 0 and .Y = 0 . >? > >? > So, even if only one of the two coordinates is greater >? than zero, the "child" object is no longer >? identified/returned. >? > >? > It is normal or I'm doing something wrong? >? > >? > Regards >? > vuott >? > > >? Do you have some code that shows me the problem? > >? -- >? Beno?t Minisini > > ------------------------------------------------------------------------------ >? Get 100% visibility into Java/.NET code with AppDynamics >? Lite! >? It's a free troubleshooting tool designed for production. >? Get down to code-level detail for bottlenecks, with <2% >? overhead. >? Download for free and get started troubleshooting in >? minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk >? _______________________________________________ >? Gambas-user mailing list >? Gambas-user at lists.sourceforge.net >? https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite! > It's a free troubleshooting tool designed for production. > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas at ...1... Mon Aug 19 18:17:15 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 19 Aug 2013 18:17:15 +0200 Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: <1376928914.48466.YahooMailBasic@...3063...> References: <1376928914.48466.YahooMailBasic@...3063...> Message-ID: <5212450B.6080404@...1...> Le 19/08/2013 18:15, Ru Vuott a ?crit : >> Ok so if I understand well the find child don't take position into account... Just the size > > So that actually the object can be detected/returned by the function ".ChilFind()", it seems to me that: > > 1) it has to be placed in its position range: > - ChildObject.X <= 99 > - ChildObject.Y <= 29 > > 2) (it being understood the previous point 1 ) also the arguments of function have...: > anyContainer.ChilFind(<= 99, <= 29) > > Try yourself. > > bye > vuott > I cannot reproduce the bug. Can you send me a project that shows it? Thanks. -- Beno?t Minisini From mckaygerhard at ...626... Mon Aug 19 20:03:39 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 19 Aug 2013 13:33:39 -0430 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) Message-ID: From: Beno?t Minisini > Subject: Re: [Gambas-user] How to bring forward Gambas server pages? > (gbw3 related files who to expose in http) > To: mailing list for gambas users > Message-ID: <52100D56.6080105 at ...1...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Don't use Gambas server pages, this is just a bad way of doing things. > > Gambas can do better: make a normal project with the gb.web component > and use it as a CGI script. > Please how can i put this files in web server? (maybe my question could be due i never work with cgi directly) And i note that i see a http server component in gambas3, this are related to ? From vuott at ...325... Mon Aug 19 20:18:06 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 19 Aug 2013 19:18:06 +0100 (BST) Subject: [Gambas-user] About coordinates in .FindChild(...) function Message-ID: <1376936286.25353.YahooMailBasic@...3064...> Here the attached file. regards vuott -------------------------------------------- Lun 19/8/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] About coordinates in .FindChild(...) function A: "mailing list for gambas users" Data: Luned? 19 agosto 2013, 18:17 Le 19/08/2013 18:15, Ru Vuott a ?crit : >> Ok so if I understand well the find child don't take position into account... Just the size > > So that actually the object can be detected/returned by the function ".ChilFind()", it seems to me that: > > 1) it has to be placed in its position range: >? ? -? ChildObject.X <= 99 >? ? - ChildObject.Y <= 29 > > 2) (it being understood the previous point 1 ) also the arguments of function have...: >? ? anyContainer.ChilFind(<= 99, <= 29) > > Try yourself. > > bye > vuott > I cannot reproduce the bug. Can you send me a project that shows it? Thanks. -- Beno?t Minisini ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ 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: findchild-0.0.1.tar.gz Type: application/gzip Size: 5000 bytes Desc: not available URL: From gambas at ...1... Mon Aug 19 20:28:07 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 19 Aug 2013 20:28:07 +0200 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) In-Reply-To: References: Message-ID: <521263B7.3040303@...1...> Le 19/08/2013 20:03, PICCORO McKAY Lenz a ?crit : > From: Beno?t Minisini >> Subject: Re: [Gambas-user] How to bring forward Gambas server pages? >> (gbw3 related files who to expose in http) >> To: mailing list for gambas users >> Message-ID: <52100D56.6080105 at ...1...> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> Don't use Gambas server pages, this is just a bad way of doing things. >> >> Gambas can do better: make a normal project with the gb.web component >> and use it as a CGI script. >> > Please how can i put this files in web server? (maybe my question > could be due i never work with cgi directly) > > And i note that i see a http server component in gambas3, this are related to ? > First, you must learn how a CGI script work (google is your friend there, not only the friend of NSA): - It is a program run by the web server according to its configuration: so read the manual of your web server to know how to run CGI script. - It receives its arguments from environment variables (the request) and returns the reply on its standard output. Hopefully, the Gambas gb.web component hides all that behind an ASP-like interface (Request object, Response object...) and "Webpage" files, that are Gambas classes associated with a HTML page following an ASP-like syntax (see the documentation about gb.web on the wiki). A few points: - At the moment, there is no request automatic dispatching. I mean: you have to choose which page to generate inside your Main function, according to the properties of the Request object. - The Session class allows you to maintain information about a web site user between two requests. - You can check the "use an embedded http server" in the IDE so that you can debug your CGI script! - When I have time (after my holidays in two weeks?) I will write an example project of how to make a web site with Gambas. Surely some sort of little wiki or blog. Regards, -- Beno?t Minisini From gambas at ...1... Mon Aug 19 20:46:10 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 19 Aug 2013 20:46:10 +0200 Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: <1376936286.25353.YahooMailBasic@...3064...> References: <1376936286.25353.YahooMailBasic@...3064...> Message-ID: <521267F2.7010909@...1...> Le 19/08/2013 20:18, Ru Vuott a ?crit : > Here the attached file. > > regards > vuott > Thanks. *Now* I understand what you are talking about! -- Beno?t Minisini From gambas at ...1... Mon Aug 19 22:19:10 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 19 Aug 2013 22:19:10 +0200 Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: <521267F2.7010909@...1...> References: <1376936286.25353.YahooMailBasic@...3064...> <521267F2.7010909@...1...> Message-ID: <52127DBE.7040107@...1...> Le 19/08/2013 20:46, Beno?t Minisini a ?crit : > Le 19/08/2013 20:18, Ru Vuott a ?crit : >> Here the attached file. >> >> regards >> vuott >> > > Thanks. *Now* I understand what you are talking about! > OK, the bug should be fixed in revision #5810. Regards, -- Beno?t Minisini From gambas at ...1... Mon Aug 19 23:46:51 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Mon, 19 Aug 2013 23:46:51 +0200 Subject: [Gambas-user] Application_Read() called with no end In-Reply-To: <20130818190854.GC503@...2774...> References: <20130818190854.GC503@...2774...> Message-ID: <5212924B.8040708@...1...> Le 18/08/2013 21:08, Tobias Boege a ?crit : > Hi Benoit, > > I'm using Application_Read() in a project now and it seems to misbehave. I > have attached a project which mirrors its input from within > Application_Read() using the Debug instruction. > > The problem is, even though the file I am redirecting in is completely read, > Application_Read() is still called with no end: > > $ echo "abc" >/tmp/file > $ gbx3 MMain.Application_Read.12: abc > MMain.Application_Read.12: > MMain.Application_Read.12: > MMain.Application_Read.12: > ^C > > Maybe there is some feof(stdin) check missing to stop the watch since to > select(2), the file is still readily readable at the EOF. As callback_read() > in gbx_c_file.c seems to be widely shared, I don't want to mess around with > it without knowing the rest of the code. > > Regards, > Tobi > Revision #5811 should fix that. The principle is disabling the read watch as soon as reading a stream fails for any reason. If anything goes wrong after this fix, you will have to wait for two weeks: I leave Paris for holidays! Regards, -- Beno?t Minisini From taboege at ...626... Mon Aug 19 23:56:06 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 19 Aug 2013 23:56:06 +0200 Subject: [Gambas-user] Application_Read() called with no end In-Reply-To: <5212924B.8040708@...1...> References: <20130818190854.GC503@...2774...> <5212924B.8040708@...1...> Message-ID: <20130819215606.GB521@...2774...> On Mon, 19 Aug 2013, Beno?t Minisini wrote: > Le 18/08/2013 21:08, Tobias Boege a ?crit : > > Hi Benoit, > > > > I'm using Application_Read() in a project now and it seems to misbehave. I > > have attached a project which mirrors its input from within > > Application_Read() using the Debug instruction. > > > > The problem is, even though the file I am redirecting in is completely read, > > Application_Read() is still called with no end: > > > > $ echo "abc" >/tmp/file > > $ gbx3 > MMain.Application_Read.12: abc > > MMain.Application_Read.12: > > MMain.Application_Read.12: > > MMain.Application_Read.12: > > ^C > > > > Maybe there is some feof(stdin) check missing to stop the watch since to > > select(2), the file is still readily readable at the EOF. As callback_read() > > in gbx_c_file.c seems to be widely shared, I don't want to mess around with > > it without knowing the rest of the code. > > > > Regards, > > Tobi > > > > Revision #5811 should fix that. > > The principle is disabling the read watch as soon as reading a stream > fails for any reason. > > If anything goes wrong after this fix, you will have to wait for two > weeks: I leave Paris for holidays! > Works! Bon voyage. (I have to practice French again a little as in two weeks, I'll spend my holidays there :-)) Regards, Tobi From gambas at ...1... Tue Aug 20 00:06:14 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Tue, 20 Aug 2013 00:06:14 +0200 Subject: [Gambas-user] Application_Read() called with no end In-Reply-To: <20130819215606.GB521@...2774...> References: <20130818190854.GC503@...2774...> <5212924B.8040708@...1...> <20130819215606.GB521@...2774...> Message-ID: <521296D6.5030308@...1...> Le 19/08/2013 23:56, Tobias Boege a ?crit : > On Mon, 19 Aug 2013, Beno?t Minisini wrote: >> Le 18/08/2013 21:08, Tobias Boege a ?crit : >>> Hi Benoit, >>> >>> I'm using Application_Read() in a project now and it seems to misbehave. I >>> have attached a project which mirrors its input from within >>> Application_Read() using the Debug instruction. >>> >>> The problem is, even though the file I am redirecting in is completely read, >>> Application_Read() is still called with no end: >>> >>> $ echo "abc" >/tmp/file >>> $ gbx3 >> MMain.Application_Read.12: abc >>> MMain.Application_Read.12: >>> MMain.Application_Read.12: >>> MMain.Application_Read.12: >>> ^C >>> >>> Maybe there is some feof(stdin) check missing to stop the watch since to >>> select(2), the file is still readily readable at the EOF. As callback_read() >>> in gbx_c_file.c seems to be widely shared, I don't want to mess around with >>> it without knowing the rest of the code. >>> >>> Regards, >>> Tobi >>> >> >> Revision #5811 should fix that. >> >> The principle is disabling the read watch as soon as reading a stream >> fails for any reason. >> >> If anything goes wrong after this fix, you will have to wait for two >> weeks: I leave Paris for holidays! >> > > Works! Bon voyage. (I have to practice French again a little as in two > weeks, I'll spend my holidays there :-)) > > Regards, > Tobi > Really? If you go to Paris, tell me so that we can meet. Regards, -- Beno?t Minisini From taboege at ...626... Tue Aug 20 00:12:40 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 20 Aug 2013 00:12:40 +0200 Subject: [Gambas-user] Application_Read() called with no end In-Reply-To: <521296D6.5030308@...1...> References: <20130818190854.GC503@...2774...> <5212924B.8040708@...1...> <20130819215606.GB521@...2774...> <521296D6.5030308@...1...> Message-ID: <20130819221240.GC521@...2774...> On Tue, 20 Aug 2013, Beno?t Minisini wrote: > Le 19/08/2013 23:56, Tobias Boege a ?crit : > > On Mon, 19 Aug 2013, Beno?t Minisini wrote: > >> Le 18/08/2013 21:08, Tobias Boege a ?crit : > >>> Hi Benoit, > >>> > >>> I'm using Application_Read() in a project now and it seems to misbehave. I > >>> have attached a project which mirrors its input from within > >>> Application_Read() using the Debug instruction. > >>> > >>> The problem is, even though the file I am redirecting in is completely read, > >>> Application_Read() is still called with no end: > >>> > >>> $ echo "abc" >/tmp/file > >>> $ gbx3 >>> MMain.Application_Read.12: abc > >>> MMain.Application_Read.12: > >>> MMain.Application_Read.12: > >>> MMain.Application_Read.12: > >>> ^C > >>> > >>> Maybe there is some feof(stdin) check missing to stop the watch since to > >>> select(2), the file is still readily readable at the EOF. As callback_read() > >>> in gbx_c_file.c seems to be widely shared, I don't want to mess around with > >>> it without knowing the rest of the code. > >>> > >>> Regards, > >>> Tobi > >>> > >> > >> Revision #5811 should fix that. > >> > >> The principle is disabling the read watch as soon as reading a stream > >> fails for any reason. > >> > >> If anything goes wrong after this fix, you will have to wait for two > >> weeks: I leave Paris for holidays! > >> > > > > Works! Bon voyage. (I have to practice French again a little as in two > > weeks, I'll spend my holidays there :-)) > > > > Regards, > > Tobi > > > > Really? If you go to Paris, tell me so that we can meet. > Argh, no. It's going to be Sainte-Maxime at the other end of France. I'll keep that in mind for another year. Regards, Tobi From ea7dfh at ...2382... Tue Aug 20 00:27:22 2013 From: ea7dfh at ...2382... (Jesus Guardon) Date: Tue, 20 Aug 2013 00:27:22 +0200 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) In-Reply-To: <521263B7.3040303@...1...> References: <521263B7.3040303@...1...> Message-ID: <52129BCA.2040600@...2382...> El 19/08/13 20:28, Beno?t Minisini escribi?: > - When I have time (after my holidays in two weeks?) I will write an > example project of how to make a web site with Gambas. Surely some > sort of little wiki or blog. Regards, Yessss! We are waiting desperately for it ;-) Regards Jesus Guardon From vuott at ...325... Tue Aug 20 00:40:34 2013 From: vuott at ...325... (Ru Vuott) Date: Mon, 19 Aug 2013 23:40:34 +0100 (BST) Subject: [Gambas-user] About coordinates in .FindChild(...) function In-Reply-To: <52127DBE.7040107@...1...> Message-ID: <1376952034.52282.YahooMailBasic@...3070...> well. bye vuott -------------------------------------------- Lun 19/8/13, Beno?t Minisini ha scritto: Oggetto: Re: [Gambas-user] About coordinates in .FindChild(...) function A: "mailing list for gambas users" Data: Luned? 19 agosto 2013, 22:19 Le 19/08/2013 20:46, Beno?t Minisini a ?crit : > Le 19/08/2013 20:18, Ru Vuott a ?crit : >> Here the attached file. >> >> regards >> vuott >> > > Thanks. *Now* I understand what you are talking about! > OK, the bug should be fixed in revision #5810. Regards, -- Beno?t Minisini ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From willy at ...2734... Tue Aug 20 02:08:22 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 20 Aug 2013 02:08:22 +0200 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) In-Reply-To: <52129BCA.2040600@...2382...> References: <521263B7.3040303@...1...> <52129BCA.2040600@...2382...> Message-ID: <1376957302.3454.2.camel@...3024...> On Tue, 2013-08-20 at 00:27 +0200, Jesus Guardon wrote: > El 19/08/13 20:28, Beno?t Minisini escribi?: > > - When I have time (after my holidays in two weeks?) I will write an > > example project of how to make a web site with Gambas. Surely some > > sort of little wiki or blog. Regards, > > Yessss! We are waiting desperately for it ;-) > > Regards > > Jesus Guardon > Very much looking forward to this :-) -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From eilert-sprachen at ...221... Tue Aug 20 08:20:25 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 Aug 2013 08:20:25 +0200 Subject: [Gambas-user] Why font coordinates lower-left? Message-ID: <52130AA9.7080400@...221...> Hi folks, hi Benoit, just a question about drawing and printing... While other graphic elements start at upper-left corner, fonts start at lower-left. This is true for qt4 drawing as well as for Cairo drawing as far as I could see. This is confusing when you are not aware, for the page starts at upper-left with 0,0 too. So when you print a text at 0,0 you will see nothing, the text is above the border. And you have to take the font height into account whenever positioning text. In Gambas2, font positioning still started at upper-left, so when re-writing old code, I always have to tackle with this problem. But maybe I just haven't understood the deeper sense behind this? :-) Thanks for your insight Rolf From eilert-sprachen at ...221... Tue Aug 20 08:33:49 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 Aug 2013 08:33:49 +0200 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) In-Reply-To: <1376957302.3454.2.camel@...3024...> References: <521263B7.3040303@...1...> <52129BCA.2040600@...2382...> <1376957302.3454.2.camel@...3024...> Message-ID: <52130DCD.2000601@...221...> Am 20.08.2013 02:08, schrieb Willy Raets: > On Tue, 2013-08-20 at 00:27 +0200, Jesus Guardon wrote: >> El 19/08/13 20:28, Beno?t Minisini escribi?: >>> - When I have time (after my holidays in two weeks?) I will write an >>> example project of how to make a web site with Gambas. Surely some >>> sort of little wiki or blog. Regards, >> >> Yessss! We are waiting desperately for it ;-) >> >> Regards >> >> Jesus Guardon >> > Very much looking forward to this :-) > Yes, that might be interesting to see. Up to now, I have never made use of it when writing web apps with Gambas, just used Print... Actually, I don't really know what it's good for, so thanks for any example code :-) Rolf From eilert-sprachen at ...221... Tue Aug 20 09:28:30 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 Aug 2013 09:28:30 +0200 Subject: [Gambas-user] Cairo: coordinates Message-ID: <52131A9E.2050405@...221...> What confused me a bit when using Cairo was the coordinates system. Initiating the page with width = 210 mm and height = 297 mm, I would expect to be able to center a string of text with Cairo.MoveTo((210 / 2) - (Cairo.TextExtents("Hello world").Width / 2), 40) for example (in practice, I would write 105 instead of 210 / 2 of course...) Now, it turned out instead that I had to write Cairo.MoveTo(297 - (Cairo.TextExtents("Hello world").Width / 2), 40) to center the line, so obviously the page is 297 * 2 wide, not 210 mm. Why's that? Rolf From eilert-sprachen at ...221... Tue Aug 20 09:41:30 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 Aug 2013 09:41:30 +0200 Subject: [Gambas-user] Cairo: coordinates In-Reply-To: <52131A9E.2050405@...221...> References: <52131A9E.2050405@...221...> Message-ID: <52131DAA.4040602@...221...> Am 20.08.2013 09:28, schrieb Rolf-Werner Eilert: > What confused me a bit when using Cairo was the coordinates system. > > Initiating the page with width = 210 mm and height = 297 mm, I would > expect to be able to center a string of text with > > Cairo.MoveTo((210 / 2) - (Cairo.TextExtents("Hello world").Width / 2), 40) > > for example (in practice, I would write 105 instead of 210 / 2 of course...) > > Now, it turned out instead that I had to write > > Cairo.MoveTo(297 - (Cairo.TextExtents("Hello world").Width / 2), 40) > > to center the line, so obviously the page is 297 * 2 wide, not 210 mm. > > Why's that? > > Rolf > I have to add that this problem only came up because there seems to be no property delivering the page width (or surface width) in user coordinates. At least I haven't found one. If there was, the line would go something like Cairo.MoveTo((Cairo.SurfaceExtents.Width / 2) - (Cairo.TextExtents("Hell world").Width / 2), 40) That's why I had to use a fixed value. Rolf From mckaygerhard at ...626... Tue Aug 20 15:30:51 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 20 Aug 2013 09:00:51 -0430 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) Message-ID: El 19/08/13 20:28, Beno?t Minisini escribi?: > - When I have time (after my holidays in two weeks?) I will write an > example project of how to make a web site with Gambas. Surely some > sort of little wiki or blog. Regards, Benoit i urgency need those examples.. due now my project client are on production... found that made hole admin part in gambas are more usefully rather that made in php+apache please urgency made a good example.. with request and response.. for those interesting : http://mckaygerhard.github.io/simplecontrolasistencia/ for usage with live-cd www.venenux.net that now comes build-in with gambas 3 soon From mmcg29440 at ...3163... Tue Aug 20 15:52:54 2013 From: mmcg29440 at ...3163... (Marty) Date: Tue, 20 Aug 2013 09:52:54 -0400 Subject: [Gambas-user] SMTP Client errors - Sending Email Message-ID: <521374B6.9090209@...3163...> God Morning All, I'm using gb.smpt to send email from a Gambas routine. The routine is: 12 Public Sub btnSend_Click() 13 14 Dim t$ As String 15 Dim email As New SmtpClient 16 17 t$ = File.Load("/home/marty/Test.txt") 18 19 With email 20 .Add("Hello") 21 .Add(t$, Mime.Default, "Test.txt") 22 .To.Add("xxxxxx at ...3172...") 23 .From = "xxxxxx at ...3172..." 24 .Subject = "Linux Test" 25 .Encrypt = Net.SSL 26 .Port = 465 27 .Host = "smtp.xxxx.com" 28 .User = "xxxxxxx at ...3172..." 29 .Password = "password" 30 .Debug = True 31 End With 32 33 email.Send() End Sensitive data removed. There are multiple errors: 1. If I include the line to add an attachment -"Cannot find Mime subtype in line 33" 2.If I use Net.SSL with port 465 "Error 535 Authentication failed" My account should use SSL and port 465. That's the way it is set up on Windows. Debug output: <- 220 relay01.dlls.pa.xxxxxxx.net ESMTP Postfix -> ehlo marty-xxxxxxxxxxxxxxxxxxxx <- 250-relay01.dlls.pa.xxxxx.net 250-PIPELINING 250-SIZE 36350634 250-ETRN 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN -> auth plain AG1tY2cyOTQ0MEBmcm9udGllci5jb20AOTA2NlBvDQo= <- 535 5.7.8 Error: authentication failed: authentication failure -> quit No matter what I try the message is not sent. The docs say that V 3.4 supports encryption. Can you tell me where I'm going wrong? I'm running Ubuntu 12.04. Is it possible that SSL is not installed? How can I check it? Then how to install it? Thanks for your patience and help! Marty From eilert-sprachen at ...221... Tue Aug 20 16:52:01 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Tue, 20 Aug 2013 16:52:01 +0200 Subject: [Gambas-user] SMTP Client errors - Sending Email In-Reply-To: <521374B6.9090209@...3163...> References: <521374B6.9090209@...3163...> Message-ID: <52138291.6040609@...221...> Am 20.08.2013 15:52, schrieb Marty: > God Morning All, > > I'm using gb.smpt to send email from a Gambas routine. The routine is: > > 12 Public Sub btnSend_Click() > 13 > 14 Dim t$ As String > 15 Dim email As New SmtpClient > 16 > 17 t$ = File.Load("/home/marty/Test.txt") > 18 > 19 With email > 20 .Add("Hello") > 21 .Add(t$, Mime.Default, "Test.txt") > 22 .To.Add("xxxxxx at ...3172...") > 23 .From = "xxxxxx at ...3172..." > 24 .Subject = "Linux Test" > 25 .Encrypt = Net.SSL > 26 .Port = 465 > 27 .Host = "smtp.xxxx.com" > 28 .User = "xxxxxxx at ...3172..." > 29 .Password = "password" > 30 .Debug = True > 31 End With > 32 > 33 email.Send() > > End > > Sensitive data removed. There are multiple errors: > > 1. If I include the line to add an attachment -"Cannot find Mime subtype > in line 33" > > 2.If I use Net.SSL with port 465 "Error 535 Authentication failed" > My account should use SSL and port 465. That's the way it is set up > on Windows. > Debug output: > <- 220 relay01.dlls.pa.xxxxxxx.net ESMTP Postfix > > -> ehlo marty-xxxxxxxxxxxxxxxxxxxx > > <- 250-relay01.dlls.pa.xxxxx.net > 250-PIPELINING > 250-SIZE 36350634 > 250-ETRN > 250-AUTH LOGIN PLAIN > 250-AUTH=LOGIN PLAIN > 250-ENHANCEDSTATUSCODES > 250-8BITMIME > 250 DSN > > -> auth plain AG1tY2cyOTQ0MEBmcm9udGllci5jb20AOTA2NlBvDQo= > > <- 535 5.7.8 Error: authentication failed: authentication failure > > -> quit > > No matter what I try the message is not sent. The docs say that V 3.4 > supports encryption. > Can you tell me where I'm going wrong? I'm running Ubuntu 12.04. Is it > possible that SSL is not installed? How can I check it? Then how to > install it? > > Thanks for your patience and help! > > Marty > Hi Marty, Not a spontaneous help, but as you will see in this list, I have had the same or a similar problem with it during the last weeks. At least I can say that I got no error with the Mime. thing, but I had a pdf to attach and used Mime.Binary (no idea if that was correct, but there were no complaints). I tried with different providers and their different settings. With SSL, I got no message at all, just ->quit. With TLS I got the same kind of errors and found no way to solve them. That provider uses STARTTLS, maybe it's not been fully implemented yet. Eventually I used an external tool for sending the mails. Regards Rolf From willy at ...2734... Tue Aug 20 20:00:39 2013 From: willy at ...2734... (Willy Raets) Date: Tue, 20 Aug 2013 20:00:39 +0200 Subject: [Gambas-user] SMTP Client errors - Sending Email In-Reply-To: <52138291.6040609@...221...> References: <521374B6.9090209@...3163...> <52138291.6040609@...221...> Message-ID: <1377021639.9172.15.camel@...3024...> On Tue, 2013-08-20 at 16:52 +0200, Rolf-Werner Eilert wrote: > > Am 20.08.2013 15:52, schrieb Marty: > > God Morning All, > > > > I'm using gb.smpt to send email from a Gambas routine. The routine is: > > > > 12 Public Sub btnSend_Click() > > 13 > > 14 Dim t$ As String > > 15 Dim email As New SmtpClient > > 16 > > 17 t$ = File.Load("/home/marty/Test.txt") > > 18 > > 19 With email > > 20 .Add("Hello") > > 21 .Add(t$, Mime.Default, "Test.txt") > > 22 .To.Add("xxxxxx at ...3172...") > > 23 .From = "xxxxxx at ...3172..." > > 24 .Subject = "Linux Test" > > 25 .Encrypt = Net.SSL > > 26 .Port = 465 > > 27 .Host = "smtp.xxxx.com" > > 28 .User = "xxxxxxx at ...3172..." > > 29 .Password = "password" > > 30 .Debug = True > > 31 End With > > 32 > > 33 email.Send() > > > > End > > > > Sensitive data removed. There are multiple errors: > > > > 1. If I include the line to add an attachment -"Cannot find Mime subtype > > in line 33" > > > > 2.If I use Net.SSL with port 465 "Error 535 Authentication failed" > > My account should use SSL and port 465. That's the way it is set up > > on Windows. > > Debug output: > > <- 220 relay01.dlls.pa.xxxxxxx.net ESMTP Postfix > > > > -> ehlo marty-xxxxxxxxxxxxxxxxxxxx > > > > <- 250-relay01.dlls.pa.xxxxx.net > > 250-PIPELINING > > 250-SIZE 36350634 > > 250-ETRN > > 250-AUTH LOGIN PLAIN > > 250-AUTH=LOGIN PLAIN > > 250-ENHANCEDSTATUSCODES > > 250-8BITMIME > > 250 DSN > > > > -> auth plain AG1tY2cyOTQ0MEBmcm9udGllci5jb20AOTA2NlBvDQo= > > > > <- 535 5.7.8 Error: authentication failed: authentication failure > > > > -> quit > > > > No matter what I try the message is not sent. The docs say that V 3.4 > > supports encryption. > > Can you tell me where I'm going wrong? I'm running Ubuntu 12.04. Is it > > possible that SSL is not installed? How can I check it? Then how to > > install it? > > > > Thanks for your patience and help! > > > > Marty > > > > Hi Marty, > > Not a spontaneous help, but as you will see in this list, I have had the > same or a similar problem with it during the last weeks. At least I can > say that I got no error with the Mime. thing, but I had a pdf to attach > and used Mime.Binary (no idea if that was correct, but there were no > complaints). That is because in the .add you need to use a string for mime type. Mime.binary will return an integer value. @ Marty For text file write .Add(t$, "text/plain","Test.txt") Assuming that t$ is a File.Load of a text file @ Rolf For pfd file write .Add(t$, "application/pdf","Test.pdf") Assuming that t$ is a File.Load of a pdf file > > I tried with different providers and their different settings. With SSL, > I got no message at all, just ->quit. With TLS I got the same kind of > errors and found no way to solve them. That provider uses STARTTLS, > maybe it's not been fully implemented yet. > > Eventually I used an external tool for sending the mails. Over here in the Netherlands you have to use the smtp server of the provider that is connecting you. So at home I have one, going to my girlfriend I need to change my mail client settings to her providers smtp server. At work I need to change my mail client settings to that providers smtp server. Hence all you need here is the smtp DNS name or IP, no username nor password of the provider that is connecting you at that location. So I can't help you with the SSl or TSL. I can only say that I built a Gambas application at work that uses both gb.smpt and gb.cairo (for pdf making). It sends information on extra worked hours of personel to the accountants in a mail containing a general text in the body and custom signature and an attached pdf containing the information on extra hours for personel. gb.cairo makes the pdf, next gb.smtp sends it all. I put a Wait 0.1 in between to make sure pdf is complete before sending all. Works like a charm. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From kevinfishburne at ...1887... Tue Aug 20 22:25:37 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 20 Aug 2013 16:25:37 -0400 Subject: [Gambas-user] sebikul (gambas-daily) raring ppa broken Message-ID: <5213D0C1.4030504@...1887...> I've tested it on two machines just now and I get the following error: /var/cache/apt/archives/gambas3-gb-eval-highlight_3.4.99-1+svn4657-build41~raring1_all.deb trying to overwrite '/usr/share/gambas3/info/gb.eval.highlight.info', which is also in package gambas3-runtime 3.4.99-1+svn4657-build41~raring1 I'm using Kubuntu 13.04 ia64. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From mckaygerhard at ...626... Tue Aug 20 22:42:15 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 20 Aug 2013 16:12:15 -0430 Subject: [Gambas-user] how to disable temporally key combinartion (alt+F4 etc) Message-ID: i want to disable some key combination, specially alt+F4 and crtl+alt+backspace under X11 how could be do? and also how to got focus, put in undecorate and then set always_on_top ! for plus jejeje Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From sebikul at ...626... Tue Aug 20 23:13:39 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Tue, 20 Aug 2013 18:13:39 -0300 Subject: [Gambas-user] sebikul (gambas-daily) raring ppa broken In-Reply-To: <5213D0C1.4030504@...1887...> References: <5213D0C1.4030504@...1887...> Message-ID: Hi! Another user already reported this bug on the Quantal builds. It's a really stupid mistake i left from an update i made last week. I will fix it as soon as i get home, though i'm not sure if i will be able to do it tonight. If it's urgent, you can temporarily enable Kendek's ppa or downgrade the gambas3-{runtime,ide} to a working version. I'm really sorry about this issue. On Tue, Aug 20, 2013 at 5:25 PM, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > I've tested it on two machines just now and I get the following error: > > > /var/cache/apt/archives/gambas3-gb-eval-highlight_3.4.99-1+svn4657-build41~raring1_all.deb > > trying to overwrite '/usr/share/gambas3/info/gb.eval.highlight.info', > which is also in package gambas3-runtime 3.4.99-1+svn4657-build41~raring1 > > > I'm using Kubuntu 13.04 ia64. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From kevinfishburne at ...1887... Wed Aug 21 01:24:28 2013 From: kevinfishburne at ...1887... (Kevin Fishburne) Date: Tue, 20 Aug 2013 19:24:28 -0400 Subject: [Gambas-user] sebikul (gambas-daily) raring ppa broken In-Reply-To: References: <5213D0C1.4030504@...1887...> Message-ID: <5213FAAC.1090701@...1887...> On 08/20/2013 05:13 PM, Sebastian Kulesz wrote: > Hi! Another user already reported this bug on the Quantal builds. It's a > really stupid mistake i left from an update i made last week. I will fix it > as soon as i get home, though i'm not sure if i will be able to do it > tonight. If it's urgent, you can temporarily enable Kendek's ppa or > downgrade the gambas3-{runtime,ide} to a working version. > > I'm really sorry about this issue. Not a problem and sorry for not seeing the earlier report. I temporarily disabled the ppa and am using Kendek's ppa for the time being so no worries. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sales at ...1887... phone: (770) 853-6271 From mmcg29440 at ...3163... Wed Aug 21 02:25:09 2013 From: mmcg29440 at ...3163... (Marty McGlensey) Date: Tue, 20 Aug 2013 20:25:09 -0400 Subject: [Gambas-user] gb.SMTP Errors Message-ID: <000001ce9e04$e5b623a0$b1226ae0$@com> Thanks, Willy. The change from mime.Text to "text/Plain cured the Mime error. I still get the authentication error: error 535 - 5.7.8. I've tried to send emails to accounts located on the same server. No mail sent. Tried setting gb.smpt to the same parameters as my wife's account. Her account works with no encryption and port 25 in window Outlook but, fails with gb.smpt. Same error 535. See routine below. Dim t$ As String > 15 Dim email As New SmtpClient > 16 > 17 t$ = File.Load("/home/marty/Test.txt") > 18 > 19 With email > 20 .Add("Hello") > 21 .Add(t$, Text/Plain, "Test.txt") > 22 .To.Add("xxxxxx at ...3172...") > 23 .From = "xxxxxx at ...3172..." > 24 .Subject = "Linux Test" > 25 .Encrypt = Net.None > 26 .Port = 25 > 27 .Host = "smtp.xxxx.com" > 28 .User = "xxxxxxx at ...3172..." > 29 .Password = "password" > 30 .Debug = True > 31 End With > 32 > 33 email.Send() > From eilert-sprachen at ...221... Wed Aug 21 08:43:40 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Wed, 21 Aug 2013 08:43:40 +0200 Subject: [Gambas-user] SMTP Client errors - Sending Email In-Reply-To: <1377021639.9172.15.camel@...3024...> References: <521374B6.9090209@...3163...> <52138291.6040609@...221...> <1377021639.9172.15.camel@...3024...> Message-ID: <5214619C.1020305@...221...> Am 20.08.2013 20:00, schrieb Willy Raets: > On Tue, 2013-08-20 at 16:52 +0200, Rolf-Werner Eilert wrote: >> >> Am 20.08.2013 15:52, schrieb Marty: >>> God Morning All, >>> >>> I'm using gb.smpt to send email from a Gambas routine. The routine is: >>> >>> 12 Public Sub btnSend_Click() >>> 13 >>> 14 Dim t$ As String >>> 15 Dim email As New SmtpClient >>> 16 >>> 17 t$ = File.Load("/home/marty/Test.txt") >>> 18 >>> 19 With email >>> 20 .Add("Hello") >>> 21 .Add(t$, Mime.Default, "Test.txt") >>> 22 .To.Add("xxxxxx at ...3172...") >>> 23 .From = "xxxxxx at ...3172..." >>> 24 .Subject = "Linux Test" >>> 25 .Encrypt = Net.SSL >>> 26 .Port = 465 >>> 27 .Host = "smtp.xxxx.com" >>> 28 .User = "xxxxxxx at ...3172..." >>> 29 .Password = "password" >>> 30 .Debug = True >>> 31 End With >>> 32 >>> 33 email.Send() >>> >>> End >>> >>> Sensitive data removed. There are multiple errors: >>> >>> 1. If I include the line to add an attachment -"Cannot find Mime subtype >>> in line 33" >>> >>> 2.If I use Net.SSL with port 465 "Error 535 Authentication failed" >>> My account should use SSL and port 465. That's the way it is set up >>> on Windows. >>> Debug output: >>> <- 220 relay01.dlls.pa.xxxxxxx.net ESMTP Postfix >>> >>> -> ehlo marty-xxxxxxxxxxxxxxxxxxxx >>> >>> <- 250-relay01.dlls.pa.xxxxx.net >>> 250-PIPELINING >>> 250-SIZE 36350634 >>> 250-ETRN >>> 250-AUTH LOGIN PLAIN >>> 250-AUTH=LOGIN PLAIN >>> 250-ENHANCEDSTATUSCODES >>> 250-8BITMIME >>> 250 DSN >>> >>> -> auth plain AG1tY2cyOTQ0MEBmcm9udGllci5jb20AOTA2NlBvDQo= >>> >>> <- 535 5.7.8 Error: authentication failed: authentication failure >>> >>> -> quit >>> >>> No matter what I try the message is not sent. The docs say that V 3.4 >>> supports encryption. >>> Can you tell me where I'm going wrong? I'm running Ubuntu 12.04. Is it >>> possible that SSL is not installed? How can I check it? Then how to >>> install it? >>> >>> Thanks for your patience and help! >>> >>> Marty >>> >> >> Hi Marty, >> >> Not a spontaneous help, but as you will see in this list, I have had the >> same or a similar problem with it during the last weeks. At least I can >> say that I got no error with the Mime. thing, but I had a pdf to attach >> and used Mime.Binary (no idea if that was correct, but there were no >> complaints). > > That is because in the .add you need to use a string for mime type. > Mime.binary will return an integer value. > > @ Marty > For text file write .Add(t$, "text/plain","Test.txt") > Assuming that t$ is a File.Load of a text file > > @ Rolf > For pfd file write .Add(t$, "application/pdf","Test.pdf") > Assuming that t$ is a File.Load of a pdf file > Thank you for that tip, I've changed it accordingly. So "Test.pdf" just gives a random name to be added to the data in the string, and it doesn't need the path? > Over here in the Netherlands you have to use the smtp server of the > provider that is connecting you. We can do the same here, but you could also use any other provider's access like Yahoo, GMX etc. I tried them all, no success. > I can only say that I built a Gambas application at work that uses both > gb.smpt and gb.cairo (for pdf making). It sends information on extra > worked hours of personel to the accountants in a mail containing a > general text in the body and custom signature and an attached pdf > containing the information on extra hours for personel. Yes, this is pretty near to what I intend to do with my Gambas app. > > gb.cairo makes the pdf, next gb.smtp sends it all. I put a Wait 0.1 in > between to make sure pdf is complete before sending all. > Works like a charm. > According to Benoit, Cairo works synchroneously, at least he is pretty sure it does. But it turned out this wasn't my problem. Except SMTP sending, it works great here too. Thanks again for the advice! Rolf From willy at ...2734... Wed Aug 21 14:03:15 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 21 Aug 2013 14:03:15 +0200 Subject: [Gambas-user] SMTP Client errors - Sending Email In-Reply-To: <5214619C.1020305@...221...> References: <521374B6.9090209@...3163...> <52138291.6040609@...221...> <1377021639.9172.15.camel@...3024...> <5214619C.1020305@...221...> Message-ID: <1377086595.2292.8.camel@...3024...> On Wed, 2013-08-21 at 08:43 +0200, Rolf-Werner Eilert wrote: > > Am 20.08.2013 20:00, schrieb Willy Raets: > > On Tue, 2013-08-20 at 16:52 +0200, Rolf-Werner Eilert wrote: > >> > >> Am 20.08.2013 15:52, schrieb Marty: > >>> God Morning All, > >>> > >>> I'm using gb.smpt to send email from a Gambas routine. The routine is: > >>> > >>> 12 Public Sub btnSend_Click() > >>> 13 > >>> 14 Dim t$ As String > >>> 15 Dim email As New SmtpClient > >>> 16 > >>> 17 t$ = File.Load("/home/marty/Test.txt") > >>> 18 > >>> 19 With email > >>> 20 .Add("Hello") > >>> 21 .Add(t$, Mime.Default, "Test.txt") > >>> 22 .To.Add("xxxxxx at ...3172...") > >>> 23 .From = "xxxxxx at ...3172..." > >>> 24 .Subject = "Linux Test" > >>> 25 .Encrypt = Net.SSL > >>> 26 .Port = 465 > >>> 27 .Host = "smtp.xxxx.com" > >>> 28 .User = "xxxxxxx at ...3172..." > >>> 29 .Password = "password" > >>> 30 .Debug = True > >>> 31 End With > >>> 32 > >>> 33 email.Send() > >>> > >>> End > >>> > >>> Sensitive data removed. There are multiple errors: > >>> > >>> 1. If I include the line to add an attachment -"Cannot find Mime subtype > >>> in line 33" > >>> > >>> 2.If I use Net.SSL with port 465 "Error 535 Authentication failed" > >>> My account should use SSL and port 465. That's the way it is set up > >>> on Windows. > >>> Debug output: > >>> <- 220 relay01.dlls.pa.xxxxxxx.net ESMTP Postfix > >>> > >>> -> ehlo marty-xxxxxxxxxxxxxxxxxxxx > >>> > >>> <- 250-relay01.dlls.pa.xxxxx.net > >>> 250-PIPELINING > >>> 250-SIZE 36350634 > >>> 250-ETRN > >>> 250-AUTH LOGIN PLAIN > >>> 250-AUTH=LOGIN PLAIN > >>> 250-ENHANCEDSTATUSCODES > >>> 250-8BITMIME > >>> 250 DSN > >>> > >>> -> auth plain AG1tY2cyOTQ0MEBmcm9udGllci5jb20AOTA2NlBvDQo= > >>> > >>> <- 535 5.7.8 Error: authentication failed: authentication failure > >>> > >>> -> quit > >>> > >>> No matter what I try the message is not sent. The docs say that V 3.4 > >>> supports encryption. > >>> Can you tell me where I'm going wrong? I'm running Ubuntu 12.04. Is it > >>> possible that SSL is not installed? How can I check it? Then how to > >>> install it? > >>> > >>> Thanks for your patience and help! > >>> > >>> Marty > >>> > >> > >> Hi Marty, > >> > >> Not a spontaneous help, but as you will see in this list, I have had the > >> same or a similar problem with it during the last weeks. At least I can > >> say that I got no error with the Mime. thing, but I had a pdf to attach > >> and used Mime.Binary (no idea if that was correct, but there were no > >> complaints). > > > > That is because in the .add you need to use a string for mime type. > > Mime.binary will return an integer value. > > > > @ Marty > > For text file write .Add(t$, "text/plain","Test.txt") > > Assuming that t$ is a File.Load of a text file > > > > @ Rolf > > For pfd file write .Add(t$, "application/pdf","Test.pdf") > > Assuming that t$ is a File.Load of a pdf file > > > > Thank you for that tip, I've changed it accordingly. So "Test.pdf" just > gives a random name to be added to the data in the string, and it > doesn't need the path? The 3rd argument in Add() is the name the attachment will get when attached in the mail. You can use the same name as the original file you would like to add (no need for the path) or make up a new name for the attachement > > > Over here in the Netherlands you have to use the smtp server of the > > provider that is connecting you. > > We can do the same here, but you could also use any other provider's > access like Yahoo, GMX etc. I tried them all, no success. Have you tried with only server and port settings, no username, no password, no SSL or TSL. > > > I can only say that I built a Gambas application at work that uses both > > gb.smpt and gb.cairo (for pdf making). It sends information on extra > > worked hours of personel to the accountants in a mail containing a > > general text in the body and custom signature and an attached pdf > > containing the information on extra hours for personel. > > Yes, this is pretty near to what I intend to do with my Gambas app. > > > > > gb.cairo makes the pdf, next gb.smtp sends it all. I put a Wait 0.1 in > > between to make sure pdf is complete before sending all. > > Works like a charm. > > > > According to Benoit, Cairo works synchroneously, at least he is pretty > sure it does. But it turned out this wasn't my problem. > > Except SMTP sending, it works great here too. > > Thanks again for the advice! > > Rolf > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Wed Aug 21 14:21:27 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 21 Aug 2013 14:21:27 +0200 Subject: [Gambas-user] gb.SMTP Errors In-Reply-To: <000001ce9e04$e5b623a0$b1226ae0$@com> References: <000001ce9e04$e5b623a0$b1226ae0$@com> Message-ID: <1377087687.2292.22.camel@...3024...> On Tue, 2013-08-20 at 20:25 -0400, Marty McGlensey wrote: > Thanks, Willy. The change from mime.Text to "text/Plain cured the Mime > error. I still get the authentication error: error 535 - 5.7.8. I've tried > to send emails to accounts located on the same server. No mail sent. Tried > setting gb.smpt to the same parameters as my wife's account. Her account > works with no encryption and port 25 in window Outlook but, fails with > gb.smpt. Same error 535. See routine below. > > Here is the code of a routine I use in one of my applications. Some notes to make it understandable: 1. Some of the information used comes from a selection in a Combobox (mail from), some TextBoxes (mail to, mail subject) and some TextAreas (mail Add for both body and attachment) 2. The Bugreport.MakeErrorSendFile() in Catch is a routine somewhere else handling my error reporting, so I know what goes wrong and where. 3. MailSend in a Public Boolean used elsewhere in the application to give users an indication if mail send successfully or not. ----------------------------------------- Private Sub SendMail() Dim hMail As New SmtpClient hMail.Port = 25 hMail.Host = "smtp.xxxx.xxx" hMail.Bcc.Add("xxxx at ...3172...") hMail.From = cmbxFrom.Text hMail.To.Add(tbxTo.Text) hMail.Subject = tbxSubject.Text hMail.Add(txaBody.Text,, "") hMail.Add(txaAttachment.Text, "text/plain", "BijlageMailMinMax.txt") hMail.Send MailSend = True Catch MailSend = False BugReport.MakeErrorSendFile(Error.Code, Error.Text, Error.Where) Error.Clear End ----------------------------------------- As you see I only use port and host, no User or password, no encrypt. Maybe the error occurs in the authentication part, don't know as I never used authentication combined with smtp in any of my applications. > > Dim t$ As String > > > 15 Dim email As New SmtpClient > > > 16 > > > 17 t$ = File.Load("/home/marty/Test.txt") > > > 18 > > > 19 With email > > > 20 .Add("Hello") > > > 21 .Add(t$, Text/Plain, "Test.txt") > > > 22 .To.Add("xxxxxx at ...3172...") > > > 23 .From = "xxxxxx at ...3172..." > > > 24 .Subject = "Linux Test" > > > 25 .Encrypt = Net.None > > > 26 .Port = 25 > > > 27 .Host = "smtp.xxxx.com" > > > 28 .User = "xxxxxxx at ...3172..." > > > 29 .Password = "password" > > > 30 .Debug = True > > > 31 End With > > > 32 > > > 33 email.Send() > > > -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Wed Aug 21 15:08:24 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 21 Aug 2013 15:08:24 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering Message-ID: <20130821130824.GE1021@...2774...> Hi folks, is anyone else having trouble with the latest revision(s)? I observed two things: 1) Stream buffering broken. If I have a Process (it may equivalently well be only a Process problem (not a general Stream one) as it is the Process code which was touched recently), I get one line from it and nothing more until the program terminates (or the Process object is released). The IDE has the same problem with my programs: If I use Print/Debug/Error in the code, the IDE doesn't see them until the program is closed. 2) IDE property panel unusable. I can't set values anymore. The errors say "Incorrect property value." for everything. I can't set a Boolean to True anymore, to give an example. I did a complete $ make clean && ./reconf-all && ./configure && make -j5 && sudo make install and the problems remain! I'd like to know if anyone can reproduce these problems or if something over here is _seriously_ broken. Oh, and I should note that I have also installed an alternate version of Gambas in my local $HOME/bin which I can run and it doesn't show the above both symptoms. My broken version in use is #5812 and the working alternate version is #5801. Regards, Tobi From gambas at ...2524... Wed Aug 21 21:38:14 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Wed, 21 Aug 2013 19:38:14 +0000 Subject: [Gambas-user] Issue 461 in gambas: Revision 5812 doesn't compile on Raspbian Linux Message-ID: <0-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version-TRUNK Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 461 by uAle... at ...626...: Revision 5812 doesn't compile on Raspbian Linux http://code.google.com/p/gambas/issues/detail?id=461 1) Describe the problem. The latest revision 5812 doesn't compile anymore on Raspbian Linux (2013-07-26, Wheezy). The make stops with: /usr/bin/moc-qt4 -o CClipboard_moc.cpp CClipboard.h CXX gb_qt4_la-CClipboard_moc.lo CXX gb_qt4_la-CClipboard.lo CXX gb_qt4_la-CDraw.lo CXX gb_qt4_la-cpaint_impl.lo cpaint_impl.cpp: In function 'void TransformMap(GB_TRANSFORM, double*, double*)': cpaint_impl.cpp:1267:42: error: no matching function for call to 'QTransform::map(double&, double&, double*&, double*&)' cpaint_impl.cpp:1267:42: note: candidates are: /usr/include/qt4/QtGui/qtransform.h:141:18: note: QPoint QTransform::map(const QPoint&) const /usr/include/qt4/QtGui/qtransform.h:141:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:142:18: note: QPointF QTransform::map(const QPointF&) const /usr/include/qt4/QtGui/qtransform.h:142:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:143:18: note: QLine QTransform::map(const QLine&) const /usr/include/qt4/QtGui/qtransform.h:143:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:144:18: note: QLineF QTransform::map(const QLineF&) const /usr/include/qt4/QtGui/qtransform.h:144:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:145:18: note: QPolygonF QTransform::map(const QPolygonF&) const /usr/include/qt4/QtGui/qtransform.h:145:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:146:18: note: QPolygon QTransform::map(const QPolygon&) const /usr/include/qt4/QtGui/qtransform.h:146:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:147:18: note: QRegion QTransform::map(const QRegion&) const /usr/include/qt4/QtGui/qtransform.h:147:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:148:18: note: QPainterPath QTransform::map(const QPainterPath&) const /usr/include/qt4/QtGui/qtransform.h:148:18: note: candidate expects 1 argument, 4 provided /usr/include/qt4/QtGui/qtransform.h:152:10: note: void QTransform::map(int, int, int*, int*) const /usr/include/qt4/QtGui/qtransform.h:152:10: note: no known conversion for argument 3 from 'double*' to 'int*' /usr/include/qt4/QtGui/qtransform.h:153:10: note: void QTransform::map(qreal, qreal, qreal*, qreal*) const /usr/include/qt4/QtGui/qtransform.h:153:10: note: no known conversion for argument 3 from 'double*' to 'qreal* {aka float*}' make[5]: *** [gb_qt4_la-cpaint_impl.lo] Error 1 make[5]: Leaving directory `/home/pi/install/gambas-trunk/gb.qt4/src' 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r5812 Operating system: Linux Distribution: Raspbian (Debian 7.1 based) Architecture: ARMv6 GUI component: QT4 Desktop used: Gnome / KDE ... 3) Provide a little project that reproduces the bug or the crash. See attache reconf, configure and make output 4) If your project needs a database, try to provide it, or part of it. 5) Explain clearly how to reproduce the bug or the crash. 6) By doing that carefully, you have done 50% of the bug fix job! IMPORTANT NOTE: if you encounter several different problems or bugs, (for example, a bug in your project, and an interpreter crash while debugging it), please create distinct issues! Attachments: logging-r5812.tar.gz 12.0 KB -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From sebikul at ...626... Wed Aug 21 23:05:12 2013 From: sebikul at ...626... (Sebastian Kulesz) Date: Wed, 21 Aug 2013 18:05:12 -0300 Subject: [Gambas-user] sebikul (gambas-daily) raring ppa broken In-Reply-To: <5213FAAC.1090701@...1887...> References: <5213D0C1.4030504@...1887...> <5213FAAC.1090701@...1887...> Message-ID: I just pushed a fix for the bug. Launchpad buildfarm is working at 50% it's power so it will take a few hours to finish. The lucid series is still broken: libalure minimum version needs to be dropped to 1.12 And arm builds are still broken for every series. Sorry if this brought you any problems! On Tue, Aug 20, 2013 at 8:24 PM, Kevin Fishburne < kevinfishburne at ...1887...> wrote: > On 08/20/2013 05:13 PM, Sebastian Kulesz wrote: > > Hi! Another user already reported this bug on the Quantal builds. It's a > > really stupid mistake i left from an update i made last week. I will fix > it > > as soon as i get home, though i'm not sure if i will be able to do it > > tonight. If it's urgent, you can temporarily enable Kendek's ppa or > > downgrade the gambas3-{runtime,ide} to a working version. > > > > I'm really sorry about this issue. > > Not a problem and sorry for not seeing the earlier report. I temporarily > disabled the ppa and am using Kendek's ppa for the time being so no > worries. > > -- > Kevin Fishburne > Eight Virtues > www: http://sales.eightvirtues.com > e-mail: sales at ...1887... > phone: (770) 853-6271 > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Wed Aug 21 23:47:08 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Aug 2013 17:17:08 -0430 Subject: [Gambas-user] how to relauch the app from app Message-ID: in my app every time at 00:00:00 must be redone all form.. how could i done that? i mean something like relaunch my app from inside my app (uff how recursive) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From rmorgan62 at ...626... Thu Aug 22 00:39:30 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 21 Aug 2013 15:39:30 -0700 Subject: [Gambas-user] how to relauch the app from app In-Reply-To: References: Message-ID: Three possibilities: 1. Setup a cron job to close and restart your app. 2. Start a new instance of your app as needed and then close the current app. 3. Create a launcher app that gets called by your app on shutdown which then relaunches the app. Hopefully, others can help you with details... On Wed, Aug 21, 2013 at 2:47 PM, PICCORO McKAY Lenz wrote: > in my app every time at 00:00:00 must be redone all form.. > > how could i done that? > > i mean something like relaunch my app from inside my app (uff how > recursive) > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From mmcg29440 at ...3163... Thu Aug 22 02:22:02 2013 From: mmcg29440 at ...3163... (Marty) Date: Wed, 21 Aug 2013 20:22:02 -0400 Subject: [Gambas-user] SMTP Errors Message-ID: <521559AA.7070906@...3163...> I think I know why gb.smtp does not work. I have been getting the 535 error (authentication failed). I have tried everything including Rolf's suggestion of leaving off the user and password. Still authentication fails. Looking at the documentation for password and user it says that only plain authentication is supported. I think the send process breaks down when the password and user get to the smtp host. It may be looking for an SSL encoded string not a plain string; therefore authentication fails. Rolf and Willy let me know what you think. Is this possible? Could openSSL be at fault? That's the other thought I had. Rolf I've tried the routine you suggested and it seems to work. I may follow your advice and use it. Regards, Marty From willy at ...2734... Thu Aug 22 02:55:52 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 22 Aug 2013 02:55:52 +0200 Subject: [Gambas-user] SMTP Errors In-Reply-To: <521559AA.7070906@...3163...> References: <521559AA.7070906@...3163...> Message-ID: <1377132952.3232.15.camel@...3024...> On Wed, 2013-08-21 at 20:22 -0400, Marty wrote: > I think I know why gb.smtp does not work. I have been getting the 535 > error (authentication failed). I have tried everything including Rolf's > suggestion of leaving off the user and password. Still authentication > fails. You need to make sure that your smtp server does NOT require authentication. If so there is NO need for user, password and encryption and you should get NO authentication error. If your smtp server DOES require user and password, leaving user and password out will lead to an authentication failure (as it requires authentication at server side) Fact that you get the errors means gb.net.smtp does communicate with smtp server, as these errors codes are generated by smtp server (giving you the reason what goes wrong). > Looking at the documentation for password and user it says that > only plain authentication is supported. I think the send process breaks > down when the password and user get to the smtp host. It may be looking > for an SSL encoded string not a plain string; therefore authentication > fails. Rolf and Willy let me know what you think. Is this possible? > Could openSSL be at fault? That's the other thought I had. I cut this piece out of an earlier post you wrote: > >>> 2.If I use Net.SSL with port 465 "Error 535 Authentication > >>> Debug output: > >>> <- 220 relay01.dlls.pa.xxxxxxx.net ESMTP Postfix > >>> > >>> -> ehlo marty-xxxxxxxxxxxxxxxxxxxx > >>> > >>> <- 250-relay01.dlls.pa.xxxxx.net > >>> 250-PIPELINING > >>> 250-SIZE 36350634 > >>> 250-ETRN > >>> 250-AUTH LOGIN PLAIN > >>> 250-AUTH=LOGIN PLAIN > >>> 250-ENHANCEDSTATUSCODES > >>> 250-8BITMIME > >>> 250 DSN > >>> > >>> -> auth plain AG1tY2cyOTQ0MEBmcm9udGllci5jb20AOTA2NlBvDQo= > >>> > >>> <- 535 5.7.8 Error: authentication failed: authentication failure > >>> > >>> -> quit See the line 250-AUTH LOGIN PLAIN and 250-AUTH=LOGIN PLAIN. Seems like even when using SSL user and password is passed as plain text and thus refused by smtp server leading to an authentication failure. So seems documentation is correct on plain text password being passed. Leaving user, password and encryption out will only work if smtp server allows access without authentication (as explained above). > > Rolf I've tried the routine you suggested and it seems to work. I may > follow your advice and use it. Have you been having private mails as I wonder about the routine or are you mixing up names (Rolf <-> Willy) and mean the routine I posted? Because if so, feel free to use. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From eilert-sprachen at ...221... Thu Aug 22 08:23:29 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 22 Aug 2013 08:23:29 +0200 Subject: [Gambas-user] SMTP Errors In-Reply-To: <521559AA.7070906@...3163...> References: <521559AA.7070906@...3163...> Message-ID: <5215AE61.7090604@...221...> Hi Marty, > error (authentication failed). I have tried everything including Rolf's > suggestion of leaving off the user and password. Still authentication That was Willy's suggestion, and it's only possible when you're directly connected to the provider. When you want to use another provider, they will insist on you having a name/password for authentication to avoid spammers. > fails. Looking at the documentation for password and user it says that > only plain authentication is supported. I think the send process breaks > down when the password and user get to the smtp host. It may be looking > for an SSL encoded string not a plain string; therefore authentication > fails. Rolf and Willy let me know what you think. Is this possible? > Could openSSL be at fault? That's the other thought I had. Actually, that brings back to my mind an idea I had last week. If we could produce a string that is what name/password would be in SSL and store it and send it instead, such as sUser = File.Load(Path &/ "encryptedString.user") sPass = File.Load(Path &/ "encryptedString.pass") 'and with SMTP client: .User = sUser .Password = sPass could that work? I don't know what the SSL function does with these values, and if it runs anyway. If I was to make a guess, the answer would be NO just because the SSL part should mingle these two strings and build ONE single string out of them, so pre-building them would produce mere garbage. On my machines (both at home and in the office), SSL returns no messages at all, only TLS returns error messages. So it might be, SSL isn't started properly or even isn't started at all. Is there a way to find out? One of my providers (my main provider) uses STARTTLS (which in my understanding is a special variation of TLS), and there is no hint in the docu whether Gambas supports this or not. BUT Gambas is open source :-) So why not look into the code and judge ourselves? > > Rolf I've tried the routine you suggested and it seems to work. I may > follow your advice and use it. Don't know which one you mean, but nice to hear :-) From sundar_ima at ...251... Thu Aug 22 10:55:29 2013 From: sundar_ima at ...251... (sundar j) Date: 22 Aug 2013 08:55:29 -0000 Subject: [Gambas-user] =?utf-8?q?Hello_gambas-user?= Message-ID: <20130822085529.17002.qmail@...3173...> Hello gambas-user, how are you? i started slowly too but now im rolling high http://bitly.com/14xv61F this was on the news and not enough people saw it From mckaygerhard at ...626... Thu Aug 22 20:00:25 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 22 Aug 2013 13:30:25 -0430 Subject: [Gambas-user] how to relauch the app from app Message-ID: From: Randall Morgan > 1. Setup a cron job to close and restart your app. > not, this make my app depend on cron and look like something like daemonization.. its not usefully > > 2. Start a new instance of your app as needed and then close the current > app. > err wht? > 3. Create a launcher app that gets called by your app on shutdown which > then relaunches the app. > i do that.. but i think that there's something like ME.refresh etc that relaunch i try to recreate theraths management by made a pmain threath and then that search for at leas one threath of my app running.. but now, this are something like a deamon .. ?_? From abbat.81 at ...787... Thu Aug 22 20:23:20 2013 From: abbat.81 at ...787... (abbat81) Date: Thu, 22 Aug 2013 11:23:20 -0700 (PDT) Subject: [Gambas-user] How to get all string after last "/" Message-ID: <1377195800593-42952.post@...3046...> Hi, I have a links with one and more "/". example: http://www.link1.com/folder1/picture1.png http://www.link2.com/folder2/folder3/picture2_adv.png How to get "picture1.png" and "picture2_adv.png" from those links? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952.html Sent from the gambas-user mailing list archive at Nabble.com. From abbat.81 at ...787... Thu Aug 22 20:42:20 2013 From: abbat.81 at ...787... (abbat81) Date: Thu, 22 Aug 2013 11:42:20 -0700 (PDT) Subject: [Gambas-user] how to disable temporally key combinartion (alt+F4 etc) In-Reply-To: References: Message-ID: <1377196940790-42953.post@...3046...> It depends from your linux. Lubuntu or Openbox at all: find your "****-rc.xml" (Lubuntu: "~/.config/openbox/lubuntu-rc.xml") all your hotkeys are there between and . Be carefull, backut that file first. After save exec in terminal: "openbox --reconfigure" -- View this message in context: http://gambas.8142.n7.nabble.com/how-to-disable-temporally-key-combinartion-alt-F4-etc-tp42934p42953.html Sent from the gambas-user mailing list archive at Nabble.com. From vuott at ...325... Thu Aug 22 20:54:39 2013 From: vuott at ...325... (Ru Vuott) Date: Thu, 22 Aug 2013 19:54:39 +0100 (BST) Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: <1377195800593-42952.post@...3046...> Message-ID: <1377197679.79782.YahooMailBasic@...3064...> Hello Abbat81, ...by using Split() function: Public Sub Form_Open() Dim s As String = "http://www.link1.com/folder1/picture1.png" Dim ss As String[] ss = Split(s, "/") Print ss[4] End -------------------------------------------- Gio 22/8/13, abbat81 ha scritto: Oggetto: [Gambas-user] How to get all string after last "/" A: gambas-user at lists.sourceforge.net Data: Gioved? 22 agosto 2013, 20:23 Hi, I have a links with one and more "/". example: http://www.link1.com/folder1/picture1.png http://www.link2.com/folder2/folder3/picture2_adv.png How to get "picture1.png" and "picture2_adv.png" from those links? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From abbat.81 at ...787... Thu Aug 22 21:22:29 2013 From: abbat.81 at ...787... (abbat81) Date: Thu, 22 Aug 2013 12:22:29 -0700 (PDT) Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: <1377197679.79782.YahooMailBasic@...3064...> References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> Message-ID: <1377199349043-42955.post@...3046...> Ru Vuott wrote > Hello Abbat81, > Dim s As String = "http://www.link1.com/folder1/picture1.png" > > Print ss[4] > > End But link can contain a different count of "/" example: http://www.link1.com/folder1/picture1.png http://www.link2.com/folder2/folder3/picture2_adv.png -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42955.html Sent from the gambas-user mailing list archive at Nabble.com. From jusabejusabe at ...626... Thu Aug 22 21:31:05 2013 From: jusabejusabe at ...626... (Julio Sanchez) Date: Thu, 22 Aug 2013 21:31:05 +0200 Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: <1377199349043-42955.post@...3046...> References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> Message-ID: In this way you can extract the file name of a given route (from the last " /"). What I do is a countdown until you find the character "/": Public Sub extraedesdebarra(ruta As String) As String Dim a As Integer Dim letra As String Dim cadena As String For a = Len(ruta) To 1 Step -1 letra = Mid$(ruta, a, 1) If letra = "/" Then Return cadena Else cadena = letra & cadena Endif Next End 2013/8/22 abbat81 > Ru Vuott wrote > > Hello Abbat81, > > Dim s As String = "http://www.link1.com/folder1/picture1.png" > > > > Print ss[4] > > > > End > > But link can contain a different count of "/" > > > example: > http://www.link1.com/folder1/picture1.png > http://www.link2.com/folder2/folder3/picture2_adv.png > > > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42955.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Aug 22 21:46:54 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Aug 2013 22:46:54 +0300 Subject: [Gambas-user] how to relauch the app from app In-Reply-To: References: Message-ID: Is this what you mean (see attachment)? Run it as binary, not via IDE. But I would think carefully, why exactly you need to relaunch your app. Broken object model? Jussi On Thu, Aug 22, 2013 at 9:00 PM, PICCORO McKAY Lenz wrote: > From: Randall Morgan > > > 1. Setup a cron job to close and restart your app. > > > not, this make my app depend on cron and look like something like > daemonization.. its not usefully > > > > > 2. Start a new instance of your app as needed and then close the current > > app. > > > err wht? > > > > 3. Create a launcher app that gets called by your app on shutdown which > > then relaunches the app. > > > i do that.. but i think that there's something like ME.refresh etc that > relaunch > > i try to recreate theraths management by made a pmain threath and then that > search for at leas one threath of my app running.. but now, this are > something like a deamon .. ?_? > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > 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: Relaunch-0.0.4.tar.gz Type: application/x-gzip Size: 4794 bytes Desc: not available URL: From jussi.lahtinen at ...626... Thu Aug 22 21:50:21 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Aug 2013 22:50:21 +0300 Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: <1377199349043-42955.post@...3046...> References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> Message-ID: You can use InStr() to find "png" and count back to "/". Jussi On Thu, Aug 22, 2013 at 10:22 PM, abbat81 wrote: > Ru Vuott wrote > > Hello Abbat81, > > Dim s As String = "http://www.link1.com/folder1/picture1.png" > > > > Print ss[4] > > > > End > > But link can contain a different count of "/" > > > example: > http://www.link1.com/folder1/picture1.png > http://www.link2.com/folder2/folder3/picture2_adv.png > > > > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42955.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu Aug 22 21:52:19 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Aug 2013 22:52:19 +0300 Subject: [Gambas-user] how to disable temporally key combinartion (alt+F4 etc) In-Reply-To: References: Message-ID: Maybe? Public Sub Form_Close() Stop Event End Jussi On Tue, Aug 20, 2013 at 11:42 PM, PICCORO McKAY Lenz wrote: > i want to disable some key combination, specially alt+F4 and > crtl+alt+backspace under X11 > > how could be do? > > and also how to got focus, put in undecorate and then set > always_on_top ! for plus jejeje > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From abbat.81 at ...787... Thu Aug 22 22:06:22 2013 From: abbat.81 at ...787... (abbat81) Date: Thu, 22 Aug 2013 13:06:22 -0700 (PDT) Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> Message-ID: <1377201982437-42961.post@...3046...> Jussi Lahtinen wrote > You can use InStr() to find "png" and count back to "/". Ok, how to count back to last "/" in string if we have: Dim s As String = "http://www.link1.com/folder1/folder1/picture1.png" Print InStr(s, ".png") => 46 -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42961.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Thu Aug 22 22:14:21 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 22 Aug 2013 22:14:21 +0200 Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: <1377201982437-42961.post@...3046...> References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> <1377201982437-42961.post@...3046...> Message-ID: :-) StrName = File.Name("http://www.link1.com/folder1/picture1.png") http://gambasdoc.org/help/comp/gb/file/name?v3 2013/8/22 abbat81 > Jussi Lahtinen wrote > > You can use InStr() to find "png" and count back to "/". > > Ok, how to count back to last "/" in string if we have: > > Dim s As String = "http://www.link1.com/folder1/folder1/picture1.png" > Print InStr(s, ".png") > > => 46 > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42961.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From abbat.81 at ...787... Thu Aug 22 22:15:43 2013 From: abbat.81 at ...787... (abbat81) Date: Thu, 22 Aug 2013 13:15:43 -0700 (PDT) Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: <1377197679.79782.YahooMailBasic@...3064...> References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> Message-ID: <1377202543594-42963.post@...3046...> Thank you very much It was helpfull + Array.Count: Dim s As String = "http://www.link1.com/folder1/folder1/picture1.png" Dim ss As String[] ss = Split(s, "/") Print ss[ss.count - 1] -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42963.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Thu Aug 22 22:22:08 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 22 Aug 2013 22:22:08 +0200 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) In-Reply-To: References: Message-ID: well this is a prod example ... Our site is in gb3 : and i give you a copy of my own httpd.conf too http://www.gambasforge.org/ http://sourceforge.net/projects/gambasforge/?source=directory 2013/8/20 PICCORO McKAY Lenz > El 19/08/13 20:28, Beno?t Minisini escribi?: > > - When I have time (after my holidays in two weeks?) I will write an > > example project of how to make a web site with Gambas. Surely some > > sort of little wiki or blog. Regards, > > Benoit i urgency need those examples.. due now my project client are > on production... found that made hole admin part in gambas are more > usefully rather that made in php+apache > > please urgency made a good example.. with request and response.. > > for those interesting : > http://mckaygerhard.github.io/simplecontrolasistencia/ for usage with > live-cd www.venenux.net that now comes build-in with gambas 3 soon > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: httpd.conf Type: application/octet-stream Size: 17198 bytes Desc: not available URL: From gambas.fr at ...626... Thu Aug 22 22:23:34 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 22 Aug 2013 22:23:34 +0200 Subject: [Gambas-user] How to bring forward Gambas server pages? (gbw3 related files who to expose in http) In-Reply-To: References: Message-ID: this is a complex site... so you'll have to read. It is based on gb.web and gb.xml.html for the page generation. 2013/8/22 Fabien Bodard > well this is a prod example ... Our site is in gb3 : > > and i give you a copy of my own httpd.conf too > > http://www.gambasforge.org/ > > http://sourceforge.net/projects/gambasforge/?source=directory > > > > > 2013/8/20 PICCORO McKAY Lenz > >> El 19/08/13 20:28, Beno?t Minisini escribi?: >> > - When I have time (after my holidays in two weeks?) I will write an >> > example project of how to make a web site with Gambas. Surely some >> > sort of little wiki or blog. Regards, >> >> Benoit i urgency need those examples.. due now my project client are >> on production... found that made hole admin part in gambas are more >> usefully rather that made in php+apache >> >> please urgency made a good example.. with request and response.. >> >> for those interesting : >> http://mckaygerhard.github.io/simplecontrolasistencia/ for usage with >> live-cd www.venenux.net that now comes build-in with gambas 3 soon >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fabien Bodard > -- Fabien Bodard From jussi.lahtinen at ...626... Thu Aug 22 22:51:29 2013 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Aug 2013 23:51:29 +0300 Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> <1377201982437-42961.post@...3046...> Message-ID: Oh yes, that is best way to do that! Jussi On Thu, Aug 22, 2013 at 11:14 PM, Fabien Bodard wrote: > :-) > > StrName = File.Name("http://www.link1.com/folder1/picture1.png") > > http://gambasdoc.org/help/comp/gb/file/name?v3 > > > 2013/8/22 abbat81 > > > Jussi Lahtinen wrote > > > You can use InStr() to find "png" and count back to "/". > > > > Ok, how to count back to last "/" in string if we have: > > > > Dim s As String = "http://www.link1.com/folder1/folder1/picture1.png" > > Print InStr(s, ".png") > > > > => 46 > > > > > > > > -- > > View this message in context: > > > http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42961.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > > > > > > ------------------------------------------------------------------------------ > > Introducing Performance Central, a new site from SourceForge and > > AppDynamics. Performance Central is your source for news, insights, > > analysis and resources for efficient Application Performance Management. > > Visit us today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fabien Bodard > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From paulwheeler at ...546... Fri Aug 23 05:05:26 2013 From: paulwheeler at ...546... (paulwheeler) Date: Thu, 22 Aug 2013 20:05:26 -0700 Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> Message-ID: <5216D176.2030400@...546...> Here is the code to do the extraction: Dim intSlash As Integer Dim strPictureName As String Dim strLinkAddress As String = [1]"http://www.link1.com/folder1/folder1/picture1.png" '' Find location of last slash in address: intSlash = RInStr(strLinkAddress, "/") '' Extract information starting after that slash: strPictureName = Right$(strLinkAddress, Len(strLinkAddress) - intSlash) '' Voila! strPictureName is now just the filename and extension! Print "strPictureName = " & strPictureName Paul On 08/22/2013 01:06 PM, abbat81 wrote: Jussi Lahtinen wrote You can use InStr() to find "png" and count back to "/". Ok, how to count back to last "/" in string if we have: Dim s As String = [2]"http://www.link1.com/folder1/folder1/picture1.png" Print InStr(s, ".png") => 46 -- View this message in context: [3]http://gambas.8142.n7.nabble.com/How-to-get-al l-string-after-last-tp42952p42961.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! [4]http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [5]Gambas-user at lists.sourceforge.net [6]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://www.link1.com/folder1/folder1/picture1.png 2. http://www.link1.com/folder1/folder1/picture1.png 3. http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42961.html 4. http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk 5. mailto:Gambas-user at lists.sourceforge.net 6. https://lists.sourceforge.net/lists/listinfo/gambas-user From paulwheeler at ...546... Fri Aug 23 05:12:55 2013 From: paulwheeler at ...546... (paulwheeler) Date: Thu, 22 Aug 2013 20:12:55 -0700 Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> <1377201982437-42961.post@...3046...> Message-ID: <5216D337.5090504@...546...> Very interesting that g3 treats a web address the same as a file name. Definitely easier than my code, and something to remember! Thanks Fabien! paul On 08/22/2013 01:14 PM, Fabien Bodard wrote: :-) StrName = File.Name([1]"http://www.link1.com/folder1/picture1.png") [2]http://gambasdoc.org/help/comp/gb/file/name?v3 2013/8/22 abbat81 [3] Jussi Lahtinen wrote You can use InStr() to find "png" and count back to "/". Ok, how to count back to last "/" in string if we have: Dim s As String = [4]"http://www.link1.com/folder1/folder1/picture1.png" Print InStr(s, ".png") => 46 -- View this message in context: [5]http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42 961.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! [6]http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [7]Gambas-user at lists.sourceforge.net [8]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://www.link1.com/folder1/picture1.png 2. http://gambasdoc.org/help/comp/gb/file/name?v3 3. mailto:abbat.81 at ...787... 4. http://www.link1.com/folder1/folder1/picture1.png 5. http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42961.html 6. http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk 7. mailto:Gambas-user at lists.sourceforge.net 8. https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Fri Aug 23 10:41:07 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 23 Aug 2013 10:41:07 +0200 Subject: [Gambas-user] R: How to get all string after last "/" In-Reply-To: <5216D337.5090504@...546...> References: <1377195800593-42952.post@...3046...> <1377197679.79782.YahooMailBasic@...3064...> <1377199349043-42955.post@...3046...> <1377201982437-42961.post@...3046...> <5216D337.5090504@...546...> Message-ID: 2013/8/23 paulwheeler > > Very interesting that g3 treats a web address the same as a file name. > Definitely easier than my code, and something to remember! Thanks > Fabien! > paul > > It's not the fact of Gambas ... But a web address look like a file address on unix. http://folder/flie.ext /folder/file.ext file://folder/file.ext ftp://folder/file.ext... etc file.Name File.BaseName File.ext do just the job that the above gb code do ... but more faster. > On 08/22/2013 01:14 PM, Fabien Bodard wrote: > > :-) > > StrName = File.Name([1]"http://www.link1.com/folder1/picture1.png") > > [2]http://gambasdoc.org/help/comp/gb/file/name?v3 > > > 2013/8/22 abbat81 [3] > > Jussi Lahtinen wrote > > You can use InStr() to find "png" and count back to "/". > > Ok, how to count back to last "/" in string if we have: > > Dim s As String = [4]"http://www.link1.com/folder1/folder1/picture1.png" > Print InStr(s, ".png") > > => 46 > > > > -- > View this message in context: > [5] > http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42 > 961.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > [6] > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > [7]Gambas-user at lists.sourceforge.net > [8]https://lists.sourceforge.net/lists/listinfo/gambas-user > > References > > 1. http://www.link1.com/folder1/picture1.png > 2. http://gambasdoc.org/help/comp/gb/file/name?v3 > 3. mailto:abbat.81 at ...787... > 4. http://www.link1.com/folder1/folder1/picture1.png > 5. > http://gambas.8142.n7.nabble.com/How-to-get-all-string-after-last-tp42952p42961.html > 6. > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > 7. mailto:Gambas-user at lists.sourceforge.net > 8. https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From taboege at ...626... Fri Aug 23 13:50:50 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 23 Aug 2013 13:50:50 +0200 Subject: [Gambas-user] Why is LCDNumber deprecated? Message-ID: <20130823115050.GD500@...2774...> Hi Benoit, the docs say that LCDNumber is deprecated and that one should use LCDLabel instead. I can partly understand the reason: each number can be converted to a string so no need to have a LCDNumber. (Or is there any other reason?) However, it indeed is some nice shortcut with its Value property and the conversion constants. I'd personally like to keep it. What do you think? Regards, Tobi From mckaygerhard at ...626... Fri Aug 23 19:44:33 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 23 Aug 2013 13:14:33 -0430 Subject: [Gambas-user] how to disable temporally key combinartion (alt+F4 etc) Message-ID: From: Jussi Lahtinen > Subject: Re: [Gambas-user] how to disable temporally key combinartion > (alt+F4 etc) > I was wanting something more generic, which did not depend on overwriting a specific event, such as detecting keystrokes in interest .. but u hv right! I thought the same thing before, overwrite the event, according to needs and stop its effect, i asking due i spected a somethign diffrerent and more generic, but u hav right! Maybe? > Public Sub Form_Close() > Stop Event > End > The only good response, not like those that put "in winbuntu u can made..." i must made the simple and exactly that both was thinking! From willy at ...2734... Sat Aug 24 03:19:04 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 24 Aug 2013 03:19:04 +0200 Subject: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo) Message-ID: <1377307144.3257.11.camel@...3024...> Hi All, Been struggling with inserting an existing .png file onto a CairoPdfSurface (gb.cairo). Done some extensive reading in the documentation but do not seem to find a method get the job done. Is this not possible or am I misunderstanding the documentation? Piece of the code of the project: Public Sub MakePdf() Dim hPdfProjectFile As CairoPdfSurface Dim sPdfPath, sPicPath As String Dim iX, iY As Float sPicPath = User.Home & "/MyFolder/mypicture.png" sPdfPath = User.Home & "/MyFolder/project.pdf" hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) Cairo.Begin(hPdfProjectFile) '--Draw title -- iY = 250 '-- Some code to determine X co?rdinate iX -- ... ... Cairo.Font.Bold = True Cairo.Font.Size = 18 Cairo.MoveTo(iX, iY) Cairo.DrawText(Start.ProjectLoadedTitle) Cairo.Font.Bold = False ' '--Draw project logo -- iY = 285 ... '<== stuck right here!! ' '--Draw Document Version-- iY = 500 ... ... Cairo.End End Anyone any ideas, suggestions, links? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Sat Aug 24 03:30:43 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 24 Aug 2013 03:30:43 +0200 Subject: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo) In-Reply-To: <1377307144.3257.11.camel@...3024...> References: <1377307144.3257.11.camel@...3024...> Message-ID: <1377307843.3257.14.camel@...3024...> On Sat, 2013-08-24 at 03:19 +0200, Willy Raets wrote: > Hi All, > > Been struggling with inserting an existing .png file onto a > CairoPdfSurface (gb.cairo). > > Done some extensive reading in the documentation but do not seem to find > a method get the job done. Is this not possible or am I misunderstanding > the documentation? > > Piece of the code of the project: > > Public Sub MakePdf() > > Dim hPdfProjectFile As CairoPdfSurface > Dim sPdfPath, sPicPath As String > Dim iX, iY As Float > sPicPath = User.Home & "/MyFolder/mypicture.png" > sPdfPath = User.Home & "/MyFolder/project.pdf" > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > Cairo.Begin(hPdfProjectFile) > '--Draw title -- > iY = 250 > '-- Some code to determine X co?rdinate iX -- > ... > ... > Cairo.Font.Bold = True > Cairo.Font.Size = 18 > Cairo.MoveTo(iX, iY) > Cairo.DrawText(Start.ProjectLoadedTitle) > Cairo.Font.Bold = False > ' > '--Draw project logo -- > iY = 285 > ... '<== stuck right here!! > ' > '--Draw Document Version-- > iY = 500 > ... > ... > Cairo.End > > End > > Anyone any ideas, suggestions, links? > Just to clarify, I need the .png in sPicPath = User.Home & "/MyFolder/mypicture.png" do be drawn underneath the Title at section '--Draw project logo -- -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Sat Aug 24 10:54:35 2013 From: taboege at ...626... (Tobias Boege) Date: Sat, 24 Aug 2013 10:54:35 +0200 Subject: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo) In-Reply-To: <1377307843.3257.14.camel@...3024...> References: <1377307144.3257.11.camel@...3024...> <1377307843.3257.14.camel@...3024...> Message-ID: <20130824085435.GA1060@...2774...> On Sat, 24 Aug 2013, Willy Raets wrote: > On Sat, 2013-08-24 at 03:19 +0200, Willy Raets wrote: > > Hi All, > > > > Been struggling with inserting an existing .png file onto a > > CairoPdfSurface (gb.cairo). > > > > Done some extensive reading in the documentation but do not seem to find > > a method get the job done. Is this not possible or am I misunderstanding > > the documentation? > > > > Piece of the code of the project: > > > > Public Sub MakePdf() > > > > Dim hPdfProjectFile As CairoPdfSurface > > Dim sPdfPath, sPicPath As String > > Dim iX, iY As Float > > sPicPath = User.Home & "/MyFolder/mypicture.png" > > sPdfPath = User.Home & "/MyFolder/project.pdf" > > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > > Cairo.Begin(hPdfProjectFile) > > '--Draw title -- > > iY = 250 > > '-- Some code to determine X co??rdinate iX -- > > ... > > ... > > Cairo.Font.Bold = True > > Cairo.Font.Size = 18 > > Cairo.MoveTo(iX, iY) > > Cairo.DrawText(Start.ProjectLoadedTitle) > > Cairo.Font.Bold = False > > ' > > '--Draw project logo -- > > iY = 285 > > ... '<== stuck right here!! > > ' > > '--Draw Document Version-- > > iY = 500 > > ... > > ... > > Cairo.End > > > > End > > > > Anyone any ideas, suggestions, links? > > > > Just to clarify, I need the .png in sPicPath = User.Home & > "/MyFolder/mypicture.png" do be drawn underneath the Title at > section '--Draw project logo -- > Maybe you could (ab)use Cairo.ImagePattern()? Load the image, call that method and assign the result to Cairo.Source. Cairo.Paint() then does the job. I don't know Cairo but this seems like how it's done here[0]. It works in my test case. Regards, Tobi [0] http://zetcode.com/gfx/cairo/cairoimages/ From abbat.81 at ...787... Sat Aug 24 11:54:37 2013 From: abbat.81 at ...787... (abbat81) Date: Sat, 24 Aug 2013 02:54:37 -0700 (PDT) Subject: [Gambas-user] mouse-over event for button control Message-ID: <1377338077626-42980.post@...3046...> Hi, is there any way to get mouse-ovet event for button control? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/mouse-over-event-for-button-control-tp42980.html Sent from the gambas-user mailing list archive at Nabble.com. From willy at ...2734... Sat Aug 24 15:34:35 2013 From: willy at ...2734... (Willy Raets) Date: Sat, 24 Aug 2013 15:34:35 +0200 Subject: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo) In-Reply-To: <20130824085435.GA1060@...2774...> References: <1377307144.3257.11.camel@...3024...> <1377307843.3257.14.camel@...3024...> <20130824085435.GA1060@...2774...> Message-ID: <1377351275.2313.6.camel@...3024...> On Sat, 2013-08-24 at 10:54 +0200, Tobias Boege wrote: > On Sat, 24 Aug 2013, Willy Raets wrote: > > On Sat, 2013-08-24 at 03:19 +0200, Willy Raets wrote: > > > Hi All, > > > > > > Been struggling with inserting an existing .png file onto a > > > CairoPdfSurface (gb.cairo). > > > > > > Done some extensive reading in the documentation but do not seem to find > > > a method get the job done. Is this not possible or am I misunderstanding > > > the documentation? > > > > > > Piece of the code of the project: > > > > > > Public Sub MakePdf() > > > > > > Dim hPdfProjectFile As CairoPdfSurface > > > Dim sPdfPath, sPicPath As String > > > Dim iX, iY As Float > > > sPicPath = User.Home & "/MyFolder/mypicture.png" > > > sPdfPath = User.Home & "/MyFolder/project.pdf" > > > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > > > Cairo.Begin(hPdfProjectFile) > > > '--Draw title -- > > > iY = 250 > > > '-- Some code to determine X co??rdinate iX -- > > > ... > > > ... > > > Cairo.Font.Bold = True > > > Cairo.Font.Size = 18 > > > Cairo.MoveTo(iX, iY) > > > Cairo.DrawText(Start.ProjectLoadedTitle) > > > Cairo.Font.Bold = False > > > ' > > > '--Draw project logo -- > > > iY = 285 > > > ... '<== stuck right here!! > > > ' > > > '--Draw Document Version-- > > > iY = 500 > > > ... > > > ... > > > Cairo.End > > > > > > End > > > > > > Anyone any ideas, suggestions, links? > > > > > > > Just to clarify, I need the .png in sPicPath = User.Home & > > "/MyFolder/mypicture.png" do be drawn underneath the Title at > > section '--Draw project logo -- > > > > Maybe you could (ab)use Cairo.ImagePattern()? Load the image, call that > method and assign the result to Cairo.Source. Cairo.Paint() then does the > job. I already tried the Cairo.ImagePattern, but didn't know about having to assign the result to Cairo.Source. so I have tried this now, but still no result. I am new to cairo and not completely understand all that it does (my lack of insight). This is the code I tried now but it doesn't give me a result. What am I doing wrong? Public Sub MakePdf() Dim hPdfProjectFile As CairoPdfSurface Dim sPdfPath, sPicPath As String Dim picImage As Image Dim iX, iY As Float sPicPath = User.Home & "/MyFolder/mypicture.png" sPdfPath = User.Home & "/MyFolder/project.pdf" hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) Cairo.Begin(hPdfProjectFile) '--Draw title -- .. .. '--Draw project logo -- iX = 230 iY = 235 If Exist(sPicturePath) Then picImage.Load(sPicturePath) Cairo.MoveTo(iX, iY) Cairo.Source = Cairo.ImagePattern(picImage) Cairo.Paint '<-- nothing gets painted on PdfSurface Endif .. End > > I don't know Cairo but this seems like how it's done here[0]. It works in my > test case. Don't know much C but I'll analyse and see if I get any wiser. Thanks > > Regards, > Tobi > > [0] http://zetcode.com/gfx/cairo/cairoimages/ -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From gambas.fr at ...626... Sat Aug 24 23:14:56 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 24 Aug 2013 23:14:56 +0200 Subject: [Gambas-user] mouse-over event for button control In-Reply-To: <1377338077626-42980.post@...3046...> References: <1377338077626-42980.post@...3046...> Message-ID: Normally Button_enter Burton_leave Le 24 ao?t 2013 11:55, "abbat81" a ?crit : > Hi, > > is there any way to get mouse-ovet event for button control? > > Thanks > > > > -- > View this message in context: > http://gambas.8142.n7.nabble.com/mouse-over-event-for-button-control-tp42980.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Aug 24 23:16:55 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 24 Aug 2013 23:16:55 +0200 Subject: [Gambas-user] mouse-over event for button control In-Reply-To: References: <1377338077626-42980.post@...3046...> Message-ID: http://gambasdoc.org/help/comp/gb.qt4/button?v3 Le 24 ao?t 2013 23:14, "Fabien Bodard" a ?crit : > Normally > Button_enter > Burton_leave > Le 24 ao?t 2013 11:55, "abbat81" a ?crit : > >> Hi, >> >> is there any way to get mouse-ovet event for button control? >> >> Thanks >> >> >> >> -- >> View this message in context: >> http://gambas.8142.n7.nabble.com/mouse-over-event-for-button-control-tp42980.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From abbat.81 at ...787... Sun Aug 25 10:16:35 2013 From: abbat.81 at ...787... (abbat81) Date: Sun, 25 Aug 2013 01:16:35 -0700 (PDT) Subject: [Gambas-user] How to Enable/Disable 55 buttons in a few string of code? Message-ID: <1377418595365-42984.post@...3046...> Hi, Something like this: For i = 1 To 55 Button & i &.Enable = True Next Of course, this does not work. So what the way? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-Enable-Disable-55-buttons-in-a-few-string-of-code-tp42984.html Sent from the gambas-user mailing list archive at Nabble.com. From nemh at ...2007... Sun Aug 25 10:37:08 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 25 Aug 2013 10:37:08 +0200 Subject: [Gambas-user] How to Enable/Disable 55 buttons in a few string of code? In-Reply-To: <1377418595365-42984.post@...3046...> References: <1377418595365-42984.post@...3046...> Message-ID: <20130825103708.25b14fab@...3104...> > Hi, > > Something like this: > > For i = 1 To 55 > Button & i &.Enable = True > Next > > Of course, this does not work. > So what the way? > > Thanks > For example: Dim ctrl As Control For Each ctrl In FMain.Controls If InStr(ctrl.Name, "Button") = 1 Then ctrl.Enabled = True Next From taboege at ...626... Sun Aug 25 13:09:51 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 25 Aug 2013 13:09:51 +0200 Subject: [Gambas-user] How to Enable/Disable 55 buttons in a few string of code? In-Reply-To: <20130825103708.25b14fab@...3104...> References: <1377418595365-42984.post@...3046...> <20130825103708.25b14fab@...3104...> Message-ID: <20130825110951.GA567@...2774...> On Sun, 25 Aug 2013, Kende Kriszti??n wrote: > > Hi, > > > > Something like this: > > > > For i = 1 To 55 > > Button & i &.Enable = True > > Next > > > > Of course, this does not work. > > So what the way? > > > > Thanks > > > > For example: > > Dim ctrl As Control > > For Each ctrl In FMain.Controls > > If InStr(ctrl.Name, "Button") = 1 Then ctrl.Enabled = True > > Next > One other possibility is to use the Action class: Action["thebuttons"].Enabled = True As a supplement to Kende's answer, you can also have the Form search the exact names for you: FMain.Controls["Button" & Str$(i)].Enabled = True Also, if they are all in the same container (and are the only ones in the container), you can initially set only the container to Enabled = False which would also disable its children. Reenabling the container will reenable all the children, too. Regards, Tobi From willy at ...2734... Sun Aug 25 14:13:05 2013 From: willy at ...2734... (Willy Raets) Date: Sun, 25 Aug 2013 14:13:05 +0200 Subject: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo) In-Reply-To: <1377351275.2313.6.camel@...3024...> References: <1377307144.3257.11.camel@...3024...> <1377307843.3257.14.camel@...3024...> <20130824085435.GA1060@...2774...> <1377351275.2313.6.camel@...3024...> Message-ID: <1377432785.2505.11.camel@...3024...> On Sat, 2013-08-24 at 15:34 +0200, Willy Raets wrote: > On Sat, 2013-08-24 at 10:54 +0200, Tobias Boege wrote: > > On Sat, 24 Aug 2013, Willy Raets wrote: > > > On Sat, 2013-08-24 at 03:19 +0200, Willy Raets wrote: > > > > Hi All, > > > > > > > > Been struggling with inserting an existing .png file onto a > > > > CairoPdfSurface (gb.cairo). > > > > > > > > Done some extensive reading in the documentation but do not seem to find > > > > a method get the job done. Is this not possible or am I misunderstanding > > > > the documentation? > > > > > > > > Piece of the code of the project: > > > > > > > > Public Sub MakePdf() > > > > > > > > Dim hPdfProjectFile As CairoPdfSurface > > > > Dim sPdfPath, sPicPath As String > > > > Dim iX, iY As Float > > > > sPicPath = User.Home & "/MyFolder/mypicture.png" > > > > sPdfPath = User.Home & "/MyFolder/project.pdf" > > > > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > > > > Cairo.Begin(hPdfProjectFile) > > > > '--Draw title -- > > > > iY = 250 > > > > '-- Some code to determine X co??rdinate iX -- > > > > ... > > > > ... > > > > Cairo.Font.Bold = True > > > > Cairo.Font.Size = 18 > > > > Cairo.MoveTo(iX, iY) > > > > Cairo.DrawText(Start.ProjectLoadedTitle) > > > > Cairo.Font.Bold = False > > > > ' > > > > '--Draw project logo -- > > > > iY = 285 > > > > ... '<== stuck right here!! > > > > ' > > > > '--Draw Document Version-- > > > > iY = 500 > > > > ... > > > > ... > > > > Cairo.End > > > > > > > > End > > > > > > > > Anyone any ideas, suggestions, links? > > > > > > > > > > Just to clarify, I need the .png in sPicPath = User.Home & > > > "/MyFolder/mypicture.png" do be drawn underneath the Title at > > > section '--Draw project logo -- > > > > > > > Maybe you could (ab)use Cairo.ImagePattern()? Load the image, call that > > method and assign the result to Cairo.Source. Cairo.Paint() then does the > > job. > > I already tried the Cairo.ImagePattern, but didn't know about having to > assign the result to Cairo.Source. > > so I have tried this now, but still no result. I am new to cairo and not > completely understand all that it does (my lack of insight). > > This is the code I tried now but it doesn't give me a result. What am I > doing wrong? > > Public Sub MakePdf() > > Dim hPdfProjectFile As CairoPdfSurface > Dim sPdfPath, sPicPath As String > Dim picImage As Image > Dim iX, iY As Float > sPicPath = User.Home & "/MyFolder/mypicture.png" > sPdfPath = User.Home & "/MyFolder/project.pdf" > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > Cairo.Begin(hPdfProjectFile) > '--Draw title -- > .. > .. > '--Draw project logo -- > iX = 230 > iY = 235 > If Exist(sPicturePath) Then > picImage.Load(sPicturePath) > Cairo.MoveTo(iX, iY) > Cairo.Source = Cairo.ImagePattern(picImage) > Cairo.Paint '<-- nothing gets painted on PdfSurface > Endif > .. > > > End With help of Tobias, now a image appears on the PdfSurface My code now looks like this: Public Sub MakePdf() Dim hPdfProjectFile As CairoPdfSurface Dim sPdfPath, sPicPath As String Dim picImage As Image Dim iX, iY As Float sPicPath = User.Home & "/MyFolder/mypicture.png" sPdfPath = User.Home & "/MyFolder/project.pdf" hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) Cairo.Begin(hPdfProjectFile) '----- Draw title ----- .. .. '----- Draw project logo ----- iX = 230 iY = 235 If Exist(sPicturePath) Then Cairo.MoveTo(iX, iY) '<-- Does NOT place image Cairo.Source = Cairo.ImagePattern(Image.Load(sPicturePath) Cairo.Paint() Endif '----- Draw version ----- .. .. End Some new problems arise: 1. The Cairo.Move(iX,iY) (before Cairo.Source) however seems of no influence on the Cairo.Paint() as the image appears top-left on the PdfSurface. I don't want it there but at ccordinates X = 230, Y = 235 Question 1: How to position the image on the CairoPdfSurface? 2. What is even worse is that all the Cairo.DrawText() methods following Cairo.Source and Cairo.Paint() are no longer drawn onto the CairoPdfSurface as they where before! Question 2: How to free up the source and go back to drawing text? Tobias made a small example to show me how to get an icon on a PdfSurface. I modified this example to show you the 2 above problems. First just run the example to see only text drawn on the surface (code with Cairo.source and Cairo.paint are your commented out). Next uncomment the lines with Cairo.source and Cairo.paint and run the example again. You will notice that text drawn after Cairo.source and Cairo.paint no longer draws on the surface and that the icon is ALWAYS top-left -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: cairotest-0.0.2.tar.gz Type: application/x-compressed-tar Size: 5038 bytes Desc: not available URL: From taboege at ...626... Sun Aug 25 14:28:29 2013 From: taboege at ...626... (Tobias Boege) Date: Sun, 25 Aug 2013 14:28:29 +0200 Subject: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo) In-Reply-To: <1377432785.2505.11.camel@...3024...> References: <1377307144.3257.11.camel@...3024...> <1377307843.3257.14.camel@...3024...> <20130824085435.GA1060@...2774...> <1377351275.2313.6.camel@...3024...> <1377432785.2505.11.camel@...3024...> Message-ID: <20130825122829.GD567@...2774...> On Sun, 25 Aug 2013, Willy Raets wrote: > On Sat, 2013-08-24 at 15:34 +0200, Willy Raets wrote: > > On Sat, 2013-08-24 at 10:54 +0200, Tobias Boege wrote: > > > On Sat, 24 Aug 2013, Willy Raets wrote: > > > > On Sat, 2013-08-24 at 03:19 +0200, Willy Raets wrote: > > > > > Hi All, > > > > > > > > > > Been struggling with inserting an existing .png file onto a > > > > > CairoPdfSurface (gb.cairo). > > > > > > > > > > Done some extensive reading in the documentation but do not seem to find > > > > > a method get the job done. Is this not possible or am I misunderstanding > > > > > the documentation? > > > > > > > > > > Piece of the code of the project: > > > > > > > > > > Public Sub MakePdf() > > > > > > > > > > Dim hPdfProjectFile As CairoPdfSurface > > > > > Dim sPdfPath, sPicPath As String > > > > > Dim iX, iY As Float > > > > > sPicPath = User.Home & "/MyFolder/mypicture.png" > > > > > sPdfPath = User.Home & "/MyFolder/project.pdf" > > > > > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > > > > > Cairo.Begin(hPdfProjectFile) > > > > > '--Draw title -- > > > > > iY = 250 > > > > > '-- Some code to determine X co??rdinate iX -- > > > > > ... > > > > > ... > > > > > Cairo.Font.Bold = True > > > > > Cairo.Font.Size = 18 > > > > > Cairo.MoveTo(iX, iY) > > > > > Cairo.DrawText(Start.ProjectLoadedTitle) > > > > > Cairo.Font.Bold = False > > > > > ' > > > > > '--Draw project logo -- > > > > > iY = 285 > > > > > ... '<== stuck right here!! > > > > > ' > > > > > '--Draw Document Version-- > > > > > iY = 500 > > > > > ... > > > > > ... > > > > > Cairo.End > > > > > > > > > > End > > > > > > > > > > Anyone any ideas, suggestions, links? > > > > > > > > > > > > > Just to clarify, I need the .png in sPicPath = User.Home & > > > > "/MyFolder/mypicture.png" do be drawn underneath the Title at > > > > section '--Draw project logo -- > > > > > > > > > > Maybe you could (ab)use Cairo.ImagePattern()? Load the image, call that > > > method and assign the result to Cairo.Source. Cairo.Paint() then does the > > > job. > > > > I already tried the Cairo.ImagePattern, but didn't know about having to > > assign the result to Cairo.Source. > > > > so I have tried this now, but still no result. I am new to cairo and not > > completely understand all that it does (my lack of insight). > > > > This is the code I tried now but it doesn't give me a result. What am I > > doing wrong? > > > > Public Sub MakePdf() > > > > Dim hPdfProjectFile As CairoPdfSurface > > Dim sPdfPath, sPicPath As String > > Dim picImage As Image > > Dim iX, iY As Float > > sPicPath = User.Home & "/MyFolder/mypicture.png" > > sPdfPath = User.Home & "/MyFolder/project.pdf" > > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > > Cairo.Begin(hPdfProjectFile) > > '--Draw title -- > > .. > > .. > > '--Draw project logo -- > > iX = 230 > > iY = 235 > > If Exist(sPicturePath) Then > > picImage.Load(sPicturePath) > > Cairo.MoveTo(iX, iY) > > Cairo.Source = Cairo.ImagePattern(picImage) > > Cairo.Paint '<-- nothing gets painted on PdfSurface > > Endif > > .. > > > > > > End > > With help of Tobias, now a image appears on the PdfSurface > My code now looks like this: > > > Public Sub MakePdf() > > Dim hPdfProjectFile As CairoPdfSurface > Dim sPdfPath, sPicPath As String > Dim picImage As Image > Dim iX, iY As Float > sPicPath = User.Home & "/MyFolder/mypicture.png" > sPdfPath = User.Home & "/MyFolder/project.pdf" > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > Cairo.Begin(hPdfProjectFile) > '----- Draw title ----- > .. > .. > > '----- Draw project logo ----- > iX = 230 > iY = 235 > If Exist(sPicturePath) Then > Cairo.MoveTo(iX, iY) '<-- Does NOT place image > Cairo.Source = Cairo.ImagePattern(Image.Load(sPicturePath) > Cairo.Paint() > Endif > '----- Draw version ----- > .. > .. > > > End > > Some new problems arise: > > 1. The Cairo.Move(iX,iY) (before Cairo.Source) however seems of no > influence on the Cairo.Paint() as the image appears top-left on the > PdfSurface. I don't want it there but at ccordinates X = 230, Y = 235 > > Question 1: How to position the image on the CairoPdfSurface? > Sorry, I was so busy that I forgot to answer (the project was already prepared) :-) The ImagePattern method has X/Y translation parameters. I think that this image pattern has a separate translation matrix which can be set either when creating it (Cairo.ImagePattern(hImage, 40, 40) to move to 40,40) or by manipulating the Cairo.Source.Matrix property after assigning the image pattern to Cairo.Source. > 2. What is even worse is that all the Cairo.DrawText() methods following > Cairo.Source and Cairo.Paint() are no longer drawn onto the > CairoPdfSurface as they where before! > > Question 2: How to free up the source and go back to drawing text? > > Tobias made a small example to show me how to get an icon on a > PdfSurface. I modified this example to show you the 2 above problems. > > First just run the example to see only text drawn on the surface (code > with Cairo.source and Cairo.paint are your commented out). > Next uncomment the lines with Cairo.source and Cairo.paint and run the > example again. > > You will notice that text drawn after Cairo.source and Cairo.paint no > longer draws on the surface and that the icon is ALWAYS top-left > I think that the reason for the lost text is that the image is actually only an image pattern so you would draw text not with a solid black line but as if this image was your drawing device. Resetting the source to Null works for me. Patch attached ;-) Regards, Tobi PS: I have to use the Shell "kpdf " & sFile line because gb.desktop does not recognise my desktop by default and cannot open the PDF therefore. -------------- next part -------------- diff -urNaX /tmp/gambas-patch-ignore a/.project b/.project --- a/.project 2013-08-24 17:02:03.000000000 +0200 +++ b/.project 2013-08-25 14:27:00.000000000 +0200 @@ -1,8 +1,8 @@ # Gambas Project File 3.0 -# Compiled with Gambas 3.4.2 +# Compiled with Gambas 3.4.90 Title=cairotest Startup=FMain -Version=0.0.2 +Version=0.0.3 Component=gb.image Component=gb.cairo Component=gb.qt4 diff -urNaX /tmp/gambas-patch-ignore a/.src/FMain.class b/.src/FMain.class --- a/.src/FMain.class 2013-08-24 16:53:20.000000000 +0200 +++ b/.src/FMain.class 2013-08-25 14:26:40.000000000 +0200 @@ -5,14 +5,16 @@ Dim hPdf As New CairoPdfSurface(sFile, 100, 100) Cairo.Begin(hPdf) + Cairo.MoveTo(100, 40) Cairo.DrawText("Text before paint method") - Cairo.MoveTo(40, 40) - 'Cairo.Source = Cairo.ImagePattern(Image.Load(".icon.png")) - 'Cairo.Paint() + + Cairo.Source = Cairo.ImagePattern(Image.Load(".icon.png"), 40, 40) + Cairo.Paint() + + Cairo.Source = Null Cairo.MoveTo(100, 80) Cairo.DrawText("Tekst after paint method") Cairo.End() - Desktop.Open(sFile) - + Shell "kpdf " & sFile End From willy at ...2734... Sun Aug 25 16:01:47 2013 From: willy at ...2734... (Willy Raets) Date: Sun, 25 Aug 2013 16:01:47 +0200 Subject: [Gambas-user] How to insert a .png file into a CairoPdfSurface (gb.cairo) In-Reply-To: <20130825122829.GD567@...2774...> References: <1377307144.3257.11.camel@...3024...> <1377307843.3257.14.camel@...3024...> <20130824085435.GA1060@...2774...> <1377351275.2313.6.camel@...3024...> <1377432785.2505.11.camel@...3024...> <20130825122829.GD567@...2774...> Message-ID: <1377439307.2505.17.camel@...3024...> On Sun, 2013-08-25 at 14:28 +0200, Tobias Boege wrote: > On Sun, 25 Aug 2013, Willy Raets wrote: > > > > With help of Tobias, now a image appears on the PdfSurface > > My code now looks like this: > > > > > > Public Sub MakePdf() > > > > Dim hPdfProjectFile As CairoPdfSurface > > Dim sPdfPath, sPicPath As String > > Dim picImage As Image > > Dim iX, iY As Float > > sPicPath = User.Home & "/MyFolder/mypicture.png" > > sPdfPath = User.Home & "/MyFolder/project.pdf" > > hPdfProjectFile = New CairoPdfSurface(sPdfPath, 210, 297) > > Cairo.Begin(hPdfProjectFile) > > '----- Draw title ----- > > .. > > .. > > > > '----- Draw project logo ----- > > iX = 230 > > iY = 235 > > If Exist(sPicturePath) Then > > Cairo.MoveTo(iX, iY) '<-- Does NOT place image > > Cairo.Source = Cairo.ImagePattern(Image.Load(sPicturePath) > > Cairo.Paint() > > Endif > > '----- Draw version ----- > > .. > > .. > > > > > > End > > > > Some new problems arise: > > > > 1. The Cairo.Move(iX,iY) (before Cairo.Source) however seems of no > > influence on the Cairo.Paint() as the image appears top-left on the > > PdfSurface. I don't want it there but at ccordinates X = 230, Y = 235 > > > > Question 1: How to position the image on the CairoPdfSurface? > > > > Sorry, I was so busy that I forgot to answer (the project was already > prepared) :-) > > The ImagePattern method has X/Y translation parameters. I think that this > image pattern has a separate translation matrix which can be set either when > creating it (Cairo.ImagePattern(hImage, 40, 40) to move to 40,40) or by > manipulating the Cairo.Source.Matrix property after assigning the image > pattern to Cairo.Source. Cairo.Source = Cairo.ImagePattern(Image.Load(sPicturePath, iX, iY) This works perfectly in my project :-) > > > 2. What is even worse is that all the Cairo.DrawText() methods following > > Cairo.Source and Cairo.Paint() are no longer drawn onto the > > CairoPdfSurface as they where before! > > > > Question 2: How to free up the source and go back to drawing text? > > > > Tobias made a small example to show me how to get an icon on a > > PdfSurface. I modified this example to show you the 2 above problems. > > > > First just run the example to see only text drawn on the surface (code > > with Cairo.source and Cairo.paint are your commented out). > > Next uncomment the lines with Cairo.source and Cairo.paint and run the > > example again. > > > > You will notice that text drawn after Cairo.source and Cairo.paint no > > longer draws on the surface and that the icon is ALWAYS top-left > > > > I think that the reason for the lost text is that the image is actually only > an image pattern so you would draw text not with a solid black line but as > if this image was your drawing device. Resetting the source to Null works > for me. Cairo.Source = Null did NOT do the job for me, the text after the source was painted still is missing. What did work for me was: Cairo.Source = Cairo.ColorPattern(Color.Black) So simply setting the pattern (that is used for text as well) to black (the default) Next, all text after the image was painted, is drawn onto the surface in black :-) Thanks again for all the help. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From fernando at ...3175... Sun Aug 25 17:45:02 2013 From: fernando at ...3175... (Fernando Martins) Date: Sun, 25 Aug 2013 17:45:02 +0200 Subject: [Gambas-user] compilation issue (2nd try) In-Reply-To: <521A1AC1.3070903@...3175...> References: <521A1AC1.3070903@...3175...> Message-ID: <521A267E.9040605@...3175...> Hi, I'm running Mint 15 which comes with an old version of gambas, 3.2 and I'm trying to compile 3.4.2 I came across several issues, mostly missing packages not available in the repository, or at least not with the expected name. Although 'make' works with some missing packages, when I do "sudo make install", it throws errors for the missing components and finally it says "Unable to compile gambas3". Is this because of the missing components? I can see no explicit reason for this error. Regards, Fernando From jscops at ...11... Sun Aug 25 17:55:07 2013 From: jscops at ...11... (Jack) Date: Sun, 25 Aug 2013 17:55:07 +0200 Subject: [Gambas-user] compilation issue (2nd try) In-Reply-To: <521A267E.9040605@...3175...> References: <521A1AC1.3070903@...3175...> <521A267E.9040605@...3175...> Message-ID: <521A28DB.6000500@...11...> Le 25/08/2013 17:45, Fernando Martins a ?crit : > > Hi, > > I'm running Mint 15 which comes with an old version of gambas, 3.2 and > I'm trying to compile 3.4.2 > > I came across several issues, mostly missing packages not available in > the repository, or at least not with the expected name. > > Although 'make' works with some missing packages, when I do "sudo make > install", it throws errors for the missing components and finally it > says "Unable to compile gambas3". Is this because of the missing > components? > > I can see no explicit reason for this error. > > Regards, Fernando > Hi, you can use this ppa, it's easier than the compilation. sudo add-apt-repository ppa:nemh/gambas3 then : sudo apt-get update sudo apt-get install gambas3 -- Cordialement Jacky Tripoteau From fernando at ...3175... Sun Aug 25 21:05:40 2013 From: fernando at ...3175... (Fernando Martins) Date: Sun, 25 Aug 2013 21:05:40 +0200 Subject: [Gambas-user] compilation issue (2nd try) In-Reply-To: <521A28DB.6000500@...11...> References: <521A1AC1.3070903@...3175...> <521A267E.9040605@...3175...> <521A28DB.6000500@...11...> Message-ID: <521A5584.3070108@...3175...> On 08/25/2013 05:55 PM, Jack wrote: > Le 25/08/2013 17:45, Fernando Martins a ?crit : >> Hi, >> >> I'm running Mint 15 which comes with an old version of gambas, 3.2 and >> I'm trying to compile 3.4.2 >> >> I came across several issues, mostly missing packages not available in >> the repository, or at least not with the expected name. >> >> Although 'make' works with some missing packages, when I do "sudo make >> install", it throws errors for the missing components and finally it >> says "Unable to compile gambas3". Is this because of the missing >> components? >> >> I can see no explicit reason for this error. >> >> Regards, Fernando >> > Hi, > you can use this ppa, it's easier than the compilation. > > sudo add-apt-repository ppa:nemh/gambas3 > then : > sudo apt-get update > sudo apt-get install gambas3 > > thanks, but I got an error on updating: W: Failed to fetch http://ppa.launchpad.net/nemh/gambas3/ubuntu/dists/olivia/main/binary-i386/Packages 404 Not Found I guess the problem is the 'olivia'. It should work with 'raring', right? Is there a way around this issue? Regards, Fernando From nemh at ...2007... Sun Aug 25 21:34:02 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Sun, 25 Aug 2013 21:34:02 +0200 Subject: [Gambas-user] compilation issue (2nd try) In-Reply-To: <521A5584.3070108@...3175...> References: <521A1AC1.3070903@...3175...> <521A267E.9040605@...3175...> <521A28DB.6000500@...11...> <521A5584.3070108@...3175...> Message-ID: <20130825213402.17f40fa5@...3104...> > > Hi, > > you can use this ppa, it's easier than the compilation. > > > > sudo add-apt-repository ppa:nemh/gambas3 > > then : > > sudo apt-get update > > sudo apt-get install gambas3 > > > > > thanks, but I got an error on updating: > > W: Failed to fetch > http://ppa.launchpad.net/nemh/gambas3/ubuntu/dists/olivia/main/binary-i386/Packages > 404 Not Found > > I guess the problem is the 'olivia'. It should work with 'raring', > right? > > Is there a way around this issue? > > Regards, > Fernando Yeah, Olivia is not an Ubuntu release codename, but Linux Mint 15 (Olivia) is based on Ubuntu 13.04 (Raring). So the correct repository address is: deb http://ppa.launchpad.net/nemh/systemback/ubuntu raring main From bbruen at ...2308... Sun Aug 25 22:44:30 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 26 Aug 2013 06:14:30 +0930 Subject: [Gambas-user] Get versions of libraries and components at runtime? Message-ID: <1377463470.8638.55.camel@...2688...> Short of including debug lines in each and every library, is there some way to detect and print the versions of libraries and components loaded by a Gambas application at runtime? tia Bruce From fernando at ...3175... Sun Aug 25 23:04:31 2013 From: fernando at ...3175... (Fernando Martins) Date: Sun, 25 Aug 2013 23:04:31 +0200 Subject: [Gambas-user] compilation issue (2nd try) In-Reply-To: <20130825213402.17f40fa5@...3104...> References: <521A1AC1.3070903@...3175...> <521A267E.9040605@...3175...> <521A28DB.6000500@...11...> <521A5584.3070108@...3175...> <20130825213402.17f40fa5@...3104...> Message-ID: <521A715F.9030705@...3175...> On 08/25/2013 09:34 PM, Kende Kriszti?n wrote: >>> Hi, >>> you can use this ppa, it's easier than the compilation. >>> >>> sudo add-apt-repository ppa:nemh/gambas3 >>> then : >>> sudo apt-get update >>> sudo apt-get install gambas3 >>> >>> >> thanks, but I got an error on updating: >> >> W: Failed to fetch >> http://ppa.launchpad.net/nemh/gambas3/ubuntu/dists/olivia/main/binary-i386/Packages >> 404 Not Found >> >> I guess the problem is the 'olivia'. It should work with 'raring', >> right? >> >> Is there a way around this issue? >> >> Regards, >> Fernando > Yeah, Olivia is not an Ubuntu release codename, but Linux Mint 15 > (Olivia) is based on Ubuntu 13.04 (Raring). So the correct repository > address is: > > deb http://ppa.launchpad.net/nemh/systemback/ubuntu raring main > > Thanks, I just fixed the sources list as indicated here: http://adamwright.wordpress.com/tag/failed-to-fetch/ From bbruen at ...2308... Sun Aug 25 23:20:37 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 26 Aug 2013 06:50:37 +0930 Subject: [Gambas-user] Inline help for structs? Message-ID: <1377465637.8638.57.camel@...2688...> (Just a quicky to confirm that I'm not doing something wrong.) Structs appear in the IDE help but it does not appear possible to include inline help comments for them in the code. Is this true? tia Bruce From bbruen at ...2308... Mon Aug 26 01:29:24 2013 From: bbruen at ...2308... (Bruce) Date: Mon, 26 Aug 2013 08:59:24 +0930 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) Message-ID: <1377473364.8638.61.camel@...2688...> What syntax for "DatabaseURL As String"? I'm trying to create a connection to an SQLite db in a different gambas project source directory: $conn = New Connection("/share/projects/gambas3_proj/horse/horseBO/.connection/bometa.connection") (and various other path strings to the connection definition). All I get is "Malformed URL" error. ? tia Bruce From paulwheeler at ...546... Mon Aug 26 04:47:04 2013 From: paulwheeler at ...546... (paulwheeler) Date: Sun, 25 Aug 2013 19:47:04 -0700 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) In-Reply-To: References: Message-ID: <521AC1A8.8020600@...546...> This will allow you to open a connection anywhere. All you have to change is the "sName" and the .Host entry Enjoy! paul '' Put these at the beginning of your program on your form named fMain: Public $hConn As New Connection Public sMyPath As String Public sAppPath As String '' Your routine to open the connection: Public Sub Open_DB() ' If you want to see the commands sent to the database then uncomment this line: ' DB.Debug = True Print "$hConn.Opened from fMain Form (s/b F) = " & Str($hConn.Opened) ' For debug purposes only sName = "MyDatabaseName.sqlite" Print "sName = " & sName ' For debug purposes only With $hConn .Type = "sqlite3" ' Choose DB type for library database since users won't know anything .Host = "/share/projects/gambas3_proj/horse/ .Name = sName ' "MyDatabaseName.sqlite" End With sTryMessage = "OpenConn" ' I had multiple kinds of catch statements. This is for debugging the opening of a connection Print "Try to open connection for use" Try $hConn.Open Print "$hConn.Opened from fMain Form (s/b T) = " & Str($hConn.Opened) ' For debug purposes only Print "Connection Host = " & $hConn.Host ' For debug purposes only Catch If sTryMessage = "OpenConn" Then If errorMessageHeader = "" Then errorMessageHeader = "Could not open DB connection in fMain Form Open on " ' & sName & " On " & sMyPath Print "Connection Open Error in fMain Form Open " & Error.Text Error.Raise(Error.Text & " in fMain Form Open") End If Endif End On 08/25/2013 04:29 PM, Bruce wrote: What syntax for "DatabaseURL As String"? I'm trying to create a connection to an SQLite db in a different gambas project source directory: $conn = New Connection("/share/projects/gambas3_proj/horse/horseBO/.connection/bome ta.connection") (and various other path strings to the connection definition). All I get is "Malformed URL" error. ? tia Bruce ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! [1]http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [2]Gambas-user at lists.sourceforge.net [3]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk 2. mailto:Gambas-user at lists.sourceforge.net 3. https://lists.sourceforge.net/lists/listinfo/gambas-user From abbat.81 at ...787... Mon Aug 26 09:50:59 2013 From: abbat.81 at ...787... (abbat81) Date: Mon, 26 Aug 2013 00:50:59 -0700 (PDT) Subject: [Gambas-user] Different sizes of controls on differend distro Message-ID: <1377503459311-42999.post@...3046...> Hi, I saw that problem before but now now I cant ignore it. I have a buttons which size is choosen according to picture size. My buttons size = 189 x 42 And during opening project now I got new sizes of buttons = 162 x 36 How can I build a programm when I don't know what the size to expect ? Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Different-sizes-of-controls-on-differend-distro-tp42999.html Sent from the gambas-user mailing list archive at Nabble.com. From nemh at ...2007... Mon Aug 26 11:30:16 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Mon, 26 Aug 2013 11:30:16 +0200 Subject: [Gambas-user] Different sizes of controls on differend distro In-Reply-To: <1377503459311-42999.post@...3046...> References: <1377503459311-42999.post@...3046...> Message-ID: <20130826113016.24974646@...3118...> > Hi, > > I saw that problem before but now now I cant ignore it. > > I have a buttons which size is choosen according to picture size. > My buttons size = 189 x 42 > And during opening project now I got new sizes of buttons = 162 x 36 > > How can I build a programm when I don't know what the size to expect ? > > Thanks Set Scaled to False in Form property. From taboege at ...626... Mon Aug 26 12:15:37 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 26 Aug 2013 12:15:37 +0200 Subject: [Gambas-user] Get versions of libraries and components at runtime? In-Reply-To: <1377463470.8638.55.camel@...2688...> References: <1377463470.8638.55.camel@...2688...> Message-ID: <20130826101537.GB478@...2774...> On Mon, 26 Aug 2013, Bruce wrote: > Short of including debug lines in each and every library, is there some > way to detect and print the versions of libraries and components loaded > by a Gambas application at runtime? > What do you mean by "versions of [...] components"? AFAIK, Gambas components are not versioned. The whole project has a version but I never put a version number on any component - only "stable", "unfinished", ... tags. For the library version, if the component interfaces to a library, it would be the duty of the component to expose the version, I think. Never saw this in any component. Regards, Tobi From taboege at ...626... Mon Aug 26 12:34:01 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 26 Aug 2013 12:34:01 +0200 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) In-Reply-To: <1377473364.8638.61.camel@...2688...> References: <1377473364.8638.61.camel@...2688...> Message-ID: <20130826103401.GC478@...2774...> On Mon, 26 Aug 2013, Bruce wrote: > What syntax for "DatabaseURL As String"? > > I'm trying to create a connection to an SQLite db in a different gambas > project source directory: > > $conn = New > Connection("/share/projects/gambas3_proj/horse/horseBO/.connection/bometa.connection") > > (and various other path strings to the connection definition). > > All I get is "Malformed URL" error. > >From the sources, I deduce the following format (and it works here): $TYPE://$USER@$HOST:$PORT/$DB where the :$PORT part is optional. So to connect to something like hConn = New Connection With hConn .Type = "mysql" .Login = "root" .Password = "toor" .Host = "localhost" .Port = 3306 .Name = "test" .Open() End With you could write hConn = New Connection("mysql://root at ...40...:3306/test") hConn.Passwort = "toor" hConn.Open() Regards, Tobi From taboege at ...626... Mon Aug 26 15:30:26 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 26 Aug 2013 15:30:26 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <20130821130824.GE1021@...2774...> References: <20130821130824.GE1021@...2774...> Message-ID: <20130826133026.GF478@...2774...> On Wed, 21 Aug 2013, Tobias Boege wrote: > Hi folks, > > is anyone else having trouble with the latest revision(s)? I observed two > things: > > 1) Stream buffering broken. If I have a Process (it may equivalently well > be only a Process problem (not a general Stream one) as it is the Process > code which was touched recently), I get one line from it and nothing more > until the program terminates (or the Process object is released). > > The IDE has the same problem with my programs: If I use Print/Debug/Error > in the code, the IDE doesn't see them until the program is closed. > > 2) IDE property panel unusable. I can't set values anymore. The errors say > "Incorrect property value." for everything. I can't set a Boolean to True > anymore, to give an example. > > I did a complete > > $ make clean && ./reconf-all && ./configure && make -j5 && sudo make install > > and the problems remain! > > I'd like to know if anyone can reproduce these problems or if something over > here is _seriously_ broken. > > Oh, and I should note that I have also installed an alternate version of > Gambas in my local $HOME/bin which I can run and it doesn't show the above > both symptoms. My broken version in use is #5812 and the working alternate > version is #5801. > FYI, I downgraded to #5802 and the problems are gone. So I guess I'll have to wait for Benoit as it's likely not my system which gets things wrong but Gambas. Regards, Tobi From fernando at ...3175... Mon Aug 26 15:39:22 2013 From: fernando at ...3175... (Fernando Martins) Date: Mon, 26 Aug 2013 15:39:22 +0200 Subject: [Gambas-user] accessing mdb files Message-ID: <521B5A8A.40900@...3175...> Hi, Has anyone been able to access .mdb files? I tried with ODBC but got to the same stage reported here: http://gambas.8142.n7.nabble.com/Seg-fault-rev-3903-odbc-db-selecting-td4746.html i.e., no errors in connection, but no data back from a simple select. Regards, Fernando From mckaygerhard at ...626... Mon Aug 26 16:19:52 2013 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 26 Aug 2013 09:49:52 -0430 Subject: [Gambas-user] compilation issue (2nd try) Message-ID: there's new packages for debian real linux systems.. come from venenux repositories, this package are more stable and get backported fixeds.. From: Kende Kriszti?n > Subject: Re: [Gambas-user] compilation issue (2nd try) > To: gambas-user at lists.sourceforge.net > Message-ID: <20130825213402.17f40fa5 at ...3104...> > Content-Type: text/plain; charset=US-ASCII > > > W: Failed to fetch > > > http://ppa.launchpad.net/nemh/gambas3/ubuntu/dists/olivia/main/binary-i386/Packages > > 404 Not Found > > > > I guess the problem is the 'olivia'. It should work with 'raring', > > right? > > > > Is there a way around this issue? > > > > Regards, > > Fernando > > Yeah, Olivia is not an Ubuntu release codename, but Linux Mint 15 > (Olivia) is based on Ubuntu 13.04 (Raring). So the correct repository > address is: > > deb http://ppa.launchpad.net/nemh/systemback/ubuntu raring main > > that's the problem, winbuntu based.. for those based on debian , pain its no more, now can get packages for lenny and squeeze in venenux repositories. currently 3.4.0 and some backported patch and features from 3.4.2 mixed For info here: www.venenux.net/Repositorios i'll anunce in few days more updates for gambas developers on debian real linux.. the only module that are not enabled are gb.media, all other are enable and working for lenny and squeeze.. From mmcg29440 at ...3163... Mon Aug 26 17:56:46 2013 From: mmcg29440 at ...3163... (Marty) Date: Mon, 26 Aug 2013 11:56:46 -0400 Subject: [Gambas-user] How to return a event from an embedded sub form Message-ID: <521B7ABE.8000803@...3163...> Hello, I need to return a button click from an embedded sub form. I managed to get the sub form embedded in the main form using the code found in the tips that run when Gambas loads. The sub form has a button called OK. I want to capture the btnOK_Click event and use it in the main form. I know I can use a global variable that can be seen by both forms but, I'd like to use another method. I've been trying Object.Attach as suggested by Benoit in an email I found on the net. I've not been able to get that working. Would you help me with the syntax of Object.Attach or suggest a better approach? I am still learning Gambas syntax so please do not assume anything when sending code examples. Thanks, Marty From taboege at ...626... Mon Aug 26 18:06:22 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 26 Aug 2013 18:06:22 +0200 Subject: [Gambas-user] How to return a event from an embedded sub form In-Reply-To: <521B7ABE.8000803@...3163...> References: <521B7ABE.8000803@...3163...> Message-ID: <20130826160622.GJ478@...2774...> On Mon, 26 Aug 2013, Marty wrote: > Hello, > > I need to return a button click from an embedded sub form. I managed to > get the sub form embedded in the main form using the code found in the > tips that run when Gambas loads. > > The sub form has a button called OK. I want to capture the btnOK_Click > event and use it in the main form. I know I can use a global variable > that can be seen by both forms but, I'd like to use another method. I've > been trying Object.Attach as suggested by Benoit in an email I found on > the net. I've not been able to get that working. > > Would you help me with the syntax of Object.Attach or suggest a better > approach? I am still learning Gambas syntax so please do not assume > anything when sending code examples. > Make your Button on the embedded Form public in the form editor in the IDE. Let the Button be btnOK and an instance of your embedded Form be "hEmbedded". Then you can do the following in FMain: Object.Attach(hEmbedded.btnOK, Me, "btnOK") This will attach the Button btnOK on the embedded Form to FMain. The Button gets "btnOK" as its event name and will then raise btnOK_Click() in FMain. Regards, Tobi From rmorgan62 at ...626... Mon Aug 26 19:39:11 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Mon, 26 Aug 2013 10:39:11 -0700 Subject: [Gambas-user] accessing mdb files In-Reply-To: <521B5A8A.40900@...3175...> References: <521B5A8A.40900@...3175...> Message-ID: Linux does not have direct support for mdb as far as I am aware. Under Linux, you would need to either locate a an access driver for odbc or use something like Jackcess in Java middle-ware to access the db. There are other possibilities such as running MSSQL on a windows machine and remotely connecting to the dbms. If it must be local you are best off converting the db to something like MySQL or Postgress. There are tools for converting from Access to other dbms' and there are some commercial drivers for *nix systems. Another possibility is to export your Access db to cvs format and import it into Open Office, then connect to it via open office. One solution I have not tried nor have I found any info on is possibly running Access on WINE and connecting to it. But you might want to look in to it. Could be a dead end though. The best solutions however are either run a remote dbms to serve you mdb database or convert it to a *nix supported dbms. Hope that helps From fernando at ...3175... Mon Aug 26 21:23:00 2013 From: fernando at ...3175... (Fernando Martins) Date: Mon, 26 Aug 2013 21:23:00 +0200 Subject: [Gambas-user] accessing mdb files In-Reply-To: References: <521B5A8A.40900@...3175...> Message-ID: <521BAB14.6030204@...3175...> On 08/26/2013 07:39 PM, Randall Morgan wrote: > Linux does not have direct support for mdb as far as I am aware. > > There is mdbtools, which includes a primitive odbc driver, that I was trying to use. http://mdbtools.sourceforge.net/ Regards, Fernando From willy at ...2734... Mon Aug 26 22:34:47 2013 From: willy at ...2734... (Willy Raets) Date: Mon, 26 Aug 2013 22:34:47 +0200 Subject: [Gambas-user] accessing mdb files In-Reply-To: <521BAB14.6030204@...3175...> References: <521B5A8A.40900@...3175...> <521BAB14.6030204@...3175...> Message-ID: <1377549287.2656.7.camel@...3024...> On Mon, 2013-08-26 at 21:23 +0200, Fernando Martins wrote: > On 08/26/2013 07:39 PM, Randall Morgan wrote: > > Linux does not have direct support for mdb as far as I am aware. > > > > > There is mdbtools, which includes a primitive odbc driver, that I was > trying to use. > > http://mdbtools.sourceforge.net/ > > Regards, > Fernando I made a small example project that makes a connection to a .mdb This is how it is possible (I only tested the connection, not reading in tables or changing any records): 1. Install Mdbtools -> this will install all needed libraries 2. Locate libmdbodbc.so.1 (or libmdbodbc.so.0) -> you need the full path to it for next step 3. Edit odbc.ini with elevated user rights (located in /Etc) My odbc.ini for this example looks like this [DataEnquete] Description = MS Access ODBC Driver = /usr/lib/i386-linux-gnu/odbc/libmdbodbc.so.1 Database = /home/willy/Databases/DataEnquete-Transport.mdb IN LINE with Driver = Replace with full path to your libodbcmdb.so.1 (or libodbcmdb.so.0) IN LINE with Database Replace with full path to the .mdb you want to open Use [DataEnquete] without [ and ] (so DataEnquete) for .Host in your ODBC connection code OR replace DataEnquete with MyName in .Host and [DataEnquete] with [MyName] in odbc.ini Code for connecting looks like this: Private myMdbConnect As New Connection Private Sub Connect() With myMdbConnect .Type = "odbc" .Host = "DataEnquete" .Login = "Admin" ' <- It's necesary for mdb .Name = "" ' <- In odbc always keep blank End With myMdbConnect.Open End Attached a Source Archive. To make it work first do the steps mentioned above and adapt all to your code to the content of your odbc.ini. > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org -------------- next part -------------- A non-text attachment was scrubbed... Name: ConnectToMdb-0.0.1.tar.gz Type: application/x-compressed-tar Size: 5824 bytes Desc: not available URL: From gambas.fr at ...626... Mon Aug 26 22:57:11 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 26 Aug 2013 22:57:11 +0200 Subject: [Gambas-user] How to return a event from an embedded sub form In-Reply-To: <20130826160622.GJ478@...2774...> References: <521B7ABE.8000803@...3163...> <20130826160622.GJ478@...2774...> Message-ID: never use public control insteed in the embedded form add Public Function GetButton() as Button return btnOk end 2013/8/26 Tobias Boege > On Mon, 26 Aug 2013, Marty wrote: > > Hello, > > > > I need to return a button click from an embedded sub form. I managed to > > get the sub form embedded in the main form using the code found in the > > tips that run when Gambas loads. > > > > The sub form has a button called OK. I want to capture the btnOK_Click > > event and use it in the main form. I know I can use a global variable > > that can be seen by both forms but, I'd like to use another method. I've > > been trying Object.Attach as suggested by Benoit in an email I found on > > the net. I've not been able to get that working. > > > > Would you help me with the syntax of Object.Attach or suggest a better > > approach? I am still learning Gambas syntax so please do not assume > > anything when sending code examples. > > > > Make your Button on the embedded Form public in the form editor in the IDE. > Let the Button be btnOK and an instance of your embedded Form be > "hEmbedded". Then you can do the following in FMain: > > Object.Attach(hEmbedded.btnOK, Me, "btnOK") > > This will attach the Button btnOK on the embedded Form to FMain. The Button > gets "btnOK" as its event name and will then raise btnOK_Click() in FMain. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From taboege at ...626... Mon Aug 26 23:36:58 2013 From: taboege at ...626... (Tobias Boege) Date: Mon, 26 Aug 2013 23:36:58 +0200 Subject: [Gambas-user] How to return a event from an embedded sub form In-Reply-To: References: <521B7ABE.8000803@...3163...> <20130826160622.GJ478@...2774...> Message-ID: <20130826213658.GQ478@...2774...> On Mon, 26 Aug 2013, Fabien Bodard wrote: > never use public control Why? From shanep1967 at ...169... Tue Aug 27 08:55:27 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 27 Aug 2013 16:55:27 +1000 Subject: [Gambas-user] Gridview Mode Message-ID: <521C4D5F.2000702@...169...> I am unable to set the Gridview Mode Property in the IDE I get Incorrect Property Value (not an Object) [System] OperatingSystem=Linux Kernel=3.8.0-29-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=XFCE Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 From taboege at ...626... Tue Aug 27 09:00:44 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 27 Aug 2013 09:00:44 +0200 Subject: [Gambas-user] Gridview Mode In-Reply-To: <521C4D5F.2000702@...169...> References: <521C4D5F.2000702@...169...> Message-ID: <20130827070044.GA798@...2774...> On Tue, 27 Aug 2013, Shane wrote: > I am unable to set the Gridview Mode Property in the IDE > I get Incorrect Property Value (not an Object) > > > [System] > OperatingSystem=Linux > Kernel=3.8.0-29-generic > Architecture=x86_64 > Distribution=Ubuntu 13.04 > Desktop=XFCE > Theme=QGtk > Language=en_AU.UTF-8 > Memory=3808M > [Libraries] > Cairo=libcairo.so.0.0.0 > Cairo=libcairo.so.2.11200.14 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.7.2 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.6.0 > GTK+=libgtk-x11-2.0.so.0.2400.17 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.28.0.0 > Qt4=libQtCore.so.4.8.4 > SDL=libSDL-1.2.so.0.11.4 > What does $ gbx3 --version say? Regards, Tobi From gambas.fr at ...626... Tue Aug 27 09:36:04 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 27 Aug 2013 09:36:04 +0200 Subject: [Gambas-user] How to return a event from an embedded sub form In-Reply-To: <20130826213658.GQ478@...2774...> References: <521B7ABE.8000803@...3163...> <20130826160622.GJ478@...2774...> <20130826213658.GQ478@...2774...> Message-ID: It's a bad programming use... and gambas was not drawn for that. The correct and more efficient way is the one i say.. The ide for exemple have no one public ctl. 2013/8/26 Tobias Boege > On Mon, 26 Aug 2013, Fabien Bodard wrote: > > never use public control > > Why? > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From shanep1967 at ...169... Tue Aug 27 09:41:33 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 27 Aug 2013 17:41:33 +1000 Subject: [Gambas-user] Gridview Mode In-Reply-To: <20130827070044.GA798@...2774...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> Message-ID: <521C582D.90804@...169...> On 27/08/13 17:00, Tobias Boege wrote: > On Tue, 27 Aug 2013, Shane wrote: >> I am unable to set the Gridview Mode Property in the IDE >> I get Incorrect Property Value (not an Object) >> >> >> [System] >> OperatingSystem=Linux >> Kernel=3.8.0-29-generic >> Architecture=x86_64 >> Distribution=Ubuntu 13.04 >> Desktop=XFCE >> Theme=QGtk >> Language=en_AU.UTF-8 >> Memory=3808M >> [Libraries] >> Cairo=libcairo.so.0.0.0 >> Cairo=libcairo.so.2.11200.14 >> Curl=libcurl.so.4.3.0 >> DBus=libdbus-1.so.3.7.2 >> GStreamer=libgstreamer-0.10.so.0.30.0 >> GStreamer=libgstreamer-1.0.so.0.6.0 >> GTK+=libgtk-x11-2.0.so.0.2400.17 >> OpenGL=libGL.so.1.2.0 >> Poppler=libpoppler.so.28.0.0 >> Qt4=libQtCore.so.4.8.4 >> SDL=libSDL-1.2.so.0.11.4 >> > What does > > $ gbx3 --version > > say? > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > sorry 3.4.90 From gambas.fr at ...626... Tue Aug 27 09:42:25 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 27 Aug 2013 09:42:25 +0200 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) In-Reply-To: <20130826103401.GC478@...2774...> References: <1377473364.8638.61.camel@...2688...> <20130826103401.GC478@...2774...> Message-ID: And then if you configure the connection ide you can use : Connections["Connection1"].Open() 2013/8/26 Tobias Boege > On Mon, 26 Aug 2013, Bruce wrote: > > What syntax for "DatabaseURL As String"? > > > > I'm trying to create a connection to an SQLite db in a different gambas > > project source directory: > > > > $conn = New > > > Connection("/share/projects/gambas3_proj/horse/horseBO/.connection/bometa.connection") > > > > (and various other path strings to the connection definition). > > > > All I get is "Malformed URL" error. > > > > >From the sources, I deduce the following format (and it works here): > > $TYPE://$USER@$HOST:$PORT/$DB > > where the :$PORT part is optional. > > So to connect to something like > > hConn = New Connection > With hConn > .Type = "mysql" > .Login = "root" > .Password = "toor" > .Host = "localhost" > .Port = 3306 > .Name = "test" > .Open() > End With > > you could write > > hConn = New Connection("mysql://root at ...40...:3306/test") > hConn.Passwort = "toor" > hConn.Open() > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From taboege at ...626... Tue Aug 27 09:48:05 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 27 Aug 2013 09:48:05 +0200 Subject: [Gambas-user] Gridview Mode In-Reply-To: <521C582D.90804@...169...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> <521C582D.90804@...169...> Message-ID: <20130827074805.GB798@...2774...> On Tue, 27 Aug 2013, Shane wrote: > On 27/08/13 17:00, Tobias Boege wrote: > > On Tue, 27 Aug 2013, Shane wrote: > >> I am unable to set the Gridview Mode Property in the IDE > >> I get Incorrect Property Value (not an Object) > >> > >> > >> [System] > >> OperatingSystem=Linux > >> Kernel=3.8.0-29-generic > >> Architecture=x86_64 > >> Distribution=Ubuntu 13.04 > >> Desktop=XFCE > >> Theme=QGtk > >> Language=en_AU.UTF-8 > >> Memory=3808M > >> [Libraries] > >> Cairo=libcairo.so.0.0.0 > >> Cairo=libcairo.so.2.11200.14 > >> Curl=libcurl.so.4.3.0 > >> DBus=libdbus-1.so.3.7.2 > >> GStreamer=libgstreamer-0.10.so.0.30.0 > >> GStreamer=libgstreamer-1.0.so.0.6.0 > >> GTK+=libgtk-x11-2.0.so.0.2400.17 > >> OpenGL=libGL.so.1.2.0 > >> Poppler=libpoppler.so.28.0.0 > >> Qt4=libQtCore.so.4.8.4 > >> SDL=libSDL-1.2.so.0.11.4 > >> > > What does > > > > $ gbx3 --version > > > > say? > > > > Regards, > > Tobi > > > > ------------------------------------------------------------------------------ > > Introducing Performance Central, a new site from SourceForge and > > AppDynamics. Performance Central is your source for news, insights, > > analysis and resources for efficient Application Performance Management. > > Visit us today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > sorry 3.4.90 > Nothing more? If it 3.4.90 I would expect that it also prints the SVN revision number as of #5662 (which was May this year). Can you dig out the revision you're using for us? Regards, Tobi From ualex73 at ...626... Tue Aug 27 09:51:25 2013 From: ualex73 at ...626... (Alexie) Date: Tue, 27 Aug 2013 09:51:25 +0200 Subject: [Gambas-user] List of Open Forms? Message-ID: Hi All, Gambas allows me to open multiple forms within the same application, this works great. Only when i try to quit the application, all forms need to be manually closed too ;-( Is there an option to retrieve the list of opened forms (then i can call the .close option myself) or another option to easily stop the application? I tried "quit", but that gives a big list of messages from Gambas, which i don't want to show to the end-user. Regards, Alex From shanep1967 at ...169... Tue Aug 27 10:15:03 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 27 Aug 2013 18:15:03 +1000 Subject: [Gambas-user] Gridview Mode In-Reply-To: <20130827074805.GB798@...2774...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> <521C582D.90804@...169...> <20130827074805.GB798@...2774...> Message-ID: <521C6007.1070104@...169...> On 27/08/13 17:48, Tobias Boege wrote: > On Tue, 27 Aug 2013, Shane wrote: >> On 27/08/13 17:00, Tobias Boege wrote: >>> On Tue, 27 Aug 2013, Shane wrote: >>>> I am unable to set the Gridview Mode Property in the IDE >>>> I get Incorrect Property Value (not an Object) >>>> >>>> >>>> [System] >>>> OperatingSystem=Linux >>>> Kernel=3.8.0-29-generic >>>> Architecture=x86_64 >>>> Distribution=Ubuntu 13.04 >>>> Desktop=XFCE >>>> Theme=QGtk >>>> Language=en_AU.UTF-8 >>>> Memory=3808M >>>> [Libraries] >>>> Cairo=libcairo.so.0.0.0 >>>> Cairo=libcairo.so.2.11200.14 >>>> Curl=libcurl.so.4.3.0 >>>> DBus=libdbus-1.so.3.7.2 >>>> GStreamer=libgstreamer-0.10.so.0.30.0 >>>> GStreamer=libgstreamer-1.0.so.0.6.0 >>>> GTK+=libgtk-x11-2.0.so.0.2400.17 >>>> OpenGL=libGL.so.1.2.0 >>>> Poppler=libpoppler.so.28.0.0 >>>> Qt4=libQtCore.so.4.8.4 >>>> SDL=libSDL-1.2.so.0.11.4 >>>> >>> What does >>> >>> $ gbx3 --version >>> >>> say? >>> >>> Regards, >>> Tobi >>> >>> ------------------------------------------------------------------------------ >>> Introducing Performance Central, a new site from SourceForge and >>> AppDynamics. Performance Central is your source for news, insights, >>> analysis and resources for efficient Application Performance Management. >>> Visit us today! >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> sorry 3.4.90 >> > Nothing more? If it 3.4.90 I would expect that it also prints the SVN > revision number as of #5662 (which was May this year). Can you dig out the > revision you're using for us? > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ok it from http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu and its 3.4.99-2+svn 4657 build 41 From fernando at ...3175... Tue Aug 27 10:32:12 2013 From: fernando at ...3175... (Fernando) Date: Tue, 27 Aug 2013 09:32:12 +0100 Subject: [Gambas-user] accessing mdb files In-Reply-To: <1377549287.2656.7.camel@...3024...> References: <521BAB14.6030204@...3175...> <1377549287.2656.7.camel@...3024...> Message-ID: <20130827083217.68290C1057AAB@...3176...> On Aug 26, 2013 21:34 "Willy Raets" wrote: > > I made a small example project that makes a connection to a .mdb > > This is how it is possible (I only tested the connection, not reading > in > tables or changing any records): > > perhaps you missed my initial email, that's what I did based on an older email on this list. The problem is, apparently, not the connection but the retrieving of data. Regards, Fernando From nemh at ...2007... Tue Aug 27 10:38:31 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 27 Aug 2013 10:38:31 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: References: Message-ID: <20130827103831.51765033@...3118...> > Hi All, > > Gambas allows me to open multiple forms within the same application, > this works great. Only when i try to quit the application, all forms > need to be manually closed too ;-( > > Is there an option to retrieve the list of opened forms (then i can > call the .close option myself) or another option to easily stop the > application? I tried "quit", but that gives a big list of messages > from Gambas, which i don't want to show to the end-user. > > Regards, > Alex Dim cwin As Window For Each cwin In Windows cwin.Close Next From ualex73 at ...626... Tue Aug 27 10:46:29 2013 From: ualex73 at ...626... (Alexie) Date: Tue, 27 Aug 2013 10:46:29 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: <20130827103831.51765033@...3118...> References: <20130827103831.51765033@...3118...> Message-ID: Thanks for the quick answer and i will try it out tonight ... I thought it would be much more complex :-) 2013/8/27 Kende Kriszti?n > > Hi All, > > > > Gambas allows me to open multiple forms within the same application, > > this works great. Only when i try to quit the application, all forms > > need to be manually closed too ;-( > > > > Is there an option to retrieve the list of opened forms (then i can > > call the .close option myself) or another option to easily stop the > > application? I tried "quit", but that gives a big list of messages > > from Gambas, which i don't want to show to the end-user. > > > > Regards, > > Alex > > Dim cwin As Window > > For Each cwin In Windows > > cwin.Close > > Next > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Tue Aug 27 10:52:36 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 27 Aug 2013 10:52:36 +0200 Subject: [Gambas-user] Gridview Mode In-Reply-To: <521C6007.1070104@...169...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> <521C582D.90804@...169...> <20130827074805.GB798@...2774...> <521C6007.1070104@...169...> Message-ID: <20130827085236.GC798@...2774...> On Tue, 27 Aug 2013, Shane wrote: > On 27/08/13 17:48, Tobias Boege wrote: > > On Tue, 27 Aug 2013, Shane wrote: > >> On 27/08/13 17:00, Tobias Boege wrote: > >>> On Tue, 27 Aug 2013, Shane wrote: > >>>> I am unable to set the Gridview Mode Property in the IDE > >>>> I get Incorrect Property Value (not an Object) > >>>> > >>>> > >>>> [System] > >>>> OperatingSystem=Linux > >>>> Kernel=3.8.0-29-generic > >>>> Architecture=x86_64 > >>>> Distribution=Ubuntu 13.04 > >>>> Desktop=XFCE > >>>> Theme=QGtk > >>>> Language=en_AU.UTF-8 > >>>> Memory=3808M > >>>> [Libraries] > >>>> Cairo=libcairo.so.0.0.0 > >>>> Cairo=libcairo.so.2.11200.14 > >>>> Curl=libcurl.so.4.3.0 > >>>> DBus=libdbus-1.so.3.7.2 > >>>> GStreamer=libgstreamer-0.10.so.0.30.0 > >>>> GStreamer=libgstreamer-1.0.so.0.6.0 > >>>> GTK+=libgtk-x11-2.0.so.0.2400.17 > >>>> OpenGL=libGL.so.1.2.0 > >>>> Poppler=libpoppler.so.28.0.0 > >>>> Qt4=libQtCore.so.4.8.4 > >>>> SDL=libSDL-1.2.so.0.11.4 > >>>> > >>> What does > >>> > >>> $ gbx3 --version > >>> > >>> say? > >>> > >>> Regards, > >>> Tobi > >>> > >>> ------------------------------------------------------------------------------ > >>> Introducing Performance Central, a new site from SourceForge and > >>> AppDynamics. Performance Central is your source for news, insights, > >>> analysis and resources for efficient Application Performance Management. > >>> Visit us today! > >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >>> > >> sorry 3.4.90 > >> > > Nothing more? If it 3.4.90 I would expect that it also prints the SVN > > revision number as of #5662 (which was May this year). Can you dig out the > > revision you're using for us? > > > > Regards, > > Tobi > > > > ------------------------------------------------------------------------------ > > Introducing Performance Central, a new site from SourceForge and > > AppDynamics. Performance Central is your source for news, insights, > > analysis and resources for efficient Application Performance Management. > > Visit us today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ok it from http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu > and its 3.4.99-2+svn 4657 build 41 > This appears to be the latest revision. I already reported problems with this revision (including the "Incorrect property value" issue). Don't get me wrong but I'm glad I'm not the only one seeing this :-) My solution was to downgrade to #5802. I think svn4622 in Sebi's numbering scheme should be fine. Regards, Tobi From shanep1967 at ...169... Tue Aug 27 12:02:22 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 27 Aug 2013 20:02:22 +1000 Subject: [Gambas-user] Gridview Mode In-Reply-To: <20130827085236.GC798@...2774...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> <521C582D.90804@...169...> <20130827074805.GB798@...2774...> <521C6007.1070104@...169...> <20130827085236.GC798@...2774...> Message-ID: <521C792E.7010009@...169...> On 27/08/13 18:52, Tobias Boege wrote: > On Tue, 27 Aug 2013, Shane wrote: >> On 27/08/13 17:48, Tobias Boege wrote: >>> On Tue, 27 Aug 2013, Shane wrote: >>>> On 27/08/13 17:00, Tobias Boege wrote: >>>>> On Tue, 27 Aug 2013, Shane wrote: >>>>>> I am unable to set the Gridview Mode Property in the IDE >>>>>> I get Incorrect Property Value (not an Object) >>>>>> >>>>>> >>>>>> [System] >>>>>> OperatingSystem=Linux >>>>>> Kernel=3.8.0-29-generic >>>>>> Architecture=x86_64 >>>>>> Distribution=Ubuntu 13.04 >>>>>> Desktop=XFCE >>>>>> Theme=QGtk >>>>>> Language=en_AU.UTF-8 >>>>>> Memory=3808M >>>>>> [Libraries] >>>>>> Cairo=libcairo.so.0.0.0 >>>>>> Cairo=libcairo.so.2.11200.14 >>>>>> Curl=libcurl.so.4.3.0 >>>>>> DBus=libdbus-1.so.3.7.2 >>>>>> GStreamer=libgstreamer-0.10.so.0.30.0 >>>>>> GStreamer=libgstreamer-1.0.so.0.6.0 >>>>>> GTK+=libgtk-x11-2.0.so.0.2400.17 >>>>>> OpenGL=libGL.so.1.2.0 >>>>>> Poppler=libpoppler.so.28.0.0 >>>>>> Qt4=libQtCore.so.4.8.4 >>>>>> SDL=libSDL-1.2.so.0.11.4 >>>>>> >>>>> What does >>>>> >>>>> $ gbx3 --version >>>>> >>>>> say? >>>>> >>>>> Regards, >>>>> Tobi >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Introducing Performance Central, a new site from SourceForge and >>>>> AppDynamics. Performance Central is your source for news, insights, >>>>> analysis and resources for efficient Application Performance Management. >>>>> Visit us today! >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>> sorry 3.4.90 >>>> >>> Nothing more? If it 3.4.90 I would expect that it also prints the SVN >>> revision number as of #5662 (which was May this year). Can you dig out the >>> revision you're using for us? >>> >>> Regards, >>> Tobi >>> >>> ------------------------------------------------------------------------------ >>> Introducing Performance Central, a new site from SourceForge and >>> AppDynamics. Performance Central is your source for news, insights, >>> analysis and resources for efficient Application Performance Management. >>> Visit us today! >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> ok it from http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu >> and its 3.4.99-2+svn 4657 build 41 >> > This appears to be the latest revision. I already reported problems with > this revision (including the "Incorrect property value" issue). Don't get me > wrong but I'm glad I'm not the only one seeing this :-) > > My solution was to downgrade to #5802. I think svn4622 in Sebi's numbering > scheme should be fine. > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > This seems strange being using grid view for ages no problem? From gambas.fr at ...626... Tue Aug 27 12:05:16 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 27 Aug 2013 12:05:16 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: References: <20130827103831.51765033@...3118...> Message-ID: You can define the main windows Application.main= me Then if you close this form it will close all others Le 27 ao?t 2013 10:47, "Alexie" a ?crit : > Thanks for the quick answer and i will try it out tonight ... I thought it > would be much more complex :-) > > > 2013/8/27 Kende Kriszti?n > > > > Hi All, > > > > > > Gambas allows me to open multiple forms within the same application, > > > this works great. Only when i try to quit the application, all forms > > > need to be manually closed too ;-( > > > > > > Is there an option to retrieve the list of opened forms (then i can > > > call the .close option myself) or another option to easily stop the > > > application? I tried "quit", but that gives a big list of messages > > > from Gambas, which i don't want to show to the end-user. > > > > > > Regards, > > > Alex > > > > Dim cwin As Window > > > > For Each cwin In Windows > > > > cwin.Close > > > > Next > > > > > > > ------------------------------------------------------------------------------ > > Introducing Performance Central, a new site from SourceForge and > > AppDynamics. Performance Central is your source for news, insights, > > analysis and resources for efficient Application Performance Management. > > Visit us today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shanep1967 at ...169... Tue Aug 27 12:10:55 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 27 Aug 2013 20:10:55 +1000 Subject: [Gambas-user] Gridview Mode In-Reply-To: <521C792E.7010009@...169...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> <521C582D.90804@...169...> <20130827074805.GB798@...2774...> <521C6007.1070104@...169...> <20130827085236.GC798@...2774...> <521C792E.7010009@...169...> Message-ID: <521C7B2F.7030507@...169...> On 27/08/13 20:02, Shane wrote: > On 27/08/13 18:52, Tobias Boege wrote: >> On Tue, 27 Aug 2013, Shane wrote: >>> On 27/08/13 17:48, Tobias Boege wrote: >>>> On Tue, 27 Aug 2013, Shane wrote: >>>>> On 27/08/13 17:00, Tobias Boege wrote: >>>>>> On Tue, 27 Aug 2013, Shane wrote: >>>>>>> I am unable to set the Gridview Mode Property in the IDE >>>>>>> I get Incorrect Property Value (not an Object) >>>>>>> >>>>>>> >>>>>>> [System] >>>>>>> OperatingSystem=Linux >>>>>>> Kernel=3.8.0-29-generic >>>>>>> Architecture=x86_64 >>>>>>> Distribution=Ubuntu 13.04 >>>>>>> Desktop=XFCE >>>>>>> Theme=QGtk >>>>>>> Language=en_AU.UTF-8 >>>>>>> Memory=3808M >>>>>>> [Libraries] >>>>>>> Cairo=libcairo.so.0.0.0 >>>>>>> Cairo=libcairo.so.2.11200.14 >>>>>>> Curl=libcurl.so.4.3.0 >>>>>>> DBus=libdbus-1.so.3.7.2 >>>>>>> GStreamer=libgstreamer-0.10.so.0.30.0 >>>>>>> GStreamer=libgstreamer-1.0.so.0.6.0 >>>>>>> GTK+=libgtk-x11-2.0.so.0.2400.17 >>>>>>> OpenGL=libGL.so.1.2.0 >>>>>>> Poppler=libpoppler.so.28.0.0 >>>>>>> Qt4=libQtCore.so.4.8.4 >>>>>>> SDL=libSDL-1.2.so.0.11.4 >>>>>>> >>>>>> What does >>>>>> >>>>>> $ gbx3 --version >>>>>> >>>>>> say? >>>>>> >>>>>> Regards, >>>>>> Tobi >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Introducing Performance Central, a new site from SourceForge and >>>>>> AppDynamics. Performance Central is your source for news, insights, >>>>>> analysis and resources for efficient Application Performance Management. >>>>>> Visit us today! >>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>>> sorry 3.4.90 >>>>> >>>> Nothing more? If it 3.4.90 I would expect that it also prints the SVN >>>> revision number as of #5662 (which was May this year). Can you dig out the >>>> revision you're using for us? >>>> >>>> Regards, >>>> Tobi >>>> >>>> ------------------------------------------------------------------------------ >>>> Introducing Performance Central, a new site from SourceForge and >>>> AppDynamics. Performance Central is your source for news, insights, >>>> analysis and resources for efficient Application Performance Management. >>>> Visit us today! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> ok it from http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu >>> and its 3.4.99-2+svn 4657 build 41 >>> >> This appears to be the latest revision. I already reported problems with >> this revision (including the "Incorrect property value" issue). Don't get me >> wrong but I'm glad I'm not the only one seeing this :-) >> >> My solution was to downgrade to #5802. I think svn4622 in Sebi's numbering >> scheme should be fine. >> >> Regards, >> Tobi >> >> ------------------------------------------------------------------------------ >> Introducing Performance Central, a new site from SourceForge and >> AppDynamics. Performance Central is your source for news, insights, >> analysis and resources for efficient Application Performance Management. >> Visit us today! >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > This seems strange being using grid view for ages no problem? > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > looks like setting in code works is this something with the ppa version i had another problem recently and had to down grade so what is the best way to do things like this setting properties in code or the ide? From nemh at ...2007... Tue Aug 27 12:24:09 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 27 Aug 2013 12:24:09 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: References: <20130827103831.51765033@...3118...> Message-ID: <20130827122409.799afa4a@...3118...> > You can define the main windows > Application.main= me Unknown symbol 'main' in class 'Application' From taboege at ...626... Tue Aug 27 12:25:15 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 27 Aug 2013 12:25:15 +0200 Subject: [Gambas-user] Gridview Mode In-Reply-To: <521C7B2F.7030507@...169...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> <521C582D.90804@...169...> <20130827074805.GB798@...2774...> <521C6007.1070104@...169...> <20130827085236.GC798@...2774...> <521C792E.7010009@...169...> <521C7B2F.7030507@...169...> Message-ID: <20130827102515.GE798@...2774...> On Tue, 27 Aug 2013, Shane wrote: > On 27/08/13 20:02, Shane wrote: > > On 27/08/13 18:52, Tobias Boege wrote: > >> On Tue, 27 Aug 2013, Shane wrote: > >>> On 27/08/13 17:48, Tobias Boege wrote: > >>>> On Tue, 27 Aug 2013, Shane wrote: > >>>>> On 27/08/13 17:00, Tobias Boege wrote: > >>>>>> On Tue, 27 Aug 2013, Shane wrote: > >>>>>>> I am unable to set the Gridview Mode Property in the IDE > >>>>>>> I get Incorrect Property Value (not an Object) > >>>>>>> > >>>>>>> > >>>>>>> [System] > >>>>>>> OperatingSystem=Linux > >>>>>>> Kernel=3.8.0-29-generic > >>>>>>> Architecture=x86_64 > >>>>>>> Distribution=Ubuntu 13.04 > >>>>>>> Desktop=XFCE > >>>>>>> Theme=QGtk > >>>>>>> Language=en_AU.UTF-8 > >>>>>>> Memory=3808M > >>>>>>> [Libraries] > >>>>>>> Cairo=libcairo.so.0.0.0 > >>>>>>> Cairo=libcairo.so.2.11200.14 > >>>>>>> Curl=libcurl.so.4.3.0 > >>>>>>> DBus=libdbus-1.so.3.7.2 > >>>>>>> GStreamer=libgstreamer-0.10.so.0.30.0 > >>>>>>> GStreamer=libgstreamer-1.0.so.0.6.0 > >>>>>>> GTK+=libgtk-x11-2.0.so.0.2400.17 > >>>>>>> OpenGL=libGL.so.1.2.0 > >>>>>>> Poppler=libpoppler.so.28.0.0 > >>>>>>> Qt4=libQtCore.so.4.8.4 > >>>>>>> SDL=libSDL-1.2.so.0.11.4 > >>>>>>> > >>>>>> What does > >>>>>> > >>>>>> $ gbx3 --version > >>>>>> > >>>>>> say? > >>>>>> > >>>>>> Regards, > >>>>>> Tobi > >>>>>> > >>>>>> ------------------------------------------------------------------------------ > >>>>>> Introducing Performance Central, a new site from SourceForge and > >>>>>> AppDynamics. Performance Central is your source for news, insights, > >>>>>> analysis and resources for efficient Application Performance Management. > >>>>>> Visit us today! > >>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>>> > >>>>> sorry 3.4.90 > >>>>> > >>>> Nothing more? If it 3.4.90 I would expect that it also prints the SVN > >>>> revision number as of #5662 (which was May this year). Can you dig out the > >>>> revision you're using for us? > >>>> > >>>> Regards, > >>>> Tobi > >>>> > >>>> ------------------------------------------------------------------------------ > >>>> Introducing Performance Central, a new site from SourceForge and > >>>> AppDynamics. Performance Central is your source for news, insights, > >>>> analysis and resources for efficient Application Performance Management. > >>>> Visit us today! > >>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>>> > >>> ok it from http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu > >>> and its 3.4.99-2+svn 4657 build 41 > >>> > >> This appears to be the latest revision. I already reported problems with > >> this revision (including the "Incorrect property value" issue). Don't get me > >> wrong but I'm glad I'm not the only one seeing this :-) > >> > >> My solution was to downgrade to #5802. I think svn4622 in Sebi's numbering > >> scheme should be fine. > >> > >> Regards, > >> Tobi > >> > >> ------------------------------------------------------------------------------ > >> Introducing Performance Central, a new site from SourceForge and > >> AppDynamics. Performance Central is your source for news, insights, > >> analysis and resources for efficient Application Performance Management. > >> Visit us today! > >> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > This seems strange being using grid view for ages no problem? > > > > > > ------------------------------------------------------------------------------ > > Introducing Performance Central, a new site from SourceForge and > > AppDynamics. Performance Central is your source for news, insights, > > analysis and resources for efficient Application Performance Management. > > Visit us today! > > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > looks like setting in code works > is this something with the ppa version i had another problem recently > and had to down grade > so what is the best way to do things like this setting properties in > code or the ide? Generally, you should use the IDE. Just this time the IDE is broken. Remember that you use a development version if you run Sebi's PPA. Things may be broken there. Regards, Tobi From shanep1967 at ...169... Tue Aug 27 12:33:03 2013 From: shanep1967 at ...169... (Shane) Date: Tue, 27 Aug 2013 20:33:03 +1000 Subject: [Gambas-user] Gridview Mode In-Reply-To: <20130827102515.GE798@...2774...> References: <521C4D5F.2000702@...169...> <20130827070044.GA798@...2774...> <521C582D.90804@...169...> <20130827074805.GB798@...2774...> <521C6007.1070104@...169...> <20130827085236.GC798@...2774...> <521C792E.7010009@...169...> <521C7B2F.7030507@...169...> <20130827102515.GE798@...2774...> Message-ID: <521C805F.3010801@...169...> On 27/08/13 20:25, Tobias Boege wrote: > On Tue, 27 Aug 2013, Shane wrote: >> On 27/08/13 20:02, Shane wrote: >>> On 27/08/13 18:52, Tobias Boege wrote: >>>> On Tue, 27 Aug 2013, Shane wrote: >>>>> On 27/08/13 17:48, Tobias Boege wrote: >>>>>> On Tue, 27 Aug 2013, Shane wrote: >>>>>>> On 27/08/13 17:00, Tobias Boege wrote: >>>>>>>> On Tue, 27 Aug 2013, Shane wrote: >>>>>>>>> I am unable to set the Gridview Mode Property in the IDE >>>>>>>>> I get Incorrect Property Value (not an Object) >>>>>>>>> >>>>>>>>> >>>>>>>>> [System] >>>>>>>>> OperatingSystem=Linux >>>>>>>>> Kernel=3.8.0-29-generic >>>>>>>>> Architecture=x86_64 >>>>>>>>> Distribution=Ubuntu 13.04 >>>>>>>>> Desktop=XFCE >>>>>>>>> Theme=QGtk >>>>>>>>> Language=en_AU.UTF-8 >>>>>>>>> Memory=3808M >>>>>>>>> [Libraries] >>>>>>>>> Cairo=libcairo.so.0.0.0 >>>>>>>>> Cairo=libcairo.so.2.11200.14 >>>>>>>>> Curl=libcurl.so.4.3.0 >>>>>>>>> DBus=libdbus-1.so.3.7.2 >>>>>>>>> GStreamer=libgstreamer-0.10.so.0.30.0 >>>>>>>>> GStreamer=libgstreamer-1.0.so.0.6.0 >>>>>>>>> GTK+=libgtk-x11-2.0.so.0.2400.17 >>>>>>>>> OpenGL=libGL.so.1.2.0 >>>>>>>>> Poppler=libpoppler.so.28.0.0 >>>>>>>>> Qt4=libQtCore.so.4.8.4 >>>>>>>>> SDL=libSDL-1.2.so.0.11.4 >>>>>>>>> >>>>>>>> What does >>>>>>>> >>>>>>>> $ gbx3 --version >>>>>>>> >>>>>>>> say? >>>>>>>> >>>>>>>> Regards, >>>>>>>> Tobi >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> Introducing Performance Central, a new site from SourceForge and >>>>>>>> AppDynamics. Performance Central is your source for news, insights, >>>>>>>> analysis and resources for efficient Application Performance Management. >>>>>>>> Visit us today! >>>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>>>>>> _______________________________________________ >>>>>>>> Gambas-user mailing list >>>>>>>> Gambas-user at lists.sourceforge.net >>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>>> >>>>>>>> >>>>>>> sorry 3.4.90 >>>>>>> >>>>>> Nothing more? If it 3.4.90 I would expect that it also prints the SVN >>>>>> revision number as of #5662 (which was May this year). Can you dig out the >>>>>> revision you're using for us? >>>>>> >>>>>> Regards, >>>>>> Tobi >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Introducing Performance Central, a new site from SourceForge and >>>>>> AppDynamics. Performance Central is your source for news, insights, >>>>>> analysis and resources for efficient Application Performance Management. >>>>>> Visit us today! >>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>>> ok it from http://ppa.launchpad.net/sebikul/gambas-daily/ubuntu >>>>> and its 3.4.99-2+svn 4657 build 41 >>>>> >>>> This appears to be the latest revision. I already reported problems with >>>> this revision (including the "Incorrect property value" issue). Don't get me >>>> wrong but I'm glad I'm not the only one seeing this :-) >>>> >>>> My solution was to downgrade to #5802. I think svn4622 in Sebi's numbering >>>> scheme should be fine. >>>> >>>> Regards, >>>> Tobi >>>> >>>> ------------------------------------------------------------------------------ >>>> Introducing Performance Central, a new site from SourceForge and >>>> AppDynamics. Performance Central is your source for news, insights, >>>> analysis and resources for efficient Application Performance Management. >>>> Visit us today! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> This seems strange being using grid view for ages no problem? >>> >>> >>> ------------------------------------------------------------------------------ >>> Introducing Performance Central, a new site from SourceForge and >>> AppDynamics. Performance Central is your source for news, insights, >>> analysis and resources for efficient Application Performance Management. >>> Visit us today! >>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> looks like setting in code works >> is this something with the ppa version i had another problem recently >> and had to down grade >> so what is the best way to do things like this setting properties in >> code or the ide? > Generally, you should use the IDE. Just this time the IDE is broken. > Remember that you use a development version if you run Sebi's PPA. Things > may be broken there. > > Regards, > Tobi > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > yep too true From vuott at ...325... Tue Aug 27 14:31:35 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 27 Aug 2013 13:31:35 +0100 (BST) Subject: [Gambas-user] List of Open Forms? In-Reply-To: <20130827122409.799afa4a@...3118...> Message-ID: <1377606695.29304.YahooMailBasic@...3054...> Application.MainWindow = Me so, it works. -------------------------------------------- Mar 27/8/13, Kende Kriszti?n ha scritto: Oggetto: Re: [Gambas-user] List of Open Forms? A: gambas-user at lists.sourceforge.net Data: Marted? 27 agosto 2013, 12:24 > You can define the main windows > Application.main= me Unknown symbol 'main' in class 'Application' ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nemh at ...2007... Tue Aug 27 15:28:07 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 27 Aug 2013 15:28:07 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: <1377606695.29304.YahooMailBasic@...3054...> References: <20130827122409.799afa4a@...3118...> <1377606695.29304.YahooMailBasic@...3054...> Message-ID: <20130827152807.646bd86e@...3118...> > Application.MainWindow = Me > > > > so, it works. Yeah, but it is not clear: Static Property MainWindow As Window RETURNS the main window of the application. The main window is the FIRST CREATED WINDOW or form in your application. Closing the main window implies closing all other opened windows and quitting the application. If closing the first created main window, the secondary created is not closed. But if SET the MainWindow, then works. So first created window is not main window, and it is possible to change the MainWindow value. From vuott at ...325... Tue Aug 27 17:51:43 2013 From: vuott at ...325... (Ru Vuott) Date: Tue, 27 Aug 2013 16:51:43 +0100 (BST) Subject: [Gambas-user] List of Open Forms? In-Reply-To: <20130827152807.646bd86e@...3118...> Message-ID: <1377618703.3804.YahooMailBasic@...3054...> I tried this simple code: Private w As Window Public Sub Form_Open() With w = New Window .W = 100 .H = 100 .X = 0 .Y = 0 .Show End With With w = New Window .W = 100 .H = 100 .X = 200 .Y = 100 .Show End With With w = New Window .W = 100 .H = 100 .X = 300 .Y = 200 .Show End With Me.Center Application.MainWindow = Me ' and also: = Fmain End When you launch the program, 3 windows open. Then, if you close the main Form of application, those three windows close too. bye vuott -------------------------------------------- Mar 27/8/13, Kende Kriszti?n ha scritto: Oggetto: Re: [Gambas-user] List of Open Forms? A: gambas-user at lists.sourceforge.net Data: Marted? 27 agosto 2013, 15:28 > Application.MainWindow = Me > > > > so, it works. Yeah, but it is not clear: Static Property MainWindow As Window RETURNS the main window of the application. The main window is the FIRST CREATED WINDOW or form in your application. Closing the main window implies closing all other opened windows and quitting the application. If closing the first created main window, the secondary created is not closed. But if SET the MainWindow, then works. So first created window is not main window, and it is possible to change the MainWindow value. ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Tue Aug 27 18:02:23 2013 From: taboege at ...626... (Tobias Boege) Date: Tue, 27 Aug 2013 18:02:23 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: <20130827152807.646bd86e@...3118...> References: <20130827122409.799afa4a@...3118...> <1377606695.29304.YahooMailBasic@...3054...> <20130827152807.646bd86e@...3118...> Message-ID: <20130827160222.GA496@...2774...> On Tue, 27 Aug 2013, Kende Kriszti??n wrote: > > Application.MainWindow = Me > > > > > > > > so, it works. > > Yeah, but it is not clear: > > Static Property MainWindow As Window > > RETURNS the main window of the application. > > The main window is the FIRST CREATED WINDOW or form in your > application. Closing the main window implies closing all other opened > windows and quitting the application. > > > If closing the first created main window, the secondary created is not > closed. But if SET the MainWindow, then works. So first created window > is not main window, and it is possible to change the MainWindow value. > I edited the docs accordingly. Did I get all your points? Regards, Tobi From nemh at ...2007... Tue Aug 27 18:56:34 2013 From: nemh at ...2007... (Kende =?UTF-8?B?S3Jpc3p0acOhbg==?=) Date: Tue, 27 Aug 2013 18:56:34 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: <20130827160222.GA496@...2774...> References: <20130827122409.799afa4a@...3118...> <1377606695.29304.YahooMailBasic@...3054...> <20130827152807.646bd86e@...3118...> <20130827160222.GA496@...2774...> Message-ID: <20130827185634.0755b242@...3104...> > I edited the docs accordingly. Did I get all your points? > > Regards, > Tobi Oh, thanks. But "the main window is the first created window" is not true. Because if Print Application.MainWindow then see nothing, and if closing the first created window then secondary is not closed. From paulwheeler at ...546... Wed Aug 28 00:54:23 2013 From: paulwheeler at ...546... (paulwheeler) Date: Tue, 27 Aug 2013 15:54:23 -0700 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) In-Reply-To: References: <1377473364.8638.61.camel@...2688...> <20130826103401.GC478@...2774...> Message-ID: <521D2E1F.2010808@...546...> Bruce and Fabien, My email a few days back gave the code that I am using to open sqlite databases. That code opens a db in any directory you have access to. Is there something I am not understanding about Bruce's question? The code is attached. paul On 08/27/2013 12:42 AM, Fabien Bodard wrote: And then if you configure the connection ide you can use : Connections["Connection1"].Open() 2013/8/26 Tobias Boege [1] On Mon, 26 Aug 2013, Bruce wrote: What syntax for "DatabaseURL As String"? I'm trying to create a connection to an SQLite db in a different gambas project source directory: $conn = New Connection("/share/projects/gambas3_proj/horse/horseBO/.connection/bometa.conne ction") (and various other path strings to the connection definition). All I get is "Malformed URL" error. >From the sources, I deduce the following format (and it works here): $TYPE://$USER@$HOST:$PORT/$DB where the :$PORT part is optional. So to connect to something like hConn = New Connection With hConn .Type = "mysql" .Login = "root" .Password = "toor" .Host = "localhost" .Port = 3306 .Name = "test" .Open() End With you could write hConn = New Connection("mysql://root at ...40...:3306/test") hConn.Passwort = "toor" hConn.Open() Regards, Tobi ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! [2]http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list [3]Gambas-user at lists.sourceforge.net [4]https://lists.sourceforge.net/lists/listinfo/gambas-user References 1. mailto:taboege at ...626... 2. http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk 3. mailto:Gambas-user at lists.sourceforge.net 4. https://lists.sourceforge.net/lists/listinfo/gambas-user -------------- next part -------------- This will allow you to open a connection anywhere. All you have to change is the "sName" and the .Host entry Enjoy! paul '' Put these at the beginning of your program on your form named fMain: Public $hConn As New Connection Public sMyPath As String Public sAppPath As String '' Your routine to open the connection: Public Sub Open_DB() ' If you want to see the commands sent to the database then uncomment this line: ' DB.Debug = True ' For debug purposes only: Print "$hConn.Opened from fMain Form (s/b F) = " & Str($hConn.Opened) sName = "MyDatabaseName.sqlite" ' For debug purposes only: Print "sName = " & sName With $hConn .Type = "sqlite3" ' DB type for your database .Host = "/share/projects/gambas3_proj/horse/ .Name = sName 'Example: "MyDatabaseName.sqlite" End With ' I had multiple kinds of catch statements. This is for debugging the opening of a connection sTryMessage = "OpenConn" Print "Try to open connection for use" Try $hConn.Open ' For debug purposes only: Print "$hConn.Opened from fMain Form (s/b T) = " & Str($hConn.Opened) Print "Connection Host = " & $hConn.Host Catch If sTryMessage = "OpenConn" Then If errorMessageHeader = "" Then errorMessageHeader = "Could not open DB connection in fMain Form Open on " & sName & " On " & sMyPath Print "Connection Open Error in fMain Form Open " & Error.Text Error.Raise(Error.Text & " in fMain Form Open") End If Endif End From jscops at ...11... Wed Aug 28 10:34:33 2013 From: jscops at ...11... (Jack) Date: Wed, 28 Aug 2013 10:34:33 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: <1377618703.3804.YahooMailBasic@...3054...> References: <1377618703.3804.YahooMailBasic@...3054...> Message-ID: <521DB619.8070602@...11...> Le 27/08/2013 17:51, Ru Vuott a ?crit : > I tried this simple code: > > Private w As Window > > > Public Sub Form_Open() > > With w = New Window > .W = 100 > .H = 100 > .X = 0 > .Y = 0 > .Show > End With > > With w = New Window > .W = 100 > .H = 100 > .X = 200 > .Y = 100 > .Show > End With > > With w = New Window > .W = 100 > .H = 100 > .X = 300 > .Y = 200 > .Show > End With > > Me.Center > > Application.MainWindow = Me ' and also: = Fmain > > End > > When you launch the program, 3 windows open. Then, if you close the main Form of application, those three windows close too. > > bye > vuott > You can also open each windows in new virtual desktop if gb.dektop is activate. Private w As Window Public Sub Form_Open() With w = New Window desktop.current = 2 .W = 100 .H = 100 .X = 0 .Y = 0 .Show End With With w = New Window Desktop.Current = 1 .W = 100 .H = 100 .X = 200 .Y = 100 .Show End With With w = New Window Desktop.Current = 3 .W = 100 .H = 100 .X = 300 .Y = 200 .Show End With Desktop.Current = 0 Me.Center Application.MainWindow = Fmain End -- Cordialement Jacky Tripoteau From taboege at ...626... Wed Aug 28 11:59:31 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 28 Aug 2013 11:59:31 +0200 Subject: [Gambas-user] List of Open Forms? In-Reply-To: <20130827185634.0755b242@...3104...> References: <20130827122409.799afa4a@...3118...> <1377606695.29304.YahooMailBasic@...3054...> <20130827152807.646bd86e@...3118...> <20130827160222.GA496@...2774...> <20130827185634.0755b242@...3104...> Message-ID: <20130828095931.GA497@...2774...> On Tue, 27 Aug 2013, Kende Kriszti??n wrote: > > I edited the docs accordingly. Did I get all your points? > > > > Regards, > > Tobi > > Oh, thanks. But "the main window is the first created window" is not > true. Because if Print Application.MainWindow then see nothing, and if > closing the first created window then secondary is not closed. > Uhh, I didn't know that but it's true. Changed that sentence. Regards, Tobi From taboege at ...626... Wed Aug 28 12:01:07 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 28 Aug 2013 12:01:07 +0200 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) In-Reply-To: <521D2E1F.2010808@...546...> References: <1377473364.8638.61.camel@...2688...> <20130826103401.GC478@...2774...> <521D2E1F.2010808@...546...> Message-ID: <20130828100106.GB497@...2774...> On Tue, 27 Aug 2013, paulwheeler wrote: > > Bruce and Fabien, > My email a few days back gave the code that I am using to open sqlite > databases. That code opens a db in any directory you have access to. Is > there something I am not understanding about Bruce's question? > The code is attached. > paul > Yes, Bruce wanted to know how the constructor of Connection works not how to establish a connection. Regards, Tobi From bbruen at ...2308... Wed Aug 28 10:32:32 2013 From: bbruen at ...2308... (Bruce) Date: Wed, 28 Aug 2013 18:02:32 +0930 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) Clarification In-Reply-To: <521D2E1F.2010808@...546...> References: <1377473364.8638.61.camel@...2688...> <20130826103401.GC478@...2774...> <521D2E1F.2010808@...546...> Message-ID: <1377678752.16194.23.camel@...2688...> First off, thanks everyone for your answers - all are correct. My original question was purely about the syntax of the Connection constructor, specifically about the optional DatabaseURL parameter. Clarification 1: According to the help there are three ways to initialise a connection: a) by directly setting the connection properties, (as Paul describes) b) by using a predefined connection, (as Fabian describes) c) by using the constructor DatabasURL parameter (as Tobi describes). Regarding the latter, the help is somewhat silent as to the syntax of that parameter. Thanks to Tobi, I now see it to be: $TYPE://$USER@$HOST:$PORT/$DB Clarification 2: This syntax also provides a clue that this method can only work where the underlying database is a server process e.g. mysql or postgresql and I don't think it can work for sqlite. In fact, contrary to Tobi's experience, I still cannot get this to work (for a postgresql database). Here I have a server machine "bluecow" that has three postgresql server processes running on it (called say "prod", "dev" and "test" each using a separate port). So, if I understand Tobi's answer: $conn = New Connection("postgresql://bb at ...2711...:5432/horse") where the database name is "horse" and the dev server is using port 5432, should create a valid connection, but I still get this "Malformed URL" error??? I have no problem connecting to said database using the direct or predefined methods. Further, looking at the CConnection.c code all the constructor appears to do is split the string parameter and populate the connection properties. It does not appear to validate the values provided for those properties. In other words, I would expect that something like: $conn = New Connection("badtype://xyz at ...3178...:15432/nosuchdb") should still work (albeit creating an invalid connection). However, this still gives the malformed URL error. Clarification 3: Fabian was able to read between the lines and provide the clue to my real problem. For predefined connections, i.e. the ones defined in the IDE, the proper way to set up the connection is: $conn = Connections["conn_name"] In other words, the key is just the name of the connection as seen in the IDE. This works fine for connections defined in the current project. FINALLY(!) here's my real problem. What I am trying to do is use a predefined connection in a different gambas project. In other words, I want to get at the ".../otherproject/.connection/someconn.connection" file inside another gambas project. Why would anyone in their right mind want to do that? Well... I have a library that is used by "many" apps that manages database access. The library is database independent, i.e. it does not know the connection parameters that are to be used. The apps define the database. In other words, App1.gambas uses "this" database and App2.gambas uses "that" database. So I need the library to be able to use the connection files in the particular "AppX" project. (This is simplifying things a bit as when we get to executable stage, the connection is defined inside the executable archive. But I have solved that part of the problem by copying the file into the runtime /tmp directory.) I suppose the final answer is that I need to read the /tmp/.../xyz. connection file and create the connection using the direct method. What I was hoping for was a way to do something like: sConnFile = File.Path(Temp()) &/ "connmain.connection" $conn = Connections[sConnFile] In other words: Connections[path as String] but it looks like this is not possible. From taboege at ...626... Wed Aug 28 13:47:21 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 28 Aug 2013 13:47:21 +0200 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) Clarification In-Reply-To: <1377678752.16194.23.camel@...2688...> References: <1377473364.8638.61.camel@...2688...> <20130826103401.GC478@...2774...> <521D2E1F.2010808@...546...> <1377678752.16194.23.camel@...2688...> Message-ID: <20130828114720.GD497@...2774...> On Wed, 28 Aug 2013, Bruce wrote: > First off, thanks everyone for your answers - all are correct. > > My original question was purely about the syntax of the Connection > constructor, specifically about the optional DatabaseURL parameter. > > Clarification 1: According to the help there are three ways to > initialise a connection: > a) by directly setting the connection properties, (as Paul describes) > b) by using a predefined connection, (as Fabian describes) > c) by using the constructor DatabasURL parameter (as Tobi describes). > > Regarding the latter, the help is somewhat silent as to the syntax of > that parameter. Thanks to Tobi, I now see it to be: > > $TYPE://$USER@$HOST:$PORT/$DB > > Clarification 2: This syntax also provides a clue that this method can > only work where the underlying database is a server process e.g. mysql > or postgresql and I don't think it can work for sqlite. > It does work like $TYPE://$PATH because for sqlite, the Host part is a directory and the DB is a file relative to the directory. The parser takes the last part of the string (after the last /) as the DB name, the stuff before as Host. It seems like the $USER path is also optional... I just tested it: $hConn = New Connection("sqlite3:///home/tab/Kontakte.sqlite") > In fact, contrary to Tobi's experience, I still cannot get this to work > (for a postgresql database). Here I have a server machine "bluecow" > that has three postgresql server processes running on it (called say > "prod", "dev" and "test" each using a separate port). So, if I > understand Tobi's answer: > > $conn = New Connection("postgresql://bb at ...2711...:5432/horse") > > where the database name is "horse" and the dev server is using port > 5432, should create a valid connection, but I still get this "Malformed > URL" error??? I just installed postgresql and the following works. I followed the Arch Linux wiki article for setting it up (created the DB user 'root') and the following does indeed work (with the 'test' database created via Database example of Gambas): $hConn = New Connection("postgresql://root at ...40...:5432/test") I don't know what's wrong on your side, sorry... Regards, Tobi From taboege at ...626... Wed Aug 28 14:16:52 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 28 Aug 2013 14:16:52 +0200 Subject: [Gambas-user] SQLite3 VARYING CHARACTER(255) taken as Boolean? In-Reply-To: <52017A86.1010100@...1...> References: <20130805142234.GC3059@...2774...> <52017A86.1010100@...1...> Message-ID: <20130828121652.GE497@...2774...> On Wed, 07 Aug 2013, Beno?t Minisini wrote: > Le 05/08/2013 16:22, Tobias Boege a ?crit : > > Hi, > > > > we have a case at http://gambas-club.de where one uses an SQLite3 database > > with some fields being of type VARYING CHARACTER(255). These are all shown > > to be Booleans by Gambas code. Note that the TEXT type apparently is handled > > correctly. > > > > I have absolutely no idea of the Gambas DBMS drivers, therefore seek an > > explanation (or fix). > > > > Minimal project and the database attached. > > > > Regards, > > Tobi > > > > The Gambas <-> Database datatype mapping is detailed there: > > http://gambasdoc.org/help/doc/db-type-mapping?v3 > > But SQLite is special as the field datatype has no real meaning for it > (every field can store anything), it is just a string description. > (Actually it is not 100% true, look in the SQLite documentation). > > I will look at the Gambas sqlite drivers to see how they interpret > "VARYING CHARACTER(255)"... > I fixed this in #5813. Regards, Tobi From willy at ...2734... Wed Aug 28 22:18:52 2013 From: willy at ...2734... (Willy Raets) Date: Wed, 28 Aug 2013 22:18:52 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question Message-ID: <1377721132.2766.32.camel@...3024...> Hello all, I've been searching the Gambas mailing list archives and documentation for a answer to a problem I have. Tried all kinds of suggestions but haven't solved the problem yet. This is the situation simplified: A MySql database named MyData with a two tables named IC and Products. Both tables have a field ProductID with a relation inbetween. Table IC has fields ID -> Primary Key, Indexed ProductID -> Indexed Initial IC Actual IC ValueInitial ValueActual Table Product has fields: ProductID -> Primary Key, Indexed Description In a query I need to retrieve all fields in IC except ProductID and Description in Products I manage to get the query done except for the fields Initial IC and Actual IC (because of the blanc in the field name). As I understand in MySql I need to query: SELECT 'Actual IC' FROM IC to get Actual IC I have tried it like this in Gambas (rData being a Result and ConMyData being the connection) rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") But the syntax is not accepted by MySql To make the matter more complicated when querying more than one table you need to add the table to the query syntax like this SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC Or in Gambas: rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) This works perfect, but when I want to add field IC.Actual IC to that query in a db.Exec() what is the proper format? I tried with: IC.'Actual IC' 'IC'.'Actual IC' 'IC.Actual IC' They all give back syntax errors from MySql Any suggestions welcome -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Wed Aug 28 22:28:13 2013 From: taboege at ...626... (Tobias Boege) Date: Wed, 28 Aug 2013 22:28:13 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377721132.2766.32.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> Message-ID: <20130828202812.GG497@...2774...> On Wed, 28 Aug 2013, Willy Raets wrote: > Hello all, > > I've been searching the Gambas mailing list archives and documentation > for a answer to a problem I have. Tried all kinds of suggestions but > haven't solved the problem yet. > > This is the situation simplified: > > A MySql database named MyData with a two tables named IC and Products. > Both tables have a field ProductID with a relation inbetween. > > Table IC has fields > ID -> Primary Key, Indexed > ProductID -> Indexed > Initial IC > Actual IC > ValueInitial > ValueActual > > > Table Product has fields: > ProductID -> Primary Key, Indexed > Description > > In a query I need to retrieve all fields in IC except ProductID and > Description in Products > I manage to get the query done except for the fields Initial IC and > Actual IC (because of the blanc in the field name). > > As I understand in MySql I need to query: > SELECT 'Actual IC' FROM IC to get Actual IC > > I have tried it like this in Gambas (rData being a Result and ConMyData > being the connection) > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > But the syntax is not accepted by MySql > > > To make the matter more complicated when querying more than one table > you need to add the table to the query syntax like this > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > Or in Gambas: > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > This works perfect, but when I want to add field IC.Actual IC to that > query in a db.Exec() what is the proper format? > I tried with: > IC.'Actual IC' > 'IC'.'Actual IC' > 'IC.Actual IC' > They all give back syntax errors from MySql > > Any suggestions welcome > Out of pure intuition I would leave the single quotes out in the string you give to Exec(), i.e. write rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") The Connection class should do the proper quoting itself. Regards, Tobi From rmorgan62 at ...626... Wed Aug 28 23:08:29 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 28 Aug 2013 14:08:29 -0700 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <20130828202812.GG497@...2774...> References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> Message-ID: FYI It is standard practice to never use spaces in MySQL table and field names. Replace the spaces with underscores. Also, it's good to use only lower case field names (especially if you access the database remotely. So your fields should be: product_id initial_ic actual_ic etc.. Using mixed case, special characters, or white space in a dbms is very poor practice and always leads to trouble..... On Wed, Aug 28, 2013 at 1:28 PM, Tobias Boege wrote: > On Wed, 28 Aug 2013, Willy Raets wrote: > > Hello all, > > > > I've been searching the Gambas mailing list archives and documentation > > for a answer to a problem I have. Tried all kinds of suggestions but > > haven't solved the problem yet. > > > > This is the situation simplified: > > > > A MySql database named MyData with a two tables named IC and Products. > > Both tables have a field ProductID with a relation inbetween. > > > > Table IC has fields > > ID -> Primary Key, Indexed > > ProductID -> Indexed > > Initial IC > > Actual IC > > ValueInitial > > ValueActual > > > > > > Table Product has fields: > > ProductID -> Primary Key, Indexed > > Description > > > > In a query I need to retrieve all fields in IC except ProductID and > > Description in Products > > I manage to get the query done except for the fields Initial IC and > > Actual IC (because of the blanc in the field name). > > > > As I understand in MySql I need to query: > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > I have tried it like this in Gambas (rData being a Result and ConMyData > > being the connection) > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > But the syntax is not accepted by MySql > > > > > > To make the matter more complicated when querying more than one table > > you need to add the table to the query syntax like this > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > Or in Gambas: > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > > > This works perfect, but when I want to add field IC.Actual IC to that > > query in a db.Exec() what is the proper format? > > I tried with: > > IC.'Actual IC' > > 'IC'.'Actual IC' > > 'IC.Actual IC' > > They all give back syntax errors from MySql > > > > Any suggestions welcome > > > > Out of pure intuition I would leave the single quotes out in the string you > give to Exec(), i.e. write > > rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") > > The Connection class should do the proper quoting itself. > > Regards, > Tobi > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From Karl.Reinl at ...9... Wed Aug 28 23:16:47 2013 From: Karl.Reinl at ...9... (Charlie Reinl) Date: Wed, 28 Aug 2013 23:16:47 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377721132.2766.32.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> Message-ID: <88f880486922226f985cbe46d51967c5@...2896...> On Wed, 28 Aug 2013 22:18:52 +0200, Willy Raets wrote: > Hello all, > > I've been searching the Gambas mailing list archives and documentation > for a answer to a problem I have. Tried all kinds of suggestions but > haven't solved the problem yet. > > This is the situation simplified: > > A MySql database named MyData with a two tables named IC and Products. > Both tables have a field ProductID with a relation inbetween. > > Table IC has fields > ID -> Primary Key, Indexed > ProductID -> Indexed > Initial IC > Actual IC > ValueInitial > ValueActual > > > Table Product has fields: > ProductID -> Primary Key, Indexed > Description > > In a query I need to retrieve all fields in IC except ProductID and > Description in Products > I manage to get the query done except for the fields Initial IC and > Actual IC (because of the blanc in the field name). > > As I understand in MySql I need to query: > SELECT 'Actual IC' FROM IC to get Actual IC > > I have tried it like this in Gambas (rData being a Result and ConMyData > being the connection) > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > But the syntax is not accepted by MySql > > > To make the matter more complicated when querying more than one table > you need to add the table to the query syntax like this > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > Or in Gambas: > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > This works perfect, but when I want to add field IC.Actual IC to that > query in a db.Exec() what is the proper format? > I tried with: > IC.'Actual IC' > 'IC'.'Actual IC' > 'IC.Actual IC' > They all give back syntax errors from MySql > > Any suggestions welcome Salut Willy, not tested, but you can try [Actual IC] -- Amicalement Charlie From mx4eva at ...626... Wed Aug 28 23:23:47 2013 From: mx4eva at ...626... (mx4evaNZ .) Date: Thu, 29 Aug 2013 09:23:47 +1200 Subject: [Gambas-user] Gambas3 Sample file does not compile Message-ID: Hi The GamgasGears 3.0.0 sample file does not compile the following error is shown: gb.sdl error. Could not open: /../gb.sdl/DejavuSans.ttf Other files compile and run okay Running Linux Mint 15 (Olivia) 64 bit latest version Kim From willy at ...2734... Thu Aug 29 01:15:45 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 29 Aug 2013 01:15:45 +0200 Subject: [Gambas-user] Request for small addition Message-ID: <1377731745.3335.1.camel@...3024...> Hi all, Could a line for Icelandic be added to the Language.module: Location on SVN should be gambas/branches/trunk/app/src/gambas3/.src/Translation/Language.module This so there can be a .po file for Icelandic made and translations can be entered. I happen to have received Icelandic translations for one of my projects, but can't add Icelandic to Translator form in IDE. So it is hard to enter the translation... In Language.module add 1 line (see below): Name["hr"] = ("Croatian (Croatia)") Name["is"] = ("Icelandic (Iceland)") '<-- Add this line Name["id"] = ("Indonesian (Indonesia)") That should do the job for enabling Icelandic to be added as a language that can have translations. Source for determining two letter language code for Icelandic: http://wiki.laptop.org/go/Linux_language_support There are more languages found that aren't found in Gambas Translator form to be added. Is there a reason for this, or is it just coincedence? -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Thu Aug 29 01:25:03 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 29 Aug 2013 01:25:03 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <20130828202812.GG497@...2774...> References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> Message-ID: <1377732303.3335.3.camel@...3024...> On Wed, 2013-08-28 at 22:28 +0200, Tobias Boege wrote: > On Wed, 28 Aug 2013, Willy Raets wrote: > > Hello all, > > > > I've been searching the Gambas mailing list archives and documentation > > for a answer to a problem I have. Tried all kinds of suggestions but > > haven't solved the problem yet. > > > > This is the situation simplified: > > > > A MySql database named MyData with a two tables named IC and Products. > > Both tables have a field ProductID with a relation inbetween. > > > > Table IC has fields > > ID -> Primary Key, Indexed > > ProductID -> Indexed > > Initial IC > > Actual IC > > ValueInitial > > ValueActual > > > > > > Table Product has fields: > > ProductID -> Primary Key, Indexed > > Description > > > > In a query I need to retrieve all fields in IC except ProductID and > > Description in Products > > I manage to get the query done except for the fields Initial IC and > > Actual IC (because of the blanc in the field name). > > > > As I understand in MySql I need to query: > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > I have tried it like this in Gambas (rData being a Result and ConMyData > > being the connection) > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > But the syntax is not accepted by MySql > > > > > > To make the matter more complicated when querying more than one table > > you need to add the table to the query syntax like this > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > Or in Gambas: > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > > > This works perfect, but when I want to add field IC.Actual IC to that > > query in a db.Exec() what is the proper format? > > I tried with: > > IC.'Actual IC' > > 'IC'.'Actual IC' > > 'IC.Actual IC' > > They all give back syntax errors from MySql > > > > Any suggestions welcome > > > > Out of pure intuition I would leave the single quotes out in the string you > give to Exec(), i.e. write > > rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") > > The Connection class should do the proper quoting itself. Tobi, thanks for the reply, but this was what I tried as very first before adding the single quotes. It returns a "Cannot execute request Out of bounds" !! > > Regards, > Tobi -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Thu Aug 29 01:26:43 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 29 Aug 2013 01:26:43 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <88f880486922226f985cbe46d51967c5@...2896...> References: <1377721132.2766.32.camel@...3024...> <88f880486922226f985cbe46d51967c5@...2896...> Message-ID: <1377732403.3335.4.camel@...3024...> On Wed, 2013-08-28 at 23:16 +0200, Charlie Reinl wrote: > On Wed, 28 Aug 2013 22:18:52 +0200, Willy Raets > > wrote: > > Hello all, > > > > I've been searching the Gambas mailing list archives and documentation > > for a answer to a problem I have. Tried all kinds of suggestions but > > haven't solved the problem yet. > > > > This is the situation simplified: > > > > A MySql database named MyData with a two tables named IC and Products. > > Both tables have a field ProductID with a relation inbetween. > > > > Table IC has fields > > ID -> Primary Key, Indexed > > ProductID -> Indexed > > Initial IC > > Actual IC > > ValueInitial > > ValueActual > > > > > > Table Product has fields: > > ProductID -> Primary Key, Indexed > > Description > > > > In a query I need to retrieve all fields in IC except ProductID and > > Description in Products > > I manage to get the query done except for the fields Initial IC and > > Actual IC (because of the blanc in the field name). > > > > As I understand in MySql I need to query: > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > I have tried it like this in Gambas (rData being a Result and ConMyData > > being the connection) > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > But the syntax is not accepted by MySql > > > > > > To make the matter more complicated when querying more than one table > > you need to add the table to the query syntax like this > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > Or in Gambas: > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > > > This works perfect, but when I want to add field IC.Actual IC to that > > query in a db.Exec() what is the proper format? > > I tried with: > > IC.'Actual IC' > > 'IC'.'Actual IC' > > 'IC.Actual IC' > > They all give back syntax errors from MySql > > > > Any suggestions welcome > > Salut Willy, > > not tested, but you can try [Actual IC] Thanks for the reply. I had tried this one as well and it also returns a "Cannot execute request Out of bounds" !! -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From willy at ...2734... Thu Aug 29 01:46:31 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 29 Aug 2013 01:46:31 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> Message-ID: <1377733591.3335.23.camel@...3024...> On Wed, 2013-08-28 at 14:08 -0700, Randall Morgan wrote: > FYI > > > It is standard practice to never use spaces in MySQL table and field > names. Replace the spaces with underscores. Also, it's good to use > only lower case field names (especially if you access the database > remotely. So your fields should be: > > > product_id > initial_ic > actual_ic > etc.. > > > Using mixed case, special characters, or white space in a dbms is very > poor practice and always leads to trouble..... Hi Randall, I understand this, but it is an existing database that holds 10 years of data and has 50+ tables and 6 custom client apps connected to it, all on a Windows platform. Changing field names could break a lot! Client apps are Access .mde with link to the tables in a central Access .mde that holds only tables. All still runs and preforms well it's getting time to move to a more serious DBMS. Client .mde's hold forms, VB code and a whole lot of queries. > I'm trying to migrate the centtral .mde to MySql on a Linux server and in such a manner that the existing client apps can continue working without to much of a change at their side. So in the client I would only need to make a ODBS connection and link the tables to MySql and that should be it (in theory). >From there I wanted to slowly start porting the Access clients one by one to Gambas written clients. So I migrated a few tables and am doing my testing now and run into trouble with the field names containing spaces when doing a SELECT. Changing the field names would mean checking ALL queries and ALL VB code and would be almost like redoing the 6 clients. If that can be avoided, I will avoid it. Anyway thanks for the good advises. They will be practised in any new tables that will get set up. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From bbruen at ...2308... Thu Aug 29 01:47:54 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 29 Aug 2013 09:17:54 +0930 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377732303.3335.3.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> <1377732303.3335.3.camel@...3024...> Message-ID: <1377733674.16194.25.camel@...2688...> On Thu, 2013-08-29 at 01:25 +0200, Willy Raets wrote: > On Wed, 2013-08-28 at 22:28 +0200, Tobias Boege wrote: > > On Wed, 28 Aug 2013, Willy Raets wrote: > > > Hello all, > > > > > > I've been searching the Gambas mailing list archives and documentation > > > for a answer to a problem I have. Tried all kinds of suggestions but > > > haven't solved the problem yet. > > > > > > This is the situation simplified: > > > > > > A MySql database named MyData with a two tables named IC and Products. > > > Both tables have a field ProductID with a relation inbetween. > > > > > > Table IC has fields > > > ID -> Primary Key, Indexed > > > ProductID -> Indexed > > > Initial IC > > > Actual IC > > > ValueInitial > > > ValueActual > > > > > > > > > Table Product has fields: > > > ProductID -> Primary Key, Indexed > > > Description > > > > > > In a query I need to retrieve all fields in IC except ProductID and > > > Description in Products > > > I manage to get the query done except for the fields Initial IC and > > > Actual IC (because of the blanc in the field name). > > > > > > As I understand in MySql I need to query: > > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > > > I have tried it like this in Gambas (rData being a Result and ConMyData > > > being the connection) > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > > > But the syntax is not accepted by MySql > > > > > > > > > To make the matter more complicated when querying more than one table > > > you need to add the table to the query syntax like this > > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > > > Or in Gambas: > > > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > > > > > This works perfect, but when I want to add field IC.Actual IC to that > > > query in a db.Exec() what is the proper format? > > > I tried with: > > > IC.'Actual IC' > > > 'IC'.'Actual IC' > > > 'IC.Actual IC' > > > They all give back syntax errors from MySql > > > > > > Any suggestions welcome > > > > > > > Out of pure intuition I would leave the single quotes out in the string you > > give to Exec(), i.e. write > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") > > > > The Connection class should do the proper quoting itself. > > Tobi, thanks for the reply, but this was what I tried as very first > before adding the single quotes. > > It returns a "Cannot execute request Out of bounds" !! > > > > > Regards, > > Tobi > Another untested suggestion: rData = ConMyData.Exec("SELECT &1 FROM IC", DB.Quote("Actueel IC")) hth Bruce From willy at ...2734... Thu Aug 29 01:56:23 2013 From: willy at ...2734... (Willy Raets) Date: Thu, 29 Aug 2013 01:56:23 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377733674.16194.25.camel@...2688...> References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> <1377732303.3335.3.camel@...3024...> <1377733674.16194.25.camel@...2688...> Message-ID: <1377734183.3335.25.camel@...3024...> On Thu, 2013-08-29 at 09:17 +0930, Bruce wrote: > On Thu, 2013-08-29 at 01:25 +0200, Willy Raets wrote: > > On Wed, 2013-08-28 at 22:28 +0200, Tobias Boege wrote: > > > On Wed, 28 Aug 2013, Willy Raets wrote: > > > > Hello all, > > > > > > > > I've been searching the Gambas mailing list archives and documentation > > > > for a answer to a problem I have. Tried all kinds of suggestions but > > > > haven't solved the problem yet. > > > > > > > > This is the situation simplified: > > > > > > > > A MySql database named MyData with a two tables named IC and Products. > > > > Both tables have a field ProductID with a relation inbetween. > > > > > > > > Table IC has fields > > > > ID -> Primary Key, Indexed > > > > ProductID -> Indexed > > > > Initial IC > > > > Actual IC > > > > ValueInitial > > > > ValueActual > > > > > > > > > > > > Table Product has fields: > > > > ProductID -> Primary Key, Indexed > > > > Description > > > > > > > > In a query I need to retrieve all fields in IC except ProductID and > > > > Description in Products > > > > I manage to get the query done except for the fields Initial IC and > > > > Actual IC (because of the blanc in the field name). > > > > > > > > As I understand in MySql I need to query: > > > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > > > > > I have tried it like this in Gambas (rData being a Result and ConMyData > > > > being the connection) > > > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > > > > > But the syntax is not accepted by MySql > > > > > > > > > > > > To make the matter more complicated when querying more than one table > > > > you need to add the table to the query syntax like this > > > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > > > > > Or in Gambas: > > > > > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > > > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > > > > > > > This works perfect, but when I want to add field IC.Actual IC to that > > > > query in a db.Exec() what is the proper format? > > > > I tried with: > > > > IC.'Actual IC' > > > > 'IC'.'Actual IC' > > > > 'IC.Actual IC' > > > > They all give back syntax errors from MySql > > > > > > > > Any suggestions welcome > > > > > > > > > > Out of pure intuition I would leave the single quotes out in the string you > > > give to Exec(), i.e. write > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") > > > > > > The Connection class should do the proper quoting itself. > > > > Tobi, thanks for the reply, but this was what I tried as very first > > before adding the single quotes. > > > > It returns a "Cannot execute request Out of bounds" !! > > > > > > > > Regards, > > > Tobi > > > > Another untested suggestion: > > rData = ConMyData.Exec("SELECT &1 FROM IC", DB.Quote("Actueel IC")) > > hth > Bruce Hi Bruce, It returns a "Cannot execute request Out of bounds" as well :( But thank for thinking along. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From rmorgan62 at ...626... Thu Aug 29 02:28:56 2013 From: rmorgan62 at ...626... (Randall Morgan) Date: Wed, 28 Aug 2013 17:28:56 -0700 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377734183.3335.25.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> <1377732303.3335.3.camel@...3024...> <1377733674.16194.25.camel@...2688...> <1377734183.3335.25.camel@...3024...> Message-ID: Can you give us a dump of the table structure of all tables involved in the query, perhaps from something like phpmyadmin or a similar tool? On Wed, Aug 28, 2013 at 4:56 PM, Willy Raets wrote: > On Thu, 2013-08-29 at 09:17 +0930, Bruce wrote: > > On Thu, 2013-08-29 at 01:25 +0200, Willy Raets wrote: > > > On Wed, 2013-08-28 at 22:28 +0200, Tobias Boege wrote: > > > > On Wed, 28 Aug 2013, Willy Raets wrote: > > > > > Hello all, > > > > > > > > > > I've been searching the Gambas mailing list archives and > documentation > > > > > for a answer to a problem I have. Tried all kinds of suggestions > but > > > > > haven't solved the problem yet. > > > > > > > > > > This is the situation simplified: > > > > > > > > > > A MySql database named MyData with a two tables named IC and > Products. > > > > > Both tables have a field ProductID with a relation inbetween. > > > > > > > > > > Table IC has fields > > > > > ID -> Primary Key, Indexed > > > > > ProductID -> Indexed > > > > > Initial IC > > > > > Actual IC > > > > > ValueInitial > > > > > ValueActual > > > > > > > > > > > > > > > Table Product has fields: > > > > > ProductID -> Primary Key, Indexed > > > > > Description > > > > > > > > > > In a query I need to retrieve all fields in IC except ProductID and > > > > > Description in Products > > > > > I manage to get the query done except for the fields Initial IC and > > > > > Actual IC (because of the blanc in the field name). > > > > > > > > > > As I understand in MySql I need to query: > > > > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > > > > > > > I have tried it like this in Gambas (rData being a Result and > ConMyData > > > > > being the connection) > > > > > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > > > > > > > But the syntax is not accepted by MySql > > > > > > > > > > > > > > > To make the matter more complicated when querying more than one > table > > > > > you need to add the table to the query syntax like this > > > > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > > > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > > > > > > > Or in Gambas: > > > > > > > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC > LEFT > > > > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.IDDESC) > > > > > > > > > > This works perfect, but when I want to add field IC.Actual IC to > that > > > > > query in a db.Exec() what is the proper format? > > > > > I tried with: > > > > > IC.'Actual IC' > > > > > 'IC'.'Actual IC' > > > > > 'IC.Actual IC' > > > > > They all give back syntax errors from MySql > > > > > > > > > > Any suggestions welcome > > > > > > > > > > > > > Out of pure intuition I would leave the single quotes out in the > string you > > > > give to Exec(), i.e. write > > > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") > > > > > > > > The Connection class should do the proper quoting itself. > > > > > > Tobi, thanks for the reply, but this was what I tried as very first > > > before adding the single quotes. > > > > > > It returns a "Cannot execute request Out of bounds" !! > > > > > > > > > > > Regards, > > > > Tobi > > > > > > > Another untested suggestion: > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", DB.Quote("Actueel IC")) > > > > hth > > Bruce > > Hi Bruce, > > It returns a "Cannot execute request Out of bounds" as well :( > > But thank for thinking along. > > -- > Kind regards, > > Willy (aka gbWilly) > > http://gambasshowcase.org/ > http://howtogambas.org > http://gambos.org > > > > > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- If you ask me if it can be done. The answer is YES, it can always be done. The correct questions however are... What will it cost, and how long will it take? From bbruen at ...2308... Thu Aug 29 04:09:39 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 29 Aug 2013 11:39:39 +0930 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377734183.3335.25.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> <1377732303.3335.3.camel@...3024...> <1377733674.16194.25.camel@...2688...> <1377734183.3335.25.camel@...3024...> Message-ID: <1377742179.16194.34.camel@...2688...> On Thu, 2013-08-29 at 01:56 +0200, Willy Raets wrote: > On Thu, 2013-08-29 at 09:17 +0930, Bruce wrote: > > On Thu, 2013-08-29 at 01:25 +0200, Willy Raets wrote: > > > On Wed, 2013-08-28 at 22:28 +0200, Tobias Boege wrote: > > > > On Wed, 28 Aug 2013, Willy Raets wrote: > > > > > Hello all, > > > > > > > > > > I've been searching the Gambas mailing list archives and documentation > > > > > for a answer to a problem I have. Tried all kinds of suggestions but > > > > > haven't solved the problem yet. > > > > > > > > > > This is the situation simplified: > > > > > > > > > > A MySql database named MyData with a two tables named IC and Products. > > > > > Both tables have a field ProductID with a relation inbetween. > > > > > > > > > > Table IC has fields > > > > > ID -> Primary Key, Indexed > > > > > ProductID -> Indexed > > > > > Initial IC > > > > > Actual IC > > > > > ValueInitial > > > > > ValueActual > > > > > > > > > > > > > > > Table Product has fields: > > > > > ProductID -> Primary Key, Indexed > > > > > Description > > > > > > > > > > In a query I need to retrieve all fields in IC except ProductID and > > > > > Description in Products > > > > > I manage to get the query done except for the fields Initial IC and > > > > > Actual IC (because of the blanc in the field name). > > > > > > > > > > As I understand in MySql I need to query: > > > > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > > > > > > > I have tried it like this in Gambas (rData being a Result and ConMyData > > > > > being the connection) > > > > > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > > > > > > > But the syntax is not accepted by MySql > > > > > > > > > > > > > > > To make the matter more complicated when querying more than one table > > > > > you need to add the table to the query syntax like this > > > > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > > > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > > > > > > > Or in Gambas: > > > > > > > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > > > > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > > > > > > > > > This works perfect, but when I want to add field IC.Actual IC to that > > > > > query in a db.Exec() what is the proper format? > > > > > I tried with: > > > > > IC.'Actual IC' > > > > > 'IC'.'Actual IC' > > > > > 'IC.Actual IC' > > > > > They all give back syntax errors from MySql > > > > > > > > > > Any suggestions welcome > > > > > > > > > > > > > Out of pure intuition I would leave the single quotes out in the string you > > > > give to Exec(), i.e. write > > > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") > > > > > > > > The Connection class should do the proper quoting itself. > > > > > > Tobi, thanks for the reply, but this was what I tried as very first > > > before adding the single quotes. > > > > > > It returns a "Cannot execute request Out of bounds" !! > > > > > > > > > > > Regards, > > > > Tobi > > > > > > > Another untested suggestion: > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", DB.Quote("Actueel IC")) > > > > hth > > Bruce > > Hi Bruce, > > It returns a "Cannot execute request Out of bounds" as well :( > > But thank for thinking along. > \ OK Willy, I have some info. 1) The identifer quote char for mysql is ` i.e. a "back tick". 2) What happens with something like the following: Dim Conn As New Connection Dim hRlt As Result With Conn .Type = "mysql" .Host = "localhost" .Name = "test" .User = "root" End With If Not Conn.Opened Then Conn.Open Print Conn.Quote("Spaced Name") Print Conn.Subst("WHERE &1=&2", Conn.Quote("Spaced Name"), "Some data") Print hRlt = Conn.Find("testdata", "`Spaced Name` Like \"test%\"") For Each hRlt Print hRlt!id, hRlt!name, hRlt!"Spaced Name" Next Print here, Print Conn.Quote("Spaced Name") gives `Spaced Name` BUT Print Conn.Subst("WHERE &1=&2", Conn.Quote("Spaced Name"), "Some data") gives WHERE '`Spaced Name`'='Some data' Note the name is enclosed in ' chars. Also, the query hRlt = Conn.Find("testdata", "`Spaced Name` Like \"test% \"") runs properly and returns the data for all columns including `Spaced Name`. But note the way the field has to be used in the Print statement! I believe Connection.Find and Connection.Exec use the Subst internal code. So, it is incorrectly wrapping the column name in those extra 's. hth Bruce From bbruen at ...2308... Thu Aug 29 08:17:27 2013 From: bbruen at ...2308... (Bruce) Date: Thu, 29 Aug 2013 15:47:27 +0930 Subject: [Gambas-user] hConnection = New Connection ( [ DatabaseURL As String ] ) Clarification In-Reply-To: <20130828114720.GD497@...2774...> References: <1377473364.8638.61.camel@...2688...> <20130826103401.GC478@...2774...> <521D2E1F.2010808@...546...> <1377678752.16194.23.camel@...2688...> <20130828114720.GD497@...2774...> Message-ID: <1377757047.16194.38.camel@...2688...> On Wed, 2013-08-28 at 13:47 +0200, Tobias Boege wrote: > On Wed, 28 Aug 2013, Bruce wrote: > > First off, thanks everyone for your answers - all are correct. > > > > My original question was purely about the syntax of the Connection > > constructor, specifically about the optional DatabaseURL parameter. > > > > Clarification 1: According to the help there are three ways to > > initialise a connection: > > a) by directly setting the connection properties, (as Paul describes) > > b) by using a predefined connection, (as Fabian describes) > > c) by using the constructor DatabasURL parameter (as Tobi describes). > > > > Regarding the latter, the help is somewhat silent as to the syntax of > > that parameter. Thanks to Tobi, I now see it to be: > > > > $TYPE://$USER@$HOST:$PORT/$DB > > > > Clarification 2: This syntax also provides a clue that this method can > > only work where the underlying database is a server process e.g. mysql > > or postgresql and I don't think it can work for sqlite. > > > > It does work like $TYPE://$PATH because for sqlite, the Host part is a > directory and the DB is a file relative to the directory. The parser takes > the last part of the string (after the last /) as the DB name, the stuff > before as Host. It seems like the $USER path is also optional... I just > tested it: > > $hConn = New Connection("sqlite3:///home/tab/Kontakte.sqlite") > > > In fact, contrary to Tobi's experience, I still cannot get this to work > > (for a postgresql database). Here I have a server machine "bluecow" > > that has three postgresql server processes running on it (called say > > "prod", "dev" and "test" each using a separate port). So, if I > > understand Tobi's answer: > > > > $conn = New Connection("postgresql://bb at ...2711...:5432/horse") > > > > where the database name is "horse" and the dev server is using port > > 5432, should create a valid connection, but I still get this "Malformed > > URL" error??? > > I just installed postgresql and the following works. I followed the Arch > Linux wiki article for setting it up (created the DB user 'root') and the > following does indeed work (with the 'test' database created via Database > example of Gambas): > > $hConn = New Connection("postgresql://root at ...40...:5432/test") > > I don't know what's wrong on your side, sorry... > > Regards, > Tobi Well, I finally grasped at the last possible straw and made a complete new copy of the gb source repository, compiled and installed it and now it works just like it should. ???? The thing that is r e a l l y weird is that all the sources are exactly the same. Something strange with the make is all I can guess. thanks for the info anyway (and also for the help update!) Bruce From shordi at ...626... Thu Aug 29 09:14:31 2013 From: shordi at ...626... (=?ISO-8859-1?Q?Jorge_Carri=F3n?=) Date: Thu, 29 Aug 2013 09:14:31 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377721132.2766.32.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> Message-ID: Hi willy. ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") is right... jus remove the white space between & and 1. Regards. 2013/8/28 Willy Raets > Hello all, > > I've been searching the Gambas mailing list archives and documentation > for a answer to a problem I have. Tried all kinds of suggestions but > haven't solved the problem yet. > > This is the situation simplified: > > A MySql database named MyData with a two tables named IC and Products. > Both tables have a field ProductID with a relation inbetween. > > Table IC has fields > ID -> Primary Key, Indexed > ProductID -> Indexed > Initial IC > Actual IC > ValueInitial > ValueActual > > > Table Product has fields: > ProductID -> Primary Key, Indexed > Description > > In a query I need to retrieve all fields in IC except ProductID and > Description in Products > I manage to get the query done except for the fields Initial IC and > Actual IC (because of the blanc in the field name). > > As I understand in MySql I need to query: > SELECT 'Actual IC' FROM IC to get Actual IC > > I have tried it like this in Gambas (rData being a Result and ConMyData > being the connection) > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > But the syntax is not accepted by MySql > > > To make the matter more complicated when querying more than one table > you need to add the table to the query syntax like this > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > Or in Gambas: > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > This works perfect, but when I want to add field IC.Actual IC to that > query in a db.Exec() what is the proper format? > I tried with: > IC.'Actual IC' > 'IC'.'Actual IC' > 'IC.Actual IC' > They all give back syntax errors from MySql > > Any suggestions welcome > > -- > Kind regards, > > Willy (aka gbWilly) > > http://gambasshowcase.org/ > http://howtogambas.org > http://gambos.org > > > > > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From nando_f at ...951... Thu Aug 29 09:52:20 2013 From: nando_f at ...951... (nando) Date: Thu, 29 Aug 2013 03:52:20 -0400 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377721132.2766.32.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> Message-ID: <20130829074358.M33293@...951...> I see spaces in the field 'Initial IC' and 'Actual IC'. If you're using a space in the field name - DONT!!! Use _ underscore instead. Don't use a spaces in any names. You complicate life with them and make you want to pull your hair out. This should work myString = "SELECT IC.ID, Product.Description " myString.= "FROM IC, Product " myString.= "WHERE IC.ProductID = Product.ProductID " myString.= "ORDER BY IC.ID DESC" rData = ConMyData.Exec(myString) This is not correct: rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") Should be: rData = ConMyData.Exec("SELECT `Actual IC` FROM IC") Again, PLEASE don't use spaces embedded in the field. ---------- Original Message ----------- From: Willy Raets To: mailing list for gambas users Sent: Wed, 28 Aug 2013 22:18:52 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question > Hello all, > > I've been searching the Gambas mailing list archives and documentation > for a answer to a problem I have. Tried all kinds of suggestions but > haven't solved the problem yet. > > This is the situation simplified: > > A MySql database named MyData with a two tables named IC and Products. > Both tables have a field ProductID with a relation inbetween. > > Table IC has fields > ID -> Primary Key, Indexed > ProductID -> Indexed > Initial IC > Actual IC > ValueInitial > ValueActual > > Table Product has fields: > ProductID -> Primary Key, Indexed > Description > > In a query I need to retrieve all fields in IC except ProductID and > Description in Products > I manage to get the query done except for the fields Initial IC and > Actual IC (because of the blanc in the field name). > > As I understand in MySql I need to query: > SELECT 'Actual IC' FROM IC to get Actual IC > > I have tried it like this in Gambas (rData being a Result and ConMyData > being the connection) > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > But the syntax is not accepted by MySql > > To make the matter more complicated when querying more than one table > you need to add the table to the query syntax like this > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > Or in Gambas: > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > This works perfect, but when I want to add field IC.Actual IC to that > query in a db.Exec() what is the proper format? > I tried with: > IC.'Actual IC' > 'IC'.'Actual IC' > 'IC.Actual IC' > They all give back syntax errors from MySql > > Any suggestions welcome > > -- > Kind regards, > > Willy (aka gbWilly) > > http://gambasshowcase.org/ > http://howtogambas.org > http://gambos.org > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From gambas at ...1... Thu Aug 29 19:29:28 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 19:29:28 +0200 Subject: [Gambas-user] Why font coordinates lower-left? In-Reply-To: <52130AA9.7080400@...221...> References: <52130AA9.7080400@...221...> Message-ID: <521F84F8.7000400@...1...> Le 20/08/2013 08:20, Rolf-Werner Eilert a ?crit : > Hi folks, hi Benoit, > > just a question about drawing and printing... While other graphic > elements start at upper-left corner, fonts start at lower-left. This is > true for qt4 drawing as well as for Cairo drawing as far as I could see. > > This is confusing when you are not aware, for the page starts at > upper-left with 0,0 too. So when you print a text at 0,0 you will see > nothing, the text is above the border. > > And you have to take the font height into account whenever positioning text. > > In Gambas2, font positioning still started at upper-left, so when > re-writing old code, I always have to tackle with this problem. > > But maybe I just haven't understood the deeper sense behind this? :-) > > Thanks for your insight > > Rolf > Unless you specify the rectangle and the alignment arguments, text drawing routines normally draws the text at font baseline. -- Beno?t Minisini From Gambas at ...1950... Thu Aug 29 19:33:18 2013 From: Gambas at ...1950... (Caveat) Date: Thu, 29 Aug 2013 19:33:18 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <20130829074358.M33293@...951...> References: <1377721132.2766.32.camel@...3024...> <20130829074358.M33293@...951...> Message-ID: <521F85DE.1070607@...1950...> You just need to use backticks... Try myDB.Open If Error Then Message("Cannot Open database:" & Error.Text) Return False End If myDB.Exec("delete from test_table") myDB.Exec("insert into test_table (`Actual ID`) values('My actual ID')") res = myDB.Exec("select `Actual ID` from test_table") For Each resF In res.Fields Print resF.Name Next res.MoveFirst While res.Available Print res["Actual ID"] res.MoveNext Wend Return True End prints: Actual ID My actual ID Alternatively, to be sure you get the backtick and not the single quote: myDB.Exec("delete from test_table") myDB.Exec("insert into test_table (" & Chr(96) & "Actual ID" & Chr(96) & ") values('My actual ID')") res = myDB.Exec("select " & Chr(96) & "Actual ID" & Chr(96) & " from test_table") Kind regards, Caveat On 29/08/13 09:52, nando wrote: > I see spaces in the field 'Initial IC' and 'Actual IC'. > If you're using a space in the field name - DONT!!! > Use _ underscore instead. > Don't use a spaces in any names. > You complicate life with them and make you want to pull your hair out. > > This should work > > myString = "SELECT IC.ID, Product.Description " > myString.= "FROM IC, Product " > myString.= "WHERE IC.ProductID = Product.ProductID " > myString.= "ORDER BY IC.ID DESC" > rData = ConMyData.Exec(myString) > > > This is not correct: > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > Should be: > rData = ConMyData.Exec("SELECT `Actual IC` FROM IC") > > Again, PLEASE don't use spaces embedded in the field. > > > > ---------- Original Message ----------- > From: Willy Raets > To: mailing list for gambas users > Sent: Wed, 28 Aug 2013 22:18:52 +0200 > Subject: [Gambas-user] SQL query for DB.Exec() question > >> Hello all, >> >> I've been searching the Gambas mailing list archives and documentation >> for a answer to a problem I have. Tried all kinds of suggestions but >> haven't solved the problem yet. >> >> This is the situation simplified: >> >> A MySql database named MyData with a two tables named IC and Products. >> Both tables have a field ProductID with a relation inbetween. >> >> Table IC has fields >> ID -> Primary Key, Indexed >> ProductID -> Indexed >> Initial IC >> Actual IC >> ValueInitial >> ValueActual >> >> Table Product has fields: >> ProductID -> Primary Key, Indexed >> Description >> >> In a query I need to retrieve all fields in IC except ProductID and >> Description in Products >> I manage to get the query done except for the fields Initial IC and >> Actual IC (because of the blanc in the field name). >> >> As I understand in MySql I need to query: >> SELECT 'Actual IC' FROM IC to get Actual IC >> >> I have tried it like this in Gambas (rData being a Result and ConMyData >> being the connection) >> >> rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") >> >> But the syntax is not accepted by MySql >> >> To make the matter more complicated when querying more than one table >> you need to add the table to the query syntax like this >> SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON >> IC.ProductID=Product.ProductID ORDER BY IC.ID DESC >> >> Or in Gambas: >> >> rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT >> JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) >> >> This works perfect, but when I want to add field IC.Actual IC to that >> query in a db.Exec() what is the proper format? >> I tried with: >> IC.'Actual IC' >> 'IC'.'Actual IC' >> 'IC.Actual IC' >> They all give back syntax errors from MySql >> >> Any suggestions welcome >> >> -- >> Kind regards, >> >> Willy (aka gbWilly) >> >> http://gambasshowcase.org/ >> http://howtogambas.org >> http://gambos.org >> >> ------------------------------------------------------------------------------ >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! >> Discover the easy way to master current and previous Microsoft technologies >> and advance your career. Get an incredible 1,500+ hours of step-by-step >> tutorial videos with LearnDevNow. Subscribe today and save! >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------- End of Original Message ------- > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > . > From Gambas at ...1950... Thu Aug 29 19:51:03 2013 From: Gambas at ...1950... (Caveat) Date: Thu, 29 Aug 2013 19:51:03 +0200 Subject: [Gambas-user] accessing mdb files In-Reply-To: <20130827083217.68290C1057AAB@...3176...> References: <521BAB14.6030204@...3175...> <1377549287.2656.7.camel@...3024...> <20130827083217.68290C1057AAB@...3176...> Message-ID: <521F8A07.4000008@...1950...> It's perhaps a little off-topic as this is a Gambas mailing list, but I have written a .mdb to mysql|postgresql|hsqldb|mssqlserver converter in java. I tried using mdbtools but never got very satisfactory results, so I wrote my own conversion software. The converter works on Northwind (the sample .mdb from MS), including the binary pictures and on our own database we use for stock control at work (150,000 records or so, takes about 5 mins...). There is support for complete conversion of the schema (create all tables, columns with null/not null, create primary keys, indexes, foreign key relations, ...) and of course, the all-important data! I'm looking to test against a few more databases, so if this is an interesting route to follow, don't hesitate to contact me directly. I also support a kind of basic "interactive mode" through a socket where you can retrieve rows, do simple selects, examine columns etc. The conversion is done using only commands which are also available as interactive commands... Kind regards, Caveat On 27/08/13 10:32, Fernando wrote: > On Aug 26, 2013 21:34 "Willy Raets" wrote: > >> I made a small example project that makes a connection to a .mdb >> >> This is how it is possible (I only tested the connection, not reading >> in >> tables or changing any records): >> >> > perhaps you missed my initial email, that's what I did based on an older > email on this list. The problem is, apparently, not the connection but > the retrieving of data. > > Regards, > Fernando > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Aug 29 19:55:14 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 19:55:14 +0200 Subject: [Gambas-user] Inline help for structs? In-Reply-To: <1377465637.8638.57.camel@...2688...> References: <1377465637.8638.57.camel@...2688...> Message-ID: <521F8B02.2080603@...1...> Le 25/08/2013 23:20, Bruce a ?crit : > (Just a quicky to confirm that I'm not doing something wrong.) > > Structs appear in the IDE help but it does not appear possible to > include inline help comments for them in the code. > Is this true? > > tia > Bruce > I'm afraid... Something to do! -- Beno?t Minisini From gambas at ...1... Thu Aug 29 20:43:57 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 20:43:57 +0200 Subject: [Gambas-user] Gambas3 Sample file does not compile In-Reply-To: References: Message-ID: <521F966D.6050103@...1...> Le 28/08/2013 23:23, mx4evaNZ . a ?crit : > Hi > The GamgasGears 3.0.0 sample file does not compile > the following error is shown: gb.sdl error. > Could not open: /../gb.sdl/DejavuSans.ttf > > Other files compile and run okay > > Running Linux Mint 15 (Olivia) 64 bit latest version > > Kim This must be a packaging problem. How did you install Gambas? -- Beno?t Minisini From gambas at ...1... Thu Aug 29 20:57:59 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 20:57:59 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377721132.2766.32.camel@...3024...> References: <1377721132.2766.32.camel@...3024...> Message-ID: <521F99B7.8040601@...1...> Le 28/08/2013 22:18, Willy Raets a ?crit : > Hello all, > > I've been searching the Gambas mailing list archives and documentation > for a answer to a problem I have. Tried all kinds of suggestions but > haven't solved the problem yet. > > ... > > I have tried it like this in Gambas (rData being a Result and ConMyData > being the connection) > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > The substitution syntax of Exec(), Find(), Edit()... substitutes *values*, not fields. Write that: rData = ConMyData.Exec(Subst("SELECT &1 FROM IC", ConMyData.Quote("Actueel IC"))) Regards, -- Beno?t Minisini From gambas at ...1... Thu Aug 29 21:03:34 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 21:03:34 +0200 Subject: [Gambas-user] Request for small addition In-Reply-To: <1377731745.3335.1.camel@...3024...> References: <1377731745.3335.1.camel@...3024...> Message-ID: <521F9B06.5090905@...1...> Le 29/08/2013 01:15, Willy Raets a ?crit : > Hi all, > > Could a line for Icelandic be added to the Language.module: > Location on SVN should be > gambas/branches/trunk/app/src/gambas3/.src/Translation/Language.module > > This so there can be a .po file for Icelandic made and translations can > be entered. > I happen to have received Icelandic translations for one of my projects, > but can't add Icelandic to Translator form in IDE. > So it is hard to enter the translation... > > In Language.module add 1 line (see below): > > Name["hr"] = ("Croatian (Croatia)") > > Name["is"] = ("Icelandic (Iceland)") '<-- Add this line > > Name["id"] = ("Indonesian (Indonesia)") Done in revision #5815. > ... > There are more languages found that aren't found in Gambas Translator > form to be added. > Is there a reason for this, or is it just coincedence? > What are you talking about? -- Beno?t Minisini From gambas at ...1... Thu Aug 29 21:15:28 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 21:15:28 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <20130826133026.GF478@...2774...> References: <20130821130824.GE1021@...2774...> <20130826133026.GF478@...2774...> Message-ID: <521F9DD0.4080303@...1...> Le 26/08/2013 15:30, Tobias Boege a ?crit : > On Wed, 21 Aug 2013, Tobias Boege wrote: >> Hi folks, >> >> is anyone else having trouble with the latest revision(s)? I observed two >> things: >> >> 1) Stream buffering broken. If I have a Process (it may equivalently well >> be only a Process problem (not a general Stream one) as it is the Process >> code which was touched recently), I get one line from it and nothing more >> until the program terminates (or the Process object is released). >> >> The IDE has the same problem with my programs: If I use Print/Debug/Error >> in the code, the IDE doesn't see them until the program is closed. >> >> 2) IDE property panel unusable. I can't set values anymore. The errors say >> "Incorrect property value." for everything. I can't set a Boolean to True >> anymore, to give an example. >> >> I did a complete >> >> $ make clean && ./reconf-all && ./configure && make -j5 && sudo make install >> >> and the problems remain! >> >> I'd like to know if anyone can reproduce these problems or if something over >> here is _seriously_ broken. >> >> Oh, and I should note that I have also installed an alternate version of >> Gambas in my local $HOME/bin which I can run and it doesn't show the above >> both symptoms. My broken version in use is #5812 and the working alternate >> version is #5801. >> > > FYI, I downgraded to #5802 and the problems are gone. So I guess I'll have > to wait for Benoit as it's likely not my system which gets things wrong but > Gambas. > > Regards, > Tobi > Is it better with revision #5816? -- Beno?t Minisini From taboege at ...626... Thu Aug 29 21:34:44 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 29 Aug 2013 21:34:44 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <521F9DD0.4080303@...1...> References: <20130821130824.GE1021@...2774...> <20130826133026.GF478@...2774...> <521F9DD0.4080303@...1...> Message-ID: <20130829193444.GF686@...2774...> On Thu, 29 Aug 2013, Beno?t Minisini wrote: > Le 26/08/2013 15:30, Tobias Boege a ?crit : > > On Wed, 21 Aug 2013, Tobias Boege wrote: > >> Hi folks, > >> > >> is anyone else having trouble with the latest revision(s)? I observed two > >> things: > >> > >> 1) Stream buffering broken. If I have a Process (it may equivalently well > >> be only a Process problem (not a general Stream one) as it is the Process > >> code which was touched recently), I get one line from it and nothing more > >> until the program terminates (or the Process object is released). > >> > >> The IDE has the same problem with my programs: If I use Print/Debug/Error > >> in the code, the IDE doesn't see them until the program is closed. > >> > >> 2) IDE property panel unusable. I can't set values anymore. The errors say > >> "Incorrect property value." for everything. I can't set a Boolean to True > >> anymore, to give an example. > >> > >> I did a complete > >> > >> $ make clean && ./reconf-all && ./configure && make -j5 && sudo make install > >> > >> and the problems remain! > >> > >> I'd like to know if anyone can reproduce these problems or if something over > >> here is _seriously_ broken. > >> > >> Oh, and I should note that I have also installed an alternate version of > >> Gambas in my local $HOME/bin which I can run and it doesn't show the above > >> both symptoms. My broken version in use is #5812 and the working alternate > >> version is #5801. > >> > > > > FYI, I downgraded to #5802 and the problems are gone. So I guess I'll have > > to wait for Benoit as it's likely not my system which gets things wrong but > > Gambas. > > > > Regards, > > Tobi > > > > Is it better with revision #5816? > It's not. I spent the afternoon searching for a solution myself. I should note that I use Line Input in a Read event of a file or a process (in my test project). The symptom is that the Read event does not raise anymore. Before #5816, both didn't work. With #5816, the process is OK, but not the file. If I am correct, with the recent changes, a stream's read function can (if it returns non-zero in case of EOF) disable generation of Read events. This happens e.g. when the file is completely read into the buffer. Even if the buffer has data left inside, the fd is completely read and the read callbacks are disabled. I have a patch attached which fixes Process and File on my system when used with Line Input in a Read event but I don't know if the changes are placed properly. It should apply to #5816. Regards, Tobi PS: I have also to report that my program slows down insanely when they read many data from a process (like when I watch a Gambas compilation). But feel free to return to this issue after your holidays. -------------- next part -------------- Index: main/gbx/gbx_stream.c =================================================================== --- main/gbx/gbx_stream.c (revision 5816) +++ main/gbx/gbx_stream.c (working copy) @@ -563,8 +563,6 @@ if (errno == EINTR) continue; - stop_watching(stream, GB_WATCH_READ); - switch(errno) { case 0: @@ -657,6 +655,7 @@ if (!buffer_len) { + stop_watching(stream, GB_WATCH_READ); stream->common.eof = TRUE; break; } From gambas at ...1... Thu Aug 29 22:22:10 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 22:22:10 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <20130829193444.GF686@...2774...> References: <20130821130824.GE1021@...2774...> <20130826133026.GF478@...2774...> <521F9DD0.4080303@...1...> <20130829193444.GF686@...2774...> Message-ID: <521FAD72.1000909@...1...> Le 29/08/2013 21:34, Tobias Boege a ?crit : > On Thu, 29 Aug 2013, Beno?t Minisini wrote: >> Le 26/08/2013 15:30, Tobias Boege a ?crit : >>> On Wed, 21 Aug 2013, Tobias Boege wrote: >>>> Hi folks, >>>> >>>> is anyone else having trouble with the latest revision(s)? I observed two >>>> things: >>>> >>>> 1) Stream buffering broken. If I have a Process (it may equivalently well >>>> be only a Process problem (not a general Stream one) as it is the Process >>>> code which was touched recently), I get one line from it and nothing more >>>> until the program terminates (or the Process object is released). >>>> >>>> The IDE has the same problem with my programs: If I use Print/Debug/Error >>>> in the code, the IDE doesn't see them until the program is closed. >>>> >>>> 2) IDE property panel unusable. I can't set values anymore. The errors say >>>> "Incorrect property value." for everything. I can't set a Boolean to True >>>> anymore, to give an example. >>>> >>>> I did a complete >>>> >>>> $ make clean && ./reconf-all && ./configure && make -j5 && sudo make install >>>> >>>> and the problems remain! >>>> >>>> I'd like to know if anyone can reproduce these problems or if something over >>>> here is _seriously_ broken. >>>> >>>> Oh, and I should note that I have also installed an alternate version of >>>> Gambas in my local $HOME/bin which I can run and it doesn't show the above >>>> both symptoms. My broken version in use is #5812 and the working alternate >>>> version is #5801. >>>> >>> >>> FYI, I downgraded to #5802 and the problems are gone. So I guess I'll have >>> to wait for Benoit as it's likely not my system which gets things wrong but >>> Gambas. >>> >>> Regards, >>> Tobi >>> >> >> Is it better with revision #5816? >> > > It's not. I spent the afternoon searching for a solution myself. I should > note that I use Line Input in a Read event of a file or a process (in my > test project). The symptom is that the Read event does not raise anymore. > > Before #5816, both didn't work. With #5816, the process is OK, but not the > file. > > If I am correct, with the recent changes, a stream's read function can (if > it returns non-zero in case of EOF) disable generation of Read events. This > happens e.g. when the file is completely read into the buffer. Even if the > buffer has data left inside, the fd is completely read and the read > callbacks are disabled. > > I have a patch attached which fixes Process and File on my system when used > with Line Input in a Read event but I don't know if the changes are placed > properly. It should apply to #5816. > > Regards, > Tobi > > PS: I have also to report that my program slows down insanely when they read > many data from a process (like when I watch a Gambas compilation). But > feel free to return to this issue after your holidays. > > And now, with revision #5817? Do you have a little test project so that I can check your problems? -- Beno?t Minisini From mx4eva at ...626... Thu Aug 29 22:28:19 2013 From: mx4eva at ...626... (mx4evaNZ .) Date: Fri, 30 Aug 2013 08:28:19 +1200 Subject: [Gambas-user] Gambas3 Sample file does not compile Message-ID: Le 28/08/2013 23:23, mx4evaNZ . a ?crit : > Hi > The GamgasGears 3.0.0 sample file does not compile > the following error is shown: gb.sdl error. > Could not open: /../gb.sdl/DejavuSans.ttf > > Other files compile and run okay > > Running Linux Mint 15 (Olivia) 64 bit latest version > > Kim This must be a packaging problem. How did you install Gambas? -- Beno?t Minisini Via the software manager in Mint Olivia Kim From taboege at ...626... Thu Aug 29 22:31:20 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 29 Aug 2013 22:31:20 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <521FAD72.1000909@...1...> References: <20130821130824.GE1021@...2774...> <20130826133026.GF478@...2774...> <521F9DD0.4080303@...1...> <20130829193444.GF686@...2774...> <521FAD72.1000909@...1...> Message-ID: <20130829203120.GG686@...2774...> On Thu, 29 Aug 2013, Beno?t Minisini wrote: > Le 29/08/2013 21:34, Tobias Boege a ?crit : > > On Thu, 29 Aug 2013, Beno?t Minisini wrote: > >> Le 26/08/2013 15:30, Tobias Boege a ?crit : > >>> On Wed, 21 Aug 2013, Tobias Boege wrote: > >>>> Hi folks, > >>>> > >>>> is anyone else having trouble with the latest revision(s)? I observed two > >>>> things: > >>>> > >>>> 1) Stream buffering broken. If I have a Process (it may equivalently well > >>>> be only a Process problem (not a general Stream one) as it is the Process > >>>> code which was touched recently), I get one line from it and nothing more > >>>> until the program terminates (or the Process object is released). > >>>> > >>>> The IDE has the same problem with my programs: If I use Print/Debug/Error > >>>> in the code, the IDE doesn't see them until the program is closed. > >>>> > >>>> 2) IDE property panel unusable. I can't set values anymore. The errors say > >>>> "Incorrect property value." for everything. I can't set a Boolean to True > >>>> anymore, to give an example. > >>>> > >>>> I did a complete > >>>> > >>>> $ make clean && ./reconf-all && ./configure && make -j5 && sudo make install > >>>> > >>>> and the problems remain! > >>>> > >>>> I'd like to know if anyone can reproduce these problems or if something over > >>>> here is _seriously_ broken. > >>>> > >>>> Oh, and I should note that I have also installed an alternate version of > >>>> Gambas in my local $HOME/bin which I can run and it doesn't show the above > >>>> both symptoms. My broken version in use is #5812 and the working alternate > >>>> version is #5801. > >>>> > >>> > >>> FYI, I downgraded to #5802 and the problems are gone. So I guess I'll have > >>> to wait for Benoit as it's likely not my system which gets things wrong but > >>> Gambas. > >>> > >>> Regards, > >>> Tobi > >>> > >> > >> Is it better with revision #5816? > >> > > > > It's not. I spent the afternoon searching for a solution myself. I should > > note that I use Line Input in a Read event of a file or a process (in my > > test project). The symptom is that the Read event does not raise anymore. > > > > Before #5816, both didn't work. With #5816, the process is OK, but not the > > file. > > > > If I am correct, with the recent changes, a stream's read function can (if > > it returns non-zero in case of EOF) disable generation of Read events. This > > happens e.g. when the file is completely read into the buffer. Even if the > > buffer has data left inside, the fd is completely read and the read > > callbacks are disabled. > > > > I have a patch attached which fixes Process and File on my system when used > > with Line Input in a Read event but I don't know if the changes are placed > > properly. It should apply to #5816. > > > > Regards, > > Tobi > > > > PS: I have also to report that my program slows down insanely when they read > > many data from a process (like when I watch a Gambas compilation). But > > feel free to return to this issue after your holidays. > > > > > > And now, with revision #5817? Do you have a little test project so that > I can check your problems? > It's not fixed. I attach a sample project for the stream Line Input case. I will prepare reports for the "massive input" thing and for my IDE problems tomorrow. Nothing urgent, though. Regards, Tobi -------------- next part -------------- A non-text attachment was scrubbed... Name: read-file-or-process-0.0.1.tar.gz Type: application/octet-stream Size: 5067 bytes Desc: not available URL: From gambas at ...1... Thu Aug 29 22:54:07 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 29 Aug 2013 22:54:07 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <20130829203120.GG686@...2774...> References: <20130821130824.GE1021@...2774...> <20130826133026.GF478@...2774...> <521F9DD0.4080303@...1...> <20130829193444.GF686@...2774...> <521FAD72.1000909@...1...> <20130829203120.GG686@...2774...> Message-ID: <521FB4EF.2080401@...1...> Le 29/08/2013 22:31, Tobias Boege a ?crit : > > It's not fixed. I attach a sample project for the stream Line Input case. > > I will prepare reports for the "massive input" thing and for my IDE problems > tomorrow. Nothing urgent, though. > > Regards, > Tobi > Thanks. It should be better with revision #5818. -- Beno?t Minisini From taboege at ...626... Thu Aug 29 23:17:21 2013 From: taboege at ...626... (Tobias Boege) Date: Thu, 29 Aug 2013 23:17:21 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <521FB4EF.2080401@...1...> References: <20130821130824.GE1021@...2774...> <20130826133026.GF478@...2774...> <521F9DD0.4080303@...1...> <20130829193444.GF686@...2774...> <521FAD72.1000909@...1...> <20130829203120.GG686@...2774...> <521FB4EF.2080401@...1...> Message-ID: <20130829211721.GH686@...2774...> On Thu, 29 Aug 2013, Beno?t Minisini wrote: > Le 29/08/2013 22:31, Tobias Boege a ?crit : > > > > It's not fixed. I attach a sample project for the stream Line Input case. > > > > I will prepare reports for the "massive input" thing and for my IDE problems > > tomorrow. Nothing urgent, though. > > > > Regards, > > Tobi > > > > Thanks. It should be better with revision #5818. > Yes, it is! Regards, Tobi From wally at ...2037... Fri Aug 30 07:03:03 2013 From: wally at ...2037... (wally) Date: Fri, 30 Aug 2013 07:03:03 +0200 Subject: [Gambas-user] make install problem svn 5818 Message-ID: <2529868.DD4sdRKVUk@...3157...> Hi, i get following error output on sudo make install of svn 5818 on Opensuse 12.3 hope the following output is sufficient to see whats up. Let me know if more info is necessary. make[1]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo' Making install in src make[2]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' make[3]: Entering directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' make[3]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/usr/lib/gambas3' /usr/bin/install -c -m 644 gb.cairo.component '/usr/lib/gambas3' /usr/bin/mkdir -p '/usr/lib/gambas3' /usr/bin/install -c -m 644 gb.cairo.component '/usr/lib/gambas3' /usr/bin/mkdir -p '/usr/lib/gambas3' /bin/sh ../libtool --mode=install /usr/bin/install -c gb.cairo.la '/usr/lib/gambas3' /bin/sh: ../libtool: No such file or directory make[3]: *** [install-gblibLTLIBRARIES] Error 127 make[3]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo' make: *** [install-recursive] Error 1 ..gambas3_svn/trunk> in gb.cairo: ..trunk/gb.cairo>./config config.guess config.status config.sub configure ..trunk/gb.cairo>./configure ./configure: line 30: syntax error near unexpected token `(' ./configure: line 30: ` if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then' ..trunk/gb.cairo> thx wally From eilert-sprachen at ...221... Fri Aug 30 08:09:33 2013 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Fri, 30 Aug 2013 08:09:33 +0200 Subject: [Gambas-user] Why font coordinates lower-left? In-Reply-To: <521F84F8.7000400@...1...> References: <52130AA9.7080400@...221...> <521F84F8.7000400@...1...> Message-ID: <5220371D.3030602@...221...> Am 29.08.2013 19:29, schrieb Beno?t Minisini: > Le 20/08/2013 08:20, Rolf-Werner Eilert a ?crit : >> Hi folks, hi Benoit, >> >> just a question about drawing and printing... While other graphic >> elements start at upper-left corner, fonts start at lower-left. This is >> true for qt4 drawing as well as for Cairo drawing as far as I could see. >> >> This is confusing when you are not aware, for the page starts at >> upper-left with 0,0 too. So when you print a text at 0,0 you will see >> nothing, the text is above the border. >> >> And you have to take the font height into account whenever positioning text. >> >> In Gambas2, font positioning still started at upper-left, so when >> re-writing old code, I always have to tackle with this problem. >> >> But maybe I just haven't understood the deeper sense behind this? :-) >> >> Thanks for your insight >> >> Rolf >> > > Unless you specify the rectangle and the alignment arguments, text > drawing routines normally draws the text at font baseline. > Aaah - ok. So it will help always specifying the rectangle. I didn't see the difference... Thanks! Rolf From gambas at ...1... Fri Aug 30 08:52:31 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 30 Aug 2013 08:52:31 +0200 Subject: [Gambas-user] make install problem svn 5818 In-Reply-To: <2529868.DD4sdRKVUk@...3157...> References: <2529868.DD4sdRKVUk@...3157...> Message-ID: <5220412F.6060400@...1...> Le 30/08/2013 07:03, wally a ?crit : > Hi, > i get following error output on > sudo make install of svn 5818 > on Opensuse 12.3 > > hope the following output is sufficient to see whats up. > Let me know if more info is necessary. > > make[1]: Entering directory > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo' > Making install in src > make[2]: Entering directory > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > make[3]: Entering directory > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > make[3]: Nothing to be done for `install-exec-am'. > /usr/bin/mkdir -p '/usr/lib/gambas3' > /usr/bin/install -c -m 644 gb.cairo.component '/usr/lib/gambas3' > /usr/bin/mkdir -p '/usr/lib/gambas3' > /usr/bin/install -c -m 644 gb.cairo.component '/usr/lib/gambas3' > /usr/bin/mkdir -p '/usr/lib/gambas3' > /bin/sh ../libtool --mode=install /usr/bin/install -c gb.cairo.la > '/usr/lib/gambas3' > /bin/sh: ../libtool: No such file or directory > make[3]: *** [install-gblibLTLIBRARIES] Error 127 > make[3]: Leaving directory > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > make[2]: *** [install-am] Error 2 > make[2]: Leaving directory > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo' > make: *** [install-recursive] Error 1 > ..gambas3_svn/trunk> > > in gb.cairo: > > ..trunk/gb.cairo>./config > config.guess config.status config.sub configure > ..trunk/gb.cairo>./configure > ./configure: line 30: syntax error near unexpected token `(' > ./configure: line 30: ` if test "X`(/usr/ucb/echo -n -n $as_echo) > 2>/dev/null`" = "X-n $as_echo"; then' > ..trunk/gb.cairo> > > thx wally > Try './reconf-all' instead of './reconf'. If it changes nothing, try to checkout a fresh repository. Regards, -- Beno?t Minisini From gambas at ...1... Fri Aug 30 09:12:53 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 30 Aug 2013 09:12:53 +0200 Subject: [Gambas-user] Why is LCDNumber deprecated? In-Reply-To: <20130823115050.GD500@...2774...> References: <20130823115050.GD500@...2774...> Message-ID: <522045F5.5000006@...1...> Le 23/08/2013 13:50, Tobias Boege a ?crit : > Hi Benoit, > > the docs say that LCDNumber is deprecated and that one should use LCDLabel > instead. I can partly understand the reason: each number can be converted to > a string so no need to have a LCDNumber. (Or is there any other reason?) > > However, it indeed is some nice shortcut with its Value property and the > conversion constants. I'd personally like to keep it. What do you think? > > Regards, > Tobi > LCDLabel.Value added in revision #5819. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Aug 30 09:14:10 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Aug 2013 07:14:10 +0000 Subject: [Gambas-user] Issue 461 in gambas: Revision 5812 doesn't compile on Raspbian Linux In-Reply-To: <0-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #1 on issue 461 by benoit.m... at ...626...: Revision 5812 doesn't compile on Raspbian Linux http://code.google.com/p/gambas/issues/detail?id=461 It should be fixed in revision #5814. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From wally at ...2037... Fri Aug 30 09:13:48 2013 From: wally at ...2037... (wally) Date: Fri, 30 Aug 2013 09:13:48 +0200 Subject: [Gambas-user] make install problem svn 5818 In-Reply-To: <5220412F.6060400@...1...> References: <2529868.DD4sdRKVUk@...3157...> <5220412F.6060400@...1...> Message-ID: <5915229.vZog7YdzN9@...3157...> On Friday 30 August 2013 08:52:31 Beno?t Minisini wrote: > Le 30/08/2013 07:03, wally a ?crit : > > Hi, > > i get following error output on > > sudo make install of svn 5818 > > on Opensuse 12.3 > > > > hope the following output is sufficient to see whats up. > > Let me know if more info is necessary. > > > > make[1]: Entering directory > > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo' > > Making install in src > > make[2]: Entering directory > > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > > make[3]: Entering directory > > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > > make[3]: Nothing to be done for `install-exec-am'. > > > > /usr/bin/mkdir -p '/usr/lib/gambas3' > > /usr/bin/install -c -m 644 gb.cairo.component '/usr/lib/gambas3' > > /usr/bin/mkdir -p '/usr/lib/gambas3' > > /usr/bin/install -c -m 644 gb.cairo.component '/usr/lib/gambas3' > > /usr/bin/mkdir -p '/usr/lib/gambas3' > > /bin/sh ../libtool --mode=install /usr/bin/install -c gb.cairo.la > > > > '/usr/lib/gambas3' > > /bin/sh: ../libtool: No such file or directory > > make[3]: *** [install-gblibLTLIBRARIES] Error 127 > > make[3]: Leaving directory > > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > > make[2]: *** [install-am] Error 2 > > make[2]: Leaving directory > > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo/src' > > make[1]: *** [install-recursive] Error 1 > > make[1]: Leaving directory > > `/home/op/WORK/Programming/gambas/gambas3_svn/trunk/gb.cairo' > > make: *** [install-recursive] Error 1 > > ..gambas3_svn/trunk> > > > > in gb.cairo: > > > > ..trunk/gb.cairo>./config > > config.guess config.status config.sub configure > > ..trunk/gb.cairo>./configure > > ./configure: line 30: syntax error near unexpected token `(' > > ./configure: line 30: ` if test "X`(/usr/ucb/echo -n -n $as_echo) > > 2>/dev/null`" = "X-n $as_echo"; then' > > ..trunk/gb.cairo> > > > > thx wally > > Try './reconf-all' instead of './reconf'. If it changes nothing, try to > checkout a fresh repository. > > Regards, Hi, the described "cairo-error" does not occur with fresh trunk-checkout. thx wally From taboege at ...626... Fri Aug 30 09:22:40 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 30 Aug 2013 09:22:40 +0200 Subject: [Gambas-user] Why is LCDNumber deprecated? In-Reply-To: <522045F5.5000006@...1...> References: <20130823115050.GD500@...2774...> <522045F5.5000006@...1...> Message-ID: <20130830072240.GI686@...2774...> On Fri, 30 Aug 2013, Beno?t Minisini wrote: > Le 23/08/2013 13:50, Tobias Boege a ?crit : > > Hi Benoit, > > > > the docs say that LCDNumber is deprecated and that one should use LCDLabel > > instead. I can partly understand the reason: each number can be converted to > > a string so no need to have a LCDNumber. (Or is there any other reason?) > > > > However, it indeed is some nice shortcut with its Value property and the > > conversion constants. I'd personally like to keep it. What do you think? > > > > Regards, > > Tobi > > > > LCDLabel.Value added in revision #5819. > So you suggest to also remove the article about LCDNumber from our book because the class will vanish soon? (Or asked a different way: Is there a "removal schedule" for deprecated classes?) Regards, Tobi From vuott at ...325... Fri Aug 30 10:51:03 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 30 Aug 2013 09:51:03 +0100 (BST) Subject: [Gambas-user] Console shows only a text-lines of many. Message-ID: <1377852663.51246.YahooMailBasic@...3063...> Hello, lately I noticed that if I want to print repeatedly to console something, I see only ONE line. The console'll show all text-lines, only when the program is closed. This problem happens whether I click on a button repeatedly: Public Sub Button1_Click() Print "abcdefg" End whether the command "Print" is inside a loop. Regards vuott From gambas at ...1... Fri Aug 30 10:54:22 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 30 Aug 2013 10:54:22 +0200 Subject: [Gambas-user] Why is LCDNumber deprecated? In-Reply-To: <20130830072240.GI686@...2774...> References: <20130823115050.GD500@...2774...> <522045F5.5000006@...1...> <20130830072240.GI686@...2774...> Message-ID: <52205DBE.5070400@...1...> Le 30/08/2013 09:22, Tobias Boege a ?crit : > On Fri, 30 Aug 2013, Beno?t Minisini wrote: >> Le 23/08/2013 13:50, Tobias Boege a ?crit : >>> Hi Benoit, >>> >>> the docs say that LCDNumber is deprecated and that one should use LCDLabel >>> instead. I can partly understand the reason: each number can be converted to >>> a string so no need to have a LCDNumber. (Or is there any other reason?) >>> >>> However, it indeed is some nice shortcut with its Value property and the >>> conversion constants. I'd personally like to keep it. What do you think? >>> >>> Regards, >>> Tobi >>> >> >> LCDLabel.Value added in revision #5819. >> > > So you suggest to also remove the article about LCDNumber from our book > because the class will vanish soon? (Or asked a different way: Is there a > "removal schedule" for deprecated classes?) > > Regards, > Tobi > "deprecated" means "do not use it anymore, it will be removed in the next *major* release of Gambas, i.e. Gambas 4. Regards, -- Beno?t Minisini From taboege at ...626... Fri Aug 30 11:11:45 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 30 Aug 2013 11:11:45 +0200 Subject: [Gambas-user] Why is LCDNumber deprecated? In-Reply-To: <52205DBE.5070400@...1...> References: <20130823115050.GD500@...2774...> <522045F5.5000006@...1...> <20130830072240.GI686@...2774...> <52205DBE.5070400@...1...> Message-ID: <20130830091145.GJ686@...2774...> On Fri, 30 Aug 2013, Beno?t Minisini wrote: > Le 30/08/2013 09:22, Tobias Boege a ?crit : > > On Fri, 30 Aug 2013, Beno?t Minisini wrote: > >> Le 23/08/2013 13:50, Tobias Boege a ?crit : > >>> Hi Benoit, > >>> > >>> the docs say that LCDNumber is deprecated and that one should use LCDLabel > >>> instead. I can partly understand the reason: each number can be converted to > >>> a string so no need to have a LCDNumber. (Or is there any other reason?) > >>> > >>> However, it indeed is some nice shortcut with its Value property and the > >>> conversion constants. I'd personally like to keep it. What do you think? > >>> > >>> Regards, > >>> Tobi > >>> > >> > >> LCDLabel.Value added in revision #5819. > >> > > > > So you suggest to also remove the article about LCDNumber from our book > > because the class will vanish soon? (Or asked a different way: Is there a > > "removal schedule" for deprecated classes?) > > > > Regards, > > Tobi > > > > "deprecated" means "do not use it anymore, it will be removed in the > next *major* release of Gambas, i.e. Gambas 4. > Alright. Thanks. Regards, Tobi From taboege at ...626... Fri Aug 30 11:13:28 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 30 Aug 2013 11:13:28 +0200 Subject: [Gambas-user] Console shows only a text-lines of many. In-Reply-To: <1377852663.51246.YahooMailBasic@...3063...> References: <1377852663.51246.YahooMailBasic@...3063...> Message-ID: <20130830091328.GK686@...2774...> On Fri, 30 Aug 2013, Ru Vuott wrote: > Hello, > > lately I noticed that if I want to print repeatedly to console something, I see only ONE line. The console'll show all text-lines, only when the program is closed. > > This problem happens whether I click on a button repeatedly: > > Public Sub Button1_Click() > > Print "abcdefg" > > End > > > whether the command "Print" is inside a loop. > I already reported this problem. It is fixed for me in #5818. Regards, Tobi From willy at ...2734... Fri Aug 30 17:36:48 2013 From: willy at ...2734... (Willy Raets) Date: Fri, 30 Aug 2013 17:36:48 +0200 Subject: [Gambas-user] SQL query for DB.Exec() question In-Reply-To: <1377742179.16194.34.camel@...2688...> References: <1377721132.2766.32.camel@...3024...> <20130828202812.GG497@...2774...> <1377732303.3335.3.camel@...3024...> <1377733674.16194.25.camel@...2688...> <1377734183.3335.25.camel@...3024...> <1377742179.16194.34.camel@...2688...> Message-ID: <1377877008.2352.2.camel@...3024...> On Thu, 2013-08-29 at 11:39 +0930, Bruce wrote: > On Thu, 2013-08-29 at 01:56 +0200, Willy Raets wrote: > > On Thu, 2013-08-29 at 09:17 +0930, Bruce wrote: > > > On Thu, 2013-08-29 at 01:25 +0200, Willy Raets wrote: > > > > On Wed, 2013-08-28 at 22:28 +0200, Tobias Boege wrote: > > > > > On Wed, 28 Aug 2013, Willy Raets wrote: > > > > > > Hello all, > > > > > > > > > > > > I've been searching the Gambas mailing list archives and documentation > > > > > > for a answer to a problem I have. Tried all kinds of suggestions but > > > > > > haven't solved the problem yet. > > > > > > > > > > > > This is the situation simplified: > > > > > > > > > > > > A MySql database named MyData with a two tables named IC and Products. > > > > > > Both tables have a field ProductID with a relation inbetween. > > > > > > > > > > > > Table IC has fields > > > > > > ID -> Primary Key, Indexed > > > > > > ProductID -> Indexed > > > > > > Initial IC > > > > > > Actual IC > > > > > > ValueInitial > > > > > > ValueActual > > > > > > > > > > > > > > > > > > Table Product has fields: > > > > > > ProductID -> Primary Key, Indexed > > > > > > Description > > > > > > > > > > > > In a query I need to retrieve all fields in IC except ProductID and > > > > > > Description in Products > > > > > > I manage to get the query done except for the fields Initial IC and > > > > > > Actual IC (because of the blanc in the field name). > > > > > > > > > > > > As I understand in MySql I need to query: > > > > > > SELECT 'Actual IC' FROM IC to get Actual IC > > > > > > > > > > > > I have tried it like this in Gambas (rData being a Result and ConMyData > > > > > > being the connection) > > > > > > > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "'Actueel IC'") > > > > > > > > > > > > But the syntax is not accepted by MySql > > > > > > > > > > > > > > > > > > To make the matter more complicated when querying more than one table > > > > > > you need to add the table to the query syntax like this > > > > > > SELECT IC.ID, Product.Description FROM IC LEFT JOIN Product ON > > > > > > IC.ProductID=Product.ProductID ORDER BY IC.ID DESC > > > > > > > > > > > > Or in Gambas: > > > > > > > > > > > > rData = ConMyData.Exec(SELECT IC.ID, Product.Description FROM IC LEFT > > > > > > JOIN Product ON IC.ProductID=Product.ProductID ORDER BY IC.ID DESC) > > > > > > > > > > > > This works perfect, but when I want to add field IC.Actual IC to that > > > > > > query in a db.Exec() what is the proper format? > > > > > > I tried with: > > > > > > IC.'Actual IC' > > > > > > 'IC'.'Actual IC' > > > > > > 'IC.Actual IC' > > > > > > They all give back syntax errors from MySql > > > > > > > > > > > > Any suggestions welcome > > > > > > > > > > > > > > > > Out of pure intuition I would leave the single quotes out in the string you > > > > > give to Exec(), i.e. write > > > > > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", "Actueel IC") > > > > > > > > > > The Connection class should do the proper quoting itself. > > > > > > > > Tobi, thanks for the reply, but this was what I tried as very first > > > > before adding the single quotes. > > > > > > > > It returns a "Cannot execute request Out of bounds" !! > > > > > > > > > > > > > > Regards, > > > > > Tobi > > > > > > > > > > Another untested suggestion: > > > > > > rData = ConMyData.Exec("SELECT &1 FROM IC", DB.Quote("Actueel IC")) > > > > > > hth > > > Bruce > > > > Hi Bruce, > > > > It returns a "Cannot execute request Out of bounds" as well :( > > > > But thank for thinking along. > > \ > > OK Willy, I have some info. > > 1) The identifer quote char for mysql is ` i.e. a "back tick". > > 2) What happens with something like the following: > > Dim Conn As New Connection > Dim hRlt As Result > > With Conn > .Type = "mysql" > .Host = "localhost" > .Name = "test" > .User = "root" > End With > If Not Conn.Opened Then Conn.Open > > Print Conn.Quote("Spaced Name") > Print Conn.Subst("WHERE &1=&2", Conn.Quote("Spaced Name"), > "Some data") > Print > > hRlt = Conn.Find("testdata", "`Spaced Name` Like \"test%\"") > For Each hRlt > Print hRlt!id, hRlt!name, hRlt!"Spaced Name" > Next > Print > > here, Print Conn.Quote("Spaced Name") gives `Spaced Name` > BUT Print Conn.Subst("WHERE &1=&2", Conn.Quote("Spaced Name"), "Some > data") gives WHERE '`Spaced Name`'='Some data' > Note the name is enclosed in ' chars. > > Also, the query hRlt = Conn.Find("testdata", "`Spaced Name` Like \"test% > \"") runs properly and returns the data for all columns including > `Spaced Name`. > > But note the way the field has to be used in the Print statement! > > I believe Connection.Find and Connection.Exec use the Subst internal > code. So, it is incorrectly wrapping the column name in those extra 's. > > hth > Bruce Bruce, That back tick is what did the trick.... I now manage to get all the field names with spaces. Thanks to all others posting suggestions as well. -- Kind regards, Willy (aka gbWilly) http://gambasshowcase.org/ http://howtogambas.org http://gambos.org From taboege at ...626... Fri Aug 30 18:04:42 2013 From: taboege at ...626... (Tobias Boege) Date: Fri, 30 Aug 2013 18:04:42 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <20130821130824.GE1021@...2774...> References: <20130821130824.GE1021@...2774...> Message-ID: <20130830160442.GN686@...2774...> On Wed, 21 Aug 2013, Tobias Boege wrote: > Hi folks, > > is anyone else having trouble with the latest revision(s)? I observed two > things: > > 1) Stream buffering broken. If I have a Process (it may equivalently well > be only a Process problem (not a general Stream one) as it is the Process > code which was touched recently), I get one line from it and nothing more > until the program terminates (or the Process object is released). > > The IDE has the same problem with my programs: If I use Print/Debug/Error > in the code, the IDE doesn't see them until the program is closed. > You already fixed this. > 2) IDE property panel unusable. I can't set values anymore. The errors say > "Incorrect property value." for everything. I can't set a Boolean to True > anymore, to give an example. > Turns out that this has been fixed meanwhile, too. And while collecting information about that "slowdown" problem when reading much data from a Process, I noticed that this is a GUI problem, i.e. it only appears when I update a TextArea with data from the Process. The immense memory allocation also seems natural to me in this light. I should find a better way to code things... (Currently, at some point, my program just hangs after becoming slower and slower with the TextArea updates until the Process terminates.) Regards, Tobi From gambas at ...2524... Fri Aug 30 18:06:45 2013 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 30 Aug 2013 16:06:45 +0000 Subject: [Gambas-user] Issue 461 in gambas: Revision 5812 doesn't compile on Raspbian Linux In-Reply-To: <1-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> <0-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-18062772276106146302-gambas=googlecode.com@...2524...> Comment #2 on issue 461 by uAle... at ...626...: Revision 5812 doesn't compile on Raspbian Linux http://code.google.com/p/gambas/issues/detail?id=461 Issue can be closed, it compiles succesfully now :-) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings From gambas at ...1... Fri Aug 30 18:48:20 2013 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 30 Aug 2013 18:48:20 +0200 Subject: [Gambas-user] Problems with the IDE and Stream buffering In-Reply-To: <20130830160442.GN686@...2774...> References: <20130821130824.GE1021@...2774...> <20130830160442.GN686@...2774...> Message-ID: <5220CCD4.5070806@...1...> Le 30/08/2013 18:04, Tobias Boege a ?crit : > On Wed, 21 Aug 2013, Tobias Boege wrote: >> Hi folks, >> >> is anyone else having trouble with the latest revision(s)? I observed two >> things: >> >> 1) Stream buffering broken. If I have a Process (it may equivalently well >> be only a Process problem (not a general Stream one) as it is the Process >> code which was touched recently), I get one line from it and nothing more >> until the program terminates (or the Process object is released). >> >> The IDE has the same problem with my programs: If I use Print/Debug/Error >> in the code, the IDE doesn't see them until the program is closed. >> > > You already fixed this. > >> 2) IDE property panel unusable. I can't set values anymore. The errors say >> "Incorrect property value." for everything. I can't set a Boolean to True >> anymore, to give an example. >> > > Turns out that this has been fixed meanwhile, too. > > And while collecting information about that "slowdown" problem when reading > much data from a Process, I noticed that this is a GUI problem, i.e. it only > appears when I update a TextArea with data from the Process. The immense > memory allocation also seems natural to me in this light. I should find a > better way to code things... (Currently, at some point, my program just > hangs after becoming slower and slower with the TextArea updates until the > Process terminates.) > > Regards, > Tobi > TextArea has an "Insert" method if you just want to add text to it, that is faster than the Text property. -- Beno?t Minisini From vuott at ...325... Fri Aug 30 19:40:15 2013 From: vuott at ...325... (Ru Vuott) Date: Fri, 30 Aug 2013 18:40:15 +0100 (BST) Subject: [Gambas-user] Console shows only a text-lines of many. In-Reply-To: <20130830091328.GK686@...2774...> Message-ID: <1377884415.50140.YahooMailBasic@...3070...> Yes, I updated my Gambas. Now it's Ok Bye vuott -------------------------------------------- Ven 30/8/13, Tobias Boege ha scritto: Oggetto: Re: [Gambas-user] Console shows only a text-lines of many. A: "mailing list for gambas users" Data: Venerd? 30 agosto 2013, 11:13 On Fri, 30 Aug 2013, Ru Vuott wrote: > Hello, > > lately I noticed that if I want to print repeatedly to console something, I see only ONE line. The console'll show all text-lines, only when the program is closed. > > This problem happens whether I click on a button repeatedly: > > Public Sub Button1_Click() > >???Print "abcdefg" > > End > > > whether the command "Print" is inside a loop. > I already reported this problem. It is fixed for me in #5818. Regards, Tobi ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From fernando at ...3175... Fri Aug 30 22:36:13 2013 From: fernando at ...3175... (Fernando Martins) Date: Fri, 30 Aug 2013 22:36:13 +0200 Subject: [Gambas-user] accessing mdb files In-Reply-To: <521F8A07.4000008@...1950...> References: <521BAB14.6030204@...3175...> <1377549287.2656.7.camel@...3024...> <20130827083217.68290C1057AAB@...3176...> <521F8A07.4000008@...1950...> Message-ID: <5221023D.90305@...3175...> On 08/29/2013 07:51 PM, Caveat wrote: > It's perhaps a little off-topic as this is a Gambas mailing list, but I > have written a .mdb to mysql|postgresql|hsqldb|mssqlserver converter in > java. I tried using mdbtools but never got very satisfactory results, > so I wrote my own conversion software. > > Are you accessing directly the mdb file structures or using intermediary software, e.g. ODBC? Regards, Fernando From gambas.fr at ...626... Fri Aug 30 22:45:30 2013 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 30 Aug 2013 22:45:30 +0200 Subject: [Gambas-user] accessing mdb files In-Reply-To: <5221023D.90305@...3175...> References: <521BAB14.6030204@...3175...> <1377549287.2656.7.camel@...3024...> <20130827083217.68290C1057AAB@...3176...> <521F8A07.4000008@...1950...> <5221023D.90305@...3175...> Message-ID: is your converter free ? (GPL ?) 2013/8/30 Fernando Martins > On 08/29/2013 07:51 PM, Caveat wrote: > > It's perhaps a little off-topic as this is a Gambas mailing list, but I > > have written a .mdb to mysql|postgresql|hsqldb|mssqlserver converter in > > java. I tried using mdbtools but never got very satisfactory results, > > so I wrote my own conversion software. > > > > > Are you accessing directly the mdb file structures or using intermediary > software, e.g. ODBC? > > Regards, > Fernando > > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From Gambas at ...1950... Sat Aug 31 09:06:36 2013 From: Gambas at ...1950... (Caveat) Date: Sat, 31 Aug 2013 09:06:36 +0200 Subject: [Gambas-user] accessing mdb files In-Reply-To: References: <521BAB14.6030204@...3175...> <1377549287.2656.7.camel@...3024...> <20130827083217.68290C1057AAB@...3176...> <521F8A07.4000008@...1950...> <5221023D.90305@...3175...> Message-ID: <522195FC.5040701@...1950...> The software directly accesses the mdb file, using the jackcess library (http://jackcess.sourceforge.net/), so no Access nor Windoze required. I haven't worked out all the licensing yet (it builds on a few other java libraries too) so I'm not yet ready to release the code publicly. What I'm looking for is to try the software out on a few other databases, see what makes it break Right now there's no guarantees it doesn't just happen to work on Northwind and our database from work by pure chance Kind regards, Caveat On 30/08/13 22:45, Fabien Bodard wrote: > is your converter free ? (GPL ?) > > > 2013/8/30 Fernando Martins > >> On 08/29/2013 07:51 PM, Caveat wrote: >>> It's perhaps a little off-topic as this is a Gambas mailing list, but I >>> have written a .mdb to mysql|postgresql|hsqldb|mssqlserver converter in >>> java. I tried using mdbtools but never got very satisfactory results, >>> so I wrote my own conversion software. >>> >>> >> Are you accessing directly the mdb file structures or using intermediary >> software, e.g. ODBC? >> >> Regards, >> Fernando >> >> >> ------------------------------------------------------------------------------ >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! >> Discover the easy way to master current and previous Microsoft technologies >> and advance your career. Get an incredible 1,500+ hours of step-by-step >> tutorial videos with LearnDevNow. Subscribe today and save! >> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >