From fernandojosecabral at ...626... Mon May 1 01:41:45 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 30 Apr 2017 20:41:45 -0300 Subject: [Gambas-user] Help wanted for aspell installation Message-ID: Hello After downloading gb.aspell I tried to install the package running ./reconf as indicated. Nevertheless, it has not worked. Any help much appreciates. Error messages follow. hostname ~/Downloads/gambas3-3.9.2/gb.aspell $ ./reconf autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal configure.ac:6: error: AC_INIT should be called with package and version arguments /usr/share/aclocal-1.15/init.m4:29: AM_INIT_AUTOMAKE is expanded from... acinclude.m4:65: GB_INIT_AUTOMAKE is expanded from... acinclude.m4:124: GB_INIT_SHORT is expanded from... acinclude.m4:163: GB_INIT is expanded from... configure.ac:6: the top level autom4te: /usr/bin/m4 failed with exit status: 1 aclocal: error: echo failed with exit status: 1 autoreconf: aclocal failed with exit status: 1 -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From fernandojosecabral at ...626... Mon May 1 14:00:04 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 1 May 2017 09:00:04 -0300 Subject: [Gambas-user] Looking for hyphenation library for gambas Message-ID: Hi In another thread I asked for help concerning the installation and configuration of the aspell module. Now I see that I also need to access a hyphenation library. Does any of you have tried and succeeded in using libraries like libhyphenlo.so, or libhyphen.so? -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 <%2837%29%2099988-8868> Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 <%2837%29%2099988-8868> Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 <%2837%29%203521-2183> Telefone celular: +55 (37) 99988-8868 <%2837%29%2099988-8868> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From taboege at ...626... Mon May 1 14:17:42 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 1 May 2017 14:17:42 +0200 Subject: [Gambas-user] Help wanted for aspell installation In-Reply-To: References: Message-ID: <20170501121742.GA544@...3600...> On Sun, 30 Apr 2017, Fernando Cabral wrote: > Hello > > After downloading gb.aspell I tried to install the package running ./reconf > as indicated. Nevertheless, it has not worked. Any help much appreciates. > Error messages follow. > > hostname ~/Downloads/gambas3-3.9.2/gb.aspell $ ./reconf > autoreconf: Entering directory `.' > autoreconf: configure.ac: not using Gettext > autoreconf: running: aclocal > configure.ac:6: error: AC_INIT should be called with package and version > arguments > /usr/share/aclocal-1.15/init.m4:29: AM_INIT_AUTOMAKE is expanded from... > acinclude.m4:65: GB_INIT_AUTOMAKE is expanded from... > acinclude.m4:124: GB_INIT_SHORT is expanded from... > acinclude.m4:163: GB_INIT is expanded from... > configure.ac:6: the top level > autom4te: /usr/bin/m4 failed with exit status: 1 > aclocal: error: echo failed with exit status: 1 > autoreconf: aclocal failed with exit status: 1 > gb.aspell is ancient. The last update to the sourceforge repository was in 2008 if I'm not mistaken. The error above tells you that its configure.ac file is meanwhile incompatible with your version of the GNU autotools. You can fix that by yourself by looking at the configure.ac's of components inside the Gambas source tree and making gb.aspell's look like them. Note that this error happens at the "reconf" stage. After that are still the "configure" and "make" stages where less trivial errors could pop up. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From olivier.cruilles at ...614... Mon May 1 14:20:58 2017 From: olivier.cruilles at ...614... (Yahoo) Date: Mon, 1 May 2017 08:20:58 -0400 Subject: [Gambas-user] Looking for hyphenation library for gambas In-Reply-To: References: Message-ID: <86385937-426D-4875-A00E-97BD752D4236@...614...> Hello Fernando, You can take a look at my project available for download in server farm of Gambas, named gbDocEditor. Inside you can find a complet Class using Aspell library. This editor use it self this class. Olivier Cruilles > Le 1 mai 2017 ? 08:00, Fernando Cabral a ?crit : > > Hi > > In another thread I asked for help concerning the installation and > configuration of the aspell module. Now I see that I also need to access a > hyphenation library. Does any of you have tried and succeeded in using > libraries like libhyphenlo.so, or libhyphen.so? > > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 <%2837%29%2099988-8868> > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 <%2837%29%2099988-8868> > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 <%2837%29%203521-2183> > Telefone celular: +55 (37) 99988-8868 <%2837%29%2099988-8868> > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From fernandojosecabral at ...626... Mon May 1 20:04:49 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 1 May 2017 15:04:49 -0300 Subject: [Gambas-user] Help wanted for aspell installation In-Reply-To: <20170501121742.GA544@...3600...> References: <20170501121742.GA544@...3600...> Message-ID: Thank you, Tobi. I'll see if I can fix it and move forward. 2017-05-01 9:17 GMT-03:00 Tobias Boege : > On Sun, 30 Apr 2017, Fernando Cabral wrote: > > Hello > > > > After downloading gb.aspell I tried to install the package running > ./reconf > > as indicated. Nevertheless, it has not worked. Any help much appreciates. > > Error messages follow. > > > > hostname ~/Downloads/gambas3-3.9.2/gb.aspell $ ./reconf > > autoreconf: Entering directory `.' > > autoreconf: configure.ac: not using Gettext > > autoreconf: running: aclocal > > configure.ac:6: error: AC_INIT should be called with package and version > > arguments > > /usr/share/aclocal-1.15/init.m4:29: AM_INIT_AUTOMAKE is expanded from... > > acinclude.m4:65: GB_INIT_AUTOMAKE is expanded from... > > acinclude.m4:124: GB_INIT_SHORT is expanded from... > > acinclude.m4:163: GB_INIT is expanded from... > > configure.ac:6: the top level > > autom4te: /usr/bin/m4 failed with exit status: 1 > > aclocal: error: echo failed with exit status: 1 > > autoreconf: aclocal failed with exit status: 1 > > > > gb.aspell is ancient. The last update to the sourceforge repository was in > 2008 if I'm not mistaken. The error above tells you that its configure.ac > file is meanwhile incompatible with your version of the GNU autotools. > You can fix that by yourself by looking at the configure.ac's of > components > inside the Gambas source tree and making gb.aspell's look like them. > Note that this error happens at the "reconf" stage. After that are still > the "configure" and "make" stages where less trivial errors could pop up. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From fernandojosecabral at ...626... Tue May 2 02:36:42 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 1 May 2017 21:36:42 -0300 Subject: [Gambas-user] gambas editor is locked Message-ID: All of a sudden, I can not edit any project. They are all locked. Hitting the lock icon does not change anything except that on the tab where the module name is shown the expression '[read only]" appears and disappears. But I still can not edit the source code. What I am supposed to do to fix this? -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From karl.reinl at ...9... Tue May 2 08:22:43 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 02 May 2017 08:22:43 +0200 Subject: [Gambas-user] gambas editor is locked In-Reply-To: References: Message-ID: <1493706163.4050.2.camel@...3609...> Am Montag, den 01.05.2017, 21:36 -0300 schrieb Fernando Cabral: > All of a sudden, I can not edit any project. They are all locked. > Hitting the lock icon does not change anything except that > on the tab where the module name is shown the expression '[read only]" > appears and disappears. But I still can not edit the source code. > > What I am supposed to do to fix this? > Salut, I suppose You have opened the example projects, is it? Just save you a local copy by 'save as'.. -- Amicalement Charlie From shordi at ...626... Tue May 2 09:08:08 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 2 May 2017 09:08:08 +0200 Subject: [Gambas-user] gambas editor is locked In-Reply-To: References: Message-ID: If you have linked the source code directorys with other projects, Gambas lock de files as readonly too. In that case you must modify the code in their original project, not in the linked one. Best Regards 2017-05-02 2:36 GMT+02:00 Fernando Cabral : > All of a sudden, I can not edit any project. They are all locked. > Hitting the lock icon does not change anything except that > on the tab where the module name is shown the expression '[read only]" > appears and disappears. But I still can not edit the source code. > > What I am supposed to do to fix this? > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 > Telefone celular: +55 (37) 99988-8868 > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue May 2 09:57:15 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 2 May 2017 09:57:15 +0200 Subject: [Gambas-user] Looking for hyphenation library for gambas In-Reply-To: References: Message-ID: http://penguindreams.org/blog/aspell-and-hunspell-a-tale-of-two-spell-checkers/ Well seem we have to make something on hunspell. Aspell is not maintained. hunspell is used by OOO and chromium and firefox 2017-05-01 14:00 GMT+02:00 Fernando Cabral : > Hi > > In another thread I asked for help concerning the installation and > configuration of the aspell module. Now I see that I also need to access a > hyphenation library. Does any of you have tried and succeeded in using > libraries like libhyphenlo.so, or libhyphen.so? > > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 <%2837%29%2099988-8868> > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 <%2837%29%2099988-8868> > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 <%2837%29%203521-2183> > Telefone celular: +55 (37) 99988-8868 <%2837%29%2099988-8868> > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From fernandojosecabral at ...626... Tue May 2 12:08:21 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 2 May 2017 07:08:21 -0300 Subject: [Gambas-user] gambas editor is locked In-Reply-To: <1493706163.4050.2.camel@...3609...> References: <1493706163.4050.2.camel@...3609...> Message-ID: Karl wrote: >I suppose You have opened the example projects, is it? > Just save you a local copy by 'save as'.. I did download and open gbDocEditor. Do you mean it can lock all my projects? If so, what else can I do to unlock it? Saving as did not seem to work. - fernando 2017-05-02 3:22 GMT-03:00 Karl Reinl : > Am Montag, den 01.05.2017, 21:36 -0300 schrieb Fernando Cabral: > > All of a sudden, I can not edit any project. They are all locked. > > Hitting the lock icon does not change anything except that > > on the tab where the module name is shown the expression '[read only]" > > appears and disappears. But I still can not edit the source code. > > > > What I am supposed to do to fix this? > > > > Salut, > > I suppose You have opened the example projects, is it? > Just save you a local copy by 'save as'.. > -- > Amicalement > Charlie > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From karl.reinl at ...9... Tue May 2 14:22:06 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 02 May 2017 14:22:06 +0200 Subject: [Gambas-user] gambas editor is locked In-Reply-To: References: <1493706163.4050.2.camel@...3609...> Message-ID: <1493727726.4661.12.camel@...3609...> Am Dienstag, den 02.05.2017, 07:08 -0300 schrieb Fernando Cabral: > Karl wrote: > > >I suppose You have opened the example projects, is it? > > Just save you a local copy by 'save as'.. > > I did download and open gbDocEditor. Do you mean it can lock all my > projects? > If so, what else can I do to unlock it? Saving as did not seem to work. > > - fernando Salut Fernando, the directory from gbDocEditor. is (if you have downloaded via softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor Just run a chmod -R on that. But first look whats are your rights on it. -- Amicalement Charlie From fernandojosecabral at ...626... Tue May 2 14:53:44 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 2 May 2017 09:53:44 -0300 Subject: [Gambas-user] gambas editor is locked In-Reply-To: <1493727726.4661.12.camel@...3609...> References: <1493706163.4050.2.camel@...3609...> <1493727726.4661.12.camel@...3609...> Message-ID: Karl wrote: > the directory from gbDocEditor. is (if you have downloaded via > softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor > Just run a chmod -R on that. > But first look whats are your rights on it. Yes, I donwloaded it via softwarefarm. I checked files and directories bellow oliviercruilles and they have the permissions set to at least the following: drwxr-xr-x 3 fernando fernando -- if a directory -rw-r--r-- 1 fernando fernando -- if a file Now, to run "chmod -R" what is the ideal permission setting? Regards - fernando 2017-05-02 9:22 GMT-03:00 Karl Reinl : > Am Dienstag, den 02.05.2017, 07:08 -0300 schrieb Fernando Cabral: > > Karl wrote: > > > > >I suppose You have opened the example projects, is it? > > > Just save you a local copy by 'save as'.. > > > > I did download and open gbDocEditor. Do you mean it can lock all my > > projects? > > If so, what else can I do to unlock it? Saving as did not seem to work. > > > > - fernando > > Salut Fernando, > > the directory from gbDocEditor. is (if you have downloaded via > softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor > Just run a chmod -R on that. > But first look whats are your rights on it. > > -- > Amicalement > Charlie > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From karl.reinl at ...9... Tue May 2 15:47:49 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 02 May 2017 15:47:49 +0200 Subject: [Gambas-user] gambas editor is locked In-Reply-To: References: <1493706163.4050.2.camel@...3609...> <1493727726.4661.12.camel@...3609...> Message-ID: <1493732869.4661.28.camel@...3609...> Am Dienstag, den 02.05.2017, 09:53 -0300 schrieb Fernando Cabral: > Karl wrote: > > > the directory from gbDocEditor. is (if you have downloaded via > > softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor > > Just run a chmod -R on that. > > But first look whats are your rights on it. > > Yes, I donwloaded it via softwarefarm. > I checked files and directories bellow oliviercruilles and they have the > permissions set to at least the following: > > drwxr-xr-x 3 fernando fernando -- if a directory > -rw-r--r-- 1 fernando fernando -- if a file > > Now, to run "chmod -R" what is the ideal permission setting? > > Regards > > - fernando Salut Fernando, your rights are ideal. If you lock them, inside /.src you will find -r--r--r-- 1 fernando fernando. Did you check inside /.src ? If inside /.src files are also -rw-r--r-- 1 fernando fernando, try a 'touch test.log' to check if that is possible,repeat it after a minute or two (look at the timestamp between) to check if you have that rights. Oh, before it was said using gambas IDE you have to have rw on /tmp. -- Amicalement Charlie From fernandojosecabral at ...626... Tue May 2 16:21:26 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 2 May 2017 11:21:26 -0300 Subject: [Gambas-user] gambas editor is locked In-Reply-To: <1493732869.4661.28.camel@...3609...> References: <1493706163.4050.2.camel@...3609...> <1493727726.4661.12.camel@...3609...> <1493732869.4661.28.camel@...3609...> Message-ID: Karl wrote: > your rights are ideal. If you lock them, inside /.src you will find > -r--r--r-- 1 fernando fernando. > Did you check inside /.src ? Yes, using "find ... ls -la" I checked one by one. They all have at least the access permission indicated. > If inside /.src files are also -rw-r--r-- 1 fernando fernando, try a > 'touch test.log' to check if that is possible,repeat it after a minute > or two (look at the timestamp between) to check if you have that > rights. I have no problem writing inside any of those directories. > Oh, before it was said using gambas IDE you have to have rw on /tmp. Yes, that? pretty standard, and I have those permissions on /tmp. I am still clueless. - fernando 2017-05-02 10:47 GMT-03:00 Karl Reinl : > Am Dienstag, den 02.05.2017, 09:53 -0300 schrieb Fernando Cabral: > > > Karl wrote: > > > > > the directory from gbDocEditor. is (if you have downloaded via > > > softwarefarm) ~/.local/share/gambas3/src/oliviercruilles/gbDocEditor > > > Just run a chmod -R on that. > > > But first look whats are your rights on it. > > > > Yes, I donwloaded it via softwarefarm. > > I checked files and directories bellow oliviercruilles and they have the > > permissions set to at least the following: > > > > drwxr-xr-x 3 fernando fernando -- if a directory > > -rw-r--r-- 1 fernando fernando -- if a file > > > > Now, to run "chmod -R" what is the ideal permission setting? > > > > Regards > > > > - fernando > > > > Salut Fernando, > > > your rights are ideal. If you lock them, inside /.src you will find > -r--r--r-- 1 fernando fernando. > Did you check inside /.src ? > If inside /.src files are also -rw-r--r-- 1 fernando fernando, try a > 'touch test.log' to check if that is possible,repeat it after a minute > or two (look at the timestamp between) to check if you have that > rights. > > Oh, before it was said using gambas IDE you have to have rw on /tmp. > > -- > Amicalement > Charlie > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From herberthguzman at ...626... Tue May 2 18:51:37 2017 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 2 May 2017 10:51:37 -0600 Subject: [Gambas-user] Help menu in Properties Message-ID: Hi Benoit, Question...? The help menu that appears in properties appears in English I am encouraging the use of Gambas3 but many do not speak English I ask Can you use it in Spanish ...? I can help...? Regards Herberth Guzm?n From herberthguzman at ...626... Tue May 2 20:30:42 2017 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 2 May 2017 12:30:42 -0600 Subject: [Gambas-user] Help menu in Properties Message-ID: > Hi Benoit, > Question...? > The help menu that appears in properties appears in English > I am encouraging the use of Gambas3 but many do not speak English > I ask > Can you use it in Spanish ...? > I can help...? > Regards > Herberth Guzm?n I want to clarify that it is not always, it depends on the control Regards Herberth Guzm?n From bugtracker at ...3416... Tue May 2 21:10:46 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 19:10:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- ODBC driver super buggy 1: rs.count return always negative and only one event in lasted Type : Bug Priority : High Gambas version : 3.9 Product : ODBC driver Description ----------- some time ago i tried and found many bugs, but not reported due i using older linux.. but today i tested in linuxmint, winbuntu, stupibuntu, debian lasted, and fedora and with gambas versions from 3.1.1 to lasted (specifically 3.1.1, 3.4.2 and 3.9.X and trunk) the next piece of code always return "-1" Try rs = $conexionodbc.Exec(queryprices) If rs.Available Then ' <--- Here we have -1 !!! ' BUG 2 Max from resulset in ODBC are negative! howmany = rsprices.Count ' <---- psst ?always get here -1! no care the query, if there are a SP always -2 Endif System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=3.2.0-0.bpo.4-686-pae Architecture=x86 Distribution=debian 6.1 Desktop= Theme=VenenuX Language=es_VE.UTF-8 Memory=1695M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+2=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 QT4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-SDLMZFhfxe,guid=e84bee4349323ab2fdd0e833000d3724 DESKTOP_SESSION=openbox DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=openbox GDM_LANG=es_VE.UTF-8 GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/tmp/keyring-F6Av2Z GNOME_KEYRING_PID=28945 HOME= LANG=es_VE.UTF-8 LOGNAME= PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/.rvm/bin PWD= SHELL=/bin/bash SSH_AGENT_PID=28992 SSH_AUTH_SOCK=/tmp/ssh-MIgmw28954/agent.28954 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7:8:8:8:8 XAUTHORITY=/.Xauthority XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/ XDG_SESSION_COOKIE=b7d14e28769c4139a06b6f990000000c-1493388004.744958-1810097376 From gambas.fr at ...626... Tue May 2 21:11:17 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 2 May 2017 21:11:17 +0200 Subject: [Gambas-user] Help menu in Properties In-Reply-To: References: Message-ID: 2017-05-02 20:30 GMT+02:00 herberth guzman : >> Hi Benoit, > >> Question...? > >> The help menu that appears in properties appears in English >> I am encouraging the use of Gambas3 but many do not speak English > >> I ask > >> Can you use it in Spanish ...? >> I can help...? > > >> Regards > >> Herberth Guzm?n > > > I want to clarify that it is not always, it depends on the control In fact it must depend of the availability of the traducted version of the wiki page. If the page not exist in your language it use the english version by default. > > Regards > Herberth Guzm?n > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bugtracker at ...3416... Tue May 2 21:13:25 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 19:13:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: NOTE: using a freetds odbc bridge with sybase.. in php retrieve correct roms and in java so i dischard NOTE2: same with postgres but using odbc From bugtracker at ...3416... Tue May 2 21:24:12 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 19:24:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted Type : Bug Priority : High Gambas version : 3.9 Product : ODBC driver Description ----------- as i said in previous bug: some time ago i tried and found many bugs, but not reported due i using older linux.. tested in linuxmint, winbuntu, stupibuntu, debian lasted, and fedora and with gambas versions from 3.1.1 to lasted (specifically 3.1.1, 3.4.2 and 3.9.X and trunk) the next piece of code always return "-2" for Max in resulset: Try rs = $conexionodbc.Exec(queryprices) If rs.Available Then ' ' BUG 2 Max from resulset in ODBC are negative! howmany = rsprices.Max ' <---- psst ?always get here -2! no care the query, if there are a SP always -2 Endif this are very unconfortable, due for workaroud must made a select count(), that relies on another bug that i next to post right now! for now i try to workaround with the rs.MoveNext using when System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=3.2.0-0.bpo.4-686-pae Architecture=x86 Distribution=debian 6.1 Desktop= Theme=VenenuX Language=es_VE.UTF-8 Memory=1695M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+2=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 QT4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-SDLMZFhfxe,guid=e84bee4349323ab2fdd0e833000d3724 DESKTOP_SESSION=openbox DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=openbox GDM_LANG=es_VE.UTF-8 GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/tmp/keyring-F6Av2Z GNOME_KEYRING_PID=28945 HOME= LANG=es_VE.UTF-8 LOGNAME= PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/.rvm/bin PWD= SHELL=/bin/bash SSH_AGENT_PID=28992 SSH_AUTH_SOCK=/tmp/ssh-MIgmw28954/agent.28954 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7:8:8:8:8 XAUTHORITY=/.Xauthority XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/ XDG_SESSION_COOKIE=b7d14e28769c4139a06b6f990000000c-1493388004.744958-1810097376 From bugtracker at ...3416... Tue May 2 21:34:06 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 19:34:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #2 by Tobias BOEGE: >If rs.Available Then ' <--- Here we have -1 !!! Result.Available is a Boolean. It is expected that its numerical value is -1 (meaning True). >howmany = rsprices.Count ' <---- psst ?always get here -1! no care the query, if there are a SP always -2 Is "rsprices" related in any way to the "rs" object you stored the query result in? I have never used ODBC but the people who know about it will likely want a project that reproduces the bug, a sample database and possibly any configuration files that ODBC might require (no idea). Tobias BOEGE changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Tue May 2 21:44:15 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 19:44:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: preparing a project for that its quite tedius, and its obviusly.. i notes that only the "mysql" module are well knowed.. the rest have some bugs always.. i reported some time ago piece of correctiions for postgres part.. i'll try to upload a project in two or 3 days, but wheantime please some one revise the code.. i'm hurry "again" due now i must use odbc and not have scape this time.. the info required that in their machines u must configured a odbc driver so event i upload a project must relly on their odbc connections.. so the "needsinfo" state are relative... PICCORO LENZ MCKAY changed the state of the bug to: Opened. From bugtracker at ...3416... Tue May 2 21:45:26 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 19:45:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1102: ODBC driver super buggy 3: impossible made subquerys if the previous its a call/select to SP Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1102&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- ODBC driver super buggy 3: impossible made subquerys if the previous its a call/select to SP Type : Bug Priority : High Gambas version : 3.9 Product : ODBC driver Description ----------- as i said in previous bug: some time ago i tried and found many bugs, but not reported due i using older linux.. tested in linuxmint, winbuntu, stupibuntu, debian lasted, and fedora and with gambas versions from 3.1.1 to lasted (specifically 3.1.1, 3.4.2 and 3.9.X and trunk) the next piece of code always return "-2" for Max in resulset: query1 = "call sp('value string')" ' this return a select table resulset query2 = "select count(*) from sp('value string')" ' < - - use the select table return of the SP with count Try rs2 = $conexionodbc.Exec(query2) If rs2.Available Then ' try rs1 = $conexionodbc.Exec(query1) ' BUG this raise a problem, no rows and some times ! Endif this are very unconfortable, due for workaroud must made a select count(), that relies on another bug that i next to post right now! for now i try to workaround with the rs.MoveNext using when System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=3.2.0-0.bpo.4-686-pae Architecture=x86 Distribution=debian 6.1 Desktop= Theme=VenenuX Language=es_VE.UTF-8 Memory=1695M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+2=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 QT4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-SDLMZFhfxe,guid=e84bee4349323ab2fdd0e833000d3724 DESKTOP_SESSION=openbox DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=openbox GDM_LANG=es_VE.UTF-8 GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/tmp/keyring-F6Av2Z GNOME_KEYRING_PID=28945 HOME= LANG=es_VE.UTF-8 LOGNAME= PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/.rvm/bin PWD= SHELL=/bin/bash SSH_AGENT_PID=28992 SSH_AUTH_SOCK=/tmp/ssh-MIgmw28954/agent.28954 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7:8:8:8:8 XAUTHORITY=/.Xauthority XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/ XDG_SESSION_COOKIE=b7d14e28769c4139a06b6f990000000c-1493388004.744958-1810097376 From bugtracker at ...3416... Wed May 3 00:08:20 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 22:08:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #1 by zxMarce: Actually, per practically any available documentation you can check, ODBC doesn't return a row count for SELECT statements. I'll refer you to MSDN, for example (https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlrowcount-function), but you can also check IBM's docs, which say the exact same: Quote: SQLRowCount Function Conformance Version Introduced: ODBC 1.0 Standards Compliance: ISO 92 Summary SQLRowCount returns the number of rows affected by an UPDATE, INSERT, or DELETE statement; an SQL_ADD, SQL_UPDATE_BY_BOOKMARK, or SQL_DELETE_BY_BOOKMARK operation in SQLBulkOperations; or an SQL_UPDATE or SQL_DELETE operation in SQLSetPos So, unless some not-so-easy mechanism is implemented, no ODBC interface will return you a row count for SELECTs. The problem implementing the mechanism is that not all queries return a Result, for example the USE command in MSSQL. A high level ODBC interface would have a ton of things to take into account just to check whether a row count is returnable, necessary or even factible. Add to that difficulty the fact that ODBC is actually not a driver per-se, but a driver manager and the problem only gets worse, because not all drivers implement all calls. The -2 returned is, IIRC, actually an internal flag (this could need correction) to signal some low-level Gambas interfaces how to act when using ODBC. Regards, zxMarce. From bugtracker at ...3416... Wed May 3 00:20:07 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 02 May 2017 22:20:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #4 by zxMarce: Actually, per practically any available documentation you can check, ODBC doesn't return a row count for SELECT statements. I'll refer you to MSDN, for example (https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqlrowcount-function), but you can also check IBM's docs, which say the exact same: Quote: SQLRowCount Function Conformance Version Introduced: ODBC 1.0 Standards Compliance: ISO 92 Summary SQLRowCount returns the number of rows affected by an UPDATE, INSERT, or DELETE statement; an SQL_ADD, SQL_UPDATE_BY_BOOKMARK, or SQL_DELETE_BY_BOOKMARK operation in SQLBulkOperations; or an SQL_UPDATE or SQL_DELETE operation in SQLSetPos So, unless some not-so-easy mechanism is implemented, no ODBC interface will return you a row count for SELECTs. The problem implementing the mechanism is that not all queries return a Result, for example the USE command in MSSQL. A high level ODBC interface would have a ton of things to take into account just to check whether a row count is returnable, necessary or even factible. Add to that difficulty the fact that ODBC is actually not a driver per-se, but a driver manager and the problem only gets worse, because not all drivers implement all calls. In short: You must use Result.Available (boolean) to check whether there are rows or not, and Result.MoveNext to loop records when dealing with ODBC. I did implement a kind of row count for SELECTs, but it works or not depending on the underlying database driver (the one managed by ODBC), so you cannot rely on it. One last thing: You can use a Connection String to connect to a database, if you know how to create it with your database driver of choice. Fill the Connection.Host property with the connection string instead of flling it with the Host Name and you're set. I connected to MSSQL and MySQL just changing the Connection String. Almost forget: Regarding PHP, Java, etc, if anyone can tell me what to look at to get the infamous row count they claim they get with ODBC SELECTs, I'll appreciate it. Maybe I can add it to Gambas' ODBC. Regards, zxMarce. zxMarce changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Wed May 3 13:35:12 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 11:35:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- zxMarce added an attachment: ODBCTester Public.tar.gz From bugtracker at ...3416... Wed May 3 13:42:40 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 11:42:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #5 by zxMarce: Piccoro, Just added an attach with a pretty much generic ODBC component test project. It allows to connect with the new ConnectionString approach (can connect without putting server info in INI files), or the traditional INI file settings. It also allows to run queries on the connected server. There's minimal error catching and also allows to set the GB.Debug flag to get extra ODBC component debug info on the Gambas Console. I used the attach to connect successfully to MSSQL and Firebird: I was reported an error in the internal RowCount function I implemented in the component when using Firebird and it was successfully patched. The app does not use the graphical data connection nor any data-bound controls. As said, it's very basic but does the job. It also helped me to polish some rough edges on my butchering of the Gambas ODBC component. Hope it helps you also, zxMarce. From bugtracker at ...3416... Wed May 3 21:20:29 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 19:20:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #6 by PICCORO LENZ MCKAY: ZXMARGE thanks for the tip, i'm aware of the new features related to connection in recent odbc.. but i not thanking about.. in any case, i posted as a bug due in others languajes like php and java the rows cound are provided.. if this not return count, so the method must documented that -.. the count wiki said "Returns the number of records inside the result." so then now noted that returns "-1" now i understand why "-1"... that must be documented in the odbc wiki count page now here the real problem its that if i try to make a select count, and then a select * toa stored procedure, the odbc seems break or lock.. see it here in bug issue #1102 http://gambaswiki.org/bugtracker/edit?object=BUG.1102&from=L21haW4- now i know that i must do as u coded: " While (res.Available)" From bugtracker at ...3416... Wed May 3 21:20:44 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 19:20:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- PICCORO LENZ MCKAY changed the state of the bug to: Working. From bugtracker at ...3416... Wed May 3 21:21:42 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 19:21:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #7 by PICCORO LENZ MCKAY: marked as working due ODBC specifications said there's no mechanish for count... but needs update documentation wiki! PICCORO LENZ MCKAY changed the state of the bug to: Opened. From gambas at ...1... Thu May 4 01:27:02 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 4 May 2017 01:27:02 +0200 Subject: [Gambas-user] Possible disturbing bug fix in revision #8132 Message-ID: Hi, Before revision #8132, some custom controls were reacting to mouse events event if disabled, because they didn't take the Enabled property into account. Since revision #8132, disabled controls do not raise mouse events anymore. I did that to fix the previous problem, but it may break some code that was using that "feature". If you are in that case, please tell me. Regards, -- Beno?t Minisini From bugtracker at ...3416... Thu May 4 01:27:22 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 23:27:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1099: sliderbox sill respond to mouse wheel when its disabled In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1099&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Thu May 4 01:27:37 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 23:27:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1099: sliderbox sill respond to mouse wheel when its disabled In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1099&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in revision #8132. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Thu May 4 01:56:39 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 03 May 2017 23:56:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1097: Date.ToUnixTime loses a day In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1097&from=L21haW4- Comment #3 by Beno?t MINISINI: Can you try revision #8133? From bugtracker at ...3416... Thu May 4 02:19:16 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 04 May 2017 00:19:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: i noyed u only cited mocosoft papers.. dont know about mocosoft like papers.. mocosoft tendts to change everything depends of their convenience... odbc its today standardized by SQL Access Group in the Unix and mainframe field so please cited a right paper.. not windo/like From bugtracker at ...3416... Thu May 4 02:20:13 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 04 May 2017 00:20:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #8 by PICCORO LENZ MCKAY: i noyed u only cited mocosoft papers.. dont know about mocosoft like papers.. mocosoft tendts to change everything depends of their convenience... odbc its today standardized by SQL Access Group in the Unix and mainframe field so please cited a right paper.. not windo/like From d4t4full at ...626... Thu May 4 04:04:14 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Wed, 03 May 2017 23:04:14 -0300 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: <590a7385.c28ddf0a.6c75e.624cSMTPIN_ADDED_BROKEN@...2392...> References: <590a7385.c28ddf0a.6c75e.624cSMTPIN_ADDED_BROKEN@...2392...> Message-ID: Hehe... you're right. But I also cited IBM's ODBC docs for its DB2, and you can also check Easysoft's excellent C tutorials at http://www.easysoft.com/developer/languages/c/odbc_tutorial.html. Speaking about Easysoft, I myself made a command line ODBC tool to connect with ConnectionStrings and run queries in C with Easysoft's tutorials... And I absolutely suck at C. That good are those tutorials! Also, in case you didn't know, Microsoft was one of the leading forces behind drafting ODBC, as this quote from Wikipedia says: ODBC was originally developed by Microsoft and Progress DataDirect during the early 1990s, and became the basis for the Call Level Interface (CLI) standardized by SQL Access Group in the Unix and mainframe field. So by using their docs you know that that is the standard. Well, at least theirs... They suck at Windows (and OS making and privacy respecting in general), yes, but they sometimes pull nice tricks off their hats like ODBC. And that is not the only standard they helped draft. But anyway both MS and IBM? (at least when I read the docs to make the Gambas component work again) were kind enough to mark clearly any deviations or differences from the standard in their ODBC docs. Hope that helps, zxMarce. On May 3, 2017, 21:19, at 21:19, bugtracker at ...3416... wrote: >http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- > >Comment #2 by PICCORO LENZ MCKAY: > >i noyed u only cited mocosoft papers.. dont know about mocosoft like >papers.. mocosoft tendts to change everything depends of their >convenience... > >odbc its today standardized by SQL Access Group in the Unix and >mainframe field so please cited a right paper.. not windo/like From d4t4full at ...626... Thu May 4 04:09:18 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Wed, 03 May 2017 23:09:18 -0300 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: <590a73be.45c71c0a.f92b4.424eSMTPIN_ADDED_BROKEN@...2392...> References: <590a73be.45c71c0a.f92b4.424eSMTPIN_ADDED_BROKEN@...2392...> Message-ID: <12e194bb-9240-4c6d-a254-f2b3eddba38c@...626...> Hehe... you're right. But I also cited IBM's ODBC docs for its DB2, and you can also check Easysoft's excellent C tutorials at http://www.easysoft.com/developer/languages/c/odbc_tutorial.html. Speaking about Easysoft, I myself made a command line ODBC tool to connect with ConnectionStrings and run queries in C with Easysoft's tutorials... And I absolutely suck at C. That good are those tutorials! Also, in case you didn't know, Microsoft was one of the leading forces behind drafting ODBC, as this quote from Wikipedia says: ODBC was originally developed by Microsoft and Progress DataDirect during the early 1990s, and became the basis for the Call Level Interface (CLI) standardized by SQL Access Group in the Unix and mainframe field. So by using their docs you know that that is the standard. Well, at least theirs... They suck at Windows (and OS making and privacy respecting in general), yes, but they sometimes pull nice tricks off their hats like ODBC. And that is not the only standard they helped draft. But anyway both MS and IBM? (at least when I read the docs to make the Gambas component work again) were kind enough to mark clearly any deviations or differences from the standard in their ODBC docs. Hope that helps, zxMarce. On May 3, 2017, 21:20, at 21:20, bugtracker at ...3416... wrote: >http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- > >Comment #8 by PICCORO LENZ MCKAY: > >i noyed u only cited mocosoft papers.. dont know about mocosoft like >papers.. mocosoft tendts to change everything depends of their >convenience... > > >odbc its today standardized by SQL Access Group in the Unix and >mainframe field so please cited a right paper.. not windo/like From mckaygerhard at ...626... Thu May 4 04:43:00 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 3 May 2017 22:43:00 -0400 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: <590a7385.c28ddf0a.6c75e.624cSMTPIN_ADDED_BROKEN@...2392...> Message-ID: 2017-05-03 22:04 GMT-04:00 : > Also, in case you didn't know, Microsoft was one of the leading forces > behind drafting yeah.. i use sybase the original software behind the SQL server and the only way to connect to its odbc (inclusivelly internally always used odbc bridgeds, so then m$ its reasonable to are behind that papers) > But anyway both MS and IBM (at least when I read the docs to make the > Gambas component work again) were kind enough to mark clearly any > deviations or differences from the standard in their ODBC docs. > u are the mantainer and author of the ODBC componet? i used extensivelly the ODBC component and i was thinking that i'm the only used deeply.. tomorrow i'll test again a SP that will retrieve a thousands of rows... (currently i make it with a dummy table, production will retrieve thousands) > > Hope that helps, > zxMarce. > > On May 3, 2017, 21:19, at 21:19, bugtracker at ...3416... wrote: > >http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- > > > >Comment #2 by PICCORO LENZ MCKAY: > > > >i noyed u only cited mocosoft papers.. dont know about mocosoft like > >papers.. mocosoft tendts to change everything depends of their > >convenience... > > > >odbc its today standardized by SQL Access Group in the Unix and > >mainframe field so please cited a right paper.. not windo/like > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu May 4 04:43:22 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 3 May 2017 22:43:22 -0400 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: <12e194bb-9240-4c6d-a254-f2b3eddba38c@...626...> References: <590a73be.45c71c0a.f92b4.424eSMTPIN_ADDED_BROKEN@...2392...> <12e194bb-9240-4c6d-a254-f2b3eddba38c@...626...> Message-ID: 2017-05-03 22:04 GMT-04:00 : > Also, in case you didn't know, Microsoft was one of the leading forces > behind drafting yeah.. i use sybase the original software behind the SQL server and the only way to connect to its odbc (inclusivelly internally always used odbc bridgeds, so then m$ its reasonable to are behind that papers) > But anyway both MS and IBM (at least when I read the docs to make the > Gambas component work again) were kind enough to mark clearly any > deviations or differences from the standard in their ODBC docs. > u are the mantainer and author of the ODBC componet? i used extensivelly the ODBC component and i was thinking that i'm the only used deeply.. tomorrow i'll test again a SP that will retrieve a thousands of rows... (currently i make it with a dummy table, production will retrieve thousands) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-03 22:09 GMT-04:00 : > Hehe... you're right. But I also cited IBM's ODBC docs for its DB2, and > you can also check Easysoft's excellent C tutorials at > http://www.easysoft.com/developer/languages/c/odbc_tutorial.html. > Speaking about Easysoft, I myself made a command line ODBC tool to connect > with ConnectionStrings and run queries in C with Easysoft's tutorials... > And I absolutely suck at C. That good are those tutorials! > > Also, in case you didn't know, Microsoft was one of the leading forces > behind drafting ODBC, as this quote from Wikipedia says: > > ODBC was originally developed by Microsoft and Progress DataDirect during > the early 1990s, and became the basis for the Call Level Interface (CLI) > standardized by SQL Access Group in the Unix and mainframe field. > > So by using their docs you know that that is the standard. Well, at least > theirs... They suck at Windows (and OS making and privacy respecting in > general), yes, but they sometimes pull nice tricks off their hats like > ODBC. And that is not the only standard they helped draft. > > But anyway both MS and IBM (at least when I read the docs to make the > Gambas component work again) were kind enough to mark clearly any > deviations or differences from the standard in their ODBC docs. > > Hope that helps, > zxMarce. > > On May 3, 2017, 21:20, at 21:20, bugtracker at ...3416... wrote: > >http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- > > > >Comment #8 by PICCORO LENZ MCKAY: > > > >i noyed u only cited mocosoft papers.. dont know about mocosoft like > >papers.. mocosoft tendts to change everything depends of their > >convenience... > > > > > >odbc its today standardized by SQL Access Group in the Unix and > >mainframe field so please cited a right paper.. not windo/like > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From alexchernoff at ...67... Thu May 4 10:40:44 2017 From: alexchernoff at ...67... (alexchernoff) Date: Thu, 4 May 2017 01:40:44 -0700 (MST) Subject: [Gambas-user] Gambas binary to ELF? Message-ID: <1493887244536-58891.post@...3046...> Good day all, anyone know of a way to make an ELF format file from Gambas executable? I try a "software protection" system (WIBU KEY), to protect a Gambas project from unwanted copying, but it can only protect ELF binaries and doesn't recognize a Gambas executable. Cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas-binary-to-ELF-tp58891.html Sent from the gambas-user mailing list archive at Nabble.com. From cheikhdiabang at ...67... Thu May 4 12:05:16 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Thu, 4 May 2017 10:05:16 +0000 Subject: [Gambas-user] Math Operation Message-ID: hello. i have write this code below on gambas 3.9.2 and when i run that, he indique syntaxe error Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float 'Dim ak As Float Dim a As Float Dim b As Float Dim c As Float Dim nbr_coef As Integer Dim k As Integer nbr_coef = degre + 1 For k = 0 To degre If k == 0 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) Else If k == 1 b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) Else If k == 2 a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) Else Message.Info("unavalaible coefficients") Next Return a, b, c End But i see nothing as error. I need help please From taboege at ...626... Thu May 4 12:11:48 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 4 May 2017 12:11:48 +0200 Subject: [Gambas-user] Gambas binary to ELF? In-Reply-To: <1493887244536-58891.post@...3046...> References: <1493887244536-58891.post@...3046...> Message-ID: <20170504101148.GA606@...3600...> On Thu, 04 May 2017, alexchernoff wrote: > Good day all, > > anyone know of a way to make an ELF format file from Gambas executable? > > I try a "software protection" system (WIBU KEY), to protect a Gambas project > from unwanted copying, but it can only protect ELF binaries and doesn't > recognize a Gambas executable. > > Cheers! > The, AFAIK, only Gambas compiler, gbc3, produces Gambas bytecode files which are not ELF, as you know. There is a gb.jit component with an LLVM-based JIT compiler. Maybe this contains all the necessary gears already to compile a Gambas project's instructions to host system opcodes. But then you would still have to take care of linking, especially interfacing with components written in Gambas. It sounds like some work. This may look like a trivial answer, but if you can protect absolutely every ELF file as long as it's in the ELF format, just pack an archive of the Gambas bytecode together with a copy of the interpreter executable inside an ELF executable. That outer executable works like a self-extracting archive: it extracts the Gambas bytecode and the interpreter and runs the interpreter on the bytecode. Voila, the working Gambas program inside ELF. You can easily achieve this by writing some template code for the self- extracting archive and then embedding the compiler and the archive into its .data section. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Thu May 4 12:13:32 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 4 May 2017 12:13:32 +0200 Subject: [Gambas-user] Math Operation In-Reply-To: References: Message-ID: <20170504101332.GB606@...3600...> On Thu, 04 May 2017, cheikh diabang wrote: > hello. i have write this code below on gambas 3.9.2 and when i run that, he indique syntaxe error > > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float > 'Dim ak As Float > Dim a As Float > Dim b As Float > Dim c As Float > Dim nbr_coef As Integer > Dim k As Integer > > nbr_coef = degre + 1 > For k = 0 To degre > If k == 0 > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > Else If k == 1 > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > Else If k == 2 > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > Else > Message.Info("unavalaible coefficients") > Next > Return a, b, c > End > > > But i see nothing as error. I need help please Look closer: > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > 2(1 / (k + 1)) Since "2" is not a function, you have to write 2*(1 / (k + 1)) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cheikhdiabang at ...67... Thu May 4 12:24:34 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Thu, 4 May 2017 10:24:34 +0000 Subject: [Gambas-user] Math Operation In-Reply-To: <20170504101332.GB606@...3600...> References: , <20170504101332.GB606@...3600...> Message-ID: Thank Tobias its working well. But Return the tree values have problem whit mark"," The last change is below Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float 'Dim ak As Float Dim a As Float Dim b As Float Dim c As Float Dim nbr_coef As Integer Dim k As Integer nbr_coef = degre + 1 For k = 0 To degre If k == 0 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) c = (nbr_coef ^ k * ((x ^ (2 * (1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - (x ^ 2)) Else If k == 1 b = ((nbr_coef ^ k) * ((x ^ (2 * (1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - (x ^ 2)) Else If k == 2 a = ((nbr_coef ^ k) * ((x ^ (2 * (1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - (x ^ 2)) Else Message.Info("unavalaible coefficients") Endif Next Return a, b, c; End ________________________________ De : Tobias Boege Envoy? : jeudi 4 mai 2017 10:13 ? : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation On Thu, 04 May 2017, cheikh diabang wrote: > hello. i have write this code below on gambas 3.9.2 and when i run that, he indique syntaxe error > > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float > 'Dim ak As Float > Dim a As Float > Dim b As Float > Dim c As Float > Dim nbr_coef As Integer > Dim k As Integer > > nbr_coef = degre + 1 > For k = 0 To degre > If k == 0 > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > Else If k == 1 > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > Else If k == 2 > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > Else > Message.Info("unavalaible coefficients") > Next > Return a, b, c > End > > > But i see nothing as error. I need help please Look closer: > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > 2(1 / (k + 1)) Since "2" is not a function, you have to write 2*(1 / (k + 1)) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... From jusabejusabe at ...626... Thu May 4 12:30:02 2017 From: jusabejusabe at ...626... (Julio Sanchez) Date: Thu, 4 May 2017 12:30:02 +0200 Subject: [Gambas-user] Math Operation In-Reply-To: <20170504101332.GB606@...3600...> References: <20170504101332.GB606@...3600...> Message-ID: cheikh diabang: In addition if you are going to return several float values, you should put float[]... Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float[] .... Dim ArrayABC as new float[] .... ..... ArrayABC.add(A) ArrayABC.add(B) ArrayABC.add(C) Return ArrayABC Regards, Julio 2017-05-04 12:13 GMT+02:00 Tobias Boege : > On Thu, 04 May 2017, cheikh diabang wrote: > > hello. i have write this code below on gambas 3.9.2 and when i run that, > he indique syntaxe error > > > > > > Function calcul_coefficients(x As Integer, y As Integer, degre As > Integer) As Float > > 'Dim ak As Float > > Dim a As Float > > Dim b As Float > > Dim c As Float > > Dim nbr_coef As Integer > > Dim k As Integer > > > > nbr_coef = degre + 1 > > For k = 0 To degre > > If k == 0 > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else If k == 1 > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else If k == 2 > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else > > Message.Info("unavalaible coefficients") > > Next > > Return a, b, c > > End > > > > > > But i see nothing as error. I need help please > > Look closer: > > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > 2(1 / (k + 1)) > > Since "2" is not a function, you have to write > > 2*(1 / (k + 1)) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From cheikhdiabang at ...67... Thu May 4 12:42:02 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Thu, 4 May 2017 10:42:02 +0000 Subject: [Gambas-user] Math Operation In-Reply-To: References: <20170504101332.GB606@...3600...>, Message-ID: Thank you very much Julio Sanchez ?. Its working fine ________________________________ De : Julio Sanchez Envoy? : jeudi 4 mai 2017 10:30 ? : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation cheikh diabang: In addition if you are going to return several float values, you should put float[]... Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float[] .... Dim ArrayABC as new float[] .... ..... ArrayABC.add(A) ArrayABC.add(B) ArrayABC.add(C) Return ArrayABC Regards, Julio 2017-05-04 12:13 GMT+02:00 Tobias Boege : > On Thu, 04 May 2017, cheikh diabang wrote: > > hello. i have write this code below on gambas 3.9.2 and when i run that, > he indique syntaxe error > > > > > > Function calcul_coefficients(x As Integer, y As Integer, degre As > Integer) As Float > > 'Dim ak As Float > > Dim a As Float > > Dim b As Float > > Dim c As Float > > Dim nbr_coef As Integer > > Dim k As Integer > > > > nbr_coef = degre + 1 > > For k = 0 To degre > > If k == 0 > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else If k == 1 > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else If k == 2 > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else > > Message.Info("unavalaible coefficients") > > Next > > Return a, b, c > > End > > > > > > But i see nothing as error. I need help please > > Look closer: > > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > 2(1 / (k + 1)) > > Since "2" is not a function, you have to write > > 2*(1 / (k + 1)) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... From cheikhdiabang at ...67... Thu May 4 16:41:16 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Thu, 4 May 2017 14:41:16 +0000 Subject: [Gambas-user] Math Operation In-Reply-To: References: <20170504101332.GB606@...3600...>, , Message-ID: Hi ! i wanna know how recover return value of function in my case. I do that as below, but he said object expected calcul_coefficients(j, iy_v_c_w, 2) coeff_v_c_w_0 = calcul_coefficients[2] coeff_v_c_w_1 = calcul_coefficients[1] coeff_v_c_w_2 = calcul_coefficients[0] Thank for help. ________________________________ De : cheikh diabang Envoy? : jeudi 4 mai 2017 10:42 ? : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Thank you very much Julio Sanchez ?. Its working fine ________________________________ De : Julio Sanchez Envoy? : jeudi 4 mai 2017 10:30 ? : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation cheikh diabang: In addition if you are going to return several float values, you should put float[]... Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float[] .... Dim ArrayABC as new float[] .... ..... ArrayABC.add(A) ArrayABC.add(B) ArrayABC.add(C) Return ArrayABC Regards, Julio 2017-05-04 12:13 GMT+02:00 Tobias Boege : > On Thu, 04 May 2017, cheikh diabang wrote: > > hello. i have write this code below on gambas 3.9.2 and when i run that, > he indique syntaxe error > > > > > > Function calcul_coefficients(x As Integer, y As Integer, degre As > Integer) As Float > > 'Dim ak As Float > > Dim a As Float > > Dim b As Float > > Dim c As Float > > Dim nbr_coef As Integer > > Dim k As Integer > > > > nbr_coef = degre + 1 > > For k = 0 To degre > > If k == 0 > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else If k == 1 > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else If k == 2 > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > Else > > Message.Info("unavalaible coefficients") > > Next > > Return a, b, c > > End > > > > > > But i see nothing as error. I need help please > > Look closer: > > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > 2(1 / (k + 1)) > > Since "2" is not a function, you have to write > > 2*(1 / (k + 1)) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... From jussi.lahtinen at ...626... Thu May 4 17:12:42 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 4 May 2017 18:12:42 +0300 Subject: [Gambas-user] Math Operation In-Reply-To: References: <20170504101332.GB606@...3600...> Message-ID: Declare the function as: Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float[] Then return the answer as (this is for convenience as copy returns new object instance): Return [a, b, c].Copy() Jussi On Thu, May 4, 2017 at 5:41 PM, cheikh diabang wrote: > Hi ! i wanna know how recover return value of function in my case. > > I do that as below, but he said object expected > > calcul_coefficients(j, iy_v_c_w, 2) > coeff_v_c_w_0 = calcul_coefficients[2] > coeff_v_c_w_1 = calcul_coefficients[1] > coeff_v_c_w_2 = calcul_coefficients[0] > > Thank for help. > > ________________________________ > De : cheikh diabang > Envoy? : jeudi 4 mai 2017 10:42 > ? : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > Thank you very much Julio Sanchez ?. Its working fine > > > ________________________________ > De : Julio Sanchez > Envoy? : jeudi 4 mai 2017 10:30 > ? : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > cheikh diabang: > > In addition if you are going to return several float values, you should put > float[]... > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) > As Float[] > > .... > Dim ArrayABC as new float[] > .... > ..... > ArrayABC.add(A) > ArrayABC.add(B) > ArrayABC.add(C) > > Return ArrayABC > > > > Regards, > > Julio > > 2017-05-04 12:13 GMT+02:00 Tobias Boege : > > > On Thu, 04 May 2017, cheikh diabang wrote: > > > hello. i have write this code below on gambas 3.9.2 and when i run > that, > > he indique syntaxe error > > > > > > > > > Function calcul_coefficients(x As Integer, y As Integer, degre As > > Integer) As Float > > > 'Dim ak As Float > > > Dim a As Float > > > Dim b As Float > > > Dim c As Float > > > Dim nbr_coef As Integer > > > Dim k As Integer > > > > > > nbr_coef = degre + 1 > > > For k = 0 To degre > > > If k == 0 > > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > Else If k == 1 > > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > Else If k == 2 > > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > Else > > > Message.Info("unavalaible coefficients") > > > Next > > > Return a, b, c > > > End > > > > > > > > > But i see nothing as error. I need help please > > > > Look closer: > > > > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > 2(1 / (k + 1)) > > > > Since "2" is not a function, you have to write > > > > 2*(1 / (k + 1)) > > > > Regards, > > Tobi > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From cheikhdiabang at ...67... Thu May 4 17:21:22 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Thu, 4 May 2017 15:21:22 +0000 Subject: [Gambas-user] Math Operation In-Reply-To: References: <20170504101332.GB606@...3600...> , Message-ID: I think the copy is not necessary. I want just access in one element on return array. Thank for your help ________________________________ De : Jussi Lahtinen Envoy? : jeudi 4 mai 2017 15:12 ? : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Declare the function as: Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) As Float[] Then return the answer as (this is for convenience as copy returns new object instance): Return [a, b, c].Copy() Jussi On Thu, May 4, 2017 at 5:41 PM, cheikh diabang wrote: > Hi ! i wanna know how recover return value of function in my case. > > I do that as below, but he said object expected > > calcul_coefficients(j, iy_v_c_w, 2) > coeff_v_c_w_0 = calcul_coefficients[2] > coeff_v_c_w_1 = calcul_coefficients[1] > coeff_v_c_w_2 = calcul_coefficients[0] > > Thank for help. > > ________________________________ > De : cheikh diabang > Envoy? : jeudi 4 mai 2017 10:42 > ? : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > Thank you very much Julio Sanchez ?. Its working fine > > > ________________________________ > De : Julio Sanchez > Envoy? : jeudi 4 mai 2017 10:30 > ? : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > cheikh diabang: > > In addition if you are going to return several float values, you should put > float[]... > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) > As Float[] > > .... > Dim ArrayABC as new float[] > .... > ..... > ArrayABC.add(A) > ArrayABC.add(B) > ArrayABC.add(C) > > Return ArrayABC > > > > Regards, > > Julio > > 2017-05-04 12:13 GMT+02:00 Tobias Boege : > > > On Thu, 04 May 2017, cheikh diabang wrote: > > > hello. i have write this code below on gambas 3.9.2 and when i run > that, > > he indique syntaxe error > > > > > > > > > Function calcul_coefficients(x As Integer, y As Integer, degre As > > Integer) As Float > > > 'Dim ak As Float > > > Dim a As Float > > > Dim b As Float > > > Dim c As Float > > > Dim nbr_coef As Integer > > > Dim k As Integer > > > > > > nbr_coef = degre + 1 > > > For k = 0 To degre > > > If k == 0 > > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ > > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > Else If k == 1 > > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > Else If k == 2 > > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > Else > > > Message.Info("unavalaible coefficients") > > > Next > > > Return a, b, c > > > End > > > > > > > > > But i see nothing as error. I need help please > > > > Look closer: > > > > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x > > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > > > 2(1 / (k + 1)) > > > > Since "2" is not a function, you have to write > > > > 2*(1 / (k + 1)) > > > > Regards, > > Tobi > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user > Archives. Using Gambas-user: To post a message to all the list members ... > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From leondavisjr at ...626... Thu May 4 18:12:09 2017 From: leondavisjr at ...626... (Leon Davis) Date: Thu, 4 May 2017 11:12:09 -0500 Subject: [Gambas-user] transparency on rotated image Message-ID: Using Gambas v3.9.2 and GTK+3 After I rotate an image "Image.Rotate(0.03)" I get a background I can't get rid of. Bug or Feature? Thank you for any assistance. Leon From herberthguzman at ...626... Thu May 4 19:18:15 2017 From: herberthguzman at ...626... (herberth guzman) Date: Thu, 4 May 2017 11:18:15 -0600 Subject: [Gambas-user] Close If Clicked Outside Form Message-ID: Hi Close If Clicked Outside Form Is there any way to close a form if it is clicked outside the main form? For example, just as applets on the network or audio volume or KDE menu. Thanks Herberth Guzman From taboege at ...626... Thu May 4 19:30:27 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 4 May 2017 19:30:27 +0200 Subject: [Gambas-user] Close If Clicked Outside Form In-Reply-To: References: Message-ID: <20170504173027.GC606@...3600...> On Thu, 04 May 2017, herberth guzman wrote: > Hi > > Close If Clicked Outside Form > > Is there any way to close a form if it is clicked outside the main form? > > For example, just as applets on the network or audio volume or KDE menu. > Try the Deactivate event. The documentation doesn't really state what it means for a window to be "deactivated" but a quick test shows that this event is raised when the window ceases to be... the active one, e.g. when you click outside of it or select another window by Alt+Tab (on my desktop at least). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Fri May 5 08:57:33 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 5 May 2017 08:57:33 +0200 Subject: [Gambas-user] Math Operation In-Reply-To: References: <20170504101332.GB606@...3600...> Message-ID: yes the copy function is not necessary in this case as [a,b,c] return a new instance on each call 2017-05-04 17:21 GMT+02:00 cheikh diabang : > I think the copy is not necessary. I want just access in one element on return array. Thank for your help > > > ________________________________ > De : Jussi Lahtinen > Envoy? : jeudi 4 mai 2017 15:12 > ? : mailing list for gambas users > Objet : Re: [Gambas-user] Math Operation > > Declare the function as: > > Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) > As Float[] > > Then return the answer as (this is for convenience as copy returns new > object instance): > > Return [a, b, c].Copy() > > > > > Jussi > > On Thu, May 4, 2017 at 5:41 PM, cheikh diabang > wrote: > >> Hi ! i wanna know how recover return value of function in my case. >> >> I do that as below, but he said object expected >> >> calcul_coefficients(j, iy_v_c_w, 2) >> coeff_v_c_w_0 = calcul_coefficients[2] >> coeff_v_c_w_1 = calcul_coefficients[1] >> coeff_v_c_w_2 = calcul_coefficients[0] >> >> Thank for help. >> >> ________________________________ >> De : cheikh diabang >> Envoy? : jeudi 4 mai 2017 10:42 >> ? : mailing list for gambas users >> Objet : Re: [Gambas-user] Math Operation >> >> Thank you very much Julio Sanchez ?. Its working fine >> >> >> ________________________________ >> De : Julio Sanchez >> Envoy? : jeudi 4 mai 2017 10:30 >> ? : mailing list for gambas users >> Objet : Re: [Gambas-user] Math Operation >> >> cheikh diabang: >> >> In addition if you are going to return several float values, you should put >> float[]... >> >> Function calcul_coefficients(x As Integer, y As Integer, degre As Integer) >> As Float[] >> >> .... >> Dim ArrayABC as new float[] >> .... >> ..... >> ArrayABC.add(A) >> ArrayABC.add(B) >> ArrayABC.add(C) >> >> Return ArrayABC >> >> >> >> Regards, >> >> Julio >> >> 2017-05-04 12:13 GMT+02:00 Tobias Boege : >> >> > On Thu, 04 May 2017, cheikh diabang wrote: >> > > hello. i have write this code below on gambas 3.9.2 and when i run >> that, >> > he indique syntaxe error >> > > >> > > >> > > Function calcul_coefficients(x As Integer, y As Integer, degre As >> > Integer) As Float >> > > 'Dim ak As Float >> > > Dim a As Float >> > > Dim b As Float >> > > Dim c As Float >> > > Dim nbr_coef As Integer >> > > Dim k As Integer >> > > >> > > nbr_coef = degre + 1 >> > > For k = 0 To degre >> > > If k == 0 >> > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ >> > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) >> > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x ^ >> > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) >> > > Else If k == 1 >> > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) >> > > Else If k == 2 >> > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) >> > > Else >> > > Message.Info("unavalaible coefficients") >> > > Next >> > > Return a, b, c >> > > End >> > > >> > > >> > > But i see nothing as error. I need help please >> > >> > Look closer: >> > >> > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * (x >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) >> > > 2(1 / (k + 1)) >> > >> > Since "2" is not a function, you have to write >> > >> > 2*(1 / (k + 1)) >> > >> > Regards, >> > Tobi >> > >> > -- >> > "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas-user Info Page - lists.sourceforge.net > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > >> Gambas-user Info Page - lists.sourceforge.net> lists.sourceforge.net/lists/listinfo/gambas-user> >> lists.sourceforge.net >> To see the collection of prior postings to the list, visit the Gambas-user >> Archives. Using Gambas-user: To post a message to all the list members ... >> >> >> Gambas-user Info Page - lists.sourceforge.net> lists.sourceforge.net/lists/listinfo/gambas-user> >> lists.sourceforge.net >> To see the collection of prior postings to the list, visit the Gambas-user >> Archives. Using Gambas-user: To post a message to all the list members ... >> >> >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas-user Info Page - lists.sourceforge.net > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > >> Gambas-user Info Page - lists.sourceforge.net> lists.sourceforge.net/lists/listinfo/gambas-user> >> lists.sourceforge.net >> To see the collection of prior postings to the list, visit the Gambas-user >> Archives. Using Gambas-user: To post a message to all the list members ... >> >> >> Gambas-user Info Page - lists.sourceforge.net> lists.sourceforge.net/lists/listinfo/gambas-user> >> lists.sourceforge.net >> To see the collection of prior postings to the list, visit the Gambas-user >> Archives. Using Gambas-user: To post a message to all the list members ... >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas-user Info Page - lists.sourceforge.net > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > >> Gambas-user Info Page - lists.sourceforge.net> lists.sourceforge.net/lists/listinfo/gambas-user> >> lists.sourceforge.net >> To see the collection of prior postings to the list, visit the Gambas-user >> Archives. Using Gambas-user: To post a message to all the list members ... >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > Gambas-user Info Page - lists.sourceforge.net > lists.sourceforge.net > To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Fri May 5 08:59:37 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 5 May 2017 08:59:37 +0200 Subject: [Gambas-user] transparency on rotated image In-Reply-To: References: Message-ID: can you send a sample project ? 2017-05-04 18:12 GMT+02:00 Leon Davis : > Using Gambas v3.9.2 and GTK+3 > > After I rotate an image "Image.Rotate(0.03)" I get a background I can't get > rid of. Bug or Feature? Thank you for any assistance. > > Leon > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Fri May 5 09:02:39 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 5 May 2017 09:02:39 +0200 Subject: [Gambas-user] Close If Clicked Outside Form In-Reply-To: <20170504173027.GC606@...3600...> References: <20170504173027.GC606@...3600...> Message-ID: use MyForm.ShowPopup(...) http://gambaswiki.org/wiki/comp/gb.qt4/window/showpopup?l=fr It was made for that :-). 2017-05-04 19:30 GMT+02:00 Tobias Boege : > On Thu, 04 May 2017, herberth guzman wrote: >> Hi >> >> Close If Clicked Outside Form >> >> Is there any way to close a form if it is clicked outside the main form? >> >> For example, just as applets on the network or audio volume or KDE menu. >> > > Try the Deactivate event. The documentation doesn't really state what it > means for a window to be "deactivated" but a quick test shows that this > event is raised when the window ceases to be... the active one, e.g. when > you click outside of it or select another window by Alt+Tab (on my desktop > at least). > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From alexchernoff at ...67... Fri May 5 10:07:06 2017 From: alexchernoff at ...67... (alexchernoff) Date: Fri, 5 May 2017 01:07:06 -0700 (MST) Subject: [Gambas-user] Gambas binary to ELF? In-Reply-To: <20170504101148.GA606@...3600...> References: <1493887244536-58891.post@...3046...> <20170504101148.GA606@...3600...> Message-ID: <1493971626570-58907.post@...3046...> Well thanks Tobias, that's a great idea. The "AXprotector" ELF protector encrypts the executable so it should be safe. Any suggestions how to build such a self-extractor ELF? thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Gambas-binary-to-ELF-tp58891p58907.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Fri May 5 11:20:10 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 5 May 2017 11:20:10 +0200 Subject: [Gambas-user] TryIcon issues Message-ID: I've just upload to Gambas Farm a project called "gbLauncher" it's a utility that uses a TrayIcon with a configurable menu who launch comands and applications, check a pop3 account incoming email notifier and allows you tu send Post-it (Desktop Notes) to your own Desktop or to a remote Desktop using a ftpServer. It works fine, at the moment, but I receive on console this message at start the project: "sni-qt/15988" WARN 11:09:41.654 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE And this others as send the quit command (I use a watch object on my project and needs quit to finish it) gbx3: warning: circular references detected: gbx3: 2 Picture gbx3: warning: 10 allocation(s) non freed. The number of pictures and allocations non freed may vary. I've found that first line ("sni-qt/..." etc.) appears when gb.gui.qt or gb.qt4 is used, but not whith gb.qt5. The others warnings comes from trayIcon. Attach a little project with a tryIcon that shows this behaviour. Best Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: tryiconclosing-0.0.1.tar.gz Type: application/x-gzip Size: 11636 bytes Desc: not available URL: From jussi.lahtinen at ...626... Fri May 5 14:43:17 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 5 May 2017 15:43:17 +0300 Subject: [Gambas-user] Math Operation In-Reply-To: References: <20170504101332.GB606@...3600...> Message-ID: Ah, of course... Jussi On Fri, May 5, 2017 at 9:57 AM, Fabien Bodard wrote: > yes the copy function is not necessary in this case as [a,b,c] return > a new instance on each call > > 2017-05-04 17:21 GMT+02:00 cheikh diabang : > > I think the copy is not necessary. I want just access in one element on > return array. Thank for your help > > > > > > ________________________________ > > De : Jussi Lahtinen > > Envoy? : jeudi 4 mai 2017 15:12 > > ? : mailing list for gambas users > > Objet : Re: [Gambas-user] Math Operation > > > > Declare the function as: > > > > Function calcul_coefficients(x As Integer, y As Integer, degre As > Integer) > > As Float[] > > > > Then return the answer as (this is for convenience as copy returns new > > object instance): > > > > Return [a, b, c].Copy() > > > > > > > > > > Jussi > > > > On Thu, May 4, 2017 at 5:41 PM, cheikh diabang < > cheikhdiabang at ...67...> > > wrote: > > > >> Hi ! i wanna know how recover return value of function in my case. > >> > >> I do that as below, but he said object expected > >> > >> calcul_coefficients(j, iy_v_c_w, 2) > >> coeff_v_c_w_0 = calcul_coefficients[2] > >> coeff_v_c_w_1 = calcul_coefficients[1] > >> coeff_v_c_w_2 = calcul_coefficients[0] > >> > >> Thank for help. > >> > >> ________________________________ > >> De : cheikh diabang > >> Envoy? : jeudi 4 mai 2017 10:42 > >> ? : mailing list for gambas users > >> Objet : Re: [Gambas-user] Math Operation > >> > >> Thank you very much Julio Sanchez ?. Its working fine > >> > >> > >> ________________________________ > >> De : Julio Sanchez > >> Envoy? : jeudi 4 mai 2017 10:30 > >> ? : mailing list for gambas users > >> Objet : Re: [Gambas-user] Math Operation > >> > >> cheikh diabang: > >> > >> In addition if you are going to return several float values, you should > put > >> float[]... > >> > >> Function calcul_coefficients(x As Integer, y As Integer, degre As > Integer) > >> As Float[] > >> > >> .... > >> Dim ArrayABC as new float[] > >> .... > >> ..... > >> ArrayABC.add(A) > >> ArrayABC.add(B) > >> ArrayABC.add(C) > >> > >> Return ArrayABC > >> > >> > >> > >> Regards, > >> > >> Julio > >> > >> 2017-05-04 12:13 GMT+02:00 Tobias Boege : > >> > >> > On Thu, 04 May 2017, cheikh diabang wrote: > >> > > hello. i have write this code below on gambas 3.9.2 and when i run > >> that, > >> > he indique syntaxe error > >> > > > >> > > > >> > > Function calcul_coefficients(x As Integer, y As Integer, degre As > >> > Integer) As Float > >> > > 'Dim ak As Float > >> > > Dim a As Float > >> > > Dim b As Float > >> > > Dim c As Float > >> > > Dim nbr_coef As Integer > >> > > Dim k As Integer > >> > > > >> > > nbr_coef = degre + 1 > >> > > For k = 0 To degre > >> > > If k == 0 > >> > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * > (x ^ > >> > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * > (x ^ > >> > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > Else If k == 1 > >> > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y > * (x > >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > Else If k == 2 > >> > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y > * (x > >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > Else > >> > > Message.Info("unavalaible coefficients") > >> > > Next > >> > > Return a, b, c > >> > > End > >> > > > >> > > > >> > > But i see nothing as error. I need help please > >> > > >> > Look closer: > >> > > >> > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y > * (x > >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > 2(1 / (k + 1)) > >> > > >> > Since "2" is not a function, you have to write > >> > > >> > 2*(1 / (k + 1)) > >> > > >> > Regards, > >> > Tobi > >> > > >> > -- > >> > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > >> > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> > > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From cheikhdiabang at ...67... Fri May 5 17:26:49 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Fri, 5 May 2017 15:26:49 +0000 Subject: [Gambas-user] Math Operation In-Reply-To: References: <20170504101332.GB606@...3600...> , Message-ID: okey, thank you. i have found how to do that. look at below. Dim get_coef As Float[] get_coef = calcul_coefficients(j, iy_v_c_w, 2) coeff_v_c_w_0 = get_coef[2] coeff_v_c_w_1 = get_coef[1] coeff_v_c_w_2 = get_coef[0] Thank you very much ?? ? ________________________________ De : Jussi Lahtinen Envoy? : vendredi 5 mai 2017 12:43 ? : mailing list for gambas users Objet : Re: [Gambas-user] Math Operation Ah, of course... Jussi On Fri, May 5, 2017 at 9:57 AM, Fabien Bodard wrote: > yes the copy function is not necessary in this case as [a,b,c] return > a new instance on each call > > 2017-05-04 17:21 GMT+02:00 cheikh diabang : > > I think the copy is not necessary. I want just access in one element on > return array. Thank for your help > > > > > > ________________________________ > > De : Jussi Lahtinen > > Envoy? : jeudi 4 mai 2017 15:12 > > ? : mailing list for gambas users > > Objet : Re: [Gambas-user] Math Operation > > > > Declare the function as: > > > > Function calcul_coefficients(x As Integer, y As Integer, degre As > Integer) > > As Float[] > > > > Then return the answer as (this is for convenience as copy returns new > > object instance): > > > > Return [a, b, c].Copy() > > > > > > > > > > Jussi > > > > On Thu, May 4, 2017 at 5:41 PM, cheikh diabang < > cheikhdiabang at ...67...> > > wrote: > > > >> Hi ! i wanna know how recover return value of function in my case. > >> > >> I do that as below, but he said object expected > >> > >> calcul_coefficients(j, iy_v_c_w, 2) > >> coeff_v_c_w_0 = calcul_coefficients[2] > >> coeff_v_c_w_1 = calcul_coefficients[1] > >> coeff_v_c_w_2 = calcul_coefficients[0] > >> > >> Thank for help. > >> > >> ________________________________ > >> De : cheikh diabang > >> Envoy? : jeudi 4 mai 2017 10:42 > >> ? : mailing list for gambas users > >> Objet : Re: [Gambas-user] Math Operation > >> > >> Thank you very much Julio Sanchez ?. Its working fine > >> > >> > >> ________________________________ > >> De : Julio Sanchez > >> Envoy? : jeudi 4 mai 2017 10:30 > >> ? : mailing list for gambas users > >> Objet : Re: [Gambas-user] Math Operation > >> > >> cheikh diabang: > >> > >> In addition if you are going to return several float values, you should > put > >> float[]... > >> > >> Function calcul_coefficients(x As Integer, y As Integer, degre As > Integer) > >> As Float[] > >> > >> .... > >> Dim ArrayABC as new float[] > >> .... > >> ..... > >> ArrayABC.add(A) > >> ArrayABC.add(B) > >> ArrayABC.add(C) > >> > >> Return ArrayABC > >> > >> > >> > >> Regards, > >> > >> Julio > >> > >> 2017-05-04 12:13 GMT+02:00 Tobias Boege : > >> > >> > On Thu, 04 May 2017, cheikh diabang wrote: > >> > > hello. i have write this code below on gambas 3.9.2 and when i run > >> that, > >> > he indique syntaxe error > >> > > > >> > > > >> > > Function calcul_coefficients(x As Integer, y As Integer, degre As > >> > Integer) As Float > >> > > 'Dim ak As Float > >> > > Dim a As Float > >> > > Dim b As Float > >> > > Dim c As Float > >> > > Dim nbr_coef As Integer > >> > > Dim k As Integer > >> > > > >> > > nbr_coef = degre + 1 > >> > > For k = 0 To degre > >> > > If k == 0 > >> > > 'ak = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * > (x ^ > >> > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > c = (nbr_coef ^ k * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y * > (x ^ > >> > (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > Else If k == 1 > >> > > b = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y > * (x > >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > Else If k == 2 > >> > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y > * (x > >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > Else > >> > > Message.Info("unavalaible coefficients") > >> > > Next > >> > > Return a, b, c > >> > > End > >> > > > >> > > > >> > > But i see nothing as error. I need help please > >> > > >> > Look closer: > >> > > >> > > a = ((nbr_coef ^ k) * ((x ^ (2(1 / (k + 1)))) * y) - (x * (y > * (x > >> > ^ (- (k - 1)))))) / ((nbr_coef * x ^ 2) - ((x) ^ 2)) > >> > > 2(1 / (k + 1)) > >> > > >> > Since "2" is not a function, you have to write > >> > > >> > 2*(1 / (k + 1)) > >> > > >> > Regards, > >> > Tobi > >> > > >> > -- > >> > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > >> > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> > > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> Gambas-user Info Page - lists.sourceforge.net >> lists.sourceforge.net/lists/listinfo/gambas-user> > >> lists.sourceforge.net > >> To see the collection of prior postings to the list, visit the > Gambas-user > >> Archives. Using Gambas-user: To post a message to all the list members > ... > >> > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net/lists/listinfo/gambas-user> > > lists.sourceforge.net > > To see the collection of prior postings to the list, visit the > Gambas-user Archives. Using Gambas-user: To post a message to all the list > members ... > > > > > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user Gambas-user Info Page - lists.sourceforge.net lists.sourceforge.net To see the collection of prior postings to the list, visit the Gambas-user Archives. Using Gambas-user: To post a message to all the list members ... > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From taboege at ...626... Fri May 5 17:54:09 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 5 May 2017 17:54:09 +0200 Subject: [Gambas-user] Gambas binary to ELF? In-Reply-To: <1493971626570-58907.post@...3046...> References: <1493887244536-58891.post@...3046...> <20170504101148.GA606@...3600...> <1493971626570-58907.post@...3046...> Message-ID: <20170505155409.GA602@...3600...> On Fri, 05 May 2017, alexchernoff wrote: > Well thanks Tobias, that's a great idea. > > The "AXprotector" ELF protector encrypts the executable so it should be > safe. > > Any suggestions how to build such a self-extractor ELF? > > thanks! > Try the attached archive. It contains 3 things: * a simple Gambas project called gbdigest: it uses gb.openssl to hash its input using a digest algorithm that is installed on your system. It also uses gb.args to let you specify the digest algorithm through its -m command-line switch and the output format through the -o switch. The string to hash is the list of all the non-options you specify on the command-line or, if that list is empty, it reads each line from stdin. These mechanics serve to demonstrate a lot of things: the ELF wrapper allows you to execute a Gambas program that was compiled into it. Loading Gambas components written in C (gb.openssl) and in Gambas (gb.args) works. The command-line arguments and standard file descriptors are properly passed from the ELF wrapper to the Gambas process. * mkelf-template.c: template C code for the ELF wrapper. * mkelf.sh: uses the xxd utility (included in the vim package) and mkelf-template.c to compile an ELF program which executes a given Gambas program. The executable Gambas archive (.gambas file) is embedded into the ELF file. Here is an example usage: ## Unpack the archive [~]$ tar -zxf gambaself.tar.gz [~]$ cd gambaself ## Create an ELF wrapper "mydigest" for the Gambas program "gbdigest.gambas" [gambaself]$ ./mkelf.sh gbdigest.gambas mydigest [gambaself]$ file mydigest mydigest: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, [...] ## Start the program, request its --help. As you can see the program name is set to "gbdigest.gambas" [gambaself]$ ./mydigest --help Usage: gbdigest.gambas Options: -m --method Digest method -o --outformat Output format of digest: raw|hex|base64 -V --version Display version -h --help Display this help ## You can verify its output by using md5sum from coreutils [gambaself]$ ./mydigest -o hex abc # Arguments passing test 900150983cd24fb0d6963f7d28e17f72 [gambaself]$ echo "abc" | ./mydigest -o hex # Reading from stdin test 900150983cd24fb0d6963f7d28e17f72 [gambaself]$ echo -n "abc" | md5sum 900150983cd24fb0d6963f7d28e17f72 - ## Again with sha256sum [gambaself]$ ./mydigest -m sha256 -o hex abc ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad [gambaself]$ echo -n abc | sha256sum ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad - There is one big problem though. The Gambas interpreter (gbr3 for .gambas files) requires, AFAIK, a real file as input. I included a long comment in the mkelf-template.c file about that, but I might as well parrot its contents here. I think this is because the interpreter, when loading an archive file, uses mmap() on it. This is probably what makes it impossible to use a FIFO to pass the Gambas archive file, which resides in memory in the "mydigest" process, on to the gbr3 process to have it executed. Currently the template takes the Gambas archive and puts it into a temporary file which is then read by a gbr3 process and after that the temporary file is removed. But there is a very long window where the Gambas executable is somewhere on disk, which makes all your protection of the ELF file useless. I bet you can change the interpreter into accepting Gambas executables from FIFOs, but you have to decide for yourself if you want to do that. It may just be that you have to replace that particular mmap() call in main/share/gb_arch_temp.h:load_arch() with a read() or so, but it could also require much more effort -- I haven't look into it. Or you get another idea for avoiding the temporary file. But this has reached a point of hackiness where I should probably stop giving you ideas. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: gambaself.tar.gz Type: application/octet-stream Size: 15005 bytes Desc: not available URL: From shordi at ...626... Fri May 5 22:33:06 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 5 May 2017 22:33:06 +0200 Subject: [Gambas-user] TryIcon issues In-Reply-To: References: Message-ID: I must apologize about a mistake on the gbLauncher 0.1.4 uploaded this morning to Gambas's Farm. Usually I use my home language (spanish) to variable names etc. Before upload to gambas farm I translate the variables to a understandable english version... but I forgot translate de settings variable names... I've fixed it in 0.1.5 version and upload to the farm. All you have to do is download it again. Sorry about the noise. Best regards 2017-05-05 11:20 GMT+02:00 Jorge Carri?n : > I've just upload to Gambas Farm a project called "gbLauncher" it's a > utility that uses a TrayIcon with a configurable menu who launch comands > and applications, check a pop3 account incoming email notifier and allows > you tu send Post-it (Desktop Notes) to your own Desktop or to a remote > Desktop using a ftpServer. > It works fine, at the moment, but I receive on console this message at > start the project: > > "sni-qt/15988" WARN 11:09:41.654 void StatusNotifierItemFactory::connectToSnw() > Invalid interface to SNW_SERVICE > > And this others as send the quit command (I use a watch object on my > project and needs quit to finish it) > > gbx3: warning: circular references detected: > gbx3: 2 Picture > gbx3: warning: 10 allocation(s) non freed. > > The number of pictures and allocations non freed may vary. > > I've found that first line ("sni-qt/..." etc.) appears when gb.gui.qt or > gb.qt4 is used, but not whith gb.qt5. The others warnings comes from > trayIcon. > > Attach a little project with a tryIcon that shows this behaviour. > > Best Regards > > From leondavisjr at ...626... Sat May 6 06:17:55 2017 From: leondavisjr at ...626... (Leon Davis) Date: Fri, 5 May 2017 23:17:55 -0500 Subject: [Gambas-user] transparency on rotated image In-Reply-To: References: Message-ID: See attached On Fri, May 5, 2017 at 1:59 AM, Fabien Bodard wrote: > can you send a sample project ? > > 2017-05-04 18:12 GMT+02:00 Leon Davis : > > Using Gambas v3.9.2 and GTK+3 > > > > After I rotate an image "Image.Rotate(0.03)" I get a background I can't > get > > rid of. Bug or Feature? Thank you for any assistance. > > > > Leon > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > 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: RotateImage.tar.gz Type: application/x-gzip Size: 95253 bytes Desc: not available URL: From charlie at ...2793... Sat May 6 15:42:21 2017 From: charlie at ...2793... (Charlie) Date: Sat, 6 May 2017 06:42:21 -0700 (MST) Subject: [Gambas-user] transparency on rotated image In-Reply-To: References: Message-ID: <1494078141203-58914.post@...3046...> If you change: - *sImg.drawImage(sImg2)* to *sImg.PaintImage(sImg2, 0, 0)* and *sImg.DrawImage(sImg2, 50, 50)* to *sImg.PaintImage(sImg2, 50, 50)* It seems to help, see the help section on PaintImage. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/transparency-on-rotated-image-tp58901p58914.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Sat May 6 16:44:30 2017 From: charlie at ...2793... (Charlie) Date: Sat, 6 May 2017 07:44:30 -0700 (MST) Subject: [Gambas-user] TryIcon issues In-Reply-To: References: Message-ID: <1494081870702-58915.post@...3046...> Try the following code: - *Public Sub form_Open() TrayIcon1.Visible = True End Public Sub Menu4_Click() TrayIcon1.Visible = False Me.Close End* The use of *Quit* is not recommended see http://gambaswiki.org/wiki/lang/quit I used *gb.gui* to get rid of the last error ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/TryIcon-issues-tp58908p58915.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Sat May 6 19:57:00 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 6 May 2017 19:57:00 +0200 Subject: [Gambas-user] TryIcon issues In-Reply-To: <1494081870702-58915.post@...3046...> References: <1494081870702-58915.post@...3046...> Message-ID: Thanks Charlie it works... almost. I used Quit command because in my project I have a watch class object, from gb.inotify component, and a project doesn't end if there is a watch active. I change de code to: mywachobject.Pause miwachobject = Null TrayIcon1.visible = False Me.Close And now it closes perfect. Thanks again. Best regards 2017-05-06 16:44 GMT+02:00 Charlie : > Try the following code: - > *Public Sub form_Open() > TrayIcon1.Visible = True > End > Public Sub Menu4_Click() > TrayIcon1.Visible = False > Me.Close > End* > The use of *Quit* is not recommended see > http://gambaswiki.org/wiki/lang/quit > > I used *gb.gui* to get rid of the last error > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/TryIcon-issues-tp58908p58915.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Sat May 6 23:11:22 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 06 May 2017 21:11:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1093: Short cut keys not working for gb.qt5 menu if parent menu caption is blank In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1093&from=L21haW4- Comment #1 by Beno?t MINISINI: Apparently it works in the development version. Can you try it? From leondavisjr at ...626... Sun May 7 14:35:52 2017 From: leondavisjr at ...626... (Leon Davis) Date: Sun, 7 May 2017 07:35:52 -0500 Subject: [Gambas-user] transparency on rotated image In-Reply-To: <1494078141203-58914.post@...3046...> References: <1494078141203-58914.post@...3046...> Message-ID: This solved my issue. Thank you very much. While I have your eyes. Is there a way to add text to an image? On Sat, May 6, 2017 at 8:42 AM, Charlie wrote: > If you change: - > *sImg.drawImage(sImg2)* to *sImg.PaintImage(sImg2, 0, 0)* > and > *sImg.DrawImage(sImg2, 50, 50)* to *sImg.PaintImage(sImg2, 50, 50)* > It seems to help, see the help section on PaintImage. > > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/transparency-on-rotated-image-tp58901p58914.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Sun May 7 15:44:22 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 7 May 2017 15:44:22 +0200 Subject: [Gambas-user] transparency on rotated image In-Reply-To: References: <1494078141203-58914.post@...3046...> Message-ID: You can take a look here: http://gambas.8142.n7.nabble.com/How-to-add-subitems-to-a-ListView-td56846.html#a56851 Regards Gianluigi 2017-05-07 14:35 GMT+02:00 Leon Davis : > This solved my issue. Thank you very much. While I have your eyes. Is there > a way to add text to an image? > > On Sat, May 6, 2017 at 8:42 AM, Charlie wrote: > > > If you change: - > > *sImg.drawImage(sImg2)* to *sImg.PaintImage(sImg2, 0, 0)* > > and > > *sImg.DrawImage(sImg2, 50, 50)* to *sImg.PaintImage(sImg2, 50, 50)* > > It seems to help, see the help section on PaintImage. > > > > > > > > > > ----- > > Check out www.gambas.one > > -- > > View this message in context: http://gambas.8142.n7.nabble. > > com/transparency-on-rotated-image-tp58901p58914.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Sun May 7 19:07:37 2017 From: charlie at ...2793... (Charlie) Date: Sun, 7 May 2017 10:07:37 -0700 (MST) Subject: [Gambas-user] transparency on rotated image In-Reply-To: References: <1494078141203-58914.post@...3046...> Message-ID: <1494176857212-58920.post@...3046...> Leon Davis wrote > While I have your eyes. Is there a way to add text to an image? Check out the good work done in 'Painting' which is in the Gambas Farm. Look at 'Example17' ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/transparency-on-rotated-image-tp58901p58920.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Sun May 7 19:08:48 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 07 May 2017 17:08:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1093: Short cut keys not working for gb.qt5 menu if parent menu caption is blank In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1093&from=L21haW4- Comment #2 by Safiur RAHMAN: I updates gambas3 using ppa:gambas-team/gambas-daily in ubuntu 16.04. I used the same project I sent to you in previous mail. However the short cut keys are not working in gb.qt5 but working as usual in gb.qt4 . From bugtracker at ...3416... Sun May 7 19:47:04 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 07 May 2017 17:47:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1097: Date.ToUnixTime loses a day In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1097&from=L21haW4- Comment #4 by T. Lee DAVIDSON: Revision #8133 apparently has not hit the Packman repo yet. But, I can confirm that: DateDiff(Date(1970, 1, 1), Now, gb.Second) + System.TimeZone produces output that matches: Shell "date +%s" Thank you, Beno?t. T. Lee DAVIDSON changed the state of the bug to: Fixed. From fernandojosecabral at ...626... Mon May 8 12:55:42 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 8 May 2017 07:55:42 -0300 Subject: [Gambas-user] Editing still blocked Message-ID: I really need your help. I can't edit any code. Everything is locked. I have even taken two extreme measures: changed the whole directory tree to 777 (chmod-R 777 .) and re-installed gambas from scratch (this time using the PPA). Still does not work. Perhaps there is a specific file that tells gambas to keep the whole thing locked. Isn't there? I'd appreciate if someone can give me some more ideas to try. Regards - fernando -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From charlie at ...2793... Mon May 8 13:43:31 2017 From: charlie at ...2793... (Charlie) Date: Mon, 8 May 2017 04:43:31 -0700 (MST) Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: <1494243811259-58924.post@...3046...> Have you checked the Edit menu, there is a 'Locked' feature there. This is just a guess as 'Everything is locked' is a little vague. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Editing-still-blocked-tp58923p58924.html Sent from the gambas-user mailing list archive at Nabble.com. From fernandojosecabral at ...626... Mon May 8 14:37:34 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 8 May 2017 09:37:34 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: <1494243811259-58924.post@...3046...> References: <1494243811259-58924.post@...3046...> Message-ID: > 2017-05-08 8:43 GMT-03:00 Charlie wrote: > Have you checked the Edit menu, there is a 'Locked' feature there. This is > just a guess as 'Everything is locked' is a little vague. Charlie, unfortunately, "everything is locked" means what it is supposed to mean: I can't edit anything. No application, no source, nothing. I can load any project, but when I try to edit anything -- like say, entering a new line or even a new character, the gambas editor does not respond. This applies to any and every project I load. Yes, I have tried locking and unlocking clicking on the lock icon. The only thing that changes is that on the tab appears the warning "Read only". But the editing continues locked no matter what. I have changed project files and directories do 777 (rwxrwxrwx) but stil to no avail. Even if I create a new project, it is born locked for editing. Regards - fernando 2017-05-08 8:43 GMT-03:00 Charlie : > Have you checked the Edit menu, there is a 'Locked' feature there. This is > just a guess as 'Everything is locked' is a little vague. > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Editing-still-blocked-tp58923p58924.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From jussi.lahtinen at ...626... Mon May 8 15:03:55 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 8 May 2017 16:03:55 +0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <1494243811259-58924.post@...3046...> Message-ID: So Gambas IDE does *not* claim the project is locked, but you simply cannot edit anything. Can you give your system information? Jussi On Mon, May 8, 2017 at 3:37 PM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > > 2017-05-08 8:43 GMT-03:00 Charlie wrote: > > Have you checked the Edit menu, there is a 'Locked' feature there. This > is > > just a guess as 'Everything is locked' is a little vague. > > Charlie, unfortunately, "everything is locked" means what it is supposed to > mean: I can't edit anything. No application, no source, nothing. I can load > any project, but when I try to edit anything -- like say, entering a new > line or even a new character, > the gambas editor does not respond. This applies to any and every project I > load. > > Yes, I have tried locking and unlocking clicking on the lock icon. The only > thing that changes is that on the tab appears the warning "Read only". But > the editing continues locked no matter what. > > I have changed project files and directories do 777 (rwxrwxrwx) but stil to > no avail. > > Even if I create a new project, it is born locked for editing. > > Regards > > - fernando > > 2017-05-08 8:43 GMT-03:00 Charlie : > > > Have you checked the Edit menu, there is a 'Locked' feature there. This > is > > just a guess as 'Everything is locked' is a little vague. > > > > > > > > ----- > > Check out www.gambas.one > > -- > > View this message in context: http://gambas.8142.n7.nabble. > > com/Editing-still-blocked-tp58923p58924.html > > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 > Telefone celular: +55 (37) 99988-8868 > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fernandojosecabral at ...626... Mon May 8 15:20:42 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 8 May 2017 10:20:42 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <1494243811259-58924.post@...3046...> Message-ID: 2017-05-08 10:03 GMT-03:00 Jussi Lahtinen wrote: > So Gambas IDE does *not* claim the project is locked, but you simply > cannot edit anything. Can you give your system information? > Precisely. Linux Inspiron-5537 4.8.0-49-generic #52~16.04.1-Ubuntu SMP Thu Apr 20 10:55:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux That, in fact, is Linux Mint 8.1 Serena. Thank you. - fernando > > Jussi > > On Mon, May 8, 2017 at 3:37 PM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > >> > 2017-05-08 8:43 GMT-03:00 Charlie wrote: >> > Have you checked the Edit menu, there is a 'Locked' feature there. This >> is >> > just a guess as 'Everything is locked' is a little vague. >> >> Charlie, unfortunately, "everything is locked" means what it is supposed >> to >> mean: I can't edit anything. No application, no source, nothing. I can >> load >> any project, but when I try to edit anything -- like say, entering a new >> line or even a new character, >> the gambas editor does not respond. This applies to any and every project >> I >> load. >> >> Yes, I have tried locking and unlocking clicking on the lock icon. The >> only >> thing that changes is that on the tab appears the warning "Read only". But >> the editing continues locked no matter what. >> >> I have changed project files and directories do 777 (rwxrwxrwx) but stil >> to >> no avail. >> >> Even if I create a new project, it is born locked for editing. >> >> Regards >> >> - fernando >> >> 2017-05-08 8:43 GMT-03:00 Charlie : >> >> > Have you checked the Edit menu, there is a 'Locked' feature there. This >> is >> > just a guess as 'Everything is locked' is a little vague. >> > >> > >> > >> > ----- >> > Check out www.gambas.one >> > -- >> > View this message in context: http://gambas.8142.n7.nabble. >> > com/Editing-still-blocked-tp58923p58924.html >> > Sent from the gambas-user mailing list archive at Nabble.com. >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> >> -- >> Fernando Cabral >> Blogue: http://fernandocabral.org >> Twitter: http://twitter.com/fjcabral >> e-mail : fernandojosecabral at ...626... >> Facebook: f at ...3654... >> Telegram: +55 (37) 99988-8868 >> Wickr ID: fernandocabral >> WhatsApp: +55 (37) 99988-8868 >> Skype: fernandojosecabral >> Telefone fixo: +55 (37) 3521-2183 >> Telefone celular: +55 (37) 99988-8868 >> >> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >> nenhum pol?tico ou cientista poder? se gabar de nada. >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From jussi.lahtinen at ...626... Mon May 8 15:43:40 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 8 May 2017 16:43:40 +0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <1494243811259-58924.post@...3046...> Message-ID: Anyone else using Gambas on Linux Mint 18.1 ? Everything working? Issues? Can you please go to Gambas IDE Menu "?" --> "System informations" and copy & paste the result, if you can. If you have virtual machine set up, maybe you could try some other system / work there meanwhile. Jussi On Mon, May 8, 2017 at 4:20 PM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > 2017-05-08 10:03 GMT-03:00 Jussi Lahtinen > wrote: > >> So Gambas IDE does *not* claim the project is locked, but you simply >> cannot edit anything. Can you give your system information? >> > > Precisely. > > Linux Inspiron-5537 4.8.0-49-generic #52~16.04.1-Ubuntu SMP Thu Apr 20 > 10:55:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux > > That, in fact, is Linux Mint 8.1 Serena. > > Thank you. > > - fernando > >> >> Jussi >> >> On Mon, May 8, 2017 at 3:37 PM, Fernando Cabral < >> fernandojosecabral at ...626...> wrote: >> >>> > 2017-05-08 8:43 GMT-03:00 Charlie wrote: >>> > Have you checked the Edit menu, there is a 'Locked' feature there. >>> This is >>> > just a guess as 'Everything is locked' is a little vague. >>> >>> Charlie, unfortunately, "everything is locked" means what it is supposed >>> to >>> mean: I can't edit anything. No application, no source, nothing. I can >>> load >>> any project, but when I try to edit anything -- like say, entering a new >>> line or even a new character, >>> the gambas editor does not respond. This applies to any and every >>> project I >>> load. >>> >>> Yes, I have tried locking and unlocking clicking on the lock icon. The >>> only >>> thing that changes is that on the tab appears the warning "Read only". >>> But >>> the editing continues locked no matter what. >>> >>> I have changed project files and directories do 777 (rwxrwxrwx) but stil >>> to >>> no avail. >>> >>> Even if I create a new project, it is born locked for editing. >>> >>> Regards >>> >>> - fernando >>> >>> 2017-05-08 8:43 GMT-03:00 Charlie : >>> >>> > Have you checked the Edit menu, there is a 'Locked' feature there. >>> This is >>> > just a guess as 'Everything is locked' is a little vague. >>> > >>> > >>> > >>> > ----- >>> > Check out www.gambas.one >>> > -- >>> > View this message in context: http://gambas.8142.n7.nabble. >>> > com/Editing-still-blocked-tp58923p58924.html >>> > Sent from the gambas-user mailing list archive at Nabble.com. >>> > ------------------------------------------------------------ >>> > ------------------ >>> > Check out the vibrant tech community on one of the world's most >>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> >>> >>> -- >>> Fernando Cabral >>> Blogue: http://fernandocabral.org >>> Twitter: http://twitter.com/fjcabral >>> e-mail : fernandojosecabral at ...626... >>> Facebook: f at ...3654... >>> Telegram: +55 (37) 99988-8868 >>> Wickr ID: fernandocabral >>> WhatsApp: +55 (37) 99988-8868 >>> Skype: fernandojosecabral >>> Telefone fixo: +55 (37) 3521-2183 >>> Telefone celular: +55 (37) 99988-8868 >>> >>> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >>> nenhum pol?tico ou cientista poder? se gabar de nada. >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> > Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > > From rwe-sse at ...3629... Mon May 8 15:57:21 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Mon, 08 May 2017 15:57:21 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: <59107941.7070407@...3629...> Am 08.05.2017 12:55, schrieb Fernando Cabral: > I really need your help. I can't edit any code. Everything is locked. I > have even taken two extreme measures: changed the whole directory tree to > 777 (chmod-R 777 .) and re-installed gambas from scratch (this time using > the PPA). > > Still does not work. Perhaps there is a specific file that tells gambas > to keep the whole thing locked. Isn't there? > > I'd appreciate if someone can give me some more ideas to try. > > Regards > > - fernando > > Are these projects which you have coded yourself, saved and then closed and opened again? Or are these project which were made by others? In the past (before software farm), there used to be the problem that when I loaded one of the examples offered on the website, they could be run but not edited. It's not that problem, is it? It was the rights thing, but not chmod but chown which caused it. Or maybe you loaded your own stuff from another machine where your username has another Uid? There is a lock-file, but it will only cause Gambas asking if you are sure you are not working with the project already before loading it into the IDE. Regards Rolf From olivier.cruilles at ...614... Mon May 8 16:05:33 2017 From: olivier.cruilles at ...614... (Yahoo) Date: Mon, 8 May 2017 10:05:33 -0400 Subject: [Gambas-user] Question about webForm object Message-ID: Benoit, I?m playing with webForm object for a new project and I try to render a FormWeb over a module ?Main? executed as startup rather than define the FormWeb as default startup object. Example: Module Main ' Gambas module file Public Sub Main() ? ? Some functions executed here ? ? before Render the FormWeb ? ? == > Ex: ModTrans.Creation_List_Langue() ? ? Render the FormWeb ? FormWebMain.Render() End It works using Main module but the render is not exactly the same than when the FormWeb is defined as default startup. For example, the contraints in the web page are not applied using Main module but work fine when FormWeb start directly. So, is it possible to render a FormWeb using .Render() property or it?s a bad idea ? Thank you for the answer. ?? Olivier Cruilles From karl.reinl at ...9... Mon May 8 16:11:31 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Mon, 08 May 2017 16:11:31 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <1494243811259-58924.post@...3046...> Message-ID: <1494252691.13882.8.camel@...3609...> Am Montag, den 08.05.2017, 09:37 -0300 schrieb Fernando Cabral: > > 2017-05-08 8:43 GMT-03:00 Charlie wrote: > > Have you checked the Edit menu, there is a 'Locked' feature there. This is > > just a guess as 'Everything is locked' is a little vague. > > Charlie, unfortunately, "everything is locked" means what it is supposed to > mean: I can't edit anything. No application, no source, nothing. I can load > any project, but when I try to edit anything -- like say, entering a new > line or even a new character, > the gambas editor does not respond. This applies to any and every project I > load. > > Yes, I have tried locking and unlocking clicking on the lock icon. The only > thing that changes is that on the tab appears the warning "Read only". But > the editing continues locked no matter what. > > I have changed project files and directories do 777 (rwxrwxrwx) but stil to > no avail. > > Even if I create a new project, it is born locked for editing. > > Regards > > - fernando Salut Fernando, what#s about creating a new project ? If I remember well you compile your gambas3 from source, isn't it. What I would try at your point, deleting the gambas3 installation and restating from scratch. Oh, have you had a gambas3 installation from other resources? If yes you have to remove that first. . -- Amicalement Charlie From gambas at ...1... Mon May 8 17:58:44 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 May 2017 17:58:44 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Le 08/05/2017 ? 12:55, Fernando Cabral a ?crit : > I really need your help. I can't edit any code. Everything is locked. I > have even taken two extreme measures: changed the whole directory tree to > 777 (chmod-R 777 .) and re-installed gambas from scratch (this time using > the PPA). > > Still does not work. Perhaps there is a specific file that tells gambas > to keep the whole thing locked. Isn't there? > > I'd appreciate if someone can give me some more ideas to try. > > Regards > > - fernando > > Can you send a tar.gz archive of your project directory? -- Beno?t Minisini From alexchernoff at ...67... Mon May 8 18:13:04 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 8 May 2017 09:13:04 -0700 (MST) Subject: [Gambas-user] Serial I/O with byte data Message-ID: <1494259984658-58933.post@...3046...> Dear all, I am receiving data over a serial port which is sent by a byte[].write function (an array of bytes) I get the SerialPort1_read() event raised where I try to read data, RxBuffer is a string var *Try Read #SerialPort1, RxBuffer, Lof(SerialPort1)* as soon as I do, the whole program stops, some other timers in other modules also stop to fire. In fact when running the program in Gambas again, it does not execute even the startup, so have to restart the IDE. what am I doing wrong? thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Mon May 8 18:36:07 2017 From: charlie at ...2793... (Charlie) Date: Mon, 8 May 2017 09:36:07 -0700 (MST) Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <1494243811259-58924.post@...3046...> Message-ID: <1494261367848-58934.post@...3046...> Jussi Lahtinen wrote > Anyone else using Gambas on Linux Mint 18.1 ? Everything working? > Issues?Can you please go to Gambas IDE Menu "?" --> "System informations" > and copy& paste the result, if you can. I use Mint 18.1 without any problems, installed from the ppa using: - sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3 System Information: - [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.0-21-generic Architecture=x86_64 Distribution=Linux Mint 18.1 Serena Desktop=CINNAMON Theme=Gtk Language=en_GB.UTF-8 Memory=7855M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=3.2.7 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-saVglEvzGG,guid=abe9145f73d18c95bf18421d59108efc DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=5810 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME=/home/ LANG=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=en_GB.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/ QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/2283,unix/:/tmp/.ICE-unix/2283 SHELL=/bin/bash SSH_AGENT_PID=2353 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=2a5d5f96ef9147c0b35535562b32d0ff-1494257404.496553-740014225 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=8 ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Editing-still-blocked-tp58923p58934.html Sent from the gambas-user mailing list archive at Nabble.com. From fernandojosecabral at ...626... Mon May 8 19:32:11 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 8 May 2017 14:32:11 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: <1494252691.13882.8.camel@...3609...> References: <1494243811259-58924.post@...3046...> <1494252691.13882.8.camel@...3609...> Message-ID: Karl wrote: > Are these projects which you have coded yourself, saved and then closed > and opened again? Or are these project which were made by others? [...] > In the past (before software farm), there used to be the problem that > when I loaded one of the examples offered on the website, they could be > run but not edited. It's not that problem, is it? It was the rights > thing, but not chmod but chown which caused it. Or maybe you loaded your > own stuff from another machine where your username has another Uid? I did the code myself. Nevertheless, the problem appeared after I had downloaded docEditor from the farm. After that, editing has been locked. But I can't affirm there is a cause/effect here.For the time being, I see it as a coincidence. Regards - fernando 2017-05-08 11:11 GMT-03:00 Karl Reinl : > Am Montag, den 08.05.2017, 09:37 -0300 schrieb Fernando Cabral: > > > 2017-05-08 8:43 GMT-03:00 Charlie wrote: > > > Have you checked the Edit menu, there is a 'Locked' feature there. > This is > > > just a guess as 'Everything is locked' is a little vague. > > > > Charlie, unfortunately, "everything is locked" means what it is supposed > to > > mean: I can't edit anything. No application, no source, nothing. I can > load > > any project, but when I try to edit anything -- like say, entering a new > > line or even a new character, > > the gambas editor does not respond. This applies to any and every > project I > > load. > > > > Yes, I have tried locking and unlocking clicking on the lock icon. The > only > > thing that changes is that on the tab appears the warning "Read only". > But > > the editing continues locked no matter what. > > > > I have changed project files and directories do 777 (rwxrwxrwx) but stil > to > > no avail. > > > > Even if I create a new project, it is born locked for editing. > > > > Regards > > > > - fernando > > Salut Fernando, > > what#s about creating a new project ? > > If I remember well you compile your gambas3 from source, isn't it. > What I would try at your point, deleting the gambas3 installation and > restating from scratch. > > Oh, have you had a gambas3 installation from other resources? > If yes you have to remove that first. > . > > -- > Amicalement > Charlie > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From fernandojosecabral at ...626... Mon May 8 19:38:42 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 8 May 2017 14:38:42 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: >Can you send a tar.gz archive of your project directory? I am sending one. Do you need them all? (tar compressed) Regards - fernando -------------- next part -------------- A non-text attachment was scrubbed... Name: legibilidade Type: application/octet-stream Size: 36335 bytes Desc: not available URL: From gambas at ...1... Mon May 8 19:42:29 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 8 May 2017 19:42:29 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: <11624935-d6f0-c86d-f89b-e6905918c342@...1...> Le 08/05/2017 ? 19:38, Fernando Cabral a ?crit : > >Can you send a tar.gz archive of your project directory? > > I am sending one. Do you need them all? > (tar compressed) > > Regards > > - fernando > The joined file does not have the .tag.gz extension... -- Beno?t Minisini From mike.crean at ...2897... Tue May 9 03:27:20 2017 From: mike.crean at ...2897... (Mike Crean) Date: Tue, 9 May 2017 01:27:20 +0000 (UTC) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1494259984658-58933.post@...3046...> References: <1494259984658-58933.post@...3046...> Message-ID: <958815257.2912974.1494293240578@...3424...> Hi Alex, have a look at this code for some ideas how I have serial comms working. ' Gambas class file Private Sport As SerialPort Public Pp As Byte Public Po As Byte Public Rxs As String Public Sub Form_Open() ? Me.Load ? Me.Center End Public Sub Button2_Click() ? Sport = New SerialPort As "Sport" ? Po = 1 ?? ? If TextBox3.Text = "N" Or TextBox3.Text = "n" Then ??? pp = 0 ? End If ?? ? With Sport ??? .PortName = TextBox1.Text ??? .Speed = TextBox2.Text ??? .Parity = Pp ??? .DataBits = TextBox4.Text ??? .StopBits = TextBox5.Text ??? .FlowControl = Val(TextBox6.text) ? Try ??? .Open() ??? Label9.Text = TextBox1.Text & ":" & TextBox2.Text & "," & TextBox3.Text & "," & TextBox4.Text & "," & TextBox5.Text & "? OPEN" ??? Label10.Background = &H00FF00&?? ??? If Error Then ????? Message(" Port " & TextBox1.Text & " not found -- TERMINATING PROGRAM") ????? Quit ??? Endif ? End With End Public Sub Sport_Read() ? Dim Rx As String ? Read #Sport, Rx, Lof(Sport) ? Rxs = Rxs & Rx ? If Rx = Chr$(13) Then ??? TextArea1.Text = TextArea1.Text & Rxs ??? Rxs = "" ? End If End Public Sub Button1_Click() ? If Po = 0 Then ??? Message("Open the PORT") ? Else ??? Print #Sport, Textbox7.Text; Chr$(13) ? End If End Public Sub Button3_Click() ? Sport.Close ? Label10.Background = &HFF0000& ? Label9.Text = "CLOSED" ? Po = 0 End Public Sub Button4_Click() ? TextArea1.Clear End Public Sub Button5_Click() ? EndIt()?? End Public Sub Form_Close() ? EndIt() End Public Sub EndIt() ? Try ??? Sport.Close ??? Quit ? If Error Then ??? Quit?? ? Endif End RegardsMike On Tuesday, 9 May 2017, 0:12, alexchernoff wrote: Dear all, I am receiving data over a serial port which is sent by a byte[].write function (an array of bytes) I get the SerialPort1_read() event raised where I try to read data, RxBuffer is a string var *Try Read #SerialPort1, RxBuffer, Lof(SerialPort1)* as soon as I do, the whole program stops, some other timers in other modules also stop to fire. In fact when running the program in Gambas again, it does not execute even the startup, so have to restart the IDE. what am I doing wrong? thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ 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: CommsLayout800-300x212.jpg Type: image/jpeg Size: 16433 bytes Desc: not available URL: From alexchernoff at ...67... Tue May 9 07:45:11 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 8 May 2017 22:45:11 -0700 (MST) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <958815257.2912974.1494293240578@...3424...> References: <1494259984658-58933.post@...3046...> <958815257.2912974.1494293240578@...3424...> Message-ID: <1494308711746-58939.post@...3046...> Thanks Mike, what I have is pretty much the same, it's this line that causes everything to stop. *Read #Sport, Rx, Lof(Sport) * A very similar program written in Xojo on the same system using same serial port works just fine. In Gambas, things just stop executing as soon as I do a Read on that port... -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58939.html Sent from the gambas-user mailing list archive at Nabble.com. From nando_f at ...951... Tue May 9 14:10:33 2017 From: nando_f at ...951... (nando_f at ...951...) Date: Tue, 9 May 2017 08:10:33 -0400 Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1494308711746-58939.post@...3046...> References: <1494259984658-58933.post@...3046...> <958815257.2912974.1494293240578@...3424...> <1494308711746-58939.post@...3046...> Message-ID: <20170509115832.M60334@...951...> I have used Gambas serial port for 12 years now without problems. If there is nothing in the serial port queue, then that line might block. I use this: . . . L=Lof(Sport) 'how much is there now? if L>1 then L=L-1 'leave at least one byte for next time around. if L>0 then Read #Sport, Rx, L 'get all less one byte Rx_all = Rx_all + Rx 'combine this piece into the whole receive string. Rx="" 'just in case it loops around, don't re-read Rx. . . . Most importantly, please do not think that just one READ will retrieve a whole line or chunk of data from your serial port. It will get only part of it because your computer reads bytes much faster and empties the receiver buffer much faster than data send over RS232. -Fernando -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: alexchernoff To: gambas-user at lists.sourceforge.net Sent: Mon, 8 May 2017 22:45:11 -0700 (MST) Subject: Re: [Gambas-user] Serial I/O with byte data > Thanks Mike, > > what I have is pretty much the same, it's this line that causes everything > to stop. > > *Read #Sport, Rx, Lof(Sport) * > > A very similar program written in Xojo on the same system using same serial > port works just fine. In Gambas, things just stop executing as soon as I do > a Read on that port... > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with- > byte-data-tp58933p58939.html Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From bugtracker at ...3416... Tue May 9 19:16:21 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 09 May 2017 17:16:21 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1103: no border change on a imageview control. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1103&from=L21haW4- Klaus-Peter MAIS reported a new bug. Summary ------- no border change on a imageview control. Type : Bug Priority : Medium Gambas version : 3.9 Product : Unknown Description ----------- If I want to change the border property in an imageview control, it always gets the value "false". The change is dynamic in the code. I think this is a bug. when you use only the ide, no problem. you can change the border param in the ide. but dynamicly no chance. here a little code. put this in a empty form. when you use an other control (button etc.) - no problem. you can switch between true and false. but the imageview can not store a "true" input. Private myButton As New Button(Me) As "mBEvent" Private myText As New TextLabel(Me) Private myIView As New ImageView(Me) Public Sub form_Open() With myButton .H = 35 .w = 100 .x = 20 .y = 50 End With With myText .H = 30 .W = 180 .X = 7 .Y = 105 End With With myIView .H = 130 .W = 200 .X = 190 .Y = 50 End With End Public Sub mbevent_Click() Select Case myIView.Border Case False myText.Text = conBool(myIView.Border) myIView.Border = True Case True myIView.Border = False myText.Text = conBool(myIView.Border) End Select End Static Public Sub conBool(myVar As Variant) As String Select Case TypeOf(myVar) Case 1 Select Case myVar Case True Return "True" Case False Return "False" End Select End Select End System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.0-77-generic Architecture=x86_64 Distribution=Linux Mint 18 Sarah Desktop=LXDE Theme=Gtk Language=de_DE.UTF-8 Memory=3632M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-4VEy9eiJtl,guid=9a50d692646bed66c9835da75911c06f DEFAULTS_PATH=/usr/share/gconf/LXDE.default.path DESKTOP_SESSION=LXDE DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=LXDE GDM_XSERVER_LOCATION=local GTK_MODULES=gail:atk-bridge HOME= LANG=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_NUMERIC=de_DE.UTF-8 LC_PAPER=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/LXDE.mandatory.path MDMSESSION=LXDE MDM_LANG=de_DE.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=gtk SHELL=/bin/bash SSH_AGENT_PID=1891 SSH_AUTH_SOCK=/tmp/ssh-tICDjAy3fB2Q/agent.1772 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-LXDE:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/ XDG_MENU_PREFIX=lxde- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=4603ef0b0eb640e2836974a04d12e5ab-1494335597.743520-186849717 XDG_SESSION_DESKTOP=LXDE XDG_SESSION_ID=c1 XDG_VTNR=8 _LXSESSION_PID=1772 From jussi.lahtinen at ...626... Tue May 9 22:47:33 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 9 May 2017 23:47:33 +0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Remove *all* installations of Gambas 3 (made from PPAs, repos, compiled, etc), and then run these commands: sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas After that, try to install Gambas 3 again. That is just to make sure you have clean install. Jussi On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > >Can you send a tar.gz archive of your project directory? > > I am sending one. Do you need them all? > (tar compressed) > > Regards > > - fernando > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From fernandojosecabral at ...626... Tue May 9 23:31:17 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 9 May 2017 18:31:17 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Jussi, I am baffled. I have removed everything you suggested. But I went beyond. I updated the "locate" database and searched for everything that contained "gambas" somewhere in the filename or directory name "locate -i --regex "*.gambas.*". I did this after a regular "remove" and "autoremove" with apt-get. I saved the printout in a file, turned it into a shell script and removed everything, except source code. Then I updated the locate database once more. After that, searching "locate -i --regex ".*gambas.*" returned nihil. So, not a trace from gambas. Then I reinstalled anew using the regular apt-get (no PPA). Installed version is now 3.8.4 IDE still locked. This mystifies me. There must be a file somewhere whose name does not contain "gambas" that says I should not be able to edit any source code. I am about to give up. Regards - fernando 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : > Remove *all* installations of Gambas 3 (made from PPAs, repos, compiled, > etc), and then run these commands: > > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 /usr/local/bin/gbs3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > sudo rm -f /usr/local/bin/gambas3 > sudo rm -f /usr/local/bin/gambas3.gambas > > sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 > /usr/local/bin/gbs3 > sudo rm -rf /usr/lib/gambas3 > sudo rm -rf /usr/share/gambas3 > sudo rm -f /usr/bin/gambas3 > sudo rm -f /usr/bin/gambas3.gambas > > After that, try to install Gambas 3 again. That is just to make sure you > have clean install. > > > Jussi > > > On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > >> >Can you send a tar.gz archive of your project directory? >> >> I am sending one. Do you need them all? >> (tar compressed) >> >> Regards >> >> - fernando >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From karl.reinl at ...9... Tue May 9 23:55:13 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Tue, 09 May 2017 23:55:13 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: <1494366913.13882.46.camel@...3609...> Am Dienstag, den 09.05.2017, 18:31 -0300 schrieb Fernando Cabral: > Jussi, I am baffled. I have removed everything you suggested. But I went > beyond. I updated the "locate" database and searched for everything that > contained "gambas" somewhere in the filename or directory name "locate -i > --regex "*.gambas.*". I did this after a regular "remove" and > "autoremove" with apt-get. I saved the printout in a file, turned it into > a shell script and removed everything, except source code. Then I updated > the locate database once more. After that, searching "locate -i --regex > ".*gambas.*" returned nihil. So, not a trace from gambas. > > Then I reinstalled anew using the regular apt-get (no PPA). Installed > version is now 3.8.4 > > IDE still locked. This mystifies me. There must be a file somewhere whose > name does not contain "gambas" that says I should not be able to edit any > source code. I am about to give up. > > Regards > > - fernando Salut Fernando, can you please try to use gambas3 with a new created user. BTW gambas3 3.8.4 is a bit old, but that is not in a relation to your problem. -- Amicalement Charlie From jussi.lahtinen at ...626... Tue May 9 23:56:03 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 May 2017 00:56:03 +0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Can you try to re-send the project directory as the file you attached is not extractable. Do it this way; go to Gambas IDE, open some project and go to menu "project" --> "make" --> "source archive". And send the result. Jussi On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > Jussi, I am baffled. I have removed everything you suggested. But I went > beyond. I updated the "locate" database and searched for everything that > contained "gambas" somewhere in the filename or directory name "locate -i > --regex "*.gambas.*". I did this after a regular "remove" and > "autoremove" with apt-get. I saved the printout in a file, turned it into > a shell script and removed everything, except source code. Then I updated > the locate database once more. After that, searching "locate -i --regex > ".*gambas.*" returned nihil. So, not a trace from gambas. > > Then I reinstalled anew using the regular apt-get (no PPA). Installed > version is now 3.8.4 > > IDE still locked. This mystifies me. There must be a file somewhere whose > name does not contain "gambas" that says I should not be able to edit any > source code. I am about to give up. > > Regards > > - fernando > > 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : > >> Remove *all* installations of Gambas 3 (made from PPAs, repos, compiled, >> etc), and then run these commands: >> >> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >> sudo rm -rf /usr/local/lib/gambas3 >> sudo rm -rf /usr/local/share/gambas3 >> sudo rm -f /usr/local/bin/gambas3 >> sudo rm -f /usr/local/bin/gambas3.gambas >> >> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >> /usr/local/bin/gbs3 >> sudo rm -rf /usr/lib/gambas3 >> sudo rm -rf /usr/share/gambas3 >> sudo rm -f /usr/bin/gambas3 >> sudo rm -f /usr/bin/gambas3.gambas >> >> After that, try to install Gambas 3 again. That is just to make sure you >> have clean install. >> >> >> Jussi >> >> >> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < >> fernandojosecabral at ...626...> wrote: >> >>> >Can you send a tar.gz archive of your project directory? >>> >>> I am sending one. Do you need them all? >>> (tar compressed) >>> >>> Regards >>> >>> - fernando >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >>> >> > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> > Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > > From jussi.lahtinen at ...626... Wed May 10 00:01:33 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 May 2017 01:01:33 +0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Also what happens if you try to edit the project with regular text editor, instead of Gambas? Jussi On Wed, May 10, 2017 at 12:56 AM, Jussi Lahtinen wrote: > Can you try to re-send the project directory as the file you attached is > not extractable. Do it this way; go to Gambas IDE, open some project and go > to menu "project" --> "make" --> "source archive". And send the result. > > > Jussi > > On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > >> Jussi, I am baffled. I have removed everything you suggested. But I went >> beyond. I updated the "locate" database and searched for everything that >> contained "gambas" somewhere in the filename or directory name "locate -i >> --regex "*.gambas.*". I did this after a regular "remove" and >> "autoremove" with apt-get. I saved the printout in a file, turned it >> into a shell script and removed everything, except source code. Then I >> updated the locate database once more. After that, searching "locate -i >> --regex ".*gambas.*" returned nihil. So, not a trace from gambas. >> >> Then I reinstalled anew using the regular apt-get (no PPA). Installed >> version is now 3.8.4 >> >> IDE still locked. This mystifies me. There must be a file somewhere >> whose name does not contain "gambas" that says I should not be able to edit >> any source code. I am about to give up. >> >> Regards >> >> - fernando >> >> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : >> >>> Remove *all* installations of Gambas 3 (made from PPAs, repos, compiled, >>> etc), and then run these commands: >>> >>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >>> sudo rm -rf /usr/local/lib/gambas3 >>> sudo rm -rf /usr/local/share/gambas3 >>> sudo rm -f /usr/local/bin/gambas3 >>> sudo rm -f /usr/local/bin/gambas3.gambas >>> >>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >>> /usr/local/bin/gbs3 >>> sudo rm -rf /usr/lib/gambas3 >>> sudo rm -rf /usr/share/gambas3 >>> sudo rm -f /usr/bin/gambas3 >>> sudo rm -f /usr/bin/gambas3.gambas >>> >>> After that, try to install Gambas 3 again. That is just to make sure you >>> have clean install. >>> >>> >>> Jussi >>> >>> >>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < >>> fernandojosecabral at ...626...> wrote: >>> >>>> >Can you send a tar.gz archive of your project directory? >>>> >>>> I am sending one. Do you need them all? >>>> (tar compressed) >>>> >>>> Regards >>>> >>>> - fernando >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> >> >> >> -- >> Fernando Cabral >> Blogue: http://fernandocabral.org >> Twitter: http://twitter.com/fjcabral >> e-mail: fernandojosecabral at ...626... >> Facebook: f at ...3654... >> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Wickr ID: fernandocabral >> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Skype: fernandojosecabral >> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> >> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> >> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >> nenhum pol?tico ou cientista poder? se gabar de nada. >> >> > From fernandojosecabral at ...626... Wed May 10 00:37:52 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 9 May 2017 19:37:52 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: > 2017-05-09 19:01 GMT-03:00 Jussi Lahtinen wrote: > Also what happens if you try to edit the project with regular text editor, > instead of Gambas? > They all can be edited. For instance, with vi. No problem. - fernando > > Jussi > > On Wed, May 10, 2017 at 12:56 AM, Jussi Lahtinen > wrote: > >> Can you try to re-send the project directory as the file you attached is >> not extractable. Do it this way; go to Gambas IDE, open some project and go >> to menu "project" --> "make" --> "source archive". And send the result. >> >> >> Jussi >> >> On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral < >> fernandojosecabral at ...626...> wrote: >> >>> Jussi, I am baffled. I have removed everything you suggested. But I went >>> beyond. I updated the "locate" database and searched for everything that >>> contained "gambas" somewhere in the filename or directory name "locate -i >>> --regex "*.gambas.*". I did this after a regular "remove" and >>> "autoremove" with apt-get. I saved the printout in a file, turned it >>> into a shell script and removed everything, except source code. Then I >>> updated the locate database once more. After that, searching "locate -i >>> --regex ".*gambas.*" returned nihil. So, not a trace from gambas. >>> >>> Then I reinstalled anew using the regular apt-get (no PPA). Installed >>> version is now 3.8.4 >>> >>> IDE still locked. This mystifies me. There must be a file somewhere >>> whose name does not contain "gambas" that says I should not be able to edit >>> any source code. I am about to give up. >>> >>> Regards >>> >>> - fernando >>> >>> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : >>> >>>> Remove *all* installations of Gambas 3 (made from PPAs, repos, >>>> compiled, etc), and then run these commands: >>>> >>>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >>>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >>>> sudo rm -rf /usr/local/lib/gambas3 >>>> sudo rm -rf /usr/local/share/gambas3 >>>> sudo rm -f /usr/local/bin/gambas3 >>>> sudo rm -f /usr/local/bin/gambas3.gambas >>>> >>>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >>>> /usr/local/bin/gbs3 >>>> sudo rm -rf /usr/lib/gambas3 >>>> sudo rm -rf /usr/share/gambas3 >>>> sudo rm -f /usr/bin/gambas3 >>>> sudo rm -f /usr/bin/gambas3.gambas >>>> >>>> After that, try to install Gambas 3 again. That is just to make sure >>>> you have clean install. >>>> >>>> >>>> Jussi >>>> >>>> >>>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < >>>> fernandojosecabral at ...626...> wrote: >>>> >>>>> >Can you send a tar.gz archive of your project directory? >>>>> >>>>> I am sending one. Do you need them all? >>>>> (tar compressed) >>>>> >>>>> Regards >>>>> >>>>> - fernando >>>>> >>>>> ------------------------------------------------------------ >>>>> ------------------ >>>>> Check out the vibrant tech community on one of the world's most >>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>> >>> >>> >>> -- >>> Fernando Cabral >>> Blogue: http://fernandocabral.org >>> Twitter: http://twitter.com/fjcabral >>> e-mail: fernandojosecabral at ...626... >>> Facebook: f at ...3654... >>> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>> Wickr ID: fernandocabral >>> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>> Skype: fernandojosecabral >>> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> >>> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>> >>> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >>> nenhum pol?tico ou cientista poder? se gabar de nada. >>> >>> >> > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From fernandojosecabral at ...626... Wed May 10 00:38:47 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 9 May 2017 19:38:47 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Here goes the the archive generated as instructed. (Code quality is pretty poor because this was my first try at gambas). - fernando 2017-05-09 18:56 GMT-03:00 Jussi Lahtinen : > Can you try to re-send the project directory as the file you attached is > not extractable. Do it this way; go to Gambas IDE, open some project and go > to menu "project" --> "make" --> "source archive". And send the result. > > > Jussi > > On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > >> Jussi, I am baffled. I have removed everything you suggested. But I went >> beyond. I updated the "locate" database and searched for everything that >> contained "gambas" somewhere in the filename or directory name "locate -i >> --regex "*.gambas.*". I did this after a regular "remove" and >> "autoremove" with apt-get. I saved the printout in a file, turned it >> into a shell script and removed everything, except source code. Then I >> updated the locate database once more. After that, searching "locate -i >> --regex ".*gambas.*" returned nihil. So, not a trace from gambas. >> >> Then I reinstalled anew using the regular apt-get (no PPA). Installed >> version is now 3.8.4 >> >> IDE still locked. This mystifies me. There must be a file somewhere >> whose name does not contain "gambas" that says I should not be able to edit >> any source code. I am about to give up. >> >> Regards >> >> - fernando >> >> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : >> >>> Remove *all* installations of Gambas 3 (made from PPAs, repos, compiled, >>> etc), and then run these commands: >>> >>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >>> sudo rm -rf /usr/local/lib/gambas3 >>> sudo rm -rf /usr/local/share/gambas3 >>> sudo rm -f /usr/local/bin/gambas3 >>> sudo rm -f /usr/local/bin/gambas3.gambas >>> >>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >>> /usr/local/bin/gbs3 >>> sudo rm -rf /usr/lib/gambas3 >>> sudo rm -rf /usr/share/gambas3 >>> sudo rm -f /usr/bin/gambas3 >>> sudo rm -f /usr/bin/gambas3.gambas >>> >>> After that, try to install Gambas 3 again. That is just to make sure you >>> have clean install. >>> >>> >>> Jussi >>> >>> >>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < >>> fernandojosecabral at ...626...> wrote: >>> >>>> >Can you send a tar.gz archive of your project directory? >>>> >>>> I am sending one. Do you need them all? >>>> (tar compressed) >>>> >>>> Regards >>>> >>>> - fernando >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> >> >> >> -- >> Fernando Cabral >> Blogue: http://fernandocabral.org >> Twitter: http://twitter.com/fjcabral >> e-mail: fernandojosecabral at ...626... >> Facebook: f at ...3654... >> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Wickr ID: fernandocabral >> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Skype: fernandojosecabral >> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> >> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> >> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >> nenhum pol?tico ou cientista poder? se gabar de nada. >> >> > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. -------------- next part -------------- A non-text attachment was scrubbed... Name: Legibilidade-odt-0.0.351.tar.gz Type: application/x-gzip Size: 19046 bytes Desc: not available URL: From jussi.lahtinen at ...626... Wed May 10 01:01:58 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 May 2017 02:01:58 +0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: I can edit the project here without problems. Very strange. It's not specific to Linux Mint 18.10, used Gambas version or the opened project. So, it must be something with your settings... Have you tried to change Gambas settings, like turning on/off "format on load & save"? Is there some desktop applications, which could interference Gambas in some way? Clipboard manager? Can you try to turn these off and test to relaunch Gambas again? Jussi On Wed, May 10, 2017 at 1:38 AM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > Here goes the the archive generated as instructed. > (Code quality is pretty poor because this was my first try at gambas). > > - fernando > > > 2017-05-09 18:56 GMT-03:00 Jussi Lahtinen : > >> Can you try to re-send the project directory as the file you attached is >> not extractable. Do it this way; go to Gambas IDE, open some project and go >> to menu "project" --> "make" --> "source archive". And send the result. >> >> >> Jussi >> >> On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral < >> fernandojosecabral at ...626...> wrote: >> >>> Jussi, I am baffled. I have removed everything you suggested. But I went >>> beyond. I updated the "locate" database and searched for everything that >>> contained "gambas" somewhere in the filename or directory name "locate -i >>> --regex "*.gambas.*". I did this after a regular "remove" and >>> "autoremove" with apt-get. I saved the printout in a file, turned it >>> into a shell script and removed everything, except source code. Then I >>> updated the locate database once more. After that, searching "locate -i >>> --regex ".*gambas.*" returned nihil. So, not a trace from gambas. >>> >>> Then I reinstalled anew using the regular apt-get (no PPA). Installed >>> version is now 3.8.4 >>> >>> IDE still locked. This mystifies me. There must be a file somewhere >>> whose name does not contain "gambas" that says I should not be able to edit >>> any source code. I am about to give up. >>> >>> Regards >>> >>> - fernando >>> >>> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : >>> >>>> Remove *all* installations of Gambas 3 (made from PPAs, repos, >>>> compiled, etc), and then run these commands: >>>> >>>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >>>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >>>> sudo rm -rf /usr/local/lib/gambas3 >>>> sudo rm -rf /usr/local/share/gambas3 >>>> sudo rm -f /usr/local/bin/gambas3 >>>> sudo rm -f /usr/local/bin/gambas3.gambas >>>> >>>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >>>> /usr/local/bin/gbs3 >>>> sudo rm -rf /usr/lib/gambas3 >>>> sudo rm -rf /usr/share/gambas3 >>>> sudo rm -f /usr/bin/gambas3 >>>> sudo rm -f /usr/bin/gambas3.gambas >>>> >>>> After that, try to install Gambas 3 again. That is just to make sure >>>> you have clean install. >>>> >>>> >>>> Jussi >>>> >>>> >>>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < >>>> fernandojosecabral at ...626...> wrote: >>>> >>>>> >Can you send a tar.gz archive of your project directory? >>>>> >>>>> I am sending one. Do you need them all? >>>>> (tar compressed) >>>>> >>>>> Regards >>>>> >>>>> - fernando >>>>> >>>>> ------------------------------------------------------------ >>>>> ------------------ >>>>> Check out the vibrant tech community on one of the world's most >>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>> >>> >>> >>> -- >>> Fernando Cabral >>> Blogue: http://fernandocabral.org >>> Twitter: http://twitter.com/fjcabral >>> e-mail: fernandojosecabral at ...626... >>> Facebook: f at ...3654... >>> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>> Wickr ID: fernandocabral >>> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>> Skype: fernandojosecabral >>> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> >>> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>> >>> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >>> nenhum pol?tico ou cientista poder? se gabar de nada. >>> >>> >> > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> > Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > > From jussi.lahtinen at ...626... Wed May 10 01:04:28 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 May 2017 02:04:28 +0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Maybe some window manager setting steal focus from the editor..? Jussi On Wed, May 10, 2017 at 2:01 AM, Jussi Lahtinen wrote: > I can edit the project here without problems. Very strange. It's not > specific to Linux Mint 18.10, used Gambas version or the opened project. > So, it must be something with your settings... Have you tried to change > Gambas settings, like turning on/off "format on load & save"? > Is there some desktop applications, which could interference Gambas in > some way? Clipboard manager? Can you try to turn these off and test to > relaunch Gambas again? > > > Jussi > > On Wed, May 10, 2017 at 1:38 AM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > >> Here goes the the archive generated as instructed. >> (Code quality is pretty poor because this was my first try at gambas). >> >> - fernando >> >> >> 2017-05-09 18:56 GMT-03:00 Jussi Lahtinen : >> >>> Can you try to re-send the project directory as the file you attached is >>> not extractable. Do it this way; go to Gambas IDE, open some project and go >>> to menu "project" --> "make" --> "source archive". And send the result. >>> >>> >>> Jussi >>> >>> On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral < >>> fernandojosecabral at ...626...> wrote: >>> >>>> Jussi, I am baffled. I have removed everything you suggested. But I >>>> went beyond. I updated the "locate" database and searched for everything >>>> that contained "gambas" somewhere in the filename or directory name "locate >>>> -i --regex "*.gambas.*". I did this after a regular "remove" and >>>> "autoremove" with apt-get. I saved the printout in a file, turned it >>>> into a shell script and removed everything, except source code. Then I >>>> updated the locate database once more. After that, searching "locate -i >>>> --regex ".*gambas.*" returned nihil. So, not a trace from gambas. >>>> >>>> Then I reinstalled anew using the regular apt-get (no PPA). Installed >>>> version is now 3.8.4 >>>> >>>> IDE still locked. This mystifies me. There must be a file somewhere >>>> whose name does not contain "gambas" that says I should not be able to edit >>>> any source code. I am about to give up. >>>> >>>> Regards >>>> >>>> - fernando >>>> >>>> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : >>>> >>>>> Remove *all* installations of Gambas 3 (made from PPAs, repos, >>>>> compiled, etc), and then run these commands: >>>>> >>>>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >>>>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >>>>> sudo rm -rf /usr/local/lib/gambas3 >>>>> sudo rm -rf /usr/local/share/gambas3 >>>>> sudo rm -f /usr/local/bin/gambas3 >>>>> sudo rm -f /usr/local/bin/gambas3.gambas >>>>> >>>>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >>>>> /usr/local/bin/gbs3 >>>>> sudo rm -rf /usr/lib/gambas3 >>>>> sudo rm -rf /usr/share/gambas3 >>>>> sudo rm -f /usr/bin/gambas3 >>>>> sudo rm -f /usr/bin/gambas3.gambas >>>>> >>>>> After that, try to install Gambas 3 again. That is just to make sure >>>>> you have clean install. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> >>>>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < >>>>> fernandojosecabral at ...626...> wrote: >>>>> >>>>>> >Can you send a tar.gz archive of your project directory? >>>>>> >>>>>> I am sending one. Do you need them all? >>>>>> (tar compressed) >>>>>> >>>>>> Regards >>>>>> >>>>>> - fernando >>>>>> >>>>>> ------------------------------------------------------------ >>>>>> ------------------ >>>>>> Check out the vibrant tech community on one of the world's most >>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Fernando Cabral >>>> Blogue: http://fernandocabral.org >>>> Twitter: http://twitter.com/fjcabral >>>> e-mail: fernandojosecabral at ...626... >>>> Facebook: f at ...3654... >>>> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>>> Wickr ID: fernandocabral >>>> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>>> Skype: fernandojosecabral >>>> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> >>>> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> >>>> >>>> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >>>> nenhum pol?tico ou cientista poder? se gabar de nada. >>>> >>>> >>> >> >> >> -- >> Fernando Cabral >> Blogue: http://fernandocabral.org >> Twitter: http://twitter.com/fjcabral >> e-mail: fernandojosecabral at ...626... >> Facebook: f at ...3654... >> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Wickr ID: fernandocabral >> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Skype: fernandojosecabral >> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> >> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> >> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >> nenhum pol?tico ou cientista poder? se gabar de nada. >> >> > From shordi at ...626... Wed May 10 01:25:00 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 10 May 2017 01:25:00 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: Have you tried to deactivate Dropbox and other cloud services? I work without problems with Dropbox, but you should discards all possibilities... Best Regards El 10 may. 2017 1:07 a. m., "Jussi Lahtinen" escribi?: > Maybe some window manager setting steal focus from the editor..? > > > Jussi > > On Wed, May 10, 2017 at 2:01 AM, Jussi Lahtinen > wrote: > > > I can edit the project here without problems. Very strange. It's not > > specific to Linux Mint 18.10, used Gambas version or the opened project. > > So, it must be something with your settings... Have you tried to change > > Gambas settings, like turning on/off "format on load & save"? > > Is there some desktop applications, which could interference Gambas in > > some way? Clipboard manager? Can you try to turn these off and test to > > relaunch Gambas again? > > > > > > Jussi > > > > On Wed, May 10, 2017 at 1:38 AM, Fernando Cabral < > > fernandojosecabral at ...626...> wrote: > > > >> Here goes the the archive generated as instructed. > >> (Code quality is pretty poor because this was my first try at gambas). > >> > >> - fernando > >> > >> > >> 2017-05-09 18:56 GMT-03:00 Jussi Lahtinen : > >> > >>> Can you try to re-send the project directory as the file you attached > is > >>> not extractable. Do it this way; go to Gambas IDE, open some project > and go > >>> to menu "project" --> "make" --> "source archive". And send the result. > >>> > >>> > >>> Jussi > >>> > >>> On Wed, May 10, 2017 at 12:31 AM, Fernando Cabral < > >>> fernandojosecabral at ...626...> wrote: > >>> > >>>> Jussi, I am baffled. I have removed everything you suggested. But I > >>>> went beyond. I updated the "locate" database and searched for > everything > >>>> that contained "gambas" somewhere in the filename or directory name > "locate > >>>> -i --regex "*.gambas.*". I did this after a regular "remove" and > >>>> "autoremove" with apt-get. I saved the printout in a file, turned it > >>>> into a shell script and removed everything, except source code. Then I > >>>> updated the locate database once more. After that, searching "locate > -i > >>>> --regex ".*gambas.*" returned nihil. So, not a trace from gambas. > >>>> > >>>> Then I reinstalled anew using the regular apt-get (no PPA). Installed > >>>> version is now 3.8.4 > >>>> > >>>> IDE still locked. This mystifies me. There must be a file somewhere > >>>> whose name does not contain "gambas" that says I should not be able > to edit > >>>> any source code. I am about to give up. > >>>> > >>>> Regards > >>>> > >>>> - fernando > >>>> > >>>> 2017-05-09 17:47 GMT-03:00 Jussi Lahtinen : > >>>> > >>>>> Remove *all* installations of Gambas 3 (made from PPAs, repos, > >>>>> compiled, etc), and then run these commands: > >>>>> > >>>>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 > /usr/local/bin/gba3 > >>>>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 > >>>>> sudo rm -rf /usr/local/lib/gambas3 > >>>>> sudo rm -rf /usr/local/share/gambas3 > >>>>> sudo rm -f /usr/local/bin/gambas3 > >>>>> sudo rm -f /usr/local/bin/gambas3.gambas > >>>>> > >>>>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 > >>>>> /usr/local/bin/gbs3 > >>>>> sudo rm -rf /usr/lib/gambas3 > >>>>> sudo rm -rf /usr/share/gambas3 > >>>>> sudo rm -f /usr/bin/gambas3 > >>>>> sudo rm -f /usr/bin/gambas3.gambas > >>>>> > >>>>> After that, try to install Gambas 3 again. That is just to make sure > >>>>> you have clean install. > >>>>> > >>>>> > >>>>> Jussi > >>>>> > >>>>> > >>>>> On Mon, May 8, 2017 at 8:38 PM, Fernando Cabral < > >>>>> fernandojosecabral at ...626...> wrote: > >>>>> > >>>>>> >Can you send a tar.gz archive of your project directory? > >>>>>> > >>>>>> I am sending one. Do you need them all? > >>>>>> (tar compressed) > >>>>>> > >>>>>> Regards > >>>>>> > >>>>>> - fernando > >>>>>> > >>>>>> ------------------------------------------------------------ > >>>>>> ------------------ > >>>>>> Check out the vibrant tech community on one of the world's most > >>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>>> > >>>>> > >>>> > >>>> > >>>> -- > >>>> Fernando Cabral > >>>> Blogue: http://fernandocabral.org > >>>> Twitter: http://twitter.com/fjcabral > >>>> e-mail: fernandojosecabral at ...626... > >>>> Facebook: f at ...3654... > >>>> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> > >>>> Wickr ID: fernandocabral > >>>> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> > >>>> Skype: fernandojosecabral > >>>> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> > >>>> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> > >>>> > >>>> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > >>>> nenhum pol?tico ou cientista poder? se gabar de nada. > >>>> > >>>> > >>> > >> > >> > >> -- > >> Fernando Cabral > >> Blogue: http://fernandocabral.org > >> Twitter: http://twitter.com/fjcabral > >> e-mail: fernandojosecabral at ...626... > >> Facebook: f at ...3654... > >> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> > >> Wickr ID: fernandocabral > >> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> > >> Skype: fernandojosecabral > >> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> > >> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> > >> > >> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > >> nenhum pol?tico ou cientista poder? se gabar de nada. > >> > >> > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rwe-sse at ...3629... Wed May 10 08:47:59 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Wed, 10 May 2017 08:47:59 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: <5912B79F.306@...3629...> Am 10.05.2017 01:04, schrieb Jussi Lahtinen: > Maybe some window manager setting steal focus from the editor..? > > > Jussi > Further upstairs in the thread, Fernando answered to a question from me: "Nevertheless, the problem appeared after I had downloaded docEditor from the farm. After that, editing has been locked. But I can't affirm there is a cause/effect here.For the time being, I see it as a coincidence." Sounds strange, especially after re-installation, but source code isn't de-installed after all, so the blocking element might still be there. Rolf From fernandojosecabral at ...626... Wed May 10 11:21:55 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Wed, 10 May 2017 06:21:55 -0300 Subject: [Gambas-user] Editing still blocked In-Reply-To: <5912B79F.306@...3629...> References: <5912B79F.306@...3629...> Message-ID: After some more testing, I found the problem seems to be related to the keyboard. After all, I've found that I can edit the source code, as long I only use the mouse for editing (cutting, copying, pasting). I can click and save the program, I can compile it. As to the keyboard, no regular key works (digits, alpha or editing: arrow, home, pgup or down, insert, delete, etc.) Keys that are intercepted by the windows managers do work (for instance, ALT+TAB, CTRL^+ALT+T, etc.). So the problem has now narrowed down to a frozen keyboard. The rub now seems to be finding why the IDE is not reading the keyboard. Regards - fernando 2017-05-10 3:47 GMT-03:00 Rolf-Werner Eilert : > Am 10.05.2017 01:04, schrieb Jussi Lahtinen: > > Maybe some window manager setting steal focus from the editor..? > > > > > > Jussi > > > > > Further upstairs in the thread, Fernando answered to a question from me: > > "Nevertheless, the problem appeared after I had > downloaded > docEditor from the farm. After that, editing has been locked. But I can't > affirm there is > a cause/effect here.For the time being, I see it as a coincidence." > > Sounds strange, especially after re-installation, but source code isn't > de-installed after all, so the blocking element might still be there. > > Rolf > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From t.lee.davidson at ...626... Wed May 10 17:47:18 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 10 May 2017 11:47:18 -0400 Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1494259984658-58933.post@...3046...> References: <1494259984658-58933.post@...3046...> Message-ID: <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> On 05/08/2017 12:13 PM, alexchernoff wrote: > Dear all, > > I am receiving data over a serial port which is sent by a byte[].write > function (an array of bytes) > > I get the SerialPort1_read() event raised where I try to read data, RxBuffer > is a string var > > *Try Read #SerialPort1, RxBuffer, Lof(SerialPort1)* > > as soon as I do, the whole program stops, some other timers in other modules > also stop to fire. In fact when running the program in Gambas again, it does > not execute even the startup, so have to restart the IDE. > > what am I doing wrong? > > thanks! If you are attempting to read the data _into_ RxBuffer, it appears your syntax is incorrect. According to http://gambaswiki.org/wiki/lang/read , the syntax for the READ statement is: Variable = READ [ # Stream , ] Length Perhaps try: Try RxBuffer = Read #SerialPort1, Lof(SerialPort1) --- Lee From matti.eber at ...3240... Wed May 10 18:57:43 2017 From: matti.eber at ...3240... (Matti) Date: Wed, 10 May 2017 18:57:43 +0200 Subject: [Gambas-user] String[].Find finds nothing Message-ID: I tried to search an array with the 'Find' function instead of 'For...Next' and 'InStr'. The wiki says: "String[].Find (gb) Function Find ( Value As String [ , Mode As Integer, Start As Integer ] ) As Integer Returns the position of the first occurrence of Value in the array. If Value cannot be found, -1 is returned." But I can do what I want, I always get '-1'. No positive result ever. Attached is a tiny project that should show this behaviour. Where is my mistake? Thanks in advance Matti Gambas 3.9.2 -------------- next part -------------- A non-text attachment was scrubbed... Name: FindString-0.0.1.tar.gz Type: application/gzip Size: 12440 bytes Desc: not available URL: From shordi at ...626... Wed May 10 19:08:44 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 10 May 2017 19:08:44 +0200 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: Message-ID: Wiki says: "Returns the position of the first occurrence of Value in the array." You must search for a Value of the array. In your array there isn't a Value "Chr", that is what you search, so always returns -1 Best Regars 2017-05-10 18:57 GMT+02:00 Matti : > I tried to search an array with the 'Find' function instead of > 'For...Next' and 'InStr'. > > The wiki says: > "String[].Find (gb) > Function Find ( Value As String [ , Mode As Integer, Start As Integer ] ) > As Integer > Returns the position of the first occurrence of Value in the array. > If Value cannot be found, -1 is returned." > > But I can do what I want, I always get '-1'. No positive result ever. > > Attached is a tiny project that should show this behaviour. > Where is my mistake? > Thanks in advance > Matti > > Gambas 3.9.2 > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From matti.eber at ...3240... Wed May 10 20:24:02 2017 From: matti.eber at ...3240... (Matti) Date: Wed, 10 May 2017 20:24:02 +0200 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: Message-ID: Oh yes, oh yes! Thank you, Jorge. I always thought, Value could also be part of a string. Am 10.05.2017 um 19:08 schrieb Jorge Carri?n: > Wiki says: "Returns the position of the first occurrence of Value in the > array." > You must search for a Value of the array. > > In your array there isn't a Value "Chr", that is what you search, so always > returns -1 > > > Best Regars > > 2017-05-10 18:57 GMT+02:00 Matti : > >> I tried to search an array with the 'Find' function instead of >> 'For...Next' and 'InStr'. >> >> The wiki says: >> "String[].Find (gb) >> Function Find ( Value As String [ , Mode As Integer, Start As Integer ] ) >> As Integer >> Returns the position of the first occurrence of Value in the array. >> If Value cannot be found, -1 is returned." >> >> But I can do what I want, I always get '-1'. No positive result ever. >> >> Attached is a tiny project that should show this behaviour. >> Where is my mistake? >> Thanks in advance >> Matti >> >> Gambas 3.9.2 >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed May 10 20:59:26 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 May 2017 21:59:26 +0300 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: Message-ID: For that use; String.InStr(sYourArray[iIndex], "Chr") Jussi On Wed, May 10, 2017 at 9:24 PM, Matti wrote: > Oh yes, oh yes! > Thank you, Jorge. > I always thought, Value could also be part of a string. > > Am 10.05.2017 um 19:08 schrieb Jorge Carri?n: > > Wiki says: "Returns the position of the first occurrence of Value in the > > array." > > You must search for a Value of the array. > > > > In your array there isn't a Value "Chr", that is what you search, so > always > > returns -1 > > > > > > Best Regars > > > > 2017-05-10 18:57 GMT+02:00 Matti : > > > >> I tried to search an array with the 'Find' function instead of > >> 'For...Next' and 'InStr'. > >> > >> The wiki says: > >> "String[].Find (gb) > >> Function Find ( Value As String [ , Mode As Integer, Start As Integer ] > ) > >> As Integer > >> Returns the position of the first occurrence of Value in the array. > >> If Value cannot be found, -1 is returned." > >> > >> But I can do what I want, I always get '-1'. No positive result ever. > >> > >> Attached is a tiny project that should show this behaviour. > >> Where is my mistake? > >> Thanks in advance > >> Matti > >> > >> Gambas 3.9.2 > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From matti.eber at ...3240... Wed May 10 21:18:53 2017 From: matti.eber at ...3240... (Matti) Date: Wed, 10 May 2017 21:18:53 +0200 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: Message-ID: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> Yes. But as I don't know [iIndex], I have to iterate through the (huge) array with 'For...Next'. I hoped to make it faster with 'Find'. Am 10.05.2017 um 20:59 schrieb Jussi Lahtinen: > For that use; String.InStr(sYourArray[iIndex], "Chr") > > > Jussi > > > On Wed, May 10, 2017 at 9:24 PM, Matti wrote: > >> Oh yes, oh yes! >> Thank you, Jorge. >> I always thought, Value could also be part of a string. >> >> Am 10.05.2017 um 19:08 schrieb Jorge Carri?n: >>> Wiki says: "Returns the position of the first occurrence of Value in the >>> array." >>> You must search for a Value of the array. >>> >>> In your array there isn't a Value "Chr", that is what you search, so >> always >>> returns -1 >>> >>> >>> Best Regars >>> >>> 2017-05-10 18:57 GMT+02:00 Matti : >>> >>>> I tried to search an array with the 'Find' function instead of >>>> 'For...Next' and 'InStr'. >>>> >>>> The wiki says: >>>> "String[].Find (gb) >>>> Function Find ( Value As String [ , Mode As Integer, Start As Integer ] >> ) >>>> As Integer >>>> Returns the position of the first occurrence of Value in the array. >>>> If Value cannot be found, -1 is returned." >>>> >>>> But I can do what I want, I always get '-1'. No positive result ever. >>>> >>>> Attached is a tiny project that should show this behaviour. >>>> Where is my mistake? >>>> Thanks in advance >>>> Matti >>>> >>>> Gambas 3.9.2 >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> ------------------------------------------------------------ >> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed May 10 21:25:31 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 10 May 2017 22:25:31 +0300 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> References: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> Message-ID: If you need to match only the beginning of the string, you could sort the array and then make heuristic guess for the index. Jussi On Wed, May 10, 2017 at 10:18 PM, Matti wrote: > Yes. But as I don't know [iIndex], I have to iterate through the (huge) > array with 'For...Next'. > I hoped to make it faster with 'Find'. > > Am 10.05.2017 um 20:59 schrieb Jussi Lahtinen: > > For that use; String.InStr(sYourArray[iIndex], "Chr") > > > > > > Jussi > > > > > > On Wed, May 10, 2017 at 9:24 PM, Matti wrote: > > > >> Oh yes, oh yes! > >> Thank you, Jorge. > >> I always thought, Value could also be part of a string. > >> > >> Am 10.05.2017 um 19:08 schrieb Jorge Carri?n: > >>> Wiki says: "Returns the position of the first occurrence of Value in > the > >>> array." > >>> You must search for a Value of the array. > >>> > >>> In your array there isn't a Value "Chr", that is what you search, so > >> always > >>> returns -1 > >>> > >>> > >>> Best Regars > >>> > >>> 2017-05-10 18:57 GMT+02:00 Matti : > >>> > >>>> I tried to search an array with the 'Find' function instead of > >>>> 'For...Next' and 'InStr'. > >>>> > >>>> The wiki says: > >>>> "String[].Find (gb) > >>>> Function Find ( Value As String [ , Mode As Integer, Start As Integer > ] > >> ) > >>>> As Integer > >>>> Returns the position of the first occurrence of Value in the array. > >>>> If Value cannot be found, -1 is returned." > >>>> > >>>> But I can do what I want, I always get '-1'. No positive result ever. > >>>> > >>>> Attached is a tiny project that should show this behaviour. > >>>> Where is my mistake? > >>>> Thanks in advance > >>>> Matti > >>>> > >>>> Gambas 3.9.2 > >>>> > >>>> ------------------------------------------------------------ > >>>> ------------------ > >>>> Check out the vibrant tech community on one of the world's most > >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>>> > >>> ------------------------------------------------------------ > >> ------------------ > >>> Check out the vibrant tech community on one of the world's most > >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Wed May 10 21:38:34 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 10 May 2017 21:38:34 +0200 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> References: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> Message-ID: <20170510193834.GA580@...3600...> On Wed, 10 May 2017, Matti wrote: > Yes. But as I don't know [iIndex], I have to iterate through the (huge) array with 'For...Next'. > I hoped to make it faster with 'Find'. You can make the code smaller by using the optional Mode parameter to String[].Find() (cf. the docs [1]). The following will work as you wanted: Dim aNames As New String[] aNames.Add("Anna") aNames.Add("Berta") aNames.Add("Christa") aNames.Add("Dora") Print aNames.Find("Chr*", gb.Like) ' will print 2 but it will probably make the code slower because the gb.Like mode makes the Find() operation significantly more complex. I would recommend you test it out though. Also let me say that Gambas can't perform wonders. Just because you call a single built-in function doesn't make the operation fast. If your array is huge and unsorted, all searches will be slow. In fact, the Find() method is implemented as a For-Next loop (in C, admittedly). Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb/string[]/find -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From matti.eber at ...3240... Wed May 10 22:04:47 2017 From: matti.eber at ...3240... (Matti) Date: Wed, 10 May 2017 22:04:47 +0200 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> Message-ID: Jussi, could you please explain? Yes, I have to match the beginning of the string - but what means a "heuristic guess for the index"? Am 10.05.2017 um 21:25 schrieb Jussi Lahtinen: > If you need to match only the beginning of the string, you could sort the > array and then make heuristic guess for the index. > > > Jussi > > On Wed, May 10, 2017 at 10:18 PM, Matti wrote: > >> Yes. But as I don't know [iIndex], I have to iterate through the (huge) >> array with 'For...Next'. >> I hoped to make it faster with 'Find'. >> >> Am 10.05.2017 um 20:59 schrieb Jussi Lahtinen: >>> For that use; String.InStr(sYourArray[iIndex], "Chr") >>> >>> >>> Jussi >>> >>> >>> On Wed, May 10, 2017 at 9:24 PM, Matti wrote: >>> >>>> Oh yes, oh yes! >>>> Thank you, Jorge. >>>> I always thought, Value could also be part of a string. >>>> >>>> Am 10.05.2017 um 19:08 schrieb Jorge Carri?n: >>>>> Wiki says: "Returns the position of the first occurrence of Value in >> the >>>>> array." >>>>> You must search for a Value of the array. >>>>> >>>>> In your array there isn't a Value "Chr", that is what you search, so >>>> always >>>>> returns -1 >>>>> >>>>> >>>>> Best Regars >>>>> >>>>> 2017-05-10 18:57 GMT+02:00 Matti : >>>>> >>>>>> I tried to search an array with the 'Find' function instead of >>>>>> 'For...Next' and 'InStr'. >>>>>> >>>>>> The wiki says: >>>>>> "String[].Find (gb) >>>>>> Function Find ( Value As String [ , Mode As Integer, Start As Integer >> ] >>>> ) >>>>>> As Integer >>>>>> Returns the position of the first occurrence of Value in the array. >>>>>> If Value cannot be found, -1 is returned." >>>>>> >>>>>> But I can do what I want, I always get '-1'. No positive result ever. >>>>>> >>>>>> Attached is a tiny project that should show this behaviour. >>>>>> Where is my mistake? >>>>>> Thanks in advance >>>>>> Matti >>>>>> >>>>>> Gambas 3.9.2 >>>>>> >>>>>> ------------------------------------------------------------ >>>>>> ------------------ >>>>>> Check out the vibrant tech community on one of the world's most >>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>>>> _______________________________________________ >>>>>> Gambas-user mailing list >>>>>> Gambas-user at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>>> ------------------------------------------------------------ >>>> ------------------ >>>>> Check out the vibrant tech community on one of the world's most >>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>>> _______________________________________________ >>>>> Gambas-user mailing list >>>>> Gambas-user at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> ------------------------------------------------------------ >> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From jussi.lahtinen at ...626... Wed May 10 23:09:30 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 11 May 2017 00:09:30 +0300 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> Message-ID: This works only for sorted array. Example you could take the maximum index of your array, divide it by two and look which side of the array the searched string could be. Let's say you have array of 1000 elements and you are looking for "Chr". If sMyArray[500] begins with "M", then you should look only first half of the array. Or you could narrow the possibilities even more by dividing the 500 by two. Now if sMyArray[250] begins with "B", you know you just have to search between indexes 250 - 500, or narrow it even further. I hope you got the idea. Jussi On Wed, May 10, 2017 at 11:04 PM, Matti wrote: > Jussi, could you please explain? > Yes, I have to match the beginning of the string - but what means a > "heuristic guess for the index"? > > Am 10.05.2017 um 21:25 schrieb Jussi Lahtinen: > > If you need to match only the beginning of the string, you could sort the > > array and then make heuristic guess for the index. > > > > > > Jussi > > > > On Wed, May 10, 2017 at 10:18 PM, Matti wrote: > > > >> Yes. But as I don't know [iIndex], I have to iterate through the (huge) > >> array with 'For...Next'. > >> I hoped to make it faster with 'Find'. > >> > >> Am 10.05.2017 um 20:59 schrieb Jussi Lahtinen: > >>> For that use; String.InStr(sYourArray[iIndex], "Chr") > >>> > >>> > >>> Jussi > >>> > >>> > >>> On Wed, May 10, 2017 at 9:24 PM, Matti wrote: > >>> > >>>> Oh yes, oh yes! > >>>> Thank you, Jorge. > >>>> I always thought, Value could also be part of a string. > >>>> > >>>> Am 10.05.2017 um 19:08 schrieb Jorge Carri?n: > >>>>> Wiki says: "Returns the position of the first occurrence of Value in > >> the > >>>>> array." > >>>>> You must search for a Value of the array. > >>>>> > >>>>> In your array there isn't a Value "Chr", that is what you search, so > >>>> always > >>>>> returns -1 > >>>>> > >>>>> > >>>>> Best Regars > >>>>> > >>>>> 2017-05-10 18:57 GMT+02:00 Matti : > >>>>> > >>>>>> I tried to search an array with the 'Find' function instead of > >>>>>> 'For...Next' and 'InStr'. > >>>>>> > >>>>>> The wiki says: > >>>>>> "String[].Find (gb) > >>>>>> Function Find ( Value As String [ , Mode As Integer, Start As > Integer > >> ] > >>>> ) > >>>>>> As Integer > >>>>>> Returns the position of the first occurrence of Value in the array. > >>>>>> If Value cannot be found, -1 is returned." > >>>>>> > >>>>>> But I can do what I want, I always get '-1'. No positive result > ever. > >>>>>> > >>>>>> Attached is a tiny project that should show this behaviour. > >>>>>> Where is my mistake? > >>>>>> Thanks in advance > >>>>>> Matti > >>>>>> > >>>>>> Gambas 3.9.2 > >>>>>> > >>>>>> ------------------------------------------------------------ > >>>>>> ------------------ > >>>>>> Check out the vibrant tech community on one of the world's most > >>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >>>>>> _______________________________________________ > >>>>>> Gambas-user mailing list > >>>>>> Gambas-user at lists.sourceforge.net > >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>>> > >>>>>> > >>>>> ------------------------------------------------------------ > >>>> ------------------ > >>>>> Check out the vibrant tech community on one of the world's most > >>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >>>>> _______________________________________________ > >>>>> Gambas-user mailing list > >>>>> Gambas-user at lists.sourceforge.net > >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>>> > >>>> ------------------------------------------------------------ > >>>> ------------------ > >>>> Check out the vibrant tech community on one of the world's most > >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >>>> _______________________________________________ > >>>> Gambas-user mailing list > >>>> Gambas-user at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>>> > >>> ------------------------------------------------------------ > >> ------------------ > >>> Check out the vibrant tech community on one of the world's most > >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Wed May 10 23:28:19 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 11 May 2017 00:28:19 +0300 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: <2a2c944d-902e-8233-423f-961522d7191e@...3240...> Message-ID: Btw. that is not exactly heuristic approach (more like plain algorithmic), because I don't know statistical properties of you array. IE what we can assume. Now the index is always divided by two, but if you know how the distribution of the data, you may make much more effective guesses depending on what you will find with the current index. Jussi On Thu, May 11, 2017 at 12:09 AM, Jussi Lahtinen wrote: > This works only for sorted array. Example you could take the maximum index > of your array, divide it by two and look which side of the array the > searched string could be. > > Let's say you have array of 1000 elements and you are looking for "Chr". > If sMyArray[500] begins with "M", then you should look only first half of > the array. Or you could narrow the possibilities even more by dividing the > 500 by two. Now if sMyArray[250] begins with "B", you know you just have to > search between indexes 250 - 500, or narrow it even further. > > I hope you got the idea. > > > Jussi > > > > On Wed, May 10, 2017 at 11:04 PM, Matti wrote: > >> Jussi, could you please explain? >> Yes, I have to match the beginning of the string - but what means a >> "heuristic guess for the index"? >> >> Am 10.05.2017 um 21:25 schrieb Jussi Lahtinen: >> > If you need to match only the beginning of the string, you could sort >> the >> > array and then make heuristic guess for the index. >> > >> > >> > Jussi >> > >> > On Wed, May 10, 2017 at 10:18 PM, Matti wrote: >> > >> >> Yes. But as I don't know [iIndex], I have to iterate through the (huge) >> >> array with 'For...Next'. >> >> I hoped to make it faster with 'Find'. >> >> >> >> Am 10.05.2017 um 20:59 schrieb Jussi Lahtinen: >> >>> For that use; String.InStr(sYourArray[iIndex], "Chr") >> >>> >> >>> >> >>> Jussi >> >>> >> >>> >> >>> On Wed, May 10, 2017 at 9:24 PM, Matti >> wrote: >> >>> >> >>>> Oh yes, oh yes! >> >>>> Thank you, Jorge. >> >>>> I always thought, Value could also be part of a string. >> >>>> >> >>>> Am 10.05.2017 um 19:08 schrieb Jorge Carri?n: >> >>>>> Wiki says: "Returns the position of the first occurrence of Value in >> >> the >> >>>>> array." >> >>>>> You must search for a Value of the array. >> >>>>> >> >>>>> In your array there isn't a Value "Chr", that is what you search, so >> >>>> always >> >>>>> returns -1 >> >>>>> >> >>>>> >> >>>>> Best Regars >> >>>>> >> >>>>> 2017-05-10 18:57 GMT+02:00 Matti : >> >>>>> >> >>>>>> I tried to search an array with the 'Find' function instead of >> >>>>>> 'For...Next' and 'InStr'. >> >>>>>> >> >>>>>> The wiki says: >> >>>>>> "String[].Find (gb) >> >>>>>> Function Find ( Value As String [ , Mode As Integer, Start As >> Integer >> >> ] >> >>>> ) >> >>>>>> As Integer >> >>>>>> Returns the position of the first occurrence of Value in the array. >> >>>>>> If Value cannot be found, -1 is returned." >> >>>>>> >> >>>>>> But I can do what I want, I always get '-1'. No positive result >> ever. >> >>>>>> >> >>>>>> Attached is a tiny project that should show this behaviour. >> >>>>>> Where is my mistake? >> >>>>>> Thanks in advance >> >>>>>> Matti >> >>>>>> >> >>>>>> Gambas 3.9.2 >> >>>>>> >> >>>>>> ------------------------------------------------------------ >> >>>>>> ------------------ >> >>>>>> Check out the vibrant tech community on one of the world's most >> >>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >>>>>> _______________________________________________ >> >>>>>> Gambas-user mailing list >> >>>>>> Gambas-user at lists.sourceforge.net >> >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>>>> >> >>>>>> >> >>>>> ------------------------------------------------------------ >> >>>> ------------------ >> >>>>> Check out the vibrant tech community on one of the world's most >> >>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >>>>> _______________________________________________ >> >>>>> Gambas-user mailing list >> >>>>> Gambas-user at lists.sourceforge.net >> >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>>> >> >>>> ------------------------------------------------------------ >> >>>> ------------------ >> >>>> Check out the vibrant tech community on one of the world's most >> >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >>>> _______________________________________________ >> >>>> Gambas-user mailing list >> >>>> Gambas-user at lists.sourceforge.net >> >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >>>> >> >>> ------------------------------------------------------------ >> >> ------------------ >> >>> Check out the vibrant tech community on one of the world's most >> >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >>> _______________________________________________ >> >>> Gambas-user mailing list >> >>> Gambas-user at lists.sourceforge.net >> >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------ >> >> ------------------ >> >> Check out the vibrant tech community on one of the world's most >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > ------------------------------------------------------------ >> ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From t.lee.davidson at ...626... Thu May 11 16:26:14 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Thu, 11 May 2017 10:26:14 -0400 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: Message-ID: <92925981-c905-675b-d194-0e8b777a6bff@...626...> On 05/10/2017 02:24 PM, Matti wrote: > Oh yes, oh yes! > Thank you, Jorge. > I always thought, Value could also be part of a string. It can be. Use the gb.Like comparison mode, ie: String[].Find("Chr*", gb.Like) See the Predefined Constants link at http://gambaswiki.org/wiki/comp/gb/string[]/find --- Lee From rwe-sse at ...3629... Fri May 12 09:13:19 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Fri, 12 May 2017 09:13:19 +0200 Subject: [Gambas-user] Best way to upgrade Gambas Message-ID: <5915608F.9040506@...3629...> Yesterday I installed Gambas on a machine with Suse Leap. Under Suse, I like to use Yast to collect the necessary libraries etc. to go sure that nothing is missing. So far so good. Now I have a somewhat current Gambas version on this machine, but if I want to follow its development and install future versions, how should I proceed? Up to now, I used to have a self-compiled Gambas, but if I de-install the distro's version, won't I loose the linked libraries too? Maybe there is someone here who knows Suse. As to Tumbleweed, I wouldn't use it here because this machine is going to be a production server system. Regards Rolf From saud.zabin at ...626... Fri May 12 17:21:22 2017 From: saud.zabin at ...626... (Saud Zabin) Date: Fri, 12 May 2017 18:21:22 +0300 Subject: [Gambas-user] Gambas freelncer Message-ID: Hello everybody I am looking for a Gambas freelncer for a small job that can be expanded later.. Who ever interested please contact me : saud.zabin at ...626... From fernandojosecabral at ...626... Sat May 13 15:56:29 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 13 May 2017 10:56:29 -0300 Subject: [Gambas-user] Keyboard locked -- insisting one more time Message-ID: Using IDE I can't edit my source code. It seems locked up. To no avail, I have followed every hint I' ve received from you guys. I've done more. I have uninstalled the whole gambas package. I have even searched every file using find and locate so as not to leave any remains behind. I compressed and save source code and moved all of them to a different directory. After that, I installed gambas3. The First time, I used apt-get and got an older version. It did not work. I uninstalled and proceeded to full removal again. Then installed one more time using PPA. Again, it dis not work. I even tried using a virtual keyboard (Florence). Same problem. I am at a complete lost. I have no idea where else, or what else to look for. Will someone be kind enough to tell me what the IDE looks for to decide if the source code is locked or not for edition? One more note: I can use cut, copy and paste. Everything that can be done with a mouse click works, but the keys used for editing are all locked (arrows, character, pgdn, pgup, etc.) I've created a virtual machine with the same environment (linux mint 18.1). There I can install gambas and change my source code. Any hints, no matter how crazy, will be much appreciated. I have already lost a bunch of hours trying to figure this out, but have made no progress so far. Regards - fernando -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From gambas at ...1... Sat May 13 17:24:16 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 13 May 2017 17:24:16 +0200 Subject: [Gambas-user] Keyboard locked -- insisting one more time In-Reply-To: References: Message-ID: <83e55d4a-43c6-06cf-3355-18d9454dced4@...1...> Le 13/05/2017 ? 15:56, Fernando Cabral a ?crit : > Using IDE I can't edit my source code. It seems locked up. To no avail, I > have followed every hint I' ve received from you guys. I've done more. I > have uninstalled the whole gambas package. I have even searched every file > using find and locate so as not to leave any remains behind. I compressed > and save source code and moved all of them to a different directory. > > After that, I installed gambas3. The First time, I used apt-get and got an > older version. It did not work. I uninstalled and proceeded to full removal > again. > Then installed one more time using PPA. Again, it dis not work. > > I even tried using a virtual keyboard (Florence). Same problem. > > I am at a complete lost. I have no idea where else, or what else to look > for. > > Will someone be kind enough to tell me what the IDE looks for to decide if > the source code is locked or not for edition? > > One more note: I can use cut, copy and paste. Everything that can be done > with a mouse click works, but the keys used for editing are all locked > (arrows, character, pgdn, pgup, etc.) > > I've created a virtual machine with the same environment (linux mint 18.1). > There I can install gambas and change my source code. > > Any hints, no matter how crazy, will be much appreciated. I have already > lost a bunch of hours trying to figure this out, but have made no progress > so far. > > Regards > > - fernando > > Can you try to change your XInput method? -- Beno?t Minisini From fernandojosecabral at ...626... Sat May 13 17:30:32 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 13 May 2017 12:30:32 -0300 Subject: [Gambas-user] Keyboard locked -- insisting one more time In-Reply-To: <83e55d4a-43c6-06cf-3355-18d9454dced4@...1...> References: <83e55d4a-43c6-06cf-3355-18d9454dced4@...1...> Message-ID: Beno?t, for me, hic sunt dracones. What should I change? Regards Fernando 2017-05-13 12:24 GMT-03:00 Beno?t Minisini : > Le 13/05/2017 ? 15:56, Fernando Cabral a ?crit : > >> Using IDE I can't edit my source code. It seems locked up. To no avail, I >> have followed every hint I' ve received from you guys. I've done more. I >> have uninstalled the whole gambas package. I have even searched every file >> using find and locate so as not to leave any remains behind. I compressed >> and save source code and moved all of them to a different directory. >> >> After that, I installed gambas3. The First time, I used apt-get and got an >> older version. It did not work. I uninstalled and proceeded to full >> removal >> again. >> Then installed one more time using PPA. Again, it dis not work. >> >> I even tried using a virtual keyboard (Florence). Same problem. >> >> I am at a complete lost. I have no idea where else, or what else to look >> for. >> >> Will someone be kind enough to tell me what the IDE looks for to decide if >> the source code is locked or not for edition? >> >> One more note: I can use cut, copy and paste. Everything that can be done >> with a mouse click works, but the keys used for editing are all locked >> (arrows, character, pgdn, pgup, etc.) >> >> I've created a virtual machine with the same environment (linux mint >> 18.1). >> There I can install gambas and change my source code. >> >> Any hints, no matter how crazy, will be much appreciated. I have already >> lost a bunch of hours trying to figure this out, but have made no progress >> so far. >> >> Regards >> >> - fernando >> >> >> > Can you try to change your XInput method? > > -- > Beno?t Minisini > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From charlie at ...2793... Sat May 13 17:47:52 2017 From: charlie at ...2793... (Charlie) Date: Sat, 13 May 2017 08:47:52 -0700 (MST) Subject: [Gambas-user] Possible bug (Application_Signal) Message-ID: <1494690472051-58971.post@...3046...> I think there is a small bug relating to Application_Signal. If the line 'Public Sub Application_Signal(x As Integer)' does not have 'x As Integer' an error is generated in the code, see image, but the compiler reports the 'x' as unused. See attached program that has my system details included. CLIOnly.tar ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Possible-bug-Application-Signal-tp58971.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sat May 13 18:07:01 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 13 May 2017 18:07:01 +0200 Subject: [Gambas-user] Keyboard locked -- insisting one more time In-Reply-To: References: Message-ID: <20170513160701.GA590@...3600...> On Sat, 13 May 2017, Fernando Cabral wrote: > Using IDE I can't edit my source code. It seems locked up. To no avail, I > have followed every hint I' ve received from you guys. I've done more. I > have uninstalled the whole gambas package. I have even searched every file > using find and locate so as not to leave any remains behind. I compressed > and save source code and moved all of them to a different directory. > > After that, I installed gambas3. The First time, I used apt-get and got an > older version. It did not work. I uninstalled and proceeded to full removal > again. > Then installed one more time using PPA. Again, it dis not work. > > I even tried using a virtual keyboard (Florence). Same problem. > > I am at a complete lost. I have no idea where else, or what else to look > for. > > Will someone be kind enough to tell me what the IDE looks for to decide if > the source code is locked or not for edition? > > One more note: I can use cut, copy and paste. Everything that can be done > with a mouse click works, but the keys used for editing are all locked > (arrows, character, pgdn, pgup, etc.) > > I've created a virtual machine with the same environment (linux mint 18.1). > There I can install gambas and change my source code. > > Any hints, no matter how crazy, will be much appreciated. I have already > lost a bunch of hours trying to figure this out, but have made no progress > so far. > I haven't been closely attending the other thread(s) but from this summary it sounds to me like the problem is somewhere between your keyboard and the IDE and not inside of the IDE. This would explain why chmod'ing didn't cure the symptom. I'll try to convince you of that below. It might still be a problem inside the graphical Gambas components, for instance, which handle keyboard input, but since you completely removed and re-installed Gambas multiple times and confirm it works under another installation of the same distribution, this sounds less likely than, say, an incompatibility or misconfiguration of another package. Then again this is also unlikely since Gambas is the only program that misbehaves, right? So, I have no other hints to give. But I can answer your question: > Will someone be kind enough to tell me what the IDE looks for to decide if > the source code is locked or not for edition? There are two ways to make files non-editable in the IDE: the first is making the project globally read-only, the other is locking specific files. For project-wide locking, quoting Project.module:Open() in the IDE source: 467 Public Function Open(sDir As String, Optional bInAnotherWindow As Boolean) As Boolean ... 523 ReadOnly = Not Access(sDir, gb.Write) 524 525 If Not ReadOnly Then 526 If Exist(sDir &/ ".startup") And If Not Access(sDir &/ ".startup", gb.Write) Then ReadOnly = True 527 Endif 528 529 Try hLock = Lock sDir &/ ".lock" 530 531 If Not ReadOnly And ((bConvert And Exist(sDir &/ ".lock")) Or Not hLock) Then 532 If Message.Warning(("This project seems to be already opened.\n\nOpening the same project twice can lead to data loss."), 533 ("Open after all"), ("Do not open")) = 2 Then 534 Return True 535 Endif 536 Endif sDir is the project directory. So it first checks whether the project directory is writable by the current user. If the directory can be written to but the .startup file exists and is not writable, the project is also considered read-only. Looking further at line 531: the bConvert Boolean is not important (it is set when opening a Gambas 2 project inside the Gambas 3 IDE) and we can suppose it is False. Then the next condition is that hLock is Null. This happens precisely when the Lock instruction in line 529 fails, i.e. when the project is already opened by another instance of the IDE or the lock file was not removed by a previous IDE accessing the project (because it terminated abnormally for instance). The presence of the lock file does *not* set read-only mode. It just makes the IDE confirm that you know you're opening a locked project and you may do so and edit the project. If the project is globally read-only (by the project directory or .startup not being writable), the IDE tells you this after opening the project: see the attached screenshot. Locking individual files works basically the same. The locking mechanism is invoked from the Gambas form/code editor with the "Lock / unlock file" button, which you can see in the other attached screenshot. If a file is locked like this, the IDE displays an indication besides the file name, which the screenshot also shows. How does this type of locking work? Look at Editor/Code/FEditor.class: 3745 Public Sub Action_Activate((Key) As String) As Boolean 3746 3747 Select Case Key 3748 3749 Case ".locked" 3750 Project.SetReadOnly(Path, Action[Key, Me].Value) and then 5749 Public Sub SetReadOnly(sPath As String, bReadOnly As Boolean) ... 5768 If Stat(sPath).Type = gb.File Then 5769 5770 If bReadOnly Then 5771 Try Chmod sPath To "r-.r-.r-.." 5772 Else 5773 Try Chmod sPath To "rw.rw.r..." 5774 Endif 5775 5776 Endif 5777 5778 hForm = Files[sPath] 5779 If hForm Then Try hForm.SetReadOnly The read-only status of files is all about the file modes again, which you confirmed not to be the problem by chmod'ing. But how does the file read-only status get to the Gambas editor? See Editor/Code/FEditor.class: 2181 Public Sub SetReadOnly() 2182 2183 Dim bReadOnly As Boolean 2184 2185 If Project.ReadOnly Or If Project.Running Or If Project.IsReadOnly(Path) Then 2186 bReadOnly = True 2187 Endif 2188 2189 edtEditor.ReadOnly = bReadOnly 2190 If $hEditor1 Then $hEditor1.ReadOnly = bReadOnly 2191 If $hEditor2 Then $hEditor2.ReadOnly = bReadOnly It propagates the setting to the editor obejcts, which in turn, when read-only, refuse all key presses except IDE-specific hotkeys (you may convince yourself of that by looking at Editors_KeyPress()). There is another interesting detail in SetReadOnly(): if you trace the way from clicking the "Run" button (by which you start executing your project) from FMain.class over Project.module to Debug/Design.module, you arrive at the following: 771 Private Sub Start(sCmd As String) ... 838 For Each hForm In Project.Workspace.Windows 839 Try hForm.OnProjectDebug 840 Next since your project workspace will contain your editor windows, switch to the Editor/Code/FEditor.class: 2433 Public Sub OnProjectDebug() 2434 2435 SetReadOnly 2436 If Not Project.Running Then $hEditor.HideMessageLabel 2437 2438 End Long story short: when you run a project, all open editors are locked. You probably already knew that. But this sort of locking boils down to the same primitives that are also used by the IDE when files are read-only locked. Now my point is: in my experience you can't paste text into the editors by any means when the project runs. Since you said you can do that and the "project is running" editor locking is the same as "the file is locked" locking, this implies that your editors are not actually locked and the problem must be outside of the IDE. [ Disclaimer: I only grep'd through the IDE source code with "read-?only|lock" and followed everything I deemed meaningful, so I might have missed something, but the things I found are the only behaviours of the IDE wrt locking that I ever experienced. ] But can you create and edit newly created projects? It would be worth a shot to create a project which uses gb.form.editor. Put a TextEditor on your form and run it. I think this editor control is the same one that the IDE uses. Let's see if it accepts key presses outside of the IDE or not. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: gb-readonly1.png Type: image/png Size: 43243 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gb-readonly2.png Type: image/png Size: 41571 bytes Desc: not available URL: From fernandojosecabral at ...626... Sat May 13 19:11:40 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 13 May 2017 14:11:40 -0300 Subject: [Gambas-user] Keyboard locked -- insisting one more time In-Reply-To: <20170513160701.GA590@...3600...> References: <20170513160701.GA590@...3600...> Message-ID: Thank you, Tobi for your patience explaining this whole thing. Your comments make sense. No, as to the keyboard issue, what I can not figure out boils down to two things: First, I have not changed anything. At least that I know of. Second, why I only see the problem with the gambas IDE? Everything else is working fine. I also have tried this: a) installed Linux Mint 18.1 in a virtual box b) mounted the original directories in the virtual box c) installed gambas in the virtual machine d) edited the original files in the virtual environment -- no problems whatsoever. The keyboard is the same. The hardware is the same. The operating system is the same. Nevertheless, the IDE behavior is different. It must have something to do with the keyboard driver, but what? I still can't see why this would only affect Gambas and nothing else. Not even applications developed with gambas. Anyway, I am glad you and others have tried so hard to help me. - fernando 2017-05-13 13:07 GMT-03:00 Tobias Boege : > On Sat, 13 May 2017, Fernando Cabral wrote: > > Using IDE I can't edit my source code. It seems locked up. To no avail, I > > have followed every hint I' ve received from you guys. I've done more. I > > have uninstalled the whole gambas package. I have even searched every > file > > using find and locate so as not to leave any remains behind. I compressed > > and save source code and moved all of them to a different directory. > > > > After that, I installed gambas3. The First time, I used apt-get and got > an > > older version. It did not work. I uninstalled and proceeded to full > removal > > again. > > Then installed one more time using PPA. Again, it dis not work. > > > > I even tried using a virtual keyboard (Florence). Same problem. > > > > I am at a complete lost. I have no idea where else, or what else to look > > for. > > > > Will someone be kind enough to tell me what the IDE looks for to decide > if > > the source code is locked or not for edition? > > > > One more note: I can use cut, copy and paste. Everything that can be done > > with a mouse click works, but the keys used for editing are all locked > > (arrows, character, pgdn, pgup, etc.) > > > > I've created a virtual machine with the same environment (linux mint > 18.1). > > There I can install gambas and change my source code. > > > > Any hints, no matter how crazy, will be much appreciated. I have already > > lost a bunch of hours trying to figure this out, but have made no > progress > > so far. > > > > I haven't been closely attending the other thread(s) but from this summary > it sounds to me like the problem is somewhere between your keyboard and the > IDE and not inside of the IDE. This would explain why chmod'ing didn't cure > the symptom. I'll try to convince you of that below. > > It might still be a problem inside the graphical Gambas components, for > instance, which handle keyboard input, but since you completely removed and > re-installed Gambas multiple times and confirm it works under another > installation of the same distribution, this sounds less likely than, say, > an incompatibility or misconfiguration of another package. Then again this > is also unlikely since Gambas is the only program that misbehaves, right? > > So, I have no other hints to give. But I can answer your question: > > > Will someone be kind enough to tell me what the IDE looks for to decide > if > > the source code is locked or not for edition? > > There are two ways to make files non-editable in the IDE: the first is > making the project globally read-only, the other is locking specific files. > > For project-wide locking, quoting Project.module:Open() in the IDE source: > > 467 Public Function Open(sDir As String, Optional bInAnotherWindow As > Boolean) As Boolean > ... > 523 ReadOnly = Not Access(sDir, gb.Write) > 524 > 525 If Not ReadOnly Then > 526 If Exist(sDir &/ ".startup") And If Not Access(sDir &/ > ".startup", gb.Write) Then ReadOnly = True > 527 Endif > 528 > 529 Try hLock = Lock sDir &/ ".lock" > 530 > 531 If Not ReadOnly And ((bConvert And Exist(sDir &/ ".lock")) Or Not > hLock) Then > 532 If Message.Warning(("This project seems to be already > opened.\n\nOpening the same project twice can lead to data loss."), > 533 ("Open after all"), ("Do not open")) = 2 Then > 534 Return True > 535 Endif > 536 Endif > > sDir is the project directory. So it first checks whether the project > directory is writable by the current user. If the directory can be written > to but the .startup file exists and is not writable, the project is also > considered read-only. > > Looking further at line 531: the bConvert Boolean is not important (it is > set when opening a Gambas 2 project inside the Gambas 3 IDE) and we can > suppose it is False. Then the next condition is that hLock is Null. This > happens precisely when the Lock instruction in line 529 fails, i.e. when > the project is already opened by another instance of the IDE or the lock > file was not removed by a previous IDE accessing the project (because it > terminated abnormally for instance). > > The presence of the lock file does *not* set read-only mode. It just makes > the IDE confirm that you know you're opening a locked project and you may > do so and edit the project. If the project is globally read-only (by the > project directory or .startup not being writable), the IDE tells you this > after opening the project: see the attached screenshot. > > Locking individual files works basically the same. The locking mechanism > is invoked from the Gambas form/code editor with the "Lock / unlock file" > button, which you can see in the other attached screenshot. If a file is > locked like this, the IDE displays an indication besides the file name, > which the screenshot also shows. > > How does this type of locking work? Look at Editor/Code/FEditor.class: > > 3745 Public Sub Action_Activate((Key) As String) As Boolean > 3746 > 3747 Select Case Key > 3748 > 3749 Case ".locked" > 3750 Project.SetReadOnly(Path, Action[Key, Me].Value) > > and then > > 5749 Public Sub SetReadOnly(sPath As String, bReadOnly As Boolean) > ... > 5768 If Stat(sPath).Type = gb.File Then > 5769 > 5770 If bReadOnly Then > 5771 Try Chmod sPath To "r-.r-.r-.." > 5772 Else > 5773 Try Chmod sPath To "rw.rw.r..." > 5774 Endif > 5775 > 5776 Endif > 5777 > 5778 hForm = Files[sPath] > 5779 If hForm Then Try hForm.SetReadOnly > > The read-only status of files is all about the file modes again, which you > confirmed not to be the problem by chmod'ing. > > But how does the file read-only status get to the Gambas editor? > See Editor/Code/FEditor.class: > > 2181 Public Sub SetReadOnly() > 2182 > 2183 Dim bReadOnly As Boolean > 2184 > 2185 If Project.ReadOnly Or If Project.Running Or If > Project.IsReadOnly(Path) Then > 2186 bReadOnly = True > 2187 Endif > 2188 > 2189 edtEditor.ReadOnly = bReadOnly > 2190 If $hEditor1 Then $hEditor1.ReadOnly = bReadOnly > 2191 If $hEditor2 Then $hEditor2.ReadOnly = bReadOnly > > It propagates the setting to the editor obejcts, which in turn, when > read-only, > refuse all key presses except IDE-specific hotkeys (you may convince > yourself of > that by looking at Editors_KeyPress()). > > There is another interesting detail in SetReadOnly(): if you trace the way > from clicking the "Run" button (by which you start executing your project) > from FMain.class over Project.module to Debug/Design.module, you arrive at > the following: > > 771 Private Sub Start(sCmd As String) > ... > 838 For Each hForm In Project.Workspace.Windows > 839 Try hForm.OnProjectDebug > 840 Next > > since your project workspace will contain your editor windows, switch to > the Editor/Code/FEditor.class: > > 2433 Public Sub OnProjectDebug() > 2434 > 2435 SetReadOnly > 2436 If Not Project.Running Then $hEditor.HideMessageLabel > 2437 > 2438 End > > Long story short: when you run a project, all open editors are locked. You > probably already knew that. But this sort of locking boils down to the same > primitives that are also used by the IDE when files are read-only locked. > > Now my point is: in my experience you can't paste text into the editors by > any means when the project runs. Since you said you can do that and the > "project is running" editor locking is the same as "the file is locked" > locking, this implies that your editors are not actually locked and the > problem must be outside of the IDE. > > [ Disclaimer: I only grep'd through the IDE source code with > "read-?only|lock" > and followed everything I deemed meaningful, so I might have missed > something, > but the things I found are the only behaviours of the IDE wrt locking > that > I ever experienced. ] > > But can you create and edit newly created projects? It would be worth a > shot > to create a project which uses gb.form.editor. Put a TextEditor on your > form > and run it. I think this editor control is the same one that the IDE uses. > Let's see if it accepts key presses outside of the IDE or not. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From karl.reinl at ...9... Sat May 13 19:33:49 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Sat, 13 May 2017 19:33:49 +0200 Subject: [Gambas-user] Keyboard locked -- insisting one more time In-Reply-To: References: <20170513160701.GA590@...3600...> Message-ID: <1494696829.12531.10.camel@...3609...> Am Samstag, den 13.05.2017, 14:11 -0300 schrieb Fernando Cabral: > Thank you, Tobi for your patience explaining this whole thing. > Your comments make sense. No, as to the keyboard issue, > what I can not figure out boils down to two things: First, I have not > changed anything. At least that I know of. > Second, why I only see the problem with the gambas IDE? Everything else is > working fine. > > I also have tried this: > a) installed Linux Mint 18.1 in a virtual box > b) mounted the original directories in the virtual box > c) installed gambas in the virtual machine > d) edited the original files in the virtual environment -- no problems > whatsoever. > > The keyboard is the same. The hardware is the same. The operating system is > the same. > Nevertheless, the IDE behavior is different. > > It must have something to do with the keyboard driver, but what? > > I still can't see why this would only affect Gambas and nothing else. Not > even applications developed with gambas. > > Anyway, I am glad you and others have tried so hard to help me. > > - fernando > Salut Fernando, 1. I see you are using virtual box. Not knowing what is your keyboard-problem box, and if you can risk or no, to damage this box with all the data. Clone this box to a virtual box, then you can play around with driver updates etc. 2. did you try it with a new created user on that keyboard-problem box. 3. By that way, why not driving your gambas developing box as a virtual box? -- Amicalement Charlie From t.lee.davidson at ...626... Sun May 14 00:09:03 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 13 May 2017 18:09:03 -0400 Subject: [Gambas-user] Best way to upgrade Gambas In-Reply-To: <5915608F.9040506@...3629...> References: <5915608F.9040506@...3629...> Message-ID: <02e59881-c370-d4d6-a639-8e1828d95f9c@...626...> OpenSuse is not much different from any other RPM-based distribution. On OpenSuse Leap 42, I rely on the Packman repo to keep my Gambas package up to date. I do not compile from source. Uninstalling the packaged version should not remove the necessary libraries unless you specifically instruct Yast or Zypper to do so. You will, of course, need to have installed the development (-devel) versions of certain libraries in order to compile your own local version. --- Lee On 05/12/2017 03:13 AM, Rolf-Werner Eilert wrote: > Yesterday I installed Gambas on a machine with Suse Leap. Under Suse, I > like to use Yast to collect the necessary libraries etc. to go sure that > nothing is missing. So far so good. > > Now I have a somewhat current Gambas version on this machine, but if I > want to follow its development and install future versions, how should I > proceed? > > Up to now, I used to have a self-compiled Gambas, but if I de-install > the distro's version, won't I loose the linked libraries too? > > Maybe there is someone here who knows Suse. As to Tumbleweed, I wouldn't > use it here because this machine is going to be a production server system. > > Regards > Rolf > From bm-53 at ...221... Sun May 14 20:26:51 2017 From: bm-53 at ...221... (ingo) Date: Sun, 14 May 2017 11:26:51 -0700 (MST) Subject: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ? In-Reply-To: References: Message-ID: <1494786411516-58976.post@...3046...> Hi Fabien, the gb.map works very well. Thank you for this. But I have questions about AddPolyLine: 1) The AddPolyLine() always draws the outline of polygon. Is it possible to have only lines with an 'open end'? I tried to set the last Mappoint to the same values as the next-to-last Mappoint. That does'nt help. 2) Can I manipulate the thickness of the line? Thank you in advance. Ingo -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.html Sent from the gambas-user mailing list archive at Nabble.com. From alexchernoff at ...67... Sun May 14 21:47:42 2017 From: alexchernoff at ...67... (alexchernoff) Date: Sun, 14 May 2017 12:47:42 -0700 (MST) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> Message-ID: <1494791262698-58977.post@...3046...> Good day all, Anyone know how to read data received on serial port into an array of bytes instead of string? String gets unreadable binary characters, so how can I put them into byte[] or so? Thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58977.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Sun May 14 21:56:44 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 14 May 2017 21:56:44 +0200 Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1494791262698-58977.post@...3046...> References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> Message-ID: <20170514195644.GB579@...3600...> On Sun, 14 May 2017, alexchernoff wrote: > Good day all, > > Anyone know how to read data received on serial port into an array of bytes > instead of string? > I think that's not possible. > String gets unreadable binary characters, so how can I > put them into byte[] or so? > This shouldn't be a problem. Gambas Strings are not null-terminated and can contain any sequence of bytes, which includes non-printable characters (which I think is what you meant by "unreadable" characters). If you insist on a Byte[], read it into a String and use Byte[].FromString(), but there is no way to go around the String, AFAICT (and that is because there is no need to, as Strings can handle binary data just fine). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From glaucio.de.araujo at ...626... Sun May 14 23:19:31 2017 From: glaucio.de.araujo at ...626... (Glaucio Araujo) Date: Sun, 14 May 2017 18:19:31 -0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A__Keyboard_locked_--_insis?= =?utf-8?q?ting_one_more_time?= Message-ID: Hi, I'm having exactly the same problem here in Xubuntu 17.04 with Gambas 3.9.1 and 3.9.2(PPA). ?My system information: [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.10.0-20-generic Architecture=x86_64 Distribution=Ubuntu 17.04 Desktop=XFCE Theme=Gtk Language=pt_BR.UTF-8 Memory=3829M [Libraries] Cairo=libcairo.so.2.11400.8 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.7 GStreamer=libgstreamer-1.0.so.0.1004.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 GTK+3=libgtk-3.so.0.2200.11 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.64.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.7.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path DERBY_HOME=/usr/lib/jvm/java-8-oracle/db DESKTOP_SESSION=xubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xubuntu GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= J2REDIR=/usr/lib/jvm/java-8-oracle/jre J2SDKDIR=/usr/lib/jvm/java-8-oracle JAVA_HOME=/usr/lib/jvm/java-8-oracle JOURNAL_STREAM=8:23426 LANG=pt_BR.UTF-8 LANGUAGE=pt_BR:pt:en LOGNAME= MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=gtk2 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1227,unix/:/tmp/.ICE-unix/1227 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1209 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=1 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/usr/share XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=xubuntu XDG_SESSION_ID=1 XDG_SESSION_TYPE=x11 XDG_VTNR=1 _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel? --- Gl?ucio de Araujo Mail : glaucio.de.araujo at ...626... TIM : (11) 95900-7801 (WhatsApp / Telegram) > Thank you, Tobi for your patience explaining this whole thing. > Your comments make sense. No, as to the keyboard issue, > what I can not figure out boils down to two things: First, I have not > changed anything. At least that I know of. > Second, why I only see the problem with the gambas IDE? Everything else is > working fine. > > I also have tried this: > a) installed Linux Mint 18.1 in a virtual box > b) mounted the original directories in the virtual box > c) installed gambas in the virtual machine > d) edited the original files in the virtual environment -- no problems > whatsoever. > > The keyboard is the same. The hardware is the same. The operating system is > the same. > Nevertheless, the IDE behavior is different. > > It must have something to do with the keyboard driver, but what? > > I still can't see why this would only affect Gambas and nothing else. Not > even applications developed with gambas. > > Anyway, I am glad you and others have tried so hard to help me. > > - fernando > > > > From ualex73 at ...626... Mon May 15 07:17:30 2017 From: ualex73 at ...626... (Alexie) Date: Mon, 15 May 2017 07:17:30 +0200 Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <20170514195644.GB579@...3600...> References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> Message-ID: Following should work for you: Public Sub XXX_Read() Dim iLen As Integer Dim aData As Byte[] iLen = Lof(Last) aData = New Byte[] aData.Resize(iLen) Try aData.Read(Last, 0, iLen) End You need to get the length (lof) first, then resize array ... only then you can read it. 2017-05-14 21:56 GMT+02:00 Tobias Boege : > On Sun, 14 May 2017, alexchernoff wrote: > > Good day all, > > > > Anyone know how to read data received on serial port into an array of > bytes > > instead of string? > > > > I think that's not possible. > > > String gets unreadable binary characters, so how can I > > put them into byte[] or so? > > > > This shouldn't be a problem. Gambas Strings are not null-terminated and can > contain any sequence of bytes, which includes non-printable characters > (which > I think is what you meant by "unreadable" characters). > > If you insist on a Byte[], read it into a String and use > Byte[].FromString(), > but there is no way to go around the String, AFAICT (and that is because > there is no need to, as Strings can handle binary data just fine). > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fernandojosecabral at ...626... Mon May 15 12:53:16 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 15 May 2017 07:53:16 -0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: Message-ID: Gl?ucio I see our systems and environment are quite similar, although not exactly the same. Have you installed something different that might have changed the IDE behavior? If I have, I have not been able to determine what it could be. What I know for sure is that one moment everything was working, next moment it was not anymore. What happened in-between, I can not figure out. Now, after running gambas as superuser ("sudo gambas3") I have given up the keyboard hypothesis (at least for now). I went back to the hypothesis that it has to do with some file or directory permission. Nevertheless, I have not been able to determine which file or directory it could be. As to the project tree, I have opened it up completely (rwxrwxrwx for the directories and at least rw-rw-rw- for the files. Even for the hidden ones. It did not help. I have also searched for every single file and directory related to gambas. For this I used searches like "locate -i --regex .*gambas.*" and "gbr3" and "gbx3", etc. Saved the results to a file and checked file and directory permissions. I could not find and thing unexpected. I have exhausted my bag of tricks so I have resorted to either of two ugly workarounds: running gambas as superuser or doing the edition in a virtual machine. In the last option, I just mount the project tree as a directory in the virtual machine. Then I make the changes in the virtual machine and test them in the real machine. Cumbersome, but has worked. I would ask you to try running "sudo gambas3". If you can edit your files as superuser, then it will be very likely that we have exactly the same problem. Sauda??es - fernando 2017-05-14 18:19 GMT-03:00 Glaucio Araujo : > Hi, > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas 3.9.1 > and 3.9.2(PPA). > > > ?My system information: > > [System] > Gambas=3.9.2 > OperatingSystem=Linux > Kernel=4.10.0-20-generic > Architecture=x86_64 > Distribution=Ubuntu 17.04 > Desktop=XFCE > Theme=Gtk > Language=pt_BR.UTF-8 > Memory=3829M > > [Libraries] > Cairo=libcairo.so.2.11400.8 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.7 > GStreamer=libgstreamer-1.0.so.0.1004.0 > GTK+2=libgtk-x11-2.0.so.0.2400.31 > GTK+3=libgtk-3.so.0.2200.11 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.64.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.7.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CLUTTER_BACKEND=x11 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db > DESKTOP_SESSION=xubuntu > DISPLAY=:0.0 > GB_GUI=gb.qt4 > GDMSESSION=xubuntu > GLADE_CATALOG_PATH=: > GLADE_MODULE_PATH=: > GLADE_PIXMAP_PATH=: > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=0 > HOME= > J2REDIR=/usr/lib/jvm/java-8-oracle/jre > J2SDKDIR=/usr/lib/jvm/java-8-oracle > JAVA_HOME=/usr/lib/jvm/java-8-oracle > JOURNAL_STREAM=8:23426 > LANG=pt_BR.UTF-8 > LANGUAGE=pt_BR:pt:en > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ > sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/ > lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/ > bin:/usr/lib/jvm/java-8-oracle/jre/bin > PWD= > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_QPA_PLATFORMTHEME=gtk2 > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > 1227,unix/:/tmp/.ICE-unix/1227 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1209 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > USERNAME= > WINDOWPATH=1 > XAUTHORITY=/run/user/1000/gdm/Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg > XDG_CURRENT_DESKTOP=XFCE > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:< > home>/.local/share/flatpak/exports/share/:/var/lib/ > flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/ > lib/snapd/desktop:/usr/share > XDG_MENU_PREFIX=xfce- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SESSION_DESKTOP=xubuntu > XDG_SESSION_ID=1 > XDG_SESSION_TYPE=x11 > XDG_VTNR=1 > _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true > -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel? > > > --- > > Gl?ucio de Araujo > > Mail : glaucio.de.araujo at ...626... > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > > > > > Thank you, Tobi for your patience explaining this whole thing. > > Your comments make sense. No, as to the keyboard issue, > > what I can not figure out boils down to two things: First, I have not > > changed anything. At least that I know of. > > Second, why I only see the problem with the gambas IDE? Everything else > is > > working fine. > > > > I also have tried this: > > a) installed Linux Mint 18.1 in a virtual box > > b) mounted the original directories in the virtual box > > c) installed gambas in the virtual machine > > d) edited the original files in the virtual environment -- no problems > > whatsoever. > > > > The keyboard is the same. The hardware is the same. The operating system > is > > the same. > > Nevertheless, the IDE behavior is different. > > > > It must have something to do with the keyboard driver, but what? > > > > I still can't see why this would only affect Gambas and nothing else. > Not > > even applications developed with gambas. > > > > Anyway, I am glad you and others have tried so hard to help me. > > > > - fernando > > > > > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From mike.crean at ...2897... Mon May 15 12:46:01 2017 From: mike.crean at ...2897... (Mike Crean) Date: Mon, 15 May 2017 10:46:01 +0000 (UTC) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> Message-ID: <1370117813.157183.1494845161815@...3424...> If you are talking about a byte the likes of that used in modbusrtu you will need to do some high low bit manipulation on it. RegardsMike On Monday, 15 May 2017, 13:19, Alexie wrote: Following should work for you: Public Sub XXX_Read() ? Dim iLen As Integer ? Dim aData As Byte[] ? iLen = Lof(Last) ? aData = New Byte[] ? aData.Resize(iLen) ? Try aData.Read(Last, 0, iLen) End You need to get the length (lof) first, then resize array ... only then you can read it. 2017-05-14 21:56 GMT+02:00 Tobias Boege : > On Sun, 14 May 2017, alexchernoff wrote: > > Good day all, > > > > Anyone know how to read data received on serial port into an array of > bytes > > instead of string? > > > > I think that's not possible. > > > String gets unreadable binary characters, so how can I > > put them into byte[] or so? > > > > This shouldn't be a problem. Gambas Strings are not null-terminated and can > contain any sequence of bytes, which includes non-printable characters > (which > I think is what you meant by "unreadable" characters). > > If you insist on a Byte[], read it into a String and use > Byte[].FromString(), > but there is no way to go around the String, AFAICT (and that is because > there is no need to, as Strings can handle binary data just fine). > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From nando_f at ...951... Mon May 15 13:33:50 2017 From: nando_f at ...951... (nando_f at ...951...) Date: Mon, 15 May 2017 07:33:50 -0400 Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1370117813.157183.1494845161815@...3424...> References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> <1370117813.157183.1494845161815@...3424...> Message-ID: <20170515112426.M83422@...951...> My reply to the comment: > Gambas Strings are not null-terminated and can > contain any sequence of bytes, which includes non-printable characters > (which I think is what you meant by "unreadable" characters). You should always consider String as an array of bytes. Just because humans can't read them or because they cannot be displayed, means nothing to the computer. It only means something to the human. While the computer is processing and doing work, we don't need to see it. I use string exclusively for binary data...especially serial port stuff. Strings are far easier than a byte array. If you insist on using a byte array, consider a large fixed-size array. For example: b[10000]. Resizing a dynamic array every time is cpu work. -Fernando -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Mike Crean To: mailing list for gambas users Sent: Mon, 15 May 2017 10:46:01 +0000 (UTC) Subject: Re: [Gambas-user] Serial I/O with byte data > If you are talking about a byte the likes of that used in modbusrtu you will > need to do some high low bit manipulation on it. RegardsMike > > On Monday, 15 May 2017, 13:19, Alexie wrote: > > Following should work for you: > > Public Sub XXX_Read() > > ? Dim iLen As Integer > ? Dim aData As Byte[] > > ? iLen = Lof(Last) > ? aData = New Byte[] > ? aData.Resize(iLen) > ? Try aData.Read(Last, 0, iLen) > > End > > You need to get the length (lof) first, then resize array ... only then you > can read it. > > 2017-05-14 21:56 GMT+02:00 Tobias Boege : > > > On Sun, 14 May 2017, alexchernoff wrote: > > > Good day all, > > > > > > Anyone know how to read data received on serial port into an array of > > bytes > > > instead of string? > > > > > > > I think that's not possible. > > > > > String gets unreadable binary characters, so how can I > > > put them into byte[] or so? > > > > > > > This shouldn't be a problem. Gambas Strings are not null-terminated and can > > contain any sequence of bytes, which includes non-printable characters > > (which > > I think is what you meant by "unreadable" characters). > > > > If you insist on a Byte[], read it into a String and use > > Byte[].FromString(), > > but there is no way to go around the String, AFAICT (and that is because > > there is no need to, as Strings can handle binary data just fine). > > > > Regards, > > Tobi > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user ------- End of Original Message ------- From alexchernoff at ...67... Mon May 15 13:52:56 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 15 May 2017 04:52:56 -0700 (MST) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> Message-ID: <1494849176407-58984.post@...3046...> Thanks, it works (both with .tostring and reading one by one... But I get values I don't know how to convert, e.g. where I expect a decimal 83 or hex 53 I get byte value of 253 ... Or instead of Decimal 15 I get 225 :( cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58984.html Sent from the gambas-user mailing list archive at Nabble.com. From glaucio.de.araujo at ...626... Mon May 15 14:53:41 2017 From: glaucio.de.araujo at ...626... (Glaucio Araujo) Date: Mon, 15 May 2017 09:53:41 -0300 Subject: [Gambas-user] Keyboard locked -- insisting one more time Message-ID: Let's see...? > Have you installed something different that might have changed > the IDE behavior? ?Not that I know. The problem happened just after Gambas fresh install. > > Now, after running gambas as superuser ("sudo gambas3") I have given up the > keyboard hypothesis (at least for now). I went back to the hypothesis that > it has to do with some file or directory permission. Nevertheless, I have > not been able to determine which file or directory it could be. As to the > project tree, I have opened it up completely (rwxrwxrwx for the directories > and at least rw-rw-rw- for the files. Even for the hidden ones. It did not > help. > ?Same here. But I know that it has nothing to do with permissions, since it's possible to paste with the mouse. > > > I have exhausted my bag of tricks so I have resorted to either of two ugly > workarounds: running gambas as superuser or doing the edition in a virtual > machine. In the last option, I just mount the project tree as a directory > in the virtual machine. Then I make the changes in the virtual machine and > test them in the real machine. Cumbersome, but has worked. > I would ask you to try running "sudo gambas3". If you can edit your files > as superuser, then it will be very likely that we have exactly the same > problem. > Running as "sudo": gda at ...3657...:~$ sudo gambas3 [sudo] senha para gda: X Error: BadAccess (attempt to access private resource denied) 10 Extension: 130 (MIT-SHM) Minor opcode: 1 (X_ShmAttach) Resource id: 0x141 ?+ ?I'm wondering if the editor uses Java. There was some similar issues with keyboards and java code editors on Linux in the past. + I'm also thinking about some Gtk+2/3 missing or conflicting library, since my system has Xubuntu and Gnome 3.24.1 + Maybe some Xorg setting could do the trick, as it is the only difference I can think between VM/Desktop install. ?Abra?o!? ? ? --- Gl?ucio de Araujo Mail : glaucio.de.araujo at ...626... TIM : (11) 95900-7801 (WhatsApp / Telegram) ? From alexchernoff at ...67... Mon May 15 15:42:54 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 15 May 2017 06:42:54 -0700 (MST) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1494849176407-58984.post@...3046...> References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> <1494849176407-58984.post@...3046...> Message-ID: <1494855774311-58986.post@...3046...> Hmm eureka, it's 02 53 = 0x53 Or 02 25 = 0x25... Where could that 02 be from? Cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58986.html Sent from the gambas-user mailing list archive at Nabble.com. From d4t4full at ...626... Mon May 15 15:51:21 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Mon, 15 May 2017 10:51:21 -0300 Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1494855774311-58986.post@...3046...> References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> <1494849176407-58984.post@...3046...> <1494855774311-58986.post@...3046...> Message-ID: &H02 is ASCII for STX, a special char that for some protocols mean "start transmission". Some protocols frame their data payload between chars STX (&H02) and ETX(&H03). These also normally use some checksum mechanism either before or right after ETX. Of course it could also be a misleading UTF8 header of some kind resulting from raw data to string conversion, but that I cannot tell for sure. You need a good protocol manual and check low-level comms frames. Regards, zxMarce. On May 15, 2017, 10:42, at 10:42, alexchernoff wrote: >Hmm eureka, it's 02 53 = 0x53 >Or 02 25 = 0x25... > >Where could that 02 be from? > >Cheers! > > > >-- >View this message in context: >http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58986.html >Sent from the gambas-user mailing list archive at Nabble.com. > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From fernandojosecabral at ...626... Mon May 15 16:01:13 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 15 May 2017 11:01:13 -0300 Subject: [Gambas-user] Keyboard locked -- insisting one more time In-Reply-To: References: Message-ID: Gl?ucio wrote: > gda at ...3657...:~$ sudo gambas3 > [sudo] senha para gda: > X Error: BadAccess (attempt to access private resource denied) 10 > Extension: 130 (MIT-SHM) > Minor opcode: 1 (X_ShmAttach) > Resource id: 0x141 I don?t get this error. It runs smoothly. But then, I am running Mint 18.1 (and the same on the virtual machine...) It seems Beno?t thinks it has to do with keyboard input. He suggested I changed Xinput method, but did not give any hints on what to change. - fernando 2017-05-15 9:53 GMT-03:00 Glaucio Araujo : > Let's see...? > > > > > Have you installed something different that might have changed > > the IDE behavior? > > > > ?Not that I know. The problem happened just after Gambas fresh install. > > > > > > > Now, after running gambas as superuser ("sudo gambas3") I have given up > the > > keyboard hypothesis (at least for now). I went back to the hypothesis > that > > it has to do with some file or directory permission. Nevertheless, I have > > not been able to determine which file or directory it could be. As to the > > project tree, I have opened it up completely (rwxrwxrwx for the > directories > > and at least rw-rw-rw- for the files. Even for the hidden ones. It did > not > > help. > > > > > ?Same here. But I know that it has nothing to do with permissions, since > it's possible to paste with the mouse. > > > > > > > > > I have exhausted my bag of tricks so I have resorted to either of two > ugly > > workarounds: running gambas as superuser or doing the edition in a > virtual > > machine. In the last option, I just mount the project tree as a directory > > in the virtual machine. Then I make the changes in the virtual machine > and > > test them in the real machine. Cumbersome, but has worked. > > I would ask you to try running "sudo gambas3". If you can edit your files > > as superuser, then it will be very likely that we have exactly the same > > problem. > > > > > Running as "sudo": > > gda at ...3657...:~$ sudo gambas3 > [sudo] senha para gda: > X Error: BadAccess (attempt to access private resource denied) 10 > Extension: 130 (MIT-SHM) > Minor opcode: 1 (X_ShmAttach) > Resource id: 0x141 > > > ?+ ?I'm wondering if the editor uses Java. There was some similar issues > with keyboards and java code editors on Linux in the past. > > + I'm also thinking about some Gtk+2/3 missing or conflicting library, > since my system has Xubuntu and Gnome 3.24.1 > > + Maybe some Xorg setting could do the trick, as it is the only difference > I can think between VM/Desktop install. > > > > ?Abra?o!? > > > ? > ? > --- > > Gl?ucio de Araujo > > Mail : glaucio.de.araujo at ...626... > TIM : (11) 95900-7801 (WhatsApp / Telegram) > ? > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From criguada at ...626... Mon May 15 17:20:49 2017 From: criguada at ...626... (Cristiano Guadagnino) Date: Mon, 15 May 2017 17:20:49 +0200 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: Message-ID: Fernando, did you try setting up a new user on your system and trying to run gambas as the new user? Cris Sent with Mailtrack On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > Gl?ucio > > I see our systems and environment are quite similar, although not exactly > the same. Have you installed something different that might have changed > the IDE behavior? If I have, I have not been able to determine what it > could be. What I know for sure is that one moment everything was working, > next moment it was not anymore. What happened in-between, I can not figure > out. > > Now, after running gambas as superuser ("sudo gambas3") I have given up the > keyboard hypothesis (at least for now). I went back to the hypothesis that > it has to do with some file or directory permission. Nevertheless, I have > not been able to determine which file or directory it could be. As to the > project tree, I have opened it up completely (rwxrwxrwx for the directories > and at least rw-rw-rw- for the files. Even for the hidden ones. It did not > help. > > I have also searched for every single file and directory related to gambas. > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3" and > "gbx3", etc. Saved the results to a file and checked file and directory > permissions. I could not find and thing unexpected. > > I have exhausted my bag of tricks so I have resorted to either of two ugly > workarounds: running gambas as superuser or doing the edition in a virtual > machine. In the last option, I just mount the project tree as a directory > in the virtual machine. Then I make the changes in the virtual machine and > test them in the real machine. Cumbersome, but has worked. > I would ask you to try running "sudo gambas3". If you can edit your files > as superuser, then it will be very likely that we have exactly the same > problem. > > Sauda??es > > - fernando > > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo : > > > Hi, > > > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas > 3.9.1 > > and 3.9.2(PPA). > > > > > > ?My system information: > > > > [System] > > Gambas=3.9.2 > > OperatingSystem=Linux > > Kernel=4.10.0-20-generic > > Architecture=x86_64 > > Distribution=Ubuntu 17.04 > > Desktop=XFCE > > Theme=Gtk > > Language=pt_BR.UTF-8 > > Memory=3829M > > > > [Libraries] > > Cairo=libcairo.so.2.11400.8 > > Curl=libcurl.so.4.4.0 > > DBus=libdbus-1.so.3.14.7 > > GStreamer=libgstreamer-1.0.so.0.1004.0 > > GTK+2=libgtk-x11-2.0.so.0.2400.31 > > GTK+3=libgtk-3.so.0.2200.11 > > OpenGL=libGL.so.1.2.0 > > Poppler=libpoppler.so.64.0.0 > > QT4=libQtCore.so.4.8.7 > > QT5=libQt5Core.so.5.7.1 > > SDL=libSDL-1.2.so.0.11.4 > > SQLite=libsqlite3.so.0.8.6 > > > > [Environment] > > CLUTTER_BACKEND=x11 > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path > > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db > > DESKTOP_SESSION=xubuntu > > DISPLAY=:0.0 > > GB_GUI=gb.qt4 > > GDMSESSION=xubuntu > > GLADE_CATALOG_PATH=: > > GLADE_MODULE_PATH=: > > GLADE_PIXMAP_PATH=: > > GTK_MODULES=gail:atk-bridge > > GTK_OVERLAY_SCROLLING=0 > > HOME= > > J2REDIR=/usr/lib/jvm/java-8-oracle/jre > > J2SDKDIR=/usr/lib/jvm/java-8-oracle > > JAVA_HOME=/usr/lib/jvm/java-8-oracle > > JOURNAL_STREAM=8:23426 > > LANG=pt_BR.UTF-8 > > LANGUAGE=pt_BR:pt:en > > LOGNAME= > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ > > sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/ > > lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/ > > bin:/usr/lib/jvm/java-8-oracle/jre/bin > > PWD= > > QT_ACCESSIBILITY=1 > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > > QT_QPA_PLATFORMTHEME=gtk2 > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > > 1227,unix/:/tmp/.ICE-unix/1227 > > SHELL=/bin/bash > > SHLVL=0 > > SSH_AGENT_PID=1209 > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > TZ=:/etc/localtime > > USER= > > USERNAME= > > WINDOWPATH=1 > > XAUTHORITY=/run/user/1000/gdm/Xauthority > > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg > > XDG_CURRENT_DESKTOP=XFCE > > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:< > > home>/.local/share/flatpak/exports/share/:/var/lib/ > > flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/ > > lib/snapd/desktop:/usr/share > > XDG_MENU_PREFIX=xfce- > > XDG_RUNTIME_DIR=/run/user/1000 > > XDG_SEAT=seat0 > > XDG_SESSION_DESKTOP=xubuntu > > XDG_SESSION_ID=1 > > XDG_SESSION_TYPE=x11 > > XDG_VTNR=1 > > _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true > > -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel? > > > > > > --- > > > > Gl?ucio de Araujo > > > > Mail : glaucio.de.araujo at ...626... > > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > > > > > > > > > > Thank you, Tobi for your patience explaining this whole thing. > > > Your comments make sense. No, as to the keyboard issue, > > > what I can not figure out boils down to two things: First, I have not > > > changed anything. At least that I know of. > > > Second, why I only see the problem with the gambas IDE? Everything else > > is > > > working fine. > > > > > > I also have tried this: > > > a) installed Linux Mint 18.1 in a virtual box > > > b) mounted the original directories in the virtual box > > > c) installed gambas in the virtual machine > > > d) edited the original files in the virtual environment -- no problems > > > whatsoever. > > > > > > The keyboard is the same. The hardware is the same. The operating > system > > is > > > the same. > > > Nevertheless, the IDE behavior is different. > > > > > > It must have something to do with the keyboard driver, but what? > > > > > > I still can't see why this would only affect Gambas and nothing else. > > Not > > > even applications developed with gambas. > > > > > > Anyway, I am glad you and others have tried so hard to help me. > > > > > > - fernando > > > > > > > > > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 > Telefone celular: +55 (37) 99988-8868 > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From d4t4full at ...626... Mon May 15 17:27:33 2017 From: d4t4full at ...626... (ML) Date: Mon, 15 May 2017 12:27:33 -0300 Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: <1494849176407-58984.post@...3046...> References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> <1494849176407-58984.post@...3046...> Message-ID: Alex, Without knowing the protocol/device you're communicating with, I don't think anyone will be able to give substantial help. But, after years of interfacing very diverse hardware via RS-232 (fiscal printers, cash-hanlding hardware, GPS, you name it!), I can tell you that it's not always easy, and docs sometimes lack info or are plain wrong. Unfortunately the bulk of my experience with hardware is in VB6... Maybe you're looking at some kind of protocol wrapper bytes... Can't really say without the detail. On 15/05/17 08:52, alexchernoff wrote: > Thanks, it works (both with .tostring and reading one by one... > But I get values I don't know how to convert, e.g. where I expect a > decimal 83 or hex 53 I get byte value of 253 ... Or instead of Decimal > 15 I get 225 :( > cheers! From bugtracker at ...3416... Mon May 15 21:23:17 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 15 May 2017 19:23:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #3 by zxMarce: (sorry for the delay in replying) Hehe... you're right. But I also quoted IBM's ODBC docs for its DB2, and you can also check Easysoft's excellent C tutorials at http://www.easysoft.com/developer/languages/c/odbc_tutorial.html. Speaking about Easysoft, I myself made a command line ODBC tool to connect with ConnectionStrings and run queries in C with Easysoft's tutorials... And I absolutely suck at C. That good are those tutorials! Also, in case you didn't know, Microsoft was one of the leading forces behind drafting ODBC, as this quote from Wikipedia says: "ODBC was originally developed by Microsoft and Progress DataDirect during the early 1990s, and became the basis for the Call Level Interface (CLI) standardized by SQL Access Group in the Unix and mainframe field." So by using their docs you know that that is the standard. Well, at least theirs... They suck at Windows (and OS making and privacy respecting in general), yes, but they sometimes pull nice tricks off their hats like ODBC. And that is not the only standard they helped draft. But anyway both MS and IBM (at least when I read the docs to make the Gambas component work again) were kind enough to mark clearly any deviations or differences from the standard in their ODBC docs. Hope that helps, zxMarce. From bugtracker at ...3416... Mon May 15 21:39:24 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 15 May 2017 19:39:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #9 by PICCORO LENZ MCKAY: for close this bug, we need > * or update the gambas wiki documentation (please all languajes) * or provide better handle of the rs.count that perdon me, its very confuse provide such method and no retrieve desired results From bugtracker at ...3416... Mon May 15 21:48:35 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 15 May 2017 19:48:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: for close this bug, we need > * or update the gambas wiki documentation (please all languajes) * or provide better handle of the rs.count that perdon me, its very confuse provide such method and no retrieve desired results the gambas documentation said http://gambaswiki.org/wiki/comp/gb.db/result/max that returns rs.cound -1 but the rs.count return -1 so this always return -1.. as ZXMARGE said many odbc layers does not provide mechanish to count and offer those values if there its the case, and some implementations are planned this must be market in the wiki or let open this bug for now.. i'll watching it! I noted a obvous problem here! too many mysql here! my-poor-sql its not the only DB in the world! From jussi.lahtinen at ...626... Mon May 15 22:54:16 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 15 May 2017 23:54:16 +0300 Subject: [Gambas-user] Keyboard locked -- insisting one more time In-Reply-To: References: Message-ID: Can you both send Xorg.0.log (usually in /var/log/)? Jussi On Mon, May 15, 2017 at 5:01 PM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > Gl?ucio wrote: > > gda at ...3657...:~$ sudo gambas3 > > [sudo] senha para gda: > > X Error: BadAccess (attempt to access private resource denied) 10 > > Extension: 130 (MIT-SHM) > > Minor opcode: 1 (X_ShmAttach) > > Resource id: 0x141 > > I don?t get this error. It runs smoothly. But then, I am running Mint 18.1 > (and the same on the virtual machine...) > > It seems Beno?t thinks it has to do with keyboard input. He suggested I > changed Xinput method, but did not give any hints on what to change. > > - fernando > > 2017-05-15 9:53 GMT-03:00 Glaucio Araujo : > > > Let's see...? > > > > > > > > > Have you installed something different that might have changed > > > the IDE behavior? > > > > > > > > ?Not that I know. The problem happened just after Gambas fresh install. > > > > > > > > > > > > Now, after running gambas as superuser ("sudo gambas3") I have given up > > the > > > keyboard hypothesis (at least for now). I went back to the hypothesis > > that > > > it has to do with some file or directory permission. Nevertheless, I > have > > > not been able to determine which file or directory it could be. As to > the > > > project tree, I have opened it up completely (rwxrwxrwx for the > > directories > > > and at least rw-rw-rw- for the files. Even for the hidden ones. It did > > not > > > help. > > > > > > > > > ?Same here. But I know that it has nothing to do with permissions, since > > it's possible to paste with the mouse. > > > > > > > > > > > > > > > I have exhausted my bag of tricks so I have resorted to either of two > > ugly > > > workarounds: running gambas as superuser or doing the edition in a > > virtual > > > machine. In the last option, I just mount the project tree as a > directory > > > in the virtual machine. Then I make the changes in the virtual machine > > and > > > test them in the real machine. Cumbersome, but has worked. > > > I would ask you to try running "sudo gambas3". If you can edit your > files > > > as superuser, then it will be very likely that we have exactly the same > > > problem. > > > > > > > > > Running as "sudo": > > > > gda at ...3657...:~$ sudo gambas3 > > [sudo] senha para gda: > > X Error: BadAccess (attempt to access private resource denied) 10 > > Extension: 130 (MIT-SHM) > > Minor opcode: 1 (X_ShmAttach) > > Resource id: 0x141 > > > > > > ?+ ?I'm wondering if the editor uses Java. There was some similar issues > > with keyboards and java code editors on Linux in the past. > > > > + I'm also thinking about some Gtk+2/3 missing or conflicting library, > > since my system has Xubuntu and Gnome 3.24.1 > > > > + Maybe some Xorg setting could do the trick, as it is the only > difference > > I can think between VM/Desktop install. > > > > > > > > ?Abra?o!? > > > > > > ? > > ? > > --- > > > > Gl?ucio de Araujo > > > > Mail : glaucio.de.araujo at ...626... > > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > ? > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 > Telefone celular: +55 (37) 99988-8868 > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From alexchernoff at ...67... Tue May 16 08:56:21 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 15 May 2017 23:56:21 -0700 (MST) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> <1494849176407-58984.post@...3046...> Message-ID: <1494917781125-58995.post@...3046...> it works fine - it was a strange serial port hardware issue. All the "Read" methods suggested above work, Thanks to all! -- View this message in context: http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58995.html Sent from the gambas-user mailing list archive at Nabble.com. From mike.crean at ...2897... Tue May 16 09:32:19 2017 From: mike.crean at ...2897... (Mike Crean) Date: Tue, 16 May 2017 07:32:19 +0000 (UTC) Subject: [Gambas-user] Serial I/O with byte data In-Reply-To: References: <1494259984658-58933.post@...3046...> <384c7041-d3b6-718e-a5ee-08ef3814df65@...626...> <1494791262698-58977.post@...3046...> <20170514195644.GB579@...3600...> <1494849176407-58984.post@...3046...> Message-ID: <1174700593.266650.1494919939777@...3424...> Hi, as I said before most likely Modbus RTU or similar protocol. If so you will need to do some BIT bashing and probably some CRC conversion. You will need to know the frame size among other things. Public Sub HbLb() ? Dim Xz2 As Long ? Hb = Fix(DataS / 256) ? Xz2 = Fix(256 * Hb) ? Lb = DataS - Xz2 End RegardsMike On Monday, 15 May 2017, 23:29, ML wrote: Alex, Without knowing the protocol/device you're communicating with, I don't think anyone will be able to give substantial help. But, after years of interfacing very diverse hardware via RS-232 (fiscal printers, cash-hanlding hardware, GPS, you name it!), I can tell you that it's not always easy, and docs sometimes lack info or are plain wrong. Unfortunately the bulk of my experience with hardware is in VB6... Maybe you're looking at some kind of protocol wrapper bytes... Can't really say without the detail. On 15/05/17 08:52, alexchernoff wrote: > Thanks, it works (both with .tostring and reading one by one... > But I get values I don't know how to convert, e.g. where I expect a > decimal 83 or hex 53 I get byte value of 253 ... Or instead of Decimal > 15 I get 225 :( > cheers! ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From glaucio.de.araujo at ...626... Tue May 16 11:48:35 2017 From: glaucio.de.araujo at ...626... (Glaucio Araujo) Date: Tue, 16 May 2017 06:48:35 -0300 Subject: [Gambas-user] Gambas-user Digest, Vol 132, Issue 29 Message-ID: Hi, Jussi My Xorg.0.log is in ~/.local/share/xorg/ Log attached. My Xinput: gda at ...3657...:~$ xinput list ? Virtual core pointer id=2 [master pointer (3)] ? ? Virtual core XTEST pointer id=4 [slave pointer (2)] ? ? Logitech M215 2nd Gen id=11 [slave pointer (2)] ? ? Logitech K330 id=10 [slave pointer (2)] ? ? ETPS/2 Elantech Touchpad id=13 [slave pointer (2)] ? Virtual core keyboard id=3 [master keyboard (2)] ? Virtual core XTEST keyboard id=5 [slave keyboard (3)] ? Power Button id=6 [slave keyboard (3)] ? Video Bus id=7 [slave keyboard (3)] ? Power Button id=8 [slave keyboard (3)] ? Sleep Button id=9 [slave keyboard (3)] ? AT Translated Set 2 keyboard id=12 [slave keyboard (3)] ? Acer WMI hotkeys id=14 [slave keyboard (3)] ? Logitech K330 id=15 [slave keyboard (3)] ? HD WebCam id=16 [slave keyboard (3)] --- Gl?ucio de Araujo Mail : glaucio.de.araujo at ...626... TIM : (11) 95900-7801 (WhatsApp / Telegram) Date: Mon, 15 May 2017 23:54:16 +0300 > From: Jussi Lahtinen > Subject: Re: [Gambas-user] Keyboard locked -- insisting one more time > To: fernando at ...3654..., mailing list for gambas users > > Message-ID: > gmail.com> > Content-Type: text/plain; charset="UTF-8" > > Can you both send Xorg.0.log (usually in /var/log/)? > > > Jussi > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Xorg.0.log Type: text/x-log Size: 102031 bytes Desc: not available URL: From cheikhdiabang at ...67... Tue May 16 13:27:22 2017 From: cheikhdiabang at ...67... (cheikh diabang) Date: Tue, 16 May 2017 11:27:22 +0000 Subject: [Gambas-user] how create executable for my application Message-ID: hi everybody. i have finish to create my application but i have some probl?me to generate the executable. I use gambas 3.9.2 i have tried in the GUI: Projet--->generate--->executable But the gambas application crashes I need help please. From rterry at ...1823... Tue May 16 13:55:24 2017 From: rterry at ...1823... (rterry) Date: Tue, 16 May 2017 21:55:24 +1000 Subject: [Gambas-user] how create executable for my application Message-ID: Do You mean the executable was created ok but when you run it the actual executable crashes? I'm assuming that if you run your project via the IDE it doesn't ?crash? More details please Sent from my Samsung GALAXY S5 -------- Original message -------- From: cheikh diabang Date: 16/05/2017 21:27 (GMT+10:00) To: Beno?t Minisini , gambas-user at lists.sourceforge.net Subject: [Gambas-user] how create executable for my application hi everybody. i have finish to create my application but i have some probl?me to generate the executable. I use gambas 3.9.2 i have tried in the GUI: Projet--->generate--->executable But the gambas application crashes I need help please. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From matti.eber at ...3240... Tue May 16 20:58:58 2017 From: matti.eber at ...3240... (Matti) Date: Tue, 16 May 2017 20:58:58 +0200 Subject: [Gambas-user] String[].Find finds nothing In-Reply-To: References: Message-ID: <0860f164-6630-74ff-2705-cda1b51b4085@...3240...> Thank you all for your help. Now, my search is really fast. For anyone having similar problems: 1. My source was a huge unsorted JSON file. I converted it to a much smaller sorted text file. So, reading it into a String array, the array is already sorted. 2. String[].Find() indeed works with Mode=gb.Like=4. It's faster than doing the For...Next work yourself. 3. But gb.Like doesn't mean it finds anything matching your first characters, case insensitive. You have to use 'i = MyStringArray.Find(SearchString & "*", gb.Like, 0). Regards, Matti Am 10.05.2017 um 18:57 schrieb Matti: > I tried to search an array with the 'Find' function instead of 'For...Next' and 'InStr'. > > The wiki says: > "String[].Find (gb) > Function Find ( Value As String [ , Mode As Integer, Start As Integer ] ) As Integer > Returns the position of the first occurrence of Value in the array. > If Value cannot be found, -1 is returned." > > But I can do what I want, I always get '-1'. No positive result ever. > > Attached is a tiny project that should show this behaviour. > Where is my mistake? > Thanks in advance > Matti > > Gambas 3.9.2 > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From gambas.fr at ...626... Tue May 16 22:01:04 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 May 2017 22:01:04 +0200 Subject: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ? In-Reply-To: <1494786411516-58976.post@...3046...> References: <1494786411516-58976.post@...3046...> Message-ID: 2017-05-14 20:26 GMT+02:00 ingo : > Hi Fabien, > the gb.map works very well. Thank you for this. > But I have questions about AddPolyLine: > > 1) The AddPolyLine() always draws the outline of polygon. Is it possible to > have only lines with an 'open end'? > I tried to set the last Mappoint to the same values as the next-to-last > Mappoint. That does'nt help. you are right i've done a misstake. i use the paint.polygone to draw the polyline. oups > > 2) Can I manipulate the thickness of the line? I can add this but it will be only on the svn version first. > > Thank you in advance. > Ingo > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Tue May 16 22:34:30 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 May 2017 22:34:30 +0200 Subject: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ? In-Reply-To: References: <1494786411516-58976.post@...3046...> Message-ID: This is done in the last revision. So you can use the polyline to draw endless line worms and change the line thinkness. map["MyShapeLayer"][MyObject].LineWidth Or for all layer objects (default Value =2): Map["MyShapeLayer"].LineWidth 2017-05-16 22:01 GMT+02:00 Fabien Bodard : > 2017-05-14 20:26 GMT+02:00 ingo : >> Hi Fabien, >> the gb.map works very well. Thank you for this. >> But I have questions about AddPolyLine: >> >> 1) The AddPolyLine() always draws the outline of polygon. Is it possible to >> have only lines with an 'open end'? >> I tried to set the last Mappoint to the same values as the next-to-last >> Mappoint. That does'nt help. > > you are right i've done a misstake. i use the paint.polygone to draw > the polyline. oups > > >> >> 2) Can I manipulate the thickness of the line? > > I can add this but it will be only on the svn version first. > >> >> Thank you in advance. >> Ingo >> >> >> >> -- >> View this message in context: http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fabien Bodard From mckaygerhard at ...626... Tue May 16 22:41:01 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 May 2017 16:41:01 -0400 Subject: [Gambas-user] delivery bounces due bugtracker response Message-ID: i noted that the bugtracker seems does not understand the mail activity.. 1) i made a comment, so i receive two mail, one from bugtracker another from maillist! 2) i respond the comment due comes from maillist,.. this have two consecuences: 2.1) the mtu send a mail to bugtracker and also to mail list 2.2) the bugtraker rejects the mail and maillist detect that.. the final consecuence its a bounce behaviour and then disabling delivery! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Tue May 16 22:44:03 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 May 2017 16:44:03 -0400 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how Message-ID: In gambas wiki documentation said: You can fill the grid explicitly, or implement the Data event to display the grid contents on demand. You should use the last method if you have a lot of rows to display. The control can handle millions of lines gracefully. but i try to set gridview.data event and set GridView1*.*Data*.*Text but when comes the object said it null (Data) ... its there any example to load? i have a CSV and also a table db.. please its the documentation wrong? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas.fr at ...626... Tue May 16 22:46:55 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 May 2017 22:46:55 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <5912B79F.306@...3629...> Message-ID: Do you have the same problems on others qt apps ? Can you try that : If you don't have install the scripter package to get gbs3 script interpreter then launch the joined file with 'gbs3 testqt.gbs' and tell us if the textbox work and if the editor work there are both in the generated form. 2017-05-10 11:21 GMT+02:00 Fernando Cabral : > After some more testing, I found the problem seems to be related to the > keyboard. > After all, I've found that I can edit the source code, as long I only use > the mouse for editing (cutting, copying, pasting). > I can click and save the program, I can compile it. > > As to the keyboard, no regular key works (digits, alpha or editing: arrow, > home, pgup or down, insert, delete, etc.) > Keys that are intercepted by the windows managers do work (for instance, > ALT+TAB, CTRL^+ALT+T, etc.). > > So the problem has now narrowed down to a frozen keyboard. The rub now > seems to be finding why the IDE is not reading the keyboard. > > Regards > > - fernando > > 2017-05-10 3:47 GMT-03:00 Rolf-Werner Eilert : > >> Am 10.05.2017 01:04, schrieb Jussi Lahtinen: >> > Maybe some window manager setting steal focus from the editor..? >> > >> > >> > Jussi >> > >> >> >> Further upstairs in the thread, Fernando answered to a question from me: >> >> "Nevertheless, the problem appeared after I had >> downloaded >> docEditor from the farm. After that, editing has been locked. But I can't >> affirm there is >> a cause/effect here.For the time being, I see it as a coincidence." >> >> Sounds strange, especially after re-installation, but source code isn't >> de-installed after all, so the blocking element might still be there. >> >> Rolf >> >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 > Telefone celular: +55 (37) 99988-8868 > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > 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: testqt.gbs Type: application/octet-stream Size: 254 bytes Desc: not available URL: From gambas.fr at ...626... Tue May 16 22:52:15 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 May 2017 22:52:15 +0200 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: Message-ID: Well have you a better exemple. First MyGridView.Columns.Count = 1 hResult = DB.Exec..... MyGridView.Rows.Count = hResult.Count then Public sub MyGridView_Data(Row as integer, Column as Integer) hResult.MoveTo(Row) Select case Column Case 0 Last.Data.Text = hResult!Name end Select end 2017-05-16 22:44 GMT+02:00 PICCORO McKAY Lenz : > In gambas wiki documentation said: > > You can fill the grid explicitly, or implement the Data > event to display > the grid contents on demand. > > You should use the last method if you have a lot of rows to display. The > control can handle millions of lines gracefully. > > but i try to set gridview.data event and set GridView1*.*Data*.*Text but > when comes the object said it null (Data) ... > > its there any example to load? i have a CSV and also a table db.. please > its the documentation wrong? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bm-53 at ...221... Tue May 16 22:53:27 2017 From: bm-53 at ...221... (ingo) Date: Tue, 16 May 2017 13:53:27 -0700 (MST) Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: Message-ID: <1494968007150-59007.post@...3046...> Hi, have look to the german Gambas-Buch with an example how to load date from a db and show it in the gridView. http://gambas-buch.de/dw/doku.php?id=k17:k17.7:k17.7.5:start&s[]=gridview Hope that helps. Ingo -- View this message in context: http://gambas.8142.n7.nabble.com/Huge-data-in-gridview-documentation-wiki-does-not-explain-how-tp59004p59007.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Tue May 16 22:58:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 May 2017 16:58:39 -0400 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: Message-ID: 2017-05-16 16:52 GMT-04:00 Fabien Bodard : > > First > MyGridView.Columns.Count = 1 > hResult = DB.Exec..... > > AHHHH THAT's the problem, THE ODBC row count does not exist, due the MS/sybase ODBC freedts implementaion or gambas i dont know does not retunr any more than "-1" > MyGridView.Rows.Count = hResult.Count > > so i set this to a fixed knowed (only for test), and then > > then > > Public sub MyGridView_Data(Row as integer, Column as Integer) > > hResult.MoveTo(Row) > > Select case Column > Case 0 > Last.Data.Text = hResult!Name > end Select > > end > i assume the grid will be filled as the cursor will get down the navigation vertical bar? > > > > > > 2017-05-16 22:44 GMT+02:00 PICCORO McKAY Lenz : > > In gambas wiki documentation said: > > > > You can fill the grid explicitly, or implement the Data > > event to display > > the grid contents on demand. > > > > You should use the last method if you have a lot of rows to display. The > > control can handle millions of lines gracefully. > > > > but i try to set gridview.data event and set GridView1*.*Data*.*Text but > > when comes the object said it null (Data) ... > > > > its there any example to load? i have a CSV and also a table db.. please > > its the documentation wrong? > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Tue May 16 23:10:08 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 16 May 2017 23:10:08 +0200 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: Message-ID: <20170516211007.GB594@...3600...> On Tue, 16 May 2017, PICCORO McKAY Lenz wrote: > In gambas wiki documentation said: > > You can fill the grid explicitly, or implement the Data > event to display > the grid contents on demand. > > You should use the last method if you have a lot of rows to display. The > control can handle millions of lines gracefully. > > but i try to set gridview.data event and set GridView1*.*Data*.*Text but > when comes the object said it null (Data) ... > > its there any example to load? i have a CSV and also a table db.. please > its the documentation wrong? > It's not. This method is so fast and easy on memory because you load the GridView contents *on demand*. Read the text carefully: it tells you that the GridView will raise the Data *event* (not the Data property; it even links to the Data event documentation [1] which is IMHO comprehensive enough) when it needs the contents of certain cells. So, when the GridView control detects that it should display a certain cell, identified by a Row and a Column number, it will raise the GridView_Data event with just these Row and Column arguments. *During* such a Data event, the GridView.Data property will contain a valid object and you have to retrieve the cell data somehow (from your CSV file or database or ...) and store it inside the GridView.Data property. You may only use the Data property during the Data event. If you still need an example, the IDE source code has some. You can also look at the implementation of the ListBox control in gb.gui.base. It uses the Data event of a GridView internally, too. (Who would've thought that the ListBox is also just a GridView in disguise?) Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From tyrone.lucero at ...626... Tue May 16 23:11:38 2017 From: tyrone.lucero at ...626... (Tyrone Lucero) Date: Tue, 16 May 2017 17:11:38 -0400 Subject: [Gambas-user] why not a forum event a complicates instruction on list and mail list Message-ID: Hello, I was inscribe here, but I don' t see any forum... there are one way to know about use this list? From mckaygerhard at ...626... Tue May 16 23:21:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 May 2017 17:21:39 -0400 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: <20170516211007.GB594@...3600...> References: <20170516211007.GB594@...3600...> Message-ID: umm so then as you said, the rs number 30000 does not load until i get down the gridview to the row 30000! ? if this the case, how can i implement a search input that retrieve data when i put strings!? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-16 17:10 GMT-04:00 Tobias Boege : > On Tue, 16 May 2017, PICCORO McKAY Lenz wrote: > > In gambas wiki documentation said: > > > > You can fill the grid explicitly, or implement the Data > > event to display > > the grid contents on demand. > > > > You should use the last method if you have a lot of rows to display. The > > control can handle millions of lines gracefully. > > > > but i try to set gridview.data event and set GridView1*.*Data*.*Text but > > when comes the object said it null (Data) ... > > > > its there any example to load? i have a CSV and also a table db.. please > > its the documentation wrong? > > > > It's not. This method is so fast and easy on memory because you load the > GridView contents *on demand*. Read the text carefully: it tells you that > the GridView will raise the Data *event* (not the Data property; it even > links to the Data event documentation [1] which is IMHO comprehensive > enough) when it needs the contents of certain cells. > > So, when the GridView control detects that it should display a certain > cell, > identified by a Row and a Column number, it will raise the GridView_Data > event with just these Row and Column arguments. *During* such a Data event, > the GridView.Data property will contain a valid object and you have to > retrieve the cell data somehow (from your CSV file or database or ...) and > store it inside the GridView.Data property. You may only use the Data > property during the Data event. > > If you still need an example, the IDE source code has some. You can also > look at the implementation of the ListBox control in gb.gui.base. It uses > the Data event of a GridView internally, too. (Who would've thought that > the ListBox is also just a GridView in disguise?) > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Tue May 16 23:29:28 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 16 May 2017 23:29:28 +0200 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: <20170516211007.GB594@...3600...> Message-ID: <20170516212928.GC594@...3600...> On Tue, 16 May 2017, PICCORO McKAY Lenz wrote: > umm so then as you said, the rs number 30000 does not load until i get down > the gridview to the row 30000! ? > Yes, why don't you try it yourself? > if this the case, how can i implement a search input that retrieve data > when i put strings!? > At the risk that I didn't understand your question: The GridView does not store the data permanently, so you can't search it, but your data is stored somewhere, right? In your case your data comes from a data- base, so you search the database. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Tue May 16 23:33:42 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 16 May 2017 23:33:42 +0200 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: <20170516211007.GB594@...3600...> Message-ID: 2017-05-16 23:21 GMT+02:00 PICCORO McKAY Lenz : > umm so then as you said, the rs number 30000 does not load until i get down > the gridview to the row 30000! ? > > if this the case, how can i implement a search input that retrieve data > when i put strings!? gridview is just a viewer ! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-16 17:10 GMT-04:00 Tobias Boege : > >> On Tue, 16 May 2017, PICCORO McKAY Lenz wrote: >> > In gambas wiki documentation said: >> > >> > You can fill the grid explicitly, or implement the Data >> > event to display >> > the grid contents on demand. >> > >> > You should use the last method if you have a lot of rows to display. The >> > control can handle millions of lines gracefully. >> > >> > but i try to set gridview.data event and set GridView1*.*Data*.*Text but >> > when comes the object said it null (Data) ... >> > >> > its there any example to load? i have a CSV and also a table db.. please >> > its the documentation wrong? >> > >> >> It's not. This method is so fast and easy on memory because you load the >> GridView contents *on demand*. Read the text carefully: it tells you that >> the GridView will raise the Data *event* (not the Data property; it even >> links to the Data event documentation [1] which is IMHO comprehensive >> enough) when it needs the contents of certain cells. >> >> So, when the GridView control detects that it should display a certain >> cell, >> identified by a Row and a Column number, it will raise the GridView_Data >> event with just these Row and Column arguments. *During* such a Data event, >> the GridView.Data property will contain a valid object and you have to >> retrieve the cell data somehow (from your CSV file or database or ...) and >> store it inside the GridView.Data property. You may only use the Data >> property during the Data event. >> >> If you still need an example, the IDE source code has some. You can also >> look at the implementation of the ListBox control in gb.gui.base. It uses >> the Data event of a GridView internally, too. (Who would've thought that >> the ListBox is also just a GridView in disguise?) >> >> Regards, >> Tobi >> >> [1] http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From mckaygerhard at ...626... Wed May 17 01:24:57 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 May 2017 19:24:57 -0400 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: <20170516212928.GC594@...3600...> References: <20170516211007.GB594@...3600...> <20170516212928.GC594@...3600...> Message-ID: 2017-05-16 17:29 GMT-04:00 Tobias Boege : > On Tue, 16 May 2017, PICCORO McKAY Lenz wrote: >> if this the case, how can i implement a search input that retrieve data >> when i put strings!? >> > > At the risk that I didn't understand your question: The GridView does > not store the data permanently, so you can't search it, but your data > is stored somewhere, right? In your case your data comes from a data- > base, so you search the database. umm and right! but wel the DB are via ODBC and too much communication could close the connection on the brigde layer! has right, Fabien has right too, its just a viewer.. so i must made any implmenttion by own when just user typing.. arrggg there-s sometigh similar to the trick of json and request/response? of some trick to made many search to the DB... ? From mckaygerhard at ...626... Wed May 17 01:28:48 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 16 May 2017 19:28:48 -0400 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: <1494968007150-59007.post@...3046...> References: <1494968007150-59007.post@...3046...> Message-ID: Ingo, that My german is not very good, quite limited, a regret to have family, that German gambas wiki is the best in information, the shrimp documentation should be so, I mean the amount of documentation aimed at implementing pieces of code.. the example in the documentation was a good started point thanks.. and for better the example its attached in each wiki page! wonderfully if that wiki were in english or spanish, ..... oh men! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-16 16:53 GMT-04:00 ingo : > Hi, > have look to the german Gambas-Buch with an example how to load date from a > db and show it in the gridView. > http://gambas-buch.de/dw/doku.php?id=k17:k17.7:k17.7.5:start&s[]=gridview > > > Hope that helps. > Ingo > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Huge-data-in-gridview-documentation-wiki-does-not-explain-how-tp59004p59007.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From glaucio.de.araujo at ...626... Wed May 17 03:27:56 2017 From: glaucio.de.araujo at ...626... (Glaucio Araujo) Date: Tue, 16 May 2017 22:27:56 -0300 Subject: [Gambas-user] Editing still blocked Message-ID: That's it! The TextEditor in your script didn't worked here, just like the code editor. From: Fabien Bodard - 2017-05-16 20:47:05 Do you have the same problems on others qt apps ? > > > Can you try that : If you don't have install the scripter package to > get gbs3 script interpreter > > then launch the joined file with 'gbs3 testqt.gbs' > > and tell us if the textbox work and if the editor work there are both > in the generated form. > > --- Gl?ucio de Araujo Mail : glaucio.de.araujo at ...626... TIM : (11) 95900-7801 (WhatsApp / Telegram) From bm-53 at ...221... Wed May 17 10:02:50 2017 From: bm-53 at ...221... (ingo) Date: Wed, 17 May 2017 01:02:50 -0700 (MST) Subject: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ? In-Reply-To: References: <1494786411516-58976.post@...3046...> Message-ID: <1495008170282-59017.post@...3046...> Hi Fabien, thankx for the answer and the very fast implementation. I found a workaround in the meantime. Using the draw event of the MapView let me draw lines with Paint. But I will check the new gb.map class. Salut Ingo -- View this message in context: http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p59017.html Sent from the gambas-user mailing list archive at Nabble.com. From t.lee.davidson at ...626... Wed May 17 15:06:38 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 17 May 2017 09:06:38 -0400 Subject: [Gambas-user] why not a forum event a complicates instruction on list and mail list In-Reply-To: References: Message-ID: Hello Tyrone, There is no forum. It is just a mailing list. You use it by posting a message to the mailing list address: gambas-user at lists.sourceforge.net And, you can see previous messages sent to the list by visiting: https://sourceforge.net/p/gambas/mailman/gambas-user/ On 05/16/2017 05:11 PM, Tyrone Lucero wrote: > Hello, I was inscribe here, but I don' t see any forum... there are > one way to know about use this list? > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > --- Lee __________ From mckaygerhard at ...626... Wed May 17 18:13:06 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 17 May 2017 12:13:06 -0400 Subject: [Gambas-user] result from select can be movefirts from ODBC? Message-ID: i try to filla gridview at demand, so due ODBC limitations i cannot count so inside my bean-like object i count and tehen return properties.. the problem goes when i try to move to the fitrs record, i implement the code in wrong way? : Try resulobj = $conexionodbc.Exec(exisqueryrequest) While (resulobj.Available) If resulobj.MoveNext() Then resulhowmany = resulhowmany + 1 Else Break Endif Wend resulobj.MoveFirst ' <--- here said that its foward only, that's true if comes from a simple select ? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Wed May 17 18:21:24 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 17 May 2017 12:21:24 -0400 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: Message-ID: sorry was bad implementation, fixed code: resulhowmany = resulhowmany + 1 If resulobj.MoveNext() Then Break Endif documentation said that when no records are available retuns true.. very confused but well.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-17 12:13 GMT-04:00 PICCORO McKAY Lenz : > i try to filla gridview at demand, so due ODBC limitations i cannot count > so inside my bean-like object i count and tehen return properties.. > > the problem goes when i try to move to the fitrs record, i implement the > code in wrong way? : > > Try resulobj = $conexionodbc.Exec(exisqueryrequest) > > While (resulobj.Available) > > If resulobj.MoveNext() Then > resulhowmany = resulhowmany + 1 > Else > Break > Endif > > Wend > > resulobj.MoveFirst ' <--- here said that its foward only, that's true if > comes from a simple select ? > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From taboege at ...626... Wed May 17 18:32:54 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 17 May 2017 18:32:54 +0200 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: Message-ID: <20170517163254.GA574@...3600...> On Wed, 17 May 2017, PICCORO McKAY Lenz wrote: > i try to filla gridview at demand, so due ODBC limitations i cannot count > so inside my bean-like object i count and tehen return properties.. > > the problem goes when i try to move to the fitrs record, i implement the > code in wrong way? : > > Try resulobj = $conexionodbc.Exec(exisqueryrequest) > > While (resulobj.Available) > > If resulobj.MoveNext() Then > resulhowmany = resulhowmany + 1 > Else > Break > Endif > > Wend > > resulobj.MoveFirst ' <--- here said that its foward only, that's true if > comes from a simple select ? > I don't understand your last question (and I have no idea about bean-like objects outside of gardening) but according to the Result.MoveNext() documentation [1]: Returns TRUE if the result is void or if there is no next record. You seem to increment your counter when the move *fails*, which will give you a wrong count. I usually do something like: ' Modifies the internal Result record pointer! Private Sub CountResult(hRes As Result) As Integer Dim iCount As Integer If hRes.MoveFirst() Then Return 0 iCount = 1 While Not hRes.MoveNext() Inc iCount Wend Return iCount End Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.db/result/movenext -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Wed May 17 18:54:06 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 17 May 2017 12:54:06 -0400 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: <20170517163254.GA574@...3600...> References: <20170517163254.GA574@...3600...> Message-ID: tobias, i answered few seconds, yeah the if was in wrong place.. thanks for the corrections.. and u dont know that ODBC module in gambas does not implement or have same behaviour of the others like sqlite or mysql.. count does not retunrs nothing, max neither so i must implement my own count.. seems that mayority gambas develpoers only used mysql? nobody performs on mayor scalar DBMS ? oracle, sybase, postgresql? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-17 12:32 GMT-04:00 Tobias Boege : > On Wed, 17 May 2017, PICCORO McKAY Lenz wrote: > > i try to filla gridview at demand, so due ODBC limitations i cannot count > > so inside my bean-like object i count and tehen return properties.. > > > > the problem goes when i try to move to the fitrs record, i implement the > > code in wrong way? : > > > > Try resulobj = $conexionodbc.Exec(exisqueryrequest) > > > > While (resulobj.Available) > > > > If resulobj.MoveNext() Then > > resulhowmany = resulhowmany + 1 > > Else > > Break > > Endif > > > > Wend > > > > resulobj.MoveFirst ' <--- here said that its foward only, that's true > if > > comes from a simple select ? > > > > I don't understand your last question (and I have no idea about bean-like > objects outside of gardening) but according to the Result.MoveNext() > documentation [1]: > > Returns TRUE if the result is void or if there is no next record. > > You seem to increment your counter when the move *fails*, which will give > you a wrong count. I usually do something like: > > ' Modifies the internal Result record pointer! > Private Sub CountResult(hRes As Result) As Integer > Dim iCount As Integer > > If hRes.MoveFirst() Then Return 0 > iCount = 1 > While Not hRes.MoveNext() > Inc iCount > Wend > Return iCount > End > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/comp/gb.db/result/movenext > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From cabrerawilliam at ...626... Wed May 17 19:48:16 2017 From: cabrerawilliam at ...626... (William Cabrera) Date: Wed, 17 May 2017 13:48:16 -0400 Subject: [Gambas-user] Editing still blocked In-Reply-To: <11624935-d6f0-c86d-f89b-e6905918c342@...1...> References: <11624935-d6f0-c86d-f89b-e6905918c342@...1...> Message-ID: Hi, i have the same problem, the code editor does not work, although I can use the key combination Ctrl+C, Ctrl+X and Ctrl+V, for example. I'm using the svn version, I have recompiled, I deleted the conf folder but the problem persists [System] Gambas=3.9.90 r8134 OperatingSystem=Linux Kernel=4.9.0-2-amd64 Architecture=x86_64 Distribution=debian 9.0 Desktop=MATE Theme=Gtk Language=es_VE.UTF-8 Memory=7882M [Libraries] Cairo=libcairo.so.2.11400.8 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.11 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.1004.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 GTK+3=libgtk-3.so.0.2200.11 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.46.0.0 Poppler=libpoppler.so.57.0.0 Poppler=libpoppler.so.64.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.7.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 COLORTERM=truecolor COMP_WORDBREAKS= "'><;|&(: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 DYLD_LIBRARY_PATH=/apps/distro/install/lib:/apps/distro/install/lib:/apps/distro/install/lib: FTP_PROXY=http://proxy.vit.gob.ve:3128/ GB_GUI=gb.qt4 GDMSESSION=mate GDM_LANG=es_VE.UTF-8 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= HTTPS_PROXY=http://proxy.vit.gob.ve:3128/ HTTPS_PROXY_REQUEST_FULLURI=0 HTTP_PROXY=http://proxy.vit.gob.ve:3128/ HTTP_PROXY_REQUEST_FULLURI=0 JOURNAL_STREAM=8:25812 LANG=es_VE.UTF-8 LD_LIBRARY_PATH=/apps/distro/install/lib: LOGNAME= LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: LUA_CPATH=/apps/distro/install/lib/?.so;/.luarocks/lib/lua/5.1/?.so;/apps/distro/install/lib/lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so LUA_PATH=/.luarocks/share/lua/5.1/?.lua;/.luarocks/share/lua/5.1/?/init.lua;/apps/distro/install/share/lua/5.1/?.lua;/apps/distro/install/share/lua/5.1/?/init.lua;./?.lua;/apps/distro/install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua MATE_DESKTOP_SESSION_ID=this-is-deprecated NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript NO_PROXY=localhost,127.0.0.0/8,::1,192.168.10.13 OLDPWD= OUT_DIR_COMMON_BASE=/android/out PATH=/apps/distro/install/bin:/.composer/vendor/bin:/apps/distro/install/bin:/apps/distro/install/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/share/bennugd/bin PWD=/.config QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_X11_NO_MITSHM=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1868,unix/:/tmp/.ICE-unix/1868 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=2094 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TERM=xterm TZ=:/etc/localtime USER= USERNAME= USE_CCACHE=1 VTE_VERSION=4601 WINDOWID=31465201 WINDOWPATH=2 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=2 XDG_SESSION_TYPE=x11 XDG_VTNR=2 _=/usr/bin/gambas3 ftp_proxy=http://proxy.vit.gob.ve:3128/ http_proxy=http://proxy.vit.gob.ve:3128/ https_proxy=http://proxy.vit.gob.ve:3128/ no_proxy=localhost,127.0.0.0/8,::1,192.168.10.13 ------ William Cabrera https://blog.willicab.com.ve 2017-05-08 13:42 GMT-04:00 Beno?t Minisini : > Le 08/05/2017 ? 19:38, Fernando Cabral a ?crit : > > >Can you send a tar.gz archive of your project directory? > > > > I am sending one. Do you need them all? > > (tar compressed) > > > > Regards > > > > - fernando > > > > The joined file does not have the .tag.gz extension... > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From cabrerawilliam at ...626... Wed May 17 20:18:37 2017 From: cabrerawilliam at ...626... (William Cabrera) Date: Wed, 17 May 2017 14:18:37 -0400 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <11624935-d6f0-c86d-f89b-e6905918c342@...1...> Message-ID: I've tried with this project, I can write in TextBox1 and in TextArea1 but not in TextEditor1 ------ William Cabrera https://blog.willicab.com.ve 2017-05-17 13:48 GMT-04:00 William Cabrera : > Hi, i have the same problem, the code editor does not work, although I > can use the key combination Ctrl+C, Ctrl+X and Ctrl+V, for example. > > I'm using the svn version, I have recompiled, I deleted the conf folder > but the problem persists > > [System] > Gambas=3.9.90 r8134 > OperatingSystem=Linux > Kernel=4.9.0-2-amd64 > Architecture=x86_64 > Distribution=debian 9.0 > Desktop=MATE > Theme=Gtk > Language=es_VE.UTF-8 > Memory=7882M > > [Libraries] > Cairo=libcairo.so.2.11400.8 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.11 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.1004.0 > GTK+2=libgtk-x11-2.0.so.0.2400.31 > GTK+3=libgtk-3.so.0.2200.11 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.46.0.0 > Poppler=libpoppler.so.57.0.0 > Poppler=libpoppler.so.64.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.7.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CLUTTER_BACKEND=x11 > COLORTERM=truecolor > COMP_WORDBREAKS= > "'><;|&(: > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=mate > DISPLAY=:0 > DYLD_LIBRARY_PATH=/apps/distro/install/lib:/ > apps/distro/install/lib:/apps/distro/install/lib: > FTP_PROXY=http://proxy.vit.gob.ve:3128/ > GB_GUI=gb.qt4 > GDMSESSION=mate > GDM_LANG=es_VE.UTF-8 > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge:canberra-gtk-module > GTK_OVERLAY_SCROLLING=0 > HOME= > HTTPS_PROXY=http://proxy.vit.gob.ve:3128/ > HTTPS_PROXY_REQUEST_FULLURI=0 > HTTP_PROXY=http://proxy.vit.gob.ve:3128/ > HTTP_PROXY_REQUEST_FULLURI=0 > JOURNAL_STREAM=8:25812 > LANG=es_VE.UTF-8 > LD_LIBRARY_PATH=/apps/distro/install/lib: > LOGNAME= > LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do= > 01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg= > 30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01; > 31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha= > 01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*. > txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*. > Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo= > 01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz= > 01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*. > rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31: > *.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01; > 31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg= > 01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*. > pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35: > *.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg= > 01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*. > mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01; > 35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob= > 01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm= > 01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*. > flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*. > yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35: > *.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36: > *.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg= > 00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx= > 00;36:*.xspf=00;36: > LUA_CPATH=/apps/distro/install/lib/?.so;/. > luarocks/lib/lua/5.1/?.so;/apps/distro/install/lib/ > lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/ > local/lib/lua/5.1/loadall.so > LUA_PATH=/.luarocks/share/lua/5.1/?.lua;/. > luarocks/share/lua/5.1/?/init.lua;/apps/distro/ > install/share/lua/5.1/?.lua;/apps/distro/install/ > share/lua/5.1/?/init.lua;./?.lua;/apps/distro/ > install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/ > lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua > MATE_DESKTOP_SESSION_ID=this-is-deprecated > NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript > NO_PROXY=localhost,127.0.0.0/8,::1,192.168.10.13 > OLDPWD= > OUT_DIR_COMMON_BASE=/android/out > PATH=/apps/distro/install/bin:/.composer/ > vendor/bin:/apps/distro/install/bin:/apps/ > distro/install/bin:/usr/local/sbin:/usr/sbin:/sbin:/ > bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/ > games:/usr/local/share/bennugd/bin > PWD=/.config > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_X11_NO_MITSHM=1 > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > 1868,unix/:/tmp/.ICE-unix/1868 > SHELL=/bin/bash > SHLVL=1 > SSH_AGENT_PID=2094 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TERM=xterm > TZ=:/etc/localtime > USER= > USERNAME= > USE_CCACHE=1 > VTE_VERSION=4601 > WINDOWID=31465201 > WINDOWPATH=2 > XAUTHORITY=/run/user/1000/gdm/Xauthority > XDG_CURRENT_DESKTOP=MATE > XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SESSION_DESKTOP=mate > XDG_SESSION_ID=2 > XDG_SESSION_TYPE=x11 > XDG_VTNR=2 > _=/usr/bin/gambas3 > ftp_proxy=http://proxy.vit.gob.ve:3128/ > http_proxy=http://proxy.vit.gob.ve:3128/ > https_proxy=http://proxy.vit.gob.ve:3128/ > no_proxy=localhost,127.0.0.0/8,::1,192.168.10.13 > > > ------ > William Cabrera > https://blog.willicab.com.ve > > 2017-05-08 13:42 GMT-04:00 Beno?t Minisini : > >> Le 08/05/2017 ? 19:38, Fernando Cabral a ?crit : >> > >Can you send a tar.gz archive of your project directory? >> > >> > I am sending one. Do you need them all? >> > (tar compressed) >> > >> > Regards >> > >> > - fernando >> > >> >> The joined file does not have the .tag.gz extension... >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> 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: qt-test-0.0.1.tar.gz Type: application/x-gzip Size: 11333 bytes Desc: not available URL: From gambas.fr at ...626... Wed May 17 22:30:03 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 17 May 2017 22:30:03 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <11624935-d6f0-c86d-f89b-e6905918c342@...1...> Message-ID: So the problem come from the drawingarea. 2017-05-17 20:18 GMT+02:00 William Cabrera : > I've tried with this project, I can write in TextBox1 and in TextArea1 but > not in TextEditor1 > > > ------ > William Cabrera > https://blog.willicab.com.ve > > 2017-05-17 13:48 GMT-04:00 William Cabrera : > >> Hi, i have the same problem, the code editor does not work, although I >> can use the key combination Ctrl+C, Ctrl+X and Ctrl+V, for example. >> >> I'm using the svn version, I have recompiled, I deleted the conf folder >> but the problem persists >> >> [System] >> Gambas=3.9.90 r8134 >> OperatingSystem=Linux >> Kernel=4.9.0-2-amd64 >> Architecture=x86_64 >> Distribution=debian 9.0 >> Desktop=MATE >> Theme=Gtk >> Language=es_VE.UTF-8 >> Memory=7882M >> >> [Libraries] >> Cairo=libcairo.so.2.11400.8 >> Curl=libcurl.so.4.4.0 >> DBus=libdbus-1.so.3.14.11 >> GStreamer=libgstreamer-0.10.so.0.30.0 >> GStreamer=libgstreamer-1.0.so.0.1004.0 >> GTK+2=libgtk-x11-2.0.so.0.2400.31 >> GTK+3=libgtk-3.so.0.2200.11 >> OpenGL=libGL.so.1.2.0 >> Poppler=libpoppler.so.46.0.0 >> Poppler=libpoppler.so.57.0.0 >> Poppler=libpoppler.so.64.0.0 >> QT4=libQtCore.so.4.8.7 >> QT5=libQt5Core.so.5.7.1 >> SDL=libSDL-1.2.so.0.11.4 >> SQLite=libsqlite3.so.0.8.6 >> >> [Environment] >> CLUTTER_BACKEND=x11 >> COLORTERM=truecolor >> COMP_WORDBREAKS= >> "'><;|&(: >> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> DESKTOP_SESSION=mate >> DISPLAY=:0 >> DYLD_LIBRARY_PATH=/apps/distro/install/lib:/ >> apps/distro/install/lib:/apps/distro/install/lib: >> FTP_PROXY=http://proxy.vit.gob.ve:3128/ >> GB_GUI=gb.qt4 >> GDMSESSION=mate >> GDM_LANG=es_VE.UTF-8 >> GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 >> GTK_MODULES=gail:atk-bridge:canberra-gtk-module >> GTK_OVERLAY_SCROLLING=0 >> HOME= >> HTTPS_PROXY=http://proxy.vit.gob.ve:3128/ >> HTTPS_PROXY_REQUEST_FULLURI=0 >> HTTP_PROXY=http://proxy.vit.gob.ve:3128/ >> HTTP_PROXY_REQUEST_FULLURI=0 >> JOURNAL_STREAM=8:25812 >> LANG=es_VE.UTF-8 >> LD_LIBRARY_PATH=/apps/distro/install/lib: >> LOGNAME= >> LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do= >> 01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg= >> 30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01; >> 31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha= >> 01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*. >> txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*. >> Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo= >> 01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz= >> 01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*. >> rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31: >> *.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01; >> 31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg= >> 01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*. >> pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35: >> *.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg= >> 01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*. >> mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01; >> 35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob= >> 01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm= >> 01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*. >> flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*. >> yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35: >> *.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36: >> *.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg= >> 00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx= >> 00;36:*.xspf=00;36: >> LUA_CPATH=/apps/distro/install/lib/?.so;/. >> luarocks/lib/lua/5.1/?.so;/apps/distro/install/lib/ >> lua/5.1/?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/ >> local/lib/lua/5.1/loadall.so >> LUA_PATH=/.luarocks/share/lua/5.1/?.lua;/. >> luarocks/share/lua/5.1/?/init.lua;/apps/distro/ >> install/share/lua/5.1/?.lua;/apps/distro/install/ >> share/lua/5.1/?/init.lua;./?.lua;/apps/distro/ >> install/share/luajit-2.1.0-beta1/?.lua;/usr/local/share/ >> lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua >> MATE_DESKTOP_SESSION_ID=this-is-deprecated >> NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript >> NO_PROXY=localhost,127.0.0.0/8,::1,192.168.10.13 >> OLDPWD= >> OUT_DIR_COMMON_BASE=/android/out >> PATH=/apps/distro/install/bin:/.composer/ >> vendor/bin:/apps/distro/install/bin:/apps/ >> distro/install/bin:/usr/local/sbin:/usr/sbin:/sbin:/ >> bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/ >> games:/usr/local/share/bennugd/bin >> PWD=/.config >> QT_ACCESSIBILITY=1 >> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 >> QT_X11_NO_MITSHM=1 >> SESSION_MANAGER=local/:@/tmp/.ICE-unix/ >> 1868,unix/:/tmp/.ICE-unix/1868 >> SHELL=/bin/bash >> SHLVL=1 >> SSH_AGENT_PID=2094 >> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> TERM=xterm >> TZ=:/etc/localtime >> USER= >> USERNAME= >> USE_CCACHE=1 >> VTE_VERSION=4601 >> WINDOWID=31465201 >> WINDOWPATH=2 >> XAUTHORITY=/run/user/1000/gdm/Xauthority >> XDG_CURRENT_DESKTOP=MATE >> XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/ >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SESSION_DESKTOP=mate >> XDG_SESSION_ID=2 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=2 >> _=/usr/bin/gambas3 >> ftp_proxy=http://proxy.vit.gob.ve:3128/ >> http_proxy=http://proxy.vit.gob.ve:3128/ >> https_proxy=http://proxy.vit.gob.ve:3128/ >> no_proxy=localhost,127.0.0.0/8,::1,192.168.10.13 >> >> >> ------ >> William Cabrera >> https://blog.willicab.com.ve >> >> 2017-05-08 13:42 GMT-04:00 Beno?t Minisini : >> >>> Le 08/05/2017 ? 19:38, Fernando Cabral a ?crit : >>> > >Can you send a tar.gz archive of your project directory? >>> > >>> > I am sending one. Do you need them all? >>> > (tar compressed) >>> > >>> > Regards >>> > >>> > - fernando >>> > >>> >>> The joined file does not have the .tag.gz extension... >>> >>> -- >>> Beno?t Minisini >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard From criguada at ...626... Thu May 18 00:31:28 2017 From: criguada at ...626... (Cristiano Guadagnino) Date: Thu, 18 May 2017 00:31:28 +0200 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> Message-ID: Hi PICCORO, I am a professional DBA working daily with IBM DB/2, Microsoft SQL Server, Mysql. First of all, let me tell you that a big effort is needed to read you messages, because of your poor english and your writing style. I'm sorry if I'm a bit blunt, but please... a little effort from you would be very appreciated. Anyway, if your native language is spanish I would appreciate if, when speaking to me, you could add the spanish translation of your sentences... it would help me understand better. I am italian but I know spanish quite well. That said, I fail to see why you're complaining about Mysql. I also fail to see what mysql has to do with your failed efforts with ODBC. ODBC is a protocol that tries to help developers by allowing them to "speak" the same language to any underlying DBMS. ODBC then "translates" to their native language. That's why ODBC cannot support (or badly supports) features that are specific to a single DBMS system. Using a native driver, when available, is absolutely preferred. If your complaint is due to the fact that the only native implementation for Gambas is the Mysql one, you have to understand that Mysql (usually in the form of MariaDB) is available on all linux distributions and it is free. One other free DBMS available for all linuxes is Postgresql, but this is not even nearly as widely used as Mysql. I would not be very surprised if, in fact, the great majority of Gambas developers were using Mysql. What's wrong with that? Finally, a word about your "counting" problem. You never show the query you need to do on your DBMS, but if you need a record count why don't you simply issue a "SELECT COUNT(*) ..." on the db? Iterating over all the records just to get a count doesn't seem like the best move... unless you also need to do something on each record, obviously. Or am I missing something? Best regards Cris On Wed, May 17, 2017 at 6:54 PM, PICCORO McKAY Lenz wrote: > tobias, i answered few seconds, yeah the if was in wrong place.. thanks for > the corrections.. > > and u dont know that ODBC module in gambas does not implement or have same > behaviour of the others like sqlite or mysql.. > > count does not retunrs nothing, max neither so i must implement my own > count.. > > seems that mayority gambas develpoers only used mysql? nobody performs on > mayor scalar DBMS ? oracle, sybase, postgresql? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-17 12:32 GMT-04:00 Tobias Boege : > > > On Wed, 17 May 2017, PICCORO McKAY Lenz wrote: > > > i try to filla gridview at demand, so due ODBC limitations i cannot > count > > > so inside my bean-like object i count and tehen return properties.. > > > > > > the problem goes when i try to move to the fitrs record, i implement > the > > > code in wrong way? : > > > > > > Try resulobj = $conexionodbc.Exec(exisqueryrequest) > > > > > > While (resulobj.Available) > > > > > > If resulobj.MoveNext() Then > > > resulhowmany = resulhowmany + 1 > > > Else > > > Break > > > Endif > > > > > > Wend > > > > > > resulobj.MoveFirst ' <--- here said that its foward only, that's true > > if > > > comes from a simple select ? > > > > > > > I don't understand your last question (and I have no idea about bean-like > > objects outside of gardening) but according to the Result.MoveNext() > > documentation [1]: > > > > Returns TRUE if the result is void or if there is no next record. > > > > You seem to increment your counter when the move *fails*, which will give > > you a wrong count. I usually do something like: > > > > ' Modifies the internal Result record pointer! > > Private Sub CountResult(hRes As Result) As Integer > > Dim iCount As Integer > > > > If hRes.MoveFirst() Then Return 0 > > iCount = 1 > > While Not hRes.MoveNext() > > Inc iCount > > Wend > > Return iCount > > End > > > > Regards, > > Tobi > > > > [1] http://gambaswiki.org/wiki/comp/gb.db/result/movenext > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Thu May 18 00:49:11 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 18 May 2017 00:49:11 +0200 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> Message-ID: <20170517224911.GB574@...3600...> On Thu, 18 May 2017, Cristiano Guadagnino wrote: > If your complaint is due to the fact that the only native implementation > for Gambas is the Mysql one, you have to understand that Mysql (usually in > the form of MariaDB) is available on all linux distributions and it is > free. > One other free DBMS available for all linuxes is Postgresql, but this is > not even nearly as widely used as Mysql. I would not be very surprised if, > in fact, the great majority of Gambas developers were using Mysql. What's > wrong with that? > (Just a quick interjection: Gambas does have a native PostgreSQL driver.) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Thu May 18 00:50:33 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 18 May 2017 00:50:33 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: <11624935-d6f0-c86d-f89b-e6905918c342@...1...> Message-ID: <359971f8-a4a0-3bf4-f496-f565866ae4f3@...1...> Le 17/05/2017 ? 22:30, Fabien Bodard a ?crit : > So the problem come from the drawingarea. > I have changed something related to events in revision #8132, so it must me that. But everything works correctly on my system... I will investigate, but not before next week. Regards, -- Beno?t Minisini From alexchernoff at ...67... Thu May 18 11:28:53 2017 From: alexchernoff at ...67... (alexchernoff) Date: Thu, 18 May 2017 02:28:53 -0700 (MST) Subject: [Gambas-user] 16 bit value in hex with MSB and LSB? Message-ID: <1495099733352-59029.post@...3046...> Good day all, In a serial string I receive a 16 bit value split into MSB and LSB in hex, for example 15000 (3A 98) is sent as 2 bytes containing decimal values of 3A and 98. To convert that to decimal, I have to convert each to hex strings, join them, add &H to it and then convert "&H3A98" to decimal. Maybe there is an easier way? Thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/16-bit-value-in-hex-with-MSB-and-LSB-tp59029.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Thu May 18 11:55:07 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 18 May 2017 11:55:07 +0200 Subject: [Gambas-user] 16 bit value in hex with MSB and LSB? In-Reply-To: <1495099733352-59029.post@...3046...> References: <1495099733352-59029.post@...3046...> Message-ID: <20170518095507.GA592@...3600...> On Thu, 18 May 2017, alexchernoff wrote: > Good day all, > > In a serial string I receive a 16 bit value split into MSB and LSB in hex, > for example 15000 (3A 98) is sent as 2 bytes containing decimal values of > 3A and 98. > > To convert that to decimal, I have to convert each to hex strings, join > them, add &H to it and then convert "&H3A98" to decimal. > > Maybe there is an easier way? > > Thanks! > Yes, there is. Above you go from a number over a string to a number. Ditch the string and use the Integer bit manipulation functions: Dim a, b As Integer a = &H3a b = &H98 Print a, b, Lsl(a, 8) Or b Declaring a and b as Integer (not as Byte) is important here because you are going to use the left shift function and you want to be sure that you don't shift your bits to nirvana. Output is as expected: 58 152 15000 Also note that with numerical values there is no distinction between "decimal" and "hex" or any other base you may imagine. A number is a number, independent of a representation to a particular basis. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From d4t4full at ...626... Thu May 18 12:00:54 2017 From: d4t4full at ...626... (ML) Date: Thu, 18 May 2017 07:00:54 -0300 Subject: [Gambas-user] 16 bit value in hex with MSB and LSB? In-Reply-To: <1495099733352-59029.post@...3046...> References: <1495099733352-59029.post@...3046...> Message-ID: Alex, What you're receiving is two characters with ASCII values 3A (":") and 98 (not printable, ASCII code over 7F). In any case, there's no need to convert anything to hex. If bytes come in LSB first, you can use the *Integer@* function along with the *StrPtr* (or similar, don't remember in Gambas) function and get your 16-bit value back directly. If they come MSB first and your system is LSB first, then you can swap them and apply byte maths: * Dim firstByte As Byte = Asc(Left(myString, 1)**) 'This gets the &H3A ASCII value from character ":" in firstByte. ** Dim nextByte As Byte = Asc(Mid(myString, 2, 1)) **'This gets the &h98 ASCII value in nextByte.** ** Dim wordValue As Integer = firstByte * &H100 + nextByte 'This gets &H3A98 in wordValue* I guess some byte juggling can be performed by the underlying Stream object in the serial port (to accomodate "endianness"), but never used it, so I cannot tell. Hope that helps, zxMarce. *On 18/05/17 06:28, alexchernoff wrote:* > Good day all, > In a serial string I receive a 16 bit value split into MSB and LSB in > hex, for example 15000 (3A 98) is sent as 2 bytes containing decimal > values of 3A and 98. > To convert that to decimal, I have to convert each to hex strings, > join them, add &H to it and then convert "&H3A98" to decimal. > Maybe there is an easier way? > Thanks! From alexchernoff at ...67... Thu May 18 13:09:34 2017 From: alexchernoff at ...67... (alexchernoff) Date: Thu, 18 May 2017 04:09:34 -0700 (MST) Subject: [Gambas-user] 16 bit value in hex with MSB and LSB? In-Reply-To: <20170518095507.GA592@...3600...> References: <1495099733352-59029.post@...3046...> <20170518095507.GA592@...3600...> Message-ID: <1495105774266-59032.post@...3046...> awesome! Lsl() does not have a definition (F2) in Gambas UI it seems though, at least not 3.9.2. also too bad Gambas UI help does not have a Search function (or does it?) thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/16-bit-value-in-hex-with-MSB-and-LSB-tp59029p59032.html Sent from the gambas-user mailing list archive at Nabble.com. From alexchernoff at ...67... Thu May 18 14:06:12 2017 From: alexchernoff at ...67... (alexchernoff) Date: Thu, 18 May 2017 05:06:12 -0700 (MST) Subject: [Gambas-user] Class startup? Message-ID: <1495109172074-59033.post@...3046...> Good day all, is there a way to have a routine execute in a class as soon as a new instance of it is created? I have a Public Sub Main() but it doesn't seem to run. I come to Gambas from Xojo and there classes have a Constructor() sub which runs on init. thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Class-startup-tp59033.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Thu May 18 15:13:30 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 18 May 2017 15:13:30 +0200 Subject: [Gambas-user] Class startup? In-Reply-To: <1495109172074-59033.post@...3046...> References: <1495109172074-59033.post@...3046...> Message-ID: <20170518131330.GB592@...3600...> On Thu, 18 May 2017, alexchernoff wrote: > Good day all, > > is there a way to have a routine execute in a class as soon as a new > instance of it is created? I have a Public Sub Main() but it doesn't seem to > run. > > I come to Gambas from Xojo and there classes have a Constructor() sub which > runs on init. > > thanks! > The constructor is called _new in Gambas (see [1]): Public Sub _new() ' runs on object creation End You can also specify parameters to the _new() method like ' In MyClass.class: Public Sub _new(X As Integer) ' ... End which demands that an Integer be given on object instantiation: Dim h As New MyClass(10) ' X = 10 Regards, Tobi [1] http://gambaswiki.org/wiki/cat/special -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Thu May 18 16:59:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 18 May 2017 10:59:39 -0400 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> Message-ID: 2017-05-17 18:31 GMT-04:00 Cristiano Guadagnino : > If your complaint is due to the fact that the only native implementation > for Gambas is the Mysql one, you have to understand that Mysql (usually in > the form of MariaDB) is available on all linux distributions and it is > free. > One other free DBMS available for all linuxes is Postgresql, but this is > not even nearly as widely used as Mysql. I would not be very surprised if, > in fact, the great majority of Gambas developers were using Mysql. What's > wrong with that? > u miscunderstand the problem.. there's poor information about how to deal with specific problems due are too many "famous commonly used" implementations, i mean too many mysql+gambas combination and poor or less odbc+gambas projects or odbc poor interes or support by the community i mean, people here limit teir contributions.. i made important contributions here, but not usefully for common use, by example everyone used mysql.. so there's no interes! many countries does not have enought resources to spend in solutions like DB2 (very expensive) and b y the way i'm also a DB2 JEE senior.. and here a manpower like hta are very expensive.. so jobs are very limited... First of all, let me tell you that a big effort is needed to read you > messages, because of your poor english and your writing style. I'm sorry if > I'm a bit blunt, but please... a little effort from you would be very > appreciated. > u have right, its due i not have enought time! implementing linux solutions in a guindows only word its very hard.. and there's no commonly used solutions.. time its required! and i confess, i really hate the english! > Anyway, if your native language is spanish I would appreciate if, when > speaking to me, you could add the spanish translation of your sentences... > it would help me understand better. I am italian but I know spanish quite > well. > i used older browser, and now google make mandatory "newer" browsers, understand that not all the world have enough money to constant updates of hardware due software requires every day more hardware! yeah its sad for me and some others that not have internet to answer this quiestion like me! > > Finally, a word about your "counting" problem. You never show the query you > need to do on your DBMS, but if you need a record count why don't you > simply issue a "SELECT COUNT(*) ..." on the db? Iterating over all the > records just to get a count doesn't seem like the best move... unless you > also need to do something on each record, obviously. Or am I missing > something? > i cannot do SELECT COUNT and the select its a dinamyc example that table only exist by 20 minutes.. and if u ask about why: must be a table, must not be temporally, must no be a file, must not be partitioned in sybhase, must be simple to consult (i mean a simple select) and must be understand by novices, due money > > Best regards > Cris > > > On Wed, May 17, 2017 at 6:54 PM, PICCORO McKAY Lenz < > mckaygerhard at ...626...> > wrote: > > > tobias, i answered few seconds, yeah the if was in wrong place.. thanks > for > > the corrections.. > > > > and u dont know that ODBC module in gambas does not implement or have > same > > behaviour of the others like sqlite or mysql.. > > > > count does not retunrs nothing, max neither so i must implement my own > > count.. > > > > seems that mayority gambas develpoers only used mysql? nobody performs on > > mayor scalar DBMS ? oracle, sybase, postgresql? > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-17 12:32 GMT-04:00 Tobias Boege : > > > > > On Wed, 17 May 2017, PICCORO McKAY Lenz wrote: > > > > i try to filla gridview at demand, so due ODBC limitations i cannot > > count > > > > so inside my bean-like object i count and tehen return properties.. > > > > > > > > the problem goes when i try to move to the fitrs record, i implement > > the > > > > code in wrong way? : > > > > > > > > Try resulobj = $conexionodbc.Exec(exisqueryrequest) > > > > > > > > While (resulobj.Available) > > > > > > > > If resulobj.MoveNext() Then > > > > resulhowmany = resulhowmany + 1 > > > > Else > > > > Break > > > > Endif > > > > > > > > Wend > > > > > > > > resulobj.MoveFirst ' <--- here said that its foward only, that's > true > > > if > > > > comes from a simple select ? > > > > > > > > > > I don't understand your last question (and I have no idea about > bean-like > > > objects outside of gardening) but according to the Result.MoveNext() > > > documentation [1]: > > > > > > Returns TRUE if the result is void or if there is no next record. > > > > > > You seem to increment your counter when the move *fails*, which will > give > > > you a wrong count. I usually do something like: > > > > > > ' Modifies the internal Result record pointer! > > > Private Sub CountResult(hRes As Result) As Integer > > > Dim iCount As Integer > > > > > > If hRes.MoveFirst() Then Return 0 > > > iCount = 1 > > > While Not hRes.MoveNext() > > > Inc iCount > > > Wend > > > Return iCount > > > End > > > > > > Regards, > > > Tobi > > > > > > [1] http://gambaswiki.org/wiki/comp/gb.db/result/movenext > > > > > > -- > > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu May 18 17:11:30 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 18 May 2017 11:11:30 -0400 Subject: [Gambas-user] Class startup? In-Reply-To: <20170518131330.GB592@...3600...> References: <1495109172074-59033.post@...3046...> <20170518131330.GB592@...3600...> Message-ID: 2017-05-18 9:13 GMT-04:00 Tobias Boege : > You can also specify parameters to the _new() method like > > ' In MyClass.class: > Public Sub _new(X As Integer) > ' ... > End > a question: can be "Optional" allowed in constructor arguments..? its possible, so its the same as override in C: Public Sub _new(Optional x As String = "pepe") Print " es " & x End gambas its wonderfull.... > which demands that an Integer be given on object instantiation: > > Dim h As New MyClass(10) ' X = 10 > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/cat/special > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu May 18 17:13:23 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 18 May 2017 11:13:23 -0400 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: <20170517224911.GB574@...3600...> References: <20170517163254.GA574@...3600...> <20170517224911.GB574@...3600...> Message-ID: yes tobias, I already know.- in last years some bugs where discovered by me ... the surprise its that those bugs were inside gambas since some time .. that's probe that the usage of was very few and limited .. (i mean too many mysql ) but now i can not use, the corporation now used odbc for standard and gundows integration ... so i must use odbc inclusivelly for mysql !!! Arrggg so now i implement your solution, and recors fill the grid .. but when i separate the database logic from the form .. now the recorset gives me the "only forward" error ... i try to attadhed the project example ... some one can helpme? the mail list cut the message! i cannot attach project! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-17 18:49 GMT-04:00 Tobias Boege : > On Thu, 18 May 2017, Cristiano Guadagnino wrote: > > If your complaint is due to the fact that the only native implementation > > for Gambas is the Mysql one, you have to understand that Mysql (usually > in > > the form of MariaDB) is available on all linux distributions and it is > > free. > > One other free DBMS available for all linuxes is Postgresql, but this is > > not even nearly as widely used as Mysql. I would not be very surprised > if, > > in fact, the great majority of Gambas developers were using Mysql. What's > > wrong with that? > > > > (Just a quick interjection: Gambas does have a native PostgreSQL driver.) > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Thu May 18 17:14:38 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 18 May 2017 17:14:38 +0200 Subject: [Gambas-user] Passing arguments between WebPages Message-ID: <20170518151438.GC592@...3600...> Hi Benoit (or gb.web experts), I have two questions about argument passing with WebPages (gb.web), when I include one webpage into another with the <> syntax. (1) The first situation is that I have a small widget encapsulated in a WebPage, let's say it is a specially formatted button MyButton.webpage. It expects to be included with a text to put on the button: <> I want to be able to pass the value of a local variable of my parent WebPage inside this argument like this (which doesn't work): <% For Each iInd = 0 To AllButtons - 1 %> <> <% Next %> Is this possible? A workaround here would be to define a function in the parent WebPage which creates and renders an instance of MyButton and call that, resulting in something like: <% For Each iInd = 0 To AllButtons - 1 %> <%= RenderButton(Subst$("Button #&1", iInd)) %> <% Next %> This is good enough but I'm curious if the <> syntax admits the other kind of argument passing somehow, as I think it would make the parent WebPage prettier. (2) The other question is about receiving arguments. If I'm a child page and the parent included me by setting the "text" argument (like in (1)), then I can print the "text" value via the special syntax <%!text> But I want to use this value inside a <% Code %> or <%= Expr %> section, to evaluate or manipulate it (this also doesn't work, but hopefully gets my question across): <%= Subst$(!text, "#", "No. ") %> For instance, is there a hidden Collection containing all the passed arguments somewhere in the scope in which <% Code %> and <%= Expr %> execute? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Thu May 18 17:20:19 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 18 May 2017 11:20:19 -0400 Subject: [Gambas-user] Passing arguments between WebPages In-Reply-To: <20170518151438.GC592@...3600...> References: <20170518151438.GC592@...3600...> Message-ID: 2017-05-18 11:14 GMT-04:00 Tobias Boege : > Hi Benoit (or gb.web experts), > well, we are all like bruce lee with Jeet Kune Do! still starting so still ther are not xperts yet! that behaviour u described its similar to those used to parse in codeigniter! i have very interest in From taboege at ...626... Thu May 18 17:23:44 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 18 May 2017 17:23:44 +0200 Subject: [Gambas-user] Class startup? In-Reply-To: References: <1495109172074-59033.post@...3046...> <20170518131330.GB592@...3600...> Message-ID: <20170518152344.GD592@...3600...> On Thu, 18 May 2017, PICCORO McKAY Lenz wrote: > 2017-05-18 9:13 GMT-04:00 Tobias Boege : > > > You can also specify parameters to the _new() method like > > > > ' In MyClass.class: > > Public Sub _new(X As Integer) > > ' ... > > End > > > > a question: can be "Optional" allowed in constructor arguments..? > > its possible, so its the same as override in C: > > Public Sub _new(Optional x As String = "pepe") > > Print " es " & x > > End > > gambas its wonderfull.... > Yes, they can be optional. If you use optional constructor arguments you have to be careful with inheritance, though! Along the inheritance lineage, all constructor arguments are divided into two camps: mandatory and optional arguments. When the final inherited constructor signature is computed, both camps are sorted separately with the elders' arguments first and then all the mandatory arguments precede the optional arguments, e.g. ' Parent.class Public Sub _new(ParentArg, ParentArg2, Optional ParentOpt) ' Child.class Inherits Parent Public Sub _new(ChildArg, Optional ChildOpt) results in the following complete signature for Child._new(): _new(ParentArg, ParentArg2, ChildArg, ParentOpt, ChildOpt) Note that the optional argument of the parent comes *after* the mandatory argument of the child. There is an extra section in the object model wiki page about this [1]. Regards, Tobi [1] http://gambaswiki.org/wiki/doc/object-model#t18 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Thu May 18 17:39:25 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 18 May 2017 11:39:25 -0400 Subject: [Gambas-user] Class startup? In-Reply-To: <20170518152344.GD592@...3600...> References: <1495109172074-59033.post@...3046...> <20170518131330.GB592@...3600...> <20170518152344.GD592@...3600...> Message-ID: 2017-05-18 11:23 GMT-04:00 Tobias Boege : > Yes, they can be optional. > > If you use optional constructor arguments you have to be careful with > inheritance, though! Along the inheritance lineage, all constructor > arguments are divided into two camps: mandatory and optional arguments. > When the final inherited constructor signature is computed, both camps > are sorted separately with the elders' arguments first and then all the > mandatory arguments precede the optional arguments, e.g. > > ' Parent.class > Public Sub _new(ParentArg, ParentArg2, Optional ParentOpt) > > ' Child.class > Inherits Parent > Public Sub _new(ChildArg, Optional ChildOpt) > > results in the following complete signature for Child._new(): > > _new(ParentArg, ParentArg2, ChildArg, ParentOpt, ChildOpt) > the signature now takes all the parameters? umm seems now teste in gambas, the args of the child are alway behind of the parents but if the child have no args? the childs of childrens must have parent1 and 2? > > Note that the optional argument of the parent comes *after* the mandatory > argument of the child. There is an extra section in the object model wiki > page about this [1]. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/doc/object-model#t18 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Thu May 18 17:45:00 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 18 May 2017 17:45:00 +0200 Subject: [Gambas-user] Passing arguments between WebPages In-Reply-To: <20170518151438.GC592@...3600...> References: <20170518151438.GC592@...3600...> Message-ID: <20170518154500.GE592@...3600...> On Thu, 18 May 2017, Tobias Boege wrote: > (2) The other question is about receiving arguments. If I'm a child page > and the parent included me by setting the "text" argument (like in (1)), > then I can print the "text" value via the special syntax > > <%!text> > > But I want to use this value inside a <% Code %> or <%= Expr %> section, > to evaluate or manipulate it (this also doesn't work, but hopefully gets > my question across): > > <%= Subst$(!text, "#", "No. ") %> > > For instance, is there a hidden Collection containing all the passed > arguments somewhere in the scope in which <% Code %> and <%= Expr %> > execute? > Turns out there is and it's called _Arg. (It didn't occur to me before that I should look at gb.web's source code as well; I only tried to understand gbc_form_webpage.c). So the following demonstrates that what I wanted is possible (although not documented, so nobody should use it, of course): <%= _Arg!text %> is the same as <%! text %> Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Thu May 18 18:03:25 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 18 May 2017 18:03:25 +0200 Subject: [Gambas-user] Passing arguments between WebPages In-Reply-To: <20170518151438.GC592@...3600...> References: <20170518151438.GC592@...3600...> Message-ID: <20170518160325.GF592@...3600...> On Thu, 18 May 2017, Tobias Boege wrote: > Hi Benoit (or gb.web experts), > > I have two questions about argument passing with WebPages (gb.web), > when I include one webpage into another with the <> syntax. > > (1) The first situation is that I have a small widget encapsulated in a > WebPage, let's say it is a specially formatted button MyButton.webpage. > It expects to be included with a text to put on the button: > > <> > > I want to be able to pass the value of a local variable of my parent > WebPage inside this argument like this (which doesn't work): > > <% For Each iInd = 0 To AllButtons - 1 %> > <> > <% Next %> > > Is this possible? A workaround here would be to define a function in the > parent WebPage which creates and renders an instance of MyButton and call > that, resulting in something like: > > <% For Each iInd = 0 To AllButtons - 1 %> > <%= RenderButton(Subst$("Button #&1", iInd)) %> > <% Next %> > > This is good enough but I'm curious if the <> syntax admits > the other kind of argument passing somehow, as I think it would make > the parent WebPage prettier. > Hrrm, so after reading main/gbc/gbc_form_webpage.c more attentively, I have learned that this is also possible without weird hacks, and the syntax is also sound, just a small bit different from what I imagined it would look like above. *Instead of* <> you have to wrap the expression you want to evaluate inside <%=%>, so this works as I wanted it to: <>> (On a tangent, I once designed a very simple (yet Turing-complete) text substitution "programming language" on top of Gambas. The abundance of angular brackets and special symbols above kind of reminds me of it -- you could only produce "write-only" code in that language.) Sorry for the noise, but there's still hope that this can still help others in the future. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From matti.eber at ...3240... Thu May 18 20:18:04 2017 From: matti.eber at ...3240... (Matti) Date: Thu, 18 May 2017 20:18:04 +0200 Subject: [Gambas-user] ComboBox as a SearchBox? Message-ID: <410e0dc6-2149-86ab-b619-746162935723@...3240...> My idea was: entering the beginning of a word in a ComboBox, the list should display all the possible matches, then either select from the list or narrow the search by entering more letters. This works perfect - but when I fill the list with the matches, my search string (= ComboBox.Text) is overridden with the first result of the search. So there is no chance of searching farther. Ok, I have built the same now with a TextBox to search and a ListBox to show the results, but I still wonder why. It would be far more elegant... From karl.reinl at ...9... Thu May 18 20:31:40 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Thu, 18 May 2017 20:31:40 +0200 Subject: [Gambas-user] Editing still blocked In-Reply-To: <359971f8-a4a0-3bf4-f496-f565866ae4f3@...1...> References: <11624935-d6f0-c86d-f89b-e6905918c342@...1...> <359971f8-a4a0-3bf4-f496-f565866ae4f3@...1...> Message-ID: <1495132300.13215.8.camel@...3609...> Am Donnerstag, den 18.05.2017, 00:50 +0200 schrieb Beno?t Minisini: > Le 17/05/2017 ? 22:30, Fabien Bodard a ?crit : > > So the problem come from the drawingarea. > > > > I have changed something related to events in revision #8132, so it must > me that. > > But everything works correctly on my system... > > I will investigate, but not before next week. > > Regards, > Salut, until your solution comes, the SVN-user can check out release 8131 svn checkout -r 8131 -- Amicalement Charlie From mckaygerhard at ...626... Fri May 19 00:33:11 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 18 May 2017 18:03:11 -0430 Subject: [Gambas-user] ComboBox as a SearchBox? In-Reply-To: <410e0dc6-2149-86ab-b619-746162935723@...3240...> References: <410e0dc6-2149-86ab-b619-746162935723@...3240...> Message-ID: this are in a gambas web project or gambas desktop project? i search for something similar .. how do you doing.. my idea was using json.. but on desktop can be a pain! for search, in the input box, made a query with json to a collection with preloaded data from database Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-18 13:48 GMT-04:30 Matti : > My idea was: entering the beginning of a word in a ComboBox, the list > should display all the possible matches, then either select from the list > or narrow the search by entering more letters. > This works perfect - but when I fill the list with the matches, my search > string (= ComboBox.Text) is overridden with the first result of the search. > So there is no chance of searching farther. > > Ok, I have built the same now with a TextBox to search and a ListBox to > show the results, but I still wonder why. It would be far more elegant... > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rwe-sse at ...3629... Fri May 19 08:47:01 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Fri, 19 May 2017 08:47:01 +0200 Subject: [Gambas-user] ComboBox as a SearchBox? In-Reply-To: <410e0dc6-2149-86ab-b619-746162935723@...3240...> References: <410e0dc6-2149-86ab-b619-746162935723@...3240...> Message-ID: <591E94E5.9000109@...3629...> Am 18.05.2017 20:18, schrieb Matti: > My idea was: entering the beginning of a word in a ComboBox, the list should display all the possible matches, then either select from the list or narrow the search by entering more letters. > This works perfect - but when I fill the list with the matches, my search string (= ComboBox.Text) is overridden with the first result of the search. So there is no chance of searching farther. > > Ok, I have built the same now with a TextBox to search and a ListBox to show the results, but I still wonder why. It would be far more elegant... Just a vague idea - have you tried leaving the first entry out or blank when you fill the list? Regards Rolf From gambas.fr at ...626... Fri May 19 08:51:45 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 May 2017 08:51:45 +0200 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: <1494968007150-59007.post@...3046...> Message-ID: in fact there is a way for you i think. You must take a look at the DataSource code. It use a load on the need system that i think allow to make something about data provider wich not give any info about the number of data rows. 2017-05-17 1:28 GMT+02:00 PICCORO McKAY Lenz : > Ingo, that My german is not very good, quite limited, a regret to have > family, that German gambas wiki is the best in information, the shrimp > documentation should be so, I mean the amount of documentation aimed > at implementing pieces of code.. > > the example in the documentation was a good started point thanks.. and > for better the example its attached in each wiki page! wonderfully > > if that wiki were in english or spanish, ..... oh men! > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > 2017-05-16 16:53 GMT-04:00 ingo : >> Hi, >> have look to the german Gambas-Buch with an example how to load date from a >> db and show it in the gridView. >> http://gambas-buch.de/dw/doku.php?id=k17:k17.7:k17.7.5:start&s[]=gridview >> >> >> Hope that helps. >> Ingo >> >> >> >> -- >> View this message in context: http://gambas.8142.n7.nabble.com/Huge-data-in-gridview-documentation-wiki-does-not-explain-how-tp59004p59007.html >> Sent from the gambas-user mailing list archive at Nabble.com. >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Fri May 19 08:57:37 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 May 2017 08:57:37 +0200 Subject: [Gambas-user] How to use gb.map ".AddPolyLine( )" method ? In-Reply-To: <1495008170282-59017.post@...3046...> References: <1494786411516-58976.post@...3046...> <1495008170282-59017.post@...3046...> Message-ID: you can use the map.MapPointToPixelRel ( hMapPoint As MapPoint ) function to get directly the position on the draw area. 2017-05-17 10:02 GMT+02:00 ingo : > Hi Fabien, > thankx for the answer and the very fast implementation. > > I found a workaround in the meantime. Using the draw event of the MapView > let me draw lines with Paint. > But I will check the new gb.map class. > > Salut > Ingo > > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p59017.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Fri May 19 09:29:02 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 May 2017 09:29:02 +0200 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> <20170517224911.GB574@...3600...> Message-ID: 2017-05-18 17:13 GMT+02:00 PICCORO McKAY Lenz : > yes tobias, I already know.- in last years some bugs where discovered by me > ... the surprise its that those bugs were inside gambas since some time .. > that's probe that the usage of was very few and limited .. (i mean too many > mysql ) > > but now i can not use, the corporation now used odbc for standard and > gundows integration ... so i must use odbc inclusivelly for mysql !!! Arrggg > > so now i implement your solution, and recors fill the grid .. but when i > separate the database logic from the form .. now the recorset gives me the > "only forward" error ... > > i try to attadhed the project example ... some one can helpme? the mail > list cut the message! i cannot attach project! send it to me : gambas.fr at ...626... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-17 18:49 GMT-04:00 Tobias Boege : > >> On Thu, 18 May 2017, Cristiano Guadagnino wrote: >> > If your complaint is due to the fact that the only native implementation >> > for Gambas is the Mysql one, you have to understand that Mysql (usually >> in >> > the form of MariaDB) is available on all linux distributions and it is >> > free. >> > One other free DBMS available for all linuxes is Postgresql, but this is >> > not even nearly as widely used as Mysql. I would not be very surprised >> if, >> > in fact, the great majority of Gambas developers were using Mysql. What's >> > wrong with that? >> > >> >> (Just a quick interjection: Gambas does have a native PostgreSQL driver.) >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From matti.eber at ...3240... Fri May 19 09:31:49 2017 From: matti.eber at ...3240... (Matti) Date: Fri, 19 May 2017 09:31:49 +0200 Subject: [Gambas-user] ComboBox as a SearchBox? In-Reply-To: <2cc9137f-9363-23d6-11b5-3fe5ac399166@...3340...> References: <410e0dc6-2149-86ab-b619-746162935723@...3240...> <2cc9137f-9363-23d6-11b5-3fe5ac399166@...3340...> Message-ID: <3ce01236-dde3-beb8-fa49-36be537bb39f@...3240...> Thanks, Christof. This looks good. I'll have a look at it. Matti Am 19.05.2017 um 08:59 schrieb Christof Thalhofer: > Hello Matti, > > Am 18.05.2017 um 20:18 schrieb Matti: >> My idea was: entering the beginning of a word in a ComboBox, the list should display all the possible matches, then either select from the list or narrow the search by entering more letters. >> This works perfect - but when I fill the list with the matches, my search string (= ComboBox.Text) is overridden with the first result of the search. So there is no chance of searching farther. >> >> Ok, I have built the same now with a TextBox to search and a ListBox to show the results, but I still wonder why. It would be far more elegant... > You may have a look here: > > https://github.com/Deganius/gb.deg.form > > > Alles Gute > > Christof Thalhofer > From gambas.fr at ...626... Fri May 19 09:34:53 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 May 2017 09:34:53 +0200 Subject: [Gambas-user] Class startup? In-Reply-To: References: <1495109172074-59033.post@...3046...> <20170518131330.GB592@...3600...> <20170518152344.GD592@...3600...> Message-ID: 2017-05-18 17:39 GMT+02:00 PICCORO McKAY Lenz : > 2017-05-18 11:23 GMT-04:00 Tobias Boege : > >> Yes, they can be optional. >> >> If you use optional constructor arguments you have to be careful with >> inheritance, though! Along the inheritance lineage, all constructor >> arguments are divided into two camps: mandatory and optional arguments. >> When the final inherited constructor signature is computed, both camps >> are sorted separately with the elders' arguments first and then all the >> mandatory arguments precede the optional arguments, e.g. >> >> ' Parent.class >> Public Sub _new(ParentArg, ParentArg2, Optional ParentOpt) >> >> ' Child.class >> Inherits Parent >> Public Sub _new(ChildArg, Optional ChildOpt) >> >> results in the following complete signature for Child._new(): >> >> _new(ParentArg, ParentArg2, ChildArg, ParentOpt, ChildOpt) >> > the signature now takes all the parameters? > > umm seems now teste in gambas, the args of the child are alway behind of > the parents > > but if the child have no args? the childs of childrens must have parent1 > and 2? Yes... it's the principe behind the class control for example. every inheritance of control must to have a container parent because they inherit from the control class. But you can avoid that by embedded an internal instance of the desired control in a new class that give a new api without _new parameters (encapsulation) > > >> >> Note that the optional argument of the parent comes *after* the mandatory >> argument of the child. There is an extra section in the object model wiki >> page about this [1]. >> >> Regards, >> Tobi >> >> [1] http://gambaswiki.org/wiki/doc/object-model#t18 >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From matti.eber at ...3240... Fri May 19 09:35:35 2017 From: matti.eber at ...3240... (Matti) Date: Fri, 19 May 2017 09:35:35 +0200 Subject: [Gambas-user] ComboBox as a SearchBox? In-Reply-To: <591E94E5.9000109@...3629...> References: <410e0dc6-2149-86ab-b619-746162935723@...3240...> <591E94E5.9000109@...3629...> Message-ID: <16f1c812-3482-6572-250a-1991c31d884e@...3240...> Thanks, Rolf. Good idea. Now, I have set the search string on first position of the list. But something ist still wrong - I'll investigate. Matti Am 19.05.2017 um 08:47 schrieb Rolf-Werner Eilert: > Am 18.05.2017 20:18, schrieb Matti: >> My idea was: entering the beginning of a word in a ComboBox, the list should display all the possible matches, then either select from the list or narrow the search by entering more letters. >> This works perfect - but when I fill the list with the matches, my search string (= ComboBox.Text) is overridden with the first result of the search. So there is no chance of searching farther. >> >> Ok, I have built the same now with a TextBox to search and a ListBox to show the results, but I still wonder why. It would be far more elegant... > > Just a vague idea - have you tried leaving the first entry out or blank > when you fill the list? > > Regards > Rolf > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri May 19 11:27:25 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 19 May 2017 11:27:25 +0200 Subject: [Gambas-user] ComboBox as a SearchBox? In-Reply-To: <16f1c812-3482-6572-250a-1991c31d884e@...3240...> References: <410e0dc6-2149-86ab-b619-746162935723@...3240...> <591E94E5.9000109@...3629...> <16f1c812-3482-6572-250a-1991c31d884e@...3240...> Message-ID: you can built something with a textbox a drawing area for drawing the but with the current style and a listbox in a popuped window you can also use the completion class. 2017-05-19 9:35 GMT+02:00 Matti : > Thanks, Rolf. > Good idea. Now, I have set the search string on first position of the list. > But something ist still wrong - I'll investigate. > Matti > > Am 19.05.2017 um 08:47 schrieb Rolf-Werner Eilert: >> Am 18.05.2017 20:18, schrieb Matti: >>> My idea was: entering the beginning of a word in a ComboBox, the list should display all the possible matches, then either select from the list or narrow the search by entering more letters. >>> This works perfect - but when I fill the list with the matches, my search string (= ComboBox.Text) is overridden with the first result of the search. So there is no chance of searching farther. >>> >>> Ok, I have built the same now with a TextBox to search and a ListBox to show the results, but I still wonder why. It would be far more elegant... >> >> Just a vague idea - have you tried leaving the first entry out or blank >> when you fill the list? >> >> Regards >> Rolf >> >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From mckaygerhard at ...626... Fri May 19 16:35:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 19 May 2017 10:35:39 -0400 Subject: [Gambas-user] Huge data in gridview documentation wiki does not explain how In-Reply-To: References: <1494968007150-59007.post@...3046...> Message-ID: the Datasource code? inside gambas code or in fram? the project that i found that implements something similar are the DataBrowser component but i not foud a usefull way to use for me, as u ask in the other mail i send to you the project .. (in private mail due list does not handle it) For my 50c of contribution, i'll need to report some test for the freetds project this weekend, when done, i'll talk about provide count and i'll try to make some docs for improve the odbc code module.. the odbc freetds implementation for sybase in linux are pretty good now supporting n**** type data Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-19 2:51 GMT-04:00 Fabien Bodard : > in fact there is a way for you i think. > > You must take a look at the DataSource code. It use a load on the need > system that i think allow to make something > about data provider wich not give any info about the number of data rows. > > > 2017-05-17 1:28 GMT+02:00 PICCORO McKAY Lenz : > > Ingo, that My german is not very good, quite limited, a regret to have > > family, that German gambas wiki is the best in information, the shrimp > > documentation should be so, I mean the amount of documentation aimed > > at implementing pieces of code.. > > > > the example in the documentation was a good started point thanks.. and > > for better the example its attached in each wiki page! wonderfully > > > > if that wiki were in english or spanish, ..... oh men! > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > > > 2017-05-16 16:53 GMT-04:00 ingo : > >> Hi, > >> have look to the german Gambas-Buch with an example how to load date > from a > >> db and show it in the gridView. > >> http://gambas-buch.de/dw/doku.php?id=k17:k17.7:k17.7.5: > start&s[]=gridview > >> start&s[]=gridview> > >> > >> Hope that helps. > >> Ingo > >> > >> > >> > >> -- > >> View this message in context: http://gambas.8142.n7.nabble. > com/Huge-data-in-gridview-documentation-wiki-does-not- > explain-how-tp59004p59007.html > >> Sent from the gambas-user mailing list archive at Nabble.com. > >> > >> ------------------------------------------------------------ > ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bm-53 at ...221... Fri May 19 17:36:04 2017 From: bm-53 at ...221... (ingo) Date: Fri, 19 May 2017 08:36:04 -0700 (MST) Subject: [Gambas-user] Networkmonitor in WebView? Message-ID: <1495208164079-59056.post@...3046...> Hi web-experts. Many of us know the developer tools in browsers like Firefox etc. or maybe FireBug. The tools include a network monitor where you can get the information of GET/POST methods during a website is loading. Is something like this also possible in the WebView Component? Than you. Ingo -- View this message in context: http://gambas.8142.n7.nabble.com/Networkmonitor-in-WebView-tp59056.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Sun May 21 17:41:42 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 21 May 2017 11:11:42 -0430 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> <20170517224911.GB574@...3600...> Message-ID: now after some messaged between fabian and me, i continue in the list the problemm thanks fabian.. do you see that moveto do not permit due the grid does not fill in order.. so when the data event are raised the index are not secuencial so a "foward only" problem happened.... and now u count and then send again the select: $Result = db.Exec("select count(*) irows from sys_productos") $iCount = $Result!irows $Result = db.Exec("select * from sys_productos") <- in sybase odbc seems this does not work afete a count using select seems there's a problem in odbc, this was i do in firts, but does not work, maybe i do in bad way.. due right now i not have the odbc environment.. i'll test monday and post feedback here.. but seems the odbc module in gambas has a problem in this way, due does not permit make that.. or at least does not permit retrieve the results after made a select count Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-19 2:59 GMT-04:30 Fabien Bodard : > 2017-05-18 17:13 GMT+02:00 PICCORO McKAY Lenz : > > yes tobias, I already know.- in last years some bugs where discovered by > me > > ... the surprise its that those bugs were inside gambas since some time > .. > > that's probe that the usage of was very few and limited .. (i mean too > many > > mysql ) > > > > but now i can not use, the corporation now used odbc for standard and > > gundows integration ... so i must use odbc inclusivelly for mysql !!! > Arrggg > > > > so now i implement your solution, and recors fill the grid .. but when i > > separate the database logic from the form .. now the recorset gives me > the > > "only forward" error ... > > > > i try to attadhed the project example ... some one can helpme? the mail > > list cut the message! i cannot attach project! > > send it to me : > > gambas.fr at ...626... > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-17 18:49 GMT-04:00 Tobias Boege : > > > >> On Thu, 18 May 2017, Cristiano Guadagnino wrote: > >> > If your complaint is due to the fact that the only native > implementation > >> > for Gambas is the Mysql one, you have to understand that Mysql > (usually > >> in > >> > the form of MariaDB) is available on all linux distributions and it is > >> > free. > >> > One other free DBMS available for all linuxes is Postgresql, but this > is > >> > not even nearly as widely used as Mysql. I would not be very surprised > >> if, > >> > in fact, the great majority of Gambas developers were using Mysql. > What's > >> > wrong with that? > >> > > >> > >> (Just a quick interjection: Gambas does have a native PostgreSQL > driver.) > >> > >> -- > >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From d4t4full at ...626... Sun May 21 19:03:05 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Sun, 21 May 2017 14:03:05 -0300 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> <20170517224911.GB574@...3600...> Message-ID: <34b78cfc-f2a2-4926-a52e-2f56daca58c4@...626...> Piccoro, All .MoveXXX methods except .MoveNext need a record count from the provider. You know that ODBC does not provide one, but some drivers do, and I also patched the component to try to fetch this count when possible. Now, the driver may NOT be correctly configured in unixODBC, allowing some issues. For example, if I use FreeTDS with a Server_Version of 7.0 and try to connect to a MSSQL2005, the compinent will not be able to fetch rec counts even with the patch I mentioned. But if I just change the Server_Version to 7.2, voil?: I get record counts via the patch. This is because FreeTDS will not allow (nor ODBC will emulate) cursors with the first version combination. But it will with the second.? Cursors is what enable a result set to skip back and forth. The patch simply remembers where the cursor is (if it exists), then jumps to the last record and fetches its ordinal; then it goes back to where it was originally, and returns the record count. But for all this to work both ODBC and the driver must somehow support cursors, either by design or emulated. If you use the component test project I attached to one of your bug reports, enable GB.Debug and try your connection string (for these tests it's? best to try connstrings so you don't have to edit INIs like crazy just to test), the console will tell you whether cursors are present or not. Bear in mind that it is possible to have cursors available but not a proper Gambas RecordCount though. Hope it helps, zxMarce. On May 21, 2017, 12:41, at 12:41, PICCORO McKAY Lenz wrote: >now after some messaged between fabian and me, i continue in the list >the >problemm > >thanks fabian.. do you see that moveto do not permit due the grid does >not >fill in order.. so when the data event are raised the index are not >secuencial so a "foward only" problem happened.... > >and now u count and then send again the select: > > > $Result = db.Exec("select count(*) irows from sys_productos") > $iCount = $Result!irows > >$Result = db.Exec("select * from sys_productos") <- in sybase odbc >seems >this does not work afete a count using select > > >seems there's a problem in odbc, this was i do in firts, but does not >work, >maybe i do in bad way.. > >due right now i not have the odbc environment.. i'll test monday and >post >feedback here.. but seems the odbc module in gambas has a problem in >this >way, due does not permit make that.. or at least does not permit >retrieve >the results after made a select count > > >Lenz McKAY Gerardo (PICCORO) >http://qgqlochekone.blogspot.com > >2017-05-19 2:59 GMT-04:30 Fabien Bodard : > >> 2017-05-18 17:13 GMT+02:00 PICCORO McKAY Lenz >: >> > yes tobias, I already know.- in last years some bugs where >discovered by >> me >> > ... the surprise its that those bugs were inside gambas since some >time >> .. >> > that's probe that the usage of was very few and limited .. (i mean >too >> many >> > mysql ) >> > >> > but now i can not use, the corporation now used odbc for standard >and >> > gundows integration ... so i must use odbc inclusivelly for mysql >!!! >> Arrggg >> > >> > so now i implement your solution, and recors fill the grid .. but >when i >> > separate the database logic from the form .. now the recorset gives >me >> the >> > "only forward" error ... >> > >> > i try to attadhed the project example ... some one can helpme? the >mail >> > list cut the message! i cannot attach project! >> >> send it to me : >> >> gambas.fr at ...626... >> > >> > Lenz McKAY Gerardo (PICCORO) >> > http://qgqlochekone.blogspot.com >> > >> > 2017-05-17 18:49 GMT-04:00 Tobias Boege : >> > >> >> On Thu, 18 May 2017, Cristiano Guadagnino wrote: >> >> > If your complaint is due to the fact that the only native >> implementation >> >> > for Gambas is the Mysql one, you have to understand that Mysql >> (usually >> >> in >> >> > the form of MariaDB) is available on all linux distributions and >it is >> >> > free. >> >> > One other free DBMS available for all linuxes is Postgresql, but >this >> is >> >> > not even nearly as widely used as Mysql. I would not be very >surprised >> >> if, >> >> > in fact, the great majority of Gambas developers were using >Mysql. >> What's >> >> > wrong with that? >> >> > >> >> >> >> (Just a quick interjection: Gambas does have a native PostgreSQL >> driver.) >> >> >> >> -- >> >> "There's an old saying: Don't change anything... ever!" -- Mr. >Monk >> >> >> >> ------------------------------------------------------------ >> >> ------------------ >> >> Check out the vibrant tech community on one of the world's most >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > ------------------------------------------------------------ >> ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> -- >> Fabien Bodard >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From mckaygerhard at ...626... Sun May 21 21:46:16 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 21 May 2017 15:16:16 -0430 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: <34b78cfc-f2a2-4926-a52e-2f56daca58c4@...626...> References: <20170517163254.GA574@...3600...> <20170517224911.GB574@...3600...> <34b78cfc-f2a2-4926-a52e-2f56daca58c4@...626...> Message-ID: 2017-05-21 12:33 GMT-04:30 : > All .MoveXXX methods except .MoveNext need a record count from the > provider. You know that ODBC does not provide one, but some drivers do, and > I also patched the component to try to fetch this count when possible. > > Now, the driver may NOT be correctly configured in unixODBC, allowing some > issues. For example, if I use FreeTDS with a Server_Version of 7.0 and try > to connect to a MSSQL2005, the compinent will not be able to fetch rec > counts even with the patch I mentioned. But if I just change the > Server_Version to 7.2, voil?: I get record counts via the patch. > umm but seems based on your info, i never will get the requireds for made it by that way! for sybae freetds internally always use the 5.0 version protocol > This is because FreeTDS will not allow (nor ODBC will emulate) cursors > with the first version combination. But it will with the second. Cursors > is what enable a result set to skip back and forth. The patch simply > remembers where the cursor is (if it exists), then jumps to the last record > and fetches its ordinal; then it goes back to where it was originally, and > returns the record count. But for all this to work both ODBC and the driver > must somehow support cursors, either by design or emulated. > ok as i said, i never will get the requireds by that way! sybase need the 5.0 protocol and any other version server protocol will break the usage > If you use the component test project I attached to one of your bug > reports, enable GB.Debug and try your connection string (for these tests > it's best to try connstrings so you don't have to edit INIs like crazy > just to test), the ini file its crated dinamically i dont have problem > the console will tell you whether cursors are present or not. > thanks for the info.. but based in the info of firts paragraph seems that by that way will never get the required! > > Bear in mind that it is possible to have cursors available but not a > proper Gambas RecordCount though. > really? that 's contrary to the explained in the previous paragraphs!!.. but have logic! umm but the record count will not be there for the fill of the grid! i will debug like u sugested and try it! but seems due freetds server version 5.0 protocol i'll not get so much.. sybase only used protocol 5.0 server version.. thanks for help zxMarce and Fabian, i'm very impatient monday comes, to test in proper environment.. in my eeepc 2G there's no enough space for do any of.. ah?, yeah i writing this main in a very older hardware! with only 2G of disk and 512 of ram.. running Chronno Trigger in pxsc using debian squeeze > > Hope it helps, > zxMarce. > > > On May 21, 2017, 12:41, at 12:41, PICCORO McKAY Lenz < > mckaygerhard at ...626...> wrote: > >now after some messaged between fabian and me, i continue in the list > >the > >problemm > > > >thanks fabian.. do you see that moveto do not permit due the grid does > >not > >fill in order.. so when the data event are raised the index are not > >secuencial so a "foward only" problem happened.... > > > >and now u count and then send again the select: > > > > > > $Result = db.Exec("select count(*) irows from sys_productos") > > $iCount = $Result!irows > > > >$Result = db.Exec("select * from sys_productos") <- in sybase odbc > >seems > >this does not work afete a count using select > > > > > >seems there's a problem in odbc, this was i do in firts, but does not > >work, > >maybe i do in bad way.. > > > >due right now i not have the odbc environment.. i'll test monday and > >post > >feedback here.. but seems the odbc module in gambas has a problem in > >this > >way, due does not permit make that.. or at least does not permit > >retrieve > >the results after made a select count > > > > > >Lenz McKAY Gerardo (PICCORO) > >http://qgqlochekone.blogspot.com > > > >2017-05-19 2:59 GMT-04:30 Fabien Bodard : > > > >> 2017-05-18 17:13 GMT+02:00 PICCORO McKAY Lenz > >: > >> > yes tobias, I already know.- in last years some bugs where > >discovered by > >> me > >> > ... the surprise its that those bugs were inside gambas since some > >time > >> .. > >> > that's probe that the usage of was very few and limited .. (i mean > >too > >> many > >> > mysql ) > >> > > >> > but now i can not use, the corporation now used odbc for standard > >and > >> > gundows integration ... so i must use odbc inclusivelly for mysql > >!!! > >> Arrggg > >> > > >> > so now i implement your solution, and recors fill the grid .. but > >when i > >> > separate the database logic from the form .. now the recorset gives > >me > >> the > >> > "only forward" error ... > >> > > >> > i try to attadhed the project example ... some one can helpme? the > >mail > >> > list cut the message! i cannot attach project! > >> > >> send it to me : > >> > >> gambas.fr at ...626... > >> > > >> > Lenz McKAY Gerardo (PICCORO) > >> > http://qgqlochekone.blogspot.com > >> > > >> > 2017-05-17 18:49 GMT-04:00 Tobias Boege : > >> > > >> >> On Thu, 18 May 2017, Cristiano Guadagnino wrote: > >> >> > If your complaint is due to the fact that the only native > >> implementation > >> >> > for Gambas is the Mysql one, you have to understand that Mysql > >> (usually > >> >> in > >> >> > the form of MariaDB) is available on all linux distributions and > >it is > >> >> > free. > >> >> > One other free DBMS available for all linuxes is Postgresql, but > >this > >> is > >> >> > not even nearly as widely used as Mysql. I would not be very > >surprised > >> >> if, > >> >> > in fact, the great majority of Gambas developers were using > >Mysql. > >> What's > >> >> > wrong with that? > >> >> > > >> >> > >> >> (Just a quick interjection: Gambas does have a native PostgreSQL > >> driver.) > >> >> > >> >> -- > >> >> "There's an old saying: Don't change anything... ever!" -- Mr. > >Monk > >> >> > >> >> ------------------------------------------------------------ > >> >> ------------------ > >> >> Check out the vibrant tech community on one of the world's most > >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> > ------------------------------------------------------------ > >> ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > >> -- > >> Fabien Bodard > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >----------------------------------------------------------- > ------------------- > >Check out the vibrant tech community on one of the world's most > >engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fernandojosecabral at ...626... Mon May 22 13:11:00 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 22 May 2017 08:11:00 -0300 Subject: [Gambas-user] Editing still blocked Message-ID: For those of you that, like me, are having trouble with editing a source file, I have been using two functional workarounds: a) I run a virtual machine (vbox), and then I mount the project directory onto the virtual machine. From this virtual machine I edit the source code, compile it, and then switch back to the real machine, where I test it. b) Running on the real machine, I edit the source code using vi. After saving the edited file I reload it on the gambas IDE, compile it and test it. Cumbersome, perhaps, but workable enough to let me keep learning gambas Regards - fernando 2017-05-18 15:31 GMT-03:00 Karl Reinl : > Am Donnerstag, den 18.05.2017, 00:50 +0200 schrieb Beno?t Minisini: > > Le 17/05/2017 ? 22:30, Fabien Bodard a ?crit : > > > So the problem come from the drawingarea. > > > > > > > I have changed something related to events in revision #8132, so it must > > me that. > > > > But everything works correctly on my system... > > > > I will investigate, but not before next week. > > > > Regards, > > > > Salut, > > until your solution comes, the SVN-user can check out release 8131 > svn checkout -r 8131 > -- > Amicalement > Charlie > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From bugtracker at ...3416... Mon May 22 14:56:04 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 22 May 2017 12:56:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1103: no border change on a imageview control. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1103&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Mon May 22 14:57:19 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 22 May 2017 12:57:19 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1103: no border change on a imageview control. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1103&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in revision #8136. Beno?t MINISINI changed the state of the bug to: Fixed. From mckaygerhard at ...626... Mon May 22 15:21:44 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 May 2017 09:21:44 -0400 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> <20170517224911.GB574@...3600...> <34b78cfc-f2a2-4926-a52e-2f56daca58c4@...626...> Message-ID: hello Fabian.. hello zxMarce Fabian, your method/code does not work as zxMarce said.. (in any case, the resultset and db manage was done in form code) due the result object to make the MoveTo need the count for... as said zxMarce all .MoveXXX methods except .MoveNext SEEMS need a record count from the provider. so there's no way for the DAta event to fill the grid using ODBC and sybase... 1) this kind of information MUST BE in the documentation Benoit 2) the odbc standard does not have that unless a INSERT, UPDATE or DELETE was done Now lest try with the second suggestion .. a patched.. may not work either, due seems (and here i dont know or i not debug well) ODBC does not permit subquerys if a recorset are still open.. all the code will must go to the odbc gambas implementation due by example if i do: select count(codigo) as cuanto from dba.ta_sys_existencias_dinamicas order by cuanto limit 50000 offset 0 and in other result i do select * from dba.ta_sys_existencias_dinamicas order by col1 limit 50000 offset 0 take in consideration the limit indicate only 50000 rows, the odbc does not report the amount , but due strange reasons, the where( rs.available) will iterate over the 50000 rows event the count select only return one row! so in conclusion.. the only way to fill the grid for now, in gambas using odbc basic implementation its manually secuencial starting from 0 ending in a manual count over the previously iteration.. seem quite complicated to explain and its not documented in any place in wiki.. i can documented but only in spanish.. i'm tyred of english only! NOTE IMPORTAT: i must duplicate all this info in the respective bug due the buggy integration between gambas list and mail bugtraker Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-21 15:46 GMT-04:00 PICCORO McKAY Lenz : > 2017-05-21 12:33 GMT-04:30 : > >> All .MoveXXX methods except .MoveNext need a record count from the >> provider. You know that ODBC does not provide one, but some drivers do, and >> I also patched the component to try to fetch this count when possible. >> >> Now, the driver may NOT be correctly configured in unixODBC, allowing >> some issues. For example, if I use FreeTDS with a Server_Version of 7.0 and >> try to connect to a MSSQL2005, the compinent will not be able to fetch rec >> counts even with the patch I mentioned. But if I just change the >> Server_Version to 7.2, voil?: I get record counts via the patch. >> > umm but seems based on your info, i never will get the requireds for made > it by that way! for sybae freetds internally always use the 5.0 version > protocol > > >> This is because FreeTDS will not allow (nor ODBC will emulate) cursors >> with the first version combination. But it will with the second. Cursors >> is what enable a result set to skip back and forth. The patch simply >> remembers where the cursor is (if it exists), then jumps to the last record >> and fetches its ordinal; then it goes back to where it was originally, and >> returns the record count. But for all this to work both ODBC and the driver >> must somehow support cursors, either by design or emulated. >> > ok as i said, i never will get the requireds by that way! sybase need the > 5.0 protocol and any other version server protocol will break the usage > > >> If you use the component test project I attached to one of your bug >> reports, enable GB.Debug and try your connection string (for these tests >> it's best to try connstrings so you don't have to edit INIs like crazy >> just to test), > > the ini file its crated dinamically i dont have problem > > >> the console will tell you whether cursors are present or not. >> > thanks for the info.. but based in the info of firts paragraph seems that > by that way will never get the required! > > >> >> Bear in mind that it is possible to have cursors available but not a >> proper Gambas RecordCount though. >> > really? that 's contrary to the explained in the previous paragraphs!!.. > but have logic! > umm but the record count will not be there for the fill of the grid! i > will debug like u sugested and try it! but seems due freetds server version > 5.0 protocol i'll not get so much.. sybase only used protocol 5.0 server > version.. > > > thanks for help zxMarce and Fabian, i'm very impatient monday comes, to > test in proper environment.. in my eeepc 2G there's no enough space for do > any of.. > > ah?, yeah i writing this main in a very older hardware! with only 2G of > disk and 512 of ram.. running Chronno Trigger in pxsc using debian squeeze > > >> >> Hope it helps, >> zxMarce. >> >> >> On May 21, 2017, 12:41, at 12:41, PICCORO McKAY Lenz < >> mckaygerhard at ...626...> wrote: >> >now after some messaged between fabian and me, i continue in the list >> >the >> >problemm >> > >> >thanks fabian.. do you see that moveto do not permit due the grid does >> >not >> >fill in order.. so when the data event are raised the index are not >> >secuencial so a "foward only" problem happened.... >> > >> >and now u count and then send again the select: >> > >> > >> > $Result = db.Exec("select count(*) irows from sys_productos") >> > $iCount = $Result!irows >> > >> >$Result = db.Exec("select * from sys_productos") <- in sybase odbc >> >seems >> >this does not work afete a count using select >> > >> > >> >seems there's a problem in odbc, this was i do in firts, but does not >> >work, >> >maybe i do in bad way.. >> > >> >due right now i not have the odbc environment.. i'll test monday and >> >post >> >feedback here.. but seems the odbc module in gambas has a problem in >> >this >> >way, due does not permit make that.. or at least does not permit >> >retrieve >> >the results after made a select count >> > >> > >> >Lenz McKAY Gerardo (PICCORO) >> >http://qgqlochekone.blogspot.com >> > >> >2017-05-19 2:59 GMT-04:30 Fabien Bodard : >> > >> >> 2017-05-18 17:13 GMT+02:00 PICCORO McKAY Lenz >> >: >> >> > yes tobias, I already know.- in last years some bugs where >> >discovered by >> >> me >> >> > ... the surprise its that those bugs were inside gambas since some >> >time >> >> .. >> >> > that's probe that the usage of was very few and limited .. (i mean >> >too >> >> many >> >> > mysql ) >> >> > >> >> > but now i can not use, the corporation now used odbc for standard >> >and >> >> > gundows integration ... so i must use odbc inclusivelly for mysql >> >!!! >> >> Arrggg >> >> > >> >> > so now i implement your solution, and recors fill the grid .. but >> >when i >> >> > separate the database logic from the form .. now the recorset gives >> >me >> >> the >> >> > "only forward" error ... >> >> > >> >> > i try to attadhed the project example ... some one can helpme? the >> >mail >> >> > list cut the message! i cannot attach project! >> >> >> >> send it to me : >> >> >> >> gambas.fr at ...626... >> >> > >> >> > Lenz McKAY Gerardo (PICCORO) >> >> > http://qgqlochekone.blogspot.com >> >> > >> >> > 2017-05-17 18:49 GMT-04:00 Tobias Boege : >> >> > >> >> >> On Thu, 18 May 2017, Cristiano Guadagnino wrote: >> >> >> > If your complaint is due to the fact that the only native >> >> implementation >> >> >> > for Gambas is the Mysql one, you have to understand that Mysql >> >> (usually >> >> >> in >> >> >> > the form of MariaDB) is available on all linux distributions and >> >it is >> >> >> > free. >> >> >> > One other free DBMS available for all linuxes is Postgresql, but >> >this >> >> is >> >> >> > not even nearly as widely used as Mysql. I would not be very >> >surprised >> >> >> if, >> >> >> > in fact, the great majority of Gambas developers were using >> >Mysql. >> >> What's >> >> >> > wrong with that? >> >> >> > >> >> >> >> >> >> (Just a quick interjection: Gambas does have a native PostgreSQL >> >> driver.) >> >> >> >> >> >> -- >> >> >> "There's an old saying: Don't change anything... ever!" -- Mr. >> >Monk >> >> >> >> >> >> ------------------------------------------------------------ >> >> >> ------------------ >> >> >> Check out the vibrant tech community on one of the world's most >> >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> >> _______________________________________________ >> >> >> Gambas-user mailing list >> >> >> Gambas-user at lists.sourceforge.net >> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> > ------------------------------------------------------------ >> >> ------------------ >> >> > Check out the vibrant tech community on one of the world's most >> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> >> >> >> -- >> >> Fabien Bodard >> >> >> >> ------------------------------------------------------------ >> >> ------------------ >> >> Check out the vibrant tech community on one of the world's most >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >----------------------------------------------------------- >> ------------------- >> >Check out the vibrant tech community on one of the world's most >> >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >_______________________________________________ >> >Gambas-user mailing list >> >Gambas-user at lists.sourceforge.net >> >https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From bugtracker at ...3416... Mon May 22 15:26:06 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 22 May 2017 13:26:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1100: ODBC driver super buggy 1: rs.count return always negative and only one event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1100&from=L21haW4- Comment #10 by PICCORO LENZ MCKAY: due the result object to make the MoveTo need the count for... as said zxMarce all .MoveXXX methods except .MoveNext SEEMS need a record count from the provider. so there's no way for the DAta event to fill the grid using ODBC and sybase... 1) this kind of information MUST BE in the documentation Benoit 2) the odbc standard does not have that unless a INSERT, UPDATE or DELETE was done Now lest try with the second suggestion .. ODBC does not permit subquerys if a recorset are still open.. all the code will must go to the odbc gambas implementation due by example if i do: select count(codigo) as cuanto from dba.ta_sys_existencias_dinamicas order by cuanto limit 50000 offset 0 and in other result i do select * from dba.ta_sys_existencias_dinamicas order by col1 limit 50000 offset 0 take in consideration the limit indicate only 50000 rows, the odbc does not report the amount , but due strange reasons, the where( rs.available) will iterate over the 50000 rows event the count select only return one row! as i said: a) for close this bug the documentation must be updated with methods to fill a grid from odbc b) the respective non_working events and methods must be update in documentation c) there's only 4 modules for DB access, all have good working excepts odbc? seem quite complicated to explain and its not documented in any place in wiki.. From bugtracker at ...3416... Mon May 22 16:59:09 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 22 May 2017 14:59:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #5 by Beno?t MINISINI: I have updated the documentation of the Result.Count property, to explain that ODBC connections may return the -1 value. From mckaygerhard at ...626... Mon May 22 17:54:50 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 May 2017 11:54:50 -0400 Subject: [Gambas-user] can a result database object be copy to other database (of different type) Message-ID: i mean, due the now well knowed problem of odbc, i have two databases, db1 can be mysql, odbc, etc, and the other target db must be sqlite.. can be possible to port from the db1 to the memory table in sqlite3 db2 ? or at leas ina normal sqlite3 table? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Mon May 22 19:11:57 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 May 2017 13:11:57 -0400 Subject: [Gambas-user] result from select can be movefirts from ODBC? In-Reply-To: References: <20170517163254.GA574@...3600...> <20170517224911.GB574@...3600...> <34b78cfc-f2a2-4926-a52e-2f56daca58c4@...626...> Message-ID: hi zxMarce debuggin i note that based on their documentation, inserts must return affected roms and seems gambas odbc object does not made this.. please illuminate me! i made a odbc inserts and either returns affected roms! some other has same results? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-22 9:21 GMT-04:00 PICCORO McKAY Lenz : > hello Fabian.. hello zxMarce > > Fabian, your method/code does not work as zxMarce said.. (in any case, the > resultset and db manage was done in form code) > > due the result object to make the MoveTo need the count for... as said > zxMarce all .MoveXXX methods except .MoveNext SEEMS need a record count > from the provider. so there's no way for the DAta event to fill the grid > using ODBC and sybase... > > 1) this kind of information MUST BE in the documentation Benoit > 2) the odbc standard does not have that unless a INSERT, UPDATE or DELETE > was done > > Now lest try with the second suggestion .. a patched.. may not work > either, due seems (and here i dont know or i not debug well) ODBC does not > permit subquerys if a recorset are still open.. > > all the code will must go to the odbc gambas implementation due by example > if i do: > > select count(codigo) as cuanto from dba.ta_sys_existencias_dinamicas > order by cuanto limit 50000 offset 0 > > and in other result i do > > select * from dba.ta_sys_existencias_dinamicas order by col1 limit 50000 > offset 0 > > take in consideration the limit indicate only 50000 rows, the odbc does > not report the amount , but due strange reasons, the where( rs.available) > will iterate over the 50000 rows event the count select only return one row! > > so in conclusion.. the only way to fill the grid for now, in gambas using > odbc basic implementation its manually secuencial starting from 0 ending in > a manual count over the previously iteration.. > > seem quite complicated to explain and its not documented in any place in > wiki.. > > i can documented but only in spanish.. i'm tyred of english only! > > NOTE IMPORTAT: i must duplicate all this info in the respective bug due > the buggy integration between gambas list and mail bugtraker > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-21 15:46 GMT-04:00 PICCORO McKAY Lenz : > >> 2017-05-21 12:33 GMT-04:30 : >> >>> All .MoveXXX methods except .MoveNext need a record count from the >>> provider. You know that ODBC does not provide one, but some drivers do, and >>> I also patched the component to try to fetch this count when possible. >>> >>> Now, the driver may NOT be correctly configured in unixODBC, allowing >>> some issues. For example, if I use FreeTDS with a Server_Version of 7.0 and >>> try to connect to a MSSQL2005, the compinent will not be able to fetch rec >>> counts even with the patch I mentioned. But if I just change the >>> Server_Version to 7.2, voil?: I get record counts via the patch. >>> >> umm but seems based on your info, i never will get the requireds for made >> it by that way! for sybae freetds internally always use the 5.0 version >> protocol >> >> >>> This is because FreeTDS will not allow (nor ODBC will emulate) cursors >>> with the first version combination. But it will with the second. Cursors >>> is what enable a result set to skip back and forth. The patch simply >>> remembers where the cursor is (if it exists), then jumps to the last record >>> and fetches its ordinal; then it goes back to where it was originally, and >>> returns the record count. But for all this to work both ODBC and the driver >>> must somehow support cursors, either by design or emulated. >>> >> ok as i said, i never will get the requireds by that way! sybase need the >> 5.0 protocol and any other version server protocol will break the usage >> >> >>> If you use the component test project I attached to one of your bug >>> reports, enable GB.Debug and try your connection string (for these tests >>> it's best to try connstrings so you don't have to edit INIs like crazy >>> just to test), >> >> the ini file its crated dinamically i dont have problem >> >> >>> the console will tell you whether cursors are present or not. >>> >> thanks for the info.. but based in the info of firts paragraph seems that >> by that way will never get the required! >> >> >>> >>> Bear in mind that it is possible to have cursors available but not a >>> proper Gambas RecordCount though. >>> >> really? that 's contrary to the explained in the previous paragraphs!!.. >> but have logic! >> umm but the record count will not be there for the fill of the grid! i >> will debug like u sugested and try it! but seems due freetds server version >> 5.0 protocol i'll not get so much.. sybase only used protocol 5.0 server >> version.. >> >> >> thanks for help zxMarce and Fabian, i'm very impatient monday comes, to >> test in proper environment.. in my eeepc 2G there's no enough space for do >> any of.. >> >> ah?, yeah i writing this main in a very older hardware! with only 2G of >> disk and 512 of ram.. running Chronno Trigger in pxsc using debian squeeze >> >> >>> >>> Hope it helps, >>> zxMarce. >>> >>> >>> On May 21, 2017, 12:41, at 12:41, PICCORO McKAY Lenz < >>> mckaygerhard at ...626...> wrote: >>> >now after some messaged between fabian and me, i continue in the list >>> >the >>> >problemm >>> > >>> >thanks fabian.. do you see that moveto do not permit due the grid does >>> >not >>> >fill in order.. so when the data event are raised the index are not >>> >secuencial so a "foward only" problem happened.... >>> > >>> >and now u count and then send again the select: >>> > >>> > >>> > $Result = db.Exec("select count(*) irows from sys_productos") >>> > $iCount = $Result!irows >>> > >>> >$Result = db.Exec("select * from sys_productos") <- in sybase odbc >>> >seems >>> >this does not work afete a count using select >>> > >>> > >>> >seems there's a problem in odbc, this was i do in firts, but does not >>> >work, >>> >maybe i do in bad way.. >>> > >>> >due right now i not have the odbc environment.. i'll test monday and >>> >post >>> >feedback here.. but seems the odbc module in gambas has a problem in >>> >this >>> >way, due does not permit make that.. or at least does not permit >>> >retrieve >>> >the results after made a select count >>> > >>> > >>> >Lenz McKAY Gerardo (PICCORO) >>> >http://qgqlochekone.blogspot.com >>> > >>> >2017-05-19 2:59 GMT-04:30 Fabien Bodard : >>> > >>> >> 2017-05-18 17:13 GMT+02:00 PICCORO McKAY Lenz >>> >: >>> >> > yes tobias, I already know.- in last years some bugs where >>> >discovered by >>> >> me >>> >> > ... the surprise its that those bugs were inside gambas since some >>> >time >>> >> .. >>> >> > that's probe that the usage of was very few and limited .. (i mean >>> >too >>> >> many >>> >> > mysql ) >>> >> > >>> >> > but now i can not use, the corporation now used odbc for standard >>> >and >>> >> > gundows integration ... so i must use odbc inclusivelly for mysql >>> >!!! >>> >> Arrggg >>> >> > >>> >> > so now i implement your solution, and recors fill the grid .. but >>> >when i >>> >> > separate the database logic from the form .. now the recorset gives >>> >me >>> >> the >>> >> > "only forward" error ... >>> >> > >>> >> > i try to attadhed the project example ... some one can helpme? the >>> >mail >>> >> > list cut the message! i cannot attach project! >>> >> >>> >> send it to me : >>> >> >>> >> gambas.fr at ...626... >>> >> > >>> >> > Lenz McKAY Gerardo (PICCORO) >>> >> > http://qgqlochekone.blogspot.com >>> >> > >>> >> > 2017-05-17 18:49 GMT-04:00 Tobias Boege : >>> >> > >>> >> >> On Thu, 18 May 2017, Cristiano Guadagnino wrote: >>> >> >> > If your complaint is due to the fact that the only native >>> >> implementation >>> >> >> > for Gambas is the Mysql one, you have to understand that Mysql >>> >> (usually >>> >> >> in >>> >> >> > the form of MariaDB) is available on all linux distributions and >>> >it is >>> >> >> > free. >>> >> >> > One other free DBMS available for all linuxes is Postgresql, but >>> >this >>> >> is >>> >> >> > not even nearly as widely used as Mysql. I would not be very >>> >surprised >>> >> >> if, >>> >> >> > in fact, the great majority of Gambas developers were using >>> >Mysql. >>> >> What's >>> >> >> > wrong with that? >>> >> >> > >>> >> >> >>> >> >> (Just a quick interjection: Gambas does have a native PostgreSQL >>> >> driver.) >>> >> >> >>> >> >> -- >>> >> >> "There's an old saying: Don't change anything... ever!" -- Mr. >>> >Monk >>> >> >> >>> >> >> ------------------------------------------------------------ >>> >> >> ------------------ >>> >> >> Check out the vibrant tech community on one of the world's most >>> >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> >> >> _______________________________________________ >>> >> >> Gambas-user mailing list >>> >> >> Gambas-user at lists.sourceforge.net >>> >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >>> >> > ------------------------------------------------------------ >>> >> ------------------ >>> >> > Check out the vibrant tech community on one of the world's most >>> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> >> > _______________________________________________ >>> >> > Gambas-user mailing list >>> >> > Gambas-user at lists.sourceforge.net >>> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >>> >> >>> >> >>> >> -- >>> >> Fabien Bodard >>> >> >>> >> ------------------------------------------------------------ >>> >> ------------------ >>> >> Check out the vibrant tech community on one of the world's most >>> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> >> _______________________________________________ >>> >> Gambas-user mailing list >>> >> Gambas-user at lists.sourceforge.net >>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >>> >----------------------------------------------------------- >>> ------------------- >>> >Check out the vibrant tech community on one of the world's most >>> >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> >_______________________________________________ >>> >Gambas-user mailing list >>> >Gambas-user at lists.sourceforge.net >>> >https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > From taboege at ...626... Mon May 22 19:11:58 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 22 May 2017 19:11:58 +0200 Subject: [Gambas-user] can a result database object be copy to other database (of different type) In-Reply-To: References: Message-ID: <20170522171158.GA572@...3600...> On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > i mean, due the now well knowed problem of odbc, > > i have two databases, db1 can be mysql, odbc, etc, and the other target db > must be sqlite.. > > can be possible to port from the db1 to the memory table in sqlite3 db2 ? > or at leas ina normal sqlite3 table? > This is not a Gambas problem anymore is it? Did you consider the solutions that the obvious web search yields, e.g. [1] ? Regards, Tobi [1] https://stackoverflow.com/questions/3890518/convert-mysql-to-sqlite -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Mon May 22 19:26:36 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 May 2017 13:26:36 -0400 Subject: [Gambas-user] can a result database object be copy to other database (of different type) In-Reply-To: <20170522171158.GA572@...3600...> References: <20170522171158.GA572@...3600...> Message-ID: umm usefully, but the source its odbc.. was my faul... in any case, there's posible to cpy between results object of differents connections? that the right quiestion! the case its important to make a special daemon for webservices.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-22 13:11 GMT-04:00 Tobias Boege : > On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > > i mean, due the now well knowed problem of odbc, > > > > i have two databases, db1 can be mysql, odbc, etc, and the other target > db > > must be sqlite.. > > > > can be possible to port from the db1 to the memory table in sqlite3 db2 ? > > or at leas ina normal sqlite3 table? > > > > This is not a Gambas problem anymore is it? Did you consider the solutions > that the obvious web search yields, e.g. [1] ? > > Regards, > Tobi > > [1] https://stackoverflow.com/questions/3890518/convert-mysql-to-sqlite > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Mon May 22 19:43:38 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 May 2017 13:43:38 -0400 Subject: [Gambas-user] left$ vs String.left behaviour Message-ID: i have a var named query1 = "`SHW325X`," when i do String.Left(querycolsinserts, -1) the las char "," are not removed, so i used Left$(querycolsinserts, -1) and works.. now this due the "`" char inside? so then how can i do when i dont know if the string are utf-8 or not? due the behaviour depends of the utf-8 nature of the string! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Mon May 22 19:48:16 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 22 May 2017 19:48:16 +0200 Subject: [Gambas-user] can a result database object be copy to other database (of different type) In-Reply-To: References: <20170522171158.GA572@...3600...> Message-ID: <20170522174816.GB572@...3600...> On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > umm usefully, but the source its odbc.. was my faul... > > in any case, there's posible to cpy between results object of differents > connections? that the right quiestion! > Ok, after I formulated my answer, I can see how you may want to use Gambas for this task. Assume you have hSrc and hDst two Connections -- hSrc is the source database and hDst is the destination database. The DB types don't matter! I would do the conversion in two stages: 1. Copy the database users (Connection.Users), then the databases (Connection.Databases) and after that the table schemas (Connection.Tables) for each database. I don't think you can expect to transfer anything else like permissions because it is not supported by the gb.db interface (sqlite doesn't even support users). You can use the gb.db objects for this, e.g. to copy the schema of a database table, you get the corresponding Table object and iterate through its Fields member to get all the fields. Luckily the field types are db.String, db.Integer, etc., i.e. *Gambas* constants. You can easily transfer this common representation of the table schema to your destination database. 2. Copy all the records. hSrc.Find(tablename) (or so) gives you all the records in the given table. Recreate all the records in the appropriate destination database table, using hDst.Create(tablename). I'm reasonably sure that there is no less manual way. But beware that you might run into problems of all thinkable kinds, e.g. with auto-increment fields which you may or may not be allowed to set on your own when you create a record, or maybe one database type stores milliseconds together with a date while the other is incapable of that. What do I know? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Mon May 22 20:48:23 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 May 2017 14:48:23 -0400 Subject: [Gambas-user] can a result database object be copy to other database (of different type) In-Reply-To: <20170522174816.GB572@...3600...> References: <20170522171158.GA572@...3600...> <20170522174816.GB572@...3600...> Message-ID: 2017-05-22 13:48 GMT-04:00 Tobias Boege : > 1. Copy the database users (Connection.Users), then the databases > (Connection.Databases) and after that the table schemas > (Connection.Tables) > for each database. I don't think you can expect to transfer anything > else like permissions because it is not supported by the gb.db > interface (sqlite doesn't even support users). > works.. some mistakes in schemas for postgres but no mayor problem in odbc/sybase and mysql, a shema its a complete database > You can use the gb.db objects for this, e.g. to copy the schema of a > database table, you get the corresponding Table object and iterate > through its Fields member to get all the fields. Luckily the field > types are db.String, db.Integer, etc., i.e. *Gambas* constants. You > can easily transfer this common representation of the table schema to > your destination database. > works.. for create thanks > 2. Copy all the records. hSrc.Find(tablename) (or so) gives you all the > records in the given table. Recreate all the records in the > appropriate > destination database table, using hDst.Create(tablename). > problems with odbc.. for mysql vs sqlite works. umm i must debug i think the problem its again in odbc sybase, seems datatypes convertion internals respect gambas representation, theres some strange as nchar and so.. > > I'm reasonably sure that there is no less manual way. But beware that you > might run into problems of all thinkable kinds, e.g. with auto-increment > fields which you may or may not be allowed to set on your own when you > create a record, or maybe one database type stores milliseconds together > with a date while the other is incapable of that. What do I know? > of course any specific database as autoincrement in mysql case are out of this ... > > Regards, > Tobi > thanks for now for the step 2 i must made dinamyc querys of inserts oobjects, later i debug more over the odbc sybase datatypes > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Mon May 22 21:24:09 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 22 May 2017 15:24:09 -0400 Subject: [Gambas-user] table name from db object result Message-ID: in sqlite or odbc how can extrat the table name, due i try to autodetect the field name from a result: For indexcol = 0 To rsObj.Fields.Count - 1 rsObj.Fields[indexcol].Name next but in sqlite case i get string: "tablename.colname" event "colname" so there's some property or method that can showme the table, NOTE: i know that i made the select so the tablename must be.. but there's another way? its for a dataexporter between databases Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From bugtracker at ...3416... Mon May 22 21:26:09 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 22 May 2017 19:26:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1101: ODBC driver super buggy 2: rs.max return always negative and always -2 event in lasted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1101&from=L21haW4- Comment #6 by PICCORO LENZ MCKAY: hello all, based on documentation from ZXMARGE the count must retunr in INSERTS at leaast. .but seems not! so MAX neither! From matti.eber at ...3240... Mon May 22 22:03:27 2017 From: matti.eber at ...3240... (Matti) Date: Mon, 22 May 2017 22:03:27 +0200 Subject: [Gambas-user] Split: misleading Wiki Message-ID: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> If I have a string sStr="hello##12345" and want to split it: Dim aSplit as String[] aSplit = Split(sStr, "##") Print aSplit[0], aSplit[1] Returns always only "hello". Maybe "12345" is excluded because being an integer? Now the Wiki says "StringArray = Split ( String [ , Separators , Escape , IgnoreVoid , KeepEscape ] )" Where "IgnoreVoid" means "a boolean that tells Split() *not* to return void elements." By trial and error I found out that "IgnoreVoid" has to be set to 'True' to return "12345". Exactly the opposite. The Wiki should be corrected here. Matti From taboege at ...626... Mon May 22 22:17:54 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 22 May 2017 22:17:54 +0200 Subject: [Gambas-user] Split: misleading Wiki In-Reply-To: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> References: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> Message-ID: <20170522201754.GC572@...3600...> On Mon, 22 May 2017, Matti wrote: > If I have a string sStr="hello##12345" and want to split it: > > Dim aSplit as String[] > aSplit = Split(sStr, "##") > Print aSplit[0], aSplit[1] > > Returns always only "hello". Maybe "12345" is excluded because being an integer? > It is not an integer in this case. It's a string of characters and Split() doesn't interpret it as an integer. Consequently it has nothing to do with IgnoreVoid in my book. If anything is wrong, it is your use of the separator. According to the documentation (and the implementation!), the Separator argument is a *list* of separator characters, i.e. "##" will not split against the string "##", but it will split against "#" or "#". To give a different example, if you had given the string "abc#123,456" and separators "#," you would have gotten the array ["abc", "123", "456"]. > Now the Wiki says "StringArray = Split ( String [ , Separators , Escape , IgnoreVoid , KeepEscape ] )" > Where "IgnoreVoid" means "a boolean that tells Split() *not* to return void elements." > > By trial and error I found out that "IgnoreVoid" has to be set to 'True' to return "12345". Exactly the opposite. > > The Wiki should be corrected here. > I don't know what's the problem with your installation but on mine I get: $ gbx3 -e 'Split("hello##12345", "##").Join("|")' hello||12345 i.e. it works. Notice the empty string between "hello" and "12345" in the context of what I explained about the separators above! Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From matti.eber at ...3240... Mon May 22 23:00:27 2017 From: matti.eber at ...3240... (Matti) Date: Mon, 22 May 2017 23:00:27 +0200 Subject: [Gambas-user] Split: misleading Wiki In-Reply-To: <20170522201754.GC572@...3600...> References: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> <20170522201754.GC572@...3600...> Message-ID: Ok, thank you, Tobi. I'll have to start thinking again (but not tonight anymore). Matti Am 22.05.2017 um 22:17 schrieb Tobias Boege: > On Mon, 22 May 2017, Matti wrote: >> If I have a string sStr="hello##12345" and want to split it: >> >> Dim aSplit as String[] >> aSplit = Split(sStr, "##") >> Print aSplit[0], aSplit[1] >> >> Returns always only "hello". Maybe "12345" is excluded because being an integer? >> > It is not an integer in this case. It's a string of characters and Split() > doesn't interpret it as an integer. Consequently it has nothing to do with > IgnoreVoid in my book. > > If anything is wrong, it is your use of the separator. According to the > documentation (and the implementation!), the Separator argument is a *list* > of separator characters, i.e. "##" will not split against the string "##", > but it will split against "#" or "#". > > To give a different example, if you had given the string "abc#123,456" and > separators "#," you would have gotten the array ["abc", "123", "456"]. > >> Now the Wiki says "StringArray = Split ( String [ , Separators , Escape , IgnoreVoid , KeepEscape ] )" >> Where "IgnoreVoid" means "a boolean that tells Split() *not* to return void elements." >> >> By trial and error I found out that "IgnoreVoid" has to be set to 'True' to return "12345". Exactly the opposite. >> >> The Wiki should be corrected here. >> > I don't know what's the problem with your installation but on mine I get: > > $ gbx3 -e 'Split("hello##12345", "##").Join("|")' > hello||12345 > > i.e. it works. Notice the empty string between "hello" and "12345" > in the context of what I explained about the separators above! > > Regards, > Tobi > From d4t4full at ...626... Mon May 22 23:33:39 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Mon, 22 May 2017 18:33:39 -0300 Subject: [Gambas-user] Split: misleading Wiki In-Reply-To: References: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> <20170522201754.GC572@...3600...> Message-ID: Matti Your string has 3 substrings when split with SPLIT (STRING, "#"): Index 0: "Hello" Index 1: "" Index 2: "12345" It is documented that separators are single characters, not strings; you can specify a string because any of its individual characters may be used as separator. If you also specify IgnoreVoids as True, split should omit the null string and return only: Index 0: "Hello" Index 1: "12345" HTH, zxMarce. On May 22, 2017, 18:02, at 18:02, Matti wrote: >Ok, thank you, Tobi. >I'll have to start thinking again (but not tonight anymore). >Matti > >Am 22.05.2017 um 22:17 schrieb Tobias Boege: >> On Mon, 22 May 2017, Matti wrote: >>> If I have a string sStr="hello##12345" and want to split it: >>> >>> Dim aSplit as String[] >>> aSplit = Split(sStr, "##") >>> Print aSplit[0], aSplit[1] >>> >>> Returns always only "hello". Maybe "12345" is excluded because being >an integer? >>> >> It is not an integer in this case. It's a string of characters and >Split() >> doesn't interpret it as an integer. Consequently it has nothing to do >with >> IgnoreVoid in my book. >> >> If anything is wrong, it is your use of the separator. According to >the >> documentation (and the implementation!), the Separator argument is a >*list* >> of separator characters, i.e. "##" will not split against the string >"##", >> but it will split against "#" or "#". >> >> To give a different example, if you had given the string >"abc#123,456" and >> separators "#," you would have gotten the array ["abc", "123", >"456"]. >> >>> Now the Wiki says "StringArray = Split ( String [ , Separators , >Escape , IgnoreVoid , KeepEscape ] )" >>> Where "IgnoreVoid" means "a boolean that tells Split() *not* to >return void elements." >>> >>> By trial and error I found out that "IgnoreVoid" has to be set to >'True' to return "12345". Exactly the opposite. >>> >>> The Wiki should be corrected here. >>> >> I don't know what's the problem with your installation but on mine I >get: >> >> $ gbx3 -e 'Split("hello##12345", "##").Join("|")' >> hello||12345 >> >> i.e. it works. Notice the empty string between "hello" and "12345" >> in the context of what I explained about the separators above! >> >> Regards, >> Tobi >> > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Tue May 23 04:57:13 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 23 May 2017 02:57:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1096: MDI toolbuttons with long text In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1096&from=L21haW4- Bruce BRUEN changed the state of the bug to: Invalid. From mckaygerhard at ...626... Tue May 23 07:18:33 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 00:48:33 -0430 Subject: [Gambas-user] can a result database object be copy to other database (of different type) In-Reply-To: <20170522171158.GA572@...3600...> References: <20170522171158.GA572@...3600...> Message-ID: hi again tobias.. only a informative mail: the tools that refers your first links all does not usefully, due with huge data no one its working!.. all the solutions are script based over a mysql dump so all are a disc I/O operation when are using... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-22 12:41 GMT-04:30 Tobias Boege : > On Mon, 22 May 2017, PICCORO McKAY Lenz wrote: > > i mean, due the now well knowed problem of odbc, > > > > i have two databases, db1 can be mysql, odbc, etc, and the other target > db > > must be sqlite.. > > > > can be possible to port from the db1 to the memory table in sqlite3 db2 ? > > or at leas ina normal sqlite3 table? > > > > This is not a Gambas problem anymore is it? Did you consider the solutions > that the obvious web search yields, e.g. [1] ? > > Regards, > Tobi > > [1] https://stackoverflow.com/questions/3890518/convert-mysql-to-sqlite > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Tue May 23 08:38:22 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Tue, 23 May 2017 08:38:22 +0200 Subject: [Gambas-user] Split: misleading Wiki In-Reply-To: References: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> <20170522201754.GC572@...3600...> Message-ID: A=Split (replace ("gggg##yyy##1234","##",chr (27)),chr (27)) Or do not use double characters as separator . Le 22 mai 2017 23:35, a ?crit : > Matti > > Your string has 3 substrings when split with SPLIT (STRING, "#"): > > Index 0: "Hello" > Index 1: "" > Index 2: "12345" > > It is documented that separators are single characters, not strings; you > can specify a string because any of its individual characters may be used > as separator. > > If you also specify IgnoreVoids as True, split should omit the null string > and return only: > > Index 0: "Hello" > Index 1: "12345" > > HTH, > zxMarce. > > On May 22, 2017, 18:02, at 18:02, Matti wrote: > >Ok, thank you, Tobi. > >I'll have to start thinking again (but not tonight anymore). > >Matti > > > >Am 22.05.2017 um 22:17 schrieb Tobias Boege: > >> On Mon, 22 May 2017, Matti wrote: > >>> If I have a string sStr="hello##12345" and want to split it: > >>> > >>> Dim aSplit as String[] > >>> aSplit = Split(sStr, "##") > >>> Print aSplit[0], aSplit[1] > >>> > >>> Returns always only "hello". Maybe "12345" is excluded because being > >an integer? > >>> > >> It is not an integer in this case. It's a string of characters and > >Split() > >> doesn't interpret it as an integer. Consequently it has nothing to do > >with > >> IgnoreVoid in my book. > >> > >> If anything is wrong, it is your use of the separator. According to > >the > >> documentation (and the implementation!), the Separator argument is a > >*list* > >> of separator characters, i.e. "##" will not split against the string > >"##", > >> but it will split against "#" or "#". > >> > >> To give a different example, if you had given the string > >"abc#123,456" and > >> separators "#," you would have gotten the array ["abc", "123", > >"456"]. > >> > >>> Now the Wiki says "StringArray = Split ( String [ , Separators , > >Escape , IgnoreVoid , KeepEscape ] )" > >>> Where "IgnoreVoid" means "a boolean that tells Split() *not* to > >return void elements." > >>> > >>> By trial and error I found out that "IgnoreVoid" has to be set to > >'True' to return "12345". Exactly the opposite. > >>> > >>> The Wiki should be corrected here. > >>> > >> I don't know what's the problem with your installation but on mine I > >get: > >> > >> $ gbx3 -e 'Split("hello##12345", "##").Join("|")' > >> hello||12345 > >> > >> i.e. it works. Notice the empty string between "hello" and "12345" > >> in the context of what I explained about the separators above! > >> > >> Regards, > >> Tobi > >> > > > >----------------------------------------------------------- > ------------------- > >Check out the vibrant tech community on one of the world's most > >engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >_______________________________________________ > >Gambas-user mailing list > >Gambas-user at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Tue May 23 10:11:38 2017 From: bagonergi at ...626... (Gianluigi) Date: Tue, 23 May 2017 10:11:38 +0200 Subject: [Gambas-user] Split: misleading Wiki In-Reply-To: References: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> <20170522201754.GC572@...3600...> Message-ID: A variant of the previous suggestions, to ignored (5) voids :-) Public Sub Main() Dim ss As String[] Dim s As String ss = Split("hello#####12345", "#") For Each s In ss If Not IsNull(s) Then Print s; Next End Regards Gianluigi 2017-05-23 8:38 GMT+02:00 Fabien Bodard : > A=Split (replace ("gggg##yyy##1234","##",chr (27)),chr (27)) > > Or do not use double characters as separator . > > > > > Le 22 mai 2017 23:35, a ?crit : > > > Matti > > > > Your string has 3 substrings when split with SPLIT (STRING, "#"): > > > > Index 0: "Hello" > > Index 1: "" > > Index 2: "12345" > > > > It is documented that separators are single characters, not strings; you > > can specify a string because any of its individual characters may be used > > as separator. > > > > If you also specify IgnoreVoids as True, split should omit the null > string > > and return only: > > > > Index 0: "Hello" > > Index 1: "12345" > > > > HTH, > > zxMarce. > > > > On May 22, 2017, 18:02, at 18:02, Matti wrote: > > >Ok, thank you, Tobi. > > >I'll have to start thinking again (but not tonight anymore). > > >Matti > > > > > >Am 22.05.2017 um 22:17 schrieb Tobias Boege: > > >> On Mon, 22 May 2017, Matti wrote: > > >>> If I have a string sStr="hello##12345" and want to split it: > > >>> > > >>> Dim aSplit as String[] > > >>> aSplit = Split(sStr, "##") > > >>> Print aSplit[0], aSplit[1] > > >>> > > >>> Returns always only "hello". Maybe "12345" is excluded because being > > >an integer? > > >>> > > >> It is not an integer in this case. It's a string of characters and > > >Split() > > >> doesn't interpret it as an integer. Consequently it has nothing to do > > >with > > >> IgnoreVoid in my book. > > >> > > >> If anything is wrong, it is your use of the separator. According to > > >the > > >> documentation (and the implementation!), the Separator argument is a > > >*list* > > >> of separator characters, i.e. "##" will not split against the string > > >"##", > > >> but it will split against "#" or "#". > > >> > > >> To give a different example, if you had given the string > > >"abc#123,456" and > > >> separators "#," you would have gotten the array ["abc", "123", > > >"456"]. > > >> > > >>> Now the Wiki says "StringArray = Split ( String [ , Separators , > > >Escape , IgnoreVoid , KeepEscape ] )" > > >>> Where "IgnoreVoid" means "a boolean that tells Split() *not* to > > >return void elements." > > >>> > > >>> By trial and error I found out that "IgnoreVoid" has to be set to > > >'True' to return "12345". Exactly the opposite. > > >>> > > >>> The Wiki should be corrected here. > > >>> > > >> I don't know what's the problem with your installation but on mine I > > >get: > > >> > > >> $ gbx3 -e 'Split("hello##12345", "##").Join("|")' > > >> hello||12345 > > >> > > >> i.e. it works. Notice the empty string between "hello" and "12345" > > >> in the context of what I explained about the separators above! > > >> > > >> Regards, > > >> Tobi > > >> > > > > > >----------------------------------------------------------- > > ------------------- > > >Check out the vibrant tech community on one of the world's most > > >engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >_______________________________________________ > > >Gambas-user mailing list > > >Gambas-user at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/gambas-user > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Tue May 23 13:07:41 2017 From: charlie at ...2793... (Charlie) Date: Tue, 23 May 2017 04:07:41 -0700 (MST) Subject: [Gambas-user] left$ vs String.left behaviour In-Reply-To: References: Message-ID: <1495537661344-59083.post@...3046...> I'm not sure where 'querycolsinserts' comes in to this but the code below works fine: - *Public Sub Form_Open() Dim query1 As String = "`SHW325X`," Dim siCount As Short For siCount = Len(query1) DownTo 1 Print String.Left(query1, siCount) Next Print String.Left(query1, -1) Print Left$(query1, -1) Print Left(query1, -1) End* The output is: - `SHW325X`, `SHW325X` `SHW325X `SHW325 `SHW32 `SHW3 `SHW `SH `S ` `SHW325X` `SHW325X` `SHW325X` ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/left-vs-String-left-behaviour-tp59070p59083.html Sent from the gambas-user mailing list archive at Nabble.com. From hans at ...3219... Tue May 23 13:55:19 2017 From: hans at ...3219... (Hans Lehmann) Date: Tue, 23 May 2017 13:55:19 +0200 Subject: [Gambas-user] XMLRPC-Server Message-ID: Hello, I'm currently experimenting with the gb.xml.rpc component. An XMLRPC client works well (see archive attached). Now I would like to offer on the installed Web server Lighttpd (under Mint 17.1) a webservice (XMLRPC server) and via the XMLRPC client call. The following source code for the XMLRPC server provides an error in line ***. Can someone help me? Hans ' Gambas module file Public hXMLRPC As RpcServer Public Sub Main() Dim hXMLRPCFunction As RpcFunction Dim iXMLRPCPort, iXMLRPCServerMaxConnections As Integer hXMLRPC = New RpcServer As "hXMLRPC" iXMLRPCPort = 9009 iXMLRPCServerMaxConnections = 1 hXMLRPCFunction = New RpcFunction("add2integer", [XmlRpc.xInteger, XmlRpc.xInteger], XmlRpc.xInteger) ' hXMLRPCFunction.Help = ("Addition of 2 integers") hXMLRPC.Register(hXMLRPCFunction) Try hXMLRPC.Listen(iXMLRPCPort, iXMLRPCServerMaxConnections) ' *** If Error Then Print "Error-Text: " & Error.Text & gb.NewLine & "Error-Location: " & Error.Where hXMLRPC.Stop() Endif If hXMLRPC.Listening Then Print "The XMLRPC server listens for port " & Str(iXMLRPCPort) Endif End Public Sub hXMLRPC_RemoteCall(sMethod As String, aParameters As Variant[]) Select Case sMethod Case "add2integer" Sum(aParameters) End Select End Public Sub Sum(aParameters As Variant[]) hXMLRPC.SetReply(aParameters[0] + aParameters[1]) hXMLRPC.Stop() End -------------- next part -------------- A non-text attachment was scrubbed... Name: XMLRPCC-0.0.9.tar.gz Type: application/gzip Size: 13153 bytes Desc: not available URL: From mckaygerhard at ...626... Tue May 23 14:51:37 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 08:51:37 -0400 Subject: [Gambas-user] gambas on MAC? status and future? Message-ID: there's any way to run, there's any port event older? available gambas on MAC? what its the status? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Tue May 23 14:52:25 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 08:52:25 -0400 Subject: [Gambas-user] gambas on androit? status and future!?! Message-ID: there's any way to run on androit, there's any port event older? available gambas on ANDROIT? what its the status? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Tue May 23 16:07:00 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 10:07:00 -0400 Subject: [Gambas-user] left$ vs String.left behaviour In-Reply-To: <1495537661344-59083.post@...3046...> References: <1495537661344-59083.post@...3046...> Message-ID: 2017-05-23 7:07 GMT-04:00 Charlie : > I'm not sure where 'querycolsinserts' comes in to this but the code below > sorry was my fault, i mean "query1" > works fine: - > > Print Left$(query1, -1) > Print Left(query1, -1) > The output is: - > `SHW325X` > `SHW325X` > `SHW325X` > quite strange, in my system only the Left$ removed .. the other does not work.. thanks for your example! > > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/left-vs-String-left-behaviour-tp59070p59083.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gbwilly at ...3606... Tue May 23 16:56:36 2017 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Tue, 23 May 2017 16:56:36 +0200 Subject: [Gambas-user] Tabstrip question Message-ID: <35715abf9fa64aabc5418545cc2f898e@...3606...> Hi all, Is it possible to disable a tab in a Tabstrip? Can't find a thing in documentation, or maybe I have missed it. Thanks, gbWilly From matti.eber at ...3240... Tue May 23 17:26:28 2017 From: matti.eber at ...3240... (Matti) Date: Tue, 23 May 2017 17:26:28 +0200 Subject: [Gambas-user] Split: misleading Wiki In-Reply-To: References: <03eb8ab7-d1bc-282e-defc-109424a79549@...3240...> <20170522201754.GC572@...3600...> Message-ID: <90c235a2-0e48-41a6-096f-5194258747a4@...3240...> Very good explanation, thank you. Am 22.05.2017 um 23:33 schrieb d4t4full at ...626...: > Matti > > Your string has 3 substrings when split with SPLIT (STRING, "#"): > > Index 0: "Hello" > Index 1: "" > Index 2: "12345" > > It is documented that separators are single characters, not strings; you can specify a string because any of its individual characters may be used as separator. > > If you also specify IgnoreVoids as True, split should omit the null string and return only: > > Index 0: "Hello" > Index 1: "12345" > > HTH, > zxMarce. > > On May 22, 2017, 18:02, at 18:02, Matti wrote: >> Ok, thank you, Tobi. >> I'll have to start thinking again (but not tonight anymore). >> Matti >> >> Am 22.05.2017 um 22:17 schrieb Tobias Boege: >>> On Mon, 22 May 2017, Matti wrote: >>>> If I have a string sStr="hello##12345" and want to split it: >>>> >>>> Dim aSplit as String[] >>>> aSplit = Split(sStr, "##") >>>> Print aSplit[0], aSplit[1] >>>> >>>> Returns always only "hello". Maybe "12345" is excluded because being >> an integer? >>> It is not an integer in this case. It's a string of characters and >> Split() >>> doesn't interpret it as an integer. Consequently it has nothing to do >> with >>> IgnoreVoid in my book. >>> >>> If anything is wrong, it is your use of the separator. According to >> the >>> documentation (and the implementation!), the Separator argument is a >> *list* >>> of separator characters, i.e. "##" will not split against the string >> "##", >>> but it will split against "#" or "#". >>> >>> To give a different example, if you had given the string >> "abc#123,456" and >>> separators "#," you would have gotten the array ["abc", "123", >> "456"]. >>>> Now the Wiki says "StringArray = Split ( String [ , Separators , >> Escape , IgnoreVoid , KeepEscape ] )" >>>> Where "IgnoreVoid" means "a boolean that tells Split() *not* to >> return void elements." >>>> By trial and error I found out that "IgnoreVoid" has to be set to >> 'True' to return "12345". Exactly the opposite. >>>> The Wiki should be corrected here. >>>> >>> I don't know what's the problem with your installation but on mine I >> get: >>> $ gbx3 -e 'Split("hello##12345", "##").Join("|")' >>> hello||12345 >>> >>> i.e. it works. Notice the empty string between "hello" and "12345" >>> in the context of what I explained about the separators above! >>> >>> Regards, >>> Tobi >>> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fernandojosecabral at ...626... Tue May 23 17:39:21 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 23 May 2017 12:39:21 -0300 Subject: [Gambas-user] What is the maximum text we can put on a TextArea? Message-ID: How much text can we display on TextArea? Even after performing serval tests I couldn' t find out. It seems sometimes I can display 7000 characters, sometimes twice as much. Perhaps someone can point me the proper documentation. Thanks - fernando -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From charlie at ...2793... Tue May 23 17:50:46 2017 From: charlie at ...2793... (Charlie) Date: Tue, 23 May 2017 08:50:46 -0700 (MST) Subject: [Gambas-user] Tabstrip question In-Reply-To: <35715abf9fa64aabc5418545cc2f898e@...3606...> References: <35715abf9fa64aabc5418545cc2f898e@...3606...> Message-ID: <1495554646121-59091.post@...3046...> Hi Willy, I have done a little testing and you can't disable the 'Tab' but you can disable the controls on that tab. Using this I was unable to click on a Button on 'Tab1' *TabPanel1[1].Enabled = False * This will hide the tab from view *TabPanel1[1].Visible = False* ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Tabstrip-question-tp59088p59091.html Sent from the gambas-user mailing list archive at Nabble.com. From gbwilly at ...3606... Tue May 23 18:02:26 2017 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Tue, 23 May 2017 18:02:26 +0200 Subject: [Gambas-user] Tabstrip question In-Reply-To: <1495554646121-59091.post@...3046...> References: <35715abf9fa64aabc5418545cc2f898e@...3606...> <1495554646121-59091.post@...3046...> Message-ID: <618c5221f697bf3261f796423a9d06e5@...3606...> On 2017-05-23 17:50, Charlie wrote: > Hi Willy, > I have done a little testing and you can't disable the 'Tab' but you > can > disable the controls on that tab. > Using this I was unable to click on a Button on 'Tab1' > *TabPanel1[1].Enabled > = False * > This will hide the tab from view *TabPanel1[1].Visible = False* > > Hi Charlie and thanks, Meanwhile I also found the TabStrip[Index].Enabled = False solution. Forgot about the array accessors :) Maybe I will use the TabStrip[Index].Visible solution if that turns out more elegant ;) Thnaks again, gbWilly From mckaygerhard at ...626... Tue May 23 18:40:50 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 12:40:50 -0400 Subject: [Gambas-user] Tabstrip question In-Reply-To: <618c5221f697bf3261f796423a9d06e5@...3606...> References: <35715abf9fa64aabc5418545cc2f898e@...3606...> <1495554646121-59091.post@...3046...> <618c5221f697bf3261f796423a9d06e5@...3606...> Message-ID: 2017-05-23 12:02 GMT-04:00 : > Forgot about the array accessors :) > if u are taking about VB the "group" are equivalent Maybe I will use the TabStrip[Index].Visible solution if that turns out > more elegant ;) > > Thnaks again, > > gbWilly > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Tue May 23 18:43:36 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 12:43:36 -0400 Subject: [Gambas-user] table name from db object result In-Reply-To: References: Message-ID: i found that: namcol = Split(rsObj.Fields[indexcol].Name, ".") gridproductos.Columns[indexcol].Title = namcol[1] Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-22 15:24 GMT-04:00 PICCORO McKAY Lenz : > in sqlite or odbc how can extrat the table name, due i try to autodetect > the field name from a result: > > For indexcol = 0 To rsObj.Fields.Count - 1 > rsObj.Fields[indexcol].Name > next > > but in sqlite case i get string: "tablename.colname" event "colname" > > so there's some property or method that can showme the table, > > NOTE: i know that i made the select so the tablename must be.. but there's > another way? its for a dataexporter between databases > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From mckaygerhard at ...626... Tue May 23 18:55:49 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 12:55:49 -0400 Subject: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status? Message-ID: the odbc gambas connection supports DSN-less mode? i mean, all the settings into the gambas code, no need of ini files i remenber that this are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called "Connection Strings". i can update the documentation but i wish to know if are available in gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the missing image cache i can sustituye and upload newer or made a text only Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Tue May 23 18:58:43 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 23 May 2017 18:58:43 +0200 Subject: [Gambas-user] What is the maximum text we can put on a TextArea? In-Reply-To: References: Message-ID: <20170523165843.GA575@...3600...> On Tue, 23 May 2017, Fernando Cabral wrote: > How much text can we display on TextArea? > Even after performing serval tests I couldn' t find out. > It seems sometimes I can display 7000 characters, > sometimes twice as much. > > Perhaps someone can point me the proper documentation. > Whatever the answer is, it is not to be found in the Gambas documentation. Gambas borrows its primitive graphical controls from toolkits, Gtk and QT, in (meanwhile) multiple versions. Their documentation is where you should start looking. (I would *assume* that the answer is: as much as memory permits.) I don't know where your problems with text input controls come from but I just generated a 10^6 characters long string and inserted it into a TextArea without any problems. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Tue May 23 19:01:44 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 13:01:44 -0400 Subject: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status? In-Reply-To: References: Message-ID: well in my svn version of 3.9 are working.. but i dont know if are available in 3.9.0 officially also noted that code must configure only host and type, if any other are configured connection will fail Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz : > the odbc gambas connection supports DSN-less mode? i mean, all the > settings into the gambas code, no need of ini files > > i remenber that this are, since Gambas 3.8.1, IIRC, gb.db.odbc was made > to support the so-called "Connection Strings". > > i can update the documentation but i wish to know if are available in > gambas 3.9.0 at leas > > http://gambaswiki.org/wiki/doc/odbc > > for the missing image cache i can sustituye and upload newer or made a > text only > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From d4t4full at ...626... Tue May 23 19:56:27 2017 From: d4t4full at ...626... (ML) Date: Tue, 23 May 2017 14:56:27 -0300 Subject: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status? In-Reply-To: References: Message-ID: <1d88cceb-4b64-ff7e-0d11-07cabe7b3cbd@...626...> Piccoro, Using ODBC via ConnectionString needs only the Connection.Type (so that gambas knows it should use the ODBC component) and Connection.Host (for the connection data) properties correctly set. The component will, first and foremost, scan the .Host property looking for semicolons (";"). If it finds at least one, it will assume the property holds a ConnStr. If there are no semicolons, it will connect as it always did, with a DSN. Otherwise, it will use the ConnStr in .Host to call ODBC's SQLDriverConnect() function. But when the component calls that ODBC function, no other (gambas) component properties are used, and thus are ignored. It is assumed that all necessary data to connect is present in the ConnStr. If the component fails to connect when other (gambas) component properties are set, it could be something I did no foresee. Please elaborate and I'll try to see if I can fix it. zxMarce On 23/05/17 14:01, PICCORO McKAY Lenz wrote: > well in my svn version of 3.9 are working.. but i dont know if are available in 3.9.0 officially > also noted that code must configure only host and type, if any other are configured connection will fail > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz : >> the odbc gambas connection supports DSN-less mode? i mean, all the settings into the gambas code, no need of ini files i remenber that this are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called "Connection Strings". >> i can update the documentation but i wish to know if are available in gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the missing image cache i can sustituye and upload newer or made a text only >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Tue May 23 19:59:09 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 13:59:09 -0400 Subject: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status? In-Reply-To: <1d88cceb-4b64-ff7e-0d11-07cabe7b3cbd@...626...> References: <1d88cceb-4b64-ff7e-0d11-07cabe7b3cbd@...626...> Message-ID: hi Ml/zxMarce this feature are available officially in the normal 3.9.X release and up? i use the svn and i dont know if ! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-23 13:56 GMT-04:00 ML : > Piccoro, > > Using ODBC via ConnectionString needs only the Connection.Type (so that > gambas knows it should use the ODBC component) and Connection.Host (for > the connection data) properties correctly set. > > The component will, first and foremost, scan the .Host property looking > for semicolons (";"). If it finds at least one, it will assume the > property holds a ConnStr. > If there are no semicolons, it will connect as it always did, with a > DSN. Otherwise, it will use the ConnStr in .Host to call ODBC's > SQLDriverConnect() function. > But when the component calls that ODBC function, no other (gambas) > component properties are used, and thus are ignored. It is assumed that > all necessary data to connect is present in the ConnStr. > > If the component fails to connect when other (gambas) component > properties are set, it could be something I did no foresee. Please > elaborate and I'll try to see if I can fix it. > > zxMarce > > On 23/05/17 14:01, PICCORO McKAY Lenz wrote: > > well in my svn version of 3.9 are working.. but i dont know if are > available in 3.9.0 officially > > also noted that code must configure only host and type, if any other are > configured connection will fail > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz : > >> the odbc gambas connection supports DSN-less mode? i mean, all the > settings into the gambas code, no need of ini files i remenber that this > are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called > "Connection Strings". > >> i can update the documentation but i wish to know if are available in > gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the missing > image cache i can sustituye and upload newer or made a text only > >> Lenz McKAY Gerardo (PICCORO) > >> http://qgqlochekone.blogspot.com > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From d4t4full at ...626... Tue May 23 20:04:37 2017 From: d4t4full at ...626... (ML) Date: Tue, 23 May 2017 15:04:37 -0300 Subject: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status? In-Reply-To: References: <1d88cceb-4b64-ff7e-0d11-07cabe7b3cbd@...626...> Message-ID: <309407aa-1784-37a5-b072-a56ba6643099@...626...> It should; as far as I know nobody sent any further patches to the ODBC component other than me... On 23/05/17 14:59, PICCORO McKAY Lenz wrote: > hi Ml/zxMarce this feature are available officially in the normal 3.9.X > release and up? i use the svn and i dont know if ! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-23 13:56 GMT-04:00 ML : > >> Piccoro, >> >> Using ODBC via ConnectionString needs only the Connection.Type (so that >> gambas knows it should use the ODBC component) and Connection.Host (for >> the connection data) properties correctly set. >> >> The component will, first and foremost, scan the .Host property looking >> for semicolons (";"). If it finds at least one, it will assume the >> property holds a ConnStr. >> If there are no semicolons, it will connect as it always did, with a >> DSN. Otherwise, it will use the ConnStr in .Host to call ODBC's >> SQLDriverConnect() function. >> But when the component calls that ODBC function, no other (gambas) >> component properties are used, and thus are ignored. It is assumed that >> all necessary data to connect is present in the ConnStr. >> >> If the component fails to connect when other (gambas) component >> properties are set, it could be something I did no foresee. Please >> elaborate and I'll try to see if I can fix it. >> >> zxMarce >> >> On 23/05/17 14:01, PICCORO McKAY Lenz wrote: >>> well in my svn version of 3.9 are working.. but i dont know if are >> available in 3.9.0 officially >>> also noted that code must configure only host and type, if any other are >> configured connection will fail >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz : >>>> the odbc gambas connection supports DSN-less mode? i mean, all the >> settings into the gambas code, no need of ini files i remenber that this >> are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the so-called >> "Connection Strings". >>>> i can update the documentation but i wish to know if are available in >> gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the missing >> image cache i can sustituye and upload newer or made a text only >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mckaygerhard at ...626... Tue May 23 20:13:20 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 14:13:20 -0400 Subject: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status? In-Reply-To: <309407aa-1784-37a5-b072-a56ba6643099@...626...> References: <1d88cceb-4b64-ff7e-0d11-07cabe7b3cbd@...626...> <309407aa-1784-37a5-b072-a56ba6643099@...626...> Message-ID: ok thanks.. great work.. please i'll watch over the p?ssibility to workaround over the count and max misc! 2017-05-23 14:04 GMT-04:00 ML : > >> If the component fails to connect when other (gambas) component > >> properties are set, it could be something I did no foresee. Please > >> elaborate and I'll try to see if I can fix it. > it fails, i'll send a gambas bug report later.. i just test it and works like a charm.. by example: $conexionodbc = New Connection $conexionodbc.Type = "odbc" $conexionodbc.Host = "Driver=FreeTDS;TDS_Version=5.0;Server=10.10.200.10;Port=2638;UId=dba;Pwd=sql;Database=sybase" $conexionodbc.Pass = "sql" ' this are right passwd but its property configure later Try $conexionodbc.Open ' then here will fail due the set pass property later that piece of code will fail due the pass property set after the string connection unless that every works perfect! and i writing some docs in gambaswiki, plea take a view later for spell chek.. (u know what i taking about ...) > >> > >> zxMarce > >> > >> On 23/05/17 14:01, PICCORO McKAY Lenz wrote: > >>> well in my svn version of 3.9 are working.. but i dont know if are > >> available in 3.9.0 officially > >>> also noted that code must configure only host and type, if any other > are > >> configured connection will fail > >>> Lenz McKAY Gerardo (PICCORO) > >>> http://qgqlochekone.blogspot.com > >>> > >>> 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz >: > >>>> the odbc gambas connection supports DSN-less mode? i mean, all the > >> settings into the gambas code, no need of ini files i remenber that this > >> are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the > so-called > >> "Connection Strings". > >>>> i can update the documentation but i wish to know if are available in > >> gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the > missing > >> image cache i can sustituye and upload newer or made a text only > >>>> Lenz McKAY Gerardo (PICCORO) > >>>> http://qgqlochekone.blogspot.com > >> > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fernandojosecabral at ...626... Tue May 23 20:18:00 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 23 May 2017 15:18:00 -0300 Subject: [Gambas-user] What is the maximum text we can put on a TextArea? In-Reply-To: <20170523165843.GA575@...3600...> References: <20170523165843.GA575@...3600...> Message-ID: Tobi wrote: >I don't know where your problems with text input controls come from but I >just generated a 10^6 characters long string and inserted it into a TextArea >without any problems. That's impressive. And much longer than I need. Perhaps I should try a different explanation for the failure. Which makes sense, since different strings have given different limits on the test I've performed. Thank you. - fernando 2017-05-23 13:58 GMT-03:00 Tobias Boege : > On Tue, 23 May 2017, Fernando Cabral wrote: > > How much text can we display on TextArea? > > Even after performing serval tests I couldn' t find out. > > It seems sometimes I can display 7000 characters, > > sometimes twice as much. > > > > Perhaps someone can point me the proper documentation. > > > > Whatever the answer is, it is not to be found in the Gambas documentation. > Gambas borrows its primitive graphical controls from toolkits, Gtk and QT, > in (meanwhile) multiple versions. Their documentation is where you should > start looking. (I would *assume* that the answer is: as much as memory > permits.) > > I don't know where your problems with text input controls come from but I > just generated a 10^6 characters long string and inserted it into a > TextArea > without any problems. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From t.lee.davidson at ...626... Tue May 23 20:59:31 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 23 May 2017 14:59:31 -0400 Subject: [Gambas-user] XMLRPC-Server In-Reply-To: References: Message-ID: Hello Hans, RpcServer.Listen relies on ServerSocket which is part of the gb.net component. The documentation does not specify that gb.net is required for gb.xml.rpc, but it apparently is. On 05/23/2017 07:55 AM, Hans Lehmann wrote: > Hello, > > I'm currently experimenting with the gb.xml.rpc component. An XMLRPC client works well (see archive attached). Now I would like > to offer on the installed Web server Lighttpd (under Mint 17.1) a webservice (XMLRPC server) and via the XMLRPC client call. The > following source code for the XMLRPC server provides an error in line ***. Can someone help me? > > Hans > > ' Gambas module file > > Public hXMLRPC As RpcServer > > Public Sub Main() > > Dim hXMLRPCFunction As RpcFunction > Dim iXMLRPCPort, iXMLRPCServerMaxConnections As Integer > > hXMLRPC = New RpcServer As "hXMLRPC" > iXMLRPCPort = 9009 > iXMLRPCServerMaxConnections = 1 > > hXMLRPCFunction = New RpcFunction("add2integer", [XmlRpc.xInteger, XmlRpc.xInteger], XmlRpc.xInteger) > ' hXMLRPCFunction.Help = ("Addition of 2 integers") > hXMLRPC.Register(hXMLRPCFunction) > > Try hXMLRPC.Listen(iXMLRPCPort, iXMLRPCServerMaxConnections) ' *** > If Error Then > Print "Error-Text: " & Error.Text & gb.NewLine & "Error-Location: " & Error.Where > hXMLRPC.Stop() > Endif > If hXMLRPC.Listening Then > Print "The XMLRPC server listens for port " & Str(iXMLRPCPort) > Endif > > End > > Public Sub hXMLRPC_RemoteCall(sMethod As String, aParameters As Variant[]) > Select Case sMethod > Case "add2integer" > Sum(aParameters) > End Select > End > > Public Sub Sum(aParameters As Variant[]) > hXMLRPC.SetReply(aParameters[0] + aParameters[1]) hXMLRPC.Stop() > > End > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Lee __________ "Artificial Intelligence is no match for natural stupidity." From bugtracker at ...3416... Tue May 23 23:50:57 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 23 May 2017 21:50:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1104&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- ODBC driver misc 1: if name, login or pass are specified connection does not open Type : Bug Priority : Low Gambas version : 3.9 Product : ODBC driver Description ----------- in the following piece of code a DSN string connection are used, but apart only the type and host a user and pass was already defined, ...so if more properties thant the host and type are defined, the connection fails to happen: Public Function getConexionodbc() $conexionodbc = New Connection $conexionodbc.Type = "odbc" 'esto siempre va en minusculas: always must be lowercase $conexionodbc.Host = "Driver=FreeTDS;TDS_Version=5.0;Server=10.10.200.10;Port=2638;UId=dba;Pwd=sql;Database=sybasedemo" $conexionodbc.Login = "dba" $conexionodbc.Password = "sql" ' sybase defaults Try $conexionodbc.Open If Error Then $conexionodbc = Null Endif End System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=3.2.0-0.bpo.4-686-pae Architecture=x86 Distribution=debian 6.1 Desktop= Theme=VenenuX Language=es_VE.UTF-8 Memory=1695M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+2=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 QT4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-SDLMZFhfxe,guid=e84bee4349323ab2fdd0e833000d3724 DESKTOP_SESSION=openbox DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=openbox GDM_LANG=es_VE.UTF-8 GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/tmp/keyring-F6Av2Z GNOME_KEYRING_PID=28945 HOME= LANG=es_VE.UTF-8 LOGNAME= PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/.rvm/bin PWD= SHELL=/bin/bash SSH_AGENT_PID=28992 SSH_AUTH_SOCK=/tmp/ssh-MIgmw28954/agent.28954 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7:8:8:8:8 XAUTHORITY=/.Xauthority XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/ XDG_SESSION_COOKIE=b7d14e28769c4139a06b6f990000000c-1493388004.744958-1810097376 From bugtracker at ...3416... Tue May 23 23:54:19 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 23 May 2017 21:54:19 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1104&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: odbc documentation was update by me and splited for better: * notes in connection class host property: http://gambaswiki.org/wiki/comp/gb.db/_connection/host From mckaygerhard at ...626... Tue May 23 23:56:13 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 23 May 2017 17:56:13 -0400 Subject: [Gambas-user] odbc dsn-less support or "connection strings" and documentation status? In-Reply-To: References: <1d88cceb-4b64-ff7e-0d11-07cabe7b3cbd@...626...> <309407aa-1784-37a5-b072-a56ba6643099@...626...> Message-ID: i update the odbc documentation: odbc documentation was update by me and splited for better: * Overall odbc related: http://gambaswiki.org/wiki/doc/odbc * ODBC specific like the Mysql howto (WIP): http://gambaswiki.org/wiki/howto/odbcdatabase * notes in connection class doc: http://gambaswiki.org/wiki/comp/gb.db/connection * notes in connection class host property: http://gambaswiki.org/wiki/comp/gb.db/_connection/host and send the bug of string connection but with lower priority Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-23 14:13 GMT-04:00 PICCORO McKAY Lenz : > ok thanks.. great work.. please i'll watch over the p?ssibility to > workaround over the count and max misc! > > 2017-05-23 14:04 GMT-04:00 ML : > >> >> If the component fails to connect when other (gambas) component >> >> properties are set, it could be something I did no foresee. Please >> >> elaborate and I'll try to see if I can fix it. >> > it fails, i'll send a gambas bug report later.. i just test it and works > like a charm.. > > by example: > > $conexionodbc = New Connection > $conexionodbc.Type = "odbc" > $conexionodbc.Host = "Driver=FreeTDS;TDS_Version=5. > 0;Server=10.10.200.10;Port=2638;UId=dba;Pwd=sql;Database=sybase" > > $conexionodbc.Pass = "sql" ' this are right passwd but its property > configure later > Try $conexionodbc.Open ' then here will fail due the set pass property > later > > that piece of code will fail due the pass property set after the string > connection > > unless that every works perfect! and i writing some docs in gambaswiki, > plea take a view later for spell chek.. (u know what i taking about ...) > > >> >> >> >> zxMarce >> >> >> >> On 23/05/17 14:01, PICCORO McKAY Lenz wrote: >> >>> well in my svn version of 3.9 are working.. but i dont know if are >> >> available in 3.9.0 officially >> >>> also noted that code must configure only host and type, if any other >> are >> >> configured connection will fail >> >>> Lenz McKAY Gerardo (PICCORO) >> >>> http://qgqlochekone.blogspot.com >> >>> >> >>> 2017-05-23 12:55 GMT-04:00 PICCORO McKAY Lenz > >: >> >>>> the odbc gambas connection supports DSN-less mode? i mean, all the >> >> settings into the gambas code, no need of ini files i remenber that >> this >> >> are, since Gambas 3.8.1, IIRC, gb.db.odbc was made to support the >> so-called >> >> "Connection Strings". >> >>>> i can update the documentation but i wish to know if are available in >> >> gambas 3.9.0 at leas http://gambaswiki.org/wiki/doc/odbc for the >> missing >> >> image cache i can sustituye and upload newer or made a text only >> >>>> Lenz McKAY Gerardo (PICCORO) >> >>>> http://qgqlochekone.blogspot.com >> >> >> >> >> >> ------------------------------------------------------------ >> >> ------------------ >> >> Check out the vibrant tech community on one of the world's most >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> > ------------------------------------------------------------ >> ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From t.lee.davidson at ...626... Tue May 23 23:56:41 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Tue, 23 May 2017 17:56:41 -0400 Subject: [Gambas-user] gb.debug: Unable to open fifo Message-ID: <6a37180e-7573-516f-ca7f-2c2a0176077c@...626...> Hello folks, I am trying to see if gb.debug will help me diagnose why HttpClient does not properly expose redirect response codes on my system (and reportedly Tobi's system) while it does so correctly on Beno?t's system. However, the documentation for gb.debug is so sparse that I am having to experiment and, of course, having a problem. With the following command-line application code (using the gb.debug component): ' Gambas module file Public Sub Main() Dim sName As String sName = Debug.Begin() Print sName Debug.Start ' Unable to open fifo Debug.Write("Hello world") Debug.Stop Debug.End End Public Sub Debug_Read(Data As String) Print Data End ' End Gambas module file Debug.Start causes an exception: "Unable to open fifo". By looking in /tmp/gambas.1000/, I can see that the process id input and output pipes are successfully created with the correct file mode permissions (600) for my user as owner. But, the Start procedure apparently cannot open the output fifo (ref. https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c). Am I attempting to use this component incorrectly? --- Lee From taboege at ...626... Wed May 24 00:07:26 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 24 May 2017 00:07:26 +0200 Subject: [Gambas-user] gb.debug: Unable to open fifo In-Reply-To: <6a37180e-7573-516f-ca7f-2c2a0176077c@...626...> References: <6a37180e-7573-516f-ca7f-2c2a0176077c@...626...> Message-ID: <20170523220726.GC575@...3600...> On Tue, 23 May 2017, T Lee Davidson wrote: > Hello folks, > > I am trying to see if gb.debug will help me diagnose why HttpClient does not properly expose redirect response codes on my > system (and reportedly Tobi's system) while it does so correctly on Beno?t's system. > > However, the documentation for gb.debug is so sparse that I am having to experiment and, of course, having a problem. > > With the following command-line application code (using the gb.debug component): > ' Gambas module file > > Public Sub Main() > > Dim sName As String > > sName = Debug.Begin() > Print sName > Debug.Start ' Unable to open fifo > Debug.Write("Hello world") > Debug.Stop > Debug.End > > End > > Public Sub Debug_Read(Data As String) > > Print Data > > End > ' End Gambas module file > > Debug.Start causes an exception: "Unable to open fifo". By looking in /tmp/gambas.1000/, I can see that the process id input and > output pipes are successfully created with the correct file mode permissions (600) for my user as owner. But, the Start > procedure apparently cannot open the output fifo (ref. > https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c). > > Am I attempting to use this component incorrectly? > I think you're attempting to use the wrong component. gb.debug is meant for the Gambas IDE to debug a Gambas project. You can look at the source code of the IDE to try to figure out how to use it. I don't understand its protocol at all. My wild guess is that your error comes from not having started the application in debug mode (gbx3 -g)? In any case, I doubt debugging your *Gambas* code will give you any insight into the gb.net.curl issue, as gb.net.curl and curl itself are not written in Gambas. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at ...3416... Wed May 24 00:51:09 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 23 May 2017 22:51:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1104&from=L21haW4- Comment #2 by zxMarce: Piccoro, I don't have any Sybase servers to test. I will, nonetheless, try first with both MSSql 2005 and Firebird. Is there any chance that I get access to a Sybase test DB of your property if I need it for debugging? Regards, zxMarce. From bugtracker at ...3416... Wed May 24 01:23:43 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 23 May 2017 23:23:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1104: ODBC driver misc 1: if name, login or pass are specified connection does not open In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1104&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: Its same protocol for mocosoft sql server as sybase was the original software behind of... so TDS protocol its the used for sybase and mocosoft sql server, only mocosoft added changes to the protocol since version 5.0 to the lasted 8.X, so does'n matter the server type.. From dosida at ...626... Wed May 24 06:23:17 2017 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 23 May 2017 22:23:17 -0600 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: Message-ID: Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed workaround but not the recommended one. I would go with what Cris suggested. I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a normal user I've never had problems with the keyboard locking. Is there something that might be misconfigured on your VM perhaps (I mean on the Virtualbox settings)? On Mon, May 15, 2017 at 9:20 AM, Cristiano Guadagnino wrote: > Fernando, did you try setting up a new user on your system and trying to > run gambas as the new user? > > Cris > > > > > > Sent with Mailtrack > referral=criguada at ...626...&idSignature=22> > > > On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > > > Gl?ucio > > > > I see our systems and environment are quite similar, although not exactly > > the same. Have you installed something different that might have changed > > the IDE behavior? If I have, I have not been able to determine what it > > could be. What I know for sure is that one moment everything was working, > > next moment it was not anymore. What happened in-between, I can not > figure > > out. > > > > Now, after running gambas as superuser ("sudo gambas3") I have given up > the > > keyboard hypothesis (at least for now). I went back to the hypothesis > that > > it has to do with some file or directory permission. Nevertheless, I have > > not been able to determine which file or directory it could be. As to the > > project tree, I have opened it up completely (rwxrwxrwx for the > directories > > and at least rw-rw-rw- for the files. Even for the hidden ones. It did > not > > help. > > > > I have also searched for every single file and directory related to > gambas. > > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3" > and > > "gbx3", etc. Saved the results to a file and checked file and directory > > permissions. I could not find and thing unexpected. > > > > I have exhausted my bag of tricks so I have resorted to either of two > ugly > > workarounds: running gambas as superuser or doing the edition in a > virtual > > machine. In the last option, I just mount the project tree as a directory > > in the virtual machine. Then I make the changes in the virtual machine > and > > test them in the real machine. Cumbersome, but has worked. > > I would ask you to try running "sudo gambas3". If you can edit your files > > as superuser, then it will be very likely that we have exactly the same > > problem. > > > > Sauda??es > > > > - fernando > > > > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo : > > > > > Hi, > > > > > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas > > 3.9.1 > > > and 3.9.2(PPA). > > > > > > > > > ?My system information: > > > > > > [System] > > > Gambas=3.9.2 > > > OperatingSystem=Linux > > > Kernel=4.10.0-20-generic > > > Architecture=x86_64 > > > Distribution=Ubuntu 17.04 > > > Desktop=XFCE > > > Theme=Gtk > > > Language=pt_BR.UTF-8 > > > Memory=3829M > > > > > > [Libraries] > > > Cairo=libcairo.so.2.11400.8 > > > Curl=libcurl.so.4.4.0 > > > DBus=libdbus-1.so.3.14.7 > > > GStreamer=libgstreamer-1.0.so.0.1004.0 > > > GTK+2=libgtk-x11-2.0.so.0.2400.31 > > > GTK+3=libgtk-3.so.0.2200.11 > > > OpenGL=libGL.so.1.2.0 > > > Poppler=libpoppler.so.64.0.0 > > > QT4=libQtCore.so.4.8.7 > > > QT5=libQt5Core.so.5.7.1 > > > SDL=libSDL-1.2.so.0.11.4 > > > SQLite=libsqlite3.so.0.8.6 > > > > > > [Environment] > > > CLUTTER_BACKEND=x11 > > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path > > > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db > > > DESKTOP_SESSION=xubuntu > > > DISPLAY=:0.0 > > > GB_GUI=gb.qt4 > > > GDMSESSION=xubuntu > > > GLADE_CATALOG_PATH=: > > > GLADE_MODULE_PATH=: > > > GLADE_PIXMAP_PATH=: > > > GTK_MODULES=gail:atk-bridge > > > GTK_OVERLAY_SCROLLING=0 > > > HOME= > > > J2REDIR=/usr/lib/jvm/java-8-oracle/jre > > > J2SDKDIR=/usr/lib/jvm/java-8-oracle > > > JAVA_HOME=/usr/lib/jvm/java-8-oracle > > > JOURNAL_STREAM=8:23426 > > > LANG=pt_BR.UTF-8 > > > LANGUAGE=pt_BR:pt:en > > > LOGNAME= > > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path > > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ > > > sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/ > > > lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/ > > > bin:/usr/lib/jvm/java-8-oracle/jre/bin > > > PWD= > > > QT_ACCESSIBILITY=1 > > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > > > QT_QPA_PLATFORMTHEME=gtk2 > > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > > > 1227,unix/:/tmp/.ICE-unix/1227 > > > SHELL=/bin/bash > > > SHLVL=0 > > > SSH_AGENT_PID=1209 > > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > > TZ=:/etc/localtime > > > USER= > > > USERNAME= > > > WINDOWPATH=1 > > > XAUTHORITY=/run/user/1000/gdm/Xauthority > > > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg > > > XDG_CURRENT_DESKTOP=XFCE > > > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:< > > > home>/.local/share/flatpak/exports/share/:/var/lib/ > > > flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/ > > > lib/snapd/desktop:/usr/share > > > XDG_MENU_PREFIX=xfce- > > > XDG_RUNTIME_DIR=/run/user/1000 > > > XDG_SEAT=seat0 > > > XDG_SESSION_DESKTOP=xubuntu > > > XDG_SESSION_ID=1 > > > XDG_SESSION_TYPE=x11 > > > XDG_VTNR=1 > > > _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true > > > -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel? > > > > > > > > > --- > > > > > > Gl?ucio de Araujo > > > > > > Mail : glaucio.de.araujo at ...626... > > > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > > > > > > > > > > > > > > > Thank you, Tobi for your patience explaining this whole thing. > > > > Your comments make sense. No, as to the keyboard issue, > > > > what I can not figure out boils down to two things: First, I have not > > > > changed anything. At least that I know of. > > > > Second, why I only see the problem with the gambas IDE? Everything > else > > > is > > > > working fine. > > > > > > > > I also have tried this: > > > > a) installed Linux Mint 18.1 in a virtual box > > > > b) mounted the original directories in the virtual box > > > > c) installed gambas in the virtual machine > > > > d) edited the original files in the virtual environment -- no > problems > > > > whatsoever. > > > > > > > > The keyboard is the same. The hardware is the same. The operating > > system > > > is > > > > the same. > > > > Nevertheless, the IDE behavior is different. > > > > > > > > It must have something to do with the keyboard driver, but what? > > > > > > > > I still can't see why this would only affect Gambas and nothing > else. > > > Not > > > > even applications developed with gambas. > > > > > > > > Anyway, I am glad you and others have tried so hard to help me. > > > > > > > > - fernando > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > -- > > Fernando Cabral > > Blogue: http://fernandocabral.org > > Twitter: http://twitter.com/fjcabral > > e-mail: fernandojosecabral at ...626... > > Facebook: f at ...3654... > > Telegram: +55 (37) 99988-8868 > > Wickr ID: fernandocabral > > WhatsApp: +55 (37) 99988-8868 > > Skype: fernandojosecabral > > Telefone fixo: +55 (37) 3521-2183 > > Telefone celular: +55 (37) 99988-8868 > > > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > > nenhum pol?tico ou cientista poder? se gabar de nada. > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From dosida at ...626... Wed May 24 06:56:17 2017 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 23 May 2017 22:56:17 -0600 Subject: [Gambas-user] Gambas-user Digest, Vol 132, Issue 29 In-Reply-To: References: Message-ID: Does the same behavior occur with a wired keyboard (not your wireless Logitech K330)? On Tue, May 16, 2017 at 3:48 AM, Glaucio Araujo wrote: > Hi, Jussi > > > My Xorg.0.log is in ~/.local/share/xorg/ > > Log attached. > > My Xinput: > > > gda at ...3657...:~$ xinput list > ? Virtual core pointer id=2 [master pointer (3)] > ? ? Virtual core XTEST pointer id=4 [slave pointer > (2)] > ? ? Logitech M215 2nd Gen id=11 [slave pointer > (2)] > ? ? Logitech K330 id=10 [slave pointer > (2)] > ? ? ETPS/2 Elantech Touchpad id=13 [slave pointer > (2)] > ? Virtual core keyboard id=3 [master keyboard (2)] > ? Virtual core XTEST keyboard id=5 [slave keyboard > (3)] > ? Power Button id=6 [slave keyboard > (3)] > ? Video Bus id=7 [slave keyboard > (3)] > ? Power Button id=8 [slave keyboard > (3)] > ? Sleep Button id=9 [slave keyboard > (3)] > ? AT Translated Set 2 keyboard id=12 [slave keyboard > (3)] > ? Acer WMI hotkeys id=14 [slave keyboard > (3)] > ? Logitech K330 id=15 [slave keyboard > (3)] > ? HD WebCam id=16 [slave keyboard > (3)] > > > > > > > --- > > Gl?ucio de Araujo > > Mail : glaucio.de.araujo at ...626... > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > > Date: Mon, 15 May 2017 23:54:16 +0300 > > From: Jussi Lahtinen > > Subject: Re: [Gambas-user] Keyboard locked -- insisting one more time > > To: fernando at ...3654..., mailing list for gambas users > > > > Message-ID: > > > gmail.com> > > Content-Type: text/plain; charset="UTF-8" > > > > Can you both send Xorg.0.log (usually in /var/log/)? > > > > > > Jussi > > > > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas.fr at ...626... Wed May 24 08:44:40 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 May 2017 08:44:40 +0200 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: Message-ID: We need to wait for Benoit as it's a misstake on the rev 8132. It will be done as soon as possible, but like us he have only two hands and many other things to do in his own life. After the bug correcting you will have to wait a least one day to get the update package from the daily built svn. Regards, Fabien Bodard 2017-05-24 6:23 GMT+02:00 Dimitris Anogiatis : > Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed > workaround but not the recommended one. I would go with what Cris suggested. > I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a > normal user I've never had problems with the keyboard locking. > > Is there something that might be misconfigured on your VM perhaps (I mean > on the Virtualbox settings)? > > On Mon, May 15, 2017 at 9:20 AM, Cristiano Guadagnino > wrote: > >> Fernando, did you try setting up a new user on your system and trying to >> run gambas as the new user? >> >> Cris >> >> >> >> >> >> Sent with Mailtrack >> > referral=criguada at ...626...&idSignature=22> >> >> >> On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral < >> fernandojosecabral at ...626...> wrote: >> >> > Gl?ucio >> > >> > I see our systems and environment are quite similar, although not exactly >> > the same. Have you installed something different that might have changed >> > the IDE behavior? If I have, I have not been able to determine what it >> > could be. What I know for sure is that one moment everything was working, >> > next moment it was not anymore. What happened in-between, I can not >> figure >> > out. >> > >> > Now, after running gambas as superuser ("sudo gambas3") I have given up >> the >> > keyboard hypothesis (at least for now). I went back to the hypothesis >> that >> > it has to do with some file or directory permission. Nevertheless, I have >> > not been able to determine which file or directory it could be. As to the >> > project tree, I have opened it up completely (rwxrwxrwx for the >> directories >> > and at least rw-rw-rw- for the files. Even for the hidden ones. It did >> not >> > help. >> > >> > I have also searched for every single file and directory related to >> gambas. >> > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3" >> and >> > "gbx3", etc. Saved the results to a file and checked file and directory >> > permissions. I could not find and thing unexpected. >> > >> > I have exhausted my bag of tricks so I have resorted to either of two >> ugly >> > workarounds: running gambas as superuser or doing the edition in a >> virtual >> > machine. In the last option, I just mount the project tree as a directory >> > in the virtual machine. Then I make the changes in the virtual machine >> and >> > test them in the real machine. Cumbersome, but has worked. >> > I would ask you to try running "sudo gambas3". If you can edit your files >> > as superuser, then it will be very likely that we have exactly the same >> > problem. >> > >> > Sauda??es >> > >> > - fernando >> > >> > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo : >> > >> > > Hi, >> > > >> > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas >> > 3.9.1 >> > > and 3.9.2(PPA). >> > > >> > > >> > > My system information: >> > > >> > > [System] >> > > Gambas=3.9.2 >> > > OperatingSystem=Linux >> > > Kernel=4.10.0-20-generic >> > > Architecture=x86_64 >> > > Distribution=Ubuntu 17.04 >> > > Desktop=XFCE >> > > Theme=Gtk >> > > Language=pt_BR.UTF-8 >> > > Memory=3829M >> > > >> > > [Libraries] >> > > Cairo=libcairo.so.2.11400.8 >> > > Curl=libcurl.so.4.4.0 >> > > DBus=libdbus-1.so.3.14.7 >> > > GStreamer=libgstreamer-1.0.so.0.1004.0 >> > > GTK+2=libgtk-x11-2.0.so.0.2400.31 >> > > GTK+3=libgtk-3.so.0.2200.11 >> > > OpenGL=libGL.so.1.2.0 >> > > Poppler=libpoppler.so.64.0.0 >> > > QT4=libQtCore.so.4.8.7 >> > > QT5=libQt5Core.so.5.7.1 >> > > SDL=libSDL-1.2.so.0.11.4 >> > > SQLite=libsqlite3.so.0.8.6 >> > > >> > > [Environment] >> > > CLUTTER_BACKEND=x11 >> > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path >> > > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db >> > > DESKTOP_SESSION=xubuntu >> > > DISPLAY=:0.0 >> > > GB_GUI=gb.qt4 >> > > GDMSESSION=xubuntu >> > > GLADE_CATALOG_PATH=: >> > > GLADE_MODULE_PATH=: >> > > GLADE_PIXMAP_PATH=: >> > > GTK_MODULES=gail:atk-bridge >> > > GTK_OVERLAY_SCROLLING=0 >> > > HOME= >> > > J2REDIR=/usr/lib/jvm/java-8-oracle/jre >> > > J2SDKDIR=/usr/lib/jvm/java-8-oracle >> > > JAVA_HOME=/usr/lib/jvm/java-8-oracle >> > > JOURNAL_STREAM=8:23426 >> > > LANG=pt_BR.UTF-8 >> > > LANGUAGE=pt_BR:pt:en >> > > LOGNAME= >> > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path >> > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ >> > > sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/ >> > > lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/ >> > > bin:/usr/lib/jvm/java-8-oracle/jre/bin >> > > PWD= >> > > QT_ACCESSIBILITY=1 >> > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 >> > > QT_QPA_PLATFORMTHEME=gtk2 >> > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ >> > > 1227,unix/:/tmp/.ICE-unix/1227 >> > > SHELL=/bin/bash >> > > SHLVL=0 >> > > SSH_AGENT_PID=1209 >> > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> > > TZ=:/etc/localtime >> > > USER= >> > > USERNAME= >> > > WINDOWPATH=1 >> > > XAUTHORITY=/run/user/1000/gdm/Xauthority >> > > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg >> > > XDG_CURRENT_DESKTOP=XFCE >> > > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:< >> > > home>/.local/share/flatpak/exports/share/:/var/lib/ >> > > flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/ >> > > lib/snapd/desktop:/usr/share >> > > XDG_MENU_PREFIX=xfce- >> > > XDG_RUNTIME_DIR=/run/user/1000 >> > > XDG_SEAT=seat0 >> > > XDG_SESSION_DESKTOP=xubuntu >> > > XDG_SESSION_ID=1 >> > > XDG_SESSION_TYPE=x11 >> > > XDG_VTNR=1 >> > > _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true >> > > -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel >> > > >> > > >> > > --- >> > > >> > > Gl?ucio de Araujo >> > > >> > > Mail : glaucio.de.araujo at ...626... >> > > TIM : (11) 95900-7801 (WhatsApp / Telegram) >> > > >> > > >> > > >> > > >> > > > Thank you, Tobi for your patience explaining this whole thing. >> > > > Your comments make sense. No, as to the keyboard issue, >> > > > what I can not figure out boils down to two things: First, I have not >> > > > changed anything. At least that I know of. >> > > > Second, why I only see the problem with the gambas IDE? Everything >> else >> > > is >> > > > working fine. >> > > > >> > > > I also have tried this: >> > > > a) installed Linux Mint 18.1 in a virtual box >> > > > b) mounted the original directories in the virtual box >> > > > c) installed gambas in the virtual machine >> > > > d) edited the original files in the virtual environment -- no >> problems >> > > > whatsoever. >> > > > >> > > > The keyboard is the same. The hardware is the same. The operating >> > system >> > > is >> > > > the same. >> > > > Nevertheless, the IDE behavior is different. >> > > > >> > > > It must have something to do with the keyboard driver, but what? >> > > > >> > > > I still can't see why this would only affect Gambas and nothing >> else. >> > > Not >> > > > even applications developed with gambas. >> > > > >> > > > Anyway, I am glad you and others have tried so hard to help me. >> > > > >> > > > - fernando >> > > > >> > > > >> > > > >> > > > >> > > ------------------------------------------------------------ >> > > ------------------ >> > > Check out the vibrant tech community on one of the world's most >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > >> > >> > >> > -- >> > Fernando Cabral >> > Blogue: http://fernandocabral.org >> > Twitter: http://twitter.com/fjcabral >> > e-mail: fernandojosecabral at ...626... >> > Facebook: f at ...3654... >> > Telegram: +55 (37) 99988-8868 >> > Wickr ID: fernandocabral >> > WhatsApp: +55 (37) 99988-8868 >> > Skype: fernandojosecabral >> > Telefone fixo: +55 (37) 3521-2183 >> > Telefone celular: +55 (37) 99988-8868 >> > >> > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >> > nenhum pol?tico ou cientista poder? se gabar de nada. >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From hans at ...3219... Wed May 24 10:52:55 2017 From: hans at ...3219... (Hans Lehmann) Date: Wed, 24 May 2017 10:52:55 +0200 Subject: [Gambas-user] XMLRPC-Server In-Reply-To: References: Message-ID: <6672c854-b4b5-1de8-6709-2b88b818ee68@...3219...> Hello Lee, > RpcServer.Listen relies on ServerSocket which is part of the gb.net component. The documentation does not specify that gb.net is > required for gb.xml.rpc, but it apparently is. That's exactly. The missing components were added. Thanks for the hint. The source code for the XMLRPC client and the XMLRPC server is attached. The project works - but unfortunately not as a web service - only locally. Where is the error? What should I do? Sincerely Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: XMLRPCCA-0.0.15.tar.gz Type: application/gzip Size: 13144 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: XMLRPCSA-0.1.1.tar.gz Type: application/gzip Size: 12992 bytes Desc: not available URL: From fernandojosecabral at ...626... Wed May 24 11:30:44 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Wed, 24 May 2017 06:30:44 -0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: Message-ID: Dimitris wrote: > Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed > workaround but not the recommended one. I would go with what Cris suggested. Agreed that running gambas as root is not a good idea. It was only a test. Since some people thought it could be a permission issue, running as root was a way to gather more information on the issue. It was not a proper workaround. >I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a > normal user I've never had problems with the keyboard locking. > Is there something that might be misconfigured on your VM perhaps (I mean > on the Virtualbox settings)? It is the other way around: Gambas 3.9.2 runs flawlessly on the Virtual Box. The keyboard locks in the real machine -- even when the keyboard is the same for both machines. Regards - fernando 2017-05-24 1:23 GMT-03:00 Dimitris Anogiatis : > Ok.. Gambas3 run as root? Not a good idea. I realize it's a much needed > workaround but not the recommended one. I would go with what Cris > suggested. > I've run Gambas3 3.9.2 on a Virtualbox VM of Ubuntu Budgie 17.04 and as a > normal user I've never had problems with the keyboard locking. > > Is there something that might be misconfigured on your VM perhaps (I mean > on the Virtualbox settings)? > > On Mon, May 15, 2017 at 9:20 AM, Cristiano Guadagnino > wrote: > > > Fernando, did you try setting up a new user on your system and trying to > > run gambas as the new user? > > > > Cris > > > > > > > > > > > > Sent with Mailtrack > > > referral=criguada at ...626...&idSignature=22> > > > > > > On Mon, May 15, 2017 at 12:53 PM, Fernando Cabral < > > fernandojosecabral at ...626...> wrote: > > > > > Gl?ucio > > > > > > I see our systems and environment are quite similar, although not > exactly > > > the same. Have you installed something different that might have > changed > > > the IDE behavior? If I have, I have not been able to determine what it > > > could be. What I know for sure is that one moment everything was > working, > > > next moment it was not anymore. What happened in-between, I can not > > figure > > > out. > > > > > > Now, after running gambas as superuser ("sudo gambas3") I have given up > > the > > > keyboard hypothesis (at least for now). I went back to the hypothesis > > that > > > it has to do with some file or directory permission. Nevertheless, I > have > > > not been able to determine which file or directory it could be. As to > the > > > project tree, I have opened it up completely (rwxrwxrwx for the > > directories > > > and at least rw-rw-rw- for the files. Even for the hidden ones. It did > > not > > > help. > > > > > > I have also searched for every single file and directory related to > > gambas. > > > For this I used searches like "locate -i --regex .*gambas.*" and "gbr3" > > and > > > "gbx3", etc. Saved the results to a file and checked file and directory > > > permissions. I could not find and thing unexpected. > > > > > > I have exhausted my bag of tricks so I have resorted to either of two > > ugly > > > workarounds: running gambas as superuser or doing the edition in a > > virtual > > > machine. In the last option, I just mount the project tree as a > directory > > > in the virtual machine. Then I make the changes in the virtual machine > > and > > > test them in the real machine. Cumbersome, but has worked. > > > I would ask you to try running "sudo gambas3". If you can edit your > files > > > as superuser, then it will be very likely that we have exactly the same > > > problem. > > > > > > Sauda??es > > > > > > - fernando > > > > > > 2017-05-14 18:19 GMT-03:00 Glaucio Araujo >: > > > > > > > Hi, > > > > > > > > I'm having exactly the same problem here in Xubuntu 17.04 with Gambas > > > 3.9.1 > > > > and 3.9.2(PPA). > > > > > > > > > > > > ?My system information: > > > > > > > > [System] > > > > Gambas=3.9.2 > > > > OperatingSystem=Linux > > > > Kernel=4.10.0-20-generic > > > > Architecture=x86_64 > > > > Distribution=Ubuntu 17.04 > > > > Desktop=XFCE > > > > Theme=Gtk > > > > Language=pt_BR.UTF-8 > > > > Memory=3829M > > > > > > > > [Libraries] > > > > Cairo=libcairo.so.2.11400.8 > > > > Curl=libcurl.so.4.4.0 > > > > DBus=libdbus-1.so.3.14.7 > > > > GStreamer=libgstreamer-1.0.so.0.1004.0 > > > > GTK+2=libgtk-x11-2.0.so.0.2400.31 > > > > GTK+3=libgtk-3.so.0.2200.11 > > > > OpenGL=libGL.so.1.2.0 > > > > Poppler=libpoppler.so.64.0.0 > > > > QT4=libQtCore.so.4.8.7 > > > > QT5=libQt5Core.so.5.7.1 > > > > SDL=libSDL-1.2.so.0.11.4 > > > > SQLite=libsqlite3.so.0.8.6 > > > > > > > > [Environment] > > > > CLUTTER_BACKEND=x11 > > > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > > > DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path > > > > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db > > > > DESKTOP_SESSION=xubuntu > > > > DISPLAY=:0.0 > > > > GB_GUI=gb.qt4 > > > > GDMSESSION=xubuntu > > > > GLADE_CATALOG_PATH=: > > > > GLADE_MODULE_PATH=: > > > > GLADE_PIXMAP_PATH=: > > > > GTK_MODULES=gail:atk-bridge > > > > GTK_OVERLAY_SCROLLING=0 > > > > HOME= > > > > J2REDIR=/usr/lib/jvm/java-8-oracle/jre > > > > J2SDKDIR=/usr/lib/jvm/java-8-oracle > > > > JAVA_HOME=/usr/lib/jvm/java-8-oracle > > > > JOURNAL_STREAM=8:23426 > > > > LANG=pt_BR.UTF-8 > > > > LANGUAGE=pt_BR:pt:en > > > > LOGNAME= > > > > MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path > > > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ > > > > sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/ > > > > lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/ > > > > bin:/usr/lib/jvm/java-8-oracle/jre/bin > > > > PWD= > > > > QT_ACCESSIBILITY=1 > > > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > > > > QT_QPA_PLATFORMTHEME=gtk2 > > > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > > > > 1227,unix/:/tmp/.ICE-unix/1227 > > > > SHELL=/bin/bash > > > > SHLVL=0 > > > > SSH_AGENT_PID=1209 > > > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > > > TZ=:/etc/localtime > > > > USER= > > > > USERNAME= > > > > WINDOWPATH=1 > > > > XAUTHORITY=/run/user/1000/gdm/Xauthority > > > > XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg > > > > XDG_CURRENT_DESKTOP=XFCE > > > > XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:< > > > > home>/.local/share/flatpak/exports/share/:/var/lib/ > > > > flatpak/exports/share/:/usr/local/share/:/usr/share/:/var/ > > > > lib/snapd/desktop:/usr/share > > > > XDG_MENU_PREFIX=xfce- > > > > XDG_RUNTIME_DIR=/run/user/1000 > > > > XDG_SEAT=seat0 > > > > XDG_SESSION_DESKTOP=xubuntu > > > > XDG_SESSION_ID=1 > > > > XDG_SESSION_TYPE=x11 > > > > XDG_VTNR=1 > > > > _JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true > > > > -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel? > > > > > > > > > > > > --- > > > > > > > > Gl?ucio de Araujo > > > > > > > > Mail : glaucio.de.araujo at ...626... > > > > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > > > > > > > > > > > > > > > > > > > > Thank you, Tobi for your patience explaining this whole thing. > > > > > Your comments make sense. No, as to the keyboard issue, > > > > > what I can not figure out boils down to two things: First, I have > not > > > > > changed anything. At least that I know of. > > > > > Second, why I only see the problem with the gambas IDE? Everything > > else > > > > is > > > > > working fine. > > > > > > > > > > I also have tried this: > > > > > a) installed Linux Mint 18.1 in a virtual box > > > > > b) mounted the original directories in the virtual box > > > > > c) installed gambas in the virtual machine > > > > > d) edited the original files in the virtual environment -- no > > problems > > > > > whatsoever. > > > > > > > > > > The keyboard is the same. The hardware is the same. The operating > > > system > > > > is > > > > > the same. > > > > > Nevertheless, the IDE behavior is different. > > > > > > > > > > It must have something to do with the keyboard driver, but what? > > > > > > > > > > I still can't see why this would only affect Gambas and nothing > > else. > > > > Not > > > > > even applications developed with gambas. > > > > > > > > > > Anyway, I am glad you and others have tried so hard to help me. > > > > > > > > > > - fernando > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > > -- > > > Fernando Cabral > > > Blogue: http://fernandocabral.org > > > Twitter: http://twitter.com/fjcabral > > > e-mail: fernandojosecabral at ...626... > > > Facebook: f at ...3654... > > > Telegram: +55 (37) 99988-8868 > > > Wickr ID: fernandocabral > > > WhatsApp: +55 (37) 99988-8868 > > > Skype: fernandojosecabral > > > Telefone fixo: +55 (37) 3521-2183 > > > Telefone celular: +55 (37) 99988-8868 > > > > > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > > > nenhum pol?tico ou cientista poder? se gabar de nada. > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From gambas at ...1... Wed May 24 12:25:05 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 24 May 2017 12:25:05 +0200 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: Message-ID: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : > We need to wait for Benoit as it's a misstake on the rev 8132. > I'm not sure it's a mistake in rev 8132. Fernando must check with an older revision to see if the problem comes from it. Moreover, Glaucio says he has the problem with an older version of Gambas, so... I think it's a problem related to QT and the Xim input method. So I suggest people to change their input method to see if something changes. -- Beno?t Minisini From bugtracker at ...3416... Wed May 24 12:47:32 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 10:47:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1106&from=L21haW4- Daniel BLANCH BATALLER reported a new bug. Summary ------- XmlElement.GetChildrenByTagName does get parent too if tag is the same Type : Bug Priority : Medium Gambas version : 3.7 Product : XML components Description ----------- http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getchildrenbytagname As the documentation states, this should get the children, but if parent shares the same tag name as children, parent is included in position [0] of the returned XmlElement[] array. XmlElement.GetChildrenByTagName (gb.xml) Function GetChildrenByTagName ( TagName As String [ , Mode As Integer, Depth As Integer ] ) As XmlElement[] Returns all the **child elements** whose tag name matches Name. The Mode argument defines the comparison method used. It supports GB.Binary, GB.IgnoreCase and GB.Like. See Predefined Constants for further information. The Depth argument defines where to stop the search : a negative value will stop only at the end of the tree (default), 1 will check only the current element, 2 will check **only the direct children** of the element, and so on ... Here is some sample code to reproduce the issue. Thank you in advance Daniel. '''' ' Unit test inhouse module ' TODO: Find unit test library '''' Private errors As Integer = 0 ' Fixture, add tests here Public Sub Main() xmlTest() End ' Unit test Sub xmlTest() Dim children_level_0 As XmlElement[] Dim children_level_1 As XmlElement[] Dim document As XmlDocument = New XmlDocument document.FromString( "" & " " & " " & " " & " " & " " & "") children_level_0 = document.Root.GetChildrenByTagName("child", GB.Binary, 2) '2 direct children equals(children_level_0.Length, 1, "one child expected") children_level_1 = children_level_0[0].GetChildrenByTagName("child", GB.Binary, 2) equals(children_level_1.Length, 2, "two child expected") 'it returns three instead, first element is parent node endTests() End Sub equals(actual As Integer, expected As Integer, msg As String) If actual = expected Then Print "ok : " & msg Else errors = errors + 1 Print "error : " & msg & " [expected =" & expected & ", actual = " & actual & "]" Endif End Sub endTests() If errors > 0 Then Print "Result: Failed [" & errors & "] tests" Else Print "Result: All tests OK" Endif End From bugtracker at ...3416... Wed May 24 12:47:31 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 10:47:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1105: XmlElement.GetChildrenByTagName does get parent too if tag is the same Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1105&from=L21haW4- Daniel BLANCH BATALLER reported a new bug. Summary ------- XmlElement.GetChildrenByTagName does get parent too if tag is the same Type : Bug Priority : Medium Gambas version : 3.7 Product : XML components Description ----------- http://gambaswiki.org/wiki/comp/gb.xml/xmlelement/getchildrenbytagname As the documentation states, this should get the children, but if parent shares the same tag name as children, parent is included in position [0] of the returned XmlElement[] array. XmlElement.GetChildrenByTagName (gb.xml) Function GetChildrenByTagName ( TagName As String [ , Mode As Integer, Depth As Integer ] ) As XmlElement[] Returns all the **child elements** whose tag name matches Name. The Mode argument defines the comparison method used. It supports GB.Binary, GB.IgnoreCase and GB.Like. See Predefined Constants for further information. The Depth argument defines where to stop the search : a negative value will stop only at the end of the tree (default), 1 will check only the current element, 2 will check **only the direct children** of the element, and so on ... Here is some sample code to reproduce the issue. Thank you in advance Daniel. '''' ' Unit test inhouse module ' TODO: Find unit test library '''' Private errors As Integer = 0 ' Fixture, add tests here Public Sub Main() xmlTest() End ' Unit test Sub xmlTest() Dim children_level_0 As XmlElement[] Dim children_level_1 As XmlElement[] Dim document As XmlDocument = New XmlDocument document.FromString( "" & " " & " " & " " & " " & " " & "") children_level_0 = document.Root.GetChildrenByTagName("child", GB.Binary, 2) '2 direct children equals(children_level_0.Length, 1, "one child expected") children_level_1 = children_level_0[0].GetChildrenByTagName("child", GB.Binary, 2) equals(children_level_1.Length, 2, "two child expected") 'it returns three instead, first element is parent node endTests() End Sub equals(actual As Integer, expected As Integer, msg As String) If actual = expected Then Print "ok : " & msg Else errors = errors + 1 Print "error : " & msg & " [expected =" & expected & ", actual = " & actual & "]" Endif End Sub endTests() If errors > 0 Then Print "Result: Failed [" & errors & "] tests" Else Print "Result: All tests OK" Endif End From glaucio.de.araujo at ...626... Wed May 24 12:50:19 2017 From: glaucio.de.araujo at ...626... (Glaucio Araujo) Date: Wed, 24 May 2017 07:50:19 -0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: I don't know, but, since it works in other systems than Xubuntu/Mint, I guess that may be some environment variable missing. With Benoit's script, for exemple, the TextEditor didin't worked here, but the same component did worked just fine running in Gambas' design time test. Again, the difference, I guess, is pretty much just the execution environment, or not? --- Gl?ucio de Araujo Mail : glaucio.de.araujo at ...626... TIM : (11) 95900-7801 (WhatsApp / Telegram) 2017-05-24 7:25 GMT-03:00 Beno?t Minisini : > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : > > We need to wait for Benoit as it's a misstake on the rev 8132. > > > > I'm not sure it's a mistake in rev 8132. Fernando must check with an > older revision to see if the problem comes from it. > > Moreover, Glaucio says he has the problem with an older version of > Gambas, so... > > I think it's a problem related to QT and the Xim input method. So I > suggest people to change their input method to see if something changes. > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed May 24 15:01:31 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 May 2017 15:01:31 +0200 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: maybe a problem with the desing mode. 2017-05-24 12:50 GMT+02:00 Glaucio Araujo : > I don't know, but, since it works in other systems than Xubuntu/Mint, I > guess that may be some environment variable missing. > > With Benoit's script, for exemple, the TextEditor didin't worked here, but > the same component did worked just fine running in Gambas' design time > test. Again, the difference, I guess, is pretty much just the execution > environment, or not? > > > > > --- > > Gl?ucio de Araujo > > Mail : glaucio.de.araujo at ...626... > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > 2017-05-24 7:25 GMT-03:00 Beno?t Minisini : > >> Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : >> > We need to wait for Benoit as it's a misstake on the rev 8132. >> > >> >> I'm not sure it's a mistake in rev 8132. Fernando must check with an >> older revision to see if the problem comes from it. >> >> Moreover, Glaucio says he has the problem with an older version of >> Gambas, so... >> >> I think it's a problem related to QT and the Xim input method. So I >> suggest people to change their input method to see if something changes. >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From mckaygerhard at ...626... Wed May 24 15:30:25 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 09:30:25 -0400 Subject: [Gambas-user] XMLRPC-Server In-Reply-To: <6672c854-b4b5-1de8-6709-2b88b818ee68@...3219...> References: <6672c854-b4b5-1de8-6709-2b88b818ee68@...3219...> Message-ID: 2017-05-24 4:52 GMT-04:00 Hans Lehmann : > The source code for the XMLRPC client and the XMLRPC server is attached. > The project works - but unfortunately not as a web service - only locally. > Where is the error? What should I do? > great Excellent effort! The web services are very important for integration of different platforms in different technologies, I will take a look to see what I help because I need it a lot gambas has a great lack in this area! thanks Hans! > > Sincerely > Hans > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mckaygerhard at ...626... Wed May 24 15:47:10 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 09:47:10 -0400 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? Message-ID: due the odbc does not provide a record count like mysql does (cos provider may o nor offer) on every sql query.. how we can know if a DDL sql (i mean a select, a dropt table, or a create table) was excecuted using the result object and without a try catch method? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Wed May 24 15:58:57 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 24 May 2017 15:58:57 +0200 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? In-Reply-To: References: Message-ID: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> Le 24/05/2017 ? 15:47, PICCORO McKAY Lenz a ?crit : > due the odbc does not provide a record count like mysql does (cos provider > may o nor offer) on every sql query.. > > how we can know if a DDL sql (i mean a select, a dropt table, or a create > table) was excecuted using the result object and without a try catch method? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com The record count is only for Result objects. So you should not get it for a CREATE or a DROP TABLE statement. A record count of -1 means that you have to use the MoveNext() method until the Available property is False to get each record. Once done, then you know how many records you get. I think the reason is that the underlying ODBC driver sends the result line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers) send all the lines by default. Maybe the ODBC driver should store the entire query result in memory to simulate a standard Result object when it is internally "move forward" only? -- Beno?t Minisini From mckaygerhard at ...626... Wed May 24 16:07:55 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 10:07:55 -0400 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? In-Reply-To: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> References: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> Message-ID: please pardom me, i explain me better: i mean: how can i know if a DDL like CREATE or DROP TABLE was executed correctly without error , using the result object and not a try/catch block! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-24 9:58 GMT-04:00 Beno?t Minisini : > Le 24/05/2017 ? 15:47, PICCORO McKAY Lenz a ?crit : > >> due the odbc does not provide a record count like mysql does (cos provider >> may o nor offer) on every sql query.. >> >> how we can know if a DDL sql (i mean a select, a dropt table, or a create >> table) was excecuted using the result object and without a try catch >> method? >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > > The record count is only for Result objects. So you should not get it for > a CREATE or a DROP TABLE statement. > > A record count of -1 means that you have to use the MoveNext() method > until the Available property is False to get each record. Once done, then > you know how many records you get. > > I think the reason is that the underlying ODBC driver sends the result > line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers) > send all the lines by default. > > Maybe the ODBC driver should store the entire query result in memory to > simulate a standard Result object when it is internally "move forward" only? > > -- > Beno?t Minisini > From bugtracker at ...3416... Wed May 24 16:27:30 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 14:27:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- project components unselectable if not qt4 libs complety installed Type : Bug Priority : High Gambas version : 3.9 Product : Development Environment Description ----------- installed gambas but not taking care (or packages does not) of the qt4 libs depends... so when open the project properties and try to select componentes, all the checkboxes are selected but in readonly mode after some debug, see that qt4 libs are triying to access so installed, but need configure the qt4 env USING QT4-QTCONFIG (on other may be named qtconfig): after that, checkboxes are displayed normally and i can select components for the project, install the packages was not enoguh.. i must setup the qt4 environment to use a GTK style, and then all are correct, this only happen when no mayor desktop are used like openbox or icewm i installed GAMBAS 3.9 packaged by me follow and based on ppa sources.. NOTE: later try installed in same way, using the ppa packages and debian jesee, same results if no qtconfig configuration was made! NOTE2: important qt4 style was not configured and any other qt program was ever started until qtconfig was ANEXOS: oot at ...3659...:/var/www# apt-get install qt4-qtconfig Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libmng1 libphonon4 libpulse-mainloop-glib0 Suggested packages: libmng-dev phonon libphonon-dev libqt4-dev qt4-qmlviewer Recommended packages: libphononexperimental4 libqt4-sql-mysql libqt4-sql-odbc libqt4-sql-psql libqt4-sql-sqlite libqt4-sql-sqlite2 libqt4-sql-ibase libqt4-xmlpatterns libqt4-help libqt4-opengl The following NEW packages will be installed: libmng1 libphonon4 libpulse-mainloop-glib0 qdbus qt4-qtconfig libqt4-qt3support 0 upgraded, 6 newly installed, 0 to remove and 92 not upgraded. Need to get 15.0 MB of archives. After this operation, 36.6 MB of additional disk space will be used. Do you want to continue [Y/n]? Y WARNING: The following packages cannot be authenticated! libmng1 libpulse-mainloop-glib0 libqtcore4 libqt4-xml qdbus libqt4-dbus libqtgui4 libphonon4 libqt4-script libqt4-designer libqt4-network libqt4-sql libqt4-qt3support qt4-qtconfig Authentication warning overridden. Get:1 http://10.10.34.20/debian/venenux/ squeeze/main libmng1 i386 1.0.10-3vnz1 [135 kB] Get:2 http://10.10.34.20/debian/ squeeze/main libpulse-mainloop-glib0 i386 0.9.21-3+squeeze1 [161 kB] Get:5 http://10.10.34.20/debian/venenux/ squeeze/main qdbus i386 4:4.7.4-2vnz1 [67.6 kB] Get:8 http://10.10.34.20/debian/venenux/ squeeze/main libphonon4 i386 4:4.6.0really4.5.1-1vgnzsq1 [137 kB] Get:13 http://10.10.34.20/debian/venenux/ squeeze/main libqt4-qt3support i386 4:4.7.4-2vnz1 [1,198 kB] Get:14 http://10.10.34.20/debian/venenux/ squeeze/main qt4-qtconfig i386 4:4.7.4-2vnz1 [182 kB] Fetched 15.0 MB in 1s (9,359 kB/s) Selecting previously deselected package libmng1. (Reading database ... 50813 files and directories currently installed.) Unpacking libmng1 (from .../libmng1_1.0.10-3vnz1_i386.deb) ... Selecting previously deselected package libpulse-mainloop-glib0. Unpacking libpulse-mainloop-glib0 (from .../libpulse-mainloop-glib0_0.9.21-3+squeeze1_i386.deb) ... Selecting previously deselected package qdbus. Unpacking qdbus (from .../qdbus_4%3a4.7.4-2vnz1_i386.deb) ... Selecting previously deselected package libphonon4. Unpacking libphonon4 (from .../libphonon4_4%3a4.6.0really4.5.1-1vgnzsq1_i386.deb) ... Selecting previously deselected package libqt4-qt3support. Unpacking libqt4-qt3support (from .../libqt4-qt3support_4%3a4.7.4-2vnz1_i386.deb) ... Selecting previously deselected package qt4-qtconfig. Unpacking qt4-qtconfig (from .../qt4-qtconfig_4%3a4.7.4-2vnz1_i386.deb) ... Processing triggers for man-db ... Setting up libmng1 (1.0.10-3vnz1) ... Setting up libpulse-mainloop-glib0 (0.9.21-3+squeeze1) ... Setting up qdbus (4:4.7.4-2vnz1) ... Setting up libqt4-dbus (4:4.7.4-2vnz1) ... Setting up libphonon4 (4:4.6.0really4.5.1-1vgnzsq1) ... Setting up libqt4-qt3support (4:4.7.4-2vnz1) ... Setting up qt4-qtconfig (4:4.7.4-2vnz1) ... update-alternatives: using /usr/bin/qtconfig-qt4 to provide /usr/bin/qtconfig (qtconfig) in auto mode. root at ...3659...:/var/www# System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=2.6.38-bpo.2-686 Architecture=x86 Distribution= 6.1 Desktop= Theme=Gtk Language=es_VE.UTF-8 Memory=2958M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+2=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 QT4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-vBmVAKTmAe,guid=ab802896e9e02a1f9130b5430000020a DESKTOP_SESSION=openbox DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=openbox GDM_LANG=es_VE.UTF-8 GDM_XSERVER_LOCATION=local HOME= LANG=es_VE.UTF-8 LOGNAME= ORBIT_SOCKETDIR=/tmp/orbit- PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SHELL=/bin/bash SSH_AGENT_PID=3169 SSH_AUTH_SOCK=/tmp/ssh-ufENJB3126/agent.3126 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7:7:7:7 XAUTHORITY=/.Xauthority XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/ XDG_MENU_PREFIX=lxde- XDG_SESSION_COOKIE=e95ad835c51ba625379e246200000423-1494956351.268990-1110310328 From bugtracker at ...3416... Wed May 24 16:36:37 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 14:36:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- PICCORO LENZ MCKAY added an attachment: gambaside-0-qtconfig-bug.png From bugtracker at ...3416... Wed May 24 16:38:49 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 14:38:49 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: attached and image (umm how can i display inside embebed the attached image) in the image we can see that if no /home//.config/Trolltech.conf file are present with defined valid style (and not desktop inheris style) the checkboxes are readonly... From bugtracker at ...3416... Wed May 24 16:47:03 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 14:47:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1108&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- sqlite path when used with name does not create db in the given path Type : Bug Priority : High Gambas version : 3.9 Product : Database component Description ----------- i attached a project example, in resumen i used as documentation said: "Otherwise, Host gives the database directory, and the database path is the result of concatenating Host and Name." in http://gambaswiki.org/wiki/comp/gb.db/connection so i used host for path directory and name for sqlite name db, but when i command a ls to the patch the sqlite db does not exist System information ------------------ [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=2.6.38-bpo.2-686 Architecture=x86 Distribution= 6.1 Desktop= Theme=Gtk Language=es_VE.UTF-8 Memory=2958M [Libraries] Cairo=libcairo.so.2.11000.2 Curl=libcurl.so.4.2.0 DBus=libdbus-1.so.3.4.0 GStreamer=libgstreamer-0.10.so.0.27.0 GTK+2=libgtk-x11-2.0.so.0.2000.1 Poppler=libpoppler.so.5.0.0 QT4=libQtCore.so.4.7.4 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-vBmVAKTmAe,guid=ab802896e9e02a1f9130b5430000020a DESKTOP_SESSION=openbox DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=openbox GDM_LANG=es_VE.UTF-8 GDM_XSERVER_LOCATION=local HOME= LANG=es_VE.UTF-8 LOGNAME= ORBIT_SOCKETDIR=/tmp/orbit- PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= SHELL=/bin/bash SSH_AGENT_PID=3169 SSH_AUTH_SOCK=/tmp/ssh-ufENJB3126/agent.3126 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7:7:7:7 XAUTHORITY=/.Xauthority XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/ XDG_MENU_PREFIX=lxde- XDG_SESSION_COOKIE=e95ad835c51ba625379e246200000423-1494956351.268990-1110310328 From bugtracker at ...3416... Wed May 24 16:47:12 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 14:47:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1108&from=L21haW4- PICCORO LENZ MCKAY added an attachment: testforbugs-sqlitepath-notfoud-db-0.0.1.tar.gz From bugtracker at ...3416... Wed May 24 16:49:48 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 14:49:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1108&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: the piece of code its: Private $conexionsqli As Connection Public Function getConexion() Try Kill Application.Path & "/test" ' clean the patch firts $conexionsqli = New Connection $conexionsqli.Type = "sqlite3" $conexionsqli.Name = Null ' doc said if null given memory db will be used and i create a db from now Try $conexionsqli.Open $conexionsqli.Databases.Add("test") ' so connected to memory db create a new db in given path ? how can i set the path? if the db arememory db? $conexionsqli.Close ' doc say: Otherwise, Host gives the database directory, and the database path is the result of concatenating Host and Name. $conexionsqli.Host = Application.Path $conexionsqli.Name = "test" Try $conexionsqli.Open If Error Then $conexionsqli = Null Endif 'Return $conexionsqli End From bugtracker at ...3416... Wed May 24 17:38:54 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 15:38:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1108&from=L21haW4- Comment #2 by Tobias BOEGE: You forgot to set $conexionsqli.Host = Application.Path before calling Databases.Add(). (Where did you expect the database to go without giving it a host?) Try this: Public Function getConexion() ' Clear directory Try Kill Application.Path & "/test" $conexionsqli = New Connection $conexionsqli.Type = "sqlite3" ' "Connect" to the host (i.e. the directory where we create the database) $conexionsqli.Host = Application.Path ' There is no database yet, so set Name = Null $conexionsqli.Name = Null $conexionsqli.Open() ' Add the database and close the connection $conexionsqli.Databases.Add("test") $conexionsqli.Close() ' Afterwards we can select the now-existing database $conexionsqli.Name = "test" $conexionsqli.Open() End Tobias BOEGE changed the state of the bug to: Invalid. From t.lee.davidson at ...626... Wed May 24 17:39:54 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 24 May 2017 11:39:54 -0400 Subject: [Gambas-user] XMLRPC-Server In-Reply-To: <6672c854-b4b5-1de8-6709-2b88b818ee68@...3219...> References: <6672c854-b4b5-1de8-6709-2b88b818ee68@...3219...> Message-ID: <3a614b5f-6e13-896c-7d94-5b7acab40900@...626...> On 05/24/2017 04:52 AM, Hans Lehmann wrote: > > Hello Lee, >> RpcServer.Listen relies on ServerSocket which is part of the gb.net component. The documentation does not specify that gb.net is >> required for gb.xml.rpc, but it apparently is. > That's exactly. The missing components were added. Thanks for the hint. > The source code for the XMLRPC client and the XMLRPC server is attached. The project works - but unfortunately not as a web > service - only locally. Where is the error? What should I do? > > Sincerely > Hans Hi Hans, The commonly used term, "web service", can be a bit misleading since not all services accessible over the web (internet) are necessarily served by a _web_ server. The gb.xml.rpc component is not designed to run 'through' a web server in the same manner that PHP web services do. This means that, in this case, the RPC service cannot be called simply by fetching a file. The service must _first_ be started on whatever machine is acting as the server. Then, a request can be made to the service, already listening on a specific port, by making a call to it in the form of http://ip_address:port. (PHP scripts must be executed by a web server which means the server is already running.) If you are wanting to be able to access an actual web service (PHP-style), then I believe you are using the wrong component(s). In that case, you should probably use gb.web for the server side and gb.net.curl's HttpClient for the client side. Your client/server application does indeed work just fine (even without gb.web and gb.net.curl), provided the server is started prior to making the call. -- Lee From bugtracker at ...3416... Wed May 24 17:59:04 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 15:59:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- Comment #2 by Tobias BOEGE: Are you sure that the checkboxes are read-only? For some time I had checkboxes in the IDE that looked read-only but weren't. They always displayed a check mark whether they were turned on or off. But apart from that they were working. Click on some of the checkboxes in the component tab and observe if that changes the component listing in the project's hidden ".project" file. If it does, the checkboxes only look read-only and it's probably something like a theming problem. (And on a side note, something I wanted to say to you for a long time: Please reconsider what "high priority" means. I for one have an email filter for high priority bugtracker mails and it's annoying that every one of your bug reports is caught by it. Especially here you present a problem and a solution which consists of the user setting an environment variable. This is not a high priority bug.) From fernandojosecabral at ...626... Wed May 24 18:07:46 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Wed, 24 May 2017 13:07:46 -0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: Beno?t says: > I'm not sure it's a mistake in rev 8132. Fernando must check with an > older revision to see if the problem comes from it. When the problem appeared, I downgraded to the version I had on the Mint repository. I did not work. So, whatever has changed (either on the operating system or on the gambas package), it affects present as well as previous versions. > Moreover, Glaucio says he has the problem with an older version of > Gambas, so... Same here. But, using a virtual machine, both older and newest versions work. Besides, I am using Mint 8.1 both in the real and virtual machines. Both are up to date. So, the operating system version itself is not the culprit. > I think it's a problem related to QT and the Xim input method. So I > suggest people to change their input method to see if something changes *.* *I don't know peanuts about Xinput method. That's why I have no tried any change on this* *front as yet.* *Regards* *- fernando * 2017-05-24 7:25 GMT-03:00 Beno?t Minisini : > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : > > We need to wait for Benoit as it's a misstake on the rev 8132. > > > > I'm not sure it's a mistake in rev 8132. Fernando must check with an > older revision to see if the problem comes from it. > > Moreover, Glaucio says he has the problem with an older version of > Gambas, so... > > I think it's a problem related to QT and the Xim input method. So I > suggest people to change their input method to see if something changes. > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From fernandojosecabral at ...626... Wed May 24 18:13:44 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Wed, 24 May 2017 13:13:44 -0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: Glaucio wrote: >I don't know, but, since it works in other systems than Xubuntu/Mint, I >guess that may be some environment variable missing. Could be an environment variable issue. But which variable? As far as I know, I did not change anything. So, if anything changed, it was changed stealthily by an unknown program. >With Benoit's script, for example, the TextEditor didn't worked here, but >the same component did work just fine running in Gambas' design time >test. Again, the difference, I guess, is pretty much just the execution >environment, or not? Only worked here on the virtual machine; not on the real machine. 2017-05-24 7:50 GMT-03:00 Glaucio Araujo : > I don't know, but, since it works in other systems than Xubuntu/Mint, I > guess that may be some environment variable missing. > > With Benoit's script, for exemple, the TextEditor didin't worked here, but > the same component did worked just fine running in Gambas' design time > test. Again, the difference, I guess, is pretty much just the execution > environment, or not? > > > > > --- > > Gl?ucio de Araujo > > Mail : glaucio.de.araujo at ...626... > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > 2017-05-24 7:25 GMT-03:00 Beno?t Minisini : > > > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : > > > We need to wait for Benoit as it's a misstake on the rev 8132. > > > > > > > I'm not sure it's a mistake in rev 8132. Fernando must check with an > > older revision to see if the problem comes from it. > > > > Moreover, Glaucio says he has the problem with an older version of > > Gambas, so... > > > > I think it's a problem related to QT and the Xim input method. So I > > suggest people to change their input method to see if something changes. > > > > -- > > Beno?t Minisini > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From bugtracker at ...3416... Wed May 24 19:25:30 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 17:25:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: do you see the attached image? (about if i sure) and yes pretty sure are unselectable.. but seems you do not see the image ... and as i said.. maybe will be user setting, but can be a pain if i cannot select the db component for release the project right? so if its high or not.. its high for me that spen a precious 4 hours finding the way of the problem right? From gambas.fr at ...626... Wed May 24 19:31:54 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 24 May 2017 19:31:54 +0200 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: can you describe your machine ? 2017-05-24 18:13 GMT+02:00 Fernando Cabral : > Glaucio wrote: >>I don't know, but, since it works in other systems than Xubuntu/Mint, I >>guess that may be some environment variable missing. > > Could be an environment variable issue. But which variable? As far as I > know, I did not change anything. So, if anything changed, it was changed > stealthily by an unknown program. > >>With Benoit's script, for example, the TextEditor didn't worked here, but >>the same component did work just fine running in Gambas' design time >>test. Again, the difference, I guess, is pretty much just the execution >>environment, or not? > > Only worked here on the virtual machine; not on the real machine. > > > 2017-05-24 7:50 GMT-03:00 Glaucio Araujo : > >> I don't know, but, since it works in other systems than Xubuntu/Mint, I >> guess that may be some environment variable missing. >> >> With Benoit's script, for exemple, the TextEditor didin't worked here, but >> the same component did worked just fine running in Gambas' design time >> test. Again, the difference, I guess, is pretty much just the execution >> environment, or not? >> >> >> >> >> --- >> >> Gl?ucio de Araujo >> >> Mail : glaucio.de.araujo at ...626... >> TIM : (11) 95900-7801 (WhatsApp / Telegram) >> >> 2017-05-24 7:25 GMT-03:00 Beno?t Minisini : >> >> > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : >> > > We need to wait for Benoit as it's a misstake on the rev 8132. >> > > >> > >> > I'm not sure it's a mistake in rev 8132. Fernando must check with an >> > older revision to see if the problem comes from it. >> > >> > Moreover, Glaucio says he has the problem with an older version of >> > Gambas, so... >> > >> > I think it's a problem related to QT and the Xim input method. So I >> > suggest people to change their input method to see if something changes. >> > >> > -- >> > Beno?t Minisini >> > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 > Telefone celular: +55 (37) 99988-8868 > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bugtracker at ...3416... Wed May 24 19:31:56 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 17:31:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1108: sqlite path when used with name does not create db in the given path In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1108&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: Thanks for the info tobias. so this bug its then invalid.. maybe a example in gambas wiki can iluminate the non-english users! From mckaygerhard at ...626... Wed May 24 19:33:40 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 13:33:40 -0400 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? In-Reply-To: References: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> Message-ID: umm any idea : how can i know if using odbc a DDL like CREATE or DROP TABLE was executed correctly without error , BUT using the result object and not a try/catch block! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-24 10:07 GMT-04:00 PICCORO McKAY Lenz : > please pardom me, i explain me better: > > i mean: how can i know if a DDL like CREATE or DROP TABLE was executed > correctly without error , using the result object and not a try/catch block! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-24 9:58 GMT-04:00 Beno?t Minisini : > >> Le 24/05/2017 ? 15:47, PICCORO McKAY Lenz a ?crit : >> >>> due the odbc does not provide a record count like mysql does (cos >>> provider >>> may o nor offer) on every sql query.. >>> >>> how we can know if a DDL sql (i mean a select, a dropt table, or a create >>> table) was excecuted using the result object and without a try catch >>> method? >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >> >> The record count is only for Result objects. So you should not get it for >> a CREATE or a DROP TABLE statement. >> >> A record count of -1 means that you have to use the MoveNext() method >> until the Available property is False to get each record. Once done, then >> you know how many records you get. >> >> I think the reason is that the underlying ODBC driver sends the result >> line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers) >> send all the lines by default. >> >> Maybe the ODBC driver should store the entire query result in memory to >> simulate a standard Result object when it is internally "move forward" only? >> >> -- >> Beno?t Minisini >> > > From bugtracker at ...3416... Wed May 24 20:00:09 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 18:00:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- Comment #4 by Tobias BOEGE: >do you see the attached image? (about if i sure) and yes pretty sure are unselectable.. but seems you do not see the image ... I saw the image and the left part of it is *exactly* how it looked in my case, where the checkboxes did not react visually to any user input but actually changed their checked-unchecked state internally when you clicked on them. This behaviour is something that an image of the checkboxes cannot document. But if your cause is different, there is nothing I can add to this bug report anymore. >its high for me that spen a precious 4 hours finding the way of the problem right? Sure it's high for you, but is it more important than all the other people's open medium- or low-priority bugs in the bugtracker right now? Before you or anyone else wastes another 4 hours next time because of unselectable components in the IDE, remember that you can always edit the .project file directly with a text editor to add or remove components. From bugtracker at ...3416... Wed May 24 20:15:14 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 18:15:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- Comment #5 by PICCORO LENZ MCKAY: umm its a problem, do you said that there's nothig to do in those cases? that the internal behaviour its correct but not the visual behaviour? i mean: how do i know as human visual normal guy, if the chekboxes are realy working if visually does not? i think, I do not say that it is the most important thing in the world, .. but I think that before this report many people find themselves in a great contrariety and an impediment to continue programming ... From criguada at ...626... Wed May 24 20:21:59 2017 From: criguada at ...626... (Cristiano Guadagnino) Date: Wed, 24 May 2017 20:21:59 +0200 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? In-Reply-To: References: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> Message-ID: PICCORO, the usual way to know if a sql statement succeeded or not is by checking the sqlcode. Negative sqlcodes indicate a problem. Odbc should support returning sqlcodes to the caller. Can you check if you have any sqlcodes returned to you in the results? Oh and btw... What's wrong with using a try/catch? Cris Il 24 mag 2017 7:35 PM, "PICCORO McKAY Lenz" ha scritto: > umm any idea : how can i know if using odbc a DDL like CREATE or DROP TABLE > was executed correctly without error , BUT using the result object and not > a try/catch block! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-24 10:07 GMT-04:00 PICCORO McKAY Lenz : > > > please pardom me, i explain me better: > > > > i mean: how can i know if a DDL like CREATE or DROP TABLE was executed > > correctly without error , using the result object and not a try/catch > block! > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-24 9:58 GMT-04:00 Beno?t Minisini > : > > > >> Le 24/05/2017 ? 15:47, PICCORO McKAY Lenz a ?crit : > >> > >>> due the odbc does not provide a record count like mysql does (cos > >>> provider > >>> may o nor offer) on every sql query.. > >>> > >>> how we can know if a DDL sql (i mean a select, a dropt table, or a > create > >>> table) was excecuted using the result object and without a try catch > >>> method? > >>> > >>> > >>> Lenz McKAY Gerardo (PICCORO) > >>> http://qgqlochekone.blogspot.com > >>> > >> > >> The record count is only for Result objects. So you should not get it > for > >> a CREATE or a DROP TABLE statement. > >> > >> A record count of -1 means that you have to use the MoveNext() method > >> until the Available property is False to get each record. Once done, > then > >> you know how many records you get. > >> > >> I think the reason is that the underlying ODBC driver sends the result > >> line by line, whereas the others (MySQL, PostgreSQL and SQLite drivers) > >> send all the lines by default. > >> > >> Maybe the ODBC driver should store the entire query result in memory to > >> simulate a standard Result object when it is internally "move forward" > only? > >> > >> -- > >> Beno?t Minisini > >> > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Wed May 24 20:30:16 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 14:30:16 -0400 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? In-Reply-To: References: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> Message-ID: 2017-05-24 14:21 GMT-04:00 Cristiano Guadagnino : > PICCORO, the usual way to know if a sql statement succeeded or not is by > checking the sqlcode. > Negative sqlcodes indicate a problem. > Odbc should support returning sqlcodes to the caller. > Can you check if you have any sqlcodes returned to you in the results? > oh men i not cheked that.. i asumed always return -1 lest try and report feedback here! > Oh and btw... What's wrong with using a try/catch? > > Cris > > > Il 24 mag 2017 7:35 PM, "PICCORO McKAY Lenz" ha > scritto: > > > umm any idea : how can i know if using odbc a DDL like CREATE or DROP > TABLE > > was executed correctly without error , BUT using the result object and > not > > a try/catch block! > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-24 10:07 GMT-04:00 PICCORO McKAY Lenz : > > > > > please pardom me, i explain me better: > > > > > > i mean: how can i know if a DDL like CREATE or DROP TABLE was executed > > > correctly without error , using the result object and not a try/catch > > block! > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > > > > 2017-05-24 9:58 GMT-04:00 Beno?t Minisini < > gambas at ...1...> > > : > > > > > >> Le 24/05/2017 ? 15:47, PICCORO McKAY Lenz a ?crit : > > >> > > >>> due the odbc does not provide a record count like mysql does (cos > > >>> provider > > >>> may o nor offer) on every sql query.. > > >>> > > >>> how we can know if a DDL sql (i mean a select, a dropt table, or a > > create > > >>> table) was excecuted using the result object and without a try catch > > >>> method? > > >>> > > >>> > > >>> Lenz McKAY Gerardo (PICCORO) > > >>> http://qgqlochekone.blogspot.com > > >>> > > >> > > >> The record count is only for Result objects. So you should not get it > > for > > >> a CREATE or a DROP TABLE statement. > > >> > > >> A record count of -1 means that you have to use the MoveNext() method > > >> until the Available property is False to get each record. Once done, > > then > > >> you know how many records you get. > > >> > > >> I think the reason is that the underlying ODBC driver sends the result > > >> line by line, whereas the others (MySQL, PostgreSQL and SQLite > drivers) > > >> send all the lines by default. > > >> > > >> Maybe the ODBC driver should store the entire query result in memory > to > > >> simulate a standard Result object when it is internally "move forward" > > only? > > >> > > >> -- > > >> Beno?t Minisini > > >> > > > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 24 20:32:20 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 24 May 2017 20:32:20 +0200 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? In-Reply-To: References: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> Message-ID: <5b1b1838-7317-a2f5-b8d6-c721f68da4c9@...1...> Le 24/05/2017 ? 20:30, PICCORO McKAY Lenz a ?crit : > 2017-05-24 14:21 GMT-04:00 Cristiano Guadagnino : > >> PICCORO, the usual way to know if a sql statement succeeded or not is by >> checking the sqlcode. >> Negative sqlcodes indicate a problem. >> Odbc should support returning sqlcodes to the caller. >> Can you check if you have any sqlcodes returned to you in the results? >> > oh men i not cheked that.. i asumed always return -1 > > lest try and report feedback here! > > >> Oh and btw... What's wrong with using a try/catch? >> >> Cris >> Failing SQL statements must raise en error that you have to catch with the TRY or CATCH instructions. Regards, -- Beno?t Minisini From mckaygerhard at ...626... Wed May 24 20:39:36 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 14:39:36 -0400 Subject: [Gambas-user] error in gambaswiki for connection Message-ID: i have an error when consulting the docs inside the ide: Null object at line #1: Stack backtrace: Wiki._PrintPage.196 Wiki.Wiki.0 WebPage.__Render.31 WebPage.Render.56 Main.Main.685 gb / connection[] / add this happened with that code: Dim conexciones As New Connection[] conexciones.Add <--- here its the resulting broken wiki link when pupup happened! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From t.lee.davidson at ...626... Wed May 24 22:43:09 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Wed, 24 May 2017 16:43:09 -0400 Subject: [Gambas-user] gb.debug: Unable to open fifo In-Reply-To: <20170523220726.GC575@...3600...> References: <6a37180e-7573-516f-ca7f-2c2a0176077c@...626...> <20170523220726.GC575@...3600...> Message-ID: On 05/23/2017 06:07 PM, Tobias Boege wrote: > On Tue, 23 May 2017, T Lee Davidson wrote: >> Hello folks, >> >> I am trying to see if gb.debug will help me diagnose why HttpClient does not properly expose redirect response codes on my >> system (and reportedly Tobi's system) while it does so correctly on Beno?t's system. >> >> However, the documentation for gb.debug is so sparse that I am having to experiment and, of course, having a problem. >> >> With the following command-line application code (using the gb.debug component): >> ' Gambas module file >> >> Public Sub Main() >> >> Dim sName As String >> >> sName = Debug.Begin() >> Print sName >> Debug.Start ' Unable to open fifo >> Debug.Write("Hello world") >> Debug.Stop >> Debug.End >> >> End >> >> Public Sub Debug_Read(Data As String) >> >> Print Data >> >> End >> ' End Gambas module file >> >> Debug.Start causes an exception: "Unable to open fifo". By looking in /tmp/gambas.1000/, I can see that the process id input and >> output pipes are successfully created with the correct file mode permissions (600) for my user as owner. But, the Start >> procedure apparently cannot open the output fifo (ref. >> https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c). >> >> Am I attempting to use this component incorrectly? >> > > I think you're attempting to use the wrong component. gb.debug is meant for > the Gambas IDE to debug a Gambas project. You can look at the source code of > the IDE to try to figure out how to use it. I don't understand its protocol > at all. My wild guess is that your error comes from not having started the > application in debug mode (gbx3 -g)? > > In any case, I doubt debugging your *Gambas* code will give you any insight > into the gb.net.curl issue, as gb.net.curl and curl itself are not written > in Gambas. > > Regards, > Tobi > Thank you for your response, Tobi. I was actually running the application from within the IDE. Making an executable and then executing that with "gbx3 -g" resulted in: Welcome to the Gambas debugger. *[15488] ? followed by the greater-than symbol (>) which is obviously an input prompt. "OK, now what?" (Since I find no documentation for gbx3.) Typing "help" at the prompt gave, "W Unknown command: help". Hmmm ... maybe "step"? Ooo, that does something: > step *[15488] Main.Main.7 sName S: s: > step *[15488] Main.Main.8 sName S: s: > step 15488 *[15488] Main.Main.9 sName S: s: > step *[15488] Unable to open fifo Main.Main.9 sName S: s: And I discovered that there is a "quit" command that works too. Given that Debug.Begin creates pipe files named according to the current process' ID (PID) and that the IDE and the executable would always have different PIDs, I cannot fathom how the two could "talk". Nor do I, at this point, have any clue whatsoever how the gb.debug component is intended to be used. I was hoping it might give me access to the running properties of the HttpClient object. But, I am not going to spend any more time on this groping in the dark. I'll just have to look in a different direction, or wait until the issue somehow magically fixes itself. -- Lee From gambas at ...1... Wed May 24 22:49:34 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 24 May 2017 22:49:34 +0200 Subject: [Gambas-user] gb.debug: Unable to open fifo In-Reply-To: References: <6a37180e-7573-516f-ca7f-2c2a0176077c@...626...> <20170523220726.GC575@...3600...> Message-ID: <5ef46b26-250e-8d26-9143-6ef830b7b0b2@...1...> Le 24/05/2017 ? 22:43, T Lee Davidson a ?crit : > On 05/23/2017 06:07 PM, Tobias Boege wrote: >> On Tue, 23 May 2017, T Lee Davidson wrote: >>> Hello folks, >>> >>> I am trying to see if gb.debug will help me diagnose why HttpClient does not properly expose redirect response codes on my >>> system (and reportedly Tobi's system) while it does so correctly on Beno?t's system. >>> >>> However, the documentation for gb.debug is so sparse that I am having to experiment and, of course, having a problem. >>> >>> With the following command-line application code (using the gb.debug component): >>> ' Gambas module file >>> >>> Public Sub Main() >>> >>> Dim sName As String >>> >>> sName = Debug.Begin() >>> Print sName >>> Debug.Start ' Unable to open fifo >>> Debug.Write("Hello world") >>> Debug.Stop >>> Debug.End >>> >>> End >>> >>> Public Sub Debug_Read(Data As String) >>> >>> Print Data >>> >>> End >>> ' End Gambas module file >>> >>> Debug.Start causes an exception: "Unable to open fifo". By looking in /tmp/gambas.1000/, I can see that the process id input and >>> output pipes are successfully created with the correct file mode permissions (600) for my user as owner. But, the Start >>> procedure apparently cannot open the output fifo (ref. >>> https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/lib/debug/CDebug.c). >>> >>> Am I attempting to use this component incorrectly? >>> >> >> I think you're attempting to use the wrong component. gb.debug is meant for >> the Gambas IDE to debug a Gambas project. You can look at the source code of >> the IDE to try to figure out how to use it. I don't understand its protocol >> at all. My wild guess is that your error comes from not having started the >> application in debug mode (gbx3 -g)? >> >> In any case, I doubt debugging your *Gambas* code will give you any insight >> into the gb.net.curl issue, as gb.net.curl and curl itself are not written >> in Gambas. >> >> Regards, >> Tobi >> > > Thank you for your response, Tobi. > > I was actually running the application from within the IDE. Making an executable and then executing that with "gbx3 -g" resulted in: > Welcome to the Gambas debugger. > *[15488] ? > > followed by the greater-than symbol (>) which is obviously an input prompt. "OK, now what?" (Since I find no documentation > for gbx3.) > > Typing "help" at the prompt gave, "W Unknown command: help". Hmmm ... maybe "step"? Ooo, that does something: > > > step > *[15488] Main.Main.7 sName S: s: > > step > *[15488] Main.Main.8 sName S: s: > > > step > 15488 > > *[15488] Main.Main.9 sName S: s: > > > step > *[15488] Unable to open fifo Main.Main.9 sName S: s: > > And I discovered that there is a "quit" command that works too. > > Given that Debug.Begin creates pipe files named according to the current process' ID (PID) and that the IDE and the executable > would always have different PIDs, I cannot fathom how the two could "talk". Nor do I, at this point, have any clue whatsoever > how the gb.debug component is intended to be used. > > I was hoping it might give me access to the running properties of the HttpClient object. But, I am not going to spend any more > time on this groping in the dark. I'll just have to look in a different direction, or wait until the issue somehow magically > fixes itself. > > You have no need of the internal debugger interface, as everything you can do with it, you can do the same from the IDE. You don't have access to the internal of the HttpClient object, unless you debug the interpreter with gdb (it's written in C). But you can set the Debug property of the object to get the debugging messages of the libcurl library, HttpClient being just a thin wrapper on libcurl. Regards, -- Beno?t Minisini From bugtracker at ...3416... Wed May 24 23:01:04 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 21:01:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- Comment #6 by Beno?t MINISINI: I still do not understand your English. Try to find a friend that can help you for that Anyway, the MYSQL_OPT_RECONNECT option is automatically set when you use the gb.db.mysql database driver. No idea why people are talking about ODBC... And you have a Timeout property in the Connection object to define the MySQL connection timemout. From bugtracker at ...3416... Wed May 24 23:02:52 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 21:02:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- Comment #6 by Beno?t MINISINI: It's a bug in the widget style in use. Change the widget theme of QT4 (or QT5, depending on the library installed on your system). From mckaygerhard at ...626... Wed May 24 23:11:32 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 17:11:32 -0400 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! Message-ID: i change the odbc code for huge data to transport only two objects with a string, and i noted that gambas before hangs sometimes... so i discovered that when i used collections the memory management are very bad.. should i send a bug or where i start to see why this happened or its only happened only to me! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From bugtracker at ...3416... Wed May 24 23:29:55 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 21:29:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1106&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Invalid. From jussi.lahtinen at ...626... Wed May 24 23:31:06 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 00:31:06 +0300 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: Impossible to say anything without seeing the code, which causes the problem. Jussi On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz wrote: > i change the odbc code for huge data to transport only two objects with a > string, and i noted that gambas before hangs sometimes... so i discovered > that when i used collections the memory management are very bad.. > > should i send a bug or where i start to see why this happened or its only > happened only to me! > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Wed May 24 23:31:50 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 24 May 2017 23:31:50 +0200 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: <3f88ce50-cbca-3192-eeba-a240f0364b4d@...1...> Le 24/05/2017 ? 23:11, PICCORO McKAY Lenz a ?crit : > i change the odbc code for huge data to transport only two objects with a > string, and i noted that gambas before hangs sometimes... so i discovered > that when i used collections the memory management are very bad.. > > should i send a bug or where i start to see why this happened or its only > happened only to me! > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com No idea, we are not inside your head. Anyway, programming badly is not considered as a bug in the language. :-) -- Beno?t Minisini From bugtracker at ...3416... Wed May 24 23:33:03 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 21:33:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1106&from=L21haW4- Comment #1 by Daniel BLANCH BATALLER: Invalid. Why? Thanks, Daniel From bugtracker at ...3416... Wed May 24 23:40:39 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 21:40:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1106&from=L21haW4- Comment #2 by Beno?t MINISINI: Because the bug was created twice (see bug #1107) From bugtracker at ...3416... Wed May 24 23:44:07 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 24 May 2017 21:44:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1106: XmlElement.GetChildrenByTagName does get parent too if tag is the same In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1106&from=L21haW4- Comment #3 by Daniel BLANCH BATALLER: Oh sorry. thanks! From jussi.lahtinen at ...626... Wed May 24 23:54:08 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 00:54:08 +0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: Do you have ~/.xinputrc ? I think you can just change "run_im xim" to "run_im scim", or create the file with latter line, if it doesn't exist. Then you need to log out and log in. I suggest to try this with virtual machine first or with different user. So that it is easy to change things back, if something goes wrong. Jussi On Wed, May 24, 2017 at 7:13 PM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > Glaucio wrote: > >I don't know, but, since it works in other systems than Xubuntu/Mint, I > >guess that may be some environment variable missing. > > Could be an environment variable issue. But which variable? As far as I > know, I did not change anything. So, if anything changed, it was changed > stealthily by an unknown program. > > >With Benoit's script, for example, the TextEditor didn't worked here, but > >the same component did work just fine running in Gambas' design time > >test. Again, the difference, I guess, is pretty much just the execution > >environment, or not? > > Only worked here on the virtual machine; not on the real machine. > > > 2017-05-24 7:50 GMT-03:00 Glaucio Araujo : > > > I don't know, but, since it works in other systems than Xubuntu/Mint, I > > guess that may be some environment variable missing. > > > > With Benoit's script, for exemple, the TextEditor didin't worked here, > but > > the same component did worked just fine running in Gambas' design time > > test. Again, the difference, I guess, is pretty much just the execution > > environment, or not? > > > > > > > > > > --- > > > > Gl?ucio de Araujo > > > > Mail : glaucio.de.araujo at ...626... > > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > > > 2017-05-24 7:25 GMT-03:00 Beno?t Minisini > : > > > > > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : > > > > We need to wait for Benoit as it's a misstake on the rev 8132. > > > > > > > > > > I'm not sure it's a mistake in rev 8132. Fernando must check with an > > > older revision to see if the problem comes from it. > > > > > > Moreover, Glaucio says he has the problem with an older version of > > > Gambas, so... > > > > > > I think it's a problem related to QT and the Xim input method. So I > > > suggest people to change their input method to see if something > changes. > > > > > > -- > > > Beno?t Minisini > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 > Telefone celular: +55 (37) 99988-8868 > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu May 25 01:31:53 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 02:31:53 +0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: Please post the replies to the list, so that Benoit will see them. I don't know enough about the topic. Jussi On Thu, May 25, 2017 at 1:46 AM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > 2017-05-24 18:54 GMT-03:00 Jussi Lahtinen : > >> Do you have ~/.xinputrc ? >> I think you can just change "run_im xim" to "run_im scim", or create the >> file with latter line, if it doesn't exist. Then you need to log out and >> log in. >> I suggest to try this with virtual machine first or with different user. >> So that it is easy to change things back, if something goes wrong. >> > Did that. So, here are the results: > 1) Virtual machine. No ~/.xinputrc -- Gambas works fine > 2) Real machine. No ~/.xinputrc -- Gambas does not work, even as root > 3) Real machine. With ~/.xinputrc original (run_im xim) -- Gambas does not > work with a regular user, but runs as root > 4) Real machine. With ~/.xinputrc modified to run_im scim -- Gambas does > not work even as root. The Brazilian keyboard stopped generating diacritics. > > Regards > > - fernando > >> >> >> >> Jussi >> >> On Wed, May 24, 2017 at 7:13 PM, Fernando Cabral < >> fernandojosecabral at ...626...> wrote: >> >>> Glaucio wrote: >>> >I don't know, but, since it works in other systems than Xubuntu/Mint, I >>> >guess that may be some environment variable missing. >>> >>> Could be an environment variable issue. But which variable? As far as I >>> know, I did not change anything. So, if anything changed, it was changed >>> stealthily by an unknown program. >>> >>> >With Benoit's script, for example, the TextEditor didn't worked here, >>> but >>> >the same component did work just fine running in Gambas' design time >>> >test. Again, the difference, I guess, is pretty much just the execution >>> >environment, or not? >>> >>> Only worked here on the virtual machine; not on the real machine. >>> >>> >>> 2017-05-24 7:50 GMT-03:00 Glaucio Araujo : >>> >>> > I don't know, but, since it works in other systems than Xubuntu/Mint, I >>> > guess that may be some environment variable missing. >>> > >>> > With Benoit's script, for exemple, the TextEditor didin't worked here, >>> but >>> > the same component did worked just fine running in Gambas' design time >>> > test. Again, the difference, I guess, is pretty much just the execution >>> > environment, or not? >>> > >>> > >>> > >>> > >>> > --- >>> > >>> > Gl?ucio de Araujo >>> > >>> > Mail : glaucio.de.araujo at ...626... >>> > TIM : (11) 95900-7801 (WhatsApp / Telegram) >>> > >>> > 2017-05-24 7:25 GMT-03:00 Beno?t Minisini < >>> gambas at ...1...>: >>> > >>> > > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : >>> > > > We need to wait for Benoit as it's a misstake on the rev 8132. >>> > > > >>> > > >>> > > I'm not sure it's a mistake in rev 8132. Fernando must check with an >>> > > older revision to see if the problem comes from it. >>> > > >>> > > Moreover, Glaucio says he has the problem with an older version of >>> > > Gambas, so... >>> > > >>> > > I think it's a problem related to QT and the Xim input method. So I >>> > > suggest people to change their input method to see if something >>> changes. >>> > > >>> > > -- >>> > > Beno?t Minisini >>> > > >>> > > ------------------------------------------------------------ >>> > > ------------------ >>> > > Check out the vibrant tech community on one of the world's most >>> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> > > _______________________________________________ >>> > > Gambas-user mailing list >>> > > Gambas-user at lists.sourceforge.net >>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > > >>> > ------------------------------------------------------------ >>> > ------------------ >>> > Check out the vibrant tech community on one of the world's most >>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > >>> >>> >>> >>> -- >>> Fernando Cabral >>> Blogue: http://fernandocabral.org >>> Twitter: http://twitter.com/fjcabral >>> e-mail : fernandojosecabral at ...626... >>> Facebook: f at ...3654... >>> Telegram: +55 (37) 99988-8868 >>> Wickr ID: fernandocabral >>> WhatsApp: +55 (37) 99988-8868 >>> Skype: fernandojosecabral >>> Telefone fixo: +55 (37) 3521-2183 >>> Telefone celular: +55 (37) 99988-8868 >>> >>> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >>> nenhum pol?tico ou cientista poder? se gabar de nada. >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> > > > -- > Fernando Cabral > Blogue: http://fernandocabral.org > Twitter: http://twitter.com/fjcabral > e-mail: fernandojosecabral at ...626... > Facebook: f at ...3654... > Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Wickr ID: fernandocabral > WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> > Skype: fernandojosecabral > Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> > Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > nenhum pol?tico ou cientista poder? se gabar de nada. > > From fernandojosecabral at ...626... Thu May 25 02:04:05 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Wed, 24 May 2017 21:04:05 -0300 Subject: [Gambas-user] =?utf-8?q?=E2=80=8B_Re=3A_Keyboard_locked_--_insist?= =?utf-8?q?ing_one_more_time?= In-Reply-To: References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: 2017-05-24 20:31 GMT-03:00 Jussi Lahtinen : > Please post the replies to the list, so that Benoit will see them. I don't > know enough about the topic. > Sorry. I thought I had. > > > Jussi > > On Thu, May 25, 2017 at 1:46 AM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > >> 2017-05-24 18:54 GMT-03:00 Jussi Lahtinen : >> >>> Do you have ~/.xinputrc ? >>> I think you can just change "run_im xim" to "run_im scim", or create the >>> file with latter line, if it doesn't exist. Then you need to log out and >>> log in. >>> I suggest to try this with virtual machine first or with different user. >>> So that it is easy to change things back, if something goes wrong. >>> >> Did that. So, here are the results: >> 1) Virtual machine. No ~/.xinputrc -- Gambas works fine >> 2) Real machine. No ~/.xinputrc -- Gambas does not work, even as root >> 3) Real machine. With ~/.xinputrc original (run_im xim) -- Gambas does >> not work with a regular user, but runs as root >> 4) Real machine. With ~/.xinputrc modified to run_im scim -- Gambas does >> not work even as root. The Brazilian keyboard stopped generating diacritics. >> >> Regards >> >> - fernando >> >>> >>> >>> >>> Jussi >>> >>> On Wed, May 24, 2017 at 7:13 PM, Fernando Cabral < >>> fernandojosecabral at ...626...> wrote: >>> >>>> Glaucio wrote: >>>> >I don't know, but, since it works in other systems than Xubuntu/Mint, I >>>> >guess that may be some environment variable missing. >>>> >>>> Could be an environment variable issue. But which variable? As far as I >>>> know, I did not change anything. So, if anything changed, it was changed >>>> stealthily by an unknown program. >>>> >>>> >With Benoit's script, for example, the TextEditor didn't worked here, >>>> but >>>> >the same component did work just fine running in Gambas' design time >>>> >test. Again, the difference, I guess, is pretty much just the execution >>>> >environment, or not? >>>> >>>> Only worked here on the virtual machine; not on the real machine. >>>> >>>> >>>> 2017-05-24 7:50 GMT-03:00 Glaucio Araujo : >>>> >>>> > I don't know, but, since it works in other systems than Xubuntu/Mint, >>>> I >>>> > guess that may be some environment variable missing. >>>> > >>>> > With Benoit's script, for exemple, the TextEditor didin't worked >>>> here, but >>>> > the same component did worked just fine running in Gambas' design time >>>> > test. Again, the difference, I guess, is pretty much just the >>>> execution >>>> > environment, or not? >>>> > >>>> > >>>> > >>>> > >>>> > --- >>>> > >>>> > Gl?ucio de Araujo >>>> > >>>> > Mail : glaucio.de.araujo at ...626... >>>> > TIM : (11) 95900-7801 (WhatsApp / Telegram) >>>> > >>>> > 2017-05-24 7:25 GMT-03:00 Beno?t Minisini < >>>> gambas at ...1...>: >>>> > >>>> > > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : >>>> > > > We need to wait for Benoit as it's a misstake on the rev 8132. >>>> > > > >>>> > > >>>> > > I'm not sure it's a mistake in rev 8132. Fernando must check with an >>>> > > older revision to see if the problem comes from it. >>>> > > >>>> > > Moreover, Glaucio says he has the problem with an older version of >>>> > > Gambas, so... >>>> > > >>>> > > I think it's a problem related to QT and the Xim input method. So I >>>> > > suggest people to change their input method to see if something >>>> changes. >>>> > > >>>> > > -- >>>> > > Beno?t Minisini >>>> > > >>>> > > ------------------------------------------------------------ >>>> > > ------------------ >>>> > > Check out the vibrant tech community on one of the world's most >>>> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> > > _______________________________________________ >>>> > > Gambas-user mailing list >>>> > > Gambas-user at lists.sourceforge.net >>>> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > > >>>> > ------------------------------------------------------------ >>>> > ------------------ >>>> > Check out the vibrant tech community on one of the world's most >>>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> > _______________________________________________ >>>> > Gambas-user mailing list >>>> > Gambas-user at lists.sourceforge.net >>>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> > >>>> >>>> >>>> >>>> -- >>>> Fernando Cabral >>>> Blogue: http://fernandocabral.org >>>> Twitter: http://twitter.com/fjcabral >>>> e-mail : >>>> fernandojosecabral at ...626... >>>> Facebook: f at ...3654... >>>> Telegram: +55 (37) 99988-8868 >>>> Wickr ID: fernandocabral >>>> WhatsApp: +55 (37) 99988-8868 >>>> Skype: fernandojosecabral >>>> Telefone fixo: +55 (37) 3521-2183 >>>> Telefone celular: +55 (37) 99988-8868 >>>> >>>> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >>>> nenhum pol?tico ou cientista poder? se gabar de nada. >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >> >> >> -- >> Fernando Cabral >> Blogue: http://fernandocabral.org >> Twitter: http://twitter.com/fjcabral >> e-mail: fernandojosecabral at ...626... >> Facebook: f at ...3654... >> Telegram: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Wickr ID: fernandocabral >> WhatsApp: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> Skype: fernandojosecabral >> Telefone fixo: +55 (37) 3521-2183 <+55%2037%203521-2183> >> Telefone celular: +55 (37) 99988-8868 <+55%2037%2099988-8868> >> >> Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, >> nenhum pol?tico ou cientista poder? se gabar de nada. >> >> > -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From mckaygerhard at ...626... Thu May 25 05:00:37 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 24 May 2017 22:30:37 -0430 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: there are the piece of code and here there's no secret: Public Function getItems() As Collection Dim $items As New Collection Dim itema, itemb as String = "something" $items.Add($itema, "item1") $items.Add($itemb, "item2") $items.Add(2, "cuantos") Return $items End here the previous code "bad programed" and when i swicht to collection gambas ide get slower after some time, the code was: Public Function getItems() As String[] Dim $items As New String[] Dim itema, itemb as String = "something" $items.Add($itema) $items.Add($itemb) Return $items End the gambas ide and the OS was not shutdown during 40 days, also the gambas ide was not quit in this period, and in that period i run the huge data code of the 3 odbc bug with 100000 registers, after change the code to collection (each change are little before test) thje ide gambas get slow and does not run well.. this happened to my other partners in the job... i test also in debian jeesie and happened same! i noted that when alone user said something its like "nothigs its happened, its just bad programer" will need other to reports, but these other do not have time to make a little project and report that.. sqlite was severi broken until gambas 3.6 and must be rewrite for gambas 3.8 now in gamba 3.9 ther's some doc-online problems with cache and some memory manage problems.. but for not specialized programmers its very difficult to debug, find and report LIKE THE QT problem.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : > Impossible to say anything without seeing the code, which causes the > problem. > > > Jussi > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > mckaygerhard at ...626... > > wrote: > > > i change the odbc code for huge data to transport only two objects with a > > string, and i noted that gambas before hangs sometimes... so i discovered > > that when i used collections the memory management are very bad.. > > > > should i send a bug or where i start to see why this happened or its only > > happened only to me! > > > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Thu May 25 05:06:46 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 25 May 2017 03:06:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1107: project components unselectable if not qt4 libs complety installed In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1107&from=L21haW4- Comment #7 by PICCORO LENZ MCKAY: that its a better response for those guys just begin in the gambas world, so that problem happened to me and other before, but send a report or ask in mail list its very tedious.. not like a forum or a google search with lot of solutions... mark the problem as upstream and not possible to solved from gambas, due relies in the qt style selected! PICCORO LENZ MCKAY changed the state of the bug to: Upstream. From shordi at ...626... Thu May 25 10:16:59 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 25 May 2017 10:16:59 +0200 Subject: [Gambas-user] An Issue With Shell command and sudoers rules Message-ID: In our company, users are "standard" users, they can't update or make administratives jobs. There is another user (the admin user) that can do all that things... but users doesn't know the admin password. Searching make standard users being able of update the sistem I've created this script on adminuser home /home/adminuser/bin/comando.sh #!/bin/bash echo $1|sudo -S $2 And I've add a new rules file in sudoers.d like this Cmnd_Alias COMANDO = /home/adminuser/bin/comando.sh ALL ALL = (adminuser) NOPASSWD:COMANDO If you, as a non-sudoer user, type on a terminal /home/administrador/bin/comando.sh adminpassword /usr/bin/apt update works fine... but, *and this is the issue*, if you do the same from a Gambas Shell command, doesn't work. Gamba's console show that the script is asking for you (non sudoer) password and fails. Seems that Gambas shell doesn't mind of sudoers directives. I am missing something? Best Regards From shordi at ...626... Thu May 25 11:13:04 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 25 May 2017 11:13:04 +0200 Subject: [Gambas-user] An Issue With Shell command and sudoers rules In-Reply-To: References: Message-ID: Oh... well, I'm afraid that I've a mistake. All of this isn't a gambas issue. BUT if someone knows a way to let a non-sudoer user to update the system without know the admin password I'll be very grateful . Sorry for the noise. Best Regards 2017-05-25 10:16 GMT+02:00 Jorge Carri?n : > In our company, users are "standard" users, they can't update or make > administratives jobs. There is another user (the admin user) that can do > all that things... but users doesn't know the admin password. > Searching make standard users being able of update the sistem I've created > this script > on adminuser home /home/adminuser/bin/comando.sh > > #!/bin/bash > echo $1|sudo -S $2 > > And I've add a new rules file in sudoers.d like this > > Cmnd_Alias COMANDO = /home/adminuser/bin/comando.sh > > ALL ALL = (adminuser) NOPASSWD:COMANDO > > If you, as a non-sudoer user, type on a terminal > > /home/administrador/bin/comando.sh adminpassword /usr/bin/apt update > > works fine... but, *and this is the issue*, if you do the same from a > Gambas Shell command, doesn't work. Gamba's console show that the script is > asking for you (non sudoer) password and fails. > > Seems that Gambas shell doesn't mind of sudoers directives. I am missing > something? > > Best Regards > > From unaiseek at ...626... Thu May 25 11:22:35 2017 From: unaiseek at ...626... (Unaise EK) Date: Thu, 25 May 2017 14:52:35 +0530 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: can you give example for DO WHILE NOT database EOF Loop Sent with Mailtrack On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz wrote: > there are the piece of code and here there's no secret: > > Public Function getItems() As Collection > > Dim $items As New Collection > Dim itema, itemb as String = "something" > > $items.Add($itema, "item1") > $items.Add($itemb, "item2") > $items.Add(2, "cuantos") > > Return $items > > End > > here the previous code "bad programed" and when i swicht to collection > gambas ide get slower after some time, the code was: > > Public Function getItems() As String[] > > Dim $items As New String[] > Dim itema, itemb as String = "something" > > $items.Add($itema) > $items.Add($itemb) > > Return $items > > End > > the gambas ide and the OS was not shutdown during 40 days, also the gambas > ide was not quit in this period, and in that period i run the huge data > code of the 3 odbc bug with 100000 registers, after change the code to > collection (each change are little before test) thje ide gambas get slow > and does not run well.. > > this happened to my other partners in the job... i test also in debian > jeesie and happened same! > > i noted that when alone user said something its like "nothigs its happened, > its just bad programer" > > will need other to reports, but these other do not have time to make a > little project and report that.. > > sqlite was severi broken until gambas 3.6 and must be rewrite for gambas > 3.8 > > now in gamba 3.9 ther's some doc-online problems with cache and some memory > manage problems.. > > but for not specialized programmers its very difficult to debug, find and > report LIKE THE QT problem.. > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : > > > Impossible to say anything without seeing the code, which causes the > > problem. > > > > > > Jussi > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > mckaygerhard at ...626... > > > wrote: > > > > > i change the odbc code for huge data to transport only two objects > with a > > > string, and i noted that gambas before hangs sometimes... so i > discovered > > > that when i used collections the memory management are very bad.. > > > > > > should i send a bug or where i start to see why this happened or its > only > > > happened only to me! > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- M. Unaise. E.K 9895687604 Librarian, (BLISc, MLIS) JDT Islam Polytechnic College, Vellimadukunnu. From unaiseek at ...626... Thu May 25 11:24:13 2017 From: unaiseek at ...626... (Unaise EK) Date: Thu, 25 May 2017 14:54:13 +0530 Subject: [Gambas-user] Gambas-user Digest, Vol 132, Issue 29 In-Reply-To: References: Message-ID: this is my code for displaying data in listbox, but it did not working, pls help Public Procedure AddList() Dim ListQurey As String Dim Lresult As Result ListQurey = "SELECT name FROM name_tbl" Lresult = MODMain.MyConn.Exec(ListQurey) If Lresult.Count > 0 Then * Do While Not Eof(Lresult)* ListBox1.Add(Lresult!"name") Lresult.MoveNext Loop Endif End Sent with Mailtrack On Wed, May 24, 2017 at 10:26 AM, Dimitris Anogiatis wrote: > Does the same behavior occur with a wired keyboard (not your wireless > Logitech K330)? > > On Tue, May 16, 2017 at 3:48 AM, Glaucio Araujo < > glaucio.de.araujo at ...626... > > wrote: > > > Hi, Jussi > > > > > > My Xorg.0.log is in ~/.local/share/xorg/ > > > > Log attached. > > > > My Xinput: > > > > > > gda at ...3657...:~$ xinput list > > ? Virtual core pointer id=2 [master pointer > (3)] > > ? ? Virtual core XTEST pointer id=4 [slave pointer > > (2)] > > ? ? Logitech M215 2nd Gen id=11 [slave > pointer > > (2)] > > ? ? Logitech K330 id=10 [slave > pointer > > (2)] > > ? ? ETPS/2 Elantech Touchpad id=13 [slave > pointer > > (2)] > > ? Virtual core keyboard id=3 [master keyboard > (2)] > > ? Virtual core XTEST keyboard id=5 [slave > keyboard > > (3)] > > ? Power Button id=6 [slave > keyboard > > (3)] > > ? Video Bus id=7 [slave > keyboard > > (3)] > > ? Power Button id=8 [slave > keyboard > > (3)] > > ? Sleep Button id=9 [slave > keyboard > > (3)] > > ? AT Translated Set 2 keyboard id=12 [slave > keyboard > > (3)] > > ? Acer WMI hotkeys id=14 [slave > keyboard > > (3)] > > ? Logitech K330 id=15 [slave > keyboard > > (3)] > > ? HD WebCam id=16 [slave > keyboard > > (3)] > > > > > > > > > > > > > > --- > > > > Gl?ucio de Araujo > > > > Mail : glaucio.de.araujo at ...626... > > TIM : (11) 95900-7801 (WhatsApp / Telegram) > > > > > > Date: Mon, 15 May 2017 23:54:16 +0300 > > > From: Jussi Lahtinen > > > Subject: Re: [Gambas-user] Keyboard locked -- insisting one more time > > > To: fernando at ...3654..., mailing list for gambas users > > > > > > Message-ID: > > > > > gmail.com> > > > Content-Type: text/plain; charset="UTF-8" > > > > > > Can you both send Xorg.0.log (usually in /var/log/)? > > > > > > > > > Jussi > > > > > > > > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- M. Unaise. E.K 9895687604 Librarian, (BLISc, MLIS) JDT Islam Polytechnic College, Vellimadukunnu. From unaiseek at ...626... Thu May 25 11:29:27 2017 From: unaiseek at ...626... (Unaise EK) Date: Thu, 25 May 2017 14:59:27 +0530 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: this is my code for displaying data in listbox, but it did not working, pls help Public Procedure AddList() Dim ListQurey As String Dim Lresult As Result ListQurey = "SELECT name FROM name_tbl" Lresult = MODMain.MyConn.Exec(ListQurey) If Lresult.Count > 0 Then * Do While Not Eof(Lresult)* ListBox1.Add(Lresult!"name") Lresult.MoveNext Loop Endif End Sent with Mailtrack On Thu, May 25, 2017 at 2:52 PM, Unaise EK wrote: > can you give example for > DO WHILE NOT database EOF > > Loop > > > > > Sent with Mailtrack > > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz < > mckaygerhard at ...626...> wrote: > >> there are the piece of code and here there's no secret: >> >> Public Function getItems() As Collection >> >> Dim $items As New Collection >> Dim itema, itemb as String = "something" >> >> $items.Add($itema, "item1") >> $items.Add($itemb, "item2") >> $items.Add(2, "cuantos") >> >> Return $items >> >> End >> >> here the previous code "bad programed" and when i swicht to collection >> gambas ide get slower after some time, the code was: >> >> Public Function getItems() As String[] >> >> Dim $items As New String[] >> Dim itema, itemb as String = "something" >> >> $items.Add($itema) >> $items.Add($itemb) >> >> Return $items >> >> End >> >> the gambas ide and the OS was not shutdown during 40 days, also the gambas >> ide was not quit in this period, and in that period i run the huge data >> code of the 3 odbc bug with 100000 registers, after change the code to >> collection (each change are little before test) thje ide gambas get slow >> and does not run well.. >> >> this happened to my other partners in the job... i test also in debian >> jeesie and happened same! >> >> i noted that when alone user said something its like "nothigs its >> happened, >> its just bad programer" >> >> will need other to reports, but these other do not have time to make a >> little project and report that.. >> >> sqlite was severi broken until gambas 3.6 and must be rewrite for gambas >> 3.8 >> >> now in gamba 3.9 ther's some doc-online problems with cache and some >> memory >> manage problems.. >> >> but for not specialized programmers its very difficult to debug, find and >> report LIKE THE QT problem.. >> >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : >> >> > Impossible to say anything without seeing the code, which causes the >> > problem. >> > >> > >> > Jussi >> > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < >> > mckaygerhard at ...626... >> > > wrote: >> > >> > > i change the odbc code for huge data to transport only two objects >> with a >> > > string, and i noted that gambas before hangs sometimes... so i >> discovered >> > > that when i used collections the memory management are very bad.. >> > > >> > > should i send a bug or where i start to see why this happened or its >> only >> > > happened only to me! >> > > >> > > >> > > Lenz McKAY Gerardo (PICCORO) >> > > http://qgqlochekone.blogspot.com >> > > ------------------------------------------------------------ >> > > ------------------ >> > > Check out the vibrant tech community on one of the world's most >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > > -- > M. Unaise. E.K > 9895687604 <098956%2087604> > Librarian, > (BLISc, MLIS) > JDT Islam Polytechnic College, > Vellimadukunnu. > -- M. Unaise. E.K 9895687604 Librarian, (BLISc, MLIS) JDT Islam Polytechnic College, Vellimadukunnu. From shordi at ...626... Thu May 25 11:40:00 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 25 May 2017 11:40:00 +0200 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: Try Public Procedure AddList() Dim ListQurey As String Dim Lresult As Result ListQurey = "SELECT name FROM name_tbl" Lresult = MODMain.MyConn.Exec(ListQurey) 'If Lresult.Count > 0 Then '* Do While Not Eof(Lresult)* while Lresult.available ListBox1.Add(Lresult!"name") Lresult.MoveNext wend 'Endif End 2017-05-25 11:29 GMT+02:00 Unaise EK : > this is my code for displaying data in listbox, but it did not working, pls > help > > Public Procedure AddList() > Dim ListQurey As String > Dim Lresult As Result > > ListQurey = "SELECT name FROM name_tbl" > Lresult = MODMain.MyConn.Exec(ListQurey) > If Lresult.Count > 0 Then > * Do While Not Eof(Lresult)* > ListBox1.Add(Lresult!"name") > Lresult.MoveNext > Loop > Endif > > End > > > > Sent with Mailtrack > referral=unaiseek at ...626...&idSignature=22> > > On Thu, May 25, 2017 at 2:52 PM, Unaise EK wrote: > > > can you give example for > > DO WHILE NOT database EOF > > > > Loop > > > > > > > > > > Sent with Mailtrack > > referral=unaiseek at ...626...&idSignature=22> > > > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz < > > mckaygerhard at ...626...> wrote: > > > >> there are the piece of code and here there's no secret: > >> > >> Public Function getItems() As Collection > >> > >> Dim $items As New Collection > >> Dim itema, itemb as String = "something" > >> > >> $items.Add($itema, "item1") > >> $items.Add($itemb, "item2") > >> $items.Add(2, "cuantos") > >> > >> Return $items > >> > >> End > >> > >> here the previous code "bad programed" and when i swicht to collection > >> gambas ide get slower after some time, the code was: > >> > >> Public Function getItems() As String[] > >> > >> Dim $items As New String[] > >> Dim itema, itemb as String = "something" > >> > >> $items.Add($itema) > >> $items.Add($itemb) > >> > >> Return $items > >> > >> End > >> > >> the gambas ide and the OS was not shutdown during 40 days, also the > gambas > >> ide was not quit in this period, and in that period i run the huge data > >> code of the 3 odbc bug with 100000 registers, after change the code to > >> collection (each change are little before test) thje ide gambas get > slow > >> and does not run well.. > >> > >> this happened to my other partners in the job... i test also in debian > >> jeesie and happened same! > >> > >> i noted that when alone user said something its like "nothigs its > >> happened, > >> its just bad programer" > >> > >> will need other to reports, but these other do not have time to make a > >> little project and report that.. > >> > >> sqlite was severi broken until gambas 3.6 and must be rewrite for gambas > >> 3.8 > >> > >> now in gamba 3.9 ther's some doc-online problems with cache and some > >> memory > >> manage problems.. > >> > >> but for not specialized programmers its very difficult to debug, find > and > >> report LIKE THE QT problem.. > >> > >> > >> > >> Lenz McKAY Gerardo (PICCORO) > >> http://qgqlochekone.blogspot.com > >> > >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : > >> > >> > Impossible to say anything without seeing the code, which causes the > >> > problem. > >> > > >> > > >> > Jussi > >> > > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > >> > mckaygerhard at ...626... > >> > > wrote: > >> > > >> > > i change the odbc code for huge data to transport only two objects > >> with a > >> > > string, and i noted that gambas before hangs sometimes... so i > >> discovered > >> > > that when i used collections the memory management are very bad.. > >> > > > >> > > should i send a bug or where i start to see why this happened or its > >> only > >> > > happened only to me! > >> > > > >> > > > >> > > Lenz McKAY Gerardo (PICCORO) > >> > > http://qgqlochekone.blogspot.com > >> > > ------------------------------------------------------------ > >> > > ------------------ > >> > > Check out the vibrant tech community on one of the world's most > >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > -- > > M. Unaise. E.K > > 9895687604 <098956%2087604> > > Librarian, > > (BLISc, MLIS) > > JDT Islam Polytechnic College, > > Vellimadukunnu. > > > > > > -- > M. Unaise. E.K > 9895687604 > Librarian, > (BLISc, MLIS) > JDT Islam Polytechnic College, > Vellimadukunnu. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From unaiseek at ...626... Thu May 25 11:56:00 2017 From: unaiseek at ...626... (Unaise EK) Date: Thu, 25 May 2017 15:26:00 +0530 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: Thanks, it is working On 25 May 2017 3:11 p.m., "Jorge Carri?n" wrote: > Try > > Public Procedure AddList() > Dim ListQurey As String > Dim Lresult As Result > > ListQurey = "SELECT name FROM name_tbl" > Lresult = MODMain.MyConn.Exec(ListQurey) > 'If Lresult.Count > 0 Then > '* Do While Not Eof(Lresult)* > while Lresult.available > ListBox1.Add(Lresult!"name") > Lresult.MoveNext > wend > 'Endif > > End > > 2017-05-25 11:29 GMT+02:00 Unaise EK : > > > this is my code for displaying data in listbox, but it did not working, > pls > > help > > > > Public Procedure AddList() > > Dim ListQurey As String > > Dim Lresult As Result > > > > ListQurey = "SELECT name FROM name_tbl" > > Lresult = MODMain.MyConn.Exec(ListQurey) > > If Lresult.Count > 0 Then > > * Do While Not Eof(Lresult)* > > ListBox1.Add(Lresult!"name") > > Lresult.MoveNext > > Loop > > Endif > > > > End > > > > > > > > Sent with Mailtrack > > > referral=unaiseek at ...626...&idSignature=22> > > > > On Thu, May 25, 2017 at 2:52 PM, Unaise EK wrote: > > > > > can you give example for > > > DO WHILE NOT database EOF > > > > > > Loop > > > > > > > > > > > > > > > Sent with Mailtrack > > > > referral=unaiseek at ...626...&idSignature=22> > > > > > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz < > > > mckaygerhard at ...626...> wrote: > > > > > >> there are the piece of code and here there's no secret: > > >> > > >> Public Function getItems() As Collection > > >> > > >> Dim $items As New Collection > > >> Dim itema, itemb as String = "something" > > >> > > >> $items.Add($itema, "item1") > > >> $items.Add($itemb, "item2") > > >> $items.Add(2, "cuantos") > > >> > > >> Return $items > > >> > > >> End > > >> > > >> here the previous code "bad programed" and when i swicht to collection > > >> gambas ide get slower after some time, the code was: > > >> > > >> Public Function getItems() As String[] > > >> > > >> Dim $items As New String[] > > >> Dim itema, itemb as String = "something" > > >> > > >> $items.Add($itema) > > >> $items.Add($itemb) > > >> > > >> Return $items > > >> > > >> End > > >> > > >> the gambas ide and the OS was not shutdown during 40 days, also the > > gambas > > >> ide was not quit in this period, and in that period i run the huge > data > > >> code of the 3 odbc bug with 100000 registers, after change the code to > > >> collection (each change are little before test) thje ide gambas get > > slow > > >> and does not run well.. > > >> > > >> this happened to my other partners in the job... i test also in debian > > >> jeesie and happened same! > > >> > > >> i noted that when alone user said something its like "nothigs its > > >> happened, > > >> its just bad programer" > > >> > > >> will need other to reports, but these other do not have time to make a > > >> little project and report that.. > > >> > > >> sqlite was severi broken until gambas 3.6 and must be rewrite for > gambas > > >> 3.8 > > >> > > >> now in gamba 3.9 ther's some doc-online problems with cache and some > > >> memory > > >> manage problems.. > > >> > > >> but for not specialized programmers its very difficult to debug, find > > and > > >> report LIKE THE QT problem.. > > >> > > >> > > >> > > >> Lenz McKAY Gerardo (PICCORO) > > >> http://qgqlochekone.blogspot.com > > >> > > >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : > > >> > > >> > Impossible to say anything without seeing the code, which causes the > > >> > problem. > > >> > > > >> > > > >> > Jussi > > >> > > > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > >> > mckaygerhard at ...626... > > >> > > wrote: > > >> > > > >> > > i change the odbc code for huge data to transport only two objects > > >> with a > > >> > > string, and i noted that gambas before hangs sometimes... so i > > >> discovered > > >> > > that when i used collections the memory management are very bad.. > > >> > > > > >> > > should i send a bug or where i start to see why this happened or > its > > >> only > > >> > > happened only to me! > > >> > > > > >> > > > > >> > > Lenz McKAY Gerardo (PICCORO) > > >> > > http://qgqlochekone.blogspot.com > > >> > > ------------------------------------------------------------ > > >> > > ------------------ > > >> > > Check out the vibrant tech community on one of the world's most > > >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> > > _______________________________________________ > > >> > > Gambas-user mailing list > > >> > > Gambas-user at lists.sourceforge.net > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > >> > ------------------------------------------------------------ > > >> > ------------------ > > >> > Check out the vibrant tech community on one of the world's most > > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> > _______________________________________________ > > >> > Gambas-user mailing list > > >> > Gambas-user at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > >> ------------------------------------------------------------ > > >> ------------------ > > >> Check out the vibrant tech community on one of the world's most > > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > > > > > -- > > > M. Unaise. E.K > > > 9895687604 <098956%2087604> > > > Librarian, > > > (BLISc, MLIS) > > > JDT Islam Polytechnic College, > > > Vellimadukunnu. > > > > > > > > > > > -- > > M. Unaise. E.K > > 9895687604 > > Librarian, > > (BLISc, MLIS) > > JDT Islam Polytechnic College, > > Vellimadukunnu. > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From unaiseek at ...626... Thu May 25 12:05:12 2017 From: unaiseek at ...626... (Unaise EK) Date: Thu, 25 May 2017 15:35:12 +0530 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: Sir one more help, Public Sub Save_button_Click() Dim InsertDb As String 'Dim Dx As Date 'Format(Dx, "dd/mm/yyyy") InsertDb = "INSERT INTO name_tbl (adm, name, place, date_ad) VALUES ('" & (TextBox1.Text) & "','" & (TextBox2.Text) & "', '" & (TextBox3.Text) & "', '" & DateBox1.Value & "' )" MODMain.MyConn.Exec(InsertDb) message("Data saved") clear1 'Form2.Show date value not seen in database. it shows blank End On Thu, May 25, 2017 at 3:26 PM, Unaise EK wrote: > Thanks, it is working > > On 25 May 2017 3:11 p.m., "Jorge Carri?n" wrote: > >> Try >> >> Public Procedure AddList() >> Dim ListQurey As String >> Dim Lresult As Result >> >> ListQurey = "SELECT name FROM name_tbl" >> Lresult = MODMain.MyConn.Exec(ListQurey) >> 'If Lresult.Count > 0 Then >> '* Do While Not Eof(Lresult)* >> while Lresult.available >> ListBox1.Add(Lresult!"name") >> Lresult.MoveNext >> wend >> 'Endif >> >> End >> >> 2017-05-25 11:29 GMT+02:00 Unaise EK : >> >> > this is my code for displaying data in listbox, but it did not working, >> pls >> > help >> > >> > Public Procedure AddList() >> > Dim ListQurey As String >> > Dim Lresult As Result >> > >> > ListQurey = "SELECT name FROM name_tbl" >> > Lresult = MODMain.MyConn.Exec(ListQurey) >> > If Lresult.Count > 0 Then >> > * Do While Not Eof(Lresult)* >> > ListBox1.Add(Lresult!"name") >> > Lresult.MoveNext >> > Loop >> > Endif >> > >> > End >> > >> > >> > >> > Sent with Mailtrack >> > > > referral=unaiseek at ...626...&idSignature=22> >> > >> > On Thu, May 25, 2017 at 2:52 PM, Unaise EK wrote: >> > >> > > can you give example for >> > > DO WHILE NOT database EOF >> > > >> > > Loop >> > > >> > > >> > > >> > > >> > > Sent with Mailtrack >> > > > > referral=unaiseek at ...626...&idSignature=22> >> > > >> > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz < >> > > mckaygerhard at ...626...> wrote: >> > > >> > >> there are the piece of code and here there's no secret: >> > >> >> > >> Public Function getItems() As Collection >> > >> >> > >> Dim $items As New Collection >> > >> Dim itema, itemb as String = "something" >> > >> >> > >> $items.Add($itema, "item1") >> > >> $items.Add($itemb, "item2") >> > >> $items.Add(2, "cuantos") >> > >> >> > >> Return $items >> > >> >> > >> End >> > >> >> > >> here the previous code "bad programed" and when i swicht to >> collection >> > >> gambas ide get slower after some time, the code was: >> > >> >> > >> Public Function getItems() As String[] >> > >> >> > >> Dim $items As New String[] >> > >> Dim itema, itemb as String = "something" >> > >> >> > >> $items.Add($itema) >> > >> $items.Add($itemb) >> > >> >> > >> Return $items >> > >> >> > >> End >> > >> >> > >> the gambas ide and the OS was not shutdown during 40 days, also the >> > gambas >> > >> ide was not quit in this period, and in that period i run the huge >> data >> > >> code of the 3 odbc bug with 100000 registers, after change the code >> to >> > >> collection (each change are little before test) thje ide gambas get >> > slow >> > >> and does not run well.. >> > >> >> > >> this happened to my other partners in the job... i test also in >> debian >> > >> jeesie and happened same! >> > >> >> > >> i noted that when alone user said something its like "nothigs its >> > >> happened, >> > >> its just bad programer" >> > >> >> > >> will need other to reports, but these other do not have time to make >> a >> > >> little project and report that.. >> > >> >> > >> sqlite was severi broken until gambas 3.6 and must be rewrite for >> gambas >> > >> 3.8 >> > >> >> > >> now in gamba 3.9 ther's some doc-online problems with cache and some >> > >> memory >> > >> manage problems.. >> > >> >> > >> but for not specialized programmers its very difficult to debug, find >> > and >> > >> report LIKE THE QT problem.. >> > >> >> > >> >> > >> >> > >> Lenz McKAY Gerardo (PICCORO) >> > >> http://qgqlochekone.blogspot.com >> > >> >> > >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen > >: >> > >> >> > >> > Impossible to say anything without seeing the code, which causes >> the >> > >> > problem. >> > >> > >> > >> > >> > >> > Jussi >> > >> > >> > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < >> > >> > mckaygerhard at ...626... >> > >> > > wrote: >> > >> > >> > >> > > i change the odbc code for huge data to transport only two >> objects >> > >> with a >> > >> > > string, and i noted that gambas before hangs sometimes... so i >> > >> discovered >> > >> > > that when i used collections the memory management are very bad.. >> > >> > > >> > >> > > should i send a bug or where i start to see why this happened or >> its >> > >> only >> > >> > > happened only to me! >> > >> > > >> > >> > > >> > >> > > Lenz McKAY Gerardo (PICCORO) >> > >> > > http://qgqlochekone.blogspot.com >> > >> > > ------------------------------------------------------------ >> > >> > > ------------------ >> > >> > > Check out the vibrant tech community on one of the world's most >> > >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> > > _______________________________________________ >> > >> > > Gambas-user mailing list >> > >> > > Gambas-user at lists.sourceforge.net >> > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > > >> > >> > ------------------------------------------------------------ >> > >> > ------------------ >> > >> > Check out the vibrant tech community on one of the world's most >> > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> > _______________________________________________ >> > >> > Gambas-user mailing list >> > >> > Gambas-user at lists.sourceforge.net >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> ------------------------------------------------------------ >> > >> ------------------ >> > >> Check out the vibrant tech community on one of the world's most >> > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> _______________________________________________ >> > >> Gambas-user mailing list >> > >> Gambas-user at lists.sourceforge.net >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> > > >> > > >> > > >> > > -- >> > > M. Unaise. E.K >> > > 9895687604 <098956%2087604> >> > > Librarian, >> > > (BLISc, MLIS) >> > > JDT Islam Polytechnic College, >> > > Vellimadukunnu. >> > > >> > >> > >> > >> > -- >> > M. Unaise. E.K >> > 9895687604 >> > Librarian, >> > (BLISc, MLIS) >> > JDT Islam Polytechnic College, >> > Vellimadukunnu. >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- M. Unaise. E.K 9895687604 Librarian, (BLISc, MLIS) JDT Islam Polytechnic College, Vellimadukunnu. From unaiseek at ...626... Thu May 25 12:10:05 2017 From: unaiseek at ...626... (Unaise EK) Date: Thu, 25 May 2017 15:40:05 +0530 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: Sir one more help, Public Sub Save_button_Click() Dim InsertDb As String 'Dim Dx As Date 'Format(Dx, "dd/mm/yyyy") InsertDb = "INSERT INTO name_tbl (adm, name, place, date_ad) VALUES ('" & (TextBox1.Text) & "','" & (TextBox2.Text) & "', '" & (TextBox3.Text) & "', '" & DateBox1.Value & "' )" MODMain.MyConn.Exec(InsertDb) message("Data saved") clear1 'Form2.Show End Sent with Mailtrack On Thu, May 25, 2017 at 3:26 PM, Unaise EK wrote: > Thanks, it is working > > On 25 May 2017 3:11 p.m., "Jorge Carri?n" wrote: > >> Try >> >> Public Procedure AddList() >> Dim ListQurey As String >> Dim Lresult As Result >> >> ListQurey = "SELECT name FROM name_tbl" >> Lresult = MODMain.MyConn.Exec(ListQurey) >> 'If Lresult.Count > 0 Then >> '* Do While Not Eof(Lresult)* >> while Lresult.available >> ListBox1.Add(Lresult!"name") >> Lresult.MoveNext >> wend >> 'Endif >> >> End >> >> 2017-05-25 11:29 GMT+02:00 Unaise EK : >> >> > this is my code for displaying data in listbox, but it did not working, >> pls >> > help >> > >> > Public Procedure AddList() >> > Dim ListQurey As String >> > Dim Lresult As Result >> > >> > ListQurey = "SELECT name FROM name_tbl" >> > Lresult = MODMain.MyConn.Exec(ListQurey) >> > If Lresult.Count > 0 Then >> > * Do While Not Eof(Lresult)* >> > ListBox1.Add(Lresult!"name") >> > Lresult.MoveNext >> > Loop >> > Endif >> > >> > End >> > >> > >> > >> > Sent with Mailtrack >> > > > referral=unaiseek at ...626...&idSignature=22> >> > >> > On Thu, May 25, 2017 at 2:52 PM, Unaise EK wrote: >> > >> > > can you give example for >> > > DO WHILE NOT database EOF >> > > >> > > Loop >> > > >> > > >> > > >> > > >> > > Sent with Mailtrack >> > > > > referral=unaiseek at ...626...&idSignature=22> >> > > >> > > On Thu, May 25, 2017 at 8:30 AM, PICCORO McKAY Lenz < >> > > mckaygerhard at ...626...> wrote: >> > > >> > >> there are the piece of code and here there's no secret: >> > >> >> > >> Public Function getItems() As Collection >> > >> >> > >> Dim $items As New Collection >> > >> Dim itema, itemb as String = "something" >> > >> >> > >> $items.Add($itema, "item1") >> > >> $items.Add($itemb, "item2") >> > >> $items.Add(2, "cuantos") >> > >> >> > >> Return $items >> > >> >> > >> End >> > >> >> > >> here the previous code "bad programed" and when i swicht to >> collection >> > >> gambas ide get slower after some time, the code was: >> > >> >> > >> Public Function getItems() As String[] >> > >> >> > >> Dim $items As New String[] >> > >> Dim itema, itemb as String = "something" >> > >> >> > >> $items.Add($itema) >> > >> $items.Add($itemb) >> > >> >> > >> Return $items >> > >> >> > >> End >> > >> >> > >> the gambas ide and the OS was not shutdown during 40 days, also the >> > gambas >> > >> ide was not quit in this period, and in that period i run the huge >> data >> > >> code of the 3 odbc bug with 100000 registers, after change the code >> to >> > >> collection (each change are little before test) thje ide gambas get >> > slow >> > >> and does not run well.. >> > >> >> > >> this happened to my other partners in the job... i test also in >> debian >> > >> jeesie and happened same! >> > >> >> > >> i noted that when alone user said something its like "nothigs its >> > >> happened, >> > >> its just bad programer" >> > >> >> > >> will need other to reports, but these other do not have time to make >> a >> > >> little project and report that.. >> > >> >> > >> sqlite was severi broken until gambas 3.6 and must be rewrite for >> gambas >> > >> 3.8 >> > >> >> > >> now in gamba 3.9 ther's some doc-online problems with cache and some >> > >> memory >> > >> manage problems.. >> > >> >> > >> but for not specialized programmers its very difficult to debug, find >> > and >> > >> report LIKE THE QT problem.. >> > >> >> > >> >> > >> >> > >> Lenz McKAY Gerardo (PICCORO) >> > >> http://qgqlochekone.blogspot.com >> > >> >> > >> 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen > >: >> > >> >> > >> > Impossible to say anything without seeing the code, which causes >> the >> > >> > problem. >> > >> > >> > >> > >> > >> > Jussi >> > >> > >> > >> > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < >> > >> > mckaygerhard at ...626... >> > >> > > wrote: >> > >> > >> > >> > > i change the odbc code for huge data to transport only two >> objects >> > >> with a >> > >> > > string, and i noted that gambas before hangs sometimes... so i >> > >> discovered >> > >> > > that when i used collections the memory management are very bad.. >> > >> > > >> > >> > > should i send a bug or where i start to see why this happened or >> its >> > >> only >> > >> > > happened only to me! >> > >> > > >> > >> > > >> > >> > > Lenz McKAY Gerardo (PICCORO) >> > >> > > http://qgqlochekone.blogspot.com >> > >> > > ------------------------------------------------------------ >> > >> > > ------------------ >> > >> > > Check out the vibrant tech community on one of the world's most >> > >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> > > _______________________________________________ >> > >> > > Gambas-user mailing list >> > >> > > Gambas-user at lists.sourceforge.net >> > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > > >> > >> > ------------------------------------------------------------ >> > >> > ------------------ >> > >> > Check out the vibrant tech community on one of the world's most >> > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> > _______________________________________________ >> > >> > Gambas-user mailing list >> > >> > Gambas-user at lists.sourceforge.net >> > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> ------------------------------------------------------------ >> > >> ------------------ >> > >> Check out the vibrant tech community on one of the world's most >> > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> _______________________________________________ >> > >> Gambas-user mailing list >> > >> Gambas-user at lists.sourceforge.net >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> > > >> > > >> > > >> > > -- >> > > M. Unaise. E.K >> > > 9895687604 <098956%2087604> >> > > Librarian, >> > > (BLISc, MLIS) >> > > JDT Islam Polytechnic College, >> > > Vellimadukunnu. >> > > >> > >> > >> > >> > -- >> > M. Unaise. E.K >> > 9895687604 >> > Librarian, >> > (BLISc, MLIS) >> > JDT Islam Polytechnic College, >> > Vellimadukunnu. >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- M. Unaise. E.K 9895687604 Librarian, (BLISc, MLIS) JDT Islam Polytechnic College, Vellimadukunnu. From t.lee.davidson at ...626... Thu May 25 16:46:11 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Thu, 25 May 2017 10:46:11 -0400 Subject: [Gambas-user] An Issue With Shell command and sudoers rules In-Reply-To: References: Message-ID: <333cdace-5992-531f-4c11-3e4f82e11c8d@...626...> Disable (ie. comment out) targetpw and the "ALL ALL=(ALL) ALL" line in /etc/sudoers. Then you should probably allow regular users to execute only certain commands with something like: %users ALL=/home/adminuser/bin/comando.sh or a special group for 'privileged' users: %wheel ALL=/home/adminuser/bin/comando.sh See: https://www.novell.com/support/kb/doc.php?id=7002705 -- Lee On 05/25/2017 05:13 AM, Jorge Carri?n wrote: > Oh... well, I'm afraid that I've a mistake. > > All of this isn't a gambas issue. > > BUT if someone knows a way to let a non-sudoer user to update the system > without know the admin password I'll be very grateful . > > Sorry for the noise. > > Best Regards From jussi.lahtinen at ...626... Thu May 25 16:59:13 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 17:59:13 +0300 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: Collection requires more memory than string array, so maybe your box is just swapping, because of low memory? Jussi On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz wrote: > there are the piece of code and here there's no secret: > > Public Function getItems() As Collection > > Dim $items As New Collection > Dim itema, itemb as String = "something" > > $items.Add($itema, "item1") > $items.Add($itemb, "item2") > $items.Add(2, "cuantos") > > Return $items > > End > > here the previous code "bad programed" and when i swicht to collection > gambas ide get slower after some time, the code was: > > Public Function getItems() As String[] > > Dim $items As New String[] > Dim itema, itemb as String = "something" > > $items.Add($itema) > $items.Add($itemb) > > Return $items > > End > > the gambas ide and the OS was not shutdown during 40 days, also the gambas > ide was not quit in this period, and in that period i run the huge data > code of the 3 odbc bug with 100000 registers, after change the code to > collection (each change are little before test) thje ide gambas get slow > and does not run well.. > > this happened to my other partners in the job... i test also in debian > jeesie and happened same! > > i noted that when alone user said something its like "nothigs its happened, > its just bad programer" > > will need other to reports, but these other do not have time to make a > little project and report that.. > > sqlite was severi broken until gambas 3.6 and must be rewrite for gambas > 3.8 > > now in gamba 3.9 ther's some doc-online problems with cache and some memory > manage problems.. > > but for not specialized programmers its very difficult to debug, find and > report LIKE THE QT problem.. > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : > > > Impossible to say anything without seeing the code, which causes the > > problem. > > > > > > Jussi > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > mckaygerhard at ...626... > > > wrote: > > > > > i change the odbc code for huge data to transport only two objects > with a > > > string, and i noted that gambas before hangs sometimes... so i > discovered > > > that when i used collections the memory management are very bad.. > > > > > > should i send a bug or where i start to see why this happened or its > only > > > happened only to me! > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Thu May 25 17:33:22 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 25 May 2017 15:33:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1109: Wrong Substitution Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1109&from=L21haW4- Michael ALTROGGE reported a new bug. Summary ------- Wrong Substitution Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : PostgreSQL driver Description ----------- Doing this: Public Sub MAIN() Dim strSQL As String DatabaseOpenCon() --> strSQL = DBConMain.Subst("SELECT &1, &2, &3, &4, &5, &6 FROM &7", "INDX", "MNDT", "SQLT", "SQLI", "SQLB", "SQLN", "DD00T") DBErgMain = DBConMain.Exec(strSQL) For Each DBErgMain Debug DBErgMain[0], DBErgMain[1], DBErgMain[2], DBErgMain[3], DBErgMain[4], DBErgMain[5] Next End will result in that: --> SYS_DB.MAIN.10: SELECT E'INDX', E'MNDT', E'SQLT', E'SQLI', E'SQLB', E'SQLN' FROM E'DD00T' System information ------------------ [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-72-generic Architecture=x86_64 Distribution=Linux Mint 18.1 Serena Desktop=CINNAMON Theme=Gtk Language=de_DE.UTF-8 Memory=3511M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EFHGqAGhVd,guid=9b762d3834ba788f5de4cc2b5926db76 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_AUTOSTART_ID=107b3a8f22f976950d149571877581630100000020170012 DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=de_DE.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=de_DE.UTF-8 MDM_XSERVER_LOCATION=local PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/2017,unix/:/tmp/.ICE-unix/2017 SHELL=/bin/bash SSH_AGENT_PID=2101 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=5ab3c275b7304ed3b8aeef9ffcc37eb4-1495718772.950534-1270231686 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=7 From t.lee.davidson at ...626... Thu May 25 17:35:19 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Thu, 25 May 2017 11:35:19 -0400 Subject: [Gambas-user] How to enumerate through SQL Result (was Re: Gambas-user Digest, Vol 132, Issue 29) In-Reply-To: References: Message-ID: <3bc2e881-4f01-ed03-c5a1-1bd202f69bf4@...626...> On 05/25/2017 05:24 AM, Unaise EK wrote: > this is my code for displaying data in listbox, but it did not working, pls > help > > Public Procedure AddList() > Dim ListQurey As String > Dim Lresult As Result > > ListQurey = "SELECT name FROM name_tbl" > Lresult = MODMain.MyConn.Exec(ListQurey) > If Lresult.Count > 0 Then > * Do While Not Eof(Lresult)* > ListBox1.Add(Lresult!"name") > Lresult.MoveNext > Loop > Endif > > End I don't know why you are trying to use Eof() on a SQL Result. Eof is for a Stream. See: http://gambaswiki.org/wiki/comp/gb.db/result "This class is enumerable with the FOR EACH keyword." And, I believe 'ListBox1.Add(Lresult!"name")' should be 'ListBox1.Add(Lresult!name)' or 'ListBox1.Add(Lresult["name"])'. Also, please try to compose meaningful subject lines by creating a _new_ message instead of simply replying to a message that is not related to your issue. That helps those who view list messages in threaded mode. TIA. -- Lee From unaiseek at ...626... Thu May 25 17:43:32 2017 From: unaiseek at ...626... (Unaise EK) Date: Thu, 25 May 2017 21:13:32 +0530 Subject: [Gambas-user] How to enumerate through SQL Result (was Re: Gambas-user Digest, Vol 132, Issue 29) In-Reply-To: <3bc2e881-4f01-ed03-c5a1-1bd202f69bf4@...626...> References: <3bc2e881-4f01-ed03-c5a1-1bd202f69bf4@...626...> Message-ID: Sir My problem solved Public Procedure AddList() Dim ListQurey As String Dim Lresult As Result ListQurey = "SELECT name FROM name_tbl" Lresult = MODMain.MyConn.Exec(ListQurey) 'If Lresult.Count > 0 Then '* Do While Not Eof(Lresult)* while Lresult.available ListBox1.Add(Lresult!"name") Lresult.MoveNext wend 'Endif On 25 May 2017 9:06 p.m., "T Lee Davidson" wrote: > On 05/25/2017 05:24 AM, Unaise EK wrote: > > this is my code for displaying data in listbox, but it did not working, > pls > > help > > > > Public Procedure AddList() > > Dim ListQurey As String > > Dim Lresult As Result > > > > ListQurey = "SELECT name FROM name_tbl" > > Lresult = MODMain.MyConn.Exec(ListQurey) > > If Lresult.Count > 0 Then > > * Do While Not Eof(Lresult)* > > ListBox1.Add(Lresult!"name") > > Lresult.MoveNext > > Loop > > Endif > > > > End > > I don't know why you are trying to use Eof() on a SQL Result. Eof is for a > Stream. > > See: > http://gambaswiki.org/wiki/comp/gb.db/result > > "This class is enumerable with the FOR EACH keyword." > > And, I believe 'ListBox1.Add(Lresult!"name")' should be > 'ListBox1.Add(Lresult!name)' or 'ListBox1.Add(Lresult["name"])'. > > > Also, please try to compose meaningful subject lines by creating a _new_ > message instead of simply replying to a message that is > not related to your issue. That helps those who view list messages in > threaded mode. TIA. > > -- > Lee > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu May 25 19:21:13 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 25 May 2017 13:21:13 -0400 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel well complete history its that many days before i run several times gambas without close it, but in none moment used collections.. today only with project where i used collections gambas get slower after some hours... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen : > Collection requires more memory than string array, so maybe your box is > just swapping, because of low memory? > > > Jussi > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz < > mckaygerhard at ...626...> > wrote: > > > there are the piece of code and here there's no secret: > > > > Public Function getItems() As Collection > > > > Dim $items As New Collection > > Dim itema, itemb as String = "something" > > > > $items.Add($itema, "item1") > > $items.Add($itemb, "item2") > > $items.Add(2, "cuantos") > > > > Return $items > > > > End > > > > here the previous code "bad programed" and when i swicht to collection > > gambas ide get slower after some time, the code was: > > > > Public Function getItems() As String[] > > > > Dim $items As New String[] > > Dim itema, itemb as String = "something" > > > > $items.Add($itema) > > $items.Add($itemb) > > > > Return $items > > > > End > > > > the gambas ide and the OS was not shutdown during 40 days, also the > gambas > > ide was not quit in this period, and in that period i run the huge data > > code of the 3 odbc bug with 100000 registers, after change the code to > > collection (each change are little before test) thje ide gambas get slow > > and does not run well.. > > > > this happened to my other partners in the job... i test also in debian > > jeesie and happened same! > > > > i noted that when alone user said something its like "nothigs its > happened, > > its just bad programer" > > > > will need other to reports, but these other do not have time to make a > > little project and report that.. > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for gambas > > 3.8 > > > > now in gamba 3.9 ther's some doc-online problems with cache and some > memory > > manage problems.. > > > > but for not specialized programmers its very difficult to debug, find and > > report LIKE THE QT problem.. > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : > > > > > Impossible to say anything without seeing the code, which causes the > > > problem. > > > > > > > > > Jussi > > > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > > mckaygerhard at ...626... > > > > wrote: > > > > > > > i change the odbc code for huge data to transport only two objects > > with a > > > > string, and i noted that gambas before hangs sometimes... so i > > discovered > > > > that when i used collections the memory management are very bad.. > > > > > > > > should i send a bug or where i start to see why this happened or its > > only > > > > happened only to me! > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > http://qgqlochekone.blogspot.com > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Thu May 25 20:06:45 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 25 May 2017 20:06:45 +0200 Subject: [Gambas-user] Change the code and copy in other project Message-ID: I need to copy modules and classes from my project, change the code partially and copy it to another project. Is this only possible from IDE or is it possible also from a compiled project? Is there still the src folder in the compiled project? Regards Gianluigi From hans at ...3219... Thu May 25 21:13:20 2017 From: hans at ...3219... (Hans Lehmann) Date: Thu, 25 May 2017 21:13:20 +0200 Subject: [Gambas-user] XMLRPC-Server In-Reply-To: References: <6672c854-b4b5-1de8-6709-2b88b818ee68@...3219...> Message-ID: <962810ff-8b64-9870-a16e-eb3bee023e03@...3219...> Hello Lee, Hi Gerhard (PICOORO), I have now installed a PHP XMLRPC server (version 3) on my local Lighttpd web server - it is just a PHP file and two necessary PHPXMLRPC libraries - and call the defined service with a Gambas XMLRPC client. It works well. Sincerely Hans From gambas.fr at ...626... Thu May 25 21:15:58 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 25 May 2017 21:15:58 +0200 Subject: [Gambas-user] =?utf-8?q?Fwd=3A__=E2=80=8B_Re=3A_Keyboard_locked_-?= =?utf-8?q?-_insisting_one_more_time?= In-Reply-To: References: <9ad5e930-4ddd-edf1-312d-549cf7b5728c@...1...> Message-ID: ---------- Forwarded message ---------- From: Fernando Cabral Date: 2017-05-25 0:12 GMT+02:00 Subject: Re: [Gambas-user] Re: Keyboard locked -- insisting one more time To: Fabien Bodard I 2017-05-24 14:31 GMT-03:00 Fabien Bodard : > > can you describe your machine ? If you mean hardware, I use notebook HP, Dell and Acer. They all have the same problem. As to the operating system, they are all running Linux Mint 18.1 with Linux 4.4.0-78 (4.4.0-78-generic #99-Ubuntu SMP Thu Apr 27 15:29:09 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux) As to Gambas, the last version available in the PPA. Regards - fernando > > > 2017-05-24 18:13 GMT+02:00 Fernando Cabral : > > Glaucio wrote: > >>I don't know, but, since it works in other systems than Xubuntu/Mint, I > >>guess that may be some environment variable missing. > > > > Could be an environment variable issue. But which variable? As far as I > > know, I did not change anything. So, if anything changed, it was changed > > stealthily by an unknown program. > > > >>With Benoit's script, for example, the TextEditor didn't worked here, but > >>the same component did work just fine running in Gambas' design time > >>test. Again, the difference, I guess, is pretty much just the execution > >>environment, or not? > > > > Only worked here on the virtual machine; not on the real machine. > > > > > > 2017-05-24 7:50 GMT-03:00 Glaucio Araujo : > > > >> I don't know, but, since it works in other systems than Xubuntu/Mint, I > >> guess that may be some environment variable missing. > >> > >> With Benoit's script, for exemple, the TextEditor didin't worked here, but > >> the same component did worked just fine running in Gambas' design time > >> test. Again, the difference, I guess, is pretty much just the execution > >> environment, or not? > >> > >> > >> > >> > >> --- > >> > >> Gl?ucio de Araujo > >> > >> Mail : glaucio.de.araujo at ...626... > >> TIM : (11) 95900-7801 (WhatsApp / Telegram) > >> > >> 2017-05-24 7:25 GMT-03:00 Beno?t Minisini : > >> > >> > Le 24/05/2017 ? 08:44, Fabien Bodard a ?crit : > >> > > We need to wait for Benoit as it's a misstake on the rev 8132. > >> > > > >> > > >> > I'm not sure it's a mistake in rev 8132. Fernando must check with an > >> > older revision to see if the problem comes from it. > >> > > >> > Moreover, Glaucio says he has the problem with an older version of > >> > Gambas, so... > >> > > >> > I think it's a problem related to QT and the Xim input method. So I > >> > suggest people to change their input method to see if something changes. > >> > > >> > -- > >> > Beno?t Minisini > >> > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > > > > -- > > Fernando Cabral > > Blogue: http://fernandocabral.org > > Twitter: http://twitter.com/fjcabral > > e-mail: fernandojosecabral at ...626... > > Facebook: f at ...3654... > > Telegram: +55 (37) 99988-8868 > > Wickr ID: fernandocabral > > WhatsApp: +55 (37) 99988-8868 > > Skype: fernandojosecabral > > Telefone fixo: +55 (37) 3521-2183 > > Telefone celular: +55 (37) 99988-8868 > > > > Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, > > nenhum pol?tico ou cientista poder? se gabar de nada. > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. -- Fabien Bodard From jussi.lahtinen at ...626... Thu May 25 21:31:59 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 22:31:59 +0300 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: Have you checked what the collection contains, when the system slows down? Maybe the containing strings are longer than what you expect? Or maybe there are more elements than you expect? How much the running program takes memory, when things get slow? Jussi On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz wrote: > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel > > well complete history its that many days before i run several times gambas > without close it, but in none moment used collections.. > > today only with project where i used collections gambas get slower after > some hours... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen : > > > Collection requires more memory than string array, so maybe your box is > > just swapping, because of low memory? > > > > > > Jussi > > > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz < > > mckaygerhard at ...626...> > > wrote: > > > > > there are the piece of code and here there's no secret: > > > > > > Public Function getItems() As Collection > > > > > > Dim $items As New Collection > > > Dim itema, itemb as String = "something" > > > > > > $items.Add($itema, "item1") > > > $items.Add($itemb, "item2") > > > $items.Add(2, "cuantos") > > > > > > Return $items > > > > > > End > > > > > > here the previous code "bad programed" and when i swicht to collection > > > gambas ide get slower after some time, the code was: > > > > > > Public Function getItems() As String[] > > > > > > Dim $items As New String[] > > > Dim itema, itemb as String = "something" > > > > > > $items.Add($itema) > > > $items.Add($itemb) > > > > > > Return $items > > > > > > End > > > > > > the gambas ide and the OS was not shutdown during 40 days, also the > > gambas > > > ide was not quit in this period, and in that period i run the huge data > > > code of the 3 odbc bug with 100000 registers, after change the code to > > > collection (each change are little before test) thje ide gambas get > slow > > > and does not run well.. > > > > > > this happened to my other partners in the job... i test also in debian > > > jeesie and happened same! > > > > > > i noted that when alone user said something its like "nothigs its > > happened, > > > its just bad programer" > > > > > > will need other to reports, but these other do not have time to make a > > > little project and report that.. > > > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for > gambas > > > 3.8 > > > > > > now in gamba 3.9 ther's some doc-online problems with cache and some > > memory > > > manage problems.. > > > > > > but for not specialized programmers its very difficult to debug, find > and > > > report LIKE THE QT problem.. > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen : > > > > > > > Impossible to say anything without seeing the code, which causes the > > > > problem. > > > > > > > > > > > > Jussi > > > > > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > > > mckaygerhard at ...626... > > > > > wrote: > > > > > > > > > i change the odbc code for huge data to transport only two objects > > > with a > > > > > string, and i noted that gambas before hangs sometimes... so i > > > discovered > > > > > that when i used collections the memory management are very bad.. > > > > > > > > > > should i send a bug or where i start to see why this happened or > its > > > only > > > > > happened only to me! > > > > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > > http://qgqlochekone.blogspot.com > > > > > ------------------------------------------------------------ > > > > > ------------------ > > > > > Check out the vibrant tech community on one of the world's most > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu May 25 21:36:10 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 22:36:10 +0300 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: Message-ID: Src folder contains the source code for your project. You don't need to use IDE to copy or edit the files. Compiled binary does not contain source code, nor the compiling touches to the src folder. It is only read during the compilation. Jussi On Thu, May 25, 2017 at 9:06 PM, Gianluigi wrote: > I need to copy modules and classes from my project, change the code > partially and copy it to another project. > Is this only possible from IDE or is it possible also from a compiled > project? > Is there still the src folder in the compiled project? > > Regards > Gianluigi > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu May 25 21:54:33 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 25 May 2017 15:54:33 -0400 Subject: [Gambas-user] XMLRPC-Server In-Reply-To: <962810ff-8b64-9870-a16e-eb3bee023e03@...3219...> References: <6672c854-b4b5-1de8-6709-2b88b818ee68@...3219...> <962810ff-8b64-9870-a16e-eb3bee023e03@...3219...> Message-ID: umm thanks for ! and tht means that a cgi based XMLRPC server may be complicated to make.. in any case, many thanks for the files.. jajaja I feel very sorry,with German family and I am the only one who does not speak the language Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-25 15:13 GMT-04:00 Hans Lehmann : > Hello Lee, > Hi Gerhard (PICOORO), > > I have now installed a PHP XMLRPC server (version 3) on my local Lighttpd > web server - it is just a PHP file and two necessary PHPXMLRPC libraries - > and call the defined service with a Gambas XMLRPC client. It works well. > > > Sincerely > > Hans > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu May 25 21:56:14 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 25 May 2017 15:56:14 -0400 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: as code i send, only contanis two connection objects, one for odbc and other for sqlite but i cannot see or debug it, due the interface does not show nothing ... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-25 15:31 GMT-04:00 Jussi Lahtinen : > Have you checked what the collection contains, when the system slows down? > Maybe the containing strings are longer than what you expect? Or maybe > there are more elements than you expect? > How much the running program takes memory, when things get slow? > > > Jussi > > On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz < > mckaygerhard at ...626...> > wrote: > > > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 intel > > > > well complete history its that many days before i run several times > gambas > > without close it, but in none moment used collections.. > > > > today only with project where i used collections gambas get slower after > > some hours... > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen : > > > > > Collection requires more memory than string array, so maybe your box is > > > just swapping, because of low memory? > > > > > > > > > Jussi > > > > > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz < > > > mckaygerhard at ...626...> > > > wrote: > > > > > > > there are the piece of code and here there's no secret: > > > > > > > > Public Function getItems() As Collection > > > > > > > > Dim $items As New Collection > > > > Dim itema, itemb as String = "something" > > > > > > > > $items.Add($itema, "item1") > > > > $items.Add($itemb, "item2") > > > > $items.Add(2, "cuantos") > > > > > > > > Return $items > > > > > > > > End > > > > > > > > here the previous code "bad programed" and when i swicht to > collection > > > > gambas ide get slower after some time, the code was: > > > > > > > > Public Function getItems() As String[] > > > > > > > > Dim $items As New String[] > > > > Dim itema, itemb as String = "something" > > > > > > > > $items.Add($itema) > > > > $items.Add($itemb) > > > > > > > > Return $items > > > > > > > > End > > > > > > > > the gambas ide and the OS was not shutdown during 40 days, also the > > > gambas > > > > ide was not quit in this period, and in that period i run the huge > data > > > > code of the 3 odbc bug with 100000 registers, after change the code > to > > > > collection (each change are little before test) thje ide gambas get > > slow > > > > and does not run well.. > > > > > > > > this happened to my other partners in the job... i test also in > debian > > > > jeesie and happened same! > > > > > > > > i noted that when alone user said something its like "nothigs its > > > happened, > > > > its just bad programer" > > > > > > > > will need other to reports, but these other do not have time to make > a > > > > little project and report that.. > > > > > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for > > gambas > > > > 3.8 > > > > > > > > now in gamba 3.9 ther's some doc-online problems with cache and some > > > memory > > > > manage problems.. > > > > > > > > but for not specialized programmers its very difficult to debug, find > > and > > > > report LIKE THE QT problem.. > > > > > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > http://qgqlochekone.blogspot.com > > > > > > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen >: > > > > > > > > > Impossible to say anything without seeing the code, which causes > the > > > > > problem. > > > > > > > > > > > > > > > Jussi > > > > > > > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > > > > mckaygerhard at ...626... > > > > > > wrote: > > > > > > > > > > > i change the odbc code for huge data to transport only two > objects > > > > with a > > > > > > string, and i noted that gambas before hangs sometimes... so i > > > > discovered > > > > > > that when i used collections the memory management are very bad.. > > > > > > > > > > > > should i send a bug or where i start to see why this happened or > > its > > > > only > > > > > > happened only to me! > > > > > > > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > > > http://qgqlochekone.blogspot.com > > > > > > ------------------------------------------------------------ > > > > > > ------------------ > > > > > > Check out the vibrant tech community on one of the world's most > > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------ > > > > > ------------------ > > > > > Check out the vibrant tech community on one of the world's most > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu May 25 22:04:20 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 23:04:20 +0300 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: The code you sent is not runnable. So there is obviously something more. Why you cannot debug it? Just run the project in the IDE and when things go slow hit pause and see what is inside of the collection. Jussi On Thu, May 25, 2017 at 10:56 PM, PICCORO McKAY Lenz wrote: > as code i send, only contanis two connection objects, one for odbc and > other for sqlite > > but i cannot see or debug it, due the interface does not show nothing ... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-05-25 15:31 GMT-04:00 Jussi Lahtinen : > > > Have you checked what the collection contains, when the system slows > down? > > Maybe the containing strings are longer than what you expect? Or maybe > > there are more elements than you expect? > > How much the running program takes memory, when things get slow? > > > > > > Jussi > > > > On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz < > > mckaygerhard at ...626...> > > wrote: > > > > > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 > intel > > > > > > well complete history its that many days before i run several times > > gambas > > > without close it, but in none moment used collections.. > > > > > > today only with project where i used collections gambas get slower > after > > > some hours... > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > > > > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen : > > > > > > > Collection requires more memory than string array, so maybe your box > is > > > > just swapping, because of low memory? > > > > > > > > > > > > Jussi > > > > > > > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz < > > > > mckaygerhard at ...626...> > > > > wrote: > > > > > > > > > there are the piece of code and here there's no secret: > > > > > > > > > > Public Function getItems() As Collection > > > > > > > > > > Dim $items As New Collection > > > > > Dim itema, itemb as String = "something" > > > > > > > > > > $items.Add($itema, "item1") > > > > > $items.Add($itemb, "item2") > > > > > $items.Add(2, "cuantos") > > > > > > > > > > Return $items > > > > > > > > > > End > > > > > > > > > > here the previous code "bad programed" and when i swicht to > > collection > > > > > gambas ide get slower after some time, the code was: > > > > > > > > > > Public Function getItems() As String[] > > > > > > > > > > Dim $items As New String[] > > > > > Dim itema, itemb as String = "something" > > > > > > > > > > $items.Add($itema) > > > > > $items.Add($itemb) > > > > > > > > > > Return $items > > > > > > > > > > End > > > > > > > > > > the gambas ide and the OS was not shutdown during 40 days, also the > > > > gambas > > > > > ide was not quit in this period, and in that period i run the huge > > data > > > > > code of the 3 odbc bug with 100000 registers, after change the code > > to > > > > > collection (each change are little before test) thje ide gambas > get > > > slow > > > > > and does not run well.. > > > > > > > > > > this happened to my other partners in the job... i test also in > > debian > > > > > jeesie and happened same! > > > > > > > > > > i noted that when alone user said something its like "nothigs its > > > > happened, > > > > > its just bad programer" > > > > > > > > > > will need other to reports, but these other do not have time to > make > > a > > > > > little project and report that.. > > > > > > > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for > > > gambas > > > > > 3.8 > > > > > > > > > > now in gamba 3.9 ther's some doc-online problems with cache and > some > > > > memory > > > > > manage problems.. > > > > > > > > > > but for not specialized programmers its very difficult to debug, > find > > > and > > > > > report LIKE THE QT problem.. > > > > > > > > > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > > http://qgqlochekone.blogspot.com > > > > > > > > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen < > jussi.lahtinen at ...626... > > >: > > > > > > > > > > > Impossible to say anything without seeing the code, which causes > > the > > > > > > problem. > > > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > > > > > mckaygerhard at ...626... > > > > > > > wrote: > > > > > > > > > > > > > i change the odbc code for huge data to transport only two > > objects > > > > > with a > > > > > > > string, and i noted that gambas before hangs sometimes... so i > > > > > discovered > > > > > > > that when i used collections the memory management are very > bad.. > > > > > > > > > > > > > > should i send a bug or where i start to see why this happened > or > > > its > > > > > only > > > > > > > happened only to me! > > > > > > > > > > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > > > > http://qgqlochekone.blogspot.com > > > > > > > ------------------------------------------------------------ > > > > > > > ------------------ > > > > > > > Check out the vibrant tech community on one of the world's most > > > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------ > > > > > > ------------------ > > > > > > Check out the vibrant tech community on one of the world's most > > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------ > > > > > ------------------ > > > > > Check out the vibrant tech community on one of the world's most > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Thu May 25 22:23:51 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 25 May 2017 22:23:51 +0200 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: Message-ID: OK I will look for another way to do this. Regards Gianluigi 2017-05-25 21:36 GMT+02:00 Jussi Lahtinen : > Src folder contains the source code for your project. You don't need to use > IDE to copy or edit the files. > Compiled binary does not contain source code, nor the compiling touches to > the src folder. It is only read during the compilation. > > > Jussi > > > > On Thu, May 25, 2017 at 9:06 PM, Gianluigi wrote: > > > I need to copy modules and classes from my project, change the code > > partially and copy it to another project. > > Is this only possible from IDE or is it possible also from a compiled > > project? > > Is there still the src folder in the compiled project? > > > > Regards > > Gianluigi > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jussi.lahtinen at ...626... Thu May 25 22:46:29 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 25 May 2017 23:46:29 +0300 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: Message-ID: I don't quite understand what you are trying to achieve, but you can copy the src folder to the data folder and then it will in the executable. Maybe you can even link it into the data folder. Jussi On Thu, May 25, 2017 at 11:23 PM, Gianluigi wrote: > OK I will look for another way to do this. > > Regards > Gianluigi > > 2017-05-25 21:36 GMT+02:00 Jussi Lahtinen : > > > Src folder contains the source code for your project. You don't need to > use > > IDE to copy or edit the files. > > Compiled binary does not contain source code, nor the compiling touches > to > > the src folder. It is only read during the compilation. > > > > > > Jussi > > > > > > > > On Thu, May 25, 2017 at 9:06 PM, Gianluigi wrote: > > > > > I need to copy modules and classes from my project, change the code > > > partially and copy it to another project. > > > Is this only possible from IDE or is it possible also from a compiled > > > project? > > > Is there still the src folder in the compiled project? > > > > > > Regards > > > Gianluigi > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Thu May 25 23:23:40 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 25 May 2017 23:23:40 +0200 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: Message-ID: Right, that's what I was thinking to do, thank you. If I succeed, you will see it in the Software farm :-) Regards Gianluigi 2017-05-25 22:46 GMT+02:00 Jussi Lahtinen : > I don't quite understand what you are trying to achieve, but you can copy > the src folder to the data folder and then it will in the executable. Maybe > you can even link it into the data folder. > > > Jussi > > On Thu, May 25, 2017 at 11:23 PM, Gianluigi wrote: > > > OK I will look for another way to do this. > > > > Regards > > Gianluigi > > > > 2017-05-25 21:36 GMT+02:00 Jussi Lahtinen : > > > > > Src folder contains the source code for your project. You don't need to > > use > > > IDE to copy or edit the files. > > > Compiled binary does not contain source code, nor the compiling touches > > to > > > the src folder. It is only read during the compilation. > > > > > > > > > Jussi > > > > > > > > > > > > On Thu, May 25, 2017 at 9:06 PM, Gianluigi > wrote: > > > > > > > I need to copy modules and classes from my project, change the code > > > > partially and copy it to another project. > > > > Is this only possible from IDE or is it possible also from a compiled > > > > project? > > > > Is there still the src folder in the compiled project? > > > > > > > > Regards > > > > Gianluigi > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From karl.reinl at ...9... Thu May 25 23:24:29 2017 From: karl.reinl at ...9... (Karl Reinl) Date: Thu, 25 May 2017 23:24:29 +0200 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: Message-ID: <1495747469.23029.11.camel@...3609...> Am Donnerstag, den 25.05.2017, 20:06 +0200 schrieb Gianluigi: > I need to copy modules and classes from my project, change the code > partially and copy it to another project. > Is this only possible from IDE or is it possible also from a compiled > project? > Is there still the src folder in the compiled project? > > Regards > Gianluigi Salut Gianluigi, you can 'import' the modules,classes etc. from other projects on your disc into your new project, using the IDE Import. Or you look into the hidden '.src' folder and copy the files you need. -- Amicalement Charlie From bagonergi at ...626... Thu May 25 23:58:42 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 25 May 2017 23:58:42 +0200 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: <1495747469.23029.11.camel@...3609...> References: <1495747469.23029.11.camel@...3609...> Message-ID: Ciao Charlie, Thanks, the problem is not with/in IDE, but if working with a project.gambas Problem that I can bypass by copying useful files first to a folder, since I have no more src in the compiled project. Regards Gianluigi 2017-05-25 23:24 GMT+02:00 Karl Reinl : > Am Donnerstag, den 25.05.2017, 20:06 +0200 schrieb Gianluigi: > > I need to copy modules and classes from my project, change the code > > partially and copy it to another project. > > Is this only possible from IDE or is it possible also from a compiled > > project? > > Is there still the src folder in the compiled project? > > > > Regards > > Gianluigi > > Salut Gianluigi, > > you can 'import' the modules,classes etc. from other projects on your > disc into your new project, using the IDE Import. > Or you look into the hidden '.src' folder and copy the files you need. > -- > Amicalement > Charlie > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Fri May 26 00:30:52 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 26 May 2017 00:30:52 +0200 Subject: [Gambas-user] An Issue With Shell command and sudoers rules In-Reply-To: <333cdace-5992-531f-4c11-3e4f82e11c8d@...626...> References: <333cdace-5992-531f-4c11-3e4f82e11c8d@...626...> Message-ID: Thanks Lee. I think I've solved it. The solution is in that line. Best Regards. El 25 may. 2017 4:47 p. m., "T Lee Davidson" escribi?: > Disable (ie. comment out) targetpw and the "ALL ALL=(ALL) ALL" line in > /etc/sudoers. > > Then you should probably allow regular users to execute only certain > commands with something like: > %users ALL=/home/adminuser/bin/comando.sh > or a special group for 'privileged' users: > %wheel ALL=/home/adminuser/bin/comando.sh > > See: > https://www.novell.com/support/kb/doc.php?id=7002705 > > -- > Lee > > > On 05/25/2017 05:13 AM, Jorge Carri?n wrote: > > Oh... well, I'm afraid that I've a mistake. > > > > All of this isn't a gambas issue. > > > > BUT if someone knows a way to let a non-sudoer user to update the system > > without know the admin password I'll be very grateful . > > > > Sorry for the noise. > > > > Best Regards > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Fri May 26 00:59:24 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 25 May 2017 18:29:24 -0430 Subject: [Gambas-user] when i used collections on my code, gambas get hangs! In-Reply-To: References: Message-ID: hi jussi, i'll will send to you the code by private mail, in some hours to get more clarelly the problem.. and appreciate your help Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-25 15:34 GMT-04:30 Jussi Lahtinen : > The code you sent is not runnable. So there is obviously something more. > Why you cannot debug it? Just run the project in the IDE and when things go > slow hit pause and see what is inside of the collection. > > > Jussi > > On Thu, May 25, 2017 at 10:56 PM, PICCORO McKAY Lenz < > mckaygerhard at ...626... > > wrote: > > > as code i send, only contanis two connection objects, one for odbc and > > other for sqlite > > > > but i cannot see or debug it, due the interface does not show nothing ... > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-05-25 15:31 GMT-04:00 Jussi Lahtinen : > > > > > Have you checked what the collection contains, when the system slows > > down? > > > Maybe the containing strings are longer than what you expect? Or maybe > > > there are more elements than you expect? > > > How much the running program takes memory, when things get slow? > > > > > > > > > Jussi > > > > > > On Thu, May 25, 2017 at 8:21 PM, PICCORO McKAY Lenz < > > > mckaygerhard at ...626...> > > > wrote: > > > > > > > hi Jussi, the Mem are 4G , the machine are Dell vostro 210 with i7 > > intel > > > > > > > > well complete history its that many days before i run several times > > > gambas > > > > without close it, but in none moment used collections.. > > > > > > > > today only with project where i used collections gambas get slower > > after > > > > some hours... > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > http://qgqlochekone.blogspot.com > > > > > > > > 2017-05-25 10:59 GMT-04:00 Jussi Lahtinen >: > > > > > > > > > Collection requires more memory than string array, so maybe your > box > > is > > > > > just swapping, because of low memory? > > > > > > > > > > > > > > > Jussi > > > > > > > > > > On Thu, May 25, 2017 at 6:00 AM, PICCORO McKAY Lenz < > > > > > mckaygerhard at ...626...> > > > > > wrote: > > > > > > > > > > > there are the piece of code and here there's no secret: > > > > > > > > > > > > Public Function getItems() As Collection > > > > > > > > > > > > Dim $items As New Collection > > > > > > Dim itema, itemb as String = "something" > > > > > > > > > > > > $items.Add($itema, "item1") > > > > > > $items.Add($itemb, "item2") > > > > > > $items.Add(2, "cuantos") > > > > > > > > > > > > Return $items > > > > > > > > > > > > End > > > > > > > > > > > > here the previous code "bad programed" and when i swicht to > > > collection > > > > > > gambas ide get slower after some time, the code was: > > > > > > > > > > > > Public Function getItems() As String[] > > > > > > > > > > > > Dim $items As New String[] > > > > > > Dim itema, itemb as String = "something" > > > > > > > > > > > > $items.Add($itema) > > > > > > $items.Add($itemb) > > > > > > > > > > > > Return $items > > > > > > > > > > > > End > > > > > > > > > > > > the gambas ide and the OS was not shutdown during 40 days, also > the > > > > > gambas > > > > > > ide was not quit in this period, and in that period i run the > huge > > > data > > > > > > code of the 3 odbc bug with 100000 registers, after change the > code > > > to > > > > > > collection (each change are little before test) thje ide gambas > > get > > > > slow > > > > > > and does not run well.. > > > > > > > > > > > > this happened to my other partners in the job... i test also in > > > debian > > > > > > jeesie and happened same! > > > > > > > > > > > > i noted that when alone user said something its like "nothigs its > > > > > happened, > > > > > > its just bad programer" > > > > > > > > > > > > will need other to reports, but these other do not have time to > > make > > > a > > > > > > little project and report that.. > > > > > > > > > > > > sqlite was severi broken until gambas 3.6 and must be rewrite for > > > > gambas > > > > > > 3.8 > > > > > > > > > > > > now in gamba 3.9 ther's some doc-online problems with cache and > > some > > > > > memory > > > > > > manage problems.. > > > > > > > > > > > > but for not specialized programmers its very difficult to debug, > > find > > > > and > > > > > > report LIKE THE QT problem.. > > > > > > > > > > > > > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > > > http://qgqlochekone.blogspot.com > > > > > > > > > > > > 2017-05-24 17:01 GMT-04:30 Jussi Lahtinen < > > jussi.lahtinen at ...626... > > > >: > > > > > > > > > > > > > Impossible to say anything without seeing the code, which > causes > > > the > > > > > > > problem. > > > > > > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Thu, May 25, 2017 at 12:11 AM, PICCORO McKAY Lenz < > > > > > > > mckaygerhard at ...626... > > > > > > > > wrote: > > > > > > > > > > > > > > > i change the odbc code for huge data to transport only two > > > objects > > > > > > with a > > > > > > > > string, and i noted that gambas before hangs sometimes... so > i > > > > > > discovered > > > > > > > > that when i used collections the memory management are very > > bad.. > > > > > > > > > > > > > > > > should i send a bug or where i start to see why this happened > > or > > > > its > > > > > > only > > > > > > > > happened only to me! > > > > > > > > > > > > > > > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > > > > > http://qgqlochekone.blogspot.com > > > > > > > > ------------------------------------------------------------ > > > > > > > > ------------------ > > > > > > > > Check out the vibrant tech community on one of the world's > most > > > > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > > > > _______________________________________________ > > > > > > > > Gambas-user mailing list > > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > > ------------------------------------------------------------ > > > > > > > ------------------ > > > > > > > Check out the vibrant tech community on one of the world's most > > > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > > > _______________________________________________ > > > > > > > Gambas-user mailing list > > > > > > > Gambas-user at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > ------------------------------------------------------------ > > > > > > ------------------ > > > > > > Check out the vibrant tech community on one of the world's most > > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > > _______________________________________________ > > > > > > Gambas-user mailing list > > > > > > Gambas-user at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > ------------------------------------------------------------ > > > > > ------------------ > > > > > Check out the vibrant tech community on one of the world's most > > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > > _______________________________________________ > > > > > Gambas-user mailing list > > > > > Gambas-user at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Fri May 26 02:13:38 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 26 May 2017 00:13:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1109: Wrong Substitution In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1109&from=L21haW4- Comment #1 by Beno?t MINISINI: The Connection.Subst() method is for quoting SQL values. To quote SQL table or fields, you must use the Connection.Quote() method. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at ...3416... Fri May 26 02:21:23 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 26 May 2017 00:21:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1094: Wait command freezes when clock is adjusted back In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1094&from=L21haW4- Comment #2 by Beno?t MINISINI: It should be fixed in revision #8138, where a monotonic clock is sued to implement the WAIT instruction. Beno?t MINISINI changed the state of the bug to: Fixed. From bagonergi at ...626... Fri May 26 09:49:43 2017 From: bagonergi at ...626... (Gianluigi) Date: Fri, 26 May 2017 09:49:43 +0200 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: <1495747469.23029.11.camel@...3609...> Message-ID: I forgot to say that I know a way to extract the source code from a compiled Gambas file, it can be seen here[0]. Regards Gianluigi [0]http://www.gambas-it.org/smf/index.php?topic=4448.msg38882#msg38882 2017-05-25 23:58 GMT+02:00 Gianluigi : > Ciao Charlie, > > Thanks, the problem is not with/in IDE, but if working with a > project.gambas > Problem that I can bypass by copying useful files first to a folder, since > I have no more src in the compiled project. > > Regards > Gianluigi > > 2017-05-25 23:24 GMT+02:00 Karl Reinl : > >> Am Donnerstag, den 25.05.2017, 20:06 +0200 schrieb Gianluigi: >> > I need to copy modules and classes from my project, change the code >> > partially and copy it to another project. >> > Is this only possible from IDE or is it possible also from a compiled >> > project? >> > Is there still the src folder in the compiled project? >> > >> > Regards >> > Gianluigi >> >> Salut Gianluigi, >> >> you can 'import' the modules,classes etc. from other projects on your >> disc into your new project, using the IDE Import. >> Or you look into the hidden '.src' folder and copy the files you need. >> -- >> Amicalement >> Charlie >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From unaiseek at ...626... Fri May 26 10:22:57 2017 From: unaiseek at ...626... (Unaise EK) Date: Fri, 26 May 2017 13:52:57 +0530 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: <1495747469.23029.11.camel@...3609...> Message-ID: Sir, when i type "Select * from NameTbl where Adm = '" & textbox1.tex &"';" this query not working, then i changed it to "Select Name, Adm, Place from NameTbl where Adm ='"& textbox1.tex &"';" this query is working. so how can i write * from query in gambas 3 pls help Sent with Mailtrack On Fri, May 26, 2017 at 1:19 PM, Gianluigi wrote: > I forgot to say that I know a way to extract the source code from a > compiled Gambas file, it can be seen here[0]. > > Regards > Gianluigi > > [0]http://www.gambas-it.org/smf/index.php?topic=4448.msg38882#msg38882 > > 2017-05-25 23:58 GMT+02:00 Gianluigi : > > > Ciao Charlie, > > > > Thanks, the problem is not with/in IDE, but if working with a > > project.gambas > > Problem that I can bypass by copying useful files first to a folder, > since > > I have no more src in the compiled project. > > > > Regards > > Gianluigi > > > > 2017-05-25 23:24 GMT+02:00 Karl Reinl : > > > >> Am Donnerstag, den 25.05.2017, 20:06 +0200 schrieb Gianluigi: > >> > I need to copy modules and classes from my project, change the code > >> > partially and copy it to another project. > >> > Is this only possible from IDE or is it possible also from a compiled > >> > project? > >> > Is there still the src folder in the compiled project? > >> > > >> > Regards > >> > Gianluigi > >> > >> Salut Gianluigi, > >> > >> you can 'import' the modules,classes etc. from other projects on your > >> disc into your new project, using the IDE Import. > >> Or you look into the hidden '.src' folder and copy the files you need. > >> -- > >> Amicalement > >> Charlie > >> > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- M. Unaise. E.K 9895687604 Librarian, (BLISc, MLIS) JDT Islam Polytechnic College, Vellimadukunnu. From shordi at ...626... Sat May 27 18:08:42 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 27 May 2017 18:08:42 +0200 Subject: [Gambas-user] Change the code and copy in other project In-Reply-To: References: <1495747469.23029.11.camel@...3609...> Message-ID: Unaisee, You must open a new email for a new question, not answer an existent. * is stored exactly as other characters, so you problem is not in the string. It should be in other place. Best regards 2017-05-26 10:22 GMT+02:00 Unaise EK : > Sir, > when i type "Select * from NameTbl where Adm = '" & textbox1.tex &"';" > this query not working, then i changed it to > "Select Name, Adm, Place from NameTbl where Adm ='"& textbox1.tex &"';" > this query is working. > > so how can i write * from query in gambas 3 > pls help > > > > Sent with Mailtrack > referral=unaiseek at ...626...&idSignature=22> > > On Fri, May 26, 2017 at 1:19 PM, Gianluigi wrote: > > > I forgot to say that I know a way to extract the source code from a > > compiled Gambas file, it can be seen here[0]. > > > > Regards > > Gianluigi > > > > [0]http://www.gambas-it.org/smf/index.php?topic=4448.msg38882#msg38882 > > > > 2017-05-25 23:58 GMT+02:00 Gianluigi : > > > > > Ciao Charlie, > > > > > > Thanks, the problem is not with/in IDE, but if working with a > > > project.gambas > > > Problem that I can bypass by copying useful files first to a folder, > > since > > > I have no more src in the compiled project. > > > > > > Regards > > > Gianluigi > > > > > > 2017-05-25 23:24 GMT+02:00 Karl Reinl : > > > > > >> Am Donnerstag, den 25.05.2017, 20:06 +0200 schrieb Gianluigi: > > >> > I need to copy modules and classes from my project, change the code > > >> > partially and copy it to another project. > > >> > Is this only possible from IDE or is it possible also from a > compiled > > >> > project? > > >> > Is there still the src folder in the compiled project? > > >> > > > >> > Regards > > >> > Gianluigi > > >> > > >> Salut Gianluigi, > > >> > > >> you can 'import' the modules,classes etc. from other projects on your > > >> disc into your new project, using the IDE Import. > > >> Or you look into the hidden '.src' folder and copy the files you need. > > >> -- > > >> Amicalement > > >> Charlie > > >> > > >> > > >> ------------------------------------------------------------ > > >> ------------------ > > >> Check out the vibrant tech community on one of the world's most > > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > M. Unaise. E.K > 9895687604 > Librarian, > (BLISc, MLIS) > JDT Islam Polytechnic College, > Vellimadukunnu. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Sat May 27 21:06:22 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 27 May 2017 19:06:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1110&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- Error trying to add event on menu complete Type : Bug Priority : Low Gambas version : 3.9 Product : Bugtracker Description ----------- Error trying to add event Public Sub Form_Open() Dim boton As Button Dim MenuBoton As MenuButton Dim vers As String Me.Title = "Ir" For Each vers In $Lista ' boton = New Button(ScrollView1) As "ScrollView1" ' boton.Font.Size = 11 ' boton.Text = vers MenuBoton = New MenuButton(ScrollView1) As "Ev_MenuBoton" MenuBoton.Text = vers Next End 'event click Public Sub Ev_MenuBoton_ System information ------------------ Gambas=3.9.2 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1950M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 From bugtracker at ...3416... Sat May 27 21:06:56 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 27 May 2017 19:06:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1110&from=L21haW4- V?ctor PEREZ added an attachment: bug_completion.png From bugtracker at ...3416... Sat May 27 21:07:28 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 27 May 2017 19:07:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1110&from=L21haW4- V?ctor PEREZ added an attachment: bug_completionMenubutton.png From bugtracker at ...3416... Sat May 27 21:21:06 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 27 May 2017 19:21:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1110&from=L21haW4- Comment #1 by Beno?t MINISINI: Please post a full project archive that reproduces the bug. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Sun May 28 00:04:42 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 27 May 2017 22:04:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1110&from=L21haW4- Comment #2 by V?ctor PEREZ: To reproduce the error add to Ev_MenuBoton a _ and select the event click and press enter From bugtracker at ...3416... Sun May 28 00:05:04 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 27 May 2017 22:05:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1110&from=L21haW4- V?ctor PEREZ added an attachment: bug_menu_event-0.1.1.tar.gz From bugtracker at ...3416... Sun May 28 00:16:12 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 27 May 2017 22:16:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1110: Error trying to add event on menu complete In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1110&from=L21haW4- Comment #3 by V?ctor PEREZ: I think the error occurs because there are 2 _ From bill-lancaster at ...2231... Sun May 28 12:00:07 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 28 May 2017 03:00:07 -0700 (MST) Subject: [Gambas-user] rdir returns unwanted directories Message-ID: <1495965607958-59204.post@...3046...> This line of code returns files AND directories sFileArray = RDir(sPathThumbs, "*", gb.File) Any ideas would be welcome Gambas 3.9.2 Kubuntu 16.10 -- View this message in context: http://gambas.8142.n7.nabble.com/rdir-returns-unwanted-directories-tp59204.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Sun May 28 13:55:28 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 28 May 2017 13:55:28 +0200 Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <1495965607958-59204.post@...3046...> References: <1495965607958-59204.post@...3046...> Message-ID: You mean this? sFileArray = RDir(sPathThumbs, "*.{png,jpg}", gb.File) Regards Gianluigi 2017-05-28 12:00 GMT+02:00 bill-lancaster : > This line of code returns files AND directories > > sFileArray = RDir(sPathThumbs, "*", gb.File) > > Any ideas would be welcome > > Gambas 3.9.2 > Kubuntu 16.10 > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/rdir-returns-unwanted-directories-tp59204.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Sun May 28 14:12:42 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 28 May 2017 14:12:42 +0200 Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <1495965607958-59204.post@...3046...> References: <1495965607958-59204.post@...3046...> Message-ID: If you do not want to search in the sub directories use Dir Regards Gianluigi 2017-05-28 12:00 GMT+02:00 bill-lancaster : > This line of code returns files AND directories > > sFileArray = RDir(sPathThumbs, "*", gb.File) > > Any ideas would be welcome > > Gambas 3.9.2 > Kubuntu 16.10 > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/rdir-returns-unwanted-directories-tp59204.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bill-lancaster at ...2231... Sun May 28 14:28:05 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 28 May 2017 05:28:05 -0700 (MST) Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: References: <1495965607958-59204.post@...3046...> Message-ID: <1495974485471-59207.post@...3046...> By specifying only files of type png or jpg directories would be excluded any way. So this would produce the same result:- sFileArray = RDir(sPathThumbs, "*.{png,jpg}") Any way, I must thank you because I'd been looking for a way to specify multiple file types and you've answered my question! Bill -- View this message in context: http://gambas.8142.n7.nabble.com/rdir-returns-unwanted-directories-tp59204p59207.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Sun May 28 15:05:33 2017 From: charlie at ...2793... (Charlie) Date: Sun, 28 May 2017 06:05:33 -0700 (MST) Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <1495974485471-59207.post@...3046...> References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> Message-ID: <1495976733818-59208.post@...3046...> I presume you just want the file name not the folder details. If so try this, sFiles will contain just the file name: - *Public Sub Form_Open() Dim sFileArray As New String[] Dim sFiles As New String[] Dim sTemp As String sFileArray = RDir(User.Home, "*", gb.File) For Each sTemp In sFileArray sFiles.Add(Mid(sTemp, RInStr(sTemp, "/") + 1)) Next End* ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/rdir-returns-unwanted-directories-tp59204p59208.html Sent from the gambas-user mailing list archive at Nabble.com. From bill-lancaster at ...2231... Sun May 28 16:22:19 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Sun, 28 May 2017 07:22:19 -0700 (MST) Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <1495976733818-59208.post@...3046...> References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> <1495976733818-59208.post@...3046...> Message-ID: <1495981339706-59209.post@...3046...> Thank you Charlie, In fact I'm looking for all the image files in the sPathThumbs folder -- View this message in context: http://gambas.8142.n7.nabble.com/rdir-returns-unwanted-directories-tp59204p59209.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Sun May 28 17:19:13 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 28 May 2017 17:19:13 +0200 Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <1495976733818-59208.post@...3046...> References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> <1495976733818-59208.post@...3046...> Message-ID: now I understand the question :-) Regards Gianluigi 2017-05-28 15:05 GMT+02:00 Charlie : > I presume you just want the file name not the folder details. If so try > this, > sFiles will contain just the file name: - > *Public Sub Form_Open() > Dim sFileArray As New String[] > Dim sFiles As New String[] > Dim sTemp As String > sFileArray = RDir(User.Home, "*", gb.File) > For Each sTemp In sFileArray > sFiles.Add(Mid(sTemp, RInStr(sTemp, "/") + 1)) > Next > End* > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/rdir-returns-unwanted-directories-tp59204p59208.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Sun May 28 17:40:53 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 28 May 2017 17:40:53 +0200 Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <1495976733818-59208.post@...3046...> References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> <1495976733818-59208.post@...3046...> Message-ID: <20170528154053.GA589@...3600...> On Sun, 28 May 2017, Charlie wrote: > I presume you just want the file name not the folder details. If so try this, > sFiles will contain just the file name: - > *Public Sub Form_Open() > Dim sFileArray As New String[] > Dim sFiles As New String[] > Dim sTemp As String > sFileArray = RDir(User.Home, "*", gb.File) > For Each sTemp In sFileArray > sFiles.Add(Mid(sTemp, RInStr(sTemp, "/") + 1)) > Next > End* Instead of Mid(sTemp, RInStr(sTemp, "/") + 1) you may want to use the appropriately named function File.Name(sTemp). Still, using RDir(..., "*", gb.File) only gives me files, no directories, so I can't reproduce your original problem here. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Sun May 28 19:22:38 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 28 May 2017 19:22:38 +0200 Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <20170528154053.GA589@...3600...> References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> <1495976733818-59208.post@...3046...> <20170528154053.GA589@...3600...> Message-ID: Hi Tobias, if I have in my home a directory named image with a subfolder named my-image, containing both images, and I write: Public Sub Main() Dim sFileArray As String[] Dim s As String Dim sPath As String = "~/image" ' Run directory e sub-directory sFileArray = RDir(sPath, "*.{png,jpg}", gb.File) For Each s In sFileArray Print s Next End I obtain this: my-image/actress.png my-image/alfa.jpg my-image/lamb.jpg snail.jpg horse.jpg oggy.png sparkle.png homer.jpg In the first three cases, to get the only file name, I need your suggestion. Do not work so RDir to you? Regards Gianluigi 2017-05-28 17:40 GMT+02:00 Tobias Boege : > On Sun, 28 May 2017, Charlie wrote: > > I presume you just want the file name not the folder details. If so try > this, > > sFiles will contain just the file name: - > > *Public Sub Form_Open() > > Dim sFileArray As New String[] > > Dim sFiles As New String[] > > Dim sTemp As String > > sFileArray = RDir(User.Home, "*", gb.File) > > For Each sTemp In sFileArray > > sFiles.Add(Mid(sTemp, RInStr(sTemp, "/") + 1)) > > Next > > End* > > Instead of Mid(sTemp, RInStr(sTemp, "/") + 1) you may want to use the > appropriately named function File.Name(sTemp). > > Still, using RDir(..., "*", gb.File) only gives me files, no directories, > so I can't reproduce your original problem here. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Sun May 28 19:29:13 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 28 May 2017 19:29:13 +0200 Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> <1495976733818-59208.post@...3046...> <20170528154053.GA589@...3600...> Message-ID: <20170528172913.GC589@...3600...> On Sun, 28 May 2017, Gianluigi wrote: > Hi Tobias, > if I have in my home a directory named image with a subfolder named > my-image, containing both images, and I write: > > Public Sub Main() > > Dim sFileArray As String[] > Dim s As String > Dim sPath As String = "~/image" > ' Run directory e sub-directory > sFileArray = RDir(sPath, "*.{png,jpg}", gb.File) > For Each s In sFileArray > Print s > Next > > End > > I obtain this: > > my-image/actress.png > my-image/alfa.jpg > my-image/lamb.jpg > snail.jpg > horse.jpg > oggy.png > sparkle.png > homer.jpg > > > In the first three cases, to get the only file name, I need your suggestion. > > Do not work so RDir to you? > Oh, now the whole thread makes sense to me! I thought your problem was that if you have a *directory* named "x.jpg" and issued RDir(..., "*.{png,jpg}", gb.File) the gb.File filter was ignored and you were reported the directory "x.jpg", because the "*.{png,jpg}" pattern matched. But you just wanted to get rid of the directory component. Then you have your solution (use File.Name on s) and there is no problem. Our RDir()s behave the same. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Sun May 28 22:43:03 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 28 May 2017 22:43:03 +0200 Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <20170528172913.GC589@...3600...> References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> <1495976733818-59208.post@...3046...> <20170528154053.GA589@...3600...> <20170528172913.GC589@...3600...> Message-ID: Finally, it's all clear to me as well. In my example, just change the code like this: Print File.Name(s) Thank you Tobias Regards Gianluigi 2017-05-28 19:29 GMT+02:00 Tobias Boege : > On Sun, 28 May 2017, Gianluigi wrote: > > Hi Tobias, > > if I have in my home a directory named image with a subfolder named > > my-image, containing both images, and I write: > > > > Public Sub Main() > > > > Dim sFileArray As String[] > > Dim s As String > > Dim sPath As String = "~/image" > > ' Run directory e sub-directory > > sFileArray = RDir(sPath, "*.{png,jpg}", gb.File) > > For Each s In sFileArray > > Print s > > Next > > > > End > > > > I obtain this: > > > > my-image/actress.png > > my-image/alfa.jpg > > my-image/lamb.jpg > > snail.jpg > > horse.jpg > > oggy.png > > sparkle.png > > homer.jpg > > > > > > In the first three cases, to get the only file name, I need your > suggestion. > > > > Do not work so RDir to you? > > > > Oh, now the whole thread makes sense to me! I thought your problem was that > if you have a *directory* named "x.jpg" and issued > > RDir(..., "*.{png,jpg}", gb.File) > > the gb.File filter was ignored and you were reported the directory "x.jpg", > because the "*.{png,jpg}" pattern matched. But you just wanted to get rid > of > the directory component. Then you have your solution (use File.Name on s) > and there is no problem. Our RDir()s behave the same. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From fernandojosecabral at ...626... Mon May 29 00:17:17 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 28 May 2017 19:17:17 -0300 Subject: [Gambas-user] Reg expression still beating me up Message-ID: In the piece of code bellow, RegExp.Replace will never return. Sentencas[i] = "Test string." Print "Before replacing" Sentencas[i] = RegExp.Replace(Sentencas[i], "[.:!?;]*[ ]*?\n*?", "", RegExp.UTF8) Print "After replacing" It beats me, because what it should do is very simple: optionally find one of the punction marks (.:?!;) optionally followed by any number of white space, optionally followed by any number of "\n" (end of line). Replace whatever is found with an empty string. In the text string, it should find the dot (.) and replace it with nothing. So, the returned string should be "Test string". Alas! It will never come back. Same if I replace the test string with "Test string. \n" or "Test string.\n" Now, this works as expected, but this is not what I need: "[.:!?;][ ]*?\n*?", "" To my eyes, "[.:!?;]*[ ]*?\n*?" is a perfectly valid regular expression. Any hints? -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada. From taboege at ...626... Mon May 29 00:30:56 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 29 May 2017 00:30:56 +0200 Subject: [Gambas-user] Reg expression still beating me up In-Reply-To: References: Message-ID: <20170528223056.GD589@...3600...> On Sun, 28 May 2017, Fernando Cabral wrote: > In the piece of code bellow, RegExp.Replace will never return. > > Sentencas[i] = "Test string." > Print "Before replacing" > Sentencas[i] = RegExp.Replace(Sentencas[i], "[.:!?;]*[ ]*?\n*?", "", > RegExp.UTF8) > Print "After replacing" > > It beats me, because what it should do is very simple: optionally find one > of the punction marks (.:?!;) optionally followed by any number of white > space, optionally followed by any number of "\n" (end of line). Replace > whatever is found with an empty string. > > In the text string, it should find the dot (.) and replace it with nothing. > So, the returned string should be "Test string". > > Alas! It will never come back. Same if I replace the test string with > "Test string. \n" or "Test string.\n" > > Now, this works as expected, but this is not what I need: "[.:!?;][ > ]*?\n*?", "" > To my eyes, "[.:!?;]*[ ]*?\n*?" is a perfectly valid regular expression. > > Any hints? > RegExp.Replace() wants to replace *all* occurences of the expression. It is basically a loop of RegExp.Exec() followed by a substitution, as long as the RegExp.Exec() call finds something. Now look at your expression. Since everything is optional, your expression matches the empty string. RegExp.Exec() will always find the empty string and replace it with itself, giving you an infinite loop. I think that the behaviour of RegExp.Replace() in this case is sound and you should use a better expression, that is guaranteed to match a string of positive length or not match at all. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at ...626... Mon May 29 05:30:23 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Mon, 29 May 2017 13:00:23 +0930 Subject: [Gambas-user] Explicitly load a library Message-ID: <20170529130023.5e6803f54c161df977a27551@...626...> Is there any way to explicitly load a library similar to loading a component via Component.Load(name as String)? I want to load a library used by another project and determine the exposed classes in the library. It's for a code generator. So, my "target" project, say "AuctionCalendar" uses the "horse4.gambas" library. My code generator "GenCode2" interrogates the .project file for AuctionCalendar and can load any components it uses and determine the exposed classes therein. But I can't find a way to do the same for the horse4 library. Note, I can't use the source project for horse4 because it may not match the installed version, so I need to get the classes out of the executable archive. -- B Bruen From charlie at ...2793... Mon May 29 11:36:10 2017 From: charlie at ...2793... (Charlie) Date: Mon, 29 May 2017 02:36:10 -0700 (MST) Subject: [Gambas-user] rdir returns unwanted directories In-Reply-To: <20170528154053.GA589@...3600...> References: <1495965607958-59204.post@...3046...> <1495974485471-59207.post@...3046...> <1495976733818-59208.post@...3046...> <20170528154053.GA589@...3600...> Message-ID: <1496050570505-59218.post@...3046...> Tobias Boege-2 wrote > Instead of Mid(sTemp, RInStr(sTemp, "/") + 1) you may want to use the > appropriately named function File.Name(sTemp). Thanks Tobi, I didn't know that one. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/rdir-returns-unwanted-directories-tp59204p59218.html Sent from the gambas-user mailing list archive at Nabble.com. From leondavisjr at ...626... Mon May 29 15:03:59 2017 From: leondavisjr at ...626... (Leon Davis) Date: Mon, 29 May 2017 08:03:59 -0500 Subject: [Gambas-user] Form listener Message-ID: Using Gambas v3.9.2 and GTK+3 I have added a form to another form: Dim NForm as Form NForm = new MyForm(ME) as "MyForm" The problem I'm having is none of the Key events, i.e. (keypress, keyup, keydown) for either form do anything. Also the Form_Resize for NForm doesn't fire. In my search I found an item that mentioned doing a search for listener in the Gambas wiki but that search was unsuccessful. Searched the mailing list with the same result. Any suggestions? From mckaygerhard at ...626... Mon May 29 15:54:12 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 29 May 2017 09:54:12 -0400 Subject: [Gambas-user] odbc a way to know if a sql DDL was susessfully or not? In-Reply-To: References: <4eee6c9f-258c-2a79-8e11-59a39d3bf7d3@...1...> Message-ID: 2017-05-24 14:30 GMT-04:00 PICCORO McKAY Lenz : > 2017-05-24 14:21 GMT-04:00 Cristiano Guadagnino : > >> PICCORO, the usual way to know if a sql statement succeeded or not is by >> checking the sqlcode. >> Negative sqlcodes indicate a problem. >> Odbc should support returning sqlcodes to the caller. >> Can you check if you have any sqlcodes returned to you in the results? >> > the code return as -1 meas TRUE in gambas, and where when false? i found that behaviour: 1) if the sql was correct, returns "-1" that in gambas means TRUE (very confusin respect odbc) 2) if the sql are bad or invalid, retun a null object so there's no "-1" or whatever possible check!!! 3) if the sql are correct but the resuilt are not expected (i mean there's no rows in table) returns "-1" too, that's the problem ? > oh men i not cheked that.. i asumed always return -1 > > lest try and report feedback here! > > >> Oh and btw... What's wrong with using a try/catch? >> >> Cris >> >> >> Il 24 mag 2017 7:35 PM, "PICCORO McKAY Lenz" ha >> scritto: >> >> > umm any idea : how can i know if using odbc a DDL like CREATE or DROP >> TABLE >> > was executed correctly without error , BUT using the result object and >> not >> > a try/catch block! >> > >> > Lenz McKAY Gerardo (PICCORO) >> > http://qgqlochekone.blogspot.com >> > >> > 2017-05-24 10:07 GMT-04:00 PICCORO McKAY Lenz : >> > >> > > please pardom me, i explain me better: >> > > >> > > i mean: how can i know if a DDL like CREATE or DROP TABLE was executed >> > > correctly without error , using the result object and not a try/catch >> > block! >> > > >> > > Lenz McKAY Gerardo (PICCORO) >> > > http://qgqlochekone.blogspot.com >> > > >> > > 2017-05-24 9:58 GMT-04:00 Beno?t Minisini < >> gambas at ...1...> >> > : >> > > >> > >> Le 24/05/2017 ? 15:47, PICCORO McKAY Lenz a ?crit : >> > >> >> > >>> due the odbc does not provide a record count like mysql does (cos >> > >>> provider >> > >>> may o nor offer) on every sql query.. >> > >>> >> > >>> how we can know if a DDL sql (i mean a select, a dropt table, or a >> > create >> > >>> table) was excecuted using the result object and without a try catch >> > >>> method? >> > >>> >> > >>> >> > >>> Lenz McKAY Gerardo (PICCORO) >> > >>> http://qgqlochekone.blogspot.com >> > >>> >> > >> >> > >> The record count is only for Result objects. So you should not get it >> > for >> > >> a CREATE or a DROP TABLE statement. >> > >> >> > >> A record count of -1 means that you have to use the MoveNext() method >> > >> until the Available property is False to get each record. Once done, >> > then >> > >> you know how many records you get. >> > >> >> > >> I think the reason is that the underlying ODBC driver sends the >> result >> > >> line by line, whereas the others (MySQL, PostgreSQL and SQLite >> drivers) >> > >> send all the lines by default. >> > >> >> > >> Maybe the ODBC driver should store the entire query result in memory >> to >> > >> simulate a standard Result object when it is internally "move >> forward" >> > only? >> > >> >> > >> -- >> > >> Beno?t Minisini >> > >> >> > > >> > > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> 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: error-odbc.png Type: image/png Size: 29563 bytes Desc: not available URL: From mckaygerhard at ...626... Mon May 29 17:11:55 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 29 May 2017 11:11:55 -0400 Subject: [Gambas-user] wiki sintax "code gambas" highliter Message-ID: i see that in wiki gamba only that highliter are available or there's some other more neutral? i have problems for some code examples that are not specific ofr gambas, and the wiki instructions documentations does not document all the wiki sintax (i noted the "[[ code gambas" and then end with "]]" are not documented) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Mon May 29 17:31:51 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 29 May 2017 11:31:51 -0400 Subject: [Gambas-user] wiki sintax "code gambas" highliter In-Reply-To: References: Message-ID: i search the [GB.EVAL.HIGHLIGHT] svn code and seems are only 3 : gambas, sql and css? or how can i see that? something can iluminate me? and i documented in the wiki due seems are missing the highlighter code for wiki sintax! in the wiki docs! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-29 11:11 GMT-04:00 PICCORO McKAY Lenz : > i see that in wiki gamba only that highliter are available or there's some > other more neutral? > > i have problems for some code examples that are not specific ofr gambas, > > and the wiki instructions documentations does not document all the wiki > sintax > (i noted the "[[ code gambas" and then end with "]]" are not documented) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From taboege at ...626... Mon May 29 17:34:41 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 29 May 2017 17:34:41 +0200 Subject: [Gambas-user] Form listener In-Reply-To: References: Message-ID: <20170529153441.GA573@...3600...> On Mon, 29 May 2017, Leon Davis wrote: > Using Gambas v3.9.2 and GTK+3 > > I have added a form to another form: > > Dim NForm as Form > NForm = new MyForm(ME) as "MyForm" > > The problem I'm having is none of the Key events, i.e. (keypress, keyup, > keydown) for either form do anything. Also the Form_Resize for NForm > doesn't fire. In my search I found an item that mentioned doing a search > for listener in the Gambas wiki but that search was unsuccessful. Searched > the mailing list with the same result. Any suggestions? What is your problem exactly; where does the event not fire? But let me make a guess to what question you are asking and answer that question. You want to know why the Form_Resize event in your MyForm class does not fire? The reason for this is that you give your NForm instance of the MyForm class an event name "MyForm" explicitly (by using As "MyForm"). I'll assume that the above code is executed inside another Form called, say, FParent. If you create an object inside FParent and give it an event name, as you do above, FParent will become the *default event observer* for that object. It will intercept all the events that the object NForm raises and these events will be issued under the event name "MyForm" you specified. Why is this a problem? Normally, forms are their own default event observer, under the event name "Form". This is a mechanic hidden inside the Form class code -- when a form object is created and detects that it hasn't gotten an explicit default event observer, it makes itself its own event observer. This is what enables you to normally intercept a Form's Resize event inside its own class code, by defining the Form_Resize event handler. To summarise: because you use the As "MyForm" syntax, you give NForm a new default event observer (namely FParent). You can now intercept the events of NForm inside the code of FParent, by using the event name MyForm, but you *cannot* intercept the events in the MyForm code using the event name Form anymore. The solution is: don't use the As "MyForm" syntax if you want to continue receiving NForm's events inside MyForm's class code. Instead you should *duplicate* all the events by using an Observer: Dim NForm As MyForm Dim hObs As Observer NForm = New MyForm hObs = New Observer(NForm) As "MyForm" Now you have NForm which is its default event observer (so Form_Resize will fire inside the MyForm class) and you duplicate all the events that happen through the observer, so you also receive the events in FParent, such as MyForm_Resize. I believe this is what you mean by "listener", but the appropriate Gambas term is "observer". The article "The Gambas Object Model" [1] in the wiki should be mandatory reading for everyone. It feels like I spend more time citing this page than anything else I do on this mailing list. Regards, Tobi [1] http://gambaswiki.org/wiki/doc/object-model#t10 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at ...626... Mon May 29 21:39:55 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 29 May 2017 21:39:55 +0200 Subject: [Gambas-user] Form listener In-Reply-To: <20170529153441.GA573@...3600...> References: <20170529153441.GA573@...3600...> Message-ID: Dim NForm as Form NForm = new MyForm(ME) as "MyForm" the event will fire at : Public Sub MyForm_KeyPress() End 2017-05-29 17:34 GMT+02:00 Tobias Boege : > On Mon, 29 May 2017, Leon Davis wrote: >> Using Gambas v3.9.2 and GTK+3 >> >> I have added a form to another form: >> >> Dim NForm as Form >> NForm = new MyForm(ME) as "MyForm" >> >> The problem I'm having is none of the Key events, i.e. (keypress, keyup, >> keydown) for either form do anything. Also the Form_Resize for NForm >> doesn't fire. In my search I found an item that mentioned doing a search >> for listener in the Gambas wiki but that search was unsuccessful. Searched >> the mailing list with the same result. Any suggestions? > > What is your problem exactly; where does the event not fire? But let me make > a guess to what question you are asking and answer that question. > > You want to know why the Form_Resize event in your MyForm class does not > fire? The reason for this is that you give your NForm instance of the MyForm > class an event name "MyForm" explicitly (by using As "MyForm"). > > I'll assume that the above code is executed inside another Form called, say, > FParent. If you create an object inside FParent and give it an event name, > as you do above, FParent will become the *default event observer* for that > object. It will intercept all the events that the object NForm raises and > these events will be issued under the event name "MyForm" you specified. > > Why is this a problem? Normally, forms are their own default event observer, > under the event name "Form". This is a mechanic hidden inside the Form class > code -- when a form object is created and detects that it hasn't gotten an > explicit default event observer, it makes itself its own event observer. > This is what enables you to normally intercept a Form's Resize event inside > its own class code, by defining the Form_Resize event handler. > > To summarise: because you use the As "MyForm" syntax, you give NForm a new > default event observer (namely FParent). You can now intercept the events of > NForm inside the code of FParent, by using the event name MyForm, but you > *cannot* intercept the events in the MyForm code using the event name Form > anymore. > > The solution is: don't use the As "MyForm" syntax if you want to continue > receiving NForm's events inside MyForm's class code. Instead you should > *duplicate* all the events by using an Observer: > > Dim NForm As MyForm > Dim hObs As Observer > > NForm = New MyForm > hObs = New Observer(NForm) As "MyForm" > > Now you have NForm which is its default event observer (so Form_Resize will > fire inside the MyForm class) and you duplicate all the events that happen > through the observer, so you also receive the events in FParent, such as > MyForm_Resize. I believe this is what you mean by "listener", but the > appropriate Gambas term is "observer". > > The article "The Gambas Object Model" [1] in the wiki should be mandatory > reading for everyone. It feels like I spend more time citing this page than > anything else I do on this mailing list. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/doc/object-model#t10 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From admin at ...3661... Wed May 31 06:48:53 2017 From: admin at ...3661... (Admin) Date: Wed, 31 May 2017 11:48:53 +0700 Subject: [Gambas-user] Working with .so library Message-ID: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> So, I am writing a programm for my business that would basically be a cash register. Don't know for other countries but here in Russia the tax law works like this: you have to form a check for a customer in a spicific way spicified by the law, so some hardware manufacturers are making certified cash registers/check printers that simply form the check needed and automatically send tax info to authorities, very simple and easy to integrate with ERP systems. The only problem is that most of accounting software that is compatible with those registers is written for Windows. Now that Windows becomes more and more monstrous, many businesses turn to Linux, at least on those computers that are only a cashier's workstation that does not need to do much in terms of performance power. But the problem is, there's only one or two cashier's programms for linux exist for now, that are compatible with that certified hardware, and it's not open source or free. First of all I want to make my own for myself, and second - I want to share it. Gambas is a great language in this case because of many aspects. In small buisnesses usually there are not a lot of qualified programmers to make some apps in C or C++, but instead there usually is just a single sysadmin, who is servicing the IT stuff wich usually is just one or two PCs and a router/switch. So, Gambas is much more accessible to those people as I see it. Programs written on it are easy to understand and modify to the needs of a small business. And what is great - the manufacturers of that certified hardware are willing to help: ofcourse they mostly do business with Windows stuff, they only work directly with big businesses and they don't produce accounting software themselves, but they are kind enough to provide at least a binary libraries (they call those - drivers, but i'm not shure if it's technically correct) for their hardware even for Linux as a x86 and x64 .so files. What those binary libraries do is simple conversion of easy commands to hex codes that are then passed to a hardware via USB or RS232 or Ethernet. It is MUCH easier to work with those commands then implement the whole communication protocol from scratch. Ofcourse I am not the only one who is interested in those devices to work under linux, and as I can tell from different forums in the internet - programmers successfully use this libraries and thank the developers. There's not a lot of documentation out there, but yeah, on paper it seems to be simple enough... if you write your code in C or C++. Things get much different when you try to use the library in Gambas. What I was able to understand from the documentation is that you need to "initialize the interface" with the library, which will create a "virtual class" and than you can pass your data to it. So, in C (using QT) that would look something like this: typedef IFptr * (*_CreateFptrInterface)(int ver); bool init() { QLibrary *lib = new QLibrary("fptr"); lib->load(); if(lib->isLoaded()) { _CreateFptrInterface CreateFptrInterface = (_CreateFptrInterface)lib->resolve("CreateFptrInterface"); if(CreateFptrInterface) { IFptr * iface = CreateFptrInterface(12); iface->put_DeviceEnabled(true); int result = 0; iface->get_ResultCode(&result); qDebug() << result; wchar_t bfr[1000]; int length = iface->get_ResultDescription(bfr,1000); qDebug() << QString::fromWCharArray(bfr,length); } } } So, as I understand we create a pointer called IFptr by calling CreateFptrInterface() and then we pass any other pointer through this one. Pardon my terminology, I am new to this stuff. I wrote some simple code that basically initializes this driver just so I can see some output in the driver logs which are kindly created in ~/.atol. It also sends some data to driver which must change just one setting: ----- Library "~/ATOL/linux-x64/libfptr" Extern CreateFptrInterface(ver As Integer) As Pointer Extern put_DeviceSingleSettingAsInt(p As Pointer, s1 As String, s2 As Integer) As Integer Extern ApplySingleSettings(p As Pointer) As Pointer [...] Public Sub Button1_Click() Dim IFptr As Pointer IFptr = CreateFptrInterface(12) put_DeviceSingleSettingAsInt(IFptr, "Model", 63) ApplySingleSettings(IFptr) End ----- When I click Button1, the driver surely initializes, I see in logs that IFptr object is created. If I provide the wrong version in CreateFptrInterface it fails, saying in logs that there's missmatch in interface version, so no doubt the argument is passed correctly. I also can see that put_DeviceSingleSetting is being called, but the configuration does not actually change. The commercial software that uses this very same driver and works fine - leaves mostly the same trace in driver's log except that I see what arguments are passed to DeviceSingleSetting. And in my case I only see that the procedure is envoked but with no arguments. I was trying to use many other procedures (or methods, or pointers, or what are they?) with the same effect - they surely are called and executed, but I can't pass any arguments to them. I was experimenting with variable types I send them, and if I, for example, send an integer as an argument when the library expects a string - it crashes. If I do not use IFptr pointer - it crashes. So I think I figured out the syntax correctly, but I still can't get the desired result. My question is basically this: Should I continue experimenting, or is it simply impossible to work with this kind of library from Gambas? Here is the link to the library and some other libraries it uses itself: http://allunix.ru/back/atol.tar.gz - there's also a binary executable that is a test program, unfortunately it's in Russian, but it still shows what logs must look like when everything is correct, just for a comparison. There's simple experiment you can make: it has a pointer ShowProperties() which must show a window with driver's settings using it's own library libgui_engine.so. When I call ShowProperties(IFptr) it prints to log that it can't find this lib, which is expectable, because first I must provide the path to it using put_DeviceSingleSettingAsBuff(IFptr, "SearchDir", "/home/bocha/ATOL/linux-x64/") and AplySingleSettings(IFptr), but when I pass this setting, I, as always, see that it passes no arguments, so the result stays the same. I do understand that I ask a lot of invovement, there's no simple way to understand what's needed to be done to make this whole thing work so not many people would even read this message to the end, but I still hope for some answers, they would be much appriciated. Thank you! Best Regards. Dmitry Bachilo. From Gambas at ...3662... Wed May 31 11:35:40 2017 From: Gambas at ...3662... (Caveat) Date: Wed, 31 May 2017 11:35:40 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> Message-ID: Hallo Dmitry Did you already look at: http://gambaswiki.org/wiki/howto/extern ? Kind regards, Caveat On 31-05-17 06:48, Admin wrote: > So, I am writing a programm for my business that would basically be a > cash register. Don't know for other countries but here in Russia the > tax law works like this: you have to form a check for a customer in a > spicific way spicified by the law, so some hardware manufacturers are > making certified cash registers/check printers that simply form the > check needed and automatically send tax info to authorities, very > simple and easy to integrate with ERP systems. The only problem is > that most of accounting software that is compatible with those > registers is written for Windows. Now that Windows becomes more and > more monstrous, many businesses turn to Linux, at least on those > computers that are only a cashier's workstation that does not need to > do much in terms of performance power. But the problem is, there's > only one or two cashier's programms for linux exist for now, that are > compatible with that certified hardware, and it's not open source or > free. > > > First of all I want to make my own for myself, and second - I want to > share it. Gambas is a great language in this case because of many > aspects. In small buisnesses usually there are not a lot of qualified > programmers to make some apps in C or C++, but instead there usually > is just a single sysadmin, who is servicing the IT stuff wich usually > is just one or two PCs and a router/switch. So, Gambas is much more > accessible to those people as I see it. Programs written on it are > easy to understand and modify to the needs of a small business. > > > And what is great - the manufacturers of that certified hardware are > willing to help: ofcourse they mostly do business with Windows stuff, > they only work directly with big businesses and they don't produce > accounting software themselves, but they are kind enough to provide at > least a binary libraries (they call those - drivers, but i'm not shure > if it's technically correct) for their hardware even for Linux as a > x86 and x64 .so files. What those binary libraries do is simple > conversion of easy commands to hex codes that are then passed to a > hardware via USB or RS232 or Ethernet. It is MUCH easier to work with > those commands then implement the whole communication protocol from > scratch. Ofcourse I am not the only one who is interested in those > devices to work under linux, and as I can tell from different forums > in the internet - programmers successfully use this libraries and > thank the developers. There's not a lot of documentation out there, > but yeah, on paper it seems to be simple enough... if you write your > code in C or C++. > > > Things get much different when you try to use the library in Gambas. > What I was able to understand from the documentation is that you need > to "initialize the interface" with the library, which will create a > "virtual class" and than you can pass your data to it. So, in C (using > QT) that would look something like this: > > > typedef IFptr * (*_CreateFptrInterface)(int ver); > > bool init() { > QLibrary *lib = new QLibrary("fptr"); > lib->load(); > if(lib->isLoaded()) { > _CreateFptrInterface CreateFptrInterface = > (_CreateFptrInterface)lib->resolve("CreateFptrInterface"); > if(CreateFptrInterface) { > IFptr * iface = CreateFptrInterface(12); > iface->put_DeviceEnabled(true); > int result = 0; > iface->get_ResultCode(&result); > qDebug() << result; > wchar_t bfr[1000]; > int length = iface->get_ResultDescription(bfr,1000); > qDebug() << QString::fromWCharArray(bfr,length); > } > } > } > > > So, as I understand we create a pointer called IFptr by calling > CreateFptrInterface() and then we pass any other pointer through this > one. Pardon my terminology, I am new to this stuff. > > I wrote some simple code that basically initializes this driver just > so I can see some output in the driver logs which are kindly created > in ~/.atol. It also sends some data to driver which must change just > one setting: > > ----- > > Library "~/ATOL/linux-x64/libfptr" > > Extern CreateFptrInterface(ver As Integer) As Pointer > Extern put_DeviceSingleSettingAsInt(p As Pointer, s1 As String, s2 As > Integer) As Integer > Extern ApplySingleSettings(p As Pointer) As Pointer > > [...] > > Public Sub Button1_Click() > Dim IFptr As Pointer > > IFptr = CreateFptrInterface(12) > put_DeviceSingleSettingAsInt(IFptr, "Model", 63) > > ApplySingleSettings(IFptr) > > End > > ----- > > When I click Button1, the driver surely initializes, I see in logs > that IFptr object is created. If I provide the wrong version in > CreateFptrInterface it fails, saying in logs that there's missmatch in > interface version, so no doubt the argument is passed correctly. I > also can see that put_DeviceSingleSetting is being called, but the > configuration does not actually change. The commercial software that > uses this very same driver and works fine - leaves mostly the same > trace in driver's log except that I see what arguments are passed to > DeviceSingleSetting. And in my case I only see that the procedure is > envoked but with no arguments. I was trying to use many other > procedures (or methods, or pointers, or what are they?) with the same > effect - they surely are called and executed, but I can't pass any > arguments to them. I was experimenting with variable types I send > them, and if I, for example, send an integer as an argument when the > library expects a string - it crashes. If I do not use IFptr pointer - > it crashes. So I think I figured out the syntax correctly, but I still > can't get the desired result. > > > My question is basically this: Should I continue experimenting, or is > it simply impossible to work with this kind of library from Gambas? > > > Here is the link to the library and some other libraries it uses > itself: http://allunix.ru/back/atol.tar.gz - there's also a binary > executable that is a test program, unfortunately it's in Russian, but > it still shows what logs must look like when everything is correct, > just for a comparison. > > > There's simple experiment you can make: it has a pointer > ShowProperties() which must show a window with driver's settings using > it's own library libgui_engine.so. When I call ShowProperties(IFptr) > it prints to log that it can't find this lib, which is expectable, > because first I must provide the path to it using > put_DeviceSingleSettingAsBuff(IFptr, "SearchDir", > "/home/bocha/ATOL/linux-x64/") and AplySingleSettings(IFptr), but when > I pass this setting, I, as always, see that it passes no arguments, so > the result stays the same. > > I do understand that I ask a lot of invovement, there's no simple way > to understand what's needed to be done to make this whole thing work > so not many people would even read this message to the end, but I > still hope for some answers, they would be much appriciated. Thank you! > > Best Regards. > > Dmitry Bachilo. > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Wed May 31 11:58:26 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 31 May 2017 11:58:26 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> Message-ID: Le 31/05/2017 ? 06:48, Admin a ?crit : > So, I am writing a programm for my business that would basically be a > cash register. Don't know for other countries but here in Russia the tax > law works like this: you have to form a check for a customer in a > spicific way spicified by the law, so some hardware manufacturers are > making certified cash registers/check printers that simply form the > check needed and automatically send tax info to authorities, very simple > and easy to integrate with ERP systems. The only problem is that most of > accounting software that is compatible with those registers is written > for Windows. Now that Windows becomes more and more monstrous, many > businesses turn to Linux, at least on those computers that are only a > cashier's workstation that does not need to do much in terms of > performance power. But the problem is, there's only one or two cashier's > programms for linux exist for now, that are compatible with that > certified hardware, and it's not open source or free. > > > First of all I want to make my own for myself, and second - I want to > share it. Gambas is a great language in this case because of many > aspects. In small buisnesses usually there are not a lot of qualified > programmers to make some apps in C or C++, but instead there usually is > just a single sysadmin, who is servicing the IT stuff wich usually is > just one or two PCs and a router/switch. So, Gambas is much more > accessible to those people as I see it. Programs written on it are easy > to understand and modify to the needs of a small business. > > > And what is great - the manufacturers of that certified hardware are > willing to help: ofcourse they mostly do business with Windows stuff, > they only work directly with big businesses and they don't produce > accounting software themselves, but they are kind enough to provide at > least a binary libraries (they call those - drivers, but i'm not shure > if it's technically correct) for their hardware even for Linux as a x86 > and x64 .so files. What those binary libraries do is simple conversion > of easy commands to hex codes that are then passed to a hardware via USB > or RS232 or Ethernet. It is MUCH easier to work with those commands then > implement the whole communication protocol from scratch. Ofcourse I am > not the only one who is interested in those devices to work under linux, > and as I can tell from different forums in the internet - programmers > successfully use this libraries and thank the developers. There's not a > lot of documentation out there, but yeah, on paper it seems to be simple > enough... if you write your code in C or C++. > > > Things get much different when you try to use the library in Gambas. > What I was able to understand from the documentation is that you need to > "initialize the interface" with the library, which will create a > "virtual class" and than you can pass your data to it. So, in C (using > QT) that would look something like this: > > > typedef IFptr * (*_CreateFptrInterface)(int ver); > > bool init() { > QLibrary *lib = new QLibrary("fptr"); > lib->load(); > if(lib->isLoaded()) { > _CreateFptrInterface CreateFptrInterface = > (_CreateFptrInterface)lib->resolve("CreateFptrInterface"); > if(CreateFptrInterface) { > IFptr * iface = CreateFptrInterface(12); > iface->put_DeviceEnabled(true); > int result = 0; > iface->get_ResultCode(&result); > qDebug() << result; > wchar_t bfr[1000]; > int length = iface->get_ResultDescription(bfr,1000); > qDebug() << QString::fromWCharArray(bfr,length); > } > } > } > > > So, as I understand we create a pointer called IFptr by calling > CreateFptrInterface() and then we pass any other pointer through this > one. Pardon my terminology, I am new to this stuff. > > I wrote some simple code that basically initializes this driver just so > I can see some output in the driver logs which are kindly created in > ~/.atol. It also sends some data to driver which must change just one > setting: > > ----- > > Library "~/ATOL/linux-x64/libfptr" > > Extern CreateFptrInterface(ver As Integer) As Pointer > Extern put_DeviceSingleSettingAsInt(p As Pointer, s1 As String, s2 As > Integer) As Integer > Extern ApplySingleSettings(p As Pointer) As Pointer > > [...] > > Public Sub Button1_Click() > Dim IFptr As Pointer > > IFptr = CreateFptrInterface(12) > put_DeviceSingleSettingAsInt(IFptr, "Model", 63) > > ApplySingleSettings(IFptr) > > End > > ----- > > When I click Button1, the driver surely initializes, I see in logs that > IFptr object is created. If I provide the wrong version in > CreateFptrInterface it fails, saying in logs that there's missmatch in > interface version, so no doubt the argument is passed correctly. I also > can see that put_DeviceSingleSetting is being called, but the > configuration does not actually change. The commercial software that > uses this very same driver and works fine - leaves mostly the same trace > in driver's log except that I see what arguments are passed to > DeviceSingleSetting. And in my case I only see that the procedure is > envoked but with no arguments. I was trying to use many other procedures > (or methods, or pointers, or what are they?) with the same effect - they > surely are called and executed, but I can't pass any arguments to them. > I was experimenting with variable types I send them, and if I, for > example, send an integer as an argument when the library expects a > string - it crashes. If I do not use IFptr pointer - it crashes. So I > think I figured out the syntax correctly, but I still can't get the > desired result. > > > My question is basically this: Should I continue experimenting, or is it > simply impossible to work with this kind of library from Gambas? > > > Here is the link to the library and some other libraries it uses itself: > http://allunix.ru/back/atol.tar.gz - there's also a binary executable > that is a test program, unfortunately it's in Russian, but it still > shows what logs must look like when everything is correct, just for a > comparison. > > > There's simple experiment you can make: it has a pointer > ShowProperties() which must show a window with driver's settings using > it's own library libgui_engine.so. When I call ShowProperties(IFptr) it > prints to log that it can't find this lib, which is expectable, because > first I must provide the path to it using > put_DeviceSingleSettingAsBuff(IFptr, "SearchDir", > "/home/bocha/ATOL/linux-x64/") and AplySingleSettings(IFptr), but when I > pass this setting, I, as always, see that it passes no arguments, so the > result stays the same. > > I do understand that I ask a lot of invovement, there's no simple way to > understand what's needed to be done to make this whole thing work so not > many people would even read this message to the end, but I still hope > for some answers, they would be much appriciated. Thank you! > > Best Regards. > > Dmitry Bachilo. > Apparently all that black box is written in C++ with QT, and without the header of the library interface , I can't tell you if it is possible to use the library with Gambas, and how. Regards, -- Beno?t Minisini From admin at ...3661... Wed May 31 11:59:46 2017 From: admin at ...3661... (Admin) Date: Wed, 31 May 2017 16:59:46 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> Message-ID: Hi, Caveat. Yes, ofcourse, this is basically the only article outthere that explains at least something. But I still can't understand why arguments are not sent to my lib and what do I do wrong if it's not the Gambas issue. 31.05.2017 16:35, Caveat ?????: > Hallo Dmitry > > Did you already look at: > > http://gambaswiki.org/wiki/howto/extern ? > > Kind regards, > Caveat > > On 31-05-17 06:48, Admin wrote: >> So, I am writing a programm for my business that would basically be a >> cash register. Don't know for other countries but here in Russia the >> tax law works like this: you have to form a check for a customer in a >> spicific way spicified by the law, so some hardware manufacturers are >> making certified cash registers/check printers that simply form the >> check needed and automatically send tax info to authorities, very >> simple and easy to integrate with ERP systems. The only problem is >> that most of accounting software that is compatible with those >> registers is written for Windows. Now that Windows becomes more and >> more monstrous, many businesses turn to Linux, at least on those >> computers that are only a cashier's workstation that does not need to >> do much in terms of performance power. But the problem is, there's >> only one or two cashier's programms for linux exist for now, that are >> compatible with that certified hardware, and it's not open source or >> free. >> >> >> First of all I want to make my own for myself, and second - I want to >> share it. Gambas is a great language in this case because of many >> aspects. In small buisnesses usually there are not a lot of qualified >> programmers to make some apps in C or C++, but instead there usually >> is just a single sysadmin, who is servicing the IT stuff wich usually >> is just one or two PCs and a router/switch. So, Gambas is much more >> accessible to those people as I see it. Programs written on it are >> easy to understand and modify to the needs of a small business. >> >> >> And what is great - the manufacturers of that certified hardware are >> willing to help: ofcourse they mostly do business with Windows stuff, >> they only work directly with big businesses and they don't produce >> accounting software themselves, but they are kind enough to provide >> at least a binary libraries (they call those - drivers, but i'm not >> shure if it's technically correct) for their hardware even for Linux >> as a x86 and x64 .so files. What those binary libraries do is simple >> conversion of easy commands to hex codes that are then passed to a >> hardware via USB or RS232 or Ethernet. It is MUCH easier to work with >> those commands then implement the whole communication protocol from >> scratch. Ofcourse I am not the only one who is interested in those >> devices to work under linux, and as I can tell from different forums >> in the internet - programmers successfully use this libraries and >> thank the developers. There's not a lot of documentation out there, >> but yeah, on paper it seems to be simple enough... if you write your >> code in C or C++. >> >> >> Things get much different when you try to use the library in Gambas. >> What I was able to understand from the documentation is that you need >> to "initialize the interface" with the library, which will create a >> "virtual class" and than you can pass your data to it. So, in C >> (using QT) that would look something like this: >> >> >> typedef IFptr * (*_CreateFptrInterface)(int ver); >> >> bool init() { >> QLibrary *lib = new QLibrary("fptr"); >> lib->load(); >> if(lib->isLoaded()) { >> _CreateFptrInterface CreateFptrInterface = >> (_CreateFptrInterface)lib->resolve("CreateFptrInterface"); >> if(CreateFptrInterface) { >> IFptr * iface = CreateFptrInterface(12); >> iface->put_DeviceEnabled(true); >> int result = 0; >> iface->get_ResultCode(&result); >> qDebug() << result; >> wchar_t bfr[1000]; >> int length = iface->get_ResultDescription(bfr,1000); >> qDebug() << QString::fromWCharArray(bfr,length); >> } >> } >> } >> >> >> So, as I understand we create a pointer called IFptr by calling >> CreateFptrInterface() and then we pass any other pointer through this >> one. Pardon my terminology, I am new to this stuff. >> >> I wrote some simple code that basically initializes this driver just >> so I can see some output in the driver logs which are kindly created >> in ~/.atol. It also sends some data to driver which must change just >> one setting: >> >> ----- >> >> Library "~/ATOL/linux-x64/libfptr" >> >> Extern CreateFptrInterface(ver As Integer) As Pointer >> Extern put_DeviceSingleSettingAsInt(p As Pointer, s1 As String, s2 As >> Integer) As Integer >> Extern ApplySingleSettings(p As Pointer) As Pointer >> >> [...] >> >> Public Sub Button1_Click() >> Dim IFptr As Pointer >> >> IFptr = CreateFptrInterface(12) >> put_DeviceSingleSettingAsInt(IFptr, "Model", 63) >> >> ApplySingleSettings(IFptr) >> >> End >> >> ----- >> >> When I click Button1, the driver surely initializes, I see in logs >> that IFptr object is created. If I provide the wrong version in >> CreateFptrInterface it fails, saying in logs that there's missmatch >> in interface version, so no doubt the argument is passed correctly. I >> also can see that put_DeviceSingleSetting is being called, but the >> configuration does not actually change. The commercial software that >> uses this very same driver and works fine - leaves mostly the same >> trace in driver's log except that I see what arguments are passed to >> DeviceSingleSetting. And in my case I only see that the procedure is >> envoked but with no arguments. I was trying to use many other >> procedures (or methods, or pointers, or what are they?) with the same >> effect - they surely are called and executed, but I can't pass any >> arguments to them. I was experimenting with variable types I send >> them, and if I, for example, send an integer as an argument when the >> library expects a string - it crashes. If I do not use IFptr pointer >> - it crashes. So I think I figured out the syntax correctly, but I >> still can't get the desired result. >> >> >> My question is basically this: Should I continue experimenting, or is >> it simply impossible to work with this kind of library from Gambas? >> >> >> Here is the link to the library and some other libraries it uses >> itself: http://allunix.ru/back/atol.tar.gz - there's also a binary >> executable that is a test program, unfortunately it's in Russian, but >> it still shows what logs must look like when everything is correct, >> just for a comparison. >> >> >> There's simple experiment you can make: it has a pointer >> ShowProperties() which must show a window with driver's settings >> using it's own library libgui_engine.so. When I call >> ShowProperties(IFptr) it prints to log that it can't find this lib, >> which is expectable, because first I must provide the path to it >> using put_DeviceSingleSettingAsBuff(IFptr, "SearchDir", >> "/home/bocha/ATOL/linux-x64/") and AplySingleSettings(IFptr), but >> when I pass this setting, I, as always, see that it passes no >> arguments, so the result stays the same. >> >> I do understand that I ask a lot of invovement, there's no simple way >> to understand what's needed to be done to make this whole thing work >> so not many people would even read this message to the end, but I >> still hope for some answers, they would be much appriciated. Thank you! >> >> Best Regards. >> >> Dmitry Bachilo. >> >> >> ------------------------------------------------------------------------------ >> >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...1... Wed May 31 12:10:31 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 31 May 2017 12:10:31 +0200 Subject: [Gambas-user] Explicitly load a library In-Reply-To: <20170529130023.5e6803f54c161df977a27551@...626...> References: <20170529130023.5e6803f54c161df977a27551@...626...> Message-ID: <0b28a71b-5439-be49-bdaf-9e4335d91e0b@...1...> Le 29/05/2017 ? 05:30, adamnt42 at ...626... a ?crit : > Is there any way to explicitly load a library similar to loading a > component via Component.Load(name as String)? > > I want to load a library used by another project and determine the > exposed classes in the library. It's for a code generator. > > So, my "target" project, say "AuctionCalendar" uses the > "horse4.gambas" library. My code generator "GenCode2" interrogates > the .project file for AuctionCalendar and can load any components it > uses and determine the exposed classes therein. But I can't find a > way to do the same for the horse4 library. Note, I can't use the > source project for horse4 because it may not match the installed > version, so I need to get the classes out of the executable archive. > Component.Load() can take an absolute path to a gambas executable to load it as a library. To just get information about a library file, look at the CLibraryInfo class in the IDE source code. For example, running 'gba3 -x .list' will return the contents of the '.list' file included in the library executable, that you can parse to get all the exported classes. Regards, -- Beno?t Minisini From admin at ...3661... Wed May 31 12:38:14 2017 From: admin at ...3661... (Admin) Date: Wed, 31 May 2017 17:38:14 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> Message-ID: <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> 31.05.2017 16:58, Beno?t Minisini ?????: > Le 31/05/2017 ? 06:48, Admin a ?crit : >> So, I am writing a programm for my business that would basically be a >> cash register. Don't know for other countries but here in Russia the >> tax law works like this: you have to form a check for a customer in a >> spicific way spicified by the law, so some hardware manufacturers are >> making certified cash registers/check printers that simply form the >> check needed and automatically send tax info to authorities, very >> simple and easy to integrate with ERP systems. The only problem is >> that most of accounting software that is compatible with those >> registers is written for Windows. Now that Windows becomes more and >> more monstrous, many businesses turn to Linux, at least on those >> computers that are only a cashier's workstation that does not need to >> do much in terms of performance power. But the problem is, there's >> only one or two cashier's programms for linux exist for now, that are >> compatible with that certified hardware, and it's not open source or >> free. >> >> >> First of all I want to make my own for myself, and second - I want to >> share it. Gambas is a great language in this case because of many >> aspects. In small buisnesses usually there are not a lot of qualified >> programmers to make some apps in C or C++, but instead there usually >> is just a single sysadmin, who is servicing the IT stuff wich usually >> is just one or two PCs and a router/switch. So, Gambas is much more >> accessible to those people as I see it. Programs written on it are >> easy to understand and modify to the needs of a small business. >> >> >> And what is great - the manufacturers of that certified hardware are >> willing to help: ofcourse they mostly do business with Windows stuff, >> they only work directly with big businesses and they don't produce >> accounting software themselves, but they are kind enough to provide >> at least a binary libraries (they call those - drivers, but i'm not >> shure if it's technically correct) for their hardware even for Linux >> as a x86 and x64 .so files. What those binary libraries do is simple >> conversion of easy commands to hex codes that are then passed to a >> hardware via USB or RS232 or Ethernet. It is MUCH easier to work with >> those commands then implement the whole communication protocol from >> scratch. Ofcourse I am not the only one who is interested in those >> devices to work under linux, and as I can tell from different forums >> in the internet - programmers successfully use this libraries and >> thank the developers. There's not a lot of documentation out there, >> but yeah, on paper it seems to be simple enough... if you write your >> code in C or C++. >> >> >> Things get much different when you try to use the library in Gambas. >> What I was able to understand from the documentation is that you need >> to "initialize the interface" with the library, which will create a >> "virtual class" and than you can pass your data to it. So, in C >> (using QT) that would look something like this: >> >> >> typedef IFptr * (*_CreateFptrInterface)(int ver); >> >> bool init() { >> QLibrary *lib = new QLibrary("fptr"); >> lib->load(); >> if(lib->isLoaded()) { >> _CreateFptrInterface CreateFptrInterface = >> (_CreateFptrInterface)lib->resolve("CreateFptrInterface"); >> if(CreateFptrInterface) { >> IFptr * iface = CreateFptrInterface(12); >> iface->put_DeviceEnabled(true); >> int result = 0; >> iface->get_ResultCode(&result); >> qDebug() << result; >> wchar_t bfr[1000]; >> int length = iface->get_ResultDescription(bfr,1000); >> qDebug() << QString::fromWCharArray(bfr,length); >> } >> } >> } >> >> >> So, as I understand we create a pointer called IFptr by calling >> CreateFptrInterface() and then we pass any other pointer through this >> one. Pardon my terminology, I am new to this stuff. >> >> I wrote some simple code that basically initializes this driver just >> so I can see some output in the driver logs which are kindly created >> in ~/.atol. It also sends some data to driver which must change just >> one setting: >> >> ----- >> >> Library "~/ATOL/linux-x64/libfptr" >> >> Extern CreateFptrInterface(ver As Integer) As Pointer >> Extern put_DeviceSingleSettingAsInt(p As Pointer, s1 As String, s2 As >> Integer) As Integer >> Extern ApplySingleSettings(p As Pointer) As Pointer >> >> [...] >> >> Public Sub Button1_Click() >> Dim IFptr As Pointer >> >> IFptr = CreateFptrInterface(12) >> put_DeviceSingleSettingAsInt(IFptr, "Model", 63) >> >> ApplySingleSettings(IFptr) >> >> End >> >> ----- >> >> When I click Button1, the driver surely initializes, I see in logs >> that IFptr object is created. If I provide the wrong version in >> CreateFptrInterface it fails, saying in logs that there's missmatch >> in interface version, so no doubt the argument is passed correctly. I >> also can see that put_DeviceSingleSetting is being called, but the >> configuration does not actually change. The commercial software that >> uses this very same driver and works fine - leaves mostly the same >> trace in driver's log except that I see what arguments are passed to >> DeviceSingleSetting. And in my case I only see that the procedure is >> envoked but with no arguments. I was trying to use many other >> procedures (or methods, or pointers, or what are they?) with the same >> effect - they surely are called and executed, but I can't pass any >> arguments to them. I was experimenting with variable types I send >> them, and if I, for example, send an integer as an argument when the >> library expects a string - it crashes. If I do not use IFptr pointer >> - it crashes. So I think I figured out the syntax correctly, but I >> still can't get the desired result. >> >> >> My question is basically this: Should I continue experimenting, or is >> it simply impossible to work with this kind of library from Gambas? >> >> >> Here is the link to the library and some other libraries it uses >> itself: http://allunix.ru/back/atol.tar.gz - there's also a binary >> executable that is a test program, unfortunately it's in Russian, but >> it still shows what logs must look like when everything is correct, >> just for a comparison. >> >> >> There's simple experiment you can make: it has a pointer >> ShowProperties() which must show a window with driver's settings >> using it's own library libgui_engine.so. When I call >> ShowProperties(IFptr) it prints to log that it can't find this lib, >> which is expectable, because first I must provide the path to it >> using put_DeviceSingleSettingAsBuff(IFptr, "SearchDir", >> "/home/bocha/ATOL/linux-x64/") and AplySingleSettings(IFptr), but >> when I pass this setting, I, as always, see that it passes no >> arguments, so the result stays the same. >> >> I do understand that I ask a lot of invovement, there's no simple way >> to understand what's needed to be done to make this whole thing work >> so not many people would even read this message to the end, but I >> still hope for some answers, they would be much appriciated. Thank you! >> >> Best Regards. >> >> Dmitry Bachilo. >> > > Apparently all that black box is written in C++ with QT, and without > the header of the library interface , I can't tell you if it is > possible to use the library with Gambas, and how. > > Regards, > I was lucky enough to find the header file shared by developers and an example program in C++ that utilizes this lib. Here they are: http://allunix.ru/back/atol-header.tar.gz From gambas at ...1... Wed May 31 13:18:10 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 31 May 2017 13:18:10 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> Message-ID: <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> Le 31/05/2017 ? 12:38, Admin a ?crit : > 31.05.2017 16:58, Beno?t Minisini ?????: >> Apparently all that black box is written in C++ with QT, and without >> the header of the library interface , I can't tell you if it is >> possible to use the library with Gambas, and how. >> >> Regards, >> > I was lucky enough to find the header file shared by developers and an > example program in C++ that utilizes this lib. > > Here they are: http://allunix.ru/back/atol-header.tar.gz > Maybe CreateFptrInterface() is a C++ only thing, and that you must call another function from the C interface to do something similar. But I couldn't find it reading the C header. You need the documentation of the C interface, or at least an example written in C to know. You usually can't use C++ exported functions from Gambas. Regards, -- Beno?t Minisini From mckaygerhard at ...626... Wed May 31 14:30:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 31 May 2017 08:30:39 -0400 Subject: [Gambas-user] Working with .so library In-Reply-To: <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> Message-ID: hello all, the gambas extern documentation says how to create references with simgle pointers like IFptr * iface = CreateFptrInterface(12); but not with more complex for novice users like: struct fp_dscv_dev **discovered_devs; i'm not expert in C and only few examples , some time ago i'v write a libfprint interface but due dificult and poor documentation and poor interes many linux users does not have a libfprint interface.. same behaviour for odbc i now understand why in guindows there so many users doing something.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-05-31 7:18 GMT-04:00 Beno?t Minisini : > Le 31/05/2017 ? 12:38, Admin a ?crit : > >> 31.05.2017 16:58, Beno?t Minisini ?????: >> >>> Apparently all that black box is written in C++ with QT, and without the >>> header of the library interface , I can't tell you if it is possible to use >>> the library with Gambas, and how. >>> >>> Regards, >>> >>> I was lucky enough to find the header file shared by developers and an >> example program in C++ that utilizes this lib. >> >> Here they are: http://allunix.ru/back/atol-header.tar.gz >> >> > Maybe CreateFptrInterface() is a C++ only thing, and that you must call > another function from the C interface to do something similar. But I > couldn't find it reading the C header. > > You need the documentation of the C interface, or at least an example > written in C to know. You usually can't use C++ exported functions from > Gambas. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From admin at ...3661... Wed May 31 14:36:38 2017 From: admin at ...3661... (Admin) Date: Wed, 31 May 2017 19:36:38 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> Message-ID: 31.05.2017 18:18, Beno?t Minisini ?????: > Le 31/05/2017 ? 12:38, Admin a ?crit : >> 31.05.2017 16:58, Beno?t Minisini ?????: >>> Apparently all that black box is written in C++ with QT, and without >>> the header of the library interface , I can't tell you if it is >>> possible to use the library with Gambas, and how. >>> >>> Regards, >>> >> I was lucky enough to find the header file shared by developers and >> an example program in C++ that utilizes this lib. >> >> Here they are: http://allunix.ru/back/atol-header.tar.gz >> > > Maybe CreateFptrInterface() is a C++ only thing, and that you must > call another function from the C interface to do something similar. > But I couldn't find it reading the C header. > > You need the documentation of the C interface, or at least an example > written in C to know. You usually can't use C++ exported functions > from Gambas. > > Regards, > Maybe it is. One of the authors of the original .so library stated on one forum: "You can use purely C interface like this: void *fptr = CreateFptrInterface(); put_DeviceSingleSetting(fptr, L"Port", "4"); ApplySingleSettings(fptr); " but I can't see the difference. Dmitry. From gambas at ...1... Wed May 31 14:50:14 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 31 May 2017 14:50:14 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> Message-ID: <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> Le 31/05/2017 ? 14:36, Admin a ?crit : > 31.05.2017 18:18, Beno?t Minisini ?????: >> Le 31/05/2017 ? 12:38, Admin a ?crit : >>> 31.05.2017 16:58, Beno?t Minisini ?????: >>>> Apparently all that black box is written in C++ with QT, and without >>>> the header of the library interface , I can't tell you if it is >>>> possible to use the library with Gambas, and how. >>>> >>>> Regards, >>>> >>> I was lucky enough to find the header file shared by developers and >>> an example program in C++ that utilizes this lib. >>> >>> Here they are: http://allunix.ru/back/atol-header.tar.gz >>> >> >> Maybe CreateFptrInterface() is a C++ only thing, and that you must >> call another function from the C interface to do something similar. >> But I couldn't find it reading the C header. >> >> You need the documentation of the C interface, or at least an example >> written in C to know. You usually can't use C++ exported functions >> from Gambas. >> >> Regards, >> > Maybe it is. One of the authors of the original .so library stated on > one forum: > > "You can use purely C interface like this: > > void *fptr = CreateFptrInterface(); > put_DeviceSingleSetting(fptr, L"Port", "4"); > ApplySingleSettings(fptr); > > " > > but I can't see the difference. > > > Dmitry. > Then it should work the way you did. But you did not respect the interface of put_DeviceSingleSettingAsInt(). It wants a "wchar_t *", whereas the Gambas strings are encoded in ASCII or UTF-8. You must first convert the Gambas string to wchar_t by using Conv$(, "UTF-8", "WCHAR_T") or Conv$(, "ASCII", "WCHAR_T"). Regards, -- Beno?t Minisini From fernandojosecabral at ...626... Wed May 31 23:30:20 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Wed, 31 May 2017 18:30:20 -0300 Subject: [Gambas-user] Regex - expert opinion requested Message-ID: This is only for those who like to work with regular expressions. It is a performance issue. I am using 26 different regular expressions of this kind: txt = RegExp.Replace(TextoBruto, NaoNumerais, "&1\n", RegExp.UTF8) txt = RegExp.Replace(Txt, "\n\n+?", "\n", RegExp.UTF8) txt = RegExp.Replace(Txt, "^\n+?", "", RegExp.UTF8) txt = RegExp.Replace(Txt, "\n+?$", "", RegExp.UTF8) Those are pretty fast. Less than one second for a text with 415KB (about six thousand lines). But the following code is quite slow. About 27 seconds each: ttDigitos = String.Len(RegExp.Replace(TextoBruto, "[^0-9]", "", RegExp.UTF8)) ' 27 segundos ttPontuacao = String.Len(RegExp.Replace(TextoBruto, "[^.:;,?!]", "", RegExp.UTF8)) ' 27 segundos ttBrancos = String.Len(RegExp.Replace(TextoBruto, "[^ \t]", "", RegExp.UTF8)) ' 27 segundos Print "Especial antigo", Now 'ttEspeciais = String.Len(RegExp.Replace(TextoBruto, "[^-[\\](){}\"@#$%&*_+=<>/\\\\|???????]", "", RegExp.UTF8)) ' 27 segundos Print "Especial novo", Now ttEspeciais = String.Len(RegExp.Replace(TextoBruto, "[-aeiou?????????bc?dfghjlmnpqrstvxyz ,.:;!?()0-9??wk??????????????????????ABCDEFGHIJKLMNOPQRSTUVWXYZ]", "", RegExp.UTF8)) ' 27 segundos Print "fim especial novo", Now Quite slow. The whole programm takes 2 minutes to run. The above lines alone consume 108 seconds (108:120). I tried some variations. For instance, ttEspeciais = .... has two versions. One negates what to leave in, the other describes what to take out. End result is the same. And so is the time spent. I have also written a much longer code that does the same thing using loops and searching for the characters I want in or want out. The whole thing runs in about 5 seconds (but this code took me much, much longer do write). I wonder if any of you could suggest potentially faster RegExp that could replace the specimens above. Regard - fernando -- Fernando Cabral Blogue: http://fernandocabral.org Twitter: http://twitter.com/fjcabral e-mail: fernandojosecabral at ...626... Facebook: f at ...3654... Telegram: +55 (37) 99988-8868 Wickr ID: fernandocabral WhatsApp: +55 (37) 99988-8868 Skype: fernandojosecabral Telefone fixo: +55 (37) 3521-2183 Telefone celular: +55 (37) 99988-8868 Enquanto houver no mundo uma s? pessoa sem casa ou sem alimentos, nenhum pol?tico ou cientista poder? se gabar de nada.