From taboege at ...626... Thu Jun 1 00:21:41 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 1 Jun 2017 00:21:41 +0200 Subject: [Gambas-user] Regex - expert opinion requested In-Reply-To: References: Message-ID: <20170531222141.GA579@...3600...> On Wed, 31 May 2017, Fernando Cabral wrote: > 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. > This sounds interesting, because for one thing I can't imagine a pipe chain of "sed" invocations to take this long on just 500 KiB input (but I could be wrong). Also, in case you didn't know, the IDE also has a very handy profiler (Debug > Activate profiling menu). It lets you take a somewhat closer look at where your code spends its time, but it may not be of much help here. About your regular expressions: I think the key point is that you are really just erasing characters of character classes. Your expressions are extremely simple in that regard. You mentioned that avoiding regular expressions gives you a big speedup but the code took you longer to write. I don't see why. You should be able to write a general function Private Function EraseClass(sStr As String, sClass As String) As String which erases from sStr every character that is in sClass, using a simple loop and String.InStr(). You can probably even abuse the Split() function for this. To remove any single character in sClass from the string sStr, do: Split(sStr, sClass).Join("") Split() probably won't behave well with multibyte characters, though, such as the UTF-8 you require above. With both attempts it is harder to implement the "[^...]" inverse character class syntax. Regardless, I would be a little interested in getting a sample project which includes your regular expressions and such a text file, to see for myself where the time is exactly spent. Can you send a version of your project that contains only the parts relevant to these regular expressions? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From admin at ...3661... Thu Jun 1 11:25:07 2017 From: admin at ...3661... (Admin) Date: Thu, 1 Jun 2017 16:25:07 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> Message-ID: 31.05.2017 19:50, Beno?t Minisini ?????: > 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, > Oh. My. God. That's exactly what I needed. Actually, I saw that the library expetcs a variable in wchar_t format, I had no idea what it was, so I googled "gambas wchar_t" and found absolutely nothing. Then I wrote my first letter to this maillist. And now when you gave me this line of the code, the library works exactly the way it should, doing everything I'm asking it for. Huge thank you! Dmitry/ From fernandojosecabral at ...626... Thu Jun 1 12:30:25 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Thu, 1 Jun 2017 07:30:25 -0300 Subject: [Gambas-user] Regex - expert opinion requested In-Reply-To: <20170531222141.GA579@...3600...> References: <20170531222141.GA579@...3600...> Message-ID: Tobi, > This sounds interesting, because for one thing I can't imagine a pipe chain > of "sed" invocations to take this long on just 500 KiB input (but I could > be wrong). "sed" does it in a lightning fast way. For instance, sed 's/[^.:;,?!]//g' About your regular expressions: I think the key point is that you are really >just erasing characters of character casses. Your expressions are extremely >simple in that regard. You mentioned that avoiding regular expressions gives >you a big speedup but the code took you longer to write. I don't see why. >You should be able to write a general function. Yes, that's what amazes me the most: the RE are pretty simple; nevertheless, slow when using PCRE. On the other hand, yes, I have written a general expression (see the attached code). It is just a very simple parser that breaks the text into char, non-char, syllable, words, sentences. In the end, this solution is about 31 times faster than the solution based on the regex.replace function. That's a lot faster than both gambas. > Regardless, I would be a little interested in getting a sample project which > includes your regular expressions and such a text file, to see for myself > where the time is exactly spent. Can you send a version of your project that > contains only the parts relevant to these regular expressions? I am attaching the two versions, the one based on RE, and the other one I built from scratch. Neither is an example of good code. I am trying to learn gambas so I certainly have not used the best possible alternatives available. Many things I did by trial and error because I don't have any experience with gambas. So, pardon me for the low code quality. I have also attached the test file. Its text is not in good shape. This means it has a lot of broken things, like missing or wrong punctuation, blank lines, dangling words, unpaired parenthesis and quotes. This is one of the reasons I am using it as a test platform. It allows me to test the code robustness. To run and compare the two versions timewise, do: $ time ./Legibilidade-odt PauloCoelho.odt $ time ./AnalisaSenteca PauloCoelho.odt You will have to install "unoconv" in your machine. Just in case you don't have it and you do not want to install it, I am sending also a txt version of the same file. You can use it to test the RegExp using sed and also you can change the code to skip the conversion phase (conversion from ODT to TXT). Results generated by the two programs are very similar, but the time spent by each of them is quite different. SInce the list administrator did not allow me to send the files, I am sending you the links so you can get them from Dropbox: https://www.dropbox.com/s/6prpw8l7bir177f/AnalisaSentenca-0.0.665.tar.gz?dl=0 https://www.dropbox.com/s/82adoan7ojbwvbn/Legibilidade-odt-0.0.354.tar.gz?dl=0 https://www.dropbox.com/s/3n637e7g8rwqzfd/PauloCoelho.odt?dl=0 https://www.dropbox.com/s/3n637e7g8rwqzfd/PauloCoelho.odt?dl=0 Regards - fernando PS - Neither of the two programs is good stuff. They are not finished and some of the algorithms and functions are only crude versions of what they could be. 2017-05-31 19:21 GMT-03:00 Tobias Boege : > On Wed, 31 May 2017, Fernando Cabral wrote: > > 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. > > > > This sounds interesting, because for one thing I can't imagine a pipe chain > of "sed" invocations to take this long on just 500 KiB input (but I could > be wrong). > > Also, in case you didn't know, the IDE also has a very handy profiler > (Debug > Activate profiling menu). It lets you take a somewhat closer look > at where your code spends its time, but it may not be of much help here. > > About your regular expressions: I think the key point is that you are > really > just erasing characters of character classes. Your expressions are > extremely > simple in that regard. You mentioned that avoiding regular expressions > gives > you a big speedup but the code took you longer to write. I don't see why. > You should be able to write a general function > > Private Function EraseClass(sStr As String, sClass As String) As String > > which erases from sStr every character that is in sClass, using a simple > loop and String.InStr(). > > You can probably even abuse the Split() function for this. To remove any > single character in sClass from the string sStr, do: > > Split(sStr, sClass).Join("") > > Split() probably won't behave well with multibyte characters, though, such > as the UTF-8 you require above. With both attempts it is harder to > implement > the "[^...]" inverse character class syntax. > > Regardless, I would be a little interested in getting a sample project > which > includes your regular expressions and such a text file, to see for myself > where the time is exactly spent. Can you send a version of your project > that > contains only the parts relevant to these regular expressions? > > 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 cabrerawilliam at ...626... Thu Jun 1 14:43:49 2017 From: cabrerawilliam at ...626... (William Cabrera) Date: Thu, 1 Jun 2017 08:43:49 -0400 Subject: [Gambas-user] Editing still blocked In-Reply-To: References: Message-ID: The editor is already working after revision #8141, thx ------ William Cabrera https://blog.willicab.com.ve 2017-05-22 7:11 GMT-04:00 Fernando Cabral : > 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. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 1 18:21:10 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 01 Jun 2017 16:21:10 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1111: Request to add bufferSize configuration into Local Socket - gb.net Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1111&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Request to add bufferSize configuration into Local Socket - gb.net Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Hello Benoit, It is possible to add an option to configure the buffer value of a Socket in gb.net ? I did not find it in the documentation. thank you System information ------------------ [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-75-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=fr_CA.UTF-8 Memory=8098M [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.28.0.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] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE=xim COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-l4hOArkBvc,guid=acbd9b2811b5f5bd388bfb12592c3c7b DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=fr_CA.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LIBVIRT_DEFAULT_URI=qemu:///system LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=fr_CA.UTF-8 MDM_XSERVER_LOCATION=local PAPERSIZE=a4 PATH=/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/2333,unix/:/tmp/.ICE-unix/2333 SHELL=/bin/bash SSH_AGENT_PID=2438 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=7799fc85266d4f0d61afdf215179697f-1496071290.556597-1145314354 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus From bugtracker at ...3416... Fri Jun 2 04:35:33 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 02 Jun 2017 02:35:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1111: Request to add bufferSize configuration into Local Socket - gb.net In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1111&from=L21haW4- Olivier CRUILLES changed the state of the bug to: Invalid. From bugtracker at ...3416... Fri Jun 2 04:36:22 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 02 Jun 2017 02:36:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1112&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Request to add bufferSize configuration into Local Socket - gb.net Type : Request Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : Networking components Description ----------- Hello Benoit, It is possible to add an option to configure the buffer value of a Socket in gb.net ? I did not find it in the documentation. thank you System information ------------------ [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-75-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=fr_CA.UTF-8 Memory=8098M [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.28.0.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] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE=xim COMPIZ_CONFIG_PROFILE=mate DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-l4hOArkBvc,guid=acbd9b2811b5f5bd388bfb12592c3c7b DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=0 HOME= LANG=fr_CA.UTF-8 LC_ADDRESS=fr_FR.UTF-8 LC_IDENTIFICATION=fr_FR.UTF-8 LC_MEASUREMENT=fr_FR.UTF-8 LC_MONETARY=fr_FR.UTF-8 LC_NAME=fr_FR.UTF-8 LC_NUMERIC=fr_FR.UTF-8 LC_PAPER=fr_FR.UTF-8 LC_TELEPHONE=fr_FR.UTF-8 LC_TIME=fr_FR.UTF-8 LIBVIRT_DEFAULT_URI=qemu:///system LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=fr_CA.UTF-8 MDM_XSERVER_LOCATION=local PAPERSIZE=a4 PATH=/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/2333,unix/:/tmp/.ICE-unix/2333 SHELL=/bin/bash SSH_AGENT_PID=2438 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=7799fc85266d4f0d61afdf215179697f-1496071290.556597-1145314354 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus From bugtracker at ...3416... Fri Jun 2 11:50:07 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 02 Jun 2017 09:50:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1112&from=L21haW4- Comment #1 by Alexander KUIPER: What are you trying to achieve here? Normally you can buffer read data in a string value until you reach the LOF or a sort-of end of record marker. From adamnt42 at ...626... Sat Jun 3 02:57:56 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sat, 3 Jun 2017 10:27:56 +0930 Subject: [Gambas-user] Using a relative file path for a WebView URL Message-ID: <20170603102756.eb0e994cc092bdf6ac5af4c2@...626...> I am trying to get a WebViewer control in a loaded library to display an html file stored inside the executable archive of a project using that library. This appears to be not possible ... in the following the main project is calling the library form Run method with a relative path say "../help/html/index.html" (Note the use of the ../ to get the calling programs executable relative path!). The library code is as follows: Public Sub Run (path As string) If Exist(path &/ "index.html") Then Debug path &/ "index.html exists" wvwPage.URL = path &/ "index.html" Debug wvwPage.URL FHSView.Run.10: ../help/html/index.html exists FHSView.Run.13: file:///home/ksshare/gb3projects/Tools/help/html/index.html >From the above debug output it appears that the WebView control is "subverting" the actual path back into an absolute path. Any comments? I think I can extract the entire help directory out of the calling program's executable into the /tmp dir, but I think that then I will have to edit every link in the pages to a path relative to the /tmp dir. Painful! Has anyone got any better ideas? bruce -- B Bruen From bugtracker at ...3416... Sat Jun 3 07:38:35 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 03 Jun 2017 05:38:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1112&from=L21haW4- Comment #2 by Olivier CRUILLES: Hello, Regarding the documentation of libcurl on what gb.net is based, the buffer size can be configured from default value 16kB to 512kB. I'm developing a process in Gambas to receive more than 100000 Flows/sec (maxi 1464 Bytes per Flow) and split those and retransmit those to 3 others processes over Local Socket. There is to many flows to transmit per second over the Local Socket that the buffer size by default is not enough I guess. This is the only reason that I have found. Maybe my usage of Socket is not correct. Official Documentation of libCurl: SYNOPSIS #include CURLcode curl_easy_setopt(CURL *handle, CURLOPT_BUFFERSIZE, long size); DESCRIPTION Pass a long specifying your preferred size (in bytes) for the receive buffer in libcurl. The main point of this would be that the write callback gets called more often and with smaller chunks. Secondly, for some protocols, there's a benefit of having a larger buffer for performance. This is just treated as a request, not an order. You cannot be guaranteed to actually get the given size. This buffer size is by default CURL_MAX_WRITE_SIZE (16kB). The maximum buffer size allowed to be set is CURL_MAX_READ_SIZE (512kB). The minimum buffer size allowed to be set is 1024. DEFAULT CURL_MAX_WRITE_SIZE (16kB) From t.lee.davidson at ...626... Sat Jun 3 15:13:57 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sat, 3 Jun 2017 09:13:57 -0400 Subject: [Gambas-user] Using a relative file path for a WebView URL In-Reply-To: <20170603102756.eb0e994cc092bdf6ac5af4c2@...626...> References: <20170603102756.eb0e994cc092bdf6ac5af4c2@...626...> Message-ID: <1798e640-f6ac-18db-e9ed-e6bf200c7799@...626...> wvwPage.HTML = File.Load(path &/ "index.html") ? On 06/02/2017 08:57 PM, adamnt42 at ...626... wrote: > I am trying to get a WebViewer control in a loaded library to display an html file stored inside the executable archive of a project using that library. > This appears to be not possible ... in the following the main project is calling the library form Run method with a relative path say "../help/html/index.html" (Note the use of the ../ to get the calling programs executable relative path!). The library code is as follows: > > Public Sub Run (path As string) > If Exist(path &/ "index.html") Then > Debug path &/ "index.html exists" > wvwPage.URL = path &/ "index.html" > Debug wvwPage.URL > > FHSView.Run.10: ../help/html/index.html exists > FHSView.Run.13: file:///home/ksshare/gb3projects/Tools/help/html/index.html > > From the above debug output it appears that the WebView control is "subverting" the actual path back into an absolute path. > Any comments? > > I think I can extract the entire help directory out of the calling program's executable into the /tmp dir, but I think that then I will have to edit every link in the pages to a path relative to the /tmp dir. Painful! > > Has anyone got any better ideas? > > bruce > -- Lee From bugtracker at ...3416... Sun Jun 4 01:23:42 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 03 Jun 2017 23:23: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 #11 by PICCORO LENZ MCKAY: hello i tested all the available knowed odbc modules with gambas code, and rs.count only returns a result.count with mysql! again, seems here there are some spected racism.. 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 there's not the case for the rest of odbc typoes, only for mysql, and seems for sqliteodbc are buggy in mayor funtions, but tested agains isql command line and some code with php works.. From hans at ...3219... Mon Jun 5 11:56:34 2017 From: hans at ...3219... (Hans Lehmann) Date: Mon, 5 Jun 2017 11:56:34 +0200 Subject: [Gambas-user] Class HtmlDocument Message-ID: <1849a698-5c17-b5d5-ed3e-8fd7a86238cd@...3219...> Hello, why creates the following source text: Public Sub btnCreateHTMLDocument_Click() Dim hHtmlDocument As HtmlDocument hHtmlDocument = New HtmlDocument *hHtmlDocument.Html5 = False** * Print hHtmlDocument.ToString(True) hHtmlDocument.Save(Application.Path &/ "test.html", True) End this HTML5 document? I would have expected: strict HTML 1.0! Hans From bugtracker at ...3416... Mon Jun 5 23:08:39 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 05 Jun 2017 21:08:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- PICCORO LENZ MCKAY reported a new bug. Summary ------- ODBC driver problem: driver connects but does not exec query Type : Bug Priority : High Gambas version : 3.9.90 (TRUNK) Product : ODBC driver Description ----------- The following simple code does not execute, when used a driver different rather than Mysql odbc driver module for ODBC type connections: Public Sub Main() Dim $con As New Connection Try $con.Close() ' $con.Type = "odbc" ' $con.Host = "testdb" ' $con.Login = "" ' $con.Password = "" ' $con.Open() ' Try $con.Exec("CREATE TABLE IF NOT EXISTS tabla1 ( columna1 VARCHAR(20), columna2 VARCHAR(20))") Print Error.Text End If the ODBC connection tipe are using a ODBC mysql driver the code will work, but with any other type will fails always, i tested in each gambas version since 3.5, tested with 3.4 and 3.8 and 3.9 and trunk the connection string are tested, the ODBC definition are globally at the /etc/odbc.ini and its: [testdb] Description=Mysql3 Driver=SQLite3 Database=/home/systemas/TEST # optional lock timeout in milliseconds Timeout=2000 the connection was tested and working sucessfully with UnixODBC isql command line tool: isql testdb +---------------------------------------+ | Connected! | | | | sql-statement | | help [tablename] | | quit | | | +---------------------------------------+ SQL> CREATE TABLE IF NOT EXISTS tabla1 ( columna1 TEXT, columna2 TEXT) SQLRowCount returns 0 SQL> select * from tabla1 +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | columna1 | columna2 | +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ SQLRowCount returns 0 SQL> DROP TABLE tabla1 SQLRowCount returns 0 SQL> the Gambas code due driver implementation does not return why get and error, in second comment i attached image for gambas ide variables in execution 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 mckaygerhard at ...626... Mon Jun 5 23:12:16 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 5 Jun 2017 17:12:16 -0400 Subject: [Gambas-user] ODBC how to linuxers debian Message-ID: This documentation has two parts, and overall ODBC documentation and a specific Devuan ODBC documentation. The firs part are provided due most administrators and developers must understand the ODBC infrastructure to property debug problems. This documentation starts on the "friendofdevuan" wiki due ODBC information was very poor inclusivelly in oficial Debian wiki http://qgqlochekone.blogspot.com/2017/06/odbc-devuan-and-debian-complete-how-to.html# The post describe the most basic non referenced settings and some reasons why.. for debian users and debian derived distros there are the second part of the documentation with proper how to for each of the packages for odbc module drivers> http://qgqlochekone.blogspot.com/2017/06/odbc-devuan-and-debian-complete-how-to.html#about_devuan_odbc_packages At the Gambas wiki i improve an ODBC gambas example most better with steps rather than only paste a simple code> http://gambaswiki.org/wiki/howto/odbcdatabase For now, currently only the spanish page are ready, and the english are a work in progress.. the other odbc driver present some problems and i report the respective gambas bug today, the ODBC MySQL driver module its the only that works perfectly, the other ODBC module drivers present some problems Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From alexchernoff at ...67... Tue Jun 6 11:22:26 2017 From: alexchernoff at ...67... (alexchernoff) Date: Tue, 6 Jun 2017 02:22:26 -0700 (MST) Subject: [Gambas-user] Sharing Code Between Projects Message-ID: <1496740946975-59251.post@...3046...> Dear All, I have multiple projects sharing certain modules such as logging, config routines... I created a symlink in each project's .src directory pointing to the actual file (with relative path like ln -s ../../../../SHARED/Mod_Logging.module) Gambas sees it, also recognizes it as a link (icon has an arrow) but it's read only and no way to unlock. I tried all possible permissions and still no luck. Anyone know about this or maybe better way to share modules? thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251.html Sent from the gambas-user mailing list archive at Nabble.com. From adamnt42 at ...626... Tue Jun 6 12:33:49 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Tue, 6 Jun 2017 20:03:49 +0930 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <1496740946975-59251.post@...3046...> References: <1496740946975-59251.post@...3046...> Message-ID: <20170606200349.d7544f35d05d372385594cef@...626...> On Tue, 6 Jun 2017 02:22:26 -0700 (MST) alexchernoff wrote: > Dear All, > > I have multiple projects sharing certain modules such as logging, config > routines... I created a symlink in each project's .src directory pointing to > the actual file (with relative path like ln -s > ../../../../SHARED/Mod_Logging.module) > > Gambas sees it, also recognizes it as a link (icon has an arrow) but it's > read only and no way to unlock. I tried all possible permissions and still > no luck. > > Anyone know about this or maybe better way to share modules? > > thanks! > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251.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 See here : http://gambaswiki.org/wiki/doc/library -- B Bruen From hans at ...3219... Tue Jun 6 12:53:59 2017 From: hans at ...3219... (Hans Lehmann) Date: Tue, 6 Jun 2017 12:53:59 +0200 Subject: [Gambas-user] Gambas-Documentation Message-ID: A warm Hello to all friends of the Gambas programming language, many years ago users complained in various Gambas forum posts about the lack of books about Gambas in the German language. I liked Gambas from the beginning. Its conception allows people, like myself, switching over from other environments as well as ambitioned programmers to work on a range of different tasks in a single language. This motivated me as early as 2008 to design a concept for a Gambas book. For a few years now this book is made available online at www.gambas-buch.de. Many chapters have already been published. With great effort, the team of authors pursues the goal to produce a good description of the components and classes of Gambas and to demonstrate their use in example projects. Every chapter and its parts are also offered as a PDF file, and archives of the tested demonstration projects are available for download. However, our work on the online book is hampered increasingly because some components and their classes have only fragmentary documentation in the Gambas wiki, or none at all. By tolerating this condition, the Gambas developers throw away opportunities for newcomers to discover and use Gambas. A class or component should, in my opinion, only be released after its documentation is complete and correct and put on the Gambas wiki. Do the developers really believe that a potential Gambas user will read all the source code to understand how the properties, methods and events work? (I, for one, have never learned C.) To me, for example, it is clear after over 44 years as a grammar school teacher -- among others for Computer Science -- that nothing motivates more than success und success has to be prepared. This brings us to the crucial point with Gambas: all efforts should currently be directed towards quickly closing the gaps and flaws in the documentation! One only learns a language well by speaking it -- and this is only possible with a good dictionary! Such an excellent programming language as Gambas should enjoy a thorough documentation of the existing components and classes with small projects or code snippets which show the essential properties and methods in action. If you have a look at the current state of the documentation, you will see that it is exceedingly incomplete. Do the developers seriously think that the Gambas programmers can read in a crystal ball if all that's known about a class is the names of its properties, methods and events? The software farm with its projects does not replace a systematic treatment of the basics of the language. The online book wanted to provide just that for the German-speaking Gambas programmers, and those who want to be! If none or only insufficient information about the properties, methods and events of a Gambas class is available, then a newbie or a Gambas programmer, who wants to use this class, will resign and turn to other languages. My wish is essentially just that the developers do their job until the end and provide the documentation for their classes, because only then can their valuable work be truly useful. Only then can Gambas finally make progress. Honsek www.gambas-buch.de From charlie at ...2793... Tue Jun 6 13:02:52 2017 From: charlie at ...2793... (Charlie) Date: Tue, 6 Jun 2017 04:02:52 -0700 (MST) Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <1496740946975-59251.post@...3046...> References: <1496740946975-59251.post@...3046...> Message-ID: <1496746972939-59254.post@...3046...> If you want to use a Module that is in another program just right click on FMain in the Project window and click in Import.. Navigate to the Module you want and open it in your project. Or did I misunderstand what you are looking for? ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251p59254.html Sent from the gambas-user mailing list archive at Nabble.com. From fernandojosecabral at ...626... Tue Jun 6 13:23:22 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 6 Jun 2017 08:23:22 -0300 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: Message-ID: Agreed, Honsek. I am a newcomer, I liked Gambas at first sight, but I have had a hard time finding proper documentation and good examples on how-to. - fernando 2017-06-06 7:53 GMT-03:00 Hans Lehmann : > A warm Hello to all friends of the Gambas programming language, > > many years ago users complained in various Gambas forum posts about the > lack of books about Gambas in the German language. I liked Gambas from > the beginning. Its conception allows people, like myself, switching over > from other environments as well as ambitioned programmers to work on a > range of different tasks in a single language. This motivated me as early > as 2008 to design a concept for a Gambas book. For a few years now this > book is made available online at www.gambas-buch.de. Many chapters have > already been published. With great effort, the team of authors pursues > the goal to produce a good description of the components and classes of > Gambas and to demonstrate their use in example projects. Every chapter > and its parts are also offered as a PDF file, and archives of the tested > demonstration projects are available for download. > > However, our work on the online book is hampered increasingly because some > components and their classes have only fragmentary documentation in the > Gambas wiki, or none at all. By tolerating this condition, the Gambas > developers throw away opportunities for newcomers to discover and use > Gambas. A class or component should, in my opinion, only be released after > its documentation is complete and correct and put on the Gambas wiki. > Do the developers really believe that a potential Gambas user will read > all the source code to understand how the properties, methods and events > work? (I, for one, have never learned C.) To me, for example, it is clear > after over 44 years as a grammar school teacher -- among others for > Computer Science -- that nothing motivates more than success und success > has to be prepared. > > This brings us to the crucial point with Gambas: all efforts should > currently > be directed towards quickly closing the gaps and flaws in the > documentation! > One only learns a language well by speaking it -- and this is only possible > with a good dictionary! Such an excellent programming language as Gambas > should enjoy a thorough documentation of the existing components and > classes > with small projects or code snippets which show the essential properties > and methods in action. If you have a look at the current state of the > documentation, you will see that it is exceedingly incomplete. Do the > developers seriously think that the Gambas programmers can read in a > crystal > ball if all that's known about a class is the names of its properties, > methods and events? > > The software farm with its projects does not replace a systematic treatment > of the basics of the language. The online book wanted to provide just that > for the German-speaking Gambas programmers, and those who want to be! If > none or only insufficient information about the properties, methods and > events of a Gambas class is available, then a newbie or a Gambas > programmer, > who wants to use this class, will resign and turn to other languages. > > My wish is essentially just that the developers do their job until the end > and provide the documentation for their classes, because only then can > their > valuable work be truly useful. Only then can Gambas finally make progress. > > Honsek > www.gambas-buch.de > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 mckaygerhard at ...626... Tue Jun 6 14:05:31 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 6 Jun 2017 08:05:31 -0400 Subject: [Gambas-user] Gambas-Documentation Message-ID: 2017-06-06 6:53 GMT-04:00 Hans Lehmann : > A warm Hello to all friends of the Gambas programming language, > > many years ago users complained in various Gambas forum posts about the > lack of books about Gambas in the German language. I liked Gambas from > the beginning. Its conception allows people, like myself, switching over > from other environments as well as ambitioned programmers to work on a > range of different tasks in a single language. This motivated me as early > as 2008 to design a concept for a Gambas book. For a few years now this > book is made available online at www.gambas-buch.de. Many chapters have > already been published. With great effort, the team of authors pursues > the goal to produce a good description of the components and classes of > Gambas and to demonstrate their use in example projects. Every chapter > and its parts are also offered as a PDF file, and archives of the tested > demonstration projects are available for download. > the gambas buch its a great book, the problem its that its only in German.. many articles/chapers i read in that book, that-s why i made an effor this weekend and produce te lasted ODBC documentation examples in gambas wiki that problem i anunce some oportunities before, but benoit mention that made this only for hobie its a great effort the components and languaje made by gambas developers.. for spanish users there's the jsbsan blog .. but hangs my web browser due many anuncies As hans mentions, prawns have evolved and is beyond simple pastime, many projects i had to perform in php or java due to the urgency of having them "fast", losing the opportunity to develop in this confortable and flexible programing languaje called gambas ... We are clear that the learning curve is fast and easy to program, but the type of responses such as "it is the programmer's job" or assumes that "the programmer must know how to program" distances the prospects, and does not allow the development Of a business model Cost-effective based on low maintenance and fast obtaining of manpowers Currently taking the ODBC component as example, i note many lack of documentation.. complete in this lasted days by me, the first ODBC component documentation was very poor and inconsistent with the component behaviour.. and as last, the compoent ntil version 3.8.1 was in very bad state... and all the documentation assumed that all the features of the mysql db componente are same for the rest.. and that's not true.. this limit the gambas to a mysql database for novice users... due documentation does not offer how to solve that situations... > However, our work on the online book is hampered increasingly because some > components and their classes have only fragmentary documentation in the > Gambas wiki, or none at all. By tolerating this condition, the Gambas > developers throw away opportunities for newcomers to discover and use > Gambas. A class or component should, in my opinion, only be released after > its documentation is complete and correct and put on the Gambas wiki. > Do the developers really believe that a potential Gambas user will read > all the source code to understand how the properties, methods and events > work? (I, for one, have never learned C.) To me, for example, it is clear > after over 44 years as a grammar school teacher -- among others for > Computer Science -- that nothing motivates more than success und success > has to be prepared. > > Hi hans, in this way, there's a problem.. many developers need the component xyz due newer develop needs.. The real solution its that the documentation must be generated from the component code.. like JAva does.. later then must be complete in the gambas wiki.. WITH EXAMPLES, i mean the code documentations must not have example, only teoric implementations, and later any enhanchement must be done in the generated gambas wiki page, currently this behaviour seems are, but need more improvement... > This brings us to the crucial point with Gambas: all efforts should > currently > be directed towards quickly closing the gaps and flaws in the > documentation! > One only learns a language well by speaking it -- and this is only possible > with a good dictionary! Such an excellent programming language as Gambas > should enjoy a thorough documentation of the existing components and > classes > with small projects or code snippets which show the essential properties > and methods in action. If you have a look at the current state of the > documentation, you will see that it is exceedingly incomplete. Do the > developers seriously think that the Gambas programmers can read in a > crystal > ball if all that's known about a class is the names of its properties, > methods and events? > > The software farm with its projects does not replace a systematic treatment > of the basics of the language. The online book wanted to provide just that > for the German-speaking Gambas programmers, and those who want to be! If > none or only insufficient information about the properties, methods and > events of a Gambas class is available, then a newbie or a Gambas > programmer, > who wants to use this class, will resign and turn to other languages. > As i mention, We are clear that the learning curve is fast and easy to program, but the type of responses such as "it is the programmer's job" or assumes that "the programmer must know how to program" distances the prospects, and does not allow the development Of a business model Cost-effective based on low maintenance and fast obtaining of manpowers Take a comparation of the today ODBC example documentation vs the old firts ODBC documentation, or more easy.. lest compare the Mysql how to documentatin vs the ODBC how to documentation> http://gambaswiki.org/wiki/howto/odbcdatabase http://gambaswiki.org/wiki/howto/database > > My wish is essentially just that the developers do their job until the end > and provide the documentation for their classes, because only then can > their > valuable work be truly useful. Only then can Gambas finally make progress. > > Honsek > www.gambas-buch.de umm.. gambas/buch need to be translated... its a good work but its only german... > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 6 14:20:52 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 6 Jun 2017 08:20:52 -0400 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <1496746972939-59254.post@...3046...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> Message-ID: 2017-06-06 7:02 GMT-04:00 Charlie : > If you want to use a Module that is in another program just right click on > FMain in the Project window and click in Import.. > > > > Navigate to the Module you want and open it in your project. > > Or did I misunderstand what you are looking for? > i want the same he said, u misunderstand he wants to code the same component sahred by other project but without duplication.. when u import the module, the code its duplicate.. if created simplink the code its read only *the solution its that all the shared code will be git submodules.. * > > > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Sharing-Code-Between-Projects-tp59251p59254.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 adamnt42 at ...626... Tue Jun 6 15:38:10 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Tue, 6 Jun 2017 23:08:10 +0930 Subject: [Gambas-user] Using a relative file path for a WebView URL In-Reply-To: <1798e640-f6ac-18db-e9ed-e6bf200c7799@...626...> References: <20170603102756.eb0e994cc092bdf6ac5af4c2@...626...> <1798e640-f6ac-18db-e9ed-e6bf200c7799@...626...> Message-ID: <20170606230810.89169035f045d15cd09801a3@...626...> On Sat, 3 Jun 2017 09:13:57 -0400 T Lee Davidson wrote: Thanks Lee, I'll give that a try! b > wvwPage.HTML = File.Load(path &/ "index.html") ? > > > On 06/02/2017 08:57 PM, adamnt42 at ...626... wrote: > > I am trying to get a WebViewer control in a loaded library to display an html file stored inside the executable archive of a project using that library. > > This appears to be not possible ... in the following the main project is calling the library form Run method with a relative path say "../help/html/index.html" (Note the use of the ../ to get the calling programs executable relative path!). The library code is as follows: > > > > Public Sub Run (path As string) > > If Exist(path &/ "index.html") Then > > Debug path &/ "index.html exists" > > wvwPage.URL = path &/ "index.html" > > Debug wvwPage.URL > > > > FHSView.Run.10: ../help/html/index.html exists > > FHSView.Run.13: file:///home/ksshare/gb3projects/Tools/help/html/index.html > > > > From the above debug output it appears that the WebView control is "subverting" the actual path back into an absolute path. > > Any comments? > > > > I think I can extract the entire help directory out of the calling program's executable into the /tmp dir, but I think that then I will have to edit every link in the pages to a path relative to the /tmp dir. Painful! > > > > Has anyone got any better ideas? > > > > bruce > > > > -- > 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 -- B Bruen From bugtracker at ...3416... Tue Jun 6 15:39:13 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 06 Jun 2017 13:39:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: now tested better, works only with odbc/postgres using lasted and any odbc/mysql, for any odbc/freetds, previous odbc/postgresql or any odbc/sqlite or any odbc/mdbtools does not work From adamnt42 at ...626... Tue Jun 6 15:50:24 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Tue, 6 Jun 2017 23:20:24 +0930 Subject: [Gambas-user] Class HtmlDocument In-Reply-To: <1849a698-5c17-b5d5-ed3e-8fd7a86238cd@...3219...> References: <1849a698-5c17-b5d5-ed3e-8fd7a86238cd@...3219...> Message-ID: <20170606232024.f40a4b3e019834f6ebf08c2d@...626...> On Mon, 5 Jun 2017 11:56:34 +0200 Hans Lehmann wrote: > Hello, > > why creates the following source text: > > Public Sub btnCreateHTMLDocument_Click() > Dim hHtmlDocument As HtmlDocument > > hHtmlDocument = New HtmlDocument At this point hHtmlDocument.Html5 is false!! > > *hHtmlDocument.Html5 = False** > * > Print hHtmlDocument.ToString(True) > hHtmlDocument.Save(Application.Path &/ "test.html", True) > > End > > this HTML5 document? I would have expected: strict HTML 1.0! > > > > > > > > > > > > > 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 So, I guess that you are right. In fact, changing it to True and then back to False seems to have absolutely no effect on the generated html text. Oh well, back to Adrien for this one I'd say. b -- B Bruen From alexchernoff at ...67... Tue Jun 6 16:13:39 2017 From: alexchernoff at ...67... (alexchernoff) Date: Tue, 6 Jun 2017 07:13:39 -0700 (MST) Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> Message-ID: <1496758419751-59261.post@...3046...> Correct, "import" only creates a local copy, and using a symlink results in a read only code in the IDE. The goal is to edit shared centralised modules and having all projects see the changes. Thanks -- View this message in context: http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251p59261.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Tue Jun 6 16:56:14 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 6 Jun 2017 10:56:14 -0400 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <1496758419751-59261.post@...3046...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> Message-ID: 2017-06-06 10:13 GMT-04:00 alexchernoff : > Correct, "import" only creates a local copy, and using a symlink results > in a > read only code in the IDE. > > The goal is to edit shared centralised modules and having all projects see > the changes. > yeah like java does.. in some days i'll publish an article about using gambas modules and shared code for editing live, but with git submodules.. but today i'm very busy due lack of funtionality in odbc module, make me work doulble > > Thanks > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Sharing-Code-Between-Projects-tp59251p59261.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... Mon Jun 5 23:08:54 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 05 Jun 2017 21:08:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- PICCORO LENZ MCKAY added an attachment: error-odbc2.png From gambas at ...1... Tue Jun 6 13:23:35 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 6 Jun 2017 13:23:35 +0200 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: Message-ID: Le 06/06/2017 ? 12:53, Hans Lehmann a ?crit : > A warm Hello to all friends of the Gambas programming language, > > many years ago users complained in various Gambas forum posts about the > lack of books about Gambas in the German language. I liked Gambas from > the beginning. Its conception allows people, like myself, switching over > from other environments as well as ambitioned programmers to work on a > range of different tasks in a single language. This motivated me as early > as 2008 to design a concept for a Gambas book. For a few years now this > book is made available online at www.gambas-buch.de. Many chapters have > already been published. With great effort, the team of authors pursues > the goal to produce a good description of the components and classes of > Gambas and to demonstrate their use in example projects. Every chapter > and its parts are also offered as a PDF file, and archives of the tested > demonstration projects are available for download. > > However, our work on the online book is hampered increasingly because some > components and their classes have only fragmentary documentation in the > Gambas wiki, or none at all. By tolerating this condition, the Gambas > developers throw away opportunities for newcomers to discover and use > Gambas. A class or component should, in my opinion, only be released after > its documentation is complete and correct and put on the Gambas wiki. > Do the developers really believe that a potential Gambas user will read > all the source code to understand how the properties, methods and events > work? (I, for one, have never learned C.) To me, for example, it is clear > after over 44 years as a grammar school teacher -- among others for > Computer Science -- that nothing motivates more than success und success > has to be prepared. > > This brings us to the crucial point with Gambas: all efforts should > currently > be directed towards quickly closing the gaps and flaws in the > documentation! > One only learns a language well by speaking it -- and this is only possible > with a good dictionary! Such an excellent programming language as Gambas > should enjoy a thorough documentation of the existing components and > classes > with small projects or code snippets which show the essential properties > and methods in action. If you have a look at the current state of the > documentation, you will see that it is exceedingly incomplete. Do the > developers seriously think that the Gambas programmers can read in a > crystal > ball if all that's known about a class is the names of its properties, > methods and events? > > The software farm with its projects does not replace a systematic treatment > of the basics of the language. The online book wanted to provide just that > for the German-speaking Gambas programmers, and those who want to be! If > none or only insufficient information about the properties, methods and > events of a Gambas class is available, then a newbie or a Gambas > programmer, > who wants to use this class, will resign and turn to other languages. > > My wish is essentially just that the developers do their job until the end > and provide the documentation for their classes, because only then can > their > valuable work be truly useful. Only then can Gambas finally make progress. > > Honsek > www.gambas-buch.de > You are right, it's just that time is missing on my side, because of many other activities. I plan to release Gambas 3.10 soon, and document the gb.web.form component that allows to make web applications a bit like GUI applications. And of course filling the other missing entries in the documentation on the components I made. Regards, -- Beno?t Minisini From mckaygerhard at ...626... Tue Jun 6 17:54:12 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 6 Jun 2017 11:54:12 -0400 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: Message-ID: hi benoit, there many issues in gb.db specifically in odbc component, i wish to be fixed in the next release please, thanks in advance currently i can to contribute to the documentation how-to's wiki parts but i cannot write on both languajes, its very tedious for me write english.. so if any could translate from spanish will be usefully 2017-06-06 7:23 GMT-04:00 Beno?t Minisini via Gambas-user < gambas-user at lists.sourceforge.net>: > Le 06/06/2017 ? 12:53, Hans Lehmann a ?crit : > >> A warm Hello to all friends of the Gambas programming language, >> >> many years ago users complained in various Gambas forum posts about the >> lack of books about Gambas in the German language. I liked Gambas from >> the beginning. Its conception allows people, like myself, switching over >> from other environments as well as ambitioned programmers to work on a >> range of different tasks in a single language. This motivated me as early >> as 2008 to design a concept for a Gambas book. For a few years now this >> book is made available online at www.gambas-buch.de. Many chapters have >> already been published. With great effort, the team of authors pursues >> the goal to produce a good description of the components and classes of >> Gambas and to demonstrate their use in example projects. Every chapter >> and its parts are also offered as a PDF file, and archives of the tested >> demonstration projects are available for download. >> >> However, our work on the online book is hampered increasingly because some >> components and their classes have only fragmentary documentation in the >> Gambas wiki, or none at all. By tolerating this condition, the Gambas >> developers throw away opportunities for newcomers to discover and use >> Gambas. A class or component should, in my opinion, only be released after >> its documentation is complete and correct and put on the Gambas wiki. >> Do the developers really believe that a potential Gambas user will read >> all the source code to understand how the properties, methods and events >> work? (I, for one, have never learned C.) To me, for example, it is clear >> after over 44 years as a grammar school teacher -- among others for >> Computer Science -- that nothing motivates more than success und success >> has to be prepared. >> >> This brings us to the crucial point with Gambas: all efforts should >> currently >> be directed towards quickly closing the gaps and flaws in the >> documentation! >> One only learns a language well by speaking it -- and this is only >> possible >> with a good dictionary! Such an excellent programming language as Gambas >> should enjoy a thorough documentation of the existing components and >> classes >> with small projects or code snippets which show the essential properties >> and methods in action. If you have a look at the current state of the >> documentation, you will see that it is exceedingly incomplete. Do the >> developers seriously think that the Gambas programmers can read in a >> crystal >> ball if all that's known about a class is the names of its properties, >> methods and events? >> >> The software farm with its projects does not replace a systematic >> treatment >> of the basics of the language. The online book wanted to provide just that >> for the German-speaking Gambas programmers, and those who want to be! If >> none or only insufficient information about the properties, methods and >> events of a Gambas class is available, then a newbie or a Gambas >> programmer, >> who wants to use this class, will resign and turn to other languages. >> >> My wish is essentially just that the developers do their job until the end >> and provide the documentation for their classes, because only then can >> their >> valuable work be truly useful. Only then can Gambas finally make progress. >> >> Honsek >> www.gambas-buch.de >> >> > You are right, it's just that time is missing on my side, because of many > other activities. > > I plan to release Gambas 3.10 soon, and document the gb.web.form component > that allows to make web applications a bit like GUI applications. > > And of course filling the other missing entries in the documentation on > the components I made. > > 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 gambas at ...1... Tue Jun 6 17:59:02 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 6 Jun 2017 17:59:02 +0200 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: Message-ID: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> Le 06/06/2017 ? 17:54, PICCORO McKAY Lenz a ?crit : > hi benoit, there many issues in gb.db specifically in odbc component, i > wish to be fixed in the next release please, thanks in advance > > currently i can to contribute to the documentation how-to's wiki parts > but i cannot write on both languajes, its very tedious for me write > english.. so if any could translate from spanish will be usefully > I don't speak spanish, and your english is often unreadable, so we need some help... -- Beno?t Minisini From dosida at ...626... Tue Jun 6 18:49:54 2017 From: dosida at ...626... (Dimitris Anogiatis) Date: Tue, 6 Jun 2017 10:49:54 -0600 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> Message-ID: While Google translate and other online transaction tools are not perfect we could try a few of them to see which combination of such tools makes more sense for both the English side and the non-English side. Keep in mind that the way we put words to our thoughts is also affected? by different patterns and experiences in all our lives as well as mood and stress levels at the time of asking for info or documenting a piece of code. Plus not all words have a direct equivalent in every language. So we also have to have a balance between specifics and verbosity. That's my 2 cents worth of wisdom anyways :) On Jun 6, 2017 10:00 AM, "Beno?t Minisini via Gambas-user" < gambas-user at lists.sourceforge.net> wrote: Le 06/06/2017 ? 17:54, PICCORO McKAY Lenz a ?crit : > hi benoit, there many issues in gb.db specifically in odbc component, i > wish to be fixed in the next release please, thanks in advance > > currently i can to contribute to the documentation how-to's wiki parts but > i cannot write on both languajes, its very tedious for me write english.. > so if any could translate from spanish will be usefully > > I don't speak spanish, and your english is often unreadable, so we need some help... -- 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... Tue Jun 6 19:46:51 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 6 Jun 2017 13:46:51 -0400 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> Message-ID: 2017-06-06 12:49 GMT-04:00 Dimitris Anogiatis : > While Google translate and other online transaction tools are not perfect > we could try a few of them to see which combination of such tools makes > more sense for both the English side and the non-English side. that-s a totally true.. > Keep in mind that the way we put words to our thoughts is also affected by > different patterns and experiences in all our lives as well as mood and > stress levels at the time of asking for info or documenting a piece of > code. Plus not all words have a direct equivalent in every language. So we > also have to have a balance between specifics and verbosity. this point its a special problem.. many possible users don't contribute due the language are its wall.. and take too much time translate to other language.. > > That's my 2 cents worth of wisdom anyways :) > > On Jun 6, 2017 10:00 AM, "Beno?t Minisini via Gambas-user" < > gambas-user at lists.sourceforge.net> wrote: > > Le 06/06/2017 ? 17:54, PICCORO McKAY Lenz a ?crit : > >> hi benoit, there many issues in gb.db specifically in odbc component, i >> wish to be fixed in the next release please, thanks in advance >> >> currently i can to contribute to the documentation how-to's wiki parts but >> i cannot write on both languajes, its very tedious for me write english.. >> so if any could translate from spanish will be usefully >> >> > I don't speak spanish, and your english is often unreadable, so we need > some help... > > -- > 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 jussi.lahtinen at ...626... Tue Jun 6 20:32:15 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 6 Jun 2017 21:32:15 +0300 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> Message-ID: I think many times short example codes tells much more, than human language explanation. If the function, variable, etc names are in English, then I think it is usually enough. Maybe some short comments are necessary sometimes. Let the Gambas be our common language. Jussi On Tue, Jun 6, 2017 at 7:49 PM, Dimitris Anogiatis wrote: > While Google translate and other online transaction tools are not perfect > we could try a few of them to see which combination of such tools makes > more sense for both the English side and the non-English side. > > Keep in mind that the way we put words to our thoughts is also affected? by > different patterns and experiences in all our lives as well as mood and > stress levels at the time of asking for info or documenting a piece of > code. Plus not all words have a direct equivalent in every language. So we > also have to have a balance between specifics and verbosity. > > That's my 2 cents worth of wisdom anyways :) > > On Jun 6, 2017 10:00 AM, "Beno?t Minisini via Gambas-user" < > gambas-user at lists.sourceforge.net> wrote: > > Le 06/06/2017 ? 17:54, PICCORO McKAY Lenz a ?crit : > > > hi benoit, there many issues in gb.db specifically in odbc component, i > > wish to be fixed in the next release please, thanks in advance > > > > currently i can to contribute to the documentation how-to's wiki parts > but > > i cannot write on both languajes, its very tedious for me write english.. > > so if any could translate from spanish will be usefully > > > > > I don't speak spanish, and your english is often unreadable, so we need > some help... > > -- > 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 mckaygerhard at ...626... Tue Jun 6 20:58:19 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 6 Jun 2017 14:58:19 -0400 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> Message-ID: 2017-06-06 14:32 GMT-04:00 Jussi Lahtinen : > I think many times short example codes tells much more, than human language > explanation. If the function, variable, etc names are in English, then I > think it is usually enough. Maybe some short comments are necessary > sometimes. Let the Gambas be our common language. documentation its the firts piece of view when a project its about to start! come on, if this where true, no maillist will exist, and taking about of pieces of code, in the past all "odbc connections examples" was out of date, that more thant help new developers make it confuses > > > Jussi > > > > On Tue, Jun 6, 2017 at 7:49 PM, Dimitris Anogiatis wrote: > >> While Google translate and other online transaction tools are not perfect >> we could try a few of them to see which combination of such tools makes >> more sense for both the English side and the non-English side. >> >> Keep in mind that the way we put words to our thoughts is also affected by >> different patterns and experiences in all our lives as well as mood and >> stress levels at the time of asking for info or documenting a piece of >> code. Plus not all words have a direct equivalent in every language. So we >> also have to have a balance between specifics and verbosity. >> >> That's my 2 cents worth of wisdom anyways :) >> >> On Jun 6, 2017 10:00 AM, "Beno?t Minisini via Gambas-user" < >> gambas-user at lists.sourceforge.net> wrote: >> >> Le 06/06/2017 ? 17:54, PICCORO McKAY Lenz a ?crit : >> >> > hi benoit, there many issues in gb.db specifically in odbc component, i >> > wish to be fixed in the next release please, thanks in advance >> > >> > currently i can to contribute to the documentation how-to's wiki parts >> but >> > i cannot write on both languajes, its very tedious for me write english.. >> > so if any could translate from spanish will be usefully >> > >> > >> I don't speak spanish, and your english is often unreadable, so we need >> some help... >> >> -- >> 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 >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 criguada at ...626... Wed Jun 7 01:32:21 2017 From: criguada at ...626... (Cristiano Guadagnino) Date: Wed, 7 Jun 2017 01:32:21 +0200 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> References: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> Message-ID: I speak both spanish and english, so I can be of help, but my free time is very limited, so ultimately it depends on the amount of work that needs to be done. Cris Sent with Mailtrack On Tue, Jun 6, 2017 at 5:59 PM, Beno?t Minisini via Gambas-user < gambas-user at lists.sourceforge.net> wrote: > Le 06/06/2017 ? 17:54, PICCORO McKAY Lenz a ?crit : > >> hi benoit, there many issues in gb.db specifically in odbc component, i >> wish to be fixed in the next release please, thanks in advance >> >> currently i can to contribute to the documentation how-to's wiki parts >> but i cannot write on both languajes, its very tedious for me write >> english.. so if any could translate from spanish will be usefully >> >> > I don't speak spanish, and your english is often unreadable, so we need > some help... > > -- > 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 jussi.lahtinen at ...626... Wed Jun 7 01:57:07 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 7 Jun 2017 02:57:07 +0300 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: <85be6dc2-c303-b62b-419a-bf79327ac7a4@...1...> Message-ID: I meant documentation should have example codes. It's great point to start with, and it doesn't require much skills in English. If examples are out of date, then likely also documentation is out of date. So, it's not specific problem of example code. Jussi On Tue, Jun 6, 2017 at 9:58 PM, PICCORO McKAY Lenz wrote: > 2017-06-06 14:32 GMT-04:00 Jussi Lahtinen : > > I think many times short example codes tells much more, than human > language > > explanation. If the function, variable, etc names are in English, then I > > think it is usually enough. Maybe some short comments are necessary > > sometimes. Let the Gambas be our common language. > > documentation its the firts piece of view when a project its about to > start! come on, if this where true, no maillist will exist, > > and taking about of pieces of code, in the past all "odbc connections > examples" was out of date, that more thant help new developers make it > confuses > > > > > > > Jussi > > > > > > > > On Tue, Jun 6, 2017 at 7:49 PM, Dimitris Anogiatis > wrote: > > > >> While Google translate and other online transaction tools are not > perfect > >> we could try a few of them to see which combination of such tools makes > >> more sense for both the English side and the non-English side. > >> > >> Keep in mind that the way we put words to our thoughts is also affected > by > >> different patterns and experiences in all our lives as well as mood and > >> stress levels at the time of asking for info or documenting a piece of > >> code. Plus not all words have a direct equivalent in every language. So > we > >> also have to have a balance between specifics and verbosity. > >> > >> That's my 2 cents worth of wisdom anyways :) > >> > >> On Jun 6, 2017 10:00 AM, "Beno?t Minisini via Gambas-user" < > >> gambas-user at lists.sourceforge.net> wrote: > >> > >> Le 06/06/2017 ? 17:54, PICCORO McKAY Lenz a ?crit : > >> > >> > hi benoit, there many issues in gb.db specifically in odbc component, > i > >> > wish to be fixed in the next release please, thanks in advance > >> > > >> > currently i can to contribute to the documentation how-to's wiki parts > >> but > >> > i cannot write on both languajes, its very tedious for me write > english.. > >> > so if any could translate from spanish will be usefully > >> > > >> > > >> I don't speak spanish, and your english is often unreadable, so we need > >> some help... > >> > >> -- > >> 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 > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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... Wed Jun 7 02:11:07 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 07 Jun 2017 00:11: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 #12 by Leonardo SALAZAR: I reproduce the error in debian 7 gambas 3.4.2 the next piece of code always return "-1" Try rs = $conexionodbc.Exec(query) If rs.Available Then ' howmany = rsprices.Count ' Endif get -1 no way to fetch the data in grid From adamnt42 at ...626... Wed Jun 7 02:40:08 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 7 Jun 2017 10:10:08 +0930 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: References: Message-ID: <20170607101008.784445e010e0985efa4be9d6@...626...> I think one of the things that is hard about doing something about the documentation is that there does not appear to be any simple way to collaborate on it. For example, stirred up a bit by this thread, I started having a go at some of the wiki "ToDo" list, specifically the gb.desktop component. I had added some descriptive and example content for much of the DesktopFile class then hit this snag.... What is the "Size" parameter in GetIcon(Size As Integer)? Where is a convenient place to talk about that question? I don't think it really belongs in the mailing list as it may take a reasonable time before someone with that knowledge notices the post and answers it. In the mean time the post just drifts farther and farther down the time line. I don't think that adding content to the page concerned would work either, as the person with the knowledge is not likely to be referring to the page in the course of their normal day. And while I'm at it - how do you add an image to a wiki page? Like the http://gambaswiki.org/wiki/howto/makereport/arrange.png? in the "How to to make a report with Gambas" page. Note, I mean how do I upload the .png files I want to put in a page, not how to reference it in the markup ( i.e. I know "[doc/myhowto/blah.png]" ). cheers b -- B Bruen From gambas at ...1... Wed Jun 7 10:59:21 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 7 Jun 2017 10:59:21 +0200 Subject: [Gambas-user] Gambas-Documentation In-Reply-To: <20170607101008.784445e010e0985efa4be9d6@...626...> References: <20170607101008.784445e010e0985efa4be9d6@...626...> Message-ID: Le 07/06/2017 ? 02:40, adamnt42 at ...626... a ?crit : > I think one of the things that is hard about doing something about > the documentation is that there does not appear to be any simple way > to collaborate on it. For example, stirred up a bit by this thread, > I started having a go at some of the wiki "ToDo" list, specifically > the gb.desktop component. I had added some descriptive and example > content for much of the DesktopFile class then hit this snag.... > > What is the "Size" parameter in GetIcon(Size As Integer)? > > Where is a convenient place to talk about that question? I don't > think it really belongs in the mailing list as it may take a > reasonable time before someone with that knowledge notices the post > and answers it. In the mean time the post just drifts farther and > farther down the time line. I don't think that adding content to the > page concerned would work either, as the person with the knowledge is > not likely to be referring to the page in the course of their normal > day. > > And while I'm at it - how do you add an image to a wiki page? Like > the http://gambaswiki.org/wiki/howto/makereport/arrange.png? in the > "How to to make a report with Gambas" page. Note, I mean how do I > upload the .png files I want to put in a page, not how to reference > it in the markup ( i.e. I know "[doc/myhowto/blah.png]" ). > > cheers b > Images are wiki pages whose URL ends with ".png" or ".jpg". To upload an image, you have to login and then access the page. You will get then a button to upload the image. Regards, -- Beno?t Minisini From chrisml at ...3340... Wed Jun 7 13:33:26 2017 From: chrisml at ...3340... (Christof Thalhofer) Date: Wed, 7 Jun 2017 13:33:26 +0200 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <1496758419751-59261.post@...3046...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> Message-ID: Am 06.06.2017 um 16:13 schrieb alexchernoff: > Correct, "import" only creates a local copy, and using a symlink > results in read only code in the IDE. > > The goal is to edit shared centralised modules and having all > projects see the changes. You can do this by creating a project as library. After you compiled it once and mad an executable with Ctrl-Alt-X, all modules and classes with the magic word "Export" in the beginning are shared by the library and can be used in other projects. You have to choose the library inside the other projects' definition dialog (in the IDE). So you can outsource common code and use it in a lot of projects. http://gambaswiki.org/wiki/doc/library Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at ...626... Wed Jun 7 15:38:52 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 7 Jun 2017 09:38:52 -0400 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> Message-ID: 2017-06-07 7:33 GMT-04:00 Christof Thalhofer : > Am 06.06.2017 um 16:13 schrieb alexchernoff: >> The goal is to edit shared centralised modules and having all >> projects see the changes. > > You can do this by creating a project as library. After you compiled it > once and mad an executable with Ctrl-Alt-X, all modules and classes with > the magic word "Export" in the beginning are shared by the library and > can be used in other projects. umm i was triying in the past that but not was as expected, i dont remenber why, i try right now and report feedback here... due i'm in same problem > > You have to choose the library inside the other projects' definition > dialog (in the IDE). > > So you can outsource common code and use it in a lot of projects. > > http://gambaswiki.org/wiki/doc/library umm seems the complication in the past was the locations of the codes.. all of this have hardcoded paths... in git submodules there-s no hardcode depends, due submodules can work off-line independen of.. if i moved the library from original path to another path, all the depends break down.. i'll try and later report feedback > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 7 15:48:29 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 7 Jun 2017 09:48:29 -0400 Subject: [Gambas-user] Gambas-Documentation Message-ID: Hi adamnt42, 2017-06-06 20:40 GMT-04:00 adamnt42 at ...626... : > > What is the "Size" parameter in GetIcon(Size As Integer)? > > Where is a convenient place to talk about that question? I don't think it really belongs in the mailing list as it may take a reasonable time before someone with that knowledge notices the post and answers it. In the mean time the post just drifts farther and farther down the time line. I don't think that adding content to the page concerned would work either, as the person with the knowledge is not likely to be referring to the page in the course of their normal day. same happened to me on the ODBC documentation.. many errors happened and due mail list dont answer quickly (and to not receive responses like "it's obviously that") i decide triying by myselft.. that take me a lot of time but well...the result was that ODBC module componente has some bugs reported by me... > > And while I'm at it - how do you add an image to a wiki page? Like the http://gambaswiki.org/wiki/howto/makereport/arrange.png? in the "How to to make a report with Gambas" page. Note, I mean how do I upload the .png files I want to put in a page, not how to reference it in the markup ( i.e. I know "[doc/myhowto/blah.png]" ). a big problem, graphical examples need images with those in action... for that i not have a suggested solution due i not code too many desktop apps.. i made more daemons and services programs in gambas ... > > cheers > b > > -- > B Bruen > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 adamnt42 at ...626... Wed Jun 7 16:25:10 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 7 Jun 2017 23:55:10 +0930 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> Message-ID: <20170607235510.c758acd960b6d33867dff03e@...626...> On Wed, 7 Jun 2017 09:38:52 -0400 PICCORO McKAY Lenz wrote: > 2017-06-07 7:33 GMT-04:00 Christof Thalhofer : > > Am 06.06.2017 um 16:13 schrieb alexchernoff: > >> The goal is to edit shared centralised modules and having all > >> projects see the changes. > > > > You can do this by creating a project as library. After you compiled it > > once and mad an executable with Ctrl-Alt-X, all modules and classes with > > the magic word "Export" in the beginning are shared by the library and > > can be used in other projects. > umm i was triying in the past that but not was as expected, i dont > remenber why, i try right now and report feedback here... due i'm in > same problem > > > > > You have to choose the library inside the other projects' definition > > dialog (in the IDE). > > > > So you can outsource common code and use it in a lot of projects. > > > > http://gambaswiki.org/wiki/doc/library > > umm seems the complication in the past was the locations of the > codes.. all of this have hardcoded paths... in git submodules there-s > no hardcode depends, due submodules can work off-line independen of.. > > if i moved the library from original path to another path, all the > depends break down.. > > i'll try and later report feedback > > > > > Alles Gute > > > > Christof Thalhofer > > > > -- > > Dies ist keine Signatur > > > > > > ------------------------------------------------------------------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 gerhard I think you need to understand a lot more about libraries and components. Libraries are useful for one developer trying to re-use code between projects on a single machine. If you are talking about deploying shared code in a way that it can be used by different people developing different projects on different machines then you need to look at the component mechanism. There is really no programming difference between a library and a component (except when talking about gui controls). The difference is how and where they are deployed. Libraries are (or were,until the naming convention changed :-< ) simple and easy. Components offer more deployment options but require a bit more packaging effort. b -- B Bruen From mckaygerhard at ...626... Wed Jun 7 17:44:00 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 7 Jun 2017 11:44:00 -0400 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <20170607235510.c758acd960b6d33867dff03e@...626...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> <20170607235510.c758acd960b6d33867dff03e@...626...> Message-ID: maybe its a good idead paste more clarelly that in gambas wiki.. the documentation lack of that explanations, so right documentation its important! 2017-06-07 10:25 GMT-04:00 adamnt42 at ...626... : > useful for one developer trying to re-use code between projects on a > single machine. If you > library its limited to hardcoded path's.. so that was the problem in the past > are talking about deploying shared code in a way that it can be used by > different people developing different projects on different machines then > you need to look at the component > the problem with componente its the deploy system was not so simple.. my solution was used git submodules.. more standard way and more generalized.. a manpower when comes and started, comes with git knowledge with it! > mechanism. There is really no programming difference between a library > and a component (except when talking about gui controls). The difference > is how and where they are deployed. > components it th right choice for distributed projects.. the only problem its that must be deployed to all users can implement the result code functions.. and not directly in IDE repository code.. > > Libraries are (or were,until the naming convention changed :-< ) simple > and easy. yes.. right choice for local only projects but hardcoded paths limit the usage of in distribute projects > Components offer more deployment options but require a bit more packaging > effort. > its the right choice for distribute projects, but limited to gambas only usage and need deploy.. maybe its a good idead paste more clarelly that in gambas wiki.. the documentation lack of that explanations > > b > > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 7 17:56:14 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 7 Jun 2017 17:56:14 +0200 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <20170607235510.c758acd960b6d33867dff03e@...626...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> <20170607235510.c758acd960b6d33867dff03e@...626...> Message-ID: <6687613e-681b-70d4-e5ea-832ae8fa0d6c@...1...> Le 07/06/2017 ? 16:25, adamnt42 at ...626... a ?crit : > > I think you need to understand a lot more about libraries and > components. Libraries are useful for one developer trying to re-use > code between projects on a single machine. If you are talking about > deploying shared code in a way that it can be used by different > people developing different projects on different machines then you > need to look at the component mechanism. There is really no > programming difference between a library and a component (except when > talking about gui controls). The difference is how and where they > are deployed. Libraries are (or were,until the naming convention > changed :-< ) simple and easy. Components offer more deployment > options but require a bit more packaging effort. > > b > Actually, components are more like extensions to the Gambas language, and should be distributed with the Gambas source code. So you should always make libraries for your own needs. A library package is installed system-wide, and can be used by any Gambas program, as now the reference to the library is based on its name, not its absolute path as it was before. A library used by a project is referenced by its vendor, and by its name. When the project is executed, the library is searched in the following paths, in that order: 1) '/.gambas' (for backward-compatibility). 2) '$XDG_DATA_HOME/gambas3/lib//:.gambas' (if $XDG_DATA_HOME is defined). 3) '~/.local/share/gambas3/lib//:.gambas', (if $XDG_DATA_HOME is NOT defined). 4) '//:.gambas' (the project extra archive directory is a project property defined in the 'library' tab of the project property dialog). 5) '/usr/lib/gambas3//:.gambas' (library packages are installed there, system-wide). 6) '/usr/bin//.gambas' (standard gambas programs can be used as libraries). I suggest not to use the 1) and 6) feature, they are there for backward-compatibility mainly. 2) & 3) are there for user-wide installation of libraries. Libraries are installed user-wide when you make an executable from their source project ; or when you install a library from the gambas farm. I hope all that was clear! Regards, -- Beno?t Minisini From bugtracker at ...3416... Thu Jun 8 10:49:46 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 08 Jun 2017 08:49:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1114: Agregar "Insertar fecha" Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1114&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- Agregar "Insertar fecha" Type : Request Priority : Low Gambas version : 3.9 Product : Development Environment Description ----------- Good, what if added in the menu Edit ---> Advanced ---> Insert date? Edit -> Advanced -> Insert date -> yyyy:mm:dd hh:nn -> mm:yyyy -> etc. -> custom 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... Thu Jun 8 10:59:44 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 08 Jun 2017 08:59:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1114: Agregar "Insertar fecha" In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1114&from=L21haW4- Comment #1 by V?ctor PEREZ: It is important to add a date to know when we comment, modify or add some code. regards From bugtracker at ...3416... Thu Jun 8 11:04:08 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 08 Jun 2017 09:04:08 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1114: Agregar "Insertar fecha" In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1114&from=L21haW4- Comment #2 by Beno?t MINISINI: Please don't use spanish! And I guess you want to insert the current date? Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Thu Jun 8 11:07:48 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 08 Jun 2017 09:07:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1112&from=L21haW4- ADMINISTRATOR changed the state of the bug to: Accepted. From bugtracker at ...3416... Thu Jun 8 12:18:50 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 08 Jun 2017 10:18:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1114: Agregar "Insertar fecha" In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1114&from=L21haW4- Comment #3 by V?ctor PEREZ: Yes, the current date and current time according to the format you choose. Sorry for the text in Spanish, I was wrong and I did not find how to modify it. Greetings Beno?t From adrien.prokopowicz at ...626... Thu Jun 8 16:02:32 2017 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Thu, 08 Jun 2017 16:02:32 +0200 Subject: [Gambas-user] Class HtmlDocument In-Reply-To: <20170606232024.f40a4b3e019834f6ebf08c2d@...626...> References: <1849a698-5c17-b5d5-ed3e-8fd7a86238cd@...3219...> <20170606232024.f40a4b3e019834f6ebf08c2d@...626...> Message-ID: Le Tue, 06 Jun 2017 15:50:24 +0200, adamnt42 at ...626... a ?crit: > On Mon, 5 Jun 2017 11:56:34 +0200 > Hans Lehmann wrote: > >> Hello, >> >> why creates the following source text: >> >> Public Sub btnCreateHTMLDocument_Click() >> Dim hHtmlDocument As HtmlDocument >> >> hHtmlDocument = New HtmlDocument > > At this point hHtmlDocument.Html5 is false!! > >> >> *hHtmlDocument.Html5 = False** >> * >> Print hHtmlDocument.ToString(True) >> hHtmlDocument.Save(Application.Path &/ "test.html", True) >> >> End >> >> this HTML5 document? I would have expected: strict HTML 1.0! >> >> >> >> >> >> >> >> >> >> >> >> >> 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 > > > So, I guess that you are right. In fact, changing it to True and then > back to False seems to have absolutely no effect on the generated html > text. > Oh well, back to Adrien for this one I'd say. > > b Hi guys, sorry for the delay, I've been a bit busy and missed your email ! This is indeed a bug in gb.xml.html, I'm looking into fixing it ASAP. :) Regards, -- Adrien Prokopowicz From mckaygerhard at ...626... Thu Jun 8 18:32:51 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 8 Jun 2017 12:32:51 -0400 Subject: [Gambas-user] Class HtmlDocument In-Reply-To: References: <1849a698-5c17-b5d5-ed3e-8fd7a86238cd@...3219...> <20170606232024.f40a4b3e019834f6ebf08c2d@...626...> Message-ID: 2017-06-08 10:02 GMT-04:00 Adrien Prokopowicz : > Le Tue, 06 Jun 2017 15:50:24 +0200, adamnt42 at ...626... > a ?crit: > > On Mon, 5 Jun 2017 11:56:34 +0200 >> Hans Lehmann wrote: >> >> Hello, >>> >>> why creates the following source text: >>> >>> Public Sub btnCreateHTMLDocument_Click() >>> Dim hHtmlDocument As HtmlDocument >>> >>> hHtmlDocument = New HtmlDocument >>> >> >> At this point hHtmlDocument.Html5 is false!! >> > I got curious about what Hans had said, and I can confirm that it is true, and if it is a bug in xml component i dont know.. i think must be search first and confirme if are in xml or not > >> >>> *hHtmlDocument.Html5 = False** >>> * >>> Print hHtmlDocument.ToString(True) >>> hHtmlDocument.Save(Application.Path &/ "test.html", True) >>> >>> End >>> >>> this HTML5 document? I would have expected: strict HTML 1.0! >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> 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 >>> >> >> >> So, I guess that you are right. In fact, changing it to True and then >> back to False seems to have absolutely no effect on the generated html text. >> Oh well, back to Adrien for this one I'd say. >> >> b >> > > Hi guys, sorry for the delay, I've been a bit busy and missed your email ! > > This is indeed a bug in gb.xml.html, I'm looking into fixing it ASAP. :) > > Regards, > > -- > Adrien Prokopowicz > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 k-p.richter at ...20... Thu Jun 8 20:43:45 2017 From: k-p.richter at ...20... (K-P Richter) Date: Thu, 8 Jun 2017 20:43:45 +0200 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1114: Agregar "Insertar fecha" In-Reply-To: References: Message-ID: From bugtracker at ...3416... Thu Jun 8 21:20:58 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 08 Jun 2017 19:20:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1115: Segmentation Fault STREAM_write - gbr3 Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1115&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Segmentation Fault STREAM_write - gbr3 Type : Bug Priority : Medium Gambas version : 3.9 Product : Networking components Description ----------- Hello, I've found a bug running command line program in Gambas using massively UDP Socket Server and Local Socket. Attached the gbd trace. Olivier System information ------------------ [System] Gambas=gbAsStatistics OperatingSystem=Linux Kernel=3.10.0-514.16.1.el7.x86_64 Architecture=x86_64 Distribution=redhat CentOS Linux release 7.3.1611 (Core) Language=en_US.UTF-8 Memory=15101M [Libraries] [Environment] HISTCONTROL=ignoredups HISTSIZE=1000 HOME=/root HOSTNAME=mtl-netflow01.sv.stw LANG=en_US.UTF-8 LESSOPEN=||/usr/bin/lesspipe.sh %s LOGNAME=root LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35: MAIL=/var/spool/mail/root OLDPWD=/root/rpmbuild/RPMS/x86_64 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin PWD=/tmp SELINUX_LEVEL_REQUESTED= SELINUX_ROLE_REQUESTED= SELINUX_USE_CURRENT_RANGE= SHELL=/bin/bash SHLVL=1 SSH_CLIENT=10.100.21.121 42242 22 SSH_CONNECTION=10.100.21.121 42242 10.35.101.148 22 SSH_TTY=/dev/pts/14 TERM=xterm TZ=:/etc/localtime USER=root XDG_RUNTIME_DIR=/run/user/0 XDG_SESSION_ID=2424 _=./info-gb.gbs From bugtracker at ...3416... Thu Jun 8 21:21:08 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 08 Jun 2017 19:21:08 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1115: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1115&from=L21haW4- Olivier CRUILLES added an attachment: gbr3_debuger_log.txt From alexchernoff at ...67... Fri Jun 9 10:30:59 2017 From: alexchernoff at ...67... (alexchernoff) Date: Fri, 9 Jun 2017 01:30:59 -0700 (MST) Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <6687613e-681b-70d4-e5ea-832ae8fa0d6c@...1...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> <20170607235510.c758acd960b6d33867dff03e@...626...> <6687613e-681b-70d4-e5ea-832ae8fa0d6c@...1...> Message-ID: <1496997059415-59292.post@...3046...> Using a Library works well, thanks! Is it possible to name it something other than .gambas? like XYZ_Super_Library.lib? -- View this message in context: http://gambas.8142.n7.nabble.com/Sharing-Code-Between-Projects-tp59251p59292.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Fri Jun 9 11:06:31 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 9 Jun 2017 04:36:31 -0430 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <1496997059415-59292.post@...3046...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> <20170607235510.c758acd960b6d33867dff03e@...626...> <6687613e-681b-70d4-e5ea-832ae8fa0d6c@...1...> <1496997059415-59292.post@...3046...> Message-ID: 2017-06-09 4:00 GMT-04:30 alexchernoff : > Using a Library works well, thanks! > > Is it possible to name it something other than .gambas? like > XYZ_Super_Library.lib? > nop, like docs said must be gambas until are system wide > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Sharing-Code-Between-Projects-tp59251p59292.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 mckaygerhard at ...626... Fri Jun 9 11:07:41 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 9 Jun 2017 04:37:41 -0430 Subject: [Gambas-user] Sharing Code Between Projects In-Reply-To: <1496997059415-59292.post@...3046...> References: <1496740946975-59251.post@...3046...> <1496746972939-59254.post@...3046...> <1496758419751-59261.post@...3046...> <20170607235510.c758acd960b6d33867dff03e@...626...> <6687613e-681b-70d4-e5ea-832ae8fa0d6c@...1...> <1496997059415-59292.post@...3046...> Message-ID: 2017-06-09 4:00 GMT-04:30 alexchernoff : > Using a Library works well, thanks! > > Is it possible to name it something other than .gambas? like > XYZ_Super_Library.lib? > when are installed u can mannually search for a different name... > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Sharing-Code-Between-Projects-tp59251p59292.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... Sun Jun 11 06:55:38 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 04:55:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1116: Error when a project has both gb.qt4 and gb.web.form Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1116&from=L21haW4- Safiur RAHMAN reported a new bug. Summary ------- Error when a project has both gb.qt4 and gb.web.form Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- when a project has both gb.qt4 and gb.web.form then following error appears: "Message.Info incorrectly overridden in class Message" Is it possible to rename Message class of gb.web.form to WebMessage to avoid this? System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.8.0-53-generic Architecture=x86_64 Distribution=Ubuntu 16.04.2 LTS Desktop=UNITY Theme=Gtk Language=en_US.UTF-8 Memory=3883M [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] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-vrKH8ISy0S DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=10583 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=ne_NP LC_IDENTIFICATION=ne_NP LC_MEASUREMENT=ne_NP LC_MONETARY=ne_NP LC_NAME=ne_NP LC_NUMERIC=ne_NP LC_PAPER=ne_NP LC_TELEPHONE=ne_NP LC_TIME=ne_NP LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/1957,unix/:/tmp/.ICE-unix/1957 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1646 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@...3498...=ibus From bugtracker at ...3416... Sun Jun 11 06:55:56 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 04:55:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1116: Error when a project has both gb.qt4 and gb.web.form In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1116&from=L21haW4- Safiur RAHMAN added an attachment: project.tar.gz From bugtracker at ...3416... Sun Jun 11 08:01:29 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 06:01:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1116: Error when a project has both gb.qt4 and gb.web.form In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1116&from=L21haW4- Comment #1 by Beno?t MINISINI: Actually these two componennts are not compatible. The bug is that you must not be allowed to check them at the same time. Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Sun Jun 11 08:02:59 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 06:02:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1115: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1115&from=L21haW4- Comment #1 by Beno?t MINISINI: Which version of Gambas do you use? From bugtracker at ...3416... Sun Jun 11 08:04:59 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 06:04:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1115: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1115&from=L21haW4- Comment #2 by Beno?t MINISINI: Anyway, without the source code, it's hard to do anything... From bugtracker at ...3416... Sun Jun 11 11:15:26 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 09:15:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1117: Search please Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1117&from=L21haW4- C THAL reported a new bug. Summary ------- Search please Type : Request Priority : Medium Gambas version : Unknown Product : Wiki Description ----------- Gambaswiki should have a tool to search for keywords. From fernandojosecabral at ...626... Sun Jun 11 13:25:51 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 11 Jun 2017 08:25:51 -0300 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? Message-ID: I have gambas3 3.9.2 running Linux Mint 18.1. I have installed gambas using a PPA. Is there a way I can use to force apt-get to download and install the last stable version? I've tried removing, purging and installing anew, but it seems I ended up with the same version. From this fact I would guess the PPA does not represent last revision we can find at the sourceforge repository [r8142]. Is my understanding right? I tried to download and compile, but there were so many modules disabled that I concluded gambas would barely work -- if at all. I guess my practical question is: is there a way for me to get the latest revision without having to go thru the pains of finding out how to overcome the issues with the disabled modules and compiling from source? 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 taboege at ...626... Sun Jun 11 16:33:00 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Jun 2017 16:33:00 +0200 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: Message-ID: <20170611143300.GF575@...3600...> On Sun, 11 Jun 2017, Fernando Cabral wrote: > I have gambas3 3.9.2 running Linux Mint 18.1. I have installed gambas using > a PPA. Is there a way I can use to force apt-get to download and install > the last stable version? I've tried removing, purging and installing anew, > but it seems I ended up with the same version. From this fact I would > guess the PPA does not represent last revision we can find at the > sourceforge repository [r8142]. > > Is my understanding right? > > I tried to download and compile, but there were so many modules disabled > that I concluded gambas would barely work -- if at all. > > I guess my practical question is: is there a way for me to get the latest > revision without having to go thru the pains of finding out how to overcome > the issues with the disabled modules and compiling from source? > If you want the latest *stable* version, as you say in your first paragraph, then you got it. 3.9.2 is the latest stable Gambas release. On the other hand, if you want the latest SVN revision (aka "/trunk", or more verbosely "unstable development snapshot"), as you say in the remainder of your mail, you have to use a different PPA, called "gambas-daily". Before I explain it with my own words, did you read the wiki page [1] ? Regards, Tobi [1] http://gambaswiki.org/wiki/install/ubuntu -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From fernandojosecabral at ...626... Sun Jun 11 17:39:28 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 11 Jun 2017 12:39:28 -0300 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: <20170611143300.GF575@...3600...> References: <20170611143300.GF575@...3600...> Message-ID: Tobi Excuse both my ignorance and poor communication ability. I prefer using the latest stable version, which I expect be the case when I resort to the PPA I am presently using. Now, I was not aware that those revisions are still considered unstable. So, I expected (wrongly, I see) that they would be incorporated into the stable version. So, I will stay with the stable version and wait until the changes are made available for general use. Meanwhile, I'll keep using the workaround for the keyboard locking issue. Thank you. - fernando 2017-06-11 11:33 GMT-03:00 Tobias Boege : > On Sun, 11 Jun 2017, Fernando Cabral wrote: > > I have gambas3 3.9.2 running Linux Mint 18.1. I have installed gambas > using > > a PPA. Is there a way I can use to force apt-get to download and install > > the last stable version? I've tried removing, purging and installing > anew, > > but it seems I ended up with the same version. From this fact I would > > guess the PPA does not represent last revision we can find at the > > sourceforge repository [r8142]. > > > > Is my understanding right? > > > > I tried to download and compile, but there were so many modules disabled > > that I concluded gambas would barely work -- if at all. > > > > I guess my practical question is: is there a way for me to get the latest > > revision without having to go thru the pains of finding out how to > overcome > > the issues with the disabled modules and compiling from source? > > > > If you want the latest *stable* version, as you say in your first > paragraph, > then you got it. 3.9.2 is the latest stable Gambas release. > > On the other hand, if you want the latest SVN revision (aka "/trunk", or > more verbosely "unstable development snapshot"), as you say in the > remainder > of your mail, you have to use a different PPA, called "gambas-daily". > Before I explain it with my own words, did you read the wiki page [1] ? > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/install/ubuntu > > -- > "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 taboege at ...626... Sun Jun 11 19:04:11 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 11 Jun 2017 19:04:11 +0200 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: <20170611143300.GF575@...3600...> Message-ID: <20170611170411.GH575@...3600...> On Sun, 11 Jun 2017, Fernando Cabral wrote: > Tobi > > Excuse both my ignorance and poor communication ability. I prefer using the > latest stable version, which I expect be the case when I resort to the PPA > I am presently using. Now, I was not aware that those revisions are still > considered unstable. So, I expected (wrongly, I see) that they would be > incorporated into the stable version. > > So, I will stay with the stable version and wait until the changes are made > available for general use. Meanwhile, I'll keep using the workaround for > the keyboard locking issue. > Ok, but just a quick remark. "Unstable" is an unclear term. I, for one, always run an unstable version of Gambas (compiled from source) and usually have no problems. But once in a while it happens that something is broken in the development version because of a change that was not fully thought through; or you install a revision in the middle of someone making a bunch of commits, before he is done with all his changes, and Gambas doesn't even compile completely. If you want to test a bug fix (or go on bug hunt yourself), you have to use the unstable version, because the stable version is supposed(TM) to not have bugs but to have confirmed bug fixes. Unstable usually isn't as bad as it sounds. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Sun Jun 11 22:02:33 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 11 Jun 2017 22:02:33 +0200 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: <20170611170411.GH575@...3600...> References: <20170611143300.GF575@...3600...> <20170611170411.GH575@...3600...> Message-ID: +1 ? I also use the version of Gambas compiled from sources without any problems? Regards Gianluigi 2017-06-11 19:04 GMT+02:00 Tobias Boege : > On Sun, 11 Jun 2017, Fernando Cabral wrote: > > Tobi > > > > Excuse both my ignorance and poor communication ability. I prefer using > the > > latest stable version, which I expect be the case when I resort to the > PPA > > I am presently using. Now, I was not aware that those revisions are still > > considered unstable. So, I expected (wrongly, I see) that they would be > > incorporated into the stable version. > > > > So, I will stay with the stable version and wait until the changes are > made > > available for general use. Meanwhile, I'll keep using the workaround for > > the keyboard locking issue. > > > > Ok, but just a quick remark. "Unstable" is an unclear term. I, for one, > always run an unstable version of Gambas (compiled from source) and usually > have no problems. But once in a while it happens that something is broken > in the development version because of a change that was not fully thought > through; or you install a revision in the middle of someone making a bunch > of commits, before he is done with all his changes, and Gambas doesn't even > compile completely. > > If you want to test a bug fix (or go on bug hunt yourself), you have to use > the unstable version, because the stable version is supposed(TM) to not > have > bugs but to have confirmed bug fixes. Unstable usually isn't as bad as it > sounds. > > 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 bugtracker at ...3416... Mon Jun 12 00:49:55 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 22:49:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1118: Button copy report does not work, at the end of creating packages. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1118&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- Button copy report does not work, at the end of creating packages. Type : Bug Priority : Low Gambas version : 3.9 Product : Bugtracker Description ----------- Button copy report does not work, at the end of creating packages. And ... how about a button to save the report to a .txt file? regards 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... Mon Jun 12 00:50:30 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 11 Jun 2017 22:50:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1118: Button copy report does not work, at the end of creating packages. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1118&from=L21haW4- V?ctor PEREZ added an attachment: BUG-no copia.png From fernandojosecabral at ...626... Mon Jun 12 00:54:25 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 11 Jun 2017 19:54:25 -0300 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: <20170611143300.GF575@...3600...> <20170611170411.GH575@...3600...> Message-ID: Gianluigi and Tobi I tried to compile, then I found some modules would be disabled (a long list of them). Reading the INSTALL instruction I found that in order to compile for Mint (Ubuntu) I would have to manually define a lot of things specific to that environment. I gave up because I do not have the time or knowledge to do what is required (It is not that I am lazy; it is because time has been quite scarce. Maybe I should try the unstable version... Regards - fernando 2017-06-11 17:02 GMT-03:00 Gianluigi : > +1 ? > I also use the version of Gambas compiled from sources without any > problems? > Regards > Gianluigi > > > 2017-06-11 19:04 GMT+02:00 Tobias Boege : > > > On Sun, 11 Jun 2017, Fernando Cabral wrote: > > > Tobi > > > > > > Excuse both my ignorance and poor communication ability. I prefer using > > the > > > latest stable version, which I expect be the case when I resort to the > > PPA > > > I am presently using. Now, I was not aware that those revisions are > still > > > considered unstable. So, I expected (wrongly, I see) that they would be > > > incorporated into the stable version. > > > > > > So, I will stay with the stable version and wait until the changes are > > made > > > available for general use. Meanwhile, I'll keep using the workaround > for > > > the keyboard locking issue. > > > > > > > Ok, but just a quick remark. "Unstable" is an unclear term. I, for one, > > always run an unstable version of Gambas (compiled from source) and > usually > > have no problems. But once in a while it happens that something is broken > > in the development version because of a change that was not fully thought > > through; or you install a revision in the middle of someone making a > bunch > > of commits, before he is done with all his changes, and Gambas doesn't > even > > compile completely. > > > > If you want to test a bug fix (or go on bug hunt yourself), you have to > use > > the unstable version, because the stable version is supposed(TM) to not > > have > > bugs but to have confirmed bug fixes. Unstable usually isn't as bad as it > > sounds. > > > > 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 > -- 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 Jun 12 01:31:48 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 11 Jun 2017 20:31:48 -0300 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: I've now installed gambas 3.9.90. Unfortunately, the keyboard is still locked. How about you, guys, who had the same problem I have? Still having it, or has it been solved with the last revision? - fernando 2017-05-25 16:15 GMT-03:00 Fabien Bodard : > ---------- 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 < > 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 > > > > > > > > -- > > 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 > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 mckaygerhard at ...626... Mon Jun 12 03:47:31 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 11 Jun 2017 21:47:31 -0400 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: hi Fernando, just for curiosity.. do you can post Xorg version and MEsa version packages.. if you have a not so large disk, can you made with partimage a copy of your system and then reply in the other machine? can you post a list of packages installed? some time ago, i a real linux (i dont think winbutu are) i have a similar issue.. the problem was an upgrade between xorg 1.4 and 1.6, some specific to HAL vs Udev.. due conflicting files that in any case installed but exists... maybe some of your packages are upgraded in a strange way, that are not same as in the virtual machine.. so if you have 3 real machine, take one and reinstall and test, if problem persis, its something specific to your distribution.. that by casuality afected these hardware... too coincidences.. maybe.. but its happens! please test as i mention and post feedback ONLY when complete Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-11 19:31 GMT-04:00 Fernando Cabral : > I've now installed gambas 3.9.90. Unfortunately, the keyboard is still > locked. > > How about you, guys, who had the same problem I have? Still having it, or > has it been solved > with the last revision? > > > - fernando > > 2017-05-25 16:15 GMT-03:00 Fabien Bodard : > > > ---------- 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 < > fernandojosecabral at ...626... > > >: > > > > 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 < > glaucio.de.araujo at ...626... > > >: > > > > > > > >> 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 > > > > > > > > > > > > -- > > > 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 > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 author.ilmi at ...626... Mon Jun 12 03:56:28 2017 From: author.ilmi at ...626... (zainudin ahmad) Date: Mon, 12 Jun 2017 08:56:28 +0700 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: Hi Fernando can you try this in your terminal : GB_GUI=gb.qt5 XDG_CONFIG_HOME=/tmp/.gambas-home gambas3 it's work ? On 6/12/17, Fernando Cabral wrote: > I've now installed gambas 3.9.90. Unfortunately, the keyboard is still > locked. > > How about you, guys, who had the same problem I have? Still having it, or > has it been solved > with the last revision? > > > - fernando From mb at ...3664... Mon Jun 12 04:52:29 2017 From: mb at ...3664... (mikeB) Date: Sun, 11 Jun 2017 20:52:29 -0600 Subject: [Gambas-user] error in creating install pakage Message-ID: eGreetings, Just switched over to Linux from MS and choose Gambas to start programming for Linux. - i've programmed Windows software for a long time now - I really appreciate the fact that Gambas was developed and thanks to the folks that make it happen. There seems to be some learning curve but "it's almost BASIC". GOOD JOB! Running Linux Mint "Serena" Mate 64-bit: Gambas 3.8.4 A make of an executable does work as expected. "Trying to generate an "installment pkg" (within Gambas) for my first application = I received the following Error: The package build has failed. ============================================================================== CREATING PACKAGE FOR UBUNTU / KUBUNTU / MINT.... Making build directory. Creating desktop file... Sources are being debianizated. Creating package... cd '/home/mikeb/codeit-master2chapters-1.2.2' dpkg-buildpackage -d -rfakeroot -uc -us dpkg-buildpackage: source package codeit-master2chapters dpkg-buildpackage: source version 1.2.2-0ubuntu1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by mikeb dpkg-buildpackage: host architecture amd64 dpkg-source --before-build codeit-master2chapters-1.2.2 dpkg-source: error: syntax error in codeit-master2chapters-1.2.2/debian/control at line 12: line with unknown format (not field-colon-value) dpkg-buildpackage: error: dpkg-source --before-build codeit-master2chapters-1.2.2 gave error exit status 25 The package build has failed. Package.MakeDebPackage.1014: 'dpkg-buildpackage' has failed. ============================================================== I then I tryed making an "RPM" for SUSE and that went OKAY all though I have not tested it. Any clue what went wrong and/ or how can I attempt to fix the problem? Thanks, mikeB code-it.com From rwe-sse at ...3629... Mon Jun 12 08:27:00 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Mon, 12 Jun 2017 08:27:00 +0200 Subject: [Gambas-user] OT: Is this junk or really a sourforge mail? Message-ID: <593E3434.4020607@...3629...> This morning, I got a mail asking for confirmation of my mailing list accounts with sourceforge. They have never ever done this before, so I am somewhat sceptical if this might be just a junk mail and I will start receiving tons of spams over that account. This is the mail, I cut the personal part out: Hi, Thanks for being a SourceForge user. Our records indicate that you are subscribed to the following project mailing lists: gambas-user ltsp-discuss We are contacting you to confirm you are still interested in receiving emails from these SourceForge project lists. If you do not confirm your subscriptions by June 29th, you will be unsubscribed from the above mailing lists. Please click here to confirm your subscriptions: https://sourceforge.net/mailman/reconfirm?confirm=........ Thanks, The SourceForge Team A Slashdot Media Company Thanks for your advice. Regards Rolf From taboege at ...626... Mon Jun 12 09:13:07 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 12 Jun 2017 09:13:07 +0200 Subject: [Gambas-user] OT: Is this junk or really a sourforge mail? In-Reply-To: <593E3434.4020607@...3629...> References: <593E3434.4020607@...3629...> Message-ID: <20170612071307.GA584@...3600...> On Mon, 12 Jun 2017, Rolf-Werner Eilert wrote: > This morning, I got a mail asking for confirmation of my mailing list > accounts with sourceforge. > > They have never ever done this before, so I am somewhat sceptical if this > might be just a junk mail and I will start receiving tons of spams over that > account. > It seems to have been announced here: https://sourceforge.net/blog/sourceforge-project-e-mail-policy-update/ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Mon Jun 12 09:38:06 2017 From: bagonergi at ...626... (Gianluigi) Date: Mon, 12 Jun 2017 09:38:06 +0200 Subject: [Gambas-user] OT: Is this junk or really a sourforge mail? In-Reply-To: <20170612071307.GA584@...3600...> References: <593E3434.4020607@...3629...> <20170612071307.GA584@...3600...> Message-ID: I replied that I only want Gambas's mail and that's enough. Regards Gianluigi 2017-06-12 9:13 GMT+02:00 Tobias Boege : > On Mon, 12 Jun 2017, Rolf-Werner Eilert wrote: > > This morning, I got a mail asking for confirmation of my mailing list > > accounts with sourceforge. > > > > They have never ever done this before, so I am somewhat sceptical if this > > might be just a junk mail and I will start receiving tons of spams over > that > > account. > > > > It seems to have been announced here: https://sourceforge.net/blog/ > sourceforge-project-e-mail-policy-update/ > > -- > "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 bagonergi at ...626... Mon Jun 12 10:28:44 2017 From: bagonergi at ...626... (Gianluigi) Date: Mon, 12 Jun 2017 10:28:44 +0200 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: <20170611143300.GF575@...3600...> <20170611170411.GH575@...3600...> Message-ID: Linux Mint 18.1 is based on Ubuntu 16.04 (Xenial) the same version as Ubuntu I have. If you want to try installing the latest Gambas Trunk, below, I list the steps I've made. Of course, as a first step, you must remove from your Mint any trace of Gambas repository, for example: To uninstall the stable repository: sudo add-apt-repository -r ppa:gambas-team/gambas3 To uninstall the trunk (unstable) repository: sudo add-apt-repository -r ppa:gambas-team/gambas-daily Gambas real with all the libraries etc .: sudo apt-get --purge remove gambas3 sudo apt-get autoremove gambas3 At this point you can check that you have actually cleaned Ubuntu from the old Gambas by giving these commands, always from the terminal: sudo updatedb locate gambas* If you find something copied and always deleted with: sudo apt-get ?purge remove First you need to download the libraries: sudo apt update sudo apt install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev[/code] Now you can start by compiling the TRUNK version from SVN. NOTE: You will get two log files on our Desktop (look if your path is Desktop or Escritorio): sudo apt install subversion svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk cd trunk ~/trunk$ ( ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C ) > ~/Desktop/R_conf-Trunk.log 2>&1 Check the R_conf-Trunk.log log file on the your desktop (last line of the file) If it's ok, go ahead, if you miss jit or have other problems posted here the log file. ~/trunk$ ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk.log 2>&1 Regards Gianluigi 2017-06-12 0:54 GMT+02:00 Fernando Cabral : > Gianluigi and Tobi > > I tried to compile, then I found some modules would be disabled (a long > list of them). Reading the INSTALL instruction I found that in order to > compile for Mint (Ubuntu) I would have to manually define a lot of things > specific to that environment. I gave up because I do not have the time or > knowledge to do what is required (It is not that I am lazy; it is because > time has been quite scarce. > > Maybe I should try the unstable version... > > Regards > > > - fernando > > > 2017-06-11 17:02 GMT-03:00 Gianluigi : > > > +1 ? > > I also use the version of Gambas compiled from sources without any > > problems? > > Regards > > Gianluigi > > > > > > 2017-06-11 19:04 GMT+02:00 Tobias Boege : > > > > > On Sun, 11 Jun 2017, Fernando Cabral wrote: > > > > Tobi > > > > > > > > Excuse both my ignorance and poor communication ability. I prefer > using > > > the > > > > latest stable version, which I expect be the case when I resort to > the > > > PPA > > > > I am presently using. Now, I was not aware that those revisions are > > still > > > > considered unstable. So, I expected (wrongly, I see) that they would > be > > > > incorporated into the stable version. > > > > > > > > So, I will stay with the stable version and wait until the changes > are > > > made > > > > available for general use. Meanwhile, I'll keep using the workaround > > for > > > > the keyboard locking issue. > > > > > > > > > > Ok, but just a quick remark. "Unstable" is an unclear term. I, for one, > > > always run an unstable version of Gambas (compiled from source) and > > usually > > > have no problems. But once in a while it happens that something is > broken > > > in the development version because of a change that was not fully > thought > > > through; or you install a revision in the middle of someone making a > > bunch > > > of commits, before he is done with all his changes, and Gambas doesn't > > even > > > compile completely. > > > > > > If you want to test a bug fix (or go on bug hunt yourself), you have to > > use > > > the unstable version, because the stable version is supposed(TM) to not > > > have > > > bugs but to have confirmed bug fixes. Unstable usually isn't as bad as > it > > > sounds. > > > > > > 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 > > > > > > -- > 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 bagonergi at ...626... Mon Jun 12 10:39:46 2017 From: bagonergi at ...626... (Gianluigi) Date: Mon, 12 Jun 2017 10:39:46 +0200 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: <20170611143300.GF575@...3600...> <20170611170411.GH575@...3600...> Message-ID: Sorry I've forgotten a [/code] in command queue, this is the clean command: sudo apt install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev Regards Gianluigi 2017-06-12 10:28 GMT+02:00 Gianluigi : > Linux Mint 18.1 is based on Ubuntu 16.04 (Xenial) the same version as > Ubuntu I have. > > If you want to try installing the latest Gambas Trunk, below, I list the > steps I've made. > > Of course, as a first step, you must remove from your Mint any trace of > Gambas repository, for example: > > To uninstall the stable repository: > sudo add-apt-repository -r ppa:gambas-team/gambas3 > To uninstall the trunk (unstable) repository: > sudo add-apt-repository -r ppa:gambas-team/gambas-daily > Gambas real with all the libraries etc .: > sudo apt-get --purge remove gambas3 > sudo apt-get autoremove gambas3 > > At this point you can check that you have actually cleaned Ubuntu from the > old Gambas by giving these commands, always from the terminal: > > sudo updatedb > locate gambas* > If you find something copied and always deleted with: > > sudo apt-get ?purge remove > > > First you need to download the libraries: > > sudo apt update > > sudo apt install build-essential g++ automake autoconf libtool libbz2-dev > libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 > libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev > libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev > libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev > libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev > libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev[/code] > > > Now you can start by compiling the TRUNK version from SVN. > NOTE: You will get two log files on our Desktop (look if your path is > Desktop or Escritorio): > > sudo apt install subversion > > svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk > > cd trunk > > ~/trunk$ ( ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C ) > > ~/Desktop/R_conf-Trunk.log 2>&1 > > Check the R_conf-Trunk.log log file on the your desktop (last line of the > file) > If it's ok, go ahead, if you miss jit or have other problems posted here > the log file. > > ~/trunk$ ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk.log > 2>&1 > > Regards > > Gianluigi > > 2017-06-12 0:54 GMT+02:00 Fernando Cabral : > >> Gianluigi and Tobi >> >> I tried to compile, then I found some modules would be disabled (a long >> list of them). Reading the INSTALL instruction I found that in order to >> compile for Mint (Ubuntu) I would have to manually define a lot of things >> specific to that environment. I gave up because I do not have the time or >> knowledge to do what is required (It is not that I am lazy; it is because >> time has been quite scarce. >> >> Maybe I should try the unstable version... >> >> Regards >> >> >> - fernando >> >> >> 2017-06-11 17:02 GMT-03:00 Gianluigi : >> >> > +1 ? >> > I also use the version of Gambas compiled from sources without any >> > problems? >> > Regards >> > Gianluigi >> > >> > >> > 2017-06-11 19:04 GMT+02:00 Tobias Boege : >> > >> > > On Sun, 11 Jun 2017, Fernando Cabral wrote: >> > > > Tobi >> > > > >> > > > Excuse both my ignorance and poor communication ability. I prefer >> using >> > > the >> > > > latest stable version, which I expect be the case when I resort to >> the >> > > PPA >> > > > I am presently using. Now, I was not aware that those revisions are >> > still >> > > > considered unstable. So, I expected (wrongly, I see) that they >> would be >> > > > incorporated into the stable version. >> > > > >> > > > So, I will stay with the stable version and wait until the changes >> are >> > > made >> > > > available for general use. Meanwhile, I'll keep using the workaround >> > for >> > > > the keyboard locking issue. >> > > > >> > > >> > > Ok, but just a quick remark. "Unstable" is an unclear term. I, for >> one, >> > > always run an unstable version of Gambas (compiled from source) and >> > usually >> > > have no problems. But once in a while it happens that something is >> broken >> > > in the development version because of a change that was not fully >> thought >> > > through; or you install a revision in the middle of someone making a >> > bunch >> > > of commits, before he is done with all his changes, and Gambas doesn't >> > even >> > > compile completely. >> > > >> > > If you want to test a bug fix (or go on bug hunt yourself), you have >> to >> > use >> > > the unstable version, because the stable version is supposed(TM) to >> not >> > > have >> > > bugs but to have confirmed bug fixes. Unstable usually isn't as bad >> as it >> > > sounds. >> > > >> > > 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 >> > >> >> >> >> -- >> 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 rwe-sse at ...3629... Mon Jun 12 10:54:35 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Mon, 12 Jun 2017 10:54:35 +0200 Subject: [Gambas-user] OT: Is this junk or really a sourforge mail? In-Reply-To: <20170612071307.GA584@...3600...> References: <593E3434.4020607@...3629...> <20170612071307.GA584@...3600...> Message-ID: <593E56CB.4030304@...3629...> Am 12.06.2017 09:13, schrieb Tobias Boege: > On Mon, 12 Jun 2017, Rolf-Werner Eilert wrote: >> This morning, I got a mail asking for confirmation of my mailing list >> accounts with sourceforge. >> >> They have never ever done this before, so I am somewhat sceptical if this >> might be just a junk mail and I will start receiving tons of spams over that >> account. >> > > It seems to have been announced here: https://sourceforge.net/blog/sourceforge-project-e-mail-policy-update/ > Oh, I see, thank you for the link! Regards Rolf From rwe-sse at ...3629... Mon Jun 12 10:55:08 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Mon, 12 Jun 2017 10:55:08 +0200 Subject: [Gambas-user] OT: Is this junk or really a sourforge mail? In-Reply-To: References: <593E3434.4020607@...3629...> <20170612071307.GA584@...3600...> Message-ID: <593E56EC.4020303@...3629...> Ok, thank you for the tip! Regards Rolf Am 12.06.2017 09:38, schrieb Gianluigi: > I replied that I only want Gambas's mail and that's enough. > > Regards > Gianluigi > > 2017-06-12 9:13 GMT+02:00 Tobias Boege : > >> On Mon, 12 Jun 2017, Rolf-Werner Eilert wrote: >>> This morning, I got a mail asking for confirmation of my mailing list >>> accounts with sourceforge. >>> >>> They have never ever done this before, so I am somewhat sceptical if this >>> might be just a junk mail and I will start receiving tons of spams over >> that >>> account. >>> >> >> It seems to have been announced here: https://sourceforge.net/blog/ >> sourceforge-project-e-mail-policy-update/ >> >> -- >> "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 bagonergi at ...626... Mon Jun 12 11:12:43 2017 From: bagonergi at ...626... (Gianluigi) Date: Mon, 12 Jun 2017 11:12:43 +0200 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: <20170611143300.GF575@...3600...> <20170611170411.GH575@...3600...> Message-ID: I found another mistake in my post I'm a distracted guy :-( The last command is: ~/trunk$ ( make && sudo make install ) > ~/Desktop/Make_Inst-Trunk.log 2>&1 or ~/trunk$ ( make && sudo make install ) > ~/Escritorio/Make_Inst-Trunk.log 2>&1 Regards Gianluigi 2017-06-12 10:39 GMT+02:00 Gianluigi : > Sorry I've forgotten a [/code] in command queue, this is the clean command: > > sudo apt install build-essential g++ automake autoconf libtool libbz2-dev > libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 > libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev > libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev > libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev > libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev > libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev > > Regards > Gianluigi > > 2017-06-12 10:28 GMT+02:00 Gianluigi : > >> Linux Mint 18.1 is based on Ubuntu 16.04 (Xenial) the same version as >> Ubuntu I have. >> >> If you want to try installing the latest Gambas Trunk, below, I list the >> steps I've made. >> >> Of course, as a first step, you must remove from your Mint any trace of >> Gambas repository, for example: >> >> To uninstall the stable repository: >> sudo add-apt-repository -r ppa:gambas-team/gambas3 >> To uninstall the trunk (unstable) repository: >> sudo add-apt-repository -r ppa:gambas-team/gambas-daily >> Gambas real with all the libraries etc .: >> sudo apt-get --purge remove gambas3 >> sudo apt-get autoremove gambas3 >> >> At this point you can check that you have actually cleaned Ubuntu from >> the old Gambas by giving these commands, always from the terminal: >> >> sudo updatedb >> locate gambas* >> If you find something copied and always deleted with: >> >> sudo apt-get ?purge remove >> >> >> First you need to download the libraries: >> >> sudo apt update >> >> sudo apt install build-essential g++ automake autoconf libtool libbz2-dev >> libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 >> libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev >> libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev >> libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev >> libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev >> libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev >> libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev >> libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev >> libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev >> libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev >> libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev >> libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev >> libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev >> libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev[/code] >> >> >> Now you can start by compiling the TRUNK version from SVN. >> NOTE: You will get two log files on our Desktop (look if your path is >> Desktop or Escritorio): >> >> sudo apt install subversion >> >> svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk >> >> cd trunk >> >> ~/trunk$ ( ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C ) > >> ~/Desktop/R_conf-Trunk.log 2>&1 >> >> Check the R_conf-Trunk.log log file on the your desktop (last line of the >> file) >> If it's ok, go ahead, if you miss jit or have other problems posted here >> the log file. >> >> ~/trunk$ ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk.log >> 2>&1 >> >> Regards >> >> Gianluigi >> >> 2017-06-12 0:54 GMT+02:00 Fernando Cabral : >> >>> Gianluigi and Tobi >>> >>> I tried to compile, then I found some modules would be disabled (a long >>> list of them). Reading the INSTALL instruction I found that in order to >>> compile for Mint (Ubuntu) I would have to manually define a lot of things >>> specific to that environment. I gave up because I do not have the time or >>> knowledge to do what is required (It is not that I am lazy; it is because >>> time has been quite scarce. >>> >>> Maybe I should try the unstable version... >>> >>> Regards >>> >>> >>> - fernando >>> >>> >>> 2017-06-11 17:02 GMT-03:00 Gianluigi : >>> >>> > +1 ? >>> > I also use the version of Gambas compiled from sources without any >>> > problems? >>> > Regards >>> > Gianluigi >>> > >>> > >>> > 2017-06-11 19:04 GMT+02:00 Tobias Boege : >>> > >>> > > On Sun, 11 Jun 2017, Fernando Cabral wrote: >>> > > > Tobi >>> > > > >>> > > > Excuse both my ignorance and poor communication ability. I prefer >>> using >>> > > the >>> > > > latest stable version, which I expect be the case when I resort to >>> the >>> > > PPA >>> > > > I am presently using. Now, I was not aware that those revisions are >>> > still >>> > > > considered unstable. So, I expected (wrongly, I see) that they >>> would be >>> > > > incorporated into the stable version. >>> > > > >>> > > > So, I will stay with the stable version and wait until the changes >>> are >>> > > made >>> > > > available for general use. Meanwhile, I'll keep using the >>> workaround >>> > for >>> > > > the keyboard locking issue. >>> > > > >>> > > >>> > > Ok, but just a quick remark. "Unstable" is an unclear term. I, for >>> one, >>> > > always run an unstable version of Gambas (compiled from source) and >>> > usually >>> > > have no problems. But once in a while it happens that something is >>> broken >>> > > in the development version because of a change that was not fully >>> thought >>> > > through; or you install a revision in the middle of someone making a >>> > bunch >>> > > of commits, before he is done with all his changes, and Gambas >>> doesn't >>> > even >>> > > compile completely. >>> > > >>> > > If you want to test a bug fix (or go on bug hunt yourself), you have >>> to >>> > use >>> > > the unstable version, because the stable version is supposed(TM) to >>> not >>> > > have >>> > > bugs but to have confirmed bug fixes. Unstable usually isn't as bad >>> as it >>> > > sounds. >>> > > >>> > > 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 >>> > >>> >>> >>> >>> -- >>> 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 bugtracker at ...3416... Mon Jun 12 15:37:25 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 12 Jun 2017 13:37:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- Activate and deactivate breakpoints without deleting them Type : Request Priority : Low Gambas version : 3.9 Product : Unknown Description ----------- In the breakpoints tab, create a button to enable / disable breakpoints, so that it is practical to do tests and checks without having to clear breakpoints. Greetings. 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 mckaygerhard at ...626... Mon Jun 12 16:20:49 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 12 Jun 2017 10:20:49 -0400 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: <20170611143300.GF575@...3600...> <20170611170411.GH575@...3600...> Message-ID: err gianluigi if the error resides in the configuration of OS or some updated bad applied all of your post are unuseless.. as you can see they retry that steps varuious times.. always same result the important note its that in virtual machines in same broken environment the gambas work perfectly so the hardware its not the problem, ... so the problem its on some change in the same system (due same system are in both virtual and broken env, and ironicale the virtual are inside the broken system) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-12 5:12 GMT-04:00 Gianluigi : > I found another mistake in my post > I'm a distracted guy :-( > > The last command is: > > ~/trunk$ ( make && sudo make install ) > ~/Desktop/Make_Inst-Trunk.log 2>&1 > > or > > ~/trunk$ ( make && sudo make install ) > ~/Escritorio/Make_Inst-Trunk.log > 2>&1 > > Regards > Gianluigi > > 2017-06-12 10:39 GMT+02:00 Gianluigi : > > > Sorry I've forgotten a [/code] in command queue, this is the clean > command: > > > > sudo apt install build-essential g++ automake autoconf libtool libbz2-dev > > libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 > > libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev > > libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev > > libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev > > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > > libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > > libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev > > libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > > libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev > libqt5svg5-dev > > libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev > > > > Regards > > Gianluigi > > > > 2017-06-12 10:28 GMT+02:00 Gianluigi : > > > >> Linux Mint 18.1 is based on Ubuntu 16.04 (Xenial) the same version as > >> Ubuntu I have. > >> > >> If you want to try installing the latest Gambas Trunk, below, I list the > >> steps I've made. > >> > >> Of course, as a first step, you must remove from your Mint any trace of > >> Gambas repository, for example: > >> > >> To uninstall the stable repository: > >> sudo add-apt-repository -r ppa:gambas-team/gambas3 > >> To uninstall the trunk (unstable) repository: > >> sudo add-apt-repository -r ppa:gambas-team/gambas-daily > >> Gambas real with all the libraries etc .: > >> sudo apt-get --purge remove gambas3 > >> sudo apt-get autoremove gambas3 > >> > >> At this point you can check that you have actually cleaned Ubuntu from > >> the old Gambas by giving these commands, always from the terminal: > >> > >> sudo updatedb > >> locate gambas* > >> If you find something copied and always deleted with: > >> > >> sudo apt-get ?purge remove > >> > >> > >> First you need to download the libraries: > >> > >> sudo apt update > >> > >> sudo apt install build-essential g++ automake autoconf libtool > libbz2-dev > >> libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 > >> libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev > >> libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev > >> libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev > >> libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > >> libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > >> libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > >> libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > >> libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > >> libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > >> libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev > >> libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > >> libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev > libqt5svg5-dev > >> libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev[/code] > >> > >> > >> Now you can start by compiling the TRUNK version from SVN. > >> NOTE: You will get two log files on our Desktop (look if your path is > >> Desktop or Escritorio): > >> > >> sudo apt install subversion > >> > >> svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk > >> > >> cd trunk > >> > >> ~/trunk$ ( ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C ) > > > >> ~/Desktop/R_conf-Trunk.log 2>&1 > >> > >> Check the R_conf-Trunk.log log file on the your desktop (last line of > the > >> file) > >> If it's ok, go ahead, if you miss jit or have other problems posted here > >> the log file. > >> > >> ~/trunk$ ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk. > log > >> 2>&1 > >> > >> Regards > >> > >> Gianluigi > >> > >> 2017-06-12 0:54 GMT+02:00 Fernando Cabral >: > >> > >>> Gianluigi and Tobi > >>> > >>> I tried to compile, then I found some modules would be disabled (a > long > >>> list of them). Reading the INSTALL instruction I found that in order to > >>> compile for Mint (Ubuntu) I would have to manually define a lot of > things > >>> specific to that environment. I gave up because I do not have the time > or > >>> knowledge to do what is required (It is not that I am lazy; it is > because > >>> time has been quite scarce. > >>> > >>> Maybe I should try the unstable version... > >>> > >>> Regards > >>> > >>> > >>> - fernando > >>> > >>> > >>> 2017-06-11 17:02 GMT-03:00 Gianluigi : > >>> > >>> > +1 ? > >>> > I also use the version of Gambas compiled from sources without any > >>> > problems? > >>> > Regards > >>> > Gianluigi > >>> > > >>> > > >>> > 2017-06-11 19:04 GMT+02:00 Tobias Boege : > >>> > > >>> > > On Sun, 11 Jun 2017, Fernando Cabral wrote: > >>> > > > Tobi > >>> > > > > >>> > > > Excuse both my ignorance and poor communication ability. I prefer > >>> using > >>> > > the > >>> > > > latest stable version, which I expect be the case when I resort > to > >>> the > >>> > > PPA > >>> > > > I am presently using. Now, I was not aware that those revisions > are > >>> > still > >>> > > > considered unstable. So, I expected (wrongly, I see) that they > >>> would be > >>> > > > incorporated into the stable version. > >>> > > > > >>> > > > So, I will stay with the stable version and wait until the > changes > >>> are > >>> > > made > >>> > > > available for general use. Meanwhile, I'll keep using the > >>> workaround > >>> > for > >>> > > > the keyboard locking issue. > >>> > > > > >>> > > > >>> > > Ok, but just a quick remark. "Unstable" is an unclear term. I, for > >>> one, > >>> > > always run an unstable version of Gambas (compiled from source) and > >>> > usually > >>> > > have no problems. But once in a while it happens that something is > >>> broken > >>> > > in the development version because of a change that was not fully > >>> thought > >>> > > through; or you install a revision in the middle of someone making > a > >>> > bunch > >>> > > of commits, before he is done with all his changes, and Gambas > >>> doesn't > >>> > even > >>> > > compile completely. > >>> > > > >>> > > If you want to test a bug fix (or go on bug hunt yourself), you > have > >>> to > >>> > use > >>> > > the unstable version, because the stable version is supposed(TM) to > >>> not > >>> > > have > >>> > > bugs but to have confirmed bug fixes. Unstable usually isn't as bad > >>> as it > >>> > > sounds. > >>> > > > >>> > > 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 > >>> > > >>> > >>> > >>> > >>> -- > >>> 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 bagonergi at ...626... Mon Jun 12 17:08:40 2017 From: bagonergi at ...626... (Gianluigi) Date: Mon, 12 Jun 2017 17:08:40 +0200 Subject: [Gambas-user] How can I force linux mint to upgrade gambas3 to the last update? In-Reply-To: References: <20170611143300.GF575@...3600...> <20170611170411.GH575@...3600...> Message-ID: Here is the right word IF. IF he tries to compile and IF he post any mistakes (with log file), maybe Benoit, Fabien, Tobias or others can understand the problem. Regards Gianluigi P.S. The last two mails (one of Fernando and one of mine) do not appear here[0] [0] http://gambas.8142.n7.nabble.com/How-can-I-force-linux-mint-to-upgrade-gambas3-to-the-last-update-td59301.html 2017-06-12 16:20 GMT+02:00 PICCORO McKAY Lenz : > err gianluigi if the error resides in the configuration of OS or some > updated bad applied all of your post are unuseless.. as you can see they > retry that steps varuious times.. always same result > > the important note its that in virtual machines in same broken environment > the gambas work perfectly so the hardware its not the problem, ... so the > problem its on some change in the same system (due same system are in both > virtual and broken env, and ironicale the virtual are inside the broken > system) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-12 5:12 GMT-04:00 Gianluigi : > > > I found another mistake in my post > > I'm a distracted guy :-( > > > > The last command is: > > > > ~/trunk$ ( make && sudo make install ) > ~/Desktop/Make_Inst-Trunk.log > 2>&1 > > > > or > > > > ~/trunk$ ( make && sudo make install ) > ~/Escritorio/Make_Inst-Trunk. > log > > 2>&1 > > > > Regards > > Gianluigi > > > > 2017-06-12 10:39 GMT+02:00 Gianluigi : > > > > > Sorry I've forgotten a [/code] in command queue, this is the clean > > command: > > > > > > sudo apt install build-essential g++ automake autoconf libtool > libbz2-dev > > > libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 > > > libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev > > > libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev > > > libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev > > > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > > > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > > > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > > > libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > > > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > > > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > > > libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev > > > libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > > > libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev > > libqt5svg5-dev > > > libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev > > > > > > Regards > > > Gianluigi > > > > > > 2017-06-12 10:28 GMT+02:00 Gianluigi : > > > > > >> Linux Mint 18.1 is based on Ubuntu 16.04 (Xenial) the same version as > > >> Ubuntu I have. > > >> > > >> If you want to try installing the latest Gambas Trunk, below, I list > the > > >> steps I've made. > > >> > > >> Of course, as a first step, you must remove from your Mint any trace > of > > >> Gambas repository, for example: > > >> > > >> To uninstall the stable repository: > > >> sudo add-apt-repository -r ppa:gambas-team/gambas3 > > >> To uninstall the trunk (unstable) repository: > > >> sudo add-apt-repository -r ppa:gambas-team/gambas-daily > > >> Gambas real with all the libraries etc .: > > >> sudo apt-get --purge remove gambas3 > > >> sudo apt-get autoremove gambas3 > > >> > > >> At this point you can check that you have actually cleaned Ubuntu from > > >> the old Gambas by giving these commands, always from the terminal: > > >> > > >> sudo updatedb > > >> locate gambas* > > >> If you find something copied and always deleted with: > > >> > > >> sudo apt-get ?purge remove > > >> > > >> > > >> First you need to download the libraries: > > >> > > >> sudo apt update > > >> > > >> sudo apt install build-essential g++ automake autoconf libtool > > libbz2-dev > > >> libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.5 > > >> libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev > > >> libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev > > >> libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev > > >> libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > > >> libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > > >> libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > > >> libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > > >> libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > > >> libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > > >> libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-3.5-dev libalure-dev > > >> libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > > >> libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev > > libqt5svg5-dev > > >> libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev[/code] > > >> > > >> > > >> Now you can start by compiling the TRUNK version from SVN. > > >> NOTE: You will get two log files on our Desktop (look if your path is > > >> Desktop or Escritorio): > > >> > > >> sudo apt install subversion > > >> > > >> svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk > > >> > > >> cd trunk > > >> > > >> ~/trunk$ ( ./reconf-all && LLVM_CONFIG=llvm-config-3.5 ./configure -C > ) > > > > > >> ~/Desktop/R_conf-Trunk.log 2>&1 > > >> > > >> Check the R_conf-Trunk.log log file on the your desktop (last line of > > the > > >> file) > > >> If it's ok, go ahead, if you miss jit or have other problems posted > here > > >> the log file. > > >> > > >> ~/trunk$ ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk. > > log > > >> 2>&1 > > >> > > >> Regards > > >> > > >> Gianluigi > > >> > > >> 2017-06-12 0:54 GMT+02:00 Fernando Cabral < > fernandojosecabral at ...626... > > >: > > >> > > >>> Gianluigi and Tobi > > >>> > > >>> I tried to compile, then I found some modules would be disabled (a > > long > > >>> list of them). Reading the INSTALL instruction I found that in order > to > > >>> compile for Mint (Ubuntu) I would have to manually define a lot of > > things > > >>> specific to that environment. I gave up because I do not have the > time > > or > > >>> knowledge to do what is required (It is not that I am lazy; it is > > because > > >>> time has been quite scarce. > > >>> > > >>> Maybe I should try the unstable version... > > >>> > > >>> Regards > > >>> > > >>> > > >>> - fernando > > >>> > > >>> > > >>> 2017-06-11 17:02 GMT-03:00 Gianluigi : > > >>> > > >>> > +1 ? > > >>> > I also use the version of Gambas compiled from sources without any > > >>> > problems? > > >>> > Regards > > >>> > Gianluigi > > >>> > > > >>> > > > >>> > 2017-06-11 19:04 GMT+02:00 Tobias Boege : > > >>> > > > >>> > > On Sun, 11 Jun 2017, Fernando Cabral wrote: > > >>> > > > Tobi > > >>> > > > > > >>> > > > Excuse both my ignorance and poor communication ability. I > prefer > > >>> using > > >>> > > the > > >>> > > > latest stable version, which I expect be the case when I resort > > to > > >>> the > > >>> > > PPA > > >>> > > > I am presently using. Now, I was not aware that those revisions > > are > > >>> > still > > >>> > > > considered unstable. So, I expected (wrongly, I see) that they > > >>> would be > > >>> > > > incorporated into the stable version. > > >>> > > > > > >>> > > > So, I will stay with the stable version and wait until the > > changes > > >>> are > > >>> > > made > > >>> > > > available for general use. Meanwhile, I'll keep using the > > >>> workaround > > >>> > for > > >>> > > > the keyboard locking issue. > > >>> > > > > > >>> > > > > >>> > > Ok, but just a quick remark. "Unstable" is an unclear term. I, > for > > >>> one, > > >>> > > always run an unstable version of Gambas (compiled from source) > and > > >>> > usually > > >>> > > have no problems. But once in a while it happens that something > is > > >>> broken > > >>> > > in the development version because of a change that was not fully > > >>> thought > > >>> > > through; or you install a revision in the middle of someone > making > > a > > >>> > bunch > > >>> > > of commits, before he is done with all his changes, and Gambas > > >>> doesn't > > >>> > even > > >>> > > compile completely. > > >>> > > > > >>> > > If you want to test a bug fix (or go on bug hunt yourself), you > > have > > >>> to > > >>> > use > > >>> > > the unstable version, because the stable version is supposed(TM) > to > > >>> not > > >>> > > have > > >>> > > bugs but to have confirmed bug fixes. Unstable usually isn't as > bad > > >>> as it > > >>> > > sounds. > > >>> > > > > >>> > > 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 > > >>> > > > >>> > > >>> > > >>> > > >>> -- > > >>> 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 > From unaiseek at ...626... Wed Jun 14 07:12:47 2017 From: unaiseek at ...626... (Unaise EK) Date: Wed, 14 Jun 2017 10:42:47 +0530 Subject: [Gambas-user] gambas 3 and mysql Message-ID: hai, i worte these code for storing data into mysql database, all data stored into database except date_ad. 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 pls help -- M. Unaise. E.K 9895687604 Librarian, (BLISc, MLIS) JDT Islam Polytechnic College, Vellimadukunnu. From taboege at ...626... Wed Jun 14 12:29:23 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 14 Jun 2017 12:29:23 +0200 Subject: [Gambas-user] gambas 3 and mysql In-Reply-To: References: Message-ID: <20170614102923.GA576@...3600...> On Wed, 14 Jun 2017, Unaise EK wrote: > hai, > i worte these code for storing data into mysql database, all data stored > into database except date_ad. > > > 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 > > > pls help I think the error comes from the fact that you take DateBox1.Value and concatenate it to a string. This triggers an implicit converion of the Date value into a string -- but the way Gambas does this conversion is not compatible with how MySQL excepts dates to be formatted: $ gbx3 -e '"|" & Now() & "|"' |06/14/2017 14:16:29.291| Above is how Gambas serialises a date when concatenating it with a string (apparently it is independent of the locale, at least), but the MySQL documentation [1] tells you that the date separator should not be a "/" slash, as in Gambas, but a "-" hyphen (there may be other incompatibilities, but one is enough already for the insert to fail). How to fix this? Writing your own "INSERT INTO" statement is already a bad idea. Gambas' database drivers can write those statements correctly for you already. They also prevent SQL injection attacks, such as the one that is blatantly present in your code. Something like this would be preferable: Dim hInsert As Result hInsert = MODMain.MyConn.Create("name_tbl") With hInsert !adm = TextBox1.Text !name = TextBox2.Text !place = TextBox3.Text !date_ad = DateBox1.Value End With hInsert.Update() If you haven't seen this before, look up the corresponding documentation [2][3], or ask more specific questions. Regards, Tobi [1] https://dev.mysql.com/doc/refman/5.5/en/date-and-time-literals.html [2] http://gambaswiki.org/wiki/comp/gb.db/connection/create [3] http://gambaswiki.org/wiki/comp/gb.db/result/update -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From unaiseek at ...626... Wed Jun 14 12:58:51 2017 From: unaiseek at ...626... (Unaise EK) Date: Wed, 14 Jun 2017 16:28:51 +0530 Subject: [Gambas-user] gambas 3 and mysql In-Reply-To: References: <20170614102923.GA576@...3600...> Message-ID: Problem solved Public Sub Save_button_Click() try MODMain.MyConn.Exec( "INSERT INTO name_tbl (adm, name, place, date_ad) VALUES (&1,&2,&3,&4)",textbox1.text,textbox2,text,textbox4.text, datebox1.value) if not error then message("Data saved") endif On 14 Jun 2017 4:01 p.m., "Tobias Boege" wrote: On Wed, 14 Jun 2017, Unaise EK wrote: > hai, > i worte these code for storing data into mysql database, all data stored > into database except date_ad. > > > 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 > > > pls help I think the error comes from the fact that you take DateBox1.Value and concatenate it to a string. This triggers an implicit converion of the Date value into a string -- but the way Gambas does this conversion is not compatible with how MySQL excepts dates to be formatted: $ gbx3 -e '"|" & Now() & "|"' |06/14/2017 14:16:29.291| Above is how Gambas serialises a date when concatenating it with a string (apparently it is independent of the locale, at least), but the MySQL documentation [1] tells you that the date separator should not be a "/" slash, as in Gambas, but a "-" hyphen (there may be other incompatibilities, but one is enough already for the insert to fail). How to fix this? Writing your own "INSERT INTO" statement is already a bad idea. Gambas' database drivers can write those statements correctly for you already. They also prevent SQL injection attacks, such as the one that is blatantly present in your code. Something like this would be preferable: Dim hInsert As Result hInsert = MODMain.MyConn.Create("name_tbl") With hInsert !adm = TextBox1.Text !name = TextBox2.Text !place = TextBox3.Text !date_ad = DateBox1.Value End With hInsert.Update() If you haven't seen this before, look up the corresponding documentation [2][3], or ask more specific questions. Regards, Tobi [1] https://dev.mysql.com/doc/refman/5.5/en/date-and-time-literals.html [2] http://gambaswiki.org/wiki/comp/gb.db/connection/create [3] http://gambaswiki.org/wiki/comp/gb.db/result/update -- "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 admin at ...3661... Thu Jun 15 07:30:32 2017 From: admin at ...3661... (Admin) Date: Thu, 15 Jun 2017 12:30:32 +0700 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...> <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> Message-ID: 01.06.2017 16:25, Admin ?????: > 31.05.2017 19:50, Beno?t Minisini ?????: >> 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, >> > Oh. My. God. That's exactly what I needed. > > Actually, I saw that the library expetcs a variable in wchar_t format, > I had no idea what it was, so I googled "gambas wchar_t" and found > absolutely nothing. Then I wrote my first letter to this maillist. > > And now when you gave me this line of the code, the library works > exactly the way it should, doing everything I'm asking it for. > > Huge thank you! > > Dmitry > Greetings again. All your help was very important for me, I now have completed my cash register software to the point where it does everything my company needs. I must say Gambas is a great language, it's very easy to learn from scratch, I'm surprised how obvious everything is. But there is a lot of work for me left to do mostly in terms of managing wrong human actions. My software works good if the employee doesn't do any mistakes, but that's unrealistic, so there's a lot of things I want to control and check. And that's where I'm stuck. This library (which still calls itself a driver) theoretically is able to return a lot of values that I need, but I can't understand basic rules of how do we take output from a C-lib in Gambas. From http://gambaswiki.org/wiki/howto/extern I understood that I need to locate a space in memory and pass a pointer to a library so that it can write data into that place in ram, which I would then read and set free. So I have to declare a pointer, then Alloc(8) it, then pass it to my library and then read from it like it is a stream. Does this principle still work in current version of Gambas? What I don't understand is how I construct the code in my particular case. To make an interface to the library I declare external pointer like this: Extern CreateFptrInterface(ver As Integer) As Pointer Then I declare some pointers that I'll use with help of the interface I created: Extern put_DeviceEnable(p as Pointer, mode as Integer) Extern GetStatus(p as Pointer, StatRequest as String) Then I declare the pointer which will be that interface: Public kkmDrv as Pointer So then in sub I can do kkmDrv = CreateFptrInterface(12) ' this establishes the interface put_DeviceEnabled(kkmDrv, 1) ' this transfers the comand to the library through the interface. And it works great. But then If I want to get some data from the library, as I understand, I have to declare another pointer, allocate ram for it and pass my request. I don't understand how should I pass that pointer to GetStatus() while also passing my interface pointer to it, let alone reading data back. Totally confused. Any advice would be much appriciated. I don't desperately need to listen to my library, it's almost enough just to talk to it one way, but this ability could make my software much more reliable and self-controlled, so I really wish I could hear my library back. Best regards. Dmitry. From taboege at ...626... Thu Jun 15 11:19:14 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 15 Jun 2017 11:19: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...> <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> Message-ID: <20170615091914.GA576@...3600...> > All your help was very important for me, I now have completed my cash > register software to the point where it does everything my company needs. I > must say Gambas is a great language, it's very easy to learn from scratch, > I'm surprised how obvious everything is. But there is a lot of work for me > left to do mostly in terms of managing wrong human actions. My software > works good if the employee doesn't do any mistakes, but that's unrealistic, > so there's a lot of things I want to control and check. And that's where I'm > stuck. > > This library (which still calls itself a driver) theoretically is able to > return a lot of values that I need, but I can't understand basic rules of > how do we take output from a C-lib in Gambas. > > From http://gambaswiki.org/wiki/howto/extern I understood that I need to > locate a space in memory and pass a pointer to a library so that it can > write data into that place in ram, which I would then read and set free. > > So I have to declare a pointer, then Alloc(8) it, then pass it to my library > and then read from it like it is a stream. Does this principle still work in > current version of Gambas? > If you do Alloc(8), then you get 8 bytes of memory. You most likely *don't* want to read that like a stream, but use Integer@() or similar functions. > What I don't understand is how I construct the code in my particular case. > > To make an interface to the library I declare external pointer like this: > > Extern CreateFptrInterface(ver As Integer) As Pointer > > Then I declare some pointers that I'll use with help of the interface I > created: > > Extern put_DeviceEnable(p as Pointer, mode as Integer) > > Extern GetStatus(p as Pointer, StatRequest as String) > > Then I declare the pointer which will be that interface: > > Public kkmDrv as Pointer > > So then in sub I can do > > kkmDrv = CreateFptrInterface(12) ' this establishes the interface > > put_DeviceEnabled(kkmDrv, 1) ' this transfers the comand to the library > through the interface. > > And it works great. > > But then If I want to get some data from the library, as I understand, I > have to declare another pointer, allocate ram for it and pass my request. > > I don't understand how should I pass that pointer to GetStatus() while also > passing my interface pointer to it, let alone reading data back. Totally > confused. > This entirely depends on how the C functions in your library are declared. I don't know about your specific library but commonly the occurence of an error is indicated by an integer return code, e.g. this might be the signature of one of the functions in your library: int myfunction(void *interface, int argument) If the documentation says that the return value (int) of this function indicates an error, then you just need to get that return value back into your Gambas program, which you accomplish by declaring the function in Gambas as Extern myfunction(interface As Pointer, argument As Integer) As Integer (notice the trailing "As Integer"). Then you can use "myfunction" in your Gambas code like any other function and get and interpret its return value. So, if this convention for error reporting is used, it is much simpler to get information about errors, without using Alloc() and co. Your library may use a different convention which actually involves pointers, but I wouldn't know. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From admin at ...3661... Thu Jun 15 12:54:22 2017 From: admin at ...3661... (Admin) Date: Thu, 15 Jun 2017 17:54:22 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <20170615091914.GA576@...3600...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> <20170615091914.GA576@...3600...> Message-ID: <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@...3661...> 15.06.2017 16:19, Tobias Boege ?????: >> All your help was very important for me, I now have completed my cash >> register software to the point where it does everything my company needs. I >> must say Gambas is a great language, it's very easy to learn from scratch, >> I'm surprised how obvious everything is. But there is a lot of work for me >> left to do mostly in terms of managing wrong human actions. My software >> works good if the employee doesn't do any mistakes, but that's unrealistic, >> so there's a lot of things I want to control and check. And that's where I'm >> stuck. >> >> This library (which still calls itself a driver) theoretically is able to >> return a lot of values that I need, but I can't understand basic rules of >> how do we take output from a C-lib in Gambas. >> >> From http://gambaswiki.org/wiki/howto/extern I understood that I need to >> locate a space in memory and pass a pointer to a library so that it can >> write data into that place in ram, which I would then read and set free. >> >> So I have to declare a pointer, then Alloc(8) it, then pass it to my library >> and then read from it like it is a stream. Does this principle still work in >> current version of Gambas? >> > If you do Alloc(8), then you get 8 bytes of memory. You most likely *don't* > want to read that like a stream, but use Integer@() or similar functions. > >> What I don't understand is how I construct the code in my particular case. >> >> To make an interface to the library I declare external pointer like this: >> >> Extern CreateFptrInterface(ver As Integer) As Pointer >> >> Then I declare some pointers that I'll use with help of the interface I >> created: >> >> Extern put_DeviceEnable(p as Pointer, mode as Integer) >> >> Extern GetStatus(p as Pointer, StatRequest as String) >> >> Then I declare the pointer which will be that interface: >> >> Public kkmDrv as Pointer >> >> So then in sub I can do >> >> kkmDrv = CreateFptrInterface(12) ' this establishes the interface >> >> put_DeviceEnabled(kkmDrv, 1) ' this transfers the comand to the library >> through the interface. >> >> And it works great. >> >> But then If I want to get some data from the library, as I understand, I >> have to declare another pointer, allocate ram for it and pass my request. >> >> I don't understand how should I pass that pointer to GetStatus() while also >> passing my interface pointer to it, let alone reading data back. Totally >> confused. >> > This entirely depends on how the C functions in your library are declared. > I don't know about your specific library but commonly the occurence of an > error is indicated by an integer return code, e.g. this might be the > signature of one of the functions in your library: > > int myfunction(void *interface, int argument) > > If the documentation says that the return value (int) of this function > indicates an error, then you just need to get that return value back into > your Gambas program, which you accomplish by declaring the function in > Gambas as > > Extern myfunction(interface As Pointer, argument As Integer) As Integer > > (notice the trailing "As Integer"). Then you can use "myfunction" in your > Gambas code like any other function and get and interpret its return value. > > So, if this convention for error reporting is used, it is much simpler to > get information about errors, without using Alloc() and co. Your library > may use a different convention which actually involves pointers, but > I wouldn't know. > > Regards, > Tobi > I should've said it in the beginning. Ofcourse any function returns integer value of 0 as success or -1 as error, but that only indicates that function was successfully executed or not. So GetStatus() will always return 0 because it shurely ran, nothing can go wrong here. But that's not the result I want. GetStatus() actually gives back a string with the status I asked for. Not that I fully understand how it does that. I already gave links to the libfptr.so library itself (http://allunix.ru/back/atol.tar.gz) and it's header files (http://allunix.ru/back/atol-header.tar.gz) so that it's clearer, what I'm talking about, unfortunately I am absolute zero in C to figure things out myself. For example I can see that to get serial number of the device driven by that library i can use a function described like this: get_SerialNumber(void *ptr, wchar_t *bfr, int bfrSize); As far as I can tell what it does is it gets data needed and puts it into some buffer. The result of executing this function through put_SerialNumber(kkmDrv) will always be returned to me as 0. So to see what's in that buffer, I have to then invoke GetStatus(kkmDrv) describe in .h file like GetStatus(void *ptr); and the integer result of this operation will also always be 0, which means that GetStatus itself ran successfully, but I don't care about that, I want to see what it actually told me, not that if it told me it successfully or not. So that's the main confusion. If all this is too complicated and lamely explained then nevermind, I expect it to be so and I'm sorry, that's the best I can do. I'm just really confused that I recieve two answers, one boolean telling if function successfully invoked and one string, carrying the actual data I want. Best Regards, Dmitry. From admin at ...3661... Thu Jun 15 13:48:10 2017 From: admin at ...3661... (Admin) Date: Thu, 15 Jun 2017 18:48:10 +0700 Subject: [Gambas-user] Working with .so library In-Reply-To: <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@...3661...> References: <171f0ed8-9b01-9d35-bb86-30dbfef731b5@...3661...> <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> <20170615091914.GA576@...3600...> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@...3661...> Message-ID: 15.06.2017 17:54, Admin ?????: > 15.06.2017 16:19, Tobias Boege ?????: >>> All your help was very important for me, I now have completed my cash >>> register software to the point where it does everything my company >>> needs. I >>> must say Gambas is a great language, it's very easy to learn from >>> scratch, >>> I'm surprised how obvious everything is. But there is a lot of work >>> for me >>> left to do mostly in terms of managing wrong human actions. My software >>> works good if the employee doesn't do any mistakes, but that's >>> unrealistic, >>> so there's a lot of things I want to control and check. And that's >>> where I'm >>> stuck. >>> >>> This library (which still calls itself a driver) theoretically is >>> able to >>> return a lot of values that I need, but I can't understand basic >>> rules of >>> how do we take output from a C-lib in Gambas. >>> >>> From http://gambaswiki.org/wiki/howto/extern I understood that I >>> need to >>> locate a space in memory and pass a pointer to a library so that it can >>> write data into that place in ram, which I would then read and set >>> free. >>> >>> So I have to declare a pointer, then Alloc(8) it, then pass it to my >>> library >>> and then read from it like it is a stream. Does this principle still >>> work in >>> current version of Gambas? >>> >> If you do Alloc(8), then you get 8 bytes of memory. You most likely >> *don't* >> want to read that like a stream, but use Integer@() or similar >> functions. >> >>> What I don't understand is how I construct the code in my particular >>> case. >>> >>> To make an interface to the library I declare external pointer like >>> this: >>> >>> Extern CreateFptrInterface(ver As Integer) As Pointer >>> >>> Then I declare some pointers that I'll use with help of the interface I >>> created: >>> >>> Extern put_DeviceEnable(p as Pointer, mode as Integer) >>> >>> Extern GetStatus(p as Pointer, StatRequest as String) >>> >>> Then I declare the pointer which will be that interface: >>> >>> Public kkmDrv as Pointer >>> >>> So then in sub I can do >>> >>> kkmDrv = CreateFptrInterface(12) ' this establishes the interface >>> >>> put_DeviceEnabled(kkmDrv, 1) ' this transfers the comand to the library >>> through the interface. >>> >>> And it works great. >>> >>> But then If I want to get some data from the library, as I >>> understand, I >>> have to declare another pointer, allocate ram for it and pass my >>> request. >>> >>> I don't understand how should I pass that pointer to GetStatus() >>> while also >>> passing my interface pointer to it, let alone reading data back. >>> Totally >>> confused. >>> >> This entirely depends on how the C functions in your library are >> declared. >> I don't know about your specific library but commonly the occurence >> of an >> error is indicated by an integer return code, e.g. this might be the >> signature of one of the functions in your library: >> >> int myfunction(void *interface, int argument) >> >> If the documentation says that the return value (int) of this function >> indicates an error, then you just need to get that return value back >> into >> your Gambas program, which you accomplish by declaring the function in >> Gambas as >> >> Extern myfunction(interface As Pointer, argument As Integer) As >> Integer >> >> (notice the trailing "As Integer"). Then you can use "myfunction" in >> your >> Gambas code like any other function and get and interpret its return >> value. >> >> So, if this convention for error reporting is used, it is much >> simpler to >> get information about errors, without using Alloc() and co. Your library >> may use a different convention which actually involves pointers, but >> I wouldn't know. >> >> Regards, >> Tobi >> > I should've said it in the beginning. Ofcourse any function returns > integer value of 0 as success or -1 as error, but that only indicates > that function was successfully executed or not. So GetStatus() will > always return 0 because it shurely ran, nothing can go wrong here. But > that's not the result I want. GetStatus() actually gives back a string > with the status I asked for. Not that I fully understand how it does > that. I already gave links to the libfptr.so library itself > (http://allunix.ru/back/atol.tar.gz) and it's header files > (http://allunix.ru/back/atol-header.tar.gz) so that it's clearer, what > I'm talking about, unfortunately I am absolute zero in C to figure > things out myself. > > For example I can see that to get serial number of the device driven > by that library i can use a function described like this: > > get_SerialNumber(void *ptr, wchar_t *bfr, int bfrSize); > > As far as I can tell what it does is it gets data needed and puts it > into some buffer. The result of executing this function through > put_SerialNumber(kkmDrv) will always be returned to me as 0. > > So to see what's in that buffer, I have to then invoke > GetStatus(kkmDrv) describe in .h file like GetStatus(void *ptr); and > the integer result of this operation will also always be 0, which > means that GetStatus itself ran successfully, but I don't care about > that, I want to see what it actually told me, not that if it told me > it successfully or not. So that's the main confusion. If all this is > too complicated and lamely explained then nevermind, I expect it to be > so and I'm sorry, that's the best I can do. I'm just really confused > that I recieve two answers, one boolean telling if function > successfully invoked and one string, carrying the actual data I want. > > > Best Regards, > > Dmitry. > UPD: you know, I can be fundamentally wrong about all this library's functionality. Maybe it does not give me any data afterall, I'm beginning to think that this integer (or rather boolean) value is all it gives me back, and the "real" data is just written into it's log file. Which is sufficient to me, so, I guess, nevermind. Sorry about wasting your time. Best regards, Dmitry. From d4t4full at ...626... Thu Jun 15 14:13:21 2017 From: d4t4full at ...626... (ML) Date: Thu, 15 Jun 2017 09:13:21 -0300 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...> <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> <20170615091914.GA576@...3600...> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@...3661...> Message-ID: <0ec987df-e781-4abf-3bdc-dce4db5bb149@...626...> On 15/06/17 08:48, Admin wrote: > 15.06.2017 17:54, Admin ?????: >> 15.06.2017 16:19, Tobias Boege ?????: >>>> All your help was very important for me, I now have completed my cash >>>> register software to the point where it does everything my company >>>> needs. I >>>> must say Gambas is a great language, it's very easy to learn from >>>> scratch, >>>> I'm surprised how obvious everything is. But there is a lot of work >>>> for me >>>> left to do mostly in terms of managing wrong human actions. My >>>> software >>>> works good if the employee doesn't do any mistakes, but that's >>>> unrealistic, >>>> so there's a lot of things I want to control and check. And that's >>>> where I'm >>>> stuck. >>>> This library (which still calls itself a driver) theoretically is >>>> able to >>>> return a lot of values that I need, but I can't understand basic >>>> rules of >>>> how do we take output from a C-lib in Gambas. >>>> From http://gambaswiki.org/wiki/howto/extern I understood that I >>>> need to >>>> locate a space in memory and pass a pointer to a library so that it >>>> can >>>> write data into that place in ram, which I would then read and set >>>> free. >>>> So I have to declare a pointer, then Alloc(8) it, then pass it to >>>> my library >>>> and then read from it like it is a stream. Does this principle >>>> still work in >>>> current version of Gambas? >>> If you do Alloc(8), then you get 8 bytes of memory. You most likely >>> *don't* >>> want to read that like a stream, but use Integer@() or similar >>> functions. >>>> What I don't understand is how I construct the code in my >>>> particular case. >>>> To make an interface to the library I declare external pointer like >>>> this: >>>> Extern CreateFptrInterface(ver As Integer) As Pointer >>>> Then I declare some pointers that I'll use with help of the >>>> interface I >>>> created: >>>> Extern put_DeviceEnable(p as Pointer, mode as Integer) >>>> Extern GetStatus(p as Pointer, StatRequest as String) >>>> Then I declare the pointer which will be that interface: >>>> Public kkmDrv as Pointer >>>> So then in sub I can do >>>> kkmDrv = CreateFptrInterface(12) ' this establishes the interface >>>> put_DeviceEnabled(kkmDrv, 1) ' this transfers the comand to the >>>> library >>>> through the interface. >>>> And it works great. >>>> But then If I want to get some data from the library, as I >>>> understand, I >>>> have to declare another pointer, allocate ram for it and pass my >>>> request. >>>> I don't understand how should I pass that pointer to GetStatus() >>>> while also >>>> passing my interface pointer to it, let alone reading data back. >>>> Totally >>>> confused. >>>> >>> This entirely depends on how the C functions in your library are >>> declared. >>> I don't know about your specific library but commonly the occurence >>> of an >>> error is indicated by an integer return code, e.g. this might be the >>> signature of one of the functions in your library: >>> int myfunction(void *interface, int argument) >>> If the documentation says that the return value (int) of this function >>> indicates an error, then you just need to get that return value back >>> into >>> your Gambas program, which you accomplish by declaring the function in >>> Gambas as >>> Extern myfunction(interface As Pointer, argument As Integer) As >>> Integer >>> (notice the trailing "As Integer"). Then you can use "myfunction" in >>> your >>> Gambas code like any other function and get and interpret its return >>> value. >>> So, if this convention for error reporting is used, it is much >>> simpler to >>> get information about errors, without using Alloc() and co. Your >>> library >>> may use a different convention which actually involves pointers, but >>> I wouldn't know. >>> Regards, >>> Tobi >>> >> I should've said it in the beginning. Ofcourse any function returns >> integer value of 0 as success or -1 as error, but that only indicates >> that function was successfully executed or not. So GetStatus() will >> always return 0 because it shurely ran, nothing can go wrong here. >> But that's not the result I want. GetStatus() actually gives back a >> string with the status I asked for. Not that I fully understand how >> it does that. I already gave links to the libfptr.so library itself >> (http://allunix.ru/back/atol.tar.gz) and it's header files >> (http://allunix.ru/back/atol-header.tar.gz) so that it's clearer, >> what I'm talking about, unfortunately I am absolute zero in C to >> figure things out myself. >> For example I can see that to get serial number of the device driven >> by that library i can use a function described like this: >> get_SerialNumber(void *ptr, wchar_t *bfr, int bfrSize); >> As far as I can tell what it does is it gets data needed and puts it >> into some buffer. The result of executing this function through >> put_SerialNumber(kkmDrv) will always be returned to me as 0. >> So to see what's in that buffer, I have to then invoke >> GetStatus(kkmDrv) describe in .h file like GetStatus(void *ptr); and >> the integer result of this operation will also always be 0, which >> means that GetStatus itself ran successfully, but I don't care about >> that, I want to see what it actually told me, not that if it told me >> it successfully or not. So that's the main confusion. If all this is >> too complicated and lamely explained then nevermind, I expect it to >> be so and I'm sorry, that's the best I can do. I'm just really >> confused that I recieve two answers, one boolean telling if function >> successfully invoked and one string, carrying the actual data I want. >> Best Regards, >> Dmitry. > UPD: you know, I can be fundamentally wrong about all this library's > functionality. Maybe it does not give me any data afterall, I'm > beginning to think that this integer (or rather boolean) value is all > it gives me back, and the "real" data is just written into it's log > file. Which is sufficient to me, so, I guess, nevermind. Sorry about > wasting your time. > Best regards, > Dmitry. Dmitry, With a desription such as get_SerialNumber(void *ptr, wchar_t *bfr, int bfrSize); and having reviewed your communications, I would guess that: *ptr is a pointer to the interface (an input parameter), *buf is a pointer to a -possibly predefined- buffer that the function will fill with data (the serial number in this case, could call this an output parameter), and bfrSize can be sort of an input/output parameter. bfrSize can hold the size in wchar_t units in input and the function may alter it to reflect the actual string size returned in *buf. All this is just guesswork of course, nothing solid; the actual proper usage of the function should be not in the header files, but in the documentation. The way I would use this call is as follows: 1- Get an interface pointer, let's call it ptrItf. You know how. 2- Get an int or boolean for the function return value, let's call it retVal. 3- Get a Gambas string filled with CHR(0), and a pointer to its data (make the string big enough so that a serial number would fit, even in non-ANSI strings such as UTF-8, and add some slack just to be sure), let's call that pointer ptrBuf. 4- Get the lenght of the above buffer string, let's call that bufLen. 5- Call the function: retVal = get_SerialNumber(ptrItf, ptrBuf, bufLen - 1) 6- If retVal <> 0, increment (double) the string size and retry from 3. Not in a forever-loop, just once. 7- If retVal = 0 then the serial number should somehow be in the string. Maybe you have to convert between ANSI/UTF-8/etc., but it should be there. Please note that the above is, again, guesswork. Not sure of anything. HTH, zxMarce. From mckaygerhard at ...626... Thu Jun 15 14:26:57 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Jun 2017 08:26:57 -0400 Subject: [Gambas-user] static ? in variables Message-ID: "This keyword is used for declaring static variables, static methods and singleton classes." About singleton clases, that mean guarantee a unique instance of.. but if the class are not static and have one variable static, what that's means? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Thu Jun 15 14:41:31 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 15 Jun 2017 14:41:31 +0200 Subject: [Gambas-user] static ? in variables In-Reply-To: References: Message-ID: <20170615124131.GB576@...3600...> On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > "This keyword is used for declaring static variables, static methods and > singleton classes." > > About singleton clases, that mean guarantee a unique instance of.. > No, the word "singleton" here just means you get an automatic instance of your class, i.e. you can use the class name as if it were an object. You do *not* get a unique instance. You have to use the CREATE PRIVATE keyword for non-instantiable classes. > but if > the class are not static and have one variable static, what that's means? > Nothing extraordinary happens. You have a dynamic class with a static variable and you can use the class like an object (as well as create new objects of that class). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From fernandojosecabral at ...626... Thu Jun 15 14:54:59 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Thu, 15 Jun 2017 09:54:59 -0300 Subject: [Gambas-user] I ask for examples of regex functions usage Message-ID: So far I have confined myself to using Regex.Replace (). Nevertheless, for some applications I understand there are better ways to do things, like compiling the regular expression before searching or replacing. Also, I presume there are other conveniences available. The documentation I have found so far hints on these possibilities, but there are no full-fledged examples. I wonder if those of you who have been using regex more extensively can send me (or point me to) some code sample where the Regex family of methods and parameters are more intensively used. Best 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 mckaygerhard at ...626... Thu Jun 15 15:10:28 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Jun 2017 09:10:28 -0400 Subject: [Gambas-user] static ? in variables In-Reply-To: <20170615124131.GB576@...3600...> References: <20170615124131.GB576@...3600...> Message-ID: thanks in advance, but i have now more questions: 2017-06-15 8:41 GMT-04:00 Tobias Boege : > No, the word "singleton" here just means you get an automatic instance of > your class, i.e. you can use the class name as if it were an object. You > automatic instance? maybe its a translation problem, but i try to understant: wiki said here: http://gambaswiki.org/wiki/lang/createstatic in a tip: "allows you to implement the object-oriented programming singleton pattern ." and i understand by singleton pattern that a only one instance du i was a J2EE programer: "restricts the instantiation of a class to one object . This is useful when exactly one object is needed to coordinate actions across the system" so here are some things that i cannot understant and i think its something with translation or? > Nothing extraordinary happens. You have a dynamic class with a static > variable and you can use the class like an object (as well as create new > objects of that class). > for the variable: public statis var as string vs public var as strings doc wiki said "will be shared with all the class" seems that there's no diference based on your answer > > 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 bugtracker at ...3416... Thu Jun 15 15:15:03 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 15 Jun 2017 13:15:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: any progress with this bug? i do not see some work in svn From bugtracker at ...3416... Thu Jun 15 18:23:24 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 15 Jun 2017 16:23:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #3 by zxMarce: It is unlikely you will see any: If at least one method works, that kind of proves unixODBC and Gambas work with -at least- these combinations. Just in case, please enable DEBUG in the ODBC component and try again in the Gambas IDE, dumping the console trace here to see if it is of any help. This can be (let me stress CAN BE) a low-level driver problem; not all ODBC drivers implement all ODBC calls, and not all RDBMS out there may handle all ODBC commands. Regards, zxMarce. From bugtracker at ...3416... Thu Jun 15 19:05:55 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 15 Jun 2017 17:05:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #4 by PICCORO LENZ MCKAY: i'll made your suggestions, but please, pardom me, zxmarce, burt if are a low level driver manager problem why are working in console? with php are working too! there are other minor problems that php does not have and gambas yes.. next messager i'll provide the dump From taboege at ...626... Thu Jun 15 19:48:03 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 15 Jun 2017 19:48:03 +0200 Subject: [Gambas-user] static ? in variables In-Reply-To: References: <20170615124131.GB576@...3600...> Message-ID: <20170615174803.GC576@...3600...> On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > thanks in advance, but i have now more questions: > 2017-06-15 8:41 GMT-04:00 Tobias Boege : > > > No, the word "singleton" here just means you get an automatic instance of > > your class, i.e. you can use the class name as if it were an object. You > > > automatic instance? > > maybe its a translation problem, but i try to understant: wiki said here: > http://gambaswiki.org/wiki/lang/createstatic > in a tip: > "allows you to implement the object-oriented programming singleton pattern > ." > and i understand by singleton pattern that a only one instance du i was a > J2EE programer: > "restricts the instantiation > of a > class to > one object . > This is useful when exactly one object is needed to coordinate actions > across the system" > > so here are some things that i cannot understant and i think its something > with translation or? > It's not a translation error, it is that "singleton" has a different meaning in the paragraph you cite than it has in Gambas. Actually, the documentation should probably avoid the word "singleton", because it creates confusion with a more established notion of "singleton" (the one you cite). Now, let me tell you again what the documentation means when it says "singleton". When you put the CREATE STATIC keyword into the top of your class, then the class will be made "auto-creatable". This means that if your Gambas program uses the class name like an object, e.g. by accessing a non-static property or method over the *class* name (which doesn't make sense), then the interpreter will create an object out of this class (the so-called automatic instance -- because the interpreter creates it automatically for you in the background as soon as you need it) and uses this object in place of the class name. CREATE STATIC does *not* ensure that you can create *only* one instance of the class. This is not what "singleton" means in Gambas. You can create multiple objects out of a CREATE STATIC class. There are two famous examples of auto-creatable (CREATE STATIC) classes, which I can think of off the top of my head: (1) Settings (gb.settings), if you ever worked with it, is a class of which you can create as many objects as you like, right? But you can also use the class name "Settings" as if it were an object, e.g. Print Settings["Key"] Here it looks you access a key "Key" of the class Settings, but this doesn't make sense as the array accessors aren't static methods of the Settings class. In fact, Settings, in this case, behaves as if you created as Settings object behind the scenes which is linked to the default configuration file path $XDG_CONFIG_HOME &/ Application.Name & ".conf". This is precisely the automatic instance of the Settings class. (2) An even more prominent example: every Form class is auto-creatable. Have you ever wondered why, if you start your GUI project with startup form "FMain", a window pops up? You only have a Form class but you never created an object of this Form class, so where does this window come from? This also is the automatic instance of your class FMain, showing itself on startup. You can also write FMain.Center() to center your main window on the screen. The class name "FMain" does not refer to the class, but to the automatic instance, an *object* of class FMain that the interpreter created and that is used behind the scenes. This is the "singleton" behaviour that the documentation describes. > > > Nothing extraordinary happens. You have a dynamic class with a static > > variable and you can use the class like an object (as well as create new > > objects of that class). > > > for the variable: > > public statis var as string > > vs > > public var as strings > > doc wiki said "will be shared with all the class" seems that there's no > diference based on your answer > > I don't understand your objection at all. Maybe the above explanation clears things up for you? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Thu Jun 15 20:00:15 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Jun 2017 14:00:15 -0400 Subject: [Gambas-user] static ? in variables In-Reply-To: <20170615174803.GC576@...3600...> References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> Message-ID: hi tobias, *the documentation are totally wrong.. due the documentation makes a explicit citation to the concep in wikipedia*,that's why i ask so many about it now i propose to change by myselft that documentation to a proper paragraph that translators can understand without transliterate the meaning.. and in any case thanks to your explication now i can understand the right usage.. with this specific problem i can point the importance of a documentation, i'll practice some all of your said and then try to correct better the wiki doc Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-15 13:48 GMT-04:00 Tobias Boege : > On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > > thanks in advance, but i have now more questions: > > 2017-06-15 8:41 GMT-04:00 Tobias Boege : > > > > > No, the word "singleton" here just means you get an automatic instance > of > > > your class, i.e. you can use the class name as if it were an object. > You > > > > > automatic instance? > > > > maybe its a translation problem, but i try to understant: wiki said here: > > http://gambaswiki.org/wiki/lang/createstatic > > in a tip: > > "allows you to implement the object-oriented programming singleton > pattern > > ." > > and i understand by singleton pattern that a only one instance du i was a > > J2EE programer: > > "restricts the instantiation > > of > a > > class > to > > one object >. > > This is useful when exactly one object is needed to coordinate actions > > across the system" > > > > so here are some things that i cannot understant and i think its > something > > with translation or? > > > > It's not a translation error, it is that "singleton" has a different > meaning > in the paragraph you cite than it has in Gambas. Actually, the > documentation > should probably avoid the word "singleton", because it creates confusion > with > a more established notion of "singleton" (the one you cite). > > Now, let me tell you again what the documentation means when it says > "singleton". When you put the CREATE STATIC keyword into the top of your > class, then the class will be made "auto-creatable". This means that if > your Gambas program uses the class name like an object, e.g. by accessing > a non-static property or method over the *class* name (which doesn't make > sense), then the interpreter will create an object out of this class > (the so-called automatic instance -- because the interpreter creates it > automatically for you in the background as soon as you need it) and uses > this object in place of the class name. > > CREATE STATIC does *not* ensure that you can create *only* one instance > of the class. This is not what "singleton" means in Gambas. You can create > multiple objects out of a CREATE STATIC class. > > There are two famous examples of auto-creatable (CREATE STATIC) classes, > which I can think of off the top of my head: > > (1) Settings (gb.settings), if you ever worked with it, is a class of > which you can create as many objects as you like, right? But you can > also use the class name "Settings" as if it were an object, e.g. > > Print Settings["Key"] > > Here it looks you access a key "Key" of the class Settings, but this > doesn't make sense as the array accessors aren't static methods of > the > Settings class. In fact, Settings, in this case, behaves as if you > created as Settings object behind the scenes which is linked to the > default configuration file path $XDG_CONFIG_HOME &/ Application.Name > & ".conf". > This is precisely the automatic instance of the Settings class. > > (2) An even more prominent example: every Form class is auto-creatable. > Have you ever wondered why, if you start your GUI project with > startup > form "FMain", a window pops up? You only have a Form class but you > never created an object of this Form class, so where does this window > come from? This also is the automatic instance of your class FMain, > showing itself on startup. You can also write > > FMain.Center() > > to center your main window on the screen. The class name "FMain" > does not refer to the class, but to the automatic instance, an > *object* of class FMain that the interpreter created and that is > used behind the scenes. > > This is the "singleton" behaviour that the documentation describes. > > > > > > Nothing extraordinary happens. You have a dynamic class with a static > > > variable and you can use the class like an object (as well as create > new > > > objects of that class). > > > > > for the variable: > > > > public statis var as string > > > > vs > > > > public var as strings > > > > doc wiki said "will be shared with all the class" seems that there's no > > diference based on your answer > > > > > > I don't understand your objection at all. Maybe the above explanation > clears > things up for you? > > 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... Thu Jun 15 20:45:35 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 15 Jun 2017 20:45:35 +0200 Subject: [Gambas-user] Working with .so library In-Reply-To: References: <6b93b2d8-c6cd-a46f-b636-b85b25cc7bdd@...3661...> <3b1e5bfb-ebea-a54d-ed6e-d88e0e59c25b@...1...> <2794c0c8-e794-31bc-aff7-08a34b62e93e@...1...> <20170615091914.GA576@...3600...> <3ef3260f-7cfc-91e1-9af5-ddaa17b2e9f4@...3661...> Message-ID: <20170615184535.GD576@...3600...> > > > > What I don't understand is how I construct the code in my > > > > particular case. > > > > > > > > To make an interface to the library I declare external pointer > > > > like this: > > > > > > > > Extern CreateFptrInterface(ver As Integer) As Pointer > > > > > > > > Then I declare some pointers that I'll use with help of the interface I > > > > created: > > > > > > > > Extern put_DeviceEnable(p as Pointer, mode as Integer) > > > > > > > > Extern GetStatus(p as Pointer, StatRequest as String) > > > > > > > > Then I declare the pointer which will be that interface: > > > > > > > > Public kkmDrv as Pointer > > > > > > > > So then in sub I can do > > > > > > > > kkmDrv = CreateFptrInterface(12) ' this establishes the interface > > > > > > > > put_DeviceEnabled(kkmDrv, 1) ' this transfers the comand to the library > > > > through the interface. > > > > > > > > And it works great. > > > > > > > > But then If I want to get some data from the library, as I > > > > understand, I > > > > have to declare another pointer, allocate ram for it and pass my > > > > request. > > > > > > > > I don't understand how should I pass that pointer to GetStatus() > > > > while also > > > > passing my interface pointer to it, let alone reading data back. > > > > Totally > > > > confused. > > > > > > > This entirely depends on how the C functions in your library are > > > declared. > > > I don't know about your specific library but commonly the occurence > > > of an > > > error is indicated by an integer return code, e.g. this might be the > > > signature of one of the functions in your library: > > > > > > int myfunction(void *interface, int argument) > > > > > > If the documentation says that the return value (int) of this function > > > indicates an error, then you just need to get that return value back > > > into > > > your Gambas program, which you accomplish by declaring the function in > > > Gambas as > > > > > > Extern myfunction(interface As Pointer, argument As Integer) As > > > Integer > > > > > > (notice the trailing "As Integer"). Then you can use "myfunction" in > > > your > > > Gambas code like any other function and get and interpret its return > > > value. > > > > > > So, if this convention for error reporting is used, it is much > > > simpler to > > > get information about errors, without using Alloc() and co. Your library > > > may use a different convention which actually involves pointers, but > > > I wouldn't know. > > > > > > Regards, > > > Tobi > > > > > I should've said it in the beginning. Ofcourse any function returns > > integer value of 0 as success or -1 as error, but that only indicates > > that function was successfully executed or not. So GetStatus() will > > always return 0 because it shurely ran, nothing can go wrong here. But > > that's not the result I want. GetStatus() actually gives back a string > > with the status I asked for. Not that I fully understand how it does > > that. I already gave links to the libfptr.so library itself > > (http://allunix.ru/back/atol.tar.gz) and it's header files > > (http://allunix.ru/back/atol-header.tar.gz) so that it's clearer, what > > I'm talking about, unfortunately I am absolute zero in C to figure > > things out myself. > > > > For example I can see that to get serial number of the device driven by > > that library i can use a function described like this: > > > > get_SerialNumber(void *ptr, wchar_t *bfr, int bfrSize); > > > > As far as I can tell what it does is it gets data needed and puts it > > into some buffer. The result of executing this function through > > put_SerialNumber(kkmDrv) will always be returned to me as 0. > > > > So to see what's in that buffer, I have to then invoke GetStatus(kkmDrv) > > describe in .h file like GetStatus(void *ptr); and the integer result of > > this operation will also always be 0, which means that GetStatus itself > > ran successfully, but I don't care about that, I want to see what it > > actually told me, not that if it told me it successfully or not. So > > that's the main confusion. If all this is too complicated and lamely > > explained then nevermind, I expect it to be so and I'm sorry, that's the > > best I can do. I'm just really confused that I recieve two answers, one > > boolean telling if function successfully invoked and one string, > > carrying the actual data I want. > > > > > > Best Regards, > > > > Dmitry. > > > UPD: you know, I can be fundamentally wrong about all this library's > functionality. Maybe it does not give me any data afterall, I'm beginning to > think that this integer (or rather boolean) value is all it gives me back, > and the "real" data is just written into it's log file. Which is sufficient > to me, so, I guess, nevermind. Sorry about wasting your time. > Don't worry about wasting my time. If I didn't want to use it, I wouldn't have looked at your mail. Let's have a look at fptrexample.cpp in atol-header.tar.gz which was linked somewhere in this thread, e.g. these two instances where the programmer gets data back from the library: 54 int rc = EC_OK; 55 iface->get_ResultCode(&rc); ---------------------------------------------------------------------------- 59 QVector v(256); 60 int size = iface->get_ResultDescription(&v[0], v.size()); 61 if (size <= 0) 62 throw Exception("get_ResultDescription error"); 63 if (size > v.size()) 64 { 65 v.clear(); 66 v.resize(size + 1); 67 iface->get_ResultDescription(&v[0], v.size()); 68 } 69 resultDescription = QString::fromWCharArray(&v[0]); It's a little hard for me to transfer these into Gambas because I don't use the Extern functionality in Gambas very often and I don't have the library or the hardware to test my code -- but if you can accept a margin of error, let me try. What you have to do is look at how the C++ code uses the method of the interface object. (BTW, I strongly suggest you get acquainted with C/C++!) Gambas can't use the C++ interface, but luckily the library has a sane C interface, too, so you have to look into the ifptr_c.h header to find something that looks just like the get_ResultCode() method of the interface object. This one looks very promising (as it has the same name): 29 DTOSHARED_EXPORT int DTOSHARED_CCA get_ResultCode(void *ptr, int *resultCode); Its signature tells you that you have to pass as the first argument ptr (probably) your interface pointer (this makes a lot of sense, of course). The second parameter is a pointer to an integer. This is where the get_ResultCode function will store the result code (whatever that means). You can also see that the return value of the function is int. The return value from the function indicates if the get_ResultCode() call was successful or not and if it was successful you will find the result code you wanted written into the resultCode pointer that you passed. This function signature translates to: Extern get_ResultCode(ptr As Pointer, resultCode As Pointer) As Integer Assuming you already have a valid interface pointer ifptr you have to call this function like this: ' Initialise the variable with EC_OK, as in line 54 above (the ' atol-header.tar.gz does not contain a definition of that thing, ' so you have to find it somewhere else): Dim iCode As Integer = ??? get_ResultCode(ifptr, VarPtr(iCode)) Look up what VarPtr() does in the Gambas documentation. You can then just use the iCode variable in your Gambas program. It contains the result code you wanted to query from the library. Now the second part (lines 59--69) are a little more difficult, because you have to give a string buffer to presumably receive some description of something. Again find the C function corresponding to the C++ method: 30 DTOSHARED_EXPORT int DTOSHARED_CCA get_ResultDescription(void *ptr, wchar_t *bfr, int bfrSize); It expects an interface pointer, a buffer of wchat_t's and the size of that buffer (probably measured in wchar_t units and not in bytes). Now, Gambas doesn't have a datatype corresponding to wchar_t and, sadly, the size of a wchar_t is not standardised. You have to find out how big a wchar_t is on your system or assume it's less than 8 bytes or work around this issue some other way. I'll assume in the following that a wchar_t consists of 4 bytes, because that is how it is on my system. So you allocate a buffer that is enough to hold the description. The person who wrote the C++ code thought that 256 characters might be sufficient: Extern get_ResultDescription(ptr As Pointer, bfr As Pointer, bfrSize As Integer) As Integer ' Note that you should not do what zxMarce hinted at and get a Gambas ' string and use VarPtr on it to get a string buffer, because, as the ' VarPtr documentation tells you, Gambas strings are read-only. You ' should not pass a VarPtr to its contents to an external function that ' may modify the contents. (Although it would probably be okay in this ' case, but the reason lies in how Gambas manages strings internally, ' but this is getting too far.) Dim pBuf As Pointer Dim iSize As Integer ' Create and clear the buffer. 256 characters and each character is 4 bytes. pBuf = Alloc(String$(256 * 4, "\0")) iSize = get_ResultDescription(ifptr, pBuf, 256) Now just imitate what the C++ programmer did -- some error checking: If iSize <= 0 Then Error.Raise(("get_ResultDescription error")) If iSize > 256 Then ' the library needs more space than you provided ' Make the buffer larger and try again. ' I don't think the C++ makes much sense because it only increases ' the buffer length by 1 and tries again. There isn't even a loop. ' Anyway, figure this out yourself. Endif Finally we want a real Gambas string out of the buffer pBuf. The C++ programmer kind of has the same problem in line 69. He doesn't like wchar_t either and converts it to a QString. Get the string in pBuf as a Gambas string by using String@() and then convert it from wchar_t format to UTF-8. Then it's ready to be used in your program. Dim sDesc As String sDesc = Conv$(String@(pBuf), "WCHAR_T", "UTF-8") ' The documentation of String@() tells you not to Free() the pBuf you ' created the string from, until you are done dealing with the string. ' I _guess_ that since we Conv$'d the string, we can now Free the ' original pBuf, but you have to verify this! Free(pBuf) I hope this gets you started. You should really look into C/C++ though. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Thu Jun 15 21:02:05 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 15 Jun 2017 21:02:05 +0200 Subject: [Gambas-user] static ? in variables In-Reply-To: References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> Message-ID: <20170615190205.GE576@...3600...> On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > hi tobias, *the documentation are totally wrong.. due the documentation > makes a explicit citation to the concep in wikipedia*,that's why i ask so > many about it > > now i propose to change by myselft that documentation to a proper paragraph > that translators can understand without transliterate the meaning.. > > and in any case thanks to your explication now i can understand the right > usage.. > > with this specific problem i can point the importance of a documentation, > i'll practice some all of your said and then try to correct better the wiki > doc > Well, I read the wiki page again after you pointed this out and, technically speaking, the wiki is correct: This feature allows you to implement the object-oriented programming singleton pattern. Indeed CREATE STATIC allows you to implement the familiar singleton pattern, but CREATE STATIC *alone* does not suffice. To get the singleton you have to use CREATE STATIC CREATE PRIVATE together (CREATE PRIVATE is linked on the CREATE STATIC page and it disallows the creation of objects of a class, except for the automatic instance, because the interpreter can and will bypass the CREATE PRIVATE limit to fulfill the CREATE STATIC flag). Maybe this is all that's needed for the clarification. If you agree that CREATE STATIC + CREATE PRIVATE = singleton pattern, then I can change the wiki page, with slightly better English I believe. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Thu Jun 15 21:15:08 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Jun 2017 15:15:08 -0400 Subject: [Gambas-user] static ? in variables In-Reply-To: <20170615190205.GE576@...3600...> References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> Message-ID: hi tobias, please , change you the now modified wiki page.. i changed maybe before u read it! and also change the spanish too, http://gambaswiki.org/wiki/lang/createstatic?l=es please change you or revised the actual and made right corrections.. i think u visit the wiki after i made the changes.. i must added parto of your explanation due the wiki has confuse info.. i will monitoring the wiki after you made some changes to also update the spanish part Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-15 15:02 GMT-04:00 Tobias Boege : > On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > > hi tobias, *the documentation are totally wrong.. due the documentation > > makes a explicit citation to the concep in wikipedia*,that's why i ask so > > many about it > > > > now i propose to change by myselft that documentation to a proper > paragraph > > that translators can understand without transliterate the meaning.. > > > > and in any case thanks to your explication now i can understand the right > > usage.. > > > > with this specific problem i can point the importance of a documentation, > > i'll practice some all of your said and then try to correct better the > wiki > > doc > > > > Well, I read the wiki page again after you pointed this out and, > technically > speaking, the wiki is correct: > > This feature allows you to implement the object-oriented programming > singleton pattern. > > Indeed CREATE STATIC allows you to implement the familiar singleton > pattern, > but CREATE STATIC *alone* does not suffice. To get the singleton you have > to > use > > CREATE STATIC > CREATE PRIVATE > > together (CREATE PRIVATE is linked on the CREATE STATIC page and it > disallows the creation of objects of a class, except for the automatic > instance, because the interpreter can and will bypass the CREATE PRIVATE > limit to fulfill the CREATE STATIC flag). > > Maybe this is all that's needed for the clarification. If you agree that > CREATE STATIC + CREATE PRIVATE = singleton pattern, then I can change > the wiki page, with slightly better English I believe. > > 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 mckaygerhard at ...626... Thu Jun 15 22:07:11 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Jun 2017 16:07:11 -0400 Subject: [Gambas-user] static ? in variables In-Reply-To: References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> Message-ID: ok tobias, i reading and property translated to spanish.. thanks for your help.. (umm i thnik was too compresed the info.. but in any case ...) http://gambaswiki.org/wiki/lang/createstatic?l=es please for spanish use revised and compelte if need.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-15 15:15 GMT-04:00 PICCORO McKAY Lenz : > hi tobias, please , change you the now modified wiki page.. i changed > maybe before u read it! > > and also change the spanish too, http://gambaswiki.org/ > wiki/lang/createstatic?l=es > > please change you or revised the actual and made right corrections.. i > think u visit the wiki after i made the changes.. i must added parto of > your explanation due the wiki has confuse info.. > > i will monitoring the wiki after you made some changes to also update the > spanish part > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-15 15:02 GMT-04:00 Tobias Boege : > >> On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: >> > hi tobias, *the documentation are totally wrong.. due the documentation >> > makes a explicit citation to the concep in wikipedia*,that's why i ask >> so >> > many about it >> > >> > now i propose to change by myselft that documentation to a proper >> paragraph >> > that translators can understand without transliterate the meaning.. >> > >> > and in any case thanks to your explication now i can understand the >> right >> > usage.. >> > >> > with this specific problem i can point the importance of a >> documentation, >> > i'll practice some all of your said and then try to correct better the >> wiki >> > doc >> > >> >> Well, I read the wiki page again after you pointed this out and, >> technically >> speaking, the wiki is correct: >> >> This feature allows you to implement the object-oriented programming >> singleton pattern. >> >> Indeed CREATE STATIC allows you to implement the familiar singleton >> pattern, >> but CREATE STATIC *alone* does not suffice. To get the singleton you have >> to >> use >> >> CREATE STATIC >> CREATE PRIVATE >> >> together (CREATE PRIVATE is linked on the CREATE STATIC page and it >> disallows the creation of objects of a class, except for the automatic >> instance, because the interpreter can and will bypass the CREATE PRIVATE >> limit to fulfill the CREATE STATIC flag). >> >> Maybe this is all that's needed for the clarification. If you agree that >> CREATE STATIC + CREATE PRIVATE = singleton pattern, then I can change >> the wiki page, with slightly better English I believe. >> >> 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 mckaygerhard at ...626... Thu Jun 15 22:32:27 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 15 Jun 2017 16:32:27 -0400 Subject: [Gambas-user] static ? in variables In-Reply-To: References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> Message-ID: tobias..now making a library in the ide, the class that not have the "create static" now not permits instanciate the class i only put a variable static, rest of class not have create static Export Private dblocal As String = "file1.txt" Static Public status As Integer = 0 now the class "dbcontext" said cannot be instanciate, i do not have the CREATE PRIVATE declaration inside it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-15 16:07 GMT-04:00 PICCORO McKAY Lenz : > ok tobias, i reading and property translated to spanish.. thanks for your > help.. (umm i thnik was too compresed the info.. but in any case ...) > > http://gambaswiki.org/wiki/lang/createstatic?l=es > > please for spanish use revised and compelte if need.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-15 15:15 GMT-04:00 PICCORO McKAY Lenz : > >> hi tobias, please , change you the now modified wiki page.. i changed >> maybe before u read it! >> >> and also change the spanish too, http://gambaswiki.org/wik >> i/lang/createstatic?l=es >> >> please change you or revised the actual and made right corrections.. i >> think u visit the wiki after i made the changes.. i must added parto of >> your explanation due the wiki has confuse info.. >> >> i will monitoring the wiki after you made some changes to also update the >> spanish part >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2017-06-15 15:02 GMT-04:00 Tobias Boege : >> >>> On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: >>> > hi tobias, *the documentation are totally wrong.. due the documentation >>> > makes a explicit citation to the concep in wikipedia*,that's why i ask >>> so >>> > many about it >>> > >>> > now i propose to change by myselft that documentation to a proper >>> paragraph >>> > that translators can understand without transliterate the meaning.. >>> > >>> > and in any case thanks to your explication now i can understand the >>> right >>> > usage.. >>> > >>> > with this specific problem i can point the importance of a >>> documentation, >>> > i'll practice some all of your said and then try to correct better the >>> wiki >>> > doc >>> > >>> >>> Well, I read the wiki page again after you pointed this out and, >>> technically >>> speaking, the wiki is correct: >>> >>> This feature allows you to implement the object-oriented programming >>> singleton pattern. >>> >>> Indeed CREATE STATIC allows you to implement the familiar singleton >>> pattern, >>> but CREATE STATIC *alone* does not suffice. To get the singleton you >>> have to >>> use >>> >>> CREATE STATIC >>> CREATE PRIVATE >>> >>> together (CREATE PRIVATE is linked on the CREATE STATIC page and it >>> disallows the creation of objects of a class, except for the automatic >>> instance, because the interpreter can and will bypass the CREATE PRIVATE >>> limit to fulfill the CREATE STATIC flag). >>> >>> Maybe this is all that's needed for the clarification. If you agree that >>> CREATE STATIC + CREATE PRIVATE = singleton pattern, then I can change >>> the wiki page, with slightly better English I believe. >>> >>> 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... Fri Jun 16 12:38:50 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 16 Jun 2017 12:38:50 +0200 Subject: [Gambas-user] static ? in variables In-Reply-To: References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> Message-ID: <20170616103850.GA602@...3600...> On Thu, 15 Jun 2017, PICCORO McKAY Lenz wrote: > tobias..now making a library in the ide, the class that not have the > "create static" now not permits instanciate the class > > i only put a variable static, rest of class not have create static > > Export > > Private dblocal As String = "file1.txt" > Static Public status As Integer = 0 > > now the class "dbcontext" said cannot be instanciate, i do not have > the CREATE PRIVATE declaration inside it! > Can you give a full project? The attached project contains everything you said about your class, and it works. It is instantiable. Is the *error message* really that the class cannot be instantiated or is there another error which just prevents objects from being created, e.g. you use the "status" variable in the _new method? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: test-0.0.1.tar.gz Type: application/octet-stream Size: 11370 bytes Desc: not available URL: From adamnt42 at ...626... Fri Jun 16 12:55:30 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 16 Jun 2017 20:25:30 +0930 Subject: [Gambas-user] static ? in variables In-Reply-To: <20170616103850.GA602@...3600...> References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> <20170616103850.GA602@...3600...> Message-ID: <20170616202530.16e83d74625b8f7fd9c9929b@...626...> On Fri, 16 Jun 2017 12:38:50 +0200 Tobias Boege wrote: > Can you give a full project? The attached project contains everything > you said about your class, and it works. It is instantiable. Is the > *error message* really that the class cannot be instantiated or is > there another error which just prevents objects from being created, > e.g. you use the "status" variable in the _new method? <-----------? > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk Eh? You can use static variables in dynamic methods... or Constants would never work. (You cannot access dynamic variables from static methods.) b -- B Bruen From taboege at ...626... Fri Jun 16 13:03:27 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 16 Jun 2017 13:03:27 +0200 Subject: [Gambas-user] static ? in variables In-Reply-To: <20170616202530.16e83d74625b8f7fd9c9929b@...626...> References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> <20170616103850.GA602@...3600...> <20170616202530.16e83d74625b8f7fd9c9929b@...626...> Message-ID: <20170616110327.GD602@...3600...> On Fri, 16 Jun 2017, adamnt42 at ...626... wrote: > On Fri, 16 Jun 2017 12:38:50 +0200 > Tobias Boege wrote: > > > Can you give a full project? The attached project contains everything > > you said about your class, and it works. It is instantiable. Is the > > *error message* really that the class cannot be instantiated or is > > there another error which just prevents objects from being created, > > e.g. you use the "status" variable in the _new method? <-----------? > > > > Regards, > > Tobi > > > > -- > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Eh? You can use static variables in dynamic methods... or Constants would never work. > (You cannot access dynamic variables from static methods.) > Right :-/ (in my defense, this was the first thing I did after waking up) I should've just said: give a full project. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jun 16 13:43:48 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 16 Jun 2017 07:13:48 -0430 Subject: [Gambas-user] static ? in variables In-Reply-To: <20170616110327.GD602@...3600...> References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> <20170616103850.GA602@...3600...> <20170616202530.16e83d74625b8f7fd9c9929b@...626...> <20170616110327.GD602@...3600...> Message-ID: umm i tested your "test.tar.gz" in gambas 3.1.1 and does not raised that behaviour.. now i must go to my work and tested in gambas 3.9 due here was where the problem .. when the pup up help advise raises show that could be instanciated.. but i just tested your "test.tar.gz" project attached previously (was just like you do it) and its works i post feedback .. maybe its a bug in generation of docs.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 6:33 GMT-04:30 Tobias Boege : > On Fri, 16 Jun 2017, adamnt42 at ...626... wrote: > > On Fri, 16 Jun 2017 12:38:50 +0200 > > Tobias Boege wrote: > > > > > Can you give a full project? The attached project contains everything > > > you said about your class, and it works. It is instantiable. Is the > > > *error message* really that the class cannot be instantiated or is > > > there another error which just prevents objects from being created, > > > e.g. you use the "status" variable in the _new method? > <-----------? > > > > > > Regards, > > > Tobi > > > > > > -- > > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > > Eh? You can use static variables in dynamic methods... or Constants > would never work. > > (You cannot access dynamic variables from static methods.) > > > > Right :-/ (in my defense, this was the first thing I did after waking up) > > I should've just said: give a full project. > > -- > "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 bagonergi at ...626... Fri Jun 16 15:07:20 2017 From: bagonergi at ...626... (Gianluigi) Date: Fri, 16 Jun 2017 15:07:20 +0200 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result Message-ID: Please take a look at the attached test. >From DesktopWindow.Name I would expect the name of the Form Name property, and instead I get the Title. Do you think it should be reported as a bug? Regards Gianluigi -------------- next part -------------- A non-text attachment was scrubbed... Name: TestWindowName-0.0.1.tar.gz Type: application/x-gzip Size: 12310 bytes Desc: not available URL: From adamnt42 at ...626... Fri Jun 16 15:19:32 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 16 Jun 2017 22:49:32 +0930 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: References: Message-ID: <20170616224932.3839aa5b36019419918b7799@...626...> On Fri, 16 Jun 2017 15:07:20 +0200 Gianluigi wrote: > Please take a look at the attached test. > From DesktopWindow.Name I would expect the name of the Form Name property, > and instead I get the Title. > Do you think it should be reported as a bug? > > Regards > Gianluigi No, that is 100% correct under the Portland definition (and exactly what the Gambas help says.) b -- B Bruen From mckaygerhard at ...626... Fri Jun 16 16:32:49 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 16 Jun 2017 10:32:49 -0400 Subject: [Gambas-user] static ? in variables In-Reply-To: References: <20170615124131.GB576@...3600...> <20170615174803.GC576@...3600...> <20170615190205.GE576@...3600...> <20170616103850.GA602@...3600...> <20170616202530.16e83d74625b8f7fd9c9929b@...626...> <20170616110327.GD602@...3600...> Message-ID: tested was a cache doc problem maybe.. thanks ... i now understand clarelly about class using static and private.. but for variables: wiki was: "If the static keyword is specified, the same variable will be shared with every object of this class." well seems "Public var" and "Static public var" are equal and there's no difference? so where are the logic with public static? please iluminate me... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 7:43 GMT-04:00 PICCORO McKAY Lenz : > umm i tested your "test.tar.gz" in gambas 3.1.1 and does not raised that > behaviour.. now i must go to my work and tested in gambas 3.9 due here was > where the problem .. > > when the pup up help advise raises show that could be instanciated.. but i > just tested your "test.tar.gz" project attached previously (was just like > you do it) and its works > > i post feedback .. maybe its a bug in generation of docs.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-16 6:33 GMT-04:30 Tobias Boege : > >> On Fri, 16 Jun 2017, adamnt42 at ...626... wrote: >> > On Fri, 16 Jun 2017 12:38:50 +0200 >> > Tobias Boege wrote: >> > >> > > Can you give a full project? The attached project contains everything >> > > you said about your class, and it works. It is instantiable. Is the >> > > *error message* really that the class cannot be instantiated or is >> > > there another error which just prevents objects from being created, >> > > e.g. you use the "status" variable in the _new method? >> <-----------? >> > > >> > > Regards, >> > > Tobi >> > > >> > > -- >> > > "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> > >> > Eh? You can use static variables in dynamic methods... or Constants >> would never work. >> > (You cannot access dynamic variables from static methods.) >> > >> >> Right :-/ (in my defense, this was the first thing I did after waking up) >> >> I should've just said: give a full project. >> >> -- >> "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 bagonergi at ...626... Fri Jun 16 16:47:06 2017 From: bagonergi at ...626... (Gianluigi) Date: Fri, 16 Jun 2017 16:47:06 +0200 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: <20170616224932.3839aa5b36019419918b7799@...626...> References: <20170616224932.3839aa5b36019419918b7799@...626...> Message-ID: Thank you very much. So if I understand well, there is no difference between the two properties. Regards Gianluigi 2017-06-16 15:19 GMT+02:00 adamnt42 at ...626... : > On Fri, 16 Jun 2017 15:07:20 +0200 > Gianluigi wrote: > > > Please take a look at the attached test. > > From DesktopWindow.Name I would expect the name of the Form Name > property, > > and instead I get the Title. > > Do you think it should be reported as a bug? > > > > Regards > > Gianluigi > > No, that is 100% correct under the Portland definition (and exactly what > the Gambas help says.) > > b > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 16 17:26:39 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 16 Jun 2017 17:26:39 +0200 Subject: [Gambas-user] static ? in variables In-Reply-To: References: <20170615190205.GE576@...3600...> <20170616103850.GA602@...3600...> <20170616202530.16e83d74625b8f7fd9c9929b@...626...> <20170616110327.GD602@...3600...> Message-ID: <20170616152639.GE602@...3600...> On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > tested was a cache doc problem maybe.. thanks ... > > i now understand clarelly about class using static and private.. but for > variables: > wiki was: > "If the static keyword is specified, the same variable will be shared with > every object of this class." > > well seems "Public var" and "Static public var" are equal and there's no > difference? so where are the logic with public static? > > please iluminate me... > "Public" or "Private" control the visibility of a symbol, whereas "Static" (or leaving out "Static") controls the storage type of the variable. A static variable is stored in the *class* and shared by all objects. If you modify a static variable from one object, it will change for all objects. This is orthogonal to visibility. You can combine Static with Public or Private. Neither implies the other. You should be familiar with this concept if you know Java and PHP. It's about the same there, although I don't think Gambas has static local variables, which is another place where the word "static" is used in those languages. In case you are confused because "Static" appears in two places (the CREATE STATIC flag for classes and the STATIC keyword for variable/ property/method declaration), those two things aren't necessarily related. For example, CREATE PRIVATE has no relation to private variable declaration (where you also use PRIVATE) and no relation to the CREATE flag you specify with the OPEN instruction for files. It's just that those two words "CREATE" and "PRIVATE" already exist in Gambas and they together kind of convey the meaning of "CREATE PRIVATE", namely that you can't create objects of the class using NEW. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jun 16 17:40:36 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 16 Jun 2017 11:40:36 -0400 Subject: [Gambas-user] static ? in variables In-Reply-To: <20170616152639.GE602@...3600...> References: <20170615190205.GE576@...3600...> <20170616103850.GA602@...3600...> <20170616202530.16e83d74625b8f7fd9c9929b@...626...> <20170616110327.GD602@...3600...> <20170616152639.GE602@...3600...> Message-ID: 2017-06-16 11:26 GMT-04:00 Tobias Boege : > A static variable is stored in the *class* and shared by all objects. > If you modify a static variable from one object, it will change for all > objects. This is orthogonal to visibility. You can combine Static with > Public or Private. Neither implies the other. > thanks i must confirm that due some concepts in gambas are very different respect java or php... and confused too much ... > > You should be familiar with this concept if you know Java and PHP. > It's about the same there, although I don't think Gambas has static > local variables, which is another place where the word "static" is > used in those languages. > > In case you are confused because "Static" appears in two places (the > CREATE STATIC flag for classes and the STATIC keyword for variable/ > property/method declaration), those two things aren't necessarily > related. For example, CREATE PRIVATE has no relation to private variable > declaration (where you also use PRIVATE) and no relation to the CREATE > flag you specify with the OPEN instruction for files. It's just that > those two words "CREATE" and "PRIVATE" already exist in Gambas and they > together kind of convey the meaning of "CREATE PRIVATE", namely that > you can't create objects of the class using NEW. > thanks for clarify.. that information unless you think its very necesary.. due some differences.. i cited the wiki introduction that said Gambas its NO SAME as visual basic.. but its too similar. but not equal.. now i have a correct information. > > 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 mckaygerhard at ...626... Fri Jun 16 19:48:57 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 16 Jun 2017 13:48:57 -0400 Subject: [Gambas-user] sqlite gambas table info? Message-ID: its there some code to get BEFORE send the query the fields of the table? i mean, in the following code example i already know the column name, but i need firts detect column name to send amount of filters sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* in this case, the column "id" was previously knowed! but in my case i need to detect all the column names firts before send the filters/parameters criteria please any help? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From d4t4full at ...626... Fri Jun 16 21:04:12 2017 From: d4t4full at ...626... (ML) Date: Fri, 16 Jun 2017 16:04:12 -0300 Subject: [Gambas-user] sqlite gambas table info? In-Reply-To: References: Message-ID: On 16/06/17 14:48, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as > "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* > $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* > > > in this case, the column "id" was previously knowed! but in my case i need > to detect all the column names firts before send the filters/parameters > criteria > > please any help? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com Piccoro, Does this help? Dim fld as Field For Each fld In Result.Fields ... do whatever with field names Next zxMarce From mckaygerhard at ...626... Fri Jun 16 21:40:14 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 16 Jun 2017 15:40:14 -0400 Subject: [Gambas-user] sqlite gambas table info? In-Reply-To: References: Message-ID: 2017-06-16 15:04 GMT-04:00 ML : > Does this help? > > Dim fld as Field > For Each fld In Result.Fields > ... do whatever with field names > Next > err zxMarce.. that need a previous query... and i need the filed BEFORE made the query jajajaj quite strange but that its! > > zxMarce > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Fri Jun 16 21:47:31 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Fri, 16 Jun 2017 16:47:31 -0300 Subject: [Gambas-user] sqlite gambas table info? In-Reply-To: References: Message-ID: Maybe a previous query like: ? SELECT TOP 1 * FROM would help with the FOR EACH loop. Don't really know your case though. Regards, zxMarce On Jun 16, 2017, 16:40, at 16:40, PICCORO McKAY Lenz wrote: >2017-06-16 15:04 GMT-04:00 ML : > >> Does this help? >> >> Dim fld as Field >> For Each fld In Result.Fields >> ... do whatever with field names >> Next >> >err zxMarce.. that need a previous query... and i need the filed BEFORE >made the query jajajaj > >quite strange but that its! > > >> >> zxMarce >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, 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... Fri Jun 16 22:02:19 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 16 Jun 2017 16:02:19 -0400 Subject: [Gambas-user] sqlite gambas table info? In-Reply-To: References: Message-ID: yeah--- that i was done.. as you confirmed.. its the only solution due mysql has the DESCRIBE command, but sqlite need to search in master table... thanks Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 15:47 GMT-04:00 : > Maybe a previous query like: > > SELECT TOP 1 * FROM > > would help with the FOR EACH loop. Don't really know your case though. > > Regards, > zxMarce > > > On Jun 16, 2017, 16:40, at 16:40, PICCORO McKAY Lenz < > mckaygerhard at ...626...> wrote: > >2017-06-16 15:04 GMT-04:00 ML : > > > >> Does this help? > >> > >> Dim fld as Field > >> For Each fld In Result.Fields > >> ... do whatever with field names > >> Next > >> > >err zxMarce.. that need a previous query... and i need the filed BEFORE > >made the query jajajaj > > > >quite strange but that its! > > > > > >> > >> zxMarce > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, 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... Fri Jun 16 22:17:28 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 16 Jun 2017 22:17:28 +0200 Subject: [Gambas-user] sqlite gambas table info? In-Reply-To: References: Message-ID: <20170616201728.GF602@...3600...> On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > its there some code to get BEFORE send the query the fields of the table? > > i mean, in the following code example i already know the column name, but i > need firts detect column name to send amount of filters > > sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as > "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* > $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* > > > in this case, the column "id" was previously knowed! but in my case i need > to detect all the column names firts before send the filters/parameters > criteria > > please any help? > Look again at the properties of the Connection object. To get information about a table, the "Tables" property is a good start. If your Connection is called h you can list all tables, their fields and datatypes like this: ' h is an open connection to a database Dim t As Table, f As Field For Each t In h.Tables Print t.Name For Each f In t.Fields Print " "; f.Name;; f.Type Next Next Use t = h.Tables[""] in place of the outer loop if you only care about a specific table. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Fri Jun 16 22:33:15 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 16 Jun 2017 16:33:15 -0400 Subject: [Gambas-user] sqlite gambas table info? In-Reply-To: <20170616201728.GF602@...3600...> References: <20170616201728.GF602@...3600...> Message-ID: umm interesting, great tobias, thanks... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-16 16:17 GMT-04:00 Tobias Boege : > On Fri, 16 Jun 2017, PICCORO McKAY Lenz wrote: > > its there some code to get BEFORE send the query the fields of the table? > > > > i mean, in the following code example i already know the column name, > but i > > need firts detect column name to send amount of filters > > > > sCriteria *=* "id = &1"iParameter *=* *1012*$hConn*.*Begin' Same as > > "SELECT * FROM tblDEFAULT WHERE id = 1012"hResult *=* > > $hConn*.*Edit*(*"tblDEFAULT"*,* sCriteria*,* iParameter*)* > > > > > > in this case, the column "id" was previously knowed! but in my case i > need > > to detect all the column names firts before send the filters/parameters > > criteria > > > > please any help? > > > > Look again at the properties of the Connection object. To get information > about a table, the "Tables" property is a good start. If your Connection > is called h you can list all tables, their fields and datatypes like this: > > ' h is an open connection to a database > Dim t As Table, f As Field > > For Each t In h.Tables > Print t.Name > For Each f In t.Fields > Print " "; f.Name;; f.Type > Next > Next > > Use > > t = h.Tables[""] > > in place of the outer loop if you only care about a specific table. > > 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 adamnt42 at ...626... Fri Jun 16 22:40:29 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sat, 17 Jun 2017 06:10:29 +0930 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: References: <20170616224932.3839aa5b36019419918b7799@...626...> Message-ID: <20170617061029.dc18fd2e1796faf010570d14@...626...> On Fri, 16 Jun 2017 16:47:06 +0200 Gianluigi wrote: > Thank you very much. > So if I understand well, there is no difference between the two properties. > > Regards > Gianluigi > > 2017-06-16 15:19 GMT+02:00 adamnt42 at ...626... : > > > On Fri, 16 Jun 2017 15:07:20 +0200 > > Gianluigi wrote: > > > > > Please take a look at the attached test. > > > From DesktopWindow.Name I would expect the name of the Form Name > > property, > > > and instead I get the Title. > > > Do you think it should be reported as a bug? > > > > > > Regards > > > Gianluigi > > > > No, that is 100% correct under the Portland definition (and exactly what > > the Gambas help says.) > > > > b > > -- > > B Bruen > > Consider opening four spreadsheets at the same time in libreOffice - each of the window titles includes the name of the file as well as the application name. If it were just the application name how could you tell which window had which file. b -- B Bruen From hebodev at ...626... Sat Jun 17 00:44:28 2017 From: hebodev at ...626... (Herman Borsje) Date: Sat, 17 Jun 2017 00:44:28 +0200 Subject: [Gambas-user] sqlite3 component can't seem to handle very large numbers Message-ID: When I retrieve a result from a sqlite3 database which holds very large numbers in some fields, I get weird results. Up to 10 digits works okay, but larger numbers are incorrect. Any ideas as to what's going wrong? I am using Gambas 3.9.2 on Linux Mint 18.1 Tabledef: id INTEGER, name TEXT; Database records: id name 1234567890 test1 12345678901 test2 123456789010 test3 Public Sub Button1_Click() Dim rs As Result Dim con As New Connection con.Name = "test.db" con.Type = "sqlite3" con.Open rs = con.Exec("select * from test") For Each rs Debug Cstr(rs!id) & ": " & rs!name Next con.Close End Debug results: FMain.Button1_Click.14: 1234567890: test1 FMain.Button1_Click.14: 0: test2 FMain.Button1_Click.14: 6714656: test3 From taboege at ...626... Sat Jun 17 01:31:45 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 17 Jun 2017 01:31:45 +0200 Subject: [Gambas-user] sqlite3 component can't seem to handle very large numbers In-Reply-To: References: Message-ID: <20170616233145.GG602@...3600...> On Sat, 17 Jun 2017, Herman Borsje wrote: > When I retrieve a result from a sqlite3 database which holds very large > numbers in some fields, I get weird results. Up to 10 digits works okay, but > larger numbers are incorrect. Any ideas as to what's going wrong? > > I am using Gambas 3.9.2 on Linux Mint 18.1 > > Tabledef: id INTEGER, name TEXT; > > Database records: > > id name > > 1234567890 test1 > > 12345678901 test2 > > 123456789010 test3 > > > Public Sub Button1_Click() > > Dim rs As Result > Dim con As New Connection > con.Name = "test.db" > con.Type = "sqlite3" > con.Open > > rs = con.Exec("select * from test") > > For Each rs > Debug Cstr(rs!id) & ": " & rs!name > Next > > con.Close > > End > > Debug results: > > FMain.Button1_Click.14: 1234567890: test1 > FMain.Button1_Click.14: 0: test2 > FMain.Button1_Click.14: 6714656: test3 > The SQLite documentation tells me that SQLite3's INTEGER datatype can consist of 1, 2, 3, 4, 6 or 8 bytes, depending on the magnitude of the value to be stored, whereas Gambas' normal Integer type is always four bytes, or 32 bits. What you call "larger numbers" are most likely just numbers that cross the boundaries of 32 bits. At least the two numbers you listed above, where the retrieval appears to fail, have 34 and 37 bits respectively. In the attached script, I tried CLong() (Long is always 8 bytes in Gambas), but to no avail. It seems that the faulty conversion is already done in the database driver and has to be fixed there. From glancing at the source code, the mapping between SQLite and Gambas datatypes is: Gambas -> SQLite3 SQLite3 -> Gambas ------------+------------ ------------------+-------------- Integer | INT4 INTEGER, | \ Long | BIGINT INT, INT4, INT2, | | SMALLINT, | |- Integer MEDIUMINT | / BIGINT, INT8 | Long I would suggest to map INTEGER to Long instead of Integer, but Benoit, being the driver author, has to confirm. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- #!/usr/bin/gbs3 Use "gb.db" Public Sub Main() Dim h As New Connection Dim t As Table, r As Result h.Type = "sqlite3" h.Host = Null h.Name = Null h.Open() h.Exec("CREATE TABLE test(int INTEGER PRIMARY KEY)") r = h.Create("test") r!int = &H9876543210 ' 5 byte integer r.Update() r = h.Find("test") ' Notice that the "98" hex digits are lost although SQLite3's ' INTEGER type can store 8 bytes. Print Hex$(r!int), Hex$(CStr(r!int)), Hex$(CLong(r!int)) End From gambas at ...1... Sat Jun 17 01:49:45 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 17 Jun 2017 01:49:45 +0200 Subject: [Gambas-user] sqlite3 component can't seem to handle very large numbers In-Reply-To: <20170616233145.GG602@...3600...> References: <20170616233145.GG602@...3600...> Message-ID: <69f2ddc2-04bd-5e49-e6fc-c8f4ef510f81@...1...> Le 17/06/2017 ? 01:31, Tobias Boege a ?crit : > On Sat, 17 Jun 2017, Herman Borsje wrote: >> When I retrieve a result from a sqlite3 database which holds very large >> numbers in some fields, I get weird results. Up to 10 digits works okay, but >> larger numbers are incorrect. Any ideas as to what's going wrong? >> >> I am using Gambas 3.9.2 on Linux Mint 18.1 >> >> Tabledef: id INTEGER, name TEXT; >> >> Database records: >> >> id name >> >> 1234567890 test1 >> >> 12345678901 test2 >> >> 123456789010 test3 >> >> >> Public Sub Button1_Click() >> >> Dim rs As Result >> Dim con As New Connection >> con.Name = "test.db" >> con.Type = "sqlite3" >> con.Open >> >> rs = con.Exec("select * from test") >> >> For Each rs >> Debug Cstr(rs!id) & ": " & rs!name >> Next >> >> con.Close >> >> End >> >> Debug results: >> >> FMain.Button1_Click.14: 1234567890: test1 >> FMain.Button1_Click.14: 0: test2 >> FMain.Button1_Click.14: 6714656: test3 >> > > The SQLite documentation tells me that SQLite3's INTEGER datatype can > consist of 1, 2, 3, 4, 6 or 8 bytes, depending on the magnitude of the > value to be stored, whereas Gambas' normal Integer type is always four > bytes, or 32 bits. > > What you call "larger numbers" are most likely just numbers that cross > the boundaries of 32 bits. At least the two numbers you listed above, > where the retrieval appears to fail, have 34 and 37 bits respectively. > > In the attached script, I tried CLong() (Long is always 8 bytes in > Gambas), but to no avail. It seems that the faulty conversion is already > done in the database driver and has to be fixed there. From glancing > at the source code, the mapping between SQLite and Gambas datatypes is: > > Gambas -> SQLite3 SQLite3 -> Gambas > ------------+------------ ------------------+-------------- > Integer | INT4 INTEGER, | \ > Long | BIGINT INT, INT4, INT2, | | > SMALLINT, | |- Integer > MEDIUMINT | / > BIGINT, INT8 | Long > > I would suggest to map INTEGER to Long instead of Integer, but Benoit, > being the driver author, has to confirm. > > Regards, > Tobi > SQLite fields internally do not have datatypes. You can store any value in any field. So I chose INTEGER to represent 4 bytes integer, and BIGINT to represent 8 bytes integer, like in MySQL. It's just a convention, but a convention was needed. Regards, -- Beno?t Minisini From bugtracker at ...3416... Sat Jun 17 03:42:12 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 17 Jun 2017 01:42:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1120: segmentation fault Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1120&from=L21haW4- Sean CON reported a new bug. Summary ------- segmentation fault Type : Bug Priority : High Gambas version : 3.9 Product : Unknown Description ----------- Gambas in Manjaro Linux (see uname below) doesn't start from command line. Error message : Segmentation Fault (core dumped) uname -a output : Linux glassplanet 4.9.31-1-MANJARO #1 SMP PREEMPT Wed Jun 7 19:39:15 UTC 2017 x86_64 GNU/Linux whereis gambas3 output: gambas3: /usr/bin/gambas3 /usr/bin/gambas3.gambas /usr/lib/gambas3 /usr/share/gambas3 package information: [monsoon at ...3666... ~]$ sudo pacman -Qi gambas3-devel Name : gambas3-devel Version : 3.9.2-4 Beschreibung : Development environment Architektur : x86_64 URL : http://gambas.sourceforge.net/ Lizenzen : GPL2 Gruppen : gambas3 Stellt bereit : Nichts H?ngt ab von : gambas3-runtime Optionale Abh?ngigkeiten : Nichts Ben?tigt von : gambas3-ide gambas3-script Optional f?r : Nichts In Konflikt mit : Nichts Ersetzt : Nichts Installationsgr??e : 312,00 KiB Packer : Evangelos Foutras Erstellt am : Do 27 Apr 2017 06:16:51 CEST Installiert am : Do 15 Jun 2017 11:38:15 CEST Installationsgrund : Ausdr?cklich installiert Installations-Skript : Nein Verifiziert durch : Signatur All files in these directories have +x permission I need to use sudo to start it. From bugtracker at ...3416... Sat Jun 17 03:47:02 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 17 Jun 2017 01:47:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1121: Tabstrip color. Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1121&from=L21haW4- Sean CON reported a new bug. Summary ------- Tabstrip color. Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- The tabstrip label foreground color has no effect. Steps to reproduce in Gambas-devel 3.9.2 : 1. Create a tabstrip control 2. Change the background color to black (see image) [optional] 3. Change the foreground color to white (see image) Problem Description: 1. The label of the strip is still black. It has no effect (also not when he program is executed) System information ------------------ uname -a : Linux glassplanet 4.9.31-1-MANJARO #1 SMP PREEMPT Wed Jun 7 19:39:15 UTC 2017 x86_64 GNU/Linux From bugtracker at ...3416... Sat Jun 17 03:47:59 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 17 Jun 2017 01:47:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1121: Tabstrip color. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1121&from=L21haW4- Sean CON added an attachment: Screenshot_20170617_034736.png From hebodev at ...626... Sat Jun 17 10:42:21 2017 From: hebodev at ...626... (Herman Borsje) Date: Sat, 17 Jun 2017 10:42:21 +0200 Subject: [Gambas-user] sqlite3 component can't seem to handle very large numbers In-Reply-To: <69f2ddc2-04bd-5e49-e6fc-c8f4ef510f81@...1...> References: <20170616233145.GG602@...3600...> <69f2ddc2-04bd-5e49-e6fc-c8f4ef510f81@...1...> Message-ID: <3189c146-0394-d2d1-5389-75f6a2f273da@...626...> Thanks Beno?t and Tobias! Problem solved by changing the data-type of the fields in Sqlite from INTEGER to BIGINT like so: - select * from {table} into {temptable} - create {newtable} (with BIGINT fields) - insert into {newtable} select * from {temptable} - drop {temptable} Regards, Herman Op 17-06-17 om 01:49 schreef Beno?t Minisini via Gambas-user: > Le 17/06/2017 ? 01:31, Tobias Boege a ?crit : >> On Sat, 17 Jun 2017, Herman Borsje wrote: >>> When I retrieve a result from a sqlite3 database which holds very large >>> numbers in some fields, I get weird results. Up to 10 digits works >>> okay, but >>> larger numbers are incorrect. Any ideas as to what's going wrong? >>> >>> I am using Gambas 3.9.2 on Linux Mint 18.1 >>> >>> Tabledef: id INTEGER, name TEXT; >>> >>> Database records: >>> >>> id name >>> >>> 1234567890 test1 >>> >>> 12345678901 test2 >>> >>> 123456789010 test3 >>> >>> >>> Public Sub Button1_Click() >>> >>> Dim rs As Result >>> Dim con As New Connection >>> con.Name = "test.db" >>> con.Type = "sqlite3" >>> con.Open >>> >>> rs = con.Exec("select * from test") >>> >>> For Each rs >>> Debug Cstr(rs!id) & ": " & rs!name >>> Next >>> >>> con.Close >>> >>> End >>> >>> Debug results: >>> >>> FMain.Button1_Click.14: 1234567890: test1 >>> FMain.Button1_Click.14: 0: test2 >>> FMain.Button1_Click.14: 6714656: test3 >>> >> >> The SQLite documentation tells me that SQLite3's INTEGER datatype can >> consist of 1, 2, 3, 4, 6 or 8 bytes, depending on the magnitude of the >> value to be stored, whereas Gambas' normal Integer type is always four >> bytes, or 32 bits. >> >> What you call "larger numbers" are most likely just numbers that cross >> the boundaries of 32 bits. At least the two numbers you listed above, >> where the retrieval appears to fail, have 34 and 37 bits respectively. >> >> In the attached script, I tried CLong() (Long is always 8 bytes in >> Gambas), but to no avail. It seems that the faulty conversion is already >> done in the database driver and has to be fixed there. From glancing >> at the source code, the mapping between SQLite and Gambas datatypes is: >> >> Gambas -> SQLite3 SQLite3 -> Gambas >> ------------+------------ ------------------+-------------- >> Integer | INT4 INTEGER, | \ >> Long | BIGINT INT, INT4, INT2, | | >> SMALLINT, | |- Integer >> MEDIUMINT | / >> BIGINT, INT8 | Long >> >> I would suggest to map INTEGER to Long instead of Integer, but Benoit, >> being the driver author, has to confirm. >> >> Regards, >> Tobi >> > > SQLite fields internally do not have datatypes. You can store any > value in any field. > > So I chose INTEGER to represent 4 bytes integer, and BIGINT to > represent 8 bytes integer, like in MySQL. > > It's just a convention, but a convention was needed. > > Regards, > From bagonergi at ...626... Sat Jun 17 12:19:53 2017 From: bagonergi at ...626... (Gianluigi) Date: Sat, 17 Jun 2017 12:19:53 +0200 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: <20170617061029.dc18fd2e1796faf010570d14@...626...> References: <20170616224932.3839aa5b36019419918b7799@...626...> <20170617061029.dc18fd2e1796faf010570d14@...626...> Message-ID: Sorry but I do not understand the difference; >From Gambas documentation on DesktopWindow.VisibleName (gb.desktop): Returns the window visible name, i.e. the window title as displayed by the window manager. The visible name may be different from the name, when two or more windows have the same name. Then I did three different applications with a window of the same name (FOO) I launched, and then I launched a fourth (Write) with this code. I do not know differences in output. Regards Gianluigi '---------------------------------------------------------- Public Sub Form_Open() Dim w As DesktopWindow For Each w In Desktop.Windows Print w.Name Next For Each w In Desktop.Windows Print w.VisibleName Next End Output with IDE: Scrivania FOO FMain.form - App-3 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! FOO FMain.form - App-2 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! FOO FMain.form - App-1 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! Scrivania FOO FMain.form - App-3 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! FOO FMain.form - App-2 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! FOO FMain.form - App-1 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! Output with Executable: Scrivania FOO FOO FOO FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! Scrivania FOO FOO FOO FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! Output without title: Scrivania Application one Application two Application three FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! Scrivania Application one Application two Application three FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! Output with Spreadsheet: Scrivania Spreadsheet-1.ods - LibreOffice Calc Spreadsheet-1.ods - LibreOffice Calc Spreadsheet-1.ods - LibreOffice Calc FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! Scrivania Spreadsheet-1.ods - LibreOffice Calc Spreadsheet-1.ods - LibreOffice Calc Spreadsheet-1.ods - LibreOffice Calc FMain.class - Write 0.0.1 - Gambas 3 - DEVELOPMENT VERSION, USE AT YOUR OWN RISK! '-------------------------------------------------------------------------------------------------------------------------------------------------- 2017-06-16 22:40 GMT+02:00 adamnt42 at ...626... : > On Fri, 16 Jun 2017 16:47:06 +0200 > Gianluigi wrote: > > > Thank you very much. > > So if I understand well, there is no difference between the two > properties. > > > > Regards > > Gianluigi > > > > 2017-06-16 15:19 GMT+02:00 adamnt42 at ...626... : > > > > > On Fri, 16 Jun 2017 15:07:20 +0200 > > > Gianluigi wrote: > > > > > > > Please take a look at the attached test. > > > > From DesktopWindow.Name I would expect the name of the Form Name > > > property, > > > > and instead I get the Title. > > > > Do you think it should be reported as a bug? > > > > > > > > Regards > > > > Gianluigi > > > > > > No, that is 100% correct under the Portland definition (and exactly > what > > > the Gambas help says.) > > > > > > b > > > -- > > > B Bruen > > > > > Consider opening four spreadsheets at the same time in libreOffice - each > of the window titles includes the name of the file as well as the > application name. If it were just the application name how could you tell > which window had which file. > > b > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 adamnt42 at ...626... Sat Jun 17 13:51:47 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Sat, 17 Jun 2017 21:21:47 +0930 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: References: <20170616224932.3839aa5b36019419918b7799@...626...> <20170617061029.dc18fd2e1796faf010570d14@...626...> Message-ID: <20170617212147.55446b5b8be6e74f64b75815@...626...> On Sat, 17 Jun 2017 12:19:53 +0200 Gianluigi wrote: > Sorry but I do not understand the difference; > From Gambas documentation on DesktopWindow.VisibleName (gb.desktop): > Returns the window visible name, i.e. the window title as displayed by the > window manager. > The visible name may be different from the name, when two or more windows > have the same name. > Ah! Now I see where your confusion lies... 1) DesktopWindow.Name : "i.e. its title as specified by the application that owns this window." 2) DesktopWindow.VisibleName : " i.e. the window title as displayed by the window manager." The difference is subtle and not easy to find an example for, but it does happen I can assure you. You understand how an application sets the Title of a window that it displays, OK? Hence you see the file name in the title for the windows in your output. This is the .Name property value. Now there are situations where the window manager itself will modify the title for some reason or other. I cannot think up an example but maybe you have seen somewhere a window title that looked something like "My Window - some info" and if you had two of these open the titles would be something like "My Window - some info:1" and "My Window - some info:2". These titles are set by the Window Manager, from the title supplied by the owning application and for its' own sweet reasons. In other words, it is not easy to "make this happen" as it depends on the window manager in use and its logic for re-titling specific windows. Now here is the reason for having the two properties. If you are searching for a specific window by it's expected title, i.e. the application set Title, then exact match searches will fail when the window manager has altered it. So then we use DesktopWindow.Name ... and get a list if there are more than one. But if we want to act on a specific, re-titled, window then Desktop.Window.VisibleName can be used. I have said this before, and no doubt will say it again. Above my desk is a sign that says : "Read EVERY word in the Gambas help page". I put it up there nearly 10 years ago when I was learning Gambas for the first time and even today I occasionally have to refer to it when I get frustrated by something that I don't understand about Gambas. I recommend you get a similar sign. :-) regards b -- B Bruen From bagonergi at ...626... Sat Jun 17 14:33:25 2017 From: bagonergi at ...626... (Gianluigi) Date: Sat, 17 Jun 2017 14:33:25 +0200 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: <20170617212147.55446b5b8be6e74f64b75815@...626...> References: <20170616224932.3839aa5b36019419918b7799@...626...> <20170617061029.dc18fd2e1796faf010570d14@...626...> <20170617212147.55446b5b8be6e74f64b75815@...626...> Message-ID: 2017-06-17 13:51 GMT+02:00 adamnt42 at ...626... : > > Ah! Now I see where your confusion lies... > 1) DesktopWindow.Name : "i.e. its title as specified by the application > that owns this window." > 2) DesktopWindow.VisibleName : " i.e. the window title as displayed by the > window manager." > > The difference is subtle and not easy to find an example for, but it does > happen I can assure you. > OK, I'll take your word for it. You understand how an application sets the Title of a window that it > displays, OK? Hence you see the file name in the title for the windows in > your output. This is the .Name property value. > Now there are situations where the window manager itself will modify the > title for some reason or other. I cannot think up an example but maybe you > have seen somewhere a window title that looked something like "My Window - > some info" and if you had two of these open the titles would be something > like "My Window - some info:1" and "My Window - some info:2". These titles > are set by the Window Manager, from the title supplied by the owning > application and for its' own sweet reasons. In other words, it is not easy > to "make this happen" as it depends on the window manager in use and its > logic for re-titling specific windows. > > Now here is the reason for having the two properties. If you are > searching for a specific window by it's expected title, i.e. the > application set Title, then exact match searches will fail when the window > manager has altered it. So then we use DesktopWindow.Name ... and get a > list if there are more than one. But if we want to act on a specific, > re-titled, window then Desktop.Window.VisibleName can be used. > > I have said this before, and no doubt will say it again. > Above my desk is a sign that says : "Read EVERY word in the Gambas help > page". I put it up there nearly 10 years ago when I was learning Gambas > for the first time and even today I occasionally have to refer to it when I > get frustrated by something that I don't understand about Gambas. I > recommend you get a similar sign. :-) > That's good advice, I'll keep that in mind. ? Thank you very much for the exhaustive explanations. Regards Gianluigi From taboege at ...626... Sat Jun 17 14:50:07 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 17 Jun 2017 14:50:07 +0200 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: References: <20170616224932.3839aa5b36019419918b7799@...626...> <20170617061029.dc18fd2e1796faf010570d14@...626...> <20170617212147.55446b5b8be6e74f64b75815@...626...> Message-ID: <20170617125007.GH602@...3600...> On Sat, 17 Jun 2017, Gianluigi wrote: > 2017-06-17 13:51 GMT+02:00 adamnt42 at ...626... : > > > > > Ah! Now I see where your confusion lies... > > 1) DesktopWindow.Name : "i.e. its title as specified by the application > > that owns this window." > > 2) DesktopWindow.VisibleName : " i.e. the window title as displayed by the > > window manager." > > > > The difference is subtle and not easy to find an example for, but it does > > happen I can assure you. > > > > OK, I'll take your word for it. > I can get something like this here easily by opening two konqueror windows and pointing them to the same directory (see screenshot). However, the properties of the DesktopWindow objects look like this: $ ./konqueror-windows.gbs3 Name: var - Konqueror VisibleName: var - Konqueror Name: var - Konqueror VisibleName: So, apparently this can happen, too. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: kwin-konqueror-visiblename.png Type: image/png Size: 4072 bytes Desc: not available URL: -------------- next part -------------- #!/usr/bin/gbs3 Use "gb.desktop" Public Sub Main() Dim w As DesktopWindow For Each w In Desktop.Windows If w.Name Not Like "*konqueror*" Then Continue Print "Name:";; w.Name, "VisibleName:";; w.VisibleName Next End From fernandojosecabral at ...626... Sat Jun 17 19:38:49 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 17 Jun 2017 14:38:49 -0300 Subject: [Gambas-user] Help needed from regexp gurus Message-ID: Still beating my head against the wall due to my lack of knowledge about the PCRE methods and properties... Because of this, I have progressed not only very slowly but also -- I fell -- in a very inelegant way. So perhaps you guys who are more acquainted with PCRE might be able to hint me on a better solution. I want to search a long string that can contain a sentence, a paragraph or even a full text. I wanna find and isolate every word it contains. A word is defined as any sequence of alphabetic characters followed by a non-alphatetic character. The sample code bellow does work, but I don't feel it is as elegant and as fast as it could and should be. Especially the way I am traversing the string from the beginning to the end. It looks awkward and slow. There must be a more efficient way, like working only with offsets and lengths instead of copying the string again and again. Dim Alphabetics as string "abc...zyzABC...ZYZ" Dim re as RegExp Dim matches as String [] Dim RawText as String re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)", RegExp.utf8) RawText = "abc12345def ghi jklm mno p1" Do While RawText re.Exec(RawText) matches.add(re[1].text) RawText = String.Mid(RawText, String.Len(re.text) + 1) Loop For i = 0 To matches.Count - 1 Print matches[i] Next Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the tricks I have used are cumbersome (like advancing with string.mid() and resorting to re[1].text and re.text. -- 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 bagonergi at ...626... Sat Jun 17 20:05:24 2017 From: bagonergi at ...626... (Gianluigi) Date: Sat, 17 Jun 2017 20:05:24 +0200 Subject: [Gambas-user] DesktopWindow.Name; Unexpected result In-Reply-To: <20170617125007.GH602@...3600...> References: <20170616224932.3839aa5b36019419918b7799@...626...> <20170617061029.dc18fd2e1796faf010570d14@...626...> <20170617212147.55446b5b8be6e74f64b75815@...626...> <20170617125007.GH602@...3600...> Message-ID: Hi Tobias, I have Ubuntu with Unity but I trust in yours words :-) Regards Gianluigi 2017-06-17 14:50 GMT+02:00 Tobias Boege : > On Sat, 17 Jun 2017, Gianluigi wrote: > > 2017-06-17 13:51 GMT+02:00 adamnt42 at ...626... : > > > > > > > > Ah! Now I see where your confusion lies... > > > 1) DesktopWindow.Name : "i.e. its title as specified by the application > > > that owns this window." > > > 2) DesktopWindow.VisibleName : " i.e. the window title as displayed by > the > > > window manager." > > > > > > The difference is subtle and not easy to find an example for, but it > does > > > happen I can assure you. > > > > > > > OK, I'll take your word for it. > > > > I can get something like this here easily by opening two konqueror windows > and pointing them to the same directory (see screenshot). However, the > properties of the DesktopWindow objects look like this: > > $ ./konqueror-windows.gbs3 > Name: var - Konqueror VisibleName: var - Konqueror > Name: var - Konqueror VisibleName: > > So, apparently this can happen, too. > > 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... Sat Jun 17 23:06:22 2017 From: taboege at ...626... (Tobias Boege) Date: Sat, 17 Jun 2017 23:06:22 +0200 Subject: [Gambas-user] Help needed from regexp gurus In-Reply-To: References: Message-ID: <20170617210622.GI602@...3600...> On Sat, 17 Jun 2017, Fernando Cabral wrote: > Still beating my head against the wall due to my lack of knowledge about > the PCRE methods and properties... Because of this, I have progressed not > only very slowly but also -- I fell -- in a very inelegant way. So perhaps > you guys who are more acquainted with PCRE might be able to hint me on a > better solution. > > I want to search a long string that can contain a sentence, a paragraph or > even a full text. I wanna find and isolate every word it contains. A word > is defined as any sequence of alphabetic characters followed by a > non-alphatetic character. > The Mathematician in me can't resist to point this out: you hopefully wanted to define "word in a string" as "a *longest* sequence of alphabetic characters followed by a non-alphabetic character (or the end of the string)". Using your definition above, the words in "abc:" would be "c", "bc" and "abc", whereas you probably only wanted "abc" (the longest of those). > The sample code bellow does work, but I don't feel it is as elegant and as > fast as it could and should be. Especially the way I am traversing the > string from the beginning to the end. It looks awkward and slow. There must > be a more efficient way, like working only with offsets and lengths instead > of copying the string again and again. > You think worse of String.Mid() than it deserves, IMHO. Gambas strings are triples of a pointer to some data, a start index and a length, and the built-in string functions take care not to copy a string when it's not necessary. The plain Mid$() function (dealing with ASCII strings only) is implemented as a constant-time operation which simply takes your input string and adjusts the start index and length to give you the requested portion of the string. The string doesn't even have to be read, much less copied, to do this. Now, the String.Mid() function is somewhat more complicated, because UTF-8 strings have variable-width characters, which makes it difficult to map byte indices to character positions. To implement String.Mid(), your string has to be read, but, again, not copied. Extracting a part of a string is a non-destructive operation in Gambas and no copying takes place. (Concatenating strings, on the other hand, will copy.) So, there is some reading overhead (if you need UTF-8 strings), but it's smaller than you probably thought. > Dim Alphabetics as string "abc...zyzABC...ZYZ" > Dim re as RegExp > Dim matches as String [] > Dim RawText as String > > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)", > RegExp.utf8) > RawText = "abc12345def ghi jklm mno p1" > > Do While RawText > re.Exec(RawText) > matches.add(re[1].text) > RawText = String.Mid(RawText, String.Len(re.text) + 1) > Loop > > For i = 0 To matches.Count - 1 > Print matches[i] > Next > > > Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the tricks I > have used are cumbersome (like advancing with string.mid() and resorting to > re[1].text and re.text. > Well, I think you can't use PCRE alone to solve your problem, if you want to capture a variable number of words in your submatches. I did a bit of reading and from what I gather [1][2] capturing group numbers are assigned based on the verbatim regular expression, i.e. the number of submatches you can receive is limited by the number of "(...)" constructs in your expression; and the (otherwise very nifty) recursion operator (?R) does not give you an unlimited number of capturing groups, sadly. Anyway, I think by changing your regular expression, you can let PCRE take care of the string advancement, like so: 1 #!/usr/bin/gbs3 2 3 Use "gb.pcre" 4 5 Public Sub Main() 6 Dim r As New RegExp 7 Dim s As string 8 9 r.Compile("([[:alpha:]]+)[[:^alpha:]]+(.*$)", RegExp.UTF8) 10 s = "abc12345def ghi jklm mno p1" 11 Print "Subject:";; s 12 Do 13 r.Exec(s) 14 If r.Offset = -1 Then Break 15 Print " ->";; r[1].Text 16 s = r[2].Text 17 Loop While s 18 End Output: Subject: abc12345def ghi jklm mno p1 -> abc -> def -> ghi -> jklm -> mno -> p But, I think, this is less efficient than using String.Mid(). The trailing group (.*$) _may_ make the PCRE library read the entire subject every time. And I believe gb.pcre will copy your submatch string when returning it. If you care deeply about this, you'll have to trace the code in gb.pcre and main/gbx (the interpreter) to see what copies strings and what doesn't. Regards, Tobi [1] http://www.regular-expressions.info/recursecapture.html (Capturing Groups Inside Recursion or Subroutine Calls) [2] http://www.rexegg.com/regex-recursion.html (Groups Contents and Numbering in Recursive Expressions) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From fernandojosecabral at ...626... Sun Jun 18 01:34:15 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 17 Jun 2017 20:34:15 -0300 Subject: [Gambas-user] Help needed from regexp gurus In-Reply-To: <20170617210622.GI602@...3600...> References: <20170617210622.GI602@...3600...> Message-ID: Thank you, Tobi, for taking the time to comment on my issues. I will ponder the following. 2017-06-17 18:06 GMT-03:00 Tobias Boege : > On Sat, 17 Jun 2017, Fernando Cabral wrote: > >> Still beating my head against the wall due to my lack of knowledge about > >> the PCRE methods and properties... Because of this, I have progressed > not > >> only very slowly but also -- I fell -- in a very inelegant way. So > perhaps > >> you guys who are more acquainted with PCRE might be able to hint me on > a > >> better solution. > >> > >> I want to search a long string that can contain a sentence, a > paragraph or > >> even a full text. I wanna find and isolate every word it contains. A > word > >> is defined as any sequence of alphabetic characters followed by a > >> non-alphatetic character. > > >The Mathematician in me can't resist to point this out: you hopefully > wanted > >to define "word in a string" as "a *longest* sequence of alphabetic > characters > >followed by a non-alphabetic character (or the end of the string)". > Using your > >definition above, the words in "abc:" would be "c", "bc" and "abc", > whereas > >you probably only wanted "abc" (the longest of those). > > Right, the longest sequence. But I can't see why my definition is not equivalent to yours, even thou it is simpler. "A word is defined as any sequence of alphabetic characters followed by a non-alphabetic character" has to be the longest, no matter what. See, in "abc", "a" and "ab" are not followed by a non-alphabetic, so you have to keep advancing. "abc" is followed by a non-alphabetic, so it will comply with the definition. So I think we can do without stating it has to be the longest sequence. If I am wrong, I still can' t see why. > >> The sample code bellow does work, but I don't feel it is as elegant and > as > >> fast as it could and should be. Especially the way I am traversing the > >> string from the beginning to the end. It looks awkward and slow. There > must > >> be a more efficient way, like working only with offsets and lengths > instead > >> of copying the string again and again. > > >You think worse of String.Mid() than it deserves, IMHO. Gambas strings > >are triples of a pointer to some data, a start index and a length, and > >the built-in string functions take care not to copy a string when it's > >not necessary. The plain Mid$() function (dealing with ASCII strings only) > >is implemented as a constant-time operation which simply takes your input > >string and adjusts the start index and length to give you the requested > >portion of the string. The string doesn't even have to be read, much less > >copied, to do this. > > >Now, the String.Mid() function is somewhat more complicated, because > >UTF-8 strings have variable-width characters, which makes it difficult > >to map byte indices to character positions. To implement String.Mid(), > >your string has to be read, but, again, not copied. > > Right. Since I am workings with Portuguese, it has to be UTF8. So I can't avoid using String.Mid(). But I still understand it has to be copied because I am doing a str = String.Mid(str, HowMany) In this case I would guess it has to be copied because the original contents is shrunk, which happens again and again, until nothing is left to be scanned. I understand Gambas does not do garbage collection as old basic used to do, but still, I suppose it eventually will have to recover unused memory. > > Extracting a part of a string is a non-destructive operation in Gambas > > and no copying takes place. (Concatenating strings, on the other hand, > > will copy.) So, there is some reading overhead (if you need UTF-8 > strings), > > but it's smaller than you probably thought. > > As per above, in this case it is not only extracting, but overwriting the contents itself. > > Dim Alphabetics as string "abc...zyzABC...ZYZ" > > Dim re as RegExp > > Dim matches as String [] > > Dim RawText as String > > > > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)", > > RegExp.utf8) > > RawText = "abc12345def ghi jklm mno p1" > > > > Do While RawText > > re.Exec(RawText) > > matches.add(re[1].text) > > RawText = String.Mid(RawText, String.Len(re.text) + 1) > > Loop > > > > For i = 0 To matches.Count - 1 > > Print matches[i] > > Next > > > > > > Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the tricks > I > > have used are cumbersome (like advancing with string.mid() and resorting > to > > re[1].text and re.text. > > > > >Well, I think you can't use PCRE alone to solve your problem, if you want > >to capture a variable number of words in your submatches. I did a bit of > >reading and from what I gather [1][2] capturing group numbers are > assigned > >based on the verbatim regular expression, i.e. the number of submatches > >you can receive is limited by the number of "(...)" constructs in your > >expression; and the (otherwise very nifty) recursion operator (?R) does > >not give you an unlimited number of capturing groups, sadly. > What I need is to grab a word at a time. The reason I am using two submatches "([:Alpha:])([:^Alpha:])" is because I don't care for Non-Alpha. This way I can I can forget about the submatch, but it will help me to skip to the next word (since len(re.text) complises the lenght of both submatches). > > > Anyway, I think by changing your regular expression, you can let PCRE > take > > care of the string advancement, like so: > For the time being, I will use the loop the way you proposed bellow. It seems cleaner than my solution. As to the performance, latter I'll check which one is faster. Thanks a lot - fernando > > 1 #!/usr/bin/gbs3 > 2 > 3 Use "gb.pcre" > 4 > 5 Public Sub Main() > 6 Dim r As New RegExp > 7 Dim s As string > 8 > 9 r.Compile("([[:alpha:]]+)[[:^alpha:]]+(.*$)", RegExp.UTF8) > 10 s = "abc12345def ghi jklm mno p1" > 11 Print "Subject:";; s > 12 Do > 13 r.Exec(s) > 14 If r.Offset = -1 Then Break > 15 Print " ->";; r[1].Text > 16 s = r[2].Text > 17 Loop While s > 18 End > > Output: > > Subject: abc12345def ghi jklm mno p1 > -> abc > -> def > -> ghi > -> jklm > -> mno > -> p > > But, I think, this is less efficient than using String.Mid(). The trailing > group (.*$) _may_ make the PCRE library read the entire subject every time. > And I believe gb.pcre will copy your submatch string when returning it. > If you care deeply about this, you'll have to trace the code in gb.pcre > and main/gbx (the interpreter) to see what copies strings and what doesn't. > > Regards, > Tobi > > [1] http://www.regular-expressions.info/recursecapture.html (Capturing > Groups Inside Recursion or Subroutine Calls) > [2] http://www.rexegg.com/regex-recursion.html (Groups Contents and > Numbering in Recursive Expressions) > > -- > "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... Sun Jun 18 01:57:21 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sat, 17 Jun 2017 20:57:21 -0300 Subject: [Gambas-user] Help needed from regexp gurus In-Reply-To: <20170617210622.GI602@...3600...> References: <20170617210622.GI602@...3600...> Message-ID: Tobi One more thing about the way I wish it could work (I remember having done this in C perhaps 30 years ago). The pseudo-code bellow is pretty schematic, but I think it will clarify the issue. Let p and l be arrays of integers and s be the string "abc defg hijkl" So, after traversing the string we would have the following result: p[0] = offset of "a" (0) l[0] = length of "abc" (3) p[1] = offset of "d" (4) l[1] = lenght of "defg" (4) p[2] = offset of "h" (9) l[2] = lenght of "hijkl" (5). After this, each word could be retrieved in the following manner: for i = 0 to 2 print mid(s, p[i], l[i]) next I think this would be the most efficient way to do it. But I can't find how to do it in Gambas using Regex. Regards - fernando 2017-06-17 18:06 GMT-03:00 Tobias Boege : > On Sat, 17 Jun 2017, Fernando Cabral wrote: > > Still beating my head against the wall due to my lack of knowledge about > > the PCRE methods and properties... Because of this, I have progressed not > > only very slowly but also -- I fell -- in a very inelegant way. So > perhaps > > you guys who are more acquainted with PCRE might be able to hint me on a > > better solution. > > > > I want to search a long string that can contain a sentence, a paragraph > or > > even a full text. I wanna find and isolate every word it contains. A word > > is defined as any sequence of alphabetic characters followed by a > > non-alphatetic character. > > > > The Mathematician in me can't resist to point this out: you hopefully > wanted > to define "word in a string" as "a *longest* sequence of alphabetic > characters > followed by a non-alphabetic character (or the end of the string)". Using > your > definition above, the words in "abc:" would be "c", "bc" and "abc", whereas > you probably only wanted "abc" (the longest of those). > > > The sample code bellow does work, but I don't feel it is as elegant and > as > > fast as it could and should be. Especially the way I am traversing the > > string from the beginning to the end. It looks awkward and slow. There > must > > be a more efficient way, like working only with offsets and lengths > instead > > of copying the string again and again. > > > > You think worse of String.Mid() than it deserves, IMHO. Gambas strings > are triples of a pointer to some data, a start index and a length, and > the built-in string functions take care not to copy a string when it's > not necessary. The plain Mid$() function (dealing with ASCII strings only) > is implemented as a constant-time operation which simply takes your input > string and adjusts the start index and length to give you the requested > portion of the string. The string doesn't even have to be read, much less > copied, to do this. > > Now, the String.Mid() function is somewhat more complicated, because > UTF-8 strings have variable-width characters, which makes it difficult > to map byte indices to character positions. To implement String.Mid(), > your string has to be read, but, again, not copied. > > Extracting a part of a string is a non-destructive operation in Gambas > and no copying takes place. (Concatenating strings, on the other hand, > will copy.) So, there is some reading overhead (if you need UTF-8 strings), > but it's smaller than you probably thought. > > > Dim Alphabetics as string "abc...zyzABC...ZYZ" > > Dim re as RegExp > > Dim matches as String [] > > Dim RawText as String > > > > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)", > > RegExp.utf8) > > RawText = "abc12345def ghi jklm mno p1" > > > > Do While RawText > > re.Exec(RawText) > > matches.add(re[1].text) > > RawText = String.Mid(RawText, String.Len(re.text) + 1) > > Loop > > > > For i = 0 To matches.Count - 1 > > Print matches[i] > > Next > > > > > > Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the tricks > I > > have used are cumbersome (like advancing with string.mid() and resorting > to > > re[1].text and re.text. > > > > Well, I think you can't use PCRE alone to solve your problem, if you want > to capture a variable number of words in your submatches. I did a bit of > reading and from what I gather [1][2] capturing group numbers are assigned > based on the verbatim regular expression, i.e. the number of submatches > you can receive is limited by the number of "(...)" constructs in your > expression; and the (otherwise very nifty) recursion operator (?R) does > not give you an unlimited number of capturing groups, sadly. > > Anyway, I think by changing your regular expression, you can let PCRE take > care of the string advancement, like so: > > 1 #!/usr/bin/gbs3 > 2 > 3 Use "gb.pcre" > 4 > 5 Public Sub Main() > 6 Dim r As New RegExp > 7 Dim s As string > 8 > 9 r.Compile("([[:alpha:]]+)[[:^alpha:]]+(.*$)", RegExp.UTF8) > 10 s = "abc12345def ghi jklm mno p1" > 11 Print "Subject:";; s > 12 Do > 13 r.Exec(s) > 14 If r.Offset = -1 Then Break > 15 Print " ->";; r[1].Text > 16 s = r[2].Text > 17 Loop While s > 18 End > > Output: > > Subject: abc12345def ghi jklm mno p1 > -> abc > -> def > -> ghi > -> jklm > -> mno > -> p > > But, I think, this is less efficient than using String.Mid(). The trailing > group (.*$) _may_ make the PCRE library read the entire subject every time. > And I believe gb.pcre will copy your submatch string when returning it. > If you care deeply about this, you'll have to trace the code in gb.pcre > and main/gbx (the interpreter) to see what copies strings and what doesn't. > > Regards, > Tobi > > [1] http://www.regular-expressions.info/recursecapture.html (Capturing > Groups Inside Recursion or Subroutine Calls) > [2] http://www.rexegg.com/regex-recursion.html (Groups Contents and > Numbering in Recursive Expressions) > > -- > "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 jussi.lahtinen at ...626... Sun Jun 18 02:21:29 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 18 Jun 2017 03:21:29 +0300 Subject: [Gambas-user] Help needed from regexp gurus In-Reply-To: References: <20170617210622.GI602@...3600...> Message-ID: I think I would do something like: Dim ii As Integer Dim sStr As String = "abc defg hijkl" Dim sWords As String[] sWords = Split(sStr, " ") For ii = 0 To 2 Print sWords[ii] Next Jussi On Sun, Jun 18, 2017 at 2:57 AM, Fernando Cabral < fernandojosecabral at ...626...> wrote: > Tobi > > One more thing about the way I wish it could work (I remember having done > this in C perhaps 30 years ago). The pseudo-code bellow is pretty > schematic, but I think it will clarify the issue. > > Let p and l be arrays of integers and s be the string "abc defg hijkl" > > So, after traversing the string we would have the following result: > p[0] = offset of "a" (0) > l[0] = length of "abc" (3) > p[1] = offset of "d" (4) > l[1] = lenght of "defg" (4) > p[2] = offset of "h" (9) > l[2] = lenght of "hijkl" (5). > > After this, each word could be retrieved in the following manner: > > for i = 0 to 2 > print mid(s, p[i], l[i]) > next > > I think this would be the most efficient way to do it. But I can't find how > to do it in Gambas using Regex. > > Regards > > - fernando > > > 2017-06-17 18:06 GMT-03:00 Tobias Boege : > > > On Sat, 17 Jun 2017, Fernando Cabral wrote: > > > Still beating my head against the wall due to my lack of knowledge > about > > > the PCRE methods and properties... Because of this, I have progressed > not > > > only very slowly but also -- I fell -- in a very inelegant way. So > > perhaps > > > you guys who are more acquainted with PCRE might be able to hint me on > a > > > better solution. > > > > > > I want to search a long string that can contain a sentence, a paragraph > > or > > > even a full text. I wanna find and isolate every word it contains. A > word > > > is defined as any sequence of alphabetic characters followed by a > > > non-alphatetic character. > > > > > > > The Mathematician in me can't resist to point this out: you hopefully > > wanted > > to define "word in a string" as "a *longest* sequence of alphabetic > > characters > > followed by a non-alphabetic character (or the end of the string)". Using > > your > > definition above, the words in "abc:" would be "c", "bc" and "abc", > whereas > > you probably only wanted "abc" (the longest of those). > > > > > The sample code bellow does work, but I don't feel it is as elegant and > > as > > > fast as it could and should be. Especially the way I am traversing the > > > string from the beginning to the end. It looks awkward and slow. There > > must > > > be a more efficient way, like working only with offsets and lengths > > instead > > > of copying the string again and again. > > > > > > > You think worse of String.Mid() than it deserves, IMHO. Gambas strings > > are triples of a pointer to some data, a start index and a length, and > > the built-in string functions take care not to copy a string when it's > > not necessary. The plain Mid$() function (dealing with ASCII strings > only) > > is implemented as a constant-time operation which simply takes your input > > string and adjusts the start index and length to give you the requested > > portion of the string. The string doesn't even have to be read, much less > > copied, to do this. > > > > Now, the String.Mid() function is somewhat more complicated, because > > UTF-8 strings have variable-width characters, which makes it difficult > > to map byte indices to character positions. To implement String.Mid(), > > your string has to be read, but, again, not copied. > > > > Extracting a part of a string is a non-destructive operation in Gambas > > and no copying takes place. (Concatenating strings, on the other hand, > > will copy.) So, there is some reading overhead (if you need UTF-8 > strings), > > but it's smaller than you probably thought. > > > > > Dim Alphabetics as string "abc...zyzABC...ZYZ" > > > Dim re as RegExp > > > Dim matches as String [] > > > Dim RawText as String > > > > > > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)", > > > RegExp.utf8) > > > RawText = "abc12345def ghi jklm mno p1" > > > > > > Do While RawText > > > re.Exec(RawText) > > > matches.add(re[1].text) > > > RawText = String.Mid(RawText, String.Len(re.text) + 1) > > > Loop > > > > > > For i = 0 To matches.Count - 1 > > > Print matches[i] > > > Next > > > > > > > > > Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the > tricks > > I > > > have used are cumbersome (like advancing with string.mid() and > resorting > > to > > > re[1].text and re.text. > > > > > > > Well, I think you can't use PCRE alone to solve your problem, if you want > > to capture a variable number of words in your submatches. I did a bit of > > reading and from what I gather [1][2] capturing group numbers are > assigned > > based on the verbatim regular expression, i.e. the number of submatches > > you can receive is limited by the number of "(...)" constructs in your > > expression; and the (otherwise very nifty) recursion operator (?R) does > > not give you an unlimited number of capturing groups, sadly. > > > > Anyway, I think by changing your regular expression, you can let PCRE > take > > care of the string advancement, like so: > > > > 1 #!/usr/bin/gbs3 > > 2 > > 3 Use "gb.pcre" > > 4 > > 5 Public Sub Main() > > 6 Dim r As New RegExp > > 7 Dim s As string > > 8 > > 9 r.Compile("([[:alpha:]]+)[[:^alpha:]]+(.*$)", RegExp.UTF8) > > 10 s = "abc12345def ghi jklm mno p1" > > 11 Print "Subject:";; s > > 12 Do > > 13 r.Exec(s) > > 14 If r.Offset = -1 Then Break > > 15 Print " ->";; r[1].Text > > 16 s = r[2].Text > > 17 Loop While s > > 18 End > > > > Output: > > > > Subject: abc12345def ghi jklm mno p1 > > -> abc > > -> def > > -> ghi > > -> jklm > > -> mno > > -> p > > > > But, I think, this is less efficient than using String.Mid(). The > trailing > > group (.*$) _may_ make the PCRE library read the entire subject every > time. > > And I believe gb.pcre will copy your submatch string when returning it. > > If you care deeply about this, you'll have to trace the code in gb.pcre > > and main/gbx (the interpreter) to see what copies strings and what > doesn't. > > > > Regards, > > Tobi > > > > [1] http://www.regular-expressions.info/recursecapture.html (Capturing > > Groups Inside Recursion or Subroutine Calls) > > [2] http://www.rexegg.com/regex-recursion.html (Groups Contents and > > Numbering in Recursive Expressions) > > > > -- > > "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. > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Sun Jun 18 03:36:45 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 01:36:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #5 by zxMarce: Piccoro, Just installed SQLite3 on my home laptop. After some twiddling I got the right connection string and the test program I once sent you connected OK. You're correct that there's something wrong when creating tables in SQLite3, and it does not matter if the "IF NOT EXISTS" clause is present or not. I'll investigate further on the matter. zxMarce. From bugtracker at ...3416... Sun Jun 18 04:02:12 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 02:02:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #6 by zxMarce: Piccoro, Found out the statement IS executed, this is, in this case the table IS created if it did not exist. You may want to change the bug title, which is misleading. Anyway, for some reason not yet fully known, the component does fail with an internal error when it should not. Don't know where or why yet though. zxMarce. From bugtracker at ...3416... Sun Jun 18 05:05:13 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 03:05:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #7 by zxMarce: Piccoro, Got more details. This problem would occur with any statement/query that does not return data. For example a CREATE TABLE, DROP TABLE, etc. kind of query. This occurs when the ODBC SQLExecDirect() call returns code SQL_NO_DATA (decimal 100). My patch attempt only made the problem worse, because now the interpreter SEGFAULTs when I take SQL_NO_DATA into account as non-error value. But the SEGFAULT occurs well after the query is actually run, same as the error you encountered. Still digging... zxMarce. From bugtracker at ...3416... Sun Jun 18 05:15:01 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 03:15:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #8 by PICCORO LENZ MCKAY: hi, zxMarce, thanks for take a shot.. i hope u can doit more due i now very busy.. i was thinking.. why odbc to sqlite if there's native sqlite.. well the problem its that must be a standar... odbc makes gambas able to connect to any DBMS source maybe the odbc sqlite driver does not returns the right data? using mysql-odbc the SELECT statement returns the amount of rows.. the rest of odbc does not return amount of rows... so we have here a controversy.. due maybe we dont know where resides the problem for now i'll make some "notes" about current state in the new odbc wiki of gambas (i split the odbc DSN explanation respect gambas specific info), and also now, depend on odbc driver module using, there's no current way to fill a gridview using the Data event with odbc... due mayority of odbc module drivers does not return any info about amount of rows when a SELECT statement are used like mysql-odbc does.. From leondavisjr at ...626... Sun Jun 18 05:25:40 2017 From: leondavisjr at ...626... (Leon Davis) Date: Sat, 17 Jun 2017 22:25:40 -0500 Subject: [Gambas-user] reparent menu item Message-ID: Using Gambas v3.9.2 and GTK+3 Is there a safe way to reparent a menu item during runtime? Any help would be greatly appreciated. Leon From jussi.lahtinen at ...626... Sun Jun 18 05:32:22 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 18 Jun 2017 06:32:22 +0300 Subject: [Gambas-user] Help needed from regexp gurus In-Reply-To: References: <20170617210622.GI602@...3600...> Message-ID: Oh, sorry... this way of course: Dim sStr As String = "abc. def!!! ghi? jkl: (mno)" Dim sWords As String[] sWords = Split(sStr, " .!?:()", "", True) ''Expand as you will. For ii = 0 To sWords.Max Print sWords[ii] Next Jussi On Sun, Jun 18, 2017 at 6:29 AM, Jussi Lahtinen wrote: > It's not problem. > > Dim sStr As String = "abc. def!!! ghi? jkl: (mno)" > Dim sWords As String[] > > sWords = Split(sStr, " .!?:()") '' Exapand as you will. > > ii = 0 > Do > If sWords[ii] = "" Then > sWords.Remove(ii) > Else > Inc ii > Endif > Loop Until ii > sWords.Max > > For ii = 0 To sWords.Max > Print sWords[ii] > Next > > > Jussi > > > On Sun, Jun 18, 2017 at 4:53 AM, Fernando Cabral < > fernandojosecabral at ...626...> wrote: > >> Jussi, what you suggest will not work. You have presumed the only >> separator is a single space. >> This is not the case. Between any two words you can have any non-alpha >> character in any number. >> It could be, for instance, "abc. def!!! ghi? jkl: (mno)" and so >> forth. >> This means, the definition of word is "any sequence of alphabetic >> characters followed by any sequence of non-alphabetic. >> >> That's why your suggestion does not apply. >> >> - fernando >> >> 2017-06-17 21:21 GMT-03:00 Jussi Lahtinen : >> >>> I think I would do something like: >>> >>> Dim ii As Integer >>> Dim sStr As String = "abc defg hijkl" >>> Dim sWords As String[] >>> >>> sWords = Split(sStr, " ") >>> >>> For ii = 0 To 2 >>> Print sWords[ii] >>> Next >>> >>> >>> >>> >>> Jussi >>> >>> On Sun, Jun 18, 2017 at 2:57 AM, Fernando Cabral < >>> fernandojosecabral at ...626...> wrote: >>> >>>> Tobi >>>> >>>> One more thing about the way I wish it could work (I remember having >>>> done >>>> this in C perhaps 30 years ago). The pseudo-code bellow is pretty >>>> schematic, but I think it will clarify the issue. >>>> >>>> Let p and l be arrays of integers and s be the string "abc defg hijkl" >>>> >>>> So, after traversing the string we would have the following result: >>>> p[0] = offset of "a" (0) >>>> l[0] = length of "abc" (3) >>>> p[1] = offset of "d" (4) >>>> l[1] = lenght of "defg" (4) >>>> p[2] = offset of "h" (9) >>>> l[2] = lenght of "hijkl" (5). >>>> >>>> After this, each word could be retrieved in the following manner: >>>> >>>> for i = 0 to 2 >>>> print mid(s, p[i], l[i]) >>>> next >>>> >>>> I think this would be the most efficient way to do it. But I can't find >>>> how >>>> to do it in Gambas using Regex. >>>> >>>> Regards >>>> >>>> - fernando >>>> >>>> >>>> 2017-06-17 18:06 GMT-03:00 Tobias Boege : >>>> >>>> > On Sat, 17 Jun 2017, Fernando Cabral wrote: >>>> > > Still beating my head against the wall due to my lack of knowledge >>>> about >>>> > > the PCRE methods and properties... Because of this, I have >>>> progressed not >>>> > > only very slowly but also -- I fell -- in a very inelegant way. So >>>> > perhaps >>>> > > you guys who are more acquainted with PCRE might be able to hint me >>>> on a >>>> > > better solution. >>>> > > >>>> > > I want to search a long string that can contain a sentence, a >>>> paragraph >>>> > or >>>> > > even a full text. I wanna find and isolate every word it contains. >>>> A word >>>> > > is defined as any sequence of alphabetic characters followed by a >>>> > > non-alphatetic character. >>>> > > >>>> > >>>> > The Mathematician in me can't resist to point this out: you hopefully >>>> > wanted >>>> > to define "word in a string" as "a *longest* sequence of alphabetic >>>> > characters >>>> > followed by a non-alphabetic character (or the end of the string)". >>>> Using >>>> > your >>>> > definition above, the words in "abc:" would be "c", "bc" and "abc", >>>> whereas >>>> > you probably only wanted "abc" (the longest of those). >>>> > >>>> > > The sample code bellow does work, but I don't feel it is as elegant >>>> and >>>> > as >>>> > > fast as it could and should be. Especially the way I am traversing >>>> the >>>> > > string from the beginning to the end. It looks awkward and slow. >>>> There >>>> > must >>>> > > be a more efficient way, like working only with offsets and lengths >>>> > instead >>>> > > of copying the string again and again. >>>> > > >>>> > >>>> > You think worse of String.Mid() than it deserves, IMHO. Gambas strings >>>> > are triples of a pointer to some data, a start index and a length, and >>>> > the built-in string functions take care not to copy a string when it's >>>> > not necessary. The plain Mid$() function (dealing with ASCII strings >>>> only) >>>> > is implemented as a constant-time operation which simply takes your >>>> input >>>> > string and adjusts the start index and length to give you the >>>> requested >>>> > portion of the string. The string doesn't even have to be read, much >>>> less >>>> > copied, to do this. >>>> > >>>> > Now, the String.Mid() function is somewhat more complicated, because >>>> > UTF-8 strings have variable-width characters, which makes it difficult >>>> > to map byte indices to character positions. To implement String.Mid(), >>>> > your string has to be read, but, again, not copied. >>>> > >>>> > Extracting a part of a string is a non-destructive operation in Gambas >>>> > and no copying takes place. (Concatenating strings, on the other hand, >>>> > will copy.) So, there is some reading overhead (if you need UTF-8 >>>> strings), >>>> > but it's smaller than you probably thought. >>>> > >>>> > > Dim Alphabetics as string "abc...zyzABC...ZYZ" >>>> > > Dim re as RegExp >>>> > > Dim matches as String [] >>>> > > Dim RawText as String >>>> > > >>>> > > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)", >>>> > > RegExp.utf8) >>>> > > RawText = "abc12345def ghi jklm mno p1" >>>> > > >>>> > > Do While RawText >>>> > > re.Exec(RawText) >>>> > > matches.add(re[1].text) >>>> > > RawText = String.Mid(RawText, String.Len(re.text) + 1) >>>> > > Loop >>>> > > >>>> > > For i = 0 To matches.Count - 1 >>>> > > Print matches[i] >>>> > > Next >>>> > > >>>> > > >>>> > > Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the >>>> tricks >>>> > I >>>> > > have used are cumbersome (like advancing with string.mid() and >>>> resorting >>>> > to >>>> > > re[1].text and re.text. >>>> > > >>>> > >>>> > Well, I think you can't use PCRE alone to solve your problem, if you >>>> want >>>> > to capture a variable number of words in your submatches. I did a bit >>>> of >>>> > reading and from what I gather [1][2] capturing group numbers are >>>> assigned >>>> > based on the verbatim regular expression, i.e. the number of >>>> submatches >>>> > you can receive is limited by the number of "(...)" constructs in your >>>> > expression; and the (otherwise very nifty) recursion operator (?R) >>>> does >>>> > not give you an unlimited number of capturing groups, sadly. >>>> > >>>> > Anyway, I think by changing your regular expression, you can let PCRE >>>> take >>>> > care of the string advancement, like so: >>>> > >>>> > 1 #!/usr/bin/gbs3 >>>> > 2 >>>> > 3 Use "gb.pcre" >>>> > 4 >>>> > 5 Public Sub Main() >>>> > 6 Dim r As New RegExp >>>> > 7 Dim s As string >>>> > 8 >>>> > 9 r.Compile("([[:alpha:]]+)[[:^alpha:]]+(.*$)", RegExp.UTF8) >>>> > 10 s = "abc12345def ghi jklm mno p1" >>>> > 11 Print "Subject:";; s >>>> > 12 Do >>>> > 13 r.Exec(s) >>>> > 14 If r.Offset = -1 Then Break >>>> > 15 Print " ->";; r[1].Text >>>> > 16 s = r[2].Text >>>> > 17 Loop While s >>>> > 18 End >>>> > >>>> > Output: >>>> > >>>> > Subject: abc12345def ghi jklm mno p1 >>>> > -> abc >>>> > -> def >>>> > -> ghi >>>> > -> jklm >>>> > -> mno >>>> > -> p >>>> > >>>> > But, I think, this is less efficient than using String.Mid(). The >>>> trailing >>>> > group (.*$) _may_ make the PCRE library read the entire subject every >>>> time. >>>> > And I believe gb.pcre will copy your submatch string when returning >>>> it. >>>> > If you care deeply about this, you'll have to trace the code in >>>> gb.pcre >>>> > and main/gbx (the interpreter) to see what copies strings and what >>>> doesn't. >>>> > >>>> > Regards, >>>> > Tobi >>>> > >>>> > [1] http://www.regular-expressions.info/recursecapture.html >>>> (Capturing >>>> > Groups Inside Recursion or Subroutine Calls) >>>> > [2] http://www.rexegg.com/regex-recursion.html (Groups Contents and >>>> > Numbering in Recursive Expressions) >>>> > >>>> > -- >>>> > "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. >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, 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 bugtracker at ...3416... Sun Jun 18 06:04:02 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 04:04:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #9 by zxMarce: Piccoro, As I already told you more than once, ODBC will return the row count thanks to the patch I already made given a couple of conditions that depend on the low-level driver being correctly configured. The conditions are: A- The driver supports ODBC's SQLFetchScroll() call (this is not a driver config, but a driver feature), and B- The driver is configured in such a way that it supports the SQL_ATTR_CURSOR_SCROLLABLE flag. My patch uses condition B to use three times the call in point A in this way: 1- Remember the current row for later getting back to it. 2- Seek up to the first row in the rowset (using SQLFetchScroll) 3- Get the first row's index (firstRecNo) 4- Seek down to the last row in the rowset (using SQLFetchScroll) 5- Get the last row's index (lastRecNo) 6- Seek back to wherever we were at in step 1 (using SQLFetchScroll) 7- Return (lastRecNo - firstRecNo + 1), AKA "Record Count". For some combinations of driver protocol and MSSQL versions (speaking FreeTDS against MSSQL here), I found out that condition B was not met, so I could not get a record count. But for some other -documented- protocol and server combinations the call succeeded. The same happens with Firebird, for example. I never tested it with SQLite3 yet. But I explained this point to you several times now. Will not do it again, and this contaminates this particular bug report. zxMare. From bugtracker at ...3416... Sun Jun 18 07:52:45 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 05:52:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #10 by PICCORO LENZ MCKAY: ok, i understand sorry for the noise, its just that i tested many odbc module drivers and tested that.. in other words, i tested the condition with sqlite and i confirmed does not work.. From mckaygerhard at ...626... Sun Jun 18 07:55:18 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 18 Jun 2017 01:55:18 -0400 Subject: [Gambas-user] search over the gridview and not to the database and refill grid its possible? Message-ID: as subject said: search over the gridview event to the database and refill grid its possible? i have a gridview object filled with data from the db, note: column names are autodetected. its there any way to search over gridview data and filter the results in gridview or there-s some object with that behaviour? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From unaiseek at ...626... Sun Jun 18 10:58:44 2017 From: unaiseek at ...626... (Unaise EK) Date: Sun, 18 Jun 2017 14:28:44 +0530 Subject: [Gambas-user] search over the gridview and not to the database and refill grid its possible? In-Reply-To: References: Message-ID: Is there any substitute for flexgrid in VB for gambas. On 18 Jun 2017 11:26 a.m., "PICCORO McKAY Lenz" wrote: > as subject said: search over the gridview event to the database and refill > grid its possible? > > i have a gridview object filled with data from the db, note: column names > are autodetected. > > its there any way to search over gridview data and filter the results in > gridview or there-s some object with that behaviour? > > 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 shordi at ...626... Sun Jun 18 11:14:08 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 18 Jun 2017 11:14:08 +0200 Subject: [Gambas-user] search over the gridview and not to the database and refill grid its possible? In-Reply-To: References: Message-ID: Hey, Piccoro, Take a look at this, maybe it will serve or give you some idea of how to do it. It is a class inheriting from gridView and has a new property called source, which can be a two-dimensional array, an array of collections or, directly, a Result. With this it is conformed a gridView that you can order (click on column header) and on which you can do searches and certain level of filtering (Shift + Click on cell). I can not guarantee that it will not have bugs, because it has been very little tested, but if it serves you, there you have it. Best Regards ? 2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz : > as subject said: search over the gridview event to the database and refill > grid its possible? > > i have a gridview object filled with data from the db, note: column names > are autodetected. > > its there any way to search over gridview data and filter the results in > gridview or there-s some object with that behaviour? > > 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 > -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2017-06-18 11-12-58.png Type: image/png Size: 54346 bytes Desc: not available URL: From bugtracker at ...3416... Sun Jun 18 11:32:26 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 09:32:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1122&from=L21haW4- Bruce BRUEN reported a new bug. Summary ------- SQL syntax highlighter does not respect continued (multiline) strings Type : Bug Priority : Low Gambas version : 3.9.90 (TRUNK) Product : GUI components Description ----------- SQL string literals can continue over multiple lines without any special treatment as the string is terminated by the first occurrence of the string delimiter used. For example, the SQL source file may contain: COMMENT ON TABLE jockey_stats IS 'At the moment this table contains the crosstabulated monthly figures for the jockey over the last 12 months. It is created by an involved query that is run daily. The column names need changing (desperatley)'; The string is totally delimited by the ' character pair and any CR/LF are ignored. The SQL syntax highlighter does not respect that convention and treats everything after the "... run daily." as more of the same string. System information ------------------ [System] Gambas=3.9.90 r8135 OperatingSystem=Linux Kernel=4.1.15-pclos1 Architecture=x86 Distribution=PCLinuxOS Desktop=LXDE Theme=Gtk Language=en_AU.UTF-8 Memory=1005M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.3.0.0 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.603.0 GTK+2=libgtk-x11-2.0.so.0.2400.26 GTK+3=libgtk-3.so.0.1400.14 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.173.14.39 OpenGL=libGL.so.96.43.23 Poppler=libpoppler.so.13.0.0 Poppler=libpoppler.so.19.0.0 Poppler=libpoppler.so.46.0.0 Poppler=libpoppler.so.54.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.4.2 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] BROWSER=/usr/bin/www-browser CANBERRA_DRIVER=pulse DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6AOFReU3eQ,guid=967e3250abf3a8a11787da3259458417 DESKTOP_SESSION=LXDE DISPLAY=:0 GB_GUI=gb.qt4 GCONF_TMPDIR=/tmp GDMSESSION=04LXDE GDM_XSERVER_LOCATION=local GIT_PAGER=less -FRS GPG_AGENT_INFO=/tmp/gpg-5uywEs/S.gpg-agent:3147:1 GTK_MODULES=canberra-gtk-module GUILE_LOAD_PATH=/usr/share G_FILENAME_ENCODING=@...3501... HISTCONTROL=ignoredups HISTSIZE=1000 HOME= HOSTNAME= INPUTRC=/etc/inputrc LANG=en_AU.UTF-8 LANGUAGE=en_AU:en_GB:en LC_ADDRESS=en_AU.UTF-8 LC_COLLATE=en_AU.UTF-8 LC_CTYPE=en_AU.UTF-8 LC_IDENTIFICATION=en_AU.UTF-8 LC_MEASUREMENT=en_AU.UTF-8 LC_MESSAGES=en_AU.UTF-8 LC_MONETARY=en_AU.UTF-8 LC_NAME=en_AU.UTF-8 LC_NUMERIC=en_AU.UTF-8 LC_PAPER=en_AU.UTF-8 LC_SOURCED=1 LC_TELEPHONE=en_AU.UTF-8 LC_TIME=en_AU.UTF-8 LESS=-MM LESSCHARSET=utf-8 LESSKEY=/etc/.less LESSOPEN=|/usr/bin/lesspipe.sh %s LOGNAME= LS_COLORS= MAIL=/var/spool/mail/ MDV_MENU_STYLE=discovery META_CLASS=desktop NLSPATH=/usr/share/locale/%l/%N PATH=/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/lib/qt5/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/kde4/libexec PKG_CONFIG_PATH=/usr/lib/pkgconfig PWD= PYTHONDONTWRITEBYTECODE=1 PYTHONSTARTUP=/etc/pythonrc.py QT4DOCDIR=/usr/share/doc/qt4 QT5DOCDIR=/usr/share/doc/qt5 QTDIR=/usr/lib/qt4 QTDIR5=/usr/lib/qt5 QTINC=/usr/lib/qt3/include QTLIB=/usr/lib QT_PLUGIN_PATH=/usr/lib/qt4/plugins/:/usr/lib/kde4/plugins/:/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins QT_XFT=0 SAL_USE_VCLPLUGIN=gtk SHELL=/bin/bash SHLVL=2 SSH_AGENT_PID=3091 SSH_ASKPASS=/usr/lib/ssh/ssh-askpass SSH_AUTH_SOCK=/tmp/ssh-ARhV7y8AZBzn/agent.3083 TMP=/tmp TMPDIR=/tmp TZ=:/etc/localtime USER= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/discovery:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/usr/local/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share:/usr/share/gdm/ XDG_MENU_PREFIX=lxde- XDG_SESSION_COOKIE=82ab6c261883e9ffe2a80b674b7b435e-1497728016.181950-1353101201 XMODIFIERS=@...3498...=none _=/usr/bin/gambas3 _LXSESSION_PID=2617 From bugtracker at ...3416... Sun Jun 18 11:32:58 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 09:32:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1122&from=L21haW4- Bruce BRUEN added an attachment: test.form.editor-3.9.90.tar.gz From bugtracker at ...3416... Sun Jun 18 11:33:47 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 09:33:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1122&from=L21haW4- Comment #1 by Bruce BRUEN: The attached project is just a modded version of the component itself. From bugtracker at ...3416... Sun Jun 18 11:36:20 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 18 Jun 2017 09:36:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1122&from=L21haW4- Bruce BRUEN added an attachment: Daily Database Updates_055.png From charlie at ...2793... Sun Jun 18 11:48:40 2017 From: charlie at ...2793... (Charlie) Date: Sun, 18 Jun 2017 02:48:40 -0700 (MST) Subject: [Gambas-user] reparent menu item In-Reply-To: References: Message-ID: <1497779320507-59397.post@...3046...> Can you supply more detail and an example of what you are trying to do? ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/reparent-menu-item-tp59386p59397.html Sent from the gambas-user mailing list archive at Nabble.com. From shordi at ...626... Sun Jun 18 11:57:50 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 18 Jun 2017 11:57:50 +0200 Subject: [Gambas-user] search over the gridview and not to the database and refill grid its possible? In-Reply-To: References: Message-ID: "Dress me slowly that I'm on a hurry"... There is a Copy-Paste bug on the previous attached file. This on works (I hope). I forgot to mention that the class has a "Value" property that return a collection with the selected row texts as values and the columns heads text as keys. Best Regards 2017-06-18 11:14 GMT+02:00 Jorge Carri?n : > Hey, Piccoro, > Take a look at this, maybe it will serve or give you some idea of how to > do it. > It is a class inheriting from gridView and has a new property called > source, which can be a two-dimensional array, an array of collections or, > directly, a Result. > With this it is conformed a gridView that you can order (click on column > header) and on which you can do searches and certain level of filtering > (Shift + Click on cell). > I can not guarantee that it will not have bugs, because it has been very > little tested, but if it serves you, there you have it. > > > > Best Regards > ? > > 2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz : > >> as subject said: search over the gridview event to the database and refill >> grid its possible? >> >> i have a gridview object filled with data from the db, note: column names >> are autodetected. >> >> its there any way to search over gridview data and filter the results in >> gridview or there-s some object with that behaviour? >> >> 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 >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla de 2017-06-18 11-12-58.png Type: image/png Size: 54346 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: wGridFilterSample-0.0.1.tar.gz Type: application/x-gzip Size: 33579 bytes Desc: not available URL: From mckaygerhard at ...626... Sun Jun 18 14:12:10 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 18 Jun 2017 08:12:10 -0400 Subject: [Gambas-user] search over the gridview and not to the database and refill grid its possible? In-Reply-To: References: Message-ID: hi Jorge, great.. thanks for the sample, its just that i need!!!! when my skills in gambas grow i'll try to make a componente that looks like the "vanilla datatables" now i'll take a look and report feedback Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-18 5:57 GMT-04:00 Jorge Carri?n : > "Dress me slowly that I'm on a hurry"... > There is a Copy-Paste bug on the previous attached file. > This on works (I hope). > > I forgot to mention that the class has a "Value" property that return a > collection with the selected row texts as values and the columns heads text > as keys. > > Best Regards > > > 2017-06-18 11:14 GMT+02:00 Jorge Carri?n : > > > Hey, Piccoro, > > Take a look at this, maybe it will serve or give you some idea of how to > > do it. > > It is a class inheriting from gridView and has a new property called > > source, which can be a two-dimensional array, an array of collections or, > > directly, a Result. > > With this it is conformed a gridView that you can order (click on column > > header) and on which you can do searches and certain level of filtering > > (Shift + Click on cell). > > I can not guarantee that it will not have bugs, because it has been very > > little tested, but if it serves you, there you have it. > > > > > > > > Best Regards > > ? > > > > 2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz : > > > >> as subject said: search over the gridview event to the database and > refill > >> grid its possible? > >> > >> i have a gridview object filled with data from the db, note: column > names > >> are autodetected. > >> > >> its there any way to search over gridview data and filter the results in > >> gridview or there-s some object with that behaviour? > >> > >> 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... Sun Jun 18 15:17:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 18 Jun 2017 09:17:39 -0400 Subject: [Gambas-user] search over the gridview and not to the database and refill grid its possible? In-Reply-To: References: Message-ID: again me, tested in gambas 3.5, i just send a mail to your personal, as i said great.. but seems some mistakes are due many variables are with similar names the wgrid seems acts as improvement gridview componente object, that implements column autodetection and sort order over the data.. the wgridfilter implements the wgrid and added filter capabilities.. so in the private mail i'll send many more quiestions.. due the filter does not work.. and ide raised many errors due similar names in variables.. > 2017-06-18 11:14 GMT+02:00 Jorge Carri?n : >> >> > Hey, Piccoro, >> > Take a look at this, maybe it will serve or give you some idea of how to >> > do it. >> > It is a class inheriting from gridView and has a new property called >> > source, which can be a two-dimensional array, an array of collections >> or, >> > directly, a Result. >> > With this it is conformed a gridView that you can order (click on column >> > header) and on which you can do searches and certain level of filtering >> > (Shift + Click on cell). >> > I can not guarantee that it will not have bugs, because it has been very >> > little tested, but if it serves you, there you have it. >> > >> > >> > >> > Best Regards >> > ? >> > >> > 2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz : >> > >> >> as subject said: search over the gridview event to the database and >> refill >> >> grid its possible? >> >> >> >> i have a gridview object filled with data from the db, note: column >> names >> >> are autodetected. >> >> >> >> its there any way to search over gridview data and filter the results >> in >> >> gridview or there-s some object with that behaviour? >> >> >> >> 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... Sun Jun 18 15:47:59 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 18 Jun 2017 09:17:59 -0430 Subject: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info Message-ID: i have a override componet of gambas, lest said a improve combobox, and i want to made as library to reuse in other projects wiki dont said too much http://gambaswiki.org/wiki/doc/library but i remenber that if the library(program) has graphical things , extra steps must be done.. so due documentation are VERY FEW i need many info.. please Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Sun Jun 18 16:08:57 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 18 Jun 2017 16:08:57 +0200 Subject: [Gambas-user] Help needed from regexp gurus / String.Mid() and Mid$() implementation In-Reply-To: References: <20170617210622.GI602@...3600...> Message-ID: <20170618140857.GJ602@...3600...> On Sat, 17 Jun 2017, Fernando Cabral wrote: > Tobi > > One more thing about the way I wish it could work (I remember having done > this in C perhaps 30 years ago). The pseudo-code bellow is pretty > schematic, but I think it will clarify the issue. > > Let p and l be arrays of integers and s be the string "abc defg hijkl" > > So, after traversing the string we would have the following result: > p[0] = offset of "a" (0) > l[0] = length of "abc" (3) > p[1] = offset of "d" (4) > l[1] = lenght of "defg" (4) > p[2] = offset of "h" (9) > l[2] = lenght of "hijkl" (5). > > After this, each word could be retrieved in the following manner: > > for i = 0 to 2 > print mid(s, p[i], l[i]) > next > > I think this would be the most efficient way to do it. But I can't find how > to do it in Gambas using Regex. > As I said before, the Gambas String.Mid() and Mid$() functions do just that. The internal representation of a string is some base data (which is usually shared among many strings, via reference counting), an offset and a length. If you apply String.Mid() or Mid$() to a string, no copying takes place, only the offset and length members of the Gambas string structure are adjusted. This is why Gambas strings are sometimes called "read-only" in the wiki (the same string base data is shared by many strings, so you can't have external libraries modify the data behind a Gambas string). Even the statement s = String.Mid$(s, 10, 20) will *not* require a copy operation. You simply add 10 (UTF-8 positions) to the offset member of the string structure and set the length member to 20 (UTF-8 positions) (or to the remaining length of s if it's smaller than 20). String.Mid() and Mid$() are implemented exactly by manipulating offsets and lengths, like you want to do. In fact there are multiple places in the Gambas source tree where those two are used in place of a C-style for (i = 0; i < len; i++) do something with str[i]; loop. I suggest you look at the implementations yourself if you don't believe it: String datatype: https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/share/gambas.h#l126 Mid$(): https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/gbx/gbx_exec_loop.c#l3820 String.Mid(): https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/gbx/gbx_c_string.c#l399 (I recommend downloading the source tree and using ctags or something to navigate through it, of course, instead of the SF web interface.) You should also try the following: create a console project with this code in the Main.module: 1 ' Gambas module file 2 3 Public Sub Main() 4 Dim s As String = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" 5 Dim i As Integer 6 7 For i = 1 To 5 8 s = String.Mid$(s, i, 2*i) 9 Next 10 s &= "a" 11 End It will call String.Mid$() multiple times. Now compile and run this program through callgrind: $ cd /path/to/project $ gbc3 -ga $ valgrind --tool=callgrind gbx3 and use kcachegrind to visualise the callgraph. I'll attach the two interesting graphs to this mail. One shows that the single invocation of SUBR_cat (the &= operation at the end) needed a malloc() and hence did something like copying the string, whereas the multiple invocations of String_Mid do not lead to malloc or any other means of allocating memory, meaning no copy operation takes place. Assuming you aren't prematurely optimising here and performance is actually poor with Gambas code you should look into doing it in C and possibly avoid regular expressions altogether. If you always just want all the words in a given string, you can do it in a single linear pass through your text. But honestly, I would be surprised if you have bad performance by using String.Mid$(), since it is really just using a map of offsets and lengths on a single shared base string. Regards, Tobi PS: Again about the definition of "word in a string". My point was that if you say "a word in a string is a sequence of alphabetic characters followed by a non-alphabetic character", then "c", "bc" and "abc" will be words in the string "abc.", right? "c" is a (length-1) sequence of alphabetic characters which is followed by the non-alphabetic character "." in the string. But you don't want to call "c" alone a word because there are further alphabetic characters in front of it. You want any *longest* sequence of alphabetic characters which is followed by a non-alphabetic one, which in the string above, would only be "abc". -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: SUBR_cat-graph.png Type: image/png Size: 27782 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: String_Mid-graph.png Type: image/png Size: 25061 bytes Desc: not available URL: From leondavisjr at ...626... Sun Jun 18 16:52:22 2017 From: leondavisjr at ...626... (Leon Davis) Date: Sun, 18 Jun 2017 09:52:22 -0500 Subject: [Gambas-user] reparent menu item In-Reply-To: <1497779320507-59397.post@...3046...> References: <1497779320507-59397.post@...3046...> Message-ID: I have created a form with containing a component I designed. When the program is started the menu is created: MenuItem = new Menu(FormMain) as "FileMenu" and is displayed as a text menu of the form. There is also a context menu that is created for when the user right clicks on the control: MenuItem = new Menu(Control) as "PopupMenu". One of the options I want to present is to the user is to move the "FileMenu" to the "PopupMenu" so that the "FileMenu" is no longer displayed on the form but on the "PopupMenu". On Sun, Jun 18, 2017 at 4:48 AM, Charlie wrote: > Can you supply more detail and an example of what you are trying to do? > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/reparent-menu-item-tp59386p59397.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... Sun Jun 18 17:47:50 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 18 Jun 2017 12:47:50 -0300 Subject: [Gambas-user] Help needed from regexp gurus / String.Mid() and Mid$() implementation In-Reply-To: <20170618140857.GJ602@...3600...> References: <20170617210622.GI602@...3600...> <20170618140857.GJ602@...3600...> Message-ID: Tobi, I have been learning a lot with your comments and suggestions. Usually, I don't stress performance too much. In this case, I have tried to do things a little faster because I am using Gambas as a kind of add-on to LibreOffice. I use it to check readability, wordiness, sentences that are too long, things like that. In order to avoid coding, I resorted to RE. My first try at it resulted in very slow code. In fact, a 150-page long document took about two and a half minute to check. That's not short enough to stimulate someone to run the code repeatedly. That's when I tried introducing RegExp.Replace to canonize the input text and then applying split(). Split () is fast, but canonizing the input text proved slow. Then I resorted to RegExp.Compile and RegExp. Way faster than Regex.Replace(), but still slow. That's when I asked for help. Today, following Jussi's suggestion, I went back to Split(). Without the canonization phase, the same 150-page document was processed in 1,5 second. That' s 100 times faster than the original version. That is great. Nevertheless, there a few issues I have not been able to solve in an elegant way. Anyway, for this magnitude of performance gain, I am quite willing to go back to Split () and then do soma massaging in those situations where results are less than perfect. Thank you for the many hints you've provided me with. Regards - fernando 2017-06-18 11:08 GMT-03:00 Tobias Boege : > On Sat, 17 Jun 2017, Fernando Cabral wrote: > > Tobi > > > > One more thing about the way I wish it could work (I remember having done > > this in C perhaps 30 years ago). The pseudo-code bellow is pretty > > schematic, but I think it will clarify the issue. > > > > Let p and l be arrays of integers and s be the string "abc defg hijkl" > > > > So, after traversing the string we would have the following result: > > p[0] = offset of "a" (0) > > l[0] = length of "abc" (3) > > p[1] = offset of "d" (4) > > l[1] = lenght of "defg" (4) > > p[2] = offset of "h" (9) > > l[2] = lenght of "hijkl" (5). > > > > After this, each word could be retrieved in the following manner: > > > > for i = 0 to 2 > > print mid(s, p[i], l[i]) > > next > > > > I think this would be the most efficient way to do it. But I can't find > how > > to do it in Gambas using Regex. > > > > As I said before, the Gambas String.Mid() and Mid$() functions do just > that. > The internal representation of a string is some base data (which is usually > shared among many strings, via reference counting), an offset and a length. > If you apply String.Mid() or Mid$() to a string, no copying takes place, > only > the offset and length members of the Gambas string structure are adjusted. > This is why Gambas strings are sometimes called "read-only" in the wiki > (the > same string base data is shared by many strings, so you can't have external > libraries modify the data behind a Gambas string). Even the statement > > s = String.Mid$(s, 10, 20) > > will *not* require a copy operation. You simply add 10 (UTF-8 positions) to > the offset member of the string structure and set the length member to 20 > (UTF-8 positions) (or to the remaining length of s if it's smaller than > 20). > > String.Mid() and Mid$() are implemented exactly by manipulating offsets and > lengths, like you want to do. In fact there are multiple places in the > Gambas > source tree where those two are used in place of a C-style > > for (i = 0; i < len; i++) > do something with str[i]; > > loop. I suggest you look at the implementations yourself if you don't > believe it: > > String datatype: https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/ > trunk/main/share/gambas.h#l126 > Mid$(): https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/ > trunk/main/gbx/gbx_exec_loop.c#l3820 > String.Mid(): https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/ > trunk/main/gbx/gbx_c_string.c#l399 > > (I recommend downloading the source tree and using ctags or something to > navigate through it, of course, instead of the SF web interface.) > > You should also try the following: create a console project with this code > in the Main.module: > > 1 ' Gambas module file > 2 > 3 Public Sub Main() > 4 Dim s As String = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" > 5 Dim i As Integer > 6 > 7 For i = 1 To 5 > 8 s = String.Mid$(s, i, 2*i) > 9 Next > 10 s &= "a" > 11 End > > It will call String.Mid$() multiple times. Now compile and run this program > through callgrind: > > $ cd /path/to/project > $ gbc3 -ga > $ valgrind --tool=callgrind gbx3 > > and use kcachegrind to visualise the callgraph. I'll attach the two > interesting graphs to this mail. One shows that the single invocation > of SUBR_cat (the &= operation at the end) needed a malloc() and hence > did something like copying the string, whereas the multiple invocations > of String_Mid do not lead to malloc or any other means of allocating > memory, meaning no copy operation takes place. > > Assuming you aren't prematurely optimising here and performance is actually > poor with Gambas code you should look into doing it in C and possibly avoid > regular expressions altogether. If you always just want all the words in a > given string, you can do it in a single linear pass through your text. > > But honestly, I would be surprised if you have bad performance by using > String.Mid$(), since it is really just using a map of offsets and lengths > on a single shared base string. > > Regards, > Tobi > > PS: Again about the definition of "word in a string". My point was that if > you say "a word in a string is a sequence of alphabetic characters followed > by a non-alphabetic character", then "c", "bc" and "abc" will be words in > the string "abc.", right? "c" is a (length-1) sequence of alphabetic > characters which is followed by the non-alphabetic character "." in the > string. But you don't want to call "c" alone a word because there are > further > alphabetic characters in front of it. You want any *longest* sequence of > alphabetic characters which is followed by a non-alphabetic one, which in > the string above, would only be "abc". > > -- > "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 adamnt42 at ...626... Sun Jun 18 23:42:08 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Mon, 19 Jun 2017 07:12:08 +0930 Subject: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info In-Reply-To: References: Message-ID: <20170619071208.fbde992690405070c6bf6129@...626...> On Sun, 18 Jun 2017 09:17:59 -0430 PICCORO McKAY Lenz wrote: > i have a override componet of gambas, lest said a improve combobox, and i > want to made as library to reuse in other projects > > wiki dont said too much http://gambaswiki.org/wiki/doc/library but i > remenber that if the library(program) has graphical things , extra steps > must be done.. > > so due documentation are VERY FEW i need many info.. please > > > 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 http://gambaswiki.org/wiki/dev/gambas every word ! :-) -- B Bruen From mckaygerhard at ...626... Mon Jun 19 00:16:30 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 18 Jun 2017 18:16:30 -0400 Subject: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info In-Reply-To: <20170619071208.fbde992690405070c6bf6129@...626...> References: <20170619071208.fbde992690405070c6bf6129@...626...> Message-ID: errr, component no! i wish library! component its to put with gambas.. library its to specifically interact with user own programs or its same to apply? i already made a library and use it, but only standar process or functions.. when i made graphical controls, and put as library, these thinks does not appears to select in the box of controls! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-18 17:42 GMT-04:00 adamnt42 at ...626... : > On Sun, 18 Jun 2017 09:17:59 -0430 > PICCORO McKAY Lenz wrote: > > > i have a override componet of gambas, lest said a improve combobox, and i > > want to made as library to reuse in other projects > > > > wiki dont said too much http://gambaswiki.org/wiki/doc/library but i > > remenber that if the library(program) has graphical things , extra steps > > must be done.. > > > > so due documentation are VERY FEW i need many info.. please > > > > > > 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 > > http://gambaswiki.org/wiki/dev/gambas > > every word ! :-) > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 adamnt42 at ...626... Mon Jun 19 00:49:33 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Mon, 19 Jun 2017 08:19:33 +0930 Subject: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info In-Reply-To: References: <20170619071208.fbde992690405070c6bf6129@...626...> Message-ID: <20170619081933.d0e00d34f161a56b0e43122a@...626...> On Sun, 18 Jun 2017 18:16:30 -0400 PICCORO McKAY Lenz wrote: > errr, component no! i wish library! component its to put with gambas.. > library its to specifically interact with user own programs Correct > i already made a library and use it, but only standar process or > functions.. Correct > when i made graphical controls, and put as library, these thinks does not > appears to select in the box of controls! Absolutely correct! The IDE is not your "user own programs", it is part of Gambas. So if you want the Gambas IDE to recognize a custom control then it must be a component. The fact that you are also using that control in one of your "user own programs" is imaterial. (You could package it as a library and use it in your own program - but you would have to code that program outside the IDE.) b -- B Bruen From mckaygerhard at ...626... Mon Jun 19 00:50:01 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 18 Jun 2017 18:50:01 -0400 Subject: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info In-Reply-To: <20170619071208.fbde992690405070c6bf6129@...626...> References: <20170619071208.fbde992690405070c6bf6129@...626...> Message-ID: and that wiki page have some misctakes.. as example: "Consequently, you have to set the version of your component project to the current Gambas version!" seems does not understand the difference between components and librarys.. components are to implements direct with each version of gambas.. and include as gambas specific feature of release library its a featured independent of the release of gambas.. or gambas installations, forward compatible that's why the "set the version to current gambas".. and many other thinks.. i'm not expert in "components" but i think the behaviour expected that this wiki page said are not complety corrected Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-18 17:42 GMT-04:00 adamnt42 at ...626... : > On Sun, 18 Jun 2017 09:17:59 -0430 > PICCORO McKAY Lenz wrote: > > > i have a override componet of gambas, lest said a improve combobox, and i > > want to made as library to reuse in other projects > > > > wiki dont said too much http://gambaswiki.org/wiki/doc/library but i > > remenber that if the library(program) has graphical things , extra steps > > must be done.. > > > > so due documentation are VERY FEW i need many info.. please > > > > > > 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 > > http://gambaswiki.org/wiki/dev/gambas > > every word ! :-) > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 19 00:54:51 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 18 Jun 2017 18:54:51 -0400 Subject: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info In-Reply-To: <20170619081933.d0e00d34f161a56b0e43122a@...626...> References: <20170619071208.fbde992690405070c6bf6129@...626...> <20170619081933.d0e00d34f161a56b0e43122a@...626...> Message-ID: ahhh ok so components are more like extensions to the Gambas language, but then this its like as should be distributed with the Gambas source code. i wish a control specific to my programs! not as extension of the gambas languaje! i only components a way to made this? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-18 18:49 GMT-04:00 adamnt42 at ...626... : > On Sun, 18 Jun 2017 18:16:30 -0400 > PICCORO McKAY Lenz wrote: > > > errr, component no! i wish library! component its to put with gambas.. > > library its to specifically interact with user own programs > Correct > > > i already made a library and use it, but only standar process or > > functions.. > Correct > > > when i made graphical controls, and put as library, these thinks does not > > appears to select in the box of controls! > Absolutely correct! > > The IDE is not your "user own programs", it is part of Gambas. So if you > want the Gambas IDE to recognize a custom control then it must be a > component. > The fact that you are also using that control in one of your "user own > programs" is imaterial. > > (You could package it as a library and use it in your own program - but > you would have to code that program outside the IDE.) > > b > > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Mon Jun 19 12:54:48 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 19 Jun 2017 03:54:48 -0700 (MST) Subject: [Gambas-user] Building binaries with gba3 sometimes fails Message-ID: <1497869688694-59410.post@...3046...> Dear all, I come in peace. I have some shell scripts to batch compile a bunch of Gambas 3 projects. Sometimes I notice the gbr3 builds an executable, but it it does NOT include some latest and saved changes... I have to open the project and run it in the IDE, close IDE, and gbr3 it again for it to work. Anybody know why? thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Building-binaries-with-gba3-sometimes-fails-tp59410.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jun 19 12:58:18 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Jun 2017 12:58:18 +0200 Subject: [Gambas-user] Building binaries with gba3 sometimes fails In-Reply-To: <1497869688694-59410.post@...3046...> References: <1497869688694-59410.post@...3046...> Message-ID: <36f12aac-0d5e-755c-211e-45bbb45636a7@...1...> Le 19/06/2017 ? 12:54, alexchernoff a ?crit : > Dear all, > > I come in peace. I have some shell scripts to batch compile a bunch of > Gambas 3 projects. Sometimes I notice the gbr3 builds an executable, but it > it does NOT include some latest and saved changes... > > I have to open the project and run it in the IDE, close IDE, and gbr3 it > again for it to work. > > Anybody know why? > > thanks! > > gbr3 does not take into account your last changes. Only gbc3 (the compiler) does. -- Beno?t Minisini From alexchernoff at ...67... Mon Jun 19 13:00:22 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 19 Jun 2017 04:00:22 -0700 (MST) Subject: [Gambas-user] Building binaries with gba3 sometimes fails In-Reply-To: <36f12aac-0d5e-755c-211e-45bbb45636a7@...1...> References: <1497869688694-59410.post@...3046...> <36f12aac-0d5e-755c-211e-45bbb45636a7@...1...> Message-ID: <1497870022785-59412.post@...3046...> sorry, I meant I compile using gba3. Or does it also not account for changes? thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Building-binaries-with-gba3-sometimes-fails-tp59410p59412.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Mon Jun 19 13:03:26 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Jun 2017 13:03:26 +0200 Subject: [Gambas-user] Building binaries with gba3 sometimes fails In-Reply-To: <1497870022785-59412.post@...3046...> References: <1497869688694-59410.post@...3046...> <36f12aac-0d5e-755c-211e-45bbb45636a7@...1...> <1497870022785-59412.post@...3046...> Message-ID: <25915e56-bb11-0871-d14a-452b5bbcc77f@...1...> Le 19/06/2017 ? 13:00, alexchernoff a ?crit : > sorry, I meant I compile using gba3. Or does it also not account for changes? > > thanks! > Yes, I understood you meant gba3. And gba3 is not a compiler, it's an archiver. It does not take your changes into account. -- Beno?t Minisini From alexchernoff at ...67... Mon Jun 19 13:12:42 2017 From: alexchernoff at ...67... (alexchernoff) Date: Mon, 19 Jun 2017 04:12:42 -0700 (MST) Subject: [Gambas-user] Building binaries with gba3 sometimes fails In-Reply-To: <25915e56-bb11-0871-d14a-452b5bbcc77f@...1...> References: <1497869688694-59410.post@...3046...> <36f12aac-0d5e-755c-211e-45bbb45636a7@...1...> <1497870022785-59412.post@...3046...> <25915e56-bb11-0871-d14a-452b5bbcc77f@...1...> Message-ID: <1497870762900-59414.post@...3046...> Okay, so if i run gbc3 on the project before gba3, it should compile it and then archive it, right? peace! -- View this message in context: http://gambas.8142.n7.nabble.com/Building-binaries-with-gba3-sometimes-fails-tp59410p59414.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Mon Jun 19 17:40:38 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 19 Jun 2017 11:40:38 -0400 Subject: [Gambas-user] ODBC standar not tested property and many wiki/docs need corrections Message-ID: Hi gambas devels and users, in some mail conversation with Jorje Carrion ( shordi) i noted that most gambas developers think that odbc supports same features like normal native connections, many wiki pages assumed all the gb.db connection types works equal, and it not as said! .. and seems nobody except by me test or use really the ODBC behaviour in gambas.. I mean: combinatios of ODBC+MSSQL or ODBC+ORACLE or ODBC+DB2 or ODBC+SYBASE/FREETDS are not tested never in gambas i noted.. the opened bugs confirmed that http://gambaswiki.org/bugtracker/edit?object=BUG.1113 sql does not exec after connect ODBC+FREETDS http://gambaswiki.org/bugtracker/edit?object=BUG.1102 in some cases subquerys does not return nothing http://gambaswiki.org/bugtracker/edit?object=BUG.1100 due ODBC specs, cursor are FOWARD ONLY fill the gridview using DATA event need that Result object have a cursor, using MoveTO, but due the Result are Foward only usage of the "MoveTo" are not working in all ODBC combinations cases... by example wiki page said: "You can fill the grid explicitly, or implement the Data event to display the grid contents on demand." http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data of course we can use other methos, but with thousand of rows are very inefective... All of these "limitations" around ODBC combinations must be in all the realted wikis, due as like me, spend many hours thinking that "moveto" can be done in odbc connections like sqlite or mysql connections.. From taboege at ...626... Mon Jun 19 17:48:42 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 19 Jun 2017 17:48:42 +0200 Subject: [Gambas-user] Building binaries with gba3 sometimes fails In-Reply-To: <1497870762900-59414.post@...3046...> References: <1497869688694-59410.post@...3046...> <36f12aac-0d5e-755c-211e-45bbb45636a7@...1...> <1497870022785-59412.post@...3046...> <25915e56-bb11-0871-d14a-452b5bbcc77f@...1...> <1497870762900-59414.post@...3046...> Message-ID: <20170619154842.GA579@...3600...> On Mon, 19 Jun 2017, alexchernoff wrote: > Okay, > > so if i run gbc3 on the project before gba3, it should compile it and then > archive it, right? > > peace! > Yes: gbc3 is the compiler, it compiles your source code into object files (stored inside the hidden .gambas/ directory in your project). gbx3 is the interpreter, it executes the object files created by the compiler. gba3 is the archiver, it takes the object files and all ressources and puts them into an executable archive (*.gambas file). gbr3 is also the interpreter, specialised to running *.gambas files. So, whatever you do (except compiling), you have to compile first to make sure your object files are up-to-date. The are more obscure Gambas utilities which don't require compilation because they take plain-text Gambas source code and compile it auto- matically: gbs3 is the scripter, it executes plain-text Gambas scripts. gbw3 is the web scripter, it executes so-called Gambas server pages and always includes gb.web. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From fernandojosecabral at ...626... Mon Jun 19 21:19:41 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Mon, 19 Jun 2017 16:19:41 -0300 Subject: [Gambas-user] Help needed from regexp gurus In-Reply-To: <20170617210622.GI602@...3600...> References: <20170617210622.GI602@...3600...> Message-ID: This is mostly to thank Tobi and Jussi for their help in solving some issues that were making me unhappy. With three lines of code I have solved what used to take me twenty or so. What is better yet: execution time fell down from 2min 30 sec to 1,5 seconds. And the code is much more transparent, The three lines bellow are the heart and brain of the program: MatchedWords = Split(RawText, " \"'`[]{}+-_:#$%&.!?:(),;-\n", "", True) MatchedSentences = Split(RegExp.Replace(RawText, "([.])|([!])|([?])|(;\n)|([:]\n)", "&1&2&3&4&5\x00", RegExp.UTF8), "\x00", "", True) MatchedParagraphs = Split(RawText, "\n", "", True) These three lines will take an entire text file (read into the variable RawText) and split it into words, sentences and paragraphs. They ONE SECOND to process a 150-page long text file with 414,961 bytes, tallying 69,196 words, 4,626 sentences and 2,409 paragraphs. I am impressed! In this last (and fast) version I have depended very little on RegExp. But I still have used it to do some massaging on the original text. The line "MatchedSentences = ...." above shows an example. The characters ".?!", and the strings ";\n" and ":\n" signal the end of a sentence. Nevertheless, I can not use them as separators for Split(). I can' t because Split () would drop them as it does with separators. Nevertheless, I need them later. So I used RegExpl.Replace () to insert a \x00 after each of them and then I used \x00 as the only sentence separator. This preserved the punctuation marks I needed at the end of each sentence. After running those three lines I still need to do some additional processing with the resulting arrays, but that only consumes another half a second for the same 150-page long document. Now I am happy and I feel stimulated to complete the code and do some polishing. Thank you, Tobi and Jussi. You have helped a lot. 2017-06-17 18:06 GMT-03:00 Tobias Boege : > On Sat, 17 Jun 2017, Fernando Cabral wrote: > > Still beating my head against the wall due to my lack of knowledge about > > the PCRE methods and properties... Because of this, I have progressed not > > only very slowly but also -- I fell -- in a very inelegant way. So > perhaps > > you guys who are more acquainted with PCRE might be able to hint me on a > > better solution. > > > > I want to search a long string that can contain a sentence, a paragraph > or > > even a full text. I wanna find and isolate every word it contains. A word > > is defined as any sequence of alphabetic characters followed by a > > non-alphatetic character. > > > > The Mathematician in me can't resist to point this out: you hopefully > wanted > to define "word in a string" as "a *longest* sequence of alphabetic > characters > followed by a non-alphabetic character (or the end of the string)". Using > your > definition above, the words in "abc:" would be "c", "bc" and "abc", whereas > you probably only wanted "abc" (the longest of those). > > > The sample code bellow does work, but I don't feel it is as elegant and > as > > fast as it could and should be. Especially the way I am traversing the > > string from the beginning to the end. It looks awkward and slow. There > must > > be a more efficient way, like working only with offsets and lengths > instead > > of copying the string again and again. > > > > You think worse of String.Mid() than it deserves, IMHO. Gambas strings > are triples of a pointer to some data, a start index and a length, and > the built-in string functions take care not to copy a string when it's > not necessary. The plain Mid$() function (dealing with ASCII strings only) > is implemented as a constant-time operation which simply takes your input > string and adjusts the start index and length to give you the requested > portion of the string. The string doesn't even have to be read, much less > copied, to do this. > > Now, the String.Mid() function is somewhat more complicated, because > UTF-8 strings have variable-width characters, which makes it difficult > to map byte indices to character positions. To implement String.Mid(), > your string has to be read, but, again, not copied. > > Extracting a part of a string is a non-destructive operation in Gambas > and no copying takes place. (Concatenating strings, on the other hand, > will copy.) So, there is some reading overhead (if you need UTF-8 strings), > but it's smaller than you probably thought. > > > Dim Alphabetics as string "abc...zyzABC...ZYZ" > > Dim re as RegExp > > Dim matches as String [] > > Dim RawText as String > > > > re.Compile("([" & Alphabetics & "]+?)([^" & Alphabetics & "]+)", > > RegExp.utf8) > > RawText = "abc12345def ghi jklm mno p1" > > > > Do While RawText > > re.Exec(RawText) > > matches.add(re[1].text) > > RawText = String.Mid(RawText, String.Len(re.text) + 1) > > Loop > > > > For i = 0 To matches.Count - 1 > > Print matches[i] > > Next > > > > > > Above code correctly finds "abc, def, ghi, jlkm, mno, p". But the tricks > I > > have used are cumbersome (like advancing with string.mid() and resorting > to > > re[1].text and re.text. > > > > Well, I think you can't use PCRE alone to solve your problem, if you want > to capture a variable number of words in your submatches. I did a bit of > reading and from what I gather [1][2] capturing group numbers are assigned > based on the verbatim regular expression, i.e. the number of submatches > you can receive is limited by the number of "(...)" constructs in your > expression; and the (otherwise very nifty) recursion operator (?R) does > not give you an unlimited number of capturing groups, sadly. > > Anyway, I think by changing your regular expression, you can let PCRE take > care of the string advancement, like so: > > 1 #!/usr/bin/gbs3 > 2 > 3 Use "gb.pcre" > 4 > 5 Public Sub Main() > 6 Dim r As New RegExp > 7 Dim s As string > 8 > 9 r.Compile("([[:alpha:]]+)[[:^alpha:]]+(.*$)", RegExp.UTF8) > 10 s = "abc12345def ghi jklm mno p1" > 11 Print "Subject:";; s > 12 Do > 13 r.Exec(s) > 14 If r.Offset = -1 Then Break > 15 Print " ->";; r[1].Text > 16 s = r[2].Text > 17 Loop While s > 18 End > > Output: > > Subject: abc12345def ghi jklm mno p1 > -> abc > -> def > -> ghi > -> jklm > -> mno > -> p > > But, I think, this is less efficient than using String.Mid(). The trailing > group (.*$) _may_ make the PCRE library read the entire subject every time. > And I believe gb.pcre will copy your submatch string when returning it. > If you care deeply about this, you'll have to trace the code in gb.pcre > and main/gbx (the interpreter) to see what copies strings and what doesn't. > > Regards, > Tobi > > [1] http://www.regular-expressions.info/recursecapture.html (Capturing > Groups Inside Recursion or Subroutine Calls) > [2] http://www.rexegg.com/regex-recursion.html (Groups Contents and > Numbering in Recursive Expressions) > > -- > "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 bugtracker at ...3416... Tue Jun 20 00:10:23 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 19 Jun 2017 22:10:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1115: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1115&from=L21haW4- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Tue Jun 20 00:12:46 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 19 Jun 2017 22:12:46 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 #4 by Beno?t MINISINI: I have no error at all on the development version, so I think the bug is already fixed. Is it possible for you to try the development version? Beno?t MINISINI changed the state of the bug to: Working. From bugtracker at ...3416... Tue Jun 20 00:45:19 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 19 Jun 2017 22:45:19 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1116: Error when a project has both gb.qt4 and gb.web.form In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1116&from=L21haW4- Comment #2 by Beno?t MINISINI: Fixed in revision #8143. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Tue Jun 20 01:49:13 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 19 Jun 2017 23:49:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1112&from=L21haW4- Comment #3 by Beno?t MINISINI: Done in revision #8144. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Tue Jun 20 01:49:53 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 19 Jun 2017 23:49:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1112&from=L21haW4- Comment #4 by Beno?t MINISINI: Remark: it is a libcurl feature. It has nothing to do with gb.net. From bugtracker at ...3416... Tue Jun 20 04:21:13 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 20 Jun 2017 02:21:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1115: Segmentation Fault STREAM_write - gbr3 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1115&from=L21haW4- Comment #3 by Olivier CRUILLES: I will sent the source code soon. Olivier From bugtracker at ...3416... Tue Jun 20 04:32:15 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 20 Jun 2017 02:32:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1112: Request to add bufferSize configuration into Local Socket - gb.net In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1112&from=L21haW4- Comment #5 by Olivier CRUILLES: I will test it soon. Thank you Olivier From mckaygerhard at ...626... Tue Jun 20 05:29:24 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 19 Jun 2017 22:59:24 -0430 Subject: [Gambas-user] wiki pages related to row count partially incorrect Message-ID: the gambas wiki about rows count are partially incorrect.. http://gambaswiki.org/wiki/comp/gb.db/result/count?l=en the problem its that the cursor in most drivers return a Forwad Only and due tat the count implementation couln not be... the specification are better describe in the odbc related bugs in gambaswiki please read it and yeah, i'm too concentrate in wiki documentation, due causes too many headaches to non-english speaker users.. due translations problems Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Tue Jun 20 05:34:51 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 19 Jun 2017 23:04:51 -0430 Subject: [Gambas-user] missing wiki gridview.rows.selection Message-ID: the documentation for Rows.Selection i cannot found in wiki.. ide does not show any documentation.. i found that piede of code in the recet upload of the wGridfilter and no doc its raised in ide: For n = 0 To $Grid.columns.Count - 1 valor = IIf($Grid[$Grid.Rows.Selection[c], n].text = "", $Grid[$Grid.Rows.Selection[c], n].richText, $Grid[$Grid.Rows.Selection[c], n].text) clave = $Grid.rslt.Fields[n].Name actual.Add(valor, clave) Next any information about that symbol please! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From adamnt42 at ...626... Tue Jun 20 05:48:57 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Tue, 20 Jun 2017 13:18:57 +0930 Subject: [Gambas-user] missing wiki gridview.rows.selection In-Reply-To: References: Message-ID: <20170620131857.cf59894c88b3fc1990aa791c@...626...> Piccoro, The documentation is there, it took me 4 clicks to get to it from the gb.qt4 page. I'll change my previous comment to "Read AND LOOK AT EVERY word on the Gambas help page. gridview.Rows is a property that returns an object of the **virtual class** _GridView_Rows type. So you have to go there to see the description of that class. IOW in the syntax box notice that the _GridView_Rows word is a hyperlink to the page describing that class. b On Mon, 19 Jun 2017 23:04:51 -0430 PICCORO McKAY Lenz wrote: > the documentation for Rows.Selection i cannot found in wiki.. ide does not > show any documentation.. > > i found that piede of code in the recet upload of the wGridfilter and no > doc its raised in ide: > > For n = 0 To $Grid.columns.Count - 1 > valor = IIf($Grid[$Grid.Rows.Selection[c], n].text = "", > $Grid[$Grid.Rows.Selection[c], n].richText, $Grid[$Grid.Rows.Selection[c], > n].text) > clave = $Grid.rslt.Fields[n].Name > actual.Add(valor, clave) > Next > > any information about that symbol please! > > > 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 -- B Bruen From adamnt42 at ...626... Tue Jun 20 07:44:08 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Tue, 20 Jun 2017 15:14:08 +0930 Subject: [Gambas-user] (Main) Form won't close - how to tell the user why Message-ID: <20170620151408.75dc9fad5acc487dfd33eee8@...626...> I have a main form that has a lot of ways that the user can start other processes from, some with wait and some without. When they attempt to close the main form, the event loop won't terminate. Which is proper. However, I need to be able to tell the user to close the "such and such window". How can I find out which process is blocking the end of the event loop? regards b -- B Bruen From gambas at ...1... Tue Jun 20 10:16:23 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 20 Jun 2017 10:16:23 +0200 Subject: [Gambas-user] wiki pages related to row count partially incorrect In-Reply-To: References: Message-ID: <31247df6-f1ba-8fb9-19a8-e81b4dd4c427@...1...> Le 20/06/2017 ? 05:29, PICCORO McKAY Lenz a ?crit : > the gambas wiki about rows count are partially incorrect.. > > http://gambaswiki.org/wiki/comp/gb.db/result/count?l=en > > the problem its that the cursor in most drivers return a Forwad Only and > due tat the count implementation couln not be... > > the specification are better describe in the odbc related bugs in > gambaswiki please read it > > and yeah, i'm too concentrate in wiki documentation, due causes too many > headaches to non-english speaker users.. due translations problems > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com Because that wiki page is about common drivers, not about the ODBC specific stuff. -- Beno?t Minisini From gambas at ...1... Tue Jun 20 10:17:52 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 20 Jun 2017 10:17:52 +0200 Subject: [Gambas-user] (Main) Form won't close - how to tell the user why In-Reply-To: <20170620151408.75dc9fad5acc487dfd33eee8@...626...> References: <20170620151408.75dc9fad5acc487dfd33eee8@...626...> Message-ID: <20db7a30-4f98-5096-d96a-846364c6060f@...1...> Le 20/06/2017 ? 07:44, adamnt42 at ...626... a ?crit : > I have a main form that has a lot of ways that the user can start > other processes from, some with wait and some without. When they > attempt to close the main form, the event loop won't terminate. Which > is proper. However, I need to be able to tell the user to close the > "such and such window". How can I find out which process is blocking > the end of the event loop? > > regards b > You must keep the handles of your processes and check their status yourself. Regards, -- Beno?t Minisini From adamnt42 at ...626... Tue Jun 20 10:58:54 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Tue, 20 Jun 2017 18:28:54 +0930 Subject: [Gambas-user] Follow up from "...row count partially incorrect" Message-ID: <20170620182854.7b5fff8e2eb61c77bc98ff72@...626...> I was looking at this today and noticed that my offline help still showed an old version of that page. So I cleared my offline version and downloaded the help again. Now the downloaded "timestamp" file says "20160411" and the bz2 file is: -rw-rw-r-- 1 bb bb 29249535 Apr 11 2016 ../wiki.tar.bz2 Am I doing something wrong? This seems to be a very old version. regards b -- B Bruen From charlie at ...2793... Tue Jun 20 15:37:08 2017 From: charlie at ...2793... (Charlie) Date: Tue, 20 Jun 2017 06:37:08 -0700 (MST) Subject: [Gambas-user] (Main) Form won't close - how to tell the user why In-Reply-To: <20170620151408.75dc9fad5acc487dfd33eee8@...626...> References: <20170620151408.75dc9fad5acc487dfd33eee8@...626...> Message-ID: <1497965828977-59432.post@...3046...> adamnt42 at ...626... wrote > When they attempt to close the main form, the event loop won't terminate. > Which is proper. However, I need to be able to tell the user to close the > "such and such window". How can I find out which process is blocking the > end of the event loop? You could try hiding the Main form and only closing it when the user closes the other forms. Have a look at the attached program. GUITest.tar ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Main-Form-won-t-close-how-to-tell-the-user-why-tp59428p59432.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Tue Jun 20 17:38:19 2017 From: bagonergi at ...626... (Gianluigi) Date: Tue, 20 Jun 2017 17:38:19 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty Message-ID: A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling Gambas gets error of Impossible to find package for libsage-dev and llvm-3.5-dev. I searched on https://packages.ubuntu.com/ and concerning llvm the oldest library available in zesty is 3.7, while concerning libsage I get nothing, but looking in descriptions for Supports OpenGL in SDL applications, I seemed to understand that gambas3-gb-opengl-sge should replace it. How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no 3.5? Can you help me? Regards Gianluigi From gambas at ...1... Tue Jun 20 17:43:09 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 20 Jun 2017 17:43:09 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: <8a5f830c-d8e3-2549-9d86-89fb35971e3f@...1...> Le 20/06/2017 ? 17:38, Gianluigi a ?crit : > A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling > Gambas gets error of Impossible to find package for libsage-dev and > llvm-3.5-dev. > I searched on https://packages.ubuntu.com/ and concerning llvm the oldest > library available in zesty is 3.7, while concerning libsage I get nothing, > but looking in descriptions for Supports OpenGL in SDL applications, I > seemed to understand that gambas3-gb-opengl-sge should replace it. > How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no 3.5? > Can you help me? > > Regards > > Gianluigi You cannot compile gb.jit anymore on recent Ubuntu systems, as they removed llvm 3.5. So just let it be disabled. And don't specify libsage-dev, it should work without. If not, just tell me. Regards, -- Beno?t Minisini From mckaygerhard at ...626... Tue Jun 20 19:29:48 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 20 Jun 2017 12:59:48 -0430 Subject: [Gambas-user] old question: detect gambas version in code Message-ID: i want to make a piece of software work in both gambas olders (gambas3 << 3.5) and gambas newers (gambas >> 3.5.1) by example, the smtp has some changes depending on the version, also the gridview too.. example: SMTP was rewriten in 3.6 so Body are not present in 3.5 http://gambaswiki.org/wiki/comp/gb.net.smtp/smtpclient/body?nh this makes some of my code not work in embebed devices that does not run modern versions of linux and some libs required by gambas 3.9 same behaviour with new rows.selection that are since 3.4 http://gambaswiki.org/wiki/comp/gb.qt4/_gridview_rows/selection so there's a way to detect gambas version and paste code respect that? (was answered some time ago, but i cannot find the mail) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Tue Jun 20 19:35:55 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 20 Jun 2017 19:35:55 +0200 Subject: [Gambas-user] old question: detect gambas version in code In-Reply-To: References: Message-ID: <20170620173555.GC575@...3600...> On Tue, 20 Jun 2017, PICCORO McKAY Lenz wrote: > i want to make a piece of software work in both gambas olders (gambas3 << > 3.5) and gambas newers (gambas >> 3.5.1) > > by example, the smtp has some changes depending on the version, also the > gridview too.. > > example: > > SMTP was rewriten in 3.6 so Body are not present in 3.5 > http://gambaswiki.org/wiki/comp/gb.net.smtp/smtpclient/body?nh > this makes some of my code not work in embebed devices that does not run > modern versions of linux and some libs required by gambas 3.9 > > same behaviour with new rows.selection that are since 3.4 > http://gambaswiki.org/wiki/comp/gb.qt4/_gridview_rows/selection > > so there's a way to detect gambas version and paste code respect that? (was > answered some time ago, but i cannot find the mail) > You can do a run-time check with System.FullVersion [1]. A compile-time check is also possible by using the #If preprocessor syntax [2]. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb/system/fullversion [2] http://gambaswiki.org/wiki/lang/.if -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Tue Jun 20 19:42:12 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 20 Jun 2017 13:12:12 -0430 Subject: [Gambas-user] old question: detect gambas version in code In-Reply-To: <20170620173555.GC575@...3600...> References: <20170620173555.GC575@...3600...> Message-ID: Excelent! thanks tobias Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-20 13:05 GMT-04:30 Tobias Boege : > On Tue, 20 Jun 2017, PICCORO McKAY Lenz wrote: > > i want to make a piece of software work in both gambas olders (gambas3 << > > 3.5) and gambas newers (gambas >> 3.5.1) > > > > by example, the smtp has some changes depending on the version, also the > > gridview too.. > > > > example: > > > > SMTP was rewriten in 3.6 so Body are not present in 3.5 > > http://gambaswiki.org/wiki/comp/gb.net.smtp/smtpclient/body?nh > > this makes some of my code not work in embebed devices that does not run > > modern versions of linux and some libs required by gambas 3.9 > > > > same behaviour with new rows.selection that are since 3.4 > > http://gambaswiki.org/wiki/comp/gb.qt4/_gridview_rows/selection > > > > so there's a way to detect gambas version and paste code respect that? > (was > > answered some time ago, but i cannot find the mail) > > > > You can do a run-time check with System.FullVersion [1]. A compile-time > check is also possible by using the #If preprocessor syntax [2]. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/comp/gb/system/fullversion > [2] http://gambaswiki.org/wiki/lang/.if > > -- > "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... Tue Jun 20 19:46:27 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 20 Jun 2017 13:16:27 -0430 Subject: [Gambas-user] old question: detect gambas version in code In-Reply-To: References: <20170620173555.GC575@...3600...> Message-ID: er tobias.. the #If saaid that only allow string values.. how the comparison are do it? i mean i want to compare the gambas version, so its for detection of a lower rather that 3.5 : #if Version <= 3.5 print "version 3.4" #endif so i cannot see the value of the Version or how do the comparison, the wiki dont say so much Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-20 13:12 GMT-04:30 PICCORO McKAY Lenz : > Excelent! thanks tobias > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-20 13:05 GMT-04:30 Tobias Boege : > >> On Tue, 20 Jun 2017, PICCORO McKAY Lenz wrote: >> > i want to make a piece of software work in both gambas olders (gambas3 >> << >> > 3.5) and gambas newers (gambas >> 3.5.1) >> > >> > by example, the smtp has some changes depending on the version, also the >> > gridview too.. >> > >> > example: >> > >> > SMTP was rewriten in 3.6 so Body are not present in 3.5 >> > http://gambaswiki.org/wiki/comp/gb.net.smtp/smtpclient/body?nh >> > this makes some of my code not work in embebed devices that does not run >> > modern versions of linux and some libs required by gambas 3.9 >> > >> > same behaviour with new rows.selection that are since 3.4 >> > http://gambaswiki.org/wiki/comp/gb.qt4/_gridview_rows/selection >> > >> > so there's a way to detect gambas version and paste code respect that? >> (was >> > answered some time ago, but i cannot find the mail) >> > >> >> You can do a run-time check with System.FullVersion [1]. A compile-time >> check is also possible by using the #If preprocessor syntax [2]. >> >> Regards, >> Tobi >> >> [1] http://gambaswiki.org/wiki/comp/gb/system/fullversion >> [2] http://gambaswiki.org/wiki/lang/.if >> >> -- >> "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... Tue Jun 20 20:08:18 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 20 Jun 2017 13:38:18 -0430 Subject: [Gambas-user] missing wiki gridview.rows.selection In-Reply-To: <20170620131857.cf59894c88b3fc1990aa791c@...626...> References: <20170620131857.cf59894c88b3fc1990aa791c@...626...> Message-ID: you must take in consideration that i ask here due in ide that information does not how.. so i assumed the wiki page not exist.., i go directly to gridview of qt4 component and does not show that property so i assumed confirmation of not existence... so then after adamnt42 send that mail, was a cache problem as adamnt42 said in the threath "Follow up from ...row count partially incorrect" NOW I HAVE ANOTHER QUUESTION, since what gambas version was implemented? in 3.1 this are not!.. in 3.5 exist! so 3.4? 3.3? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-19 23:18 GMT-04:30 adamnt42 at ...626... : > Piccoro, > The documentation is there, it took me 4 clicks to get to it from the > gb.qt4 page. I'll change my previous comment to "Read AND LOOK AT EVERY > word on the Gambas help page. > gridview.Rows is a property that returns an object of the **virtual > class** _GridView_Rows type. So you have to go there to see the > description of that class. IOW in the syntax box notice that the > _GridView_Rows word is a hyperlink to the page describing that class. > b > > > On Mon, 19 Jun 2017 23:04:51 -0430 > PICCORO McKAY Lenz wrote: > > > the documentation for Rows.Selection i cannot found in wiki.. ide does > not > > show any documentation.. > > > > i found that piede of code in the recet upload of the wGridfilter and no > > doc its raised in ide: > > > > For n = 0 To $Grid.columns.Count - 1 > > valor = IIf($Grid[$Grid.Rows.Selection[c], n].text = "", > > $Grid[$Grid.Rows.Selection[c], n].richText, > $Grid[$Grid.Rows.Selection[c], > > n].text) > > clave = $Grid.rslt.Fields[n].Name > > actual.Add(valor, clave) > > Next > > > > any information about that symbol please! > > > > > > 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 > > > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 20 21:58:58 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 20 Jun 2017 19:58:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1121: Tabstrip color. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1121&from=L21haW4- Comment #1 by Beno?t MINISINI: This is not the TabStrip control, but the TabPanel. And this is by design, for all multi-containers made in Gambas. What is needed is a "TextColor" property that would define the foreground color of labels. From bugtracker at ...3416... Tue Jun 20 22:16:11 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 20 Jun 2017 20:16:11 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1121: Tabstrip color. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1121&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Tue Jun 20 22:21:26 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 20 Jun 2017 20:21:26 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #11 by PICCORO LENZ MCKAY: hi, any progress on this? From bugtracker at ...3416... Tue Jun 20 22:43:17 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 20 Jun 2017 20:43:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1122&from=L21haW4- Comment #2 by Beno?t MINISINI: It should be fixed with revision #8145. Beno?t MINISINI changed the state of the bug to: Fixed. From bagonergi at ...626... Tue Jun 20 22:43:45 2017 From: bagonergi at ...626... (Gianluigi) Date: Tue, 20 Jun 2017 22:43:45 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: I had immediately answered to the mail of Benoit but here [0] not appear, what am I doing wrong? Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/Errors-compiling-on-Ubuntu-17-04-zesty-td59433.html 2017-06-20 17:38 GMT+02:00 Gianluigi : > A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling > Gambas gets error of Impossible to find package for libsage-dev and > llvm-3.5-dev. > I searched on https://packages.ubuntu.com/ and concerning llvm the oldest > library available in zesty is 3.7, while concerning libsage I get nothing, > but looking in descriptions for Supports OpenGL in SDL applications, I > seemed to understand that gambas3-gb-opengl-sge should replace it. > How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no 3.5? > Can you help me? > > Regards > > Gianluigi > From taboege at ...626... Tue Jun 20 23:44:25 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 20 Jun 2017 23:44:25 +0200 Subject: [Gambas-user] missing wiki gridview.rows.selection In-Reply-To: References: <20170620131857.cf59894c88b3fc1990aa791c@...626...> Message-ID: <20170620214425.GD575@...3600...> On Tue, 20 Jun 2017, PICCORO McKAY Lenz wrote: > NOW I HAVE ANOTHER QUUESTION, since what gambas version was implemented? in > 3.1 this are not!.. in 3.5 exist! so 3.4? 3.3? > I doubt anyone remembers this. You'll have to ask subversion. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at ...626... Wed Jun 21 03:42:01 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jun 2017 11:12:01 +0930 Subject: [Gambas-user] (Main) Form won't close - how to tell the user why In-Reply-To: <1497965828977-59432.post@...3046...> References: <20170620151408.75dc9fad5acc487dfd33eee8@...626...> <1497965828977-59432.post@...3046...> Message-ID: <20170621111201.9b25b7017e8cca4eb25ff9be@...626...> On Tue, 20 Jun 2017 06:37:08 -0700 (MST) Charlie wrote: > adamnt42 at ...626... wrote > > When they attempt to close the main form, the event loop won't terminate. > > Which is proper. However, I need to be able to tell the user to close the > > "such and such window". How can I find out which process is blocking the > > end of the event loop? > > You could try hiding the Main form and only closing it when the user closes > the other forms. Have a look at the attached program. > > GUITest.tar > > -- B Bruen From bugtracker at ...3416... Wed Jun 21 04:00:57 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 21 Jun 2017 02:00:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #12 by zxMarce: I'm on it, already fixed, but the way I fixed it not only is not elegant, but also plain ugly. I would like to get Beno?t's opinion on this as well, because the patch consists in changing a return code from an ODBC subsystem call so the Gambas call does not fail (as I said already, the query is run, but ODBC returns a code that was not being taken into account). When the query is run by ODBC and returns rows, the return code is SQL_SUCCESS. When the query runs but there's no data to retrieve, the same call responds SQL_NO_DATA. These constants' values are obviously different. The patch simply forces SQL_NO_DATA to be SQL_SUCCESS, but I simply tried a coupla queries, I don't really know if this "solution" covers all cases. zxMarce. From bugtracker at ...3416... Wed Jun 21 04:36:41 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 21 Jun 2017 02:36:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #13 by PICCORO LENZ MCKAY: i think your patch are not so "ugly" due relies on the bad behaviour of the ODBC and SQL standar, i mean umm jajaja its very confusing that the ODBC paper said after a "susessfull sql ddl" return SQL_NO_DATA event SQL_SUCCESS, but with M$ behind scenes.. no surprises.. analizing, if the SQL running was successfully and its no a SQL DML must retrieve as response SQL_SUCCESS, the problem maybe are on that cases: UPDATE, DELETE and INSERT does not retrieve any rows, only notifies was afected rows.. so return a SQL_NO_DATA, but are DML, so the only case that return data its the SELECT case... so we can assume that any other statement will no return never some data.. only "affected rows" so for any SQL query made, we can assumed SQL_SUCCESS if no problem was happened.. the only exception will be SELECT and for those are not usefully due we not have proper CURSOR, only a FORWARD ONLY cursor... due that explanation, i think the only you can do its to assume that behaviour of the "ugly patch", so or SQL_SUCCESS or not... as a informative for others, SQL querys can be divided into two parts: The Data Manipulation Language (DML) querys and the Data Definition Language (DDL) querys CAUTION: in the stupid mysql and sqlite, the ALTER query has a "afected rows" behavior due some info are stored on tables... EXAMPLES OF SQL DML: SELECT ? this retriebve data always or not UPDATE ? not retrieve data, only "affected rows" DELETE ? not retrieve data, only "affected rows" INSERT INTO ? not retrieve data, only "affected rows" EXAMPLES OF SQL DDL: CREATE DATABASE ? no any data, only "succesfull or not" ALTER DATABASE ? no any data, only "succesfull or not" CREATE TABLE ? no any data, only "succesfull or not" ALTER TABLE ? no any data, only "succesfull or not" DROP TABLE ? no any data, only "succesfull or not" CREATE INDEX ? crea un ?ndice. DROP INDEX ? borra un ?ndice. PICCORO LENZ MCKAY changed the state of the bug to: Accepted. From mckaygerhard at ...626... Wed Jun 21 04:46:02 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 20 Jun 2017 22:16:02 -0430 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: <8a5f830c-d8e3-2549-9d86-89fb35971e3f@...1...> References: <8a5f830c-d8e3-2549-9d86-89fb35971e3f@...1...> Message-ID: no jit on recents systems due changes! its very frustrating the constans changes on the software world.. every day we are more like M$! why update and changes if are working? *ah of course, securyity the always working excuse!* Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-20 11:13 GMT-04:30 Beno?t Minisini via Gambas-user < gambas-user at lists.sourceforge.net>: > Le 20/06/2017 ? 17:38, Gianluigi a ?crit : > >> A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling >> Gambas gets error of Impossible to find package for libsage-dev and >> llvm-3.5-dev. >> I searched on https://packages.ubuntu.com/ and concerning llvm the oldest >> library available in zesty is 3.7, while concerning libsage I get nothing, >> but looking in descriptions for Supports OpenGL in SDL applications, I >> seemed to understand that gambas3-gb-opengl-sge should replace it. >> How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no >> 3.5? >> Can you help me? >> >> Regards >> >> Gianluigi >> > > You cannot compile gb.jit anymore on recent Ubuntu systems, as they > removed llvm 3.5. So just let it be disabled. > > And don't specify libsage-dev, it should work without. If not, just tell > me. > > 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 alexchernoff at ...67... Wed Jun 21 11:17:27 2017 From: alexchernoff at ...67... (alexchernoff) Date: Wed, 21 Jun 2017 02:17:27 -0700 (MST) Subject: [Gambas-user] Logging errors in apps running as Application.Daemon Message-ID: <1498036647346-59450.post@...3046...> Peace to all, I have some Gb projects that are in Application.Daemon mode. But sometimes if process dies for whatever reason, I can't see what the last error was. I have to run it in a console without daemonizing and wait for it to die and show last reason (like "#13: Null object" or something). Can this be logged to a file? So at least the last output the interpreter spits out is logged... Cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450.html Sent from the gambas-user mailing list archive at Nabble.com. From adamnt42 at ...626... Wed Jun 21 11:47:36 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jun 2017 19:17:36 +0930 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <1498036647346-59450.post@...3046...> References: <1498036647346-59450.post@...3046...> Message-ID: <20170621191736.3aaa601723fe73922f01c934@...626...> On Wed, 21 Jun 2017 02:17:27 -0700 (MST) alexchernoff wrote: > Peace to all, > > I have some Gb projects that are in Application.Daemon mode. But sometimes > if process dies for whatever reason, I can't see what the last error was. I > have to run it in a console without daemonizing and wait for it to die and > show last reason (like "#13: Null object" or something). > > Can this be logged to a file? So at least the last output the interpreter > spits out is logged... > > Cheers! > > > In this case, probably the easiest is to redirect stdout and stderr to a file somewhere. The commands you should look at are: OUTPUT TO and ERROR TO (and you'll have to write the necessary guff to set up the file, etc etc of course) hth bruce -- B Bruen From adamnt42 at ...626... Wed Jun 21 12:45:02 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jun 2017 20:15:02 +0930 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <1498036647346-59450.post@...3046...> References: <1498036647346-59450.post@...3046...> Message-ID: <20170621201502.a81bd750d2eca2186a333e59@...626...> On Wed, 21 Jun 2017 02:17:27 -0700 (MST) alexchernoff wrote: > Peace to all, > > I have some Gb projects that are in Application.Daemon mode. But sometimes > if process dies for whatever reason, I can't see what the last error was. I > have to run it in a console without daemonizing and wait for it to die and > show last reason (like "#13: Null object" or something). > > Can this be logged to a file? So at least the last output the interpreter > spits out is logged... > > Cheers! > > > > > or now that I think of it, you could just: $ yourdeamonstarter > output.txt 2>&1 :-) (Oh where might I have seen that somewhere before ???) B -- B Bruen From taboege at ...626... Wed Jun 21 13:51:11 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 21 Jun 2017 13:51:11 +0200 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <20170621201502.a81bd750d2eca2186a333e59@...626...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> Message-ID: <20170621115111.GA574@...3600...> On Wed, 21 Jun 2017, adamnt42 at ...626... wrote: > On Wed, 21 Jun 2017 02:17:27 -0700 (MST) > alexchernoff wrote: > > > Peace to all, > > > > I have some Gb projects that are in Application.Daemon mode. But sometimes > > if process dies for whatever reason, I can't see what the last error was. I > > have to run it in a console without daemonizing and wait for it to die and > > show last reason (like "#13: Null object" or something). > > > > Can this be logged to a file? So at least the last output the interpreter > > spits out is logged... > > > > Cheers! > > > > > > > > > > > or now that I think of it, you could just: > > $ yourdeamonstarter > output.txt 2>&1 > > :-) > > (Oh where might I have seen that somewhere before ???) > B > I doubt this works, because Application.Daemon = True calls daemon(3) which redirects stdout and stderr (which were previously set by the shell to your log files) to /dev/null, so you won't find anything in your files. Output To and Error To should still work because they don't replace stdout and stderr (which are killed by daemon()) but change the default file the Print and Error statements operate on, at the Gambas level. I don't know if it's possible to capture interpreter errors this way though. Generally the interpreter would use fprintf(stderr, ...) to report errors (fixed on stderr which, again, is sent to /dev/null after daemon()). Attached are two scripts which showcase these reflections. Both scripts have three stages: (1) print something, (2) daemonise and print something, and (3) raise an error and then print something. daemon1.gbs3 uses normal Print and relies on the shell redirection: $ ./daemon1.gbs3 a $ ./daemon1.gbs3 >/tmp/log 2>&1 $ cat /tmp/log Of course, only the output after the first stage is shown as stdout is closed after daemonising. The interpreter error is not shown. Curiously the shell redirection results in an empty file, so not even the first stage output arrives(?) Whereas daemon2 creates its own log files (one for stdout and stderr each) and uses Output To and Error To: $ ./daemon2.gbs3 $ cat /tmp/log* a b It can at least store its output after the daemonisation (the "b"), but the interpreter error is not logged. To get this, you could look into using the global error handler Static Public Sub Application_Error() [1] in your startup class or using the C library via Extern to force your log files into the standard fds again (this latter one would be the least intrusive for the code you may have already written). Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb/application -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at ...626... Wed Jun 21 13:56:43 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 21 Jun 2017 13:56:43 +0200 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <20170621115111.GA574@...3600...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> Message-ID: <20170621115643.GB574@...3600...> On Wed, 21 Jun 2017, Tobias Boege wrote: > Attached are two scripts -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- #!/usr/bin/gbs3 Public Sub Main() Print "a" Application.Daemon = True Wait 0.1 ' ensure we daemon'd(?) Print "b" Print 1 / 0 Print "c" End -------------- next part -------------- #!/usr/bin/gbs3 Public Sub Main() Dim h, g As File h = Open "/tmp/log" For Write Create Output To #h g = Open "/tmp/log2" For Write Create Error To #g Print "a" Application.Daemon = True Wait 0.1 ' ensure we daemon'd(?) Print "b" Print 1 / 0 Print "c" Close #h Close #g End From mckaygerhard at ...626... Wed Jun 21 14:20:23 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 07:50:23 -0430 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <20170621115643.GB574@...3600...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621115643.GB574@...3600...> Message-ID: in the case of deamon redirection, for those using Devuan, Debian and VenenuX the correct way to always see what happened to their daemons process it to strting run by the command "start-stop-daemon" as good choice with proper flags to redirect output... this will heppl to redirect the ouptu and see what happened... in other cases, will happened that tobias said... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-21 7:26 GMT-04:30 Tobias Boege : > On Wed, 21 Jun 2017, Tobias Boege wrote: > > Attached are two scripts > > -- > "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 bagonergi at ...626... Wed Jun 21 14:41:15 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 21 Jun 2017 14:41:15 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: After the configuration he gets this result: || || THESE COMPONENTS ARE DISABLED: || - gb.jit || - gb.openssl || expected for gb.jit but not for gb.openssl. Gambas installs but he continues to be unable to use it either by clicking on the icon or with the gambas3 command from the terminal. Any suggestions? At follow the final output of the installation Regards Gianluigi Installing the components... Compiling gb.eval.highlight... OK Installing gb.eval.highlight... Compiling gb.args... OK Installing gb.args... Compiling gb.settings... OK Installing gb.settings... Compiling gb.gui.base... OK Installing gb.gui.base... Compiling gb.form... OK Installing gb.form... Compiling gb.form.stock... OK Installing gb.form.stock... Compiling gb.form.dialog... OK Installing gb.form.dialog... Compiling gb.form.mdi... OK Installing gb.form.mdi... Compiling gb.db.form... OK Installing gb.db.form... Compiling gb.desktop... OK Installing gb.desktop... Compiling gb.web... OK Installing gb.web... Compiling gb.report... OK Installing gb.report... Compiling gb.report2... OK Installing gb.report2... Compiling gb.chart... OK Installing gb.chart... Compiling gb.mysql... OK Installing gb.mysql... Compiling gb.net.smtp... OK Installing gb.net.smtp... Compiling gb.net.pop3... OK Installing gb.net.pop3... Compiling gb.memcached... OK Installing gb.memcached... Compiling gb.map... OK Installing gb.map... Compiling gb.logging... OK Installing gb.logging... Compiling gb.markdown... OK Installing gb.markdown... Compiling gb.media.form... OK Installing gb.media.form... Compiling gb.scanner... OK Installing gb.scanner... Compiling gb.util... OK Installing gb.util... Compiling gb.util.web... OK Installing gb.util.web... Compiling gb.form.editor... OK Installing gb.form.editor... Compiling gb.dbus.trayicon... OK Installing gb.dbus.trayicon... Compiling gb.web.form... OK Installing gb.web.form... Compiling gb.form.terminal... OK Installing gb.form.terminal... Compiling gb.term.form... OK Installing gb.term.form... Compiling gb.web.feed... OK Installing gb.web.feed... make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/luca/trunk/comp" make[1]: uscita dalla directory "/home/luca/trunk/comp" Making install in app make[1]: ingresso nella directory "/home/luca/trunk/app" make[2]: ingresso nella directory "/home/luca/trunk/app" Installing the development environment... Compiling gambas3... OK Installing gambas3... Compiling gbs3... OK Installing gbs3... Installing the scripter... Registering Gambas script mimetype Registering Gambas server page mimetype Installing the Gambas appdata file Installing the Gambas template projects /usr/bin/install -c -d /usr/share/gambas3/template; cp -R ./template/* /usr/share/gambas3/template; make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/luca/trunk/app" make[1]: uscita dalla directory "/home/luca/trunk/app" Making install in . make[1]: ingresso nella directory "/home/luca/trunk" make[2]: ingresso nella directory "/home/luca/trunk" make[2]: Nessuna operazione da eseguire per "install-data-am". make[2]: uscita dalla directory "/home/luca/trunk" make[1]: uscita dalla directory "/home/luca/trunk" 2017-06-20 22:43 GMT+02:00 Gianluigi : > I had immediately answered to the mail of Benoit but here [0] not appear, > what am I doing wrong? > > Regards > Gianluigi > > [0] http://gambas.8142.n7.nabble.com/Errors-compiling-on- > Ubuntu-17-04-zesty-td59433.html > > 2017-06-20 17:38 GMT+02:00 Gianluigi : > >> A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling >> Gambas gets error of Impossible to find package for libsage-dev and >> llvm-3.5-dev. >> I searched on https://packages.ubuntu.com/ and concerning llvm the >> oldest library available in zesty is 3.7, while concerning libsage I get >> nothing, but looking in descriptions for Supports OpenGL in SDL >> applications, I seemed to understand that gambas3-gb-opengl-sge should >> replace it. >> How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no >> 3.5? >> Can you help me? >> >> Regards >> >> Gianluigi >> > > From gambas at ...1... Wed Jun 21 14:47:18 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Jun 2017 14:47:18 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: Le 21/06/2017 ? 14:41, Gianluigi a ?crit : > After the configuration he gets this result: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.openssl > || > expected for gb.jit but not for gb.openssl. > Gambas installs but he continues to be unable to use it either by clicking > on the icon or with the gambas3 command from the terminal. > Any suggestions? > At follow the final output of the installation > > Regards > Gianluigi > > Installing the components... > Compiling gb.eval.highlight... > OK > Installing gb.eval.highlight... > Compiling gb.args... > OK > Installing gb.args... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.gui.base... > OK > Installing gb.gui.base... > Compiling gb.form... > OK > Installing gb.form... > Compiling gb.form.stock... > OK > Installing gb.form.stock... > Compiling gb.form.dialog... > OK > Installing gb.form.dialog... > Compiling gb.form.mdi... > OK > Installing gb.form.mdi... > Compiling gb.db.form... > OK > Installing gb.db.form... > Compiling gb.desktop... > OK > Installing gb.desktop... > Compiling gb.web... > OK > Installing gb.web... > Compiling gb.report... > OK > Installing gb.report... > Compiling gb.report2... > OK > Installing gb.report2... > Compiling gb.chart... > OK > Installing gb.chart... > Compiling gb.mysql... > OK > Installing gb.mysql... > Compiling gb.net.smtp... > OK > Installing gb.net.smtp... > Compiling gb.net.pop3... > OK > Installing gb.net.pop3... > Compiling gb.memcached... > OK > Installing gb.memcached... > Compiling gb.map... > OK > Installing gb.map... > Compiling gb.logging... > OK > Installing gb.logging... > Compiling gb.markdown... > OK > Installing gb.markdown... > Compiling gb.media.form... > OK > Installing gb.media.form... > Compiling gb.scanner... > OK > Installing gb.scanner... > Compiling gb.util... > OK > Installing gb.util... > Compiling gb.util.web... > OK > Installing gb.util.web... > Compiling gb.form.editor... > OK > Installing gb.form.editor... > Compiling gb.dbus.trayicon... > OK > Installing gb.dbus.trayicon... > Compiling gb.web.form... > OK > Installing gb.web.form... > Compiling gb.form.terminal... > OK > Installing gb.form.terminal... > Compiling gb.term.form... > OK > Installing gb.term.form... > Compiling gb.web.feed... > OK > Installing gb.web.feed... > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk/comp" > make[1]: uscita dalla directory "/home/luca/trunk/comp" > Making install in app > make[1]: ingresso nella directory "/home/luca/trunk/app" > make[2]: ingresso nella directory "/home/luca/trunk/app" > Installing the development environment... > Compiling gambas3... > OK > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > Installing the scripter... > Registering Gambas script mimetype > Registering Gambas server page mimetype > Installing the Gambas appdata file > Installing the Gambas template projects > /usr/bin/install -c -d /usr/share/gambas3/template; > cp -R ./template/* /usr/share/gambas3/template; > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk/app" > make[1]: uscita dalla directory "/home/luca/trunk/app" > Making install in . > make[1]: ingresso nella directory "/home/luca/trunk" > make[2]: ingresso nella directory "/home/luca/trunk" > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk" > make[1]: uscita dalla directory "/home/luca/trunk" > > 2017-06-20 22:43 GMT+02:00 Gianluigi : > >> I had immediately answered to the mail of Benoit but here [0] not appear, >> what am I doing wrong? >> >> Regards >> Gianluigi >> >> [0] http://gambas.8142.n7.nabble.com/Errors-compiling-on- >> Ubuntu-17-04-zesty-td59433.html >> >> 2017-06-20 17:38 GMT+02:00 Gianluigi : >> >>> A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling >>> Gambas gets error of Impossible to find package for libsage-dev and >>> llvm-3.5-dev. >>> I searched on https://packages.ubuntu.com/ and concerning llvm the >>> oldest library available in zesty is 3.7, while concerning libsage I get >>> nothing, but looking in descriptions for Supports OpenGL in SDL >>> applications, I seemed to understand that gambas3-gb-opengl-sge should >>> replace it. >>> How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no >>> 3.5? >>> Can you help me? >>> >>> Regards >>> >>> Gianluigi >>> >> >> You must uninstall all previous installations of Gambas 3 on your system before compiling and installing from sources. You must provide the entire output of configuration, compilation & installation process, so that we can see what happens. Did you install the development packages specified on http://gambaswiki.org/wiki/install/ubuntu#t7 ? -- Beno?t Minisini From bagonergi at ...626... Wed Jun 21 14:47:19 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 21 Jun 2017 14:47:19 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: Now the terminal has given this error; Settings.WriteWindow.393: #20: Bad argument Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 FMain.Form_Open.78 Project.Main.366 Regards Gianluigi 2017-06-21 14:41 GMT+02:00 Gianluigi : > After the configuration he gets this result: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.openssl > || > expected for gb.jit but not for gb.openssl. > Gambas installs but he continues to be unable to use it either by clicking > on the icon or with the gambas3 command from the terminal. > Any suggestions? > At follow the final output of the installation > > Regards > Gianluigi > > Installing the components... > Compiling gb.eval.highlight... > OK > Installing gb.eval.highlight... > Compiling gb.args... > OK > Installing gb.args... > Compiling gb.settings... > OK > Installing gb.settings... > Compiling gb.gui.base... > OK > Installing gb.gui.base... > Compiling gb.form... > OK > Installing gb.form... > Compiling gb.form.stock... > OK > Installing gb.form.stock... > Compiling gb.form.dialog... > OK > Installing gb.form.dialog... > Compiling gb.form.mdi... > OK > Installing gb.form.mdi... > Compiling gb.db.form... > OK > Installing gb.db.form... > Compiling gb.desktop... > OK > Installing gb.desktop... > Compiling gb.web... > OK > Installing gb.web... > Compiling gb.report... > OK > Installing gb.report... > Compiling gb.report2... > OK > Installing gb.report2... > Compiling gb.chart... > OK > Installing gb.chart... > Compiling gb.mysql... > OK > Installing gb.mysql... > Compiling gb.net.smtp... > OK > Installing gb.net.smtp... > Compiling gb.net.pop3... > OK > Installing gb.net.pop3... > Compiling gb.memcached... > OK > Installing gb.memcached... > Compiling gb.map... > OK > Installing gb.map... > Compiling gb.logging... > OK > Installing gb.logging... > Compiling gb.markdown... > OK > Installing gb.markdown... > Compiling gb.media.form... > OK > Installing gb.media.form... > Compiling gb.scanner... > OK > Installing gb.scanner... > Compiling gb.util... > OK > Installing gb.util... > Compiling gb.util.web... > OK > Installing gb.util.web... > Compiling gb.form.editor... > OK > Installing gb.form.editor... > Compiling gb.dbus.trayicon... > OK > Installing gb.dbus.trayicon... > Compiling gb.web.form... > OK > Installing gb.web.form... > Compiling gb.form.terminal... > OK > Installing gb.form.terminal... > Compiling gb.term.form... > OK > Installing gb.term.form... > Compiling gb.web.feed... > OK > Installing gb.web.feed... > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk/comp" > make[1]: uscita dalla directory "/home/luca/trunk/comp" > Making install in app > make[1]: ingresso nella directory "/home/luca/trunk/app" > make[2]: ingresso nella directory "/home/luca/trunk/app" > Installing the development environment... > Compiling gambas3... > OK > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > Installing the scripter... > Registering Gambas script mimetype > Registering Gambas server page mimetype > Installing the Gambas appdata file > Installing the Gambas template projects > /usr/bin/install -c -d /usr/share/gambas3/template; > cp -R ./template/* /usr/share/gambas3/template; > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk/app" > make[1]: uscita dalla directory "/home/luca/trunk/app" > Making install in . > make[1]: ingresso nella directory "/home/luca/trunk" > make[2]: ingresso nella directory "/home/luca/trunk" > make[2]: Nessuna operazione da eseguire per "install-data-am". > make[2]: uscita dalla directory "/home/luca/trunk" > make[1]: uscita dalla directory "/home/luca/trunk" > > 2017-06-20 22:43 GMT+02:00 Gianluigi : > >> I had immediately answered to the mail of Benoit but here [0] not appear, >> what am I doing wrong? >> >> Regards >> Gianluigi >> >> [0] http://gambas.8142.n7.nabble.com/Errors-compiling-on-Ubuntu- >> 17-04-zesty-td59433.html >> >> 2017-06-20 17:38 GMT+02:00 Gianluigi : >> >>> A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling >>> Gambas gets error of Impossible to find package for libsage-dev and >>> llvm-3.5-dev. >>> I searched on https://packages.ubuntu.com/ and concerning llvm the >>> oldest library available in zesty is 3.7, while concerning libsage I get >>> nothing, but looking in descriptions for Supports OpenGL in SDL >>> applications, I seemed to understand that gambas3-gb-opengl-sge should >>> replace it. >>> How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no >>> 3.5? >>> Can you help me? >>> >>> Regards >>> >>> Gianluigi >>> >> >> > From bagonergi at ...626... Wed Jun 21 14:56:51 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 21 Jun 2017 14:56:51 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: He should have followed this path I suggested: 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 sudo apt update sudo apt install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev sudo apt install subversion svn checkout svn://svn.code.sf.net/p/gambas/code/gambas/trunk cd trunk ( ./reconf-all && ./configure -C ) > ~/Scrivania/R_conf-Trunk.log 2>&1 ( make && sudo make install ) > ~/Scrivania/Make_Inst-Trunk.log 2>&1 I attach the two log files Regards Gianluigi 2017-06-21 14:47 GMT+02:00 Beno?t Minisini : > Le 21/06/2017 ? 14:41, Gianluigi a ?crit : > >> After the configuration he gets this result: >> || >> || THESE COMPONENTS ARE DISABLED: >> || - gb.jit >> || - gb.openssl >> || >> expected for gb.jit but not for gb.openssl. >> Gambas installs but he continues to be unable to use it either by clicking >> on the icon or with the gambas3 command from the terminal. >> Any suggestions? >> At follow the final output of the installation >> >> Regards >> Gianluigi >> >> Installing the components... >> Compiling gb.eval.highlight... >> OK >> Installing gb.eval.highlight... >> Compiling gb.args... >> OK >> Installing gb.args... >> Compiling gb.settings... >> OK >> Installing gb.settings... >> Compiling gb.gui.base... >> OK >> Installing gb.gui.base... >> Compiling gb.form... >> OK >> Installing gb.form... >> Compiling gb.form.stock... >> OK >> Installing gb.form.stock... >> Compiling gb.form.dialog... >> OK >> Installing gb.form.dialog... >> Compiling gb.form.mdi... >> OK >> Installing gb.form.mdi... >> Compiling gb.db.form... >> OK >> Installing gb.db.form... >> Compiling gb.desktop... >> OK >> Installing gb.desktop... >> Compiling gb.web... >> OK >> Installing gb.web... >> Compiling gb.report... >> OK >> Installing gb.report... >> Compiling gb.report2... >> OK >> Installing gb.report2... >> Compiling gb.chart... >> OK >> Installing gb.chart... >> Compiling gb.mysql... >> OK >> Installing gb.mysql... >> Compiling gb.net.smtp... >> OK >> Installing gb.net.smtp... >> Compiling gb.net.pop3... >> OK >> Installing gb.net.pop3... >> Compiling gb.memcached... >> OK >> Installing gb.memcached... >> Compiling gb.map... >> OK >> Installing gb.map... >> Compiling gb.logging... >> OK >> Installing gb.logging... >> Compiling gb.markdown... >> OK >> Installing gb.markdown... >> Compiling gb.media.form... >> OK >> Installing gb.media.form... >> Compiling gb.scanner... >> OK >> Installing gb.scanner... >> Compiling gb.util... >> OK >> Installing gb.util... >> Compiling gb.util.web... >> OK >> Installing gb.util.web... >> Compiling gb.form.editor... >> OK >> Installing gb.form.editor... >> Compiling gb.dbus.trayicon... >> OK >> Installing gb.dbus.trayicon... >> Compiling gb.web.form... >> OK >> Installing gb.web.form... >> Compiling gb.form.terminal... >> OK >> Installing gb.form.terminal... >> Compiling gb.term.form... >> OK >> Installing gb.term.form... >> Compiling gb.web.feed... >> OK >> Installing gb.web.feed... >> make[2]: Nessuna operazione da eseguire per "install-data-am". >> make[2]: uscita dalla directory "/home/luca/trunk/comp" >> make[1]: uscita dalla directory "/home/luca/trunk/comp" >> Making install in app >> make[1]: ingresso nella directory "/home/luca/trunk/app" >> make[2]: ingresso nella directory "/home/luca/trunk/app" >> Installing the development environment... >> Compiling gambas3... >> OK >> Installing gambas3... >> Compiling gbs3... >> OK >> Installing gbs3... >> Installing the scripter... >> Registering Gambas script mimetype >> Registering Gambas server page mimetype >> Installing the Gambas appdata file >> Installing the Gambas template projects >> /usr/bin/install -c -d /usr/share/gambas3/template; >> cp -R ./template/* /usr/share/gambas3/template; >> make[2]: Nessuna operazione da eseguire per "install-data-am". >> make[2]: uscita dalla directory "/home/luca/trunk/app" >> make[1]: uscita dalla directory "/home/luca/trunk/app" >> Making install in . >> make[1]: ingresso nella directory "/home/luca/trunk" >> make[2]: ingresso nella directory "/home/luca/trunk" >> make[2]: Nessuna operazione da eseguire per "install-data-am". >> make[2]: uscita dalla directory "/home/luca/trunk" >> make[1]: uscita dalla directory "/home/luca/trunk" >> >> 2017-06-20 22:43 GMT+02:00 Gianluigi : >> >> I had immediately answered to the mail of Benoit but here [0] not appear, >>> what am I doing wrong? >>> >>> Regards >>> Gianluigi >>> >>> [0] http://gambas.8142.n7.nabble.com/Errors-compiling-on- >>> Ubuntu-17-04-zesty-td59433.html >>> >>> 2017-06-20 17:38 GMT+02:00 Gianluigi : >>> >>> A friend of ours of Italian forum who has Ubuntu 17.04 zesty, compiling >>>> Gambas gets error of Impossible to find package for libsage-dev and >>>> llvm-3.5-dev. >>>> I searched on https://packages.ubuntu.com/ and concerning llvm the >>>> oldest library available in zesty is 3.7, while concerning libsage I get >>>> nothing, but looking in descriptions for Supports OpenGL in SDL >>>> applications, I seemed to understand that gambas3-gb-opengl-sge should >>>> replace it. >>>> How to change the LLVM_CONFIG = llvm-config-3.5 command if there is no >>>> 3.5? >>>> Can you help me? >>>> >>>> Regards >>>> >>>> Gianluigi >>>> >>>> >>> >>> > You must uninstall all previous installations of Gambas 3 on your system > before compiling and installing from sources. > > You must provide the entire output of configuration, compilation & > installation process, so that we can see what happens. > > Did you install the development packages specified on > http://gambaswiki.org/wiki/install/ubuntu#t7 ? > > -- > Beno?t Minisini > -------------- next part -------------- A non-text attachment was scrubbed... Name: Log.tar.gz Type: application/x-gzip Size: 34703 bytes Desc: not available URL: From gambas at ...1... Wed Jun 21 14:58:55 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Jun 2017 14:58:55 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> Le 21/06/2017 ? 14:56, Gianluigi a ?crit : > He should have followed this path I suggested: > > 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 > > sudo apt update > > sudo apt install build-essential g++ automake autoconf libtool > libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev > postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev > libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev > libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev > libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev This is not the development packages specified on the wiki page I told you. -- Beno?t Minisini From taboege at ...626... Wed Jun 21 15:00:07 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 21 Jun 2017 15:00:07 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: Message-ID: <20170621130007.GC574@...3600...> On Wed, 21 Jun 2017, Gianluigi wrote: > After the configuration he gets this result: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.jit > || - gb.openssl > || > expected for gb.jit but not for gb.openssl. > Gambas installs but he continues to be unable to use it either by clicking > on the icon or with the gambas3 command from the terminal. > Any suggestions? > At follow the final output of the installation > The stuff you give is not relevant to gb.openssl. You only showed the installation phase of the components written in Gambas, which doesn't include gb.openssl. I have a very unpleasant memories [1] about the last time I changed the configure.ac of gb.openssl. Please make sure first that the openssl development packages are installed. Regards, Tobi [1] https://sourceforge.net/p/gambas/mailman/gambas-user/thread/BUG984:20160829225438017 at ...3416.../ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Wed Jun 21 15:00:22 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Jun 2017 15:00:22 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> Message-ID: <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Le 21/06/2017 ? 14:58, Beno?t Minisini a ?crit : > Le 21/06/2017 ? 14:56, Gianluigi a ?crit : >> He should have followed this path I suggested: >> >> 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 >> >> sudo apt update >> >> sudo apt install build-essential g++ automake autoconf libtool >> libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev >> postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev >> libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev >> libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev >> libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev >> libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev >> libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev >> libqt4-opengl-dev libglew1.6-dev libimlib2-dev libv4l-dev >> libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev >> linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev >> libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev >> libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev >> libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev >> libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev >> libqt5x11extras5-dev qtbase5-dev > > This is not the development packages specified on the wiki page I told you. > It is written: $ sudo apt-get install build-essential g++ automake autoconf libtool libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev postgresql-server-dev-9.3 libsqlite0-dev libsqlite3-dev libglib2.0-dev libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev llvm libalure-dev libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-image-dev sane-utils libdumb1-dev libssl-dev For version on /trunk and 3.8 or higher add: $ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev I think just libssl-dev is missing. -- Beno?t Minisini From adamnt42 at ...626... Wed Jun 21 15:01:18 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jun 2017 22:31:18 +0930 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <20170621115111.GA574@...3600...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> Message-ID: <20170621223118.b602245271bde64e3a2884a7@...626...> On Wed, 21 Jun 2017 13:51:11 +0200 Tobias Boege wrote: > On Wed, 21 Jun 2017, adamnt42 at ...626... wrote: > > On Wed, 21 Jun 2017 02:17:27 -0700 (MST) > > alexchernoff wrote: > > > > > Peace to all, > > > > > > I have some Gb projects that are in Application.Daemon mode. But sometimes > > > if process dies for whatever reason, I can't see what the last error was. I > > > have to run it in a console without daemonizing and wait for it to die and > > > show last reason (like "#13: Null object" or something). > > > > > > Can this be logged to a file? So at least the last output the interpreter > > > spits out is logged... > > > > > > Cheers! > > > > > > > > > > > > > > > > > or now that I think of it, you could just: > > > > $ yourdeamonstarter > output.txt 2>&1 > > > > :-) > > > > (Oh where might I have seen that somewhere before ???) > > B > > > > I doubt this works, because Application.Daemon = True calls daemon(3) which > redirects stdout and stderr (which were previously set by the shell to your > log files) to /dev/null, so you won't find anything in your files. Weird. I just tried it quickly here and it works. Then again, here there is no man 3 daemon, which is weirder. So I looked it up on the web: " int daemon(int nochdir, int noclose); ... If noclose is zero, daemon() redirects standard input, standard output and standard error to /dev/null; otherwise, no changes are made to these file descriptors." (So, maybe, I think this might be a distro or kernel scheduling thing, but...) (Further quick reading... SysV vs systemd ) "New-Style Daemons Modern services for Linux should be implemented as new-style daemons." ... none of the initialization steps recommended for SysV daemons need to be implemented. New-style init systems such as systemd make all of them redundant. ... it is guaranteed that the environment block is sanitized, that the signal handlers and mask is reset and that no left-over file descriptors are passed. Daemons will be executed in their own session, with standard input connected to /dev/null and standard output/error connected to the systemd-journald.service(8) logging service, unless otherwise... It's still not clear to me why it works on my machine. But now I'll have to go and check on the others here at paddys-hill and the damned customer VM's* to see if we might run into that problem if I tried it in the future. Well, every day a new thing learned. But then again, didn't someone say "There's an old saying: Don't change anything... ever!" -- Mr. Monk b (* The VM's cause me grief not the customers) -- B Bruen From bagonergi at ...626... Wed Jun 21 15:25:44 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 21 Jun 2017 15:25:44 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: <87a91959-0939-5cfe-3184-070f22ccd813@...1...> References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: The libreries you have indicated are the last 5 of the command I suggested, which is not wrong. So I just have to let him to add libssl-dev, but I do not think his problem stems from this, right? Why he can not run Gambas and get these errors from the terminal? Settings.WriteWindow.393: #20: Bad argument Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 FMain.Form_Open.78 Project.Main.366 Regards Gianluigi 2017-06-21 15:00 GMT+02:00 Beno?t Minisini : > Le 21/06/2017 ? 14:58, Beno?t Minisini a ?crit : > >> Le 21/06/2017 ? 14:56, Gianluigi a ?crit : >> >>> He should have followed this path I suggested: >>> >>> 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 >>> >>> sudo apt update >>> >>> sudo apt install build-essential g++ automake autoconf libtool >>> libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev >>> postgresql-server-dev-9.6 libsqlite0-dev libsqlite3-dev libglib2.0-dev >>> libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev >>> libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libxml2-dev >>> libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev >>> libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev >>> libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev >>> libglew1.6-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev >>> libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev >>> libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev >>> libgsl0-dev libncurses5-dev libgmime-2.6-dev libalure-dev libgmp-dev >>> libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev >>> libsdl2-image-dev sane-utils libdumb1-dev libqt5opengl5-dev libqt5svg5-dev >>> libqt5webkit5-dev libqt5x11extras5-dev qtbase5-dev >>> >> >> This is not the development packages specified on the wiki page I told >> you. >> >> > It is written: > > $ sudo apt-get install build-essential g++ automake autoconf libtool > libbz2-dev libmysqlclient-dev unixodbc-dev libpq-dev > postgresql-server-dev-9.3 libsqlite0-dev libsqlite3-dev libglib2.0-dev > libgtk2.0-dev libcurl4-gnutls-dev libgtkglext1-dev libpcre3-dev > libsdl-sound1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsage-dev > libxml2-dev libxslt1-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev > libpoppler-private-dev libasound2-dev libesd0-dev libdirectfb-dev > libxtst-dev libffi-dev libqt4-dev libqtwebkit-dev libqt4-opengl-dev > libglew1.5-dev libimlib2-dev libv4l-dev libsdl-ttf2.0-dev > libgnome-keyring-dev libgdk-pixbuf2.0-dev linux-libc-dev > libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libcairo2-dev > libgsl0-dev libncurses5-dev libgmime-2.6-dev llvm-dev llvm libalure-dev > libgmp-dev libgtk-3-dev libsdl2-dev libsdl2-mixer-dev libsdl2-ttf-dev > libsdl2-image-dev sane-utils libdumb1-dev libssl-dev > > For version on /trunk and 3.8 or higher add: > > $ sudo apt-get install libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev > libqt5x11extras5-dev qtbase5-dev > > I think just libssl-dev is missing. > > -- > Beno?t Minisini > From gambas at ...1... Wed Jun 21 15:29:14 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Jun 2017 15:29:14 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: Le 21/06/2017 ? 15:25, Gianluigi a ?crit : > The libreries you have indicated are the last 5 of the command I > suggested, which is not wrong. > So I just have to let him to add libssl-dev, but I do not think his > problem stems from this, right? > Why he can not run Gambas and get these errors from the terminal? > Settings.WriteWindow.393: #20: Bad argument > Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 > FMain.Form_Open.78 Project.Main.366 > > Regards > Gianluigi > I don't know. I'm working on Kubuntu 17.04, and I have no problem with compiling Gambas, except the missing llvm 3.5. -- Beno?t Minisini From gambas at ...1... Wed Jun 21 15:32:26 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Jun 2017 15:32:26 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: Le 21/06/2017 ? 15:29, Beno?t Minisini a ?crit : > Le 21/06/2017 ? 15:25, Gianluigi a ?crit : >> The libreries you have indicated are the last 5 of the command I >> suggested, which is not wrong. >> So I just have to let him to add libssl-dev, but I do not think his >> problem stems from this, right? >> Why he can not run Gambas and get these errors from the terminal? >> Settings.WriteWindow.393: #20: Bad argument >> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 >> FMain.Form_Open.78 Project.Main.366 >> >> Regards >> Gianluigi >> > > I don't know. I'm working on Kubuntu 17.04, and I have no problem with > compiling Gambas, except the missing llvm 3.5. > Can you try to recompile the very latest revision? I added some code that should avoid the specific crash you have. -- Beno?t Minisini From bill-lancaster at ...2231... Wed Jun 21 15:36:01 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 21 Jun 2017 06:36:01 -0700 (MST) Subject: [Gambas-user] Strange behaviour of File.Read Message-ID: <1498052161364-59467.post@...3046...> I must be missing something - any ideas? Gambas3.9.2 Components, gb.form, gb,gui, gb.image This is the code:- Public Sub Button1_Click() Dim s As String s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt") Print s Print IsDir(s) Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29") End This is the output:- "/home/bill/Pictures/Family/Visits/2000-07-29" False True -- View this message in context: http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Wed Jun 21 15:36:34 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 21 Jun 2017 15:36:34 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: <20170621130007.GC574@...3600...> References: <20170621130007.GC574@...3600...> Message-ID: I then attached the log files. I understand, the library is missing Regards Gianluigi 2017-06-21 15:00 GMT+02:00 Tobias Boege : > On Wed, 21 Jun 2017, Gianluigi wrote: > > After the configuration he gets this result: > > || > > || THESE COMPONENTS ARE DISABLED: > > || - gb.jit > > || - gb.openssl > > || > > expected for gb.jit but not for gb.openssl. > > Gambas installs but he continues to be unable to use it either by > clicking > > on the icon or with the gambas3 command from the terminal. > > Any suggestions? > > At follow the final output of the installation > > > > The stuff you give is not relevant to gb.openssl. You only showed the > installation phase of the components written in Gambas, which doesn't > include gb.openssl. > > I have a very unpleasant memories [1] about the last time I changed the > configure.ac of gb.openssl. Please make sure first that the openssl > development packages are installed. > > Regards, > Tobi > > [1] https://sourceforge.net/p/gambas/mailman/gambas-user/thread/BUG984: > 20160829225438017 at ...3416.../ > > -- > "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 bagonergi at ...626... Wed Jun 21 15:40:03 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 21 Jun 2017 15:40:03 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: Thanks Benoit, I'm going to try and I'll tell you Regards Gianluigi 2017-06-21 15:32 GMT+02:00 Beno?t Minisini : > Le 21/06/2017 ? 15:29, Beno?t Minisini a ?crit : > >> Le 21/06/2017 ? 15:25, Gianluigi a ?crit : >> >>> The libreries you have indicated are the last 5 of the command I >>> suggested, which is not wrong. >>> So I just have to let him to add libssl-dev, but I do not think his >>> problem stems from this, right? >>> Why he can not run Gambas and get these errors from the terminal? >>> Settings.WriteWindow.393: #20: Bad argument >>> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 >>> FMain.Form_Open.78 Project.Main.366 >>> >>> Regards >>> Gianluigi >>> >>> >> I don't know. I'm working on Kubuntu 17.04, and I have no problem with >> compiling Gambas, except the missing llvm 3.5. >> >> > Can you try to recompile the very latest revision? I added some code that > should avoid the specific crash you have. > > -- > Beno?t Minisini > From criguada at ...626... Wed Jun 21 15:41:35 2017 From: criguada at ...626... (Cristiano Guadagnino) Date: Wed, 21 Jun 2017 15:41:35 +0200 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: <5949dc16.6f2dc80a.c8e39.082eSMTPIN_ADDED_BROKEN@...2392...> References: <5949dc16.6f2dc80a.c8e39.082eSMTPIN_ADDED_BROKEN@...2392...> Message-ID: This is in no way "bad behavior of the ODBC and SQL standard", nor a problem of Microsoft. It is standard practice (I have encountered it in ALL the dbms with which I have been working through the years) that when a SQL query returns no data the engine return a SQLCODE 100. Negative SQLCODES always mean some kind of error has happened. Positive SQLCODES are warnings. SQLCODE 100 is one such warning, and rightly so. It means: your query has returned no data. It there was no such warning, who could know if the query returned no data because there's no data to be returned or because, for example, you lost connectivity mid-way through the query? So, SQLCODE 100 is a perfectly legal return code and should be treated as success, at least if the program logic admits that there could be no data to return. Cris On Wed, Jun 21, 2017 at 4:36 AM, wrote: > http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- > > Comment #13 by PICCORO LENZ MCKAY: > > i think your patch are not so "ugly" due relies on the bad behaviour of > the ODBC and SQL standar, i mean umm jajaja its very confusing that the > ODBC paper said after a "susessfull sql ddl" return SQL_NO_DATA event > SQL_SUCCESS, but with M$ behind scenes.. no surprises.. > > analizing, if the SQL running was successfully and its no a SQL DML must > retrieve as response SQL_SUCCESS, the problem maybe are on that cases: > > UPDATE, DELETE and INSERT does not retrieve any rows, only notifies was > afected rows.. so return a SQL_NO_DATA, but are DML, so the only case that > return data its the SELECT case... so we can assume that any other > statement will no return never some data.. only "affected rows" so for any > SQL query made, we can assumed SQL_SUCCESS if no problem was happened.. the > only exception will be SELECT and for those are not usefully due we not > have proper CURSOR, only a FORWARD ONLY cursor... > > due that explanation, i think the only you can do its to assume that > behaviour of the "ugly patch", so or SQL_SUCCESS or not... > > > as a informative for others, SQL querys can be divided into two parts: The > Data Manipulation Language (DML) querys and the Data Definition Language > (DDL) querys > > CAUTION: in the stupid mysql and sqlite, the ALTER query has a "afected > rows" behavior due some info are stored on tables... > > EXAMPLES OF SQL DML: > > SELECT ? this retriebve data always or not > UPDATE ? not retrieve data, only "affected rows" > DELETE ? not retrieve data, only "affected rows" > INSERT INTO ? not retrieve data, only "affected rows" > > EXAMPLES OF SQL DDL: > > CREATE DATABASE ? no any data, only "succesfull or not" > ALTER DATABASE ? no any data, only "succesfull or not" > CREATE TABLE ? no any data, only "succesfull or not" > ALTER TABLE ? no any data, only "succesfull or not" > DROP TABLE ? no any data, only "succesfull or not" > CREATE INDEX ? crea un ?ndice. > DROP INDEX ? borra un ?ndice. > > PICCORO LENZ MCKAY changed the state of the bug to: Accepted. > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 21 15:50:32 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 09:20:32 -0430 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query In-Reply-To: References: <5949dc16.6f2dc80a.c8e39.082eSMTPIN_ADDED_BROKEN@...2392...> Message-ID: Cris, the mail was generated from bugtracker, so you must answer here to better follow up of.. and basically u are agree that the patch its "not so ugly", due acepted that if no sql negative return was, can be treated as success and the patch for me are very good way to manage that.. 2017-06-21 9:11 GMT-04:30 Cristiano Guadagnino : > This is in no way "bad behavior of the ODBC and SQL standard", nor a > problem of Microsoft. It is standard practice (I have encountered it in ALL > the dbms with which I have been working through the years) that when a SQL > query returns no data the engine return a SQLCODE 100. > Negative SQLCODES always mean some kind of error has happened. Positive > SQLCODES are warnings. > SQLCODE 100 is one such warning, and rightly so. It means: your query has > returned no data. It there was no such warning, who could know if the query > returned no data because there's no data to be returned or because, for > example, you lost connectivity mid-way through the query? > So, SQLCODE 100 is a perfectly legal return code and should be treated as > success, at least if the program logic admits that there could be no data > to return. > > Cris > > > > On Wed, Jun 21, 2017 at 4:36 AM, wrote: > > > http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- > > > > Comment #13 by PICCORO LENZ MCKAY: > > > > i think your patch are not so "ugly" due relies on the bad behaviour of > > the ODBC and SQL standar, i mean umm jajaja its very confusing that the > > ODBC paper said after a "susessfull sql ddl" return SQL_NO_DATA event > > SQL_SUCCESS, but with M$ behind scenes.. no surprises.. > > > > analizing, if the SQL running was successfully and its no a SQL DML must > > retrieve as response SQL_SUCCESS, the problem maybe are on that cases: > > > > UPDATE, DELETE and INSERT does not retrieve any rows, only notifies was > > afected rows.. so return a SQL_NO_DATA, but are DML, so the only case > that > > return data its the SELECT case... so we can assume that any other > > statement will no return never some data.. only "affected rows" so for > any > > SQL query made, we can assumed SQL_SUCCESS if no problem was happened.. > the > > only exception will be SELECT and for those are not usefully due we not > > have proper CURSOR, only a FORWARD ONLY cursor... > > > > due that explanation, i think the only you can do its to assume that > > behaviour of the "ugly patch", so or SQL_SUCCESS or not... > > > > > > as a informative for others, SQL querys can be divided into two parts: > The > > Data Manipulation Language (DML) querys and the Data Definition Language > > (DDL) querys > > > > CAUTION: in the stupid mysql and sqlite, the ALTER query has a "afected > > rows" behavior due some info are stored on tables... > > > > EXAMPLES OF SQL DML: > > > > SELECT ? this retriebve data always or not > > UPDATE ? not retrieve data, only "affected rows" > > DELETE ? not retrieve data, only "affected rows" > > INSERT INTO ? not retrieve data, only "affected rows" > > > > EXAMPLES OF SQL DDL: > > > > CREATE DATABASE ? no any data, only "succesfull or not" > > ALTER DATABASE ? no any data, only "succesfull or not" > > CREATE TABLE ? no any data, only "succesfull or not" > > ALTER TABLE ? no any data, only "succesfull or not" > > DROP TABLE ? no any data, only "succesfull or not" > > CREATE INDEX ? crea un ?ndice. > > DROP INDEX ? borra un ?ndice. > > > > PICCORO LENZ MCKAY changed the state of the bug to: Accepted. > > > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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... Wed Jun 21 15:58:34 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 09:28:34 -0430 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: <20170621130007.GC574@...3600...> References: <20170621130007.GC574@...3600...> Message-ID: 2017-06-21 8:30 GMT-04:30 Tobias Boege : > I have a very unpleasant memories [1] about the last time I changed the > configure.ac of gb.openssl. Please make sure first that the openssl > development packages are installed. > well without these "unpleasant" commits gambas not work in many embebed devices .. that could be upgraded to use newer openssl due own vendors mantain the 0.X releases.. and due very low space, its not good idead put more libs either compiling by me if something fail.. due vendor will said "its your faul" in any case, i see again a last change that again make incompatible my compilation.. i remenber that my path works with olders and newers and works perfectly without problems or bugs.. i tested with the openssl-test attached project in the bug reported (now closed) i have my own GPS client connected to my manpowers for notifications.. more cheap rather pay network connections and related, here in my countrie money changes are no good... > > Regards, > Tobi > > [1] https://sourceforge.net/p/gambas/mailman/gambas-user/thread/BUG984: > 20160829225438017 at ...3416.../ > > -- > "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... Wed Jun 21 16:03:05 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 09:33:05 -0430 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? Message-ID: in project, i just chekc project "get from VERSION file" option for version numbering, where its or where i must put this file? directly in DATA, its not getting the value! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From adamnt42 at ...626... Wed Jun 21 16:13:47 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Wed, 21 Jun 2017 23:43:47 +0930 Subject: [Gambas-user] Strange behaviour of File.Read In-Reply-To: <1498052161364-59467.post@...3046...> References: <1498052161364-59467.post@...3046...> Message-ID: <20170621234347.2ca0afbd54d11899e37119ec@...626...> On Wed, 21 Jun 2017 06:36:01 -0700 (MST) bill-lancaster via Gambas-user wrote: > I must be missing something - any ideas? > Gambas3.9.2 > Components, gb.form, gb,gui, gb.image > > This is the code:- > > Public Sub Button1_Click() > Dim s As String > s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt") > Print s > Print IsDir(s) > Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29") > End > > This is the output:- > > "/home/bill/Pictures/Family/Visits/2000-07-29" > <- Looks like an extra line feed > False > True > I think there is a line termination character in the PhotoFolder.txt file so Print IsDir(s) is seeing "/home/bill/Pictures/Family/Visits/2000-07-29\n" b -- B Bruen From mckaygerhard at ...626... Wed Jun 21 16:15:27 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 09:45:27 -0430 Subject: [Gambas-user] gambas preprocesor can also work in forms? Message-ID: the preprocesor are great http://gambaswiki.org/wiki/lang/.if but also can be used in forms? currently i get work in class files, but for forms how can i do that verifications? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Wed Jun 21 16:34:23 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Jun 2017 16:34:23 +0200 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: References: Message-ID: Le 21/06/2017 ? 16:03, PICCORO McKAY Lenz a ?crit : > in project, i just chekc project "get from VERSION file" option for version > numbering, > > where its or where i must put this file? > > directly in DATA, its not getting the value! > In a parent directory of the project. -- Beno?t Minisini From adamnt42 at ...626... Wed Jun 21 16:40:02 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Thu, 22 Jun 2017 00:10:02 +0930 Subject: [Gambas-user] gambas preprocesor can also work in forms? In-Reply-To: References: Message-ID: <20170622001002.a371cbba334c33be9071e363@...626...> On Wed, 21 Jun 2017 09:45:27 -0430 PICCORO McKAY Lenz wrote: > the preprocesor are great http://gambaswiki.org/wiki/lang/.if but also can > be used in forms? > > currently i get work in class files, but for forms how can i do that > verifications? > > 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 Test attached b -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: cond-0.0.2.tar.gz Type: application/octet-stream Size: 11601 bytes Desc: not available URL: From charlie at ...2793... Wed Jun 21 16:45:13 2017 From: charlie at ...2793... (Charlie) Date: Wed, 21 Jun 2017 07:45:13 -0700 (MST) Subject: [Gambas-user] Strange behaviour of File.Read In-Reply-To: <1498052161364-59467.post@...3046...> References: <1498052161364-59467.post@...3046...> Message-ID: <1498056313914-59479.post@...3046...> bill-lancaster wrote > I must be missing something - any ideas Try changing the line *Print IsDir(s) * to *Print IsDir(Trim(s)) * It worked for me. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59479.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Wed Jun 21 16:52:47 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 10:22:47 -0430 Subject: [Gambas-user] gambas preprocesor can also work in forms? In-Reply-To: <20170622001002.a371cbba334c33be9071e363@...626...> References: <20170622001002.a371cbba334c33be9071e363@...626...> Message-ID: nono..no in the respective class of the form.. i mean specifically for the form.. this due sometimes i get errors in forms when i moved to thoer gambas in other computer: Unknown symbol 'Editor' in class 'FForm' it the error with your test attached Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-21 10:10 GMT-04:30 adamnt42 at ...626... : > On Wed, 21 Jun 2017 09:45:27 -0430 > PICCORO McKAY Lenz wrote: > > > the preprocesor are great http://gambaswiki.org/wiki/lang/.if but also > can > > be used in forms? > > > > currently i get work in class files, but for forms how can i do that > > verifications? > > > > 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 > > Test attached > b > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Wed Jun 21 16:58:59 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 21 Jun 2017 07:58:59 -0700 (MST) Subject: [Gambas-user] Strange behaviour of File.Read In-Reply-To: <1498056313914-59479.post@...3046...> References: <1498052161364-59467.post@...3046...> <1498056313914-59479.post@...3046...> Message-ID: <1498057139749-59481.post@...3046...> Thanks so much for the insight. IsDir(Trim(s)) still produced False, but I tried saving the path with a Variant instead of a string and now I get True Thanks again -- View this message in context: http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59481.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Wed Jun 21 18:05:00 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 11:35:00 -0430 Subject: [Gambas-user] comment docs generatino for class like for variables? Message-ID: in gambas when i put double quote in a variable and added a comment this generate a docs for : Public var1 AS String = "variable1" '' public var1 with default string 'variable1' that code in the ide generates me that: Ftest.var1 > PUBLIC var1 as STRING > variable1" '' public var1 with default string 'variable1' How can i do the same for a hole class file PD: NOTE: if you use [var2] inside that comment will automatically generate link to the var2 delared doc from comment, if var2 has it Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From adamnt42 at ...626... Wed Jun 21 18:23:15 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Thu, 22 Jun 2017 01:53:15 +0930 Subject: [Gambas-user] gambas preprocesor can also work in forms? In-Reply-To: References: <20170622001002.a371cbba334c33be9071e363@...626...> Message-ID: <20170622015315.d94a896dff42e80125f535b1@...626...> (Seeing as we are going`to perpetually top post) On Wed, 21 Jun 2017 10:22:47 -0430 PICCORO McKAY Lenz wrote: > nono..no in the respective class of the form.. i mean specifically for the > form.. I don't understand, a form is just a class with a special metadata file that describes its' layout. Are you are talking about the xxx.form file? If so, then it is that metadata file. It is not code. So it cannot have preprocessor commands in it. ??? > this due sometimes i get errors in forms when i moved to thoer gambas in > other computer: Again, what errors? Where? When? What is different about one computer to the next. And what exactly are you moving? Source, executable archives, installable packages??? > Unknown symbol 'Editor' in class 'FForm' it the error with your test > attached Now you have me confused very. There is no reference to an Editor or indeed a FForm in the file I attached? ??? From mckaygerhard at ...626... Wed Jun 21 18:31:24 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 12:01:24 -0430 Subject: [Gambas-user] gambas preprocesor can also work in forms? In-Reply-To: <20170622015315.d94a896dff42e80125f535b1@...626...> References: <20170622001002.a371cbba334c33be9071e363@...626...> <20170622015315.d94a896dff42e80125f535b1@...626...> Message-ID: 2017-06-21 11:53 GMT-04:30 adamnt42 at ...626... : > > Unknown symbol 'Editor' in class 'FForm' it the error with your test > > attached > > Now you have me confused very. There is no reference to an Editor or > indeed a FForm in the file I attached? > its quite extrange.. i must clean every time i moved to another ide the sources.. that why i ask for preprocesor on forms > > ??? > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 21 18:33:38 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 21 Jun 2017 12:03:38 -0430 Subject: [Gambas-user] comment docs generatino for class like for variables? In-Reply-To: References: Message-ID: discovered: after the firs commen "?ambas class file" put the class comment documentation, as: ' Gambas class file > '' lorem ipsum doc class for generation lorem ipsum doc class... > Export > Inherits GridView > Public Const _Group As String = "Data" > ... and its done.. great! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-21 11:35 GMT-04:30 PICCORO McKAY Lenz : > in gambas when i put double quote in a variable and added a comment this > generate a docs for : > > Public var1 AS String = "variable1" '' public var1 with default string > 'variable1' > > that code in the ide generates me that: > > Ftest.var1 >> PUBLIC var1 as STRING >> variable1" '' public var1 with default string 'variable1' > > > How can i do the same for a hole class file > > PD: NOTE: if you use [var2] inside that comment will automatically > generate link to the var2 delared doc from comment, if var2 has it > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > From jussi.lahtinen at ...626... Wed Jun 21 21:47:24 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 21 Jun 2017 22:47:24 +0300 Subject: [Gambas-user] Strange behaviour of File.Read In-Reply-To: <1498052161364-59467.post@...3046...> References: <1498052161364-59467.post@...3046...> Message-ID: Is that the literal output? Because if there really are quote marks, then the command is equal to: Print IsDir("\"/home/bill/Pictures/Family/Visits/2000-07-29\"") Which is clearly false. However if it is not literal output, then it is impossible to say what is read from the file to the string... Jussi On Wed, Jun 21, 2017 at 4:36 PM, bill-lancaster via Gambas-user < gambas-user at lists.sourceforge.net> wrote: > I must be missing something - any ideas? > Gambas3.9.2 > Components, gb.form, gb,gui, gb.image > > This is the code:- > > Public Sub Button1_Click() > Dim s As String > s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt") > Print s > Print IsDir(s) > Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29") > End > > This is the output:- > > "/home/bill/Pictures/Family/Visits/2000-07-29" > > False > True > > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Strange-behaviour-of-File-Read-tp59467.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 jussi.lahtinen at ...626... Wed Jun 21 21:54:31 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 21 Jun 2017 22:54:31 +0300 Subject: [Gambas-user] Strange behaviour of File.Read In-Reply-To: References: <1498052161364-59467.post@...3046...> Message-ID: Perhaps more clear this way, maybe your file contains line: "/home/bill/Pictures/Family/Visits/2000-07-29" instead of /home/bill/Pictures/Family/Visits/2000-07-29 . So, the quote marks shouldn't be there... Jussi On Wed, Jun 21, 2017 at 10:47 PM, Jussi Lahtinen wrote: > Is that the literal output? > Because if there really are quote marks, then the command is equal to: > > Print IsDir("\"/home/bill/Pictures/Family/Visits/2000-07-29\"") > > Which is clearly false. > > However if it is not literal output, then it is impossible to say what is > read from the file to the string... > > > > Jussi > > > > > > On Wed, Jun 21, 2017 at 4:36 PM, bill-lancaster via Gambas-user < > gambas-user at lists.sourceforge.net> wrote: > >> I must be missing something - any ideas? >> Gambas3.9.2 >> Components, gb.form, gb,gui, gb.image >> >> This is the code:- >> >> Public Sub Button1_Click() >> Dim s As String >> s = File.Load(User.Home &/ "Pictures/PhotoFolder.txt") >> Print s >> Print IsDir(s) >> Print IsDir("/home/bill/Pictures/Family/Visits/2000-07-29") >> End >> >> This is the output:- >> >> "/home/bill/Pictures/Family/Visits/2000-07-29" >> >> False >> True >> >> >> >> >> >> -- >> View this message in context: http://gambas.8142.n7.nabble.c >> om/Strange-behaviour-of-File-Read-tp59467.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... Thu Jun 22 01:14:37 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 21 Jun 2017 23:14:37 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- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Thu Jun 22 01:15:03 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 21 Jun 2017 23:15:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1119: Activate and deactivate breakpoints without deleting them In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1119&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Thu Jun 22 01:18:09 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 21 Jun 2017 23:18:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1118: Button copy report does not work, at the end of creating packages. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1118&from=L21haW4- Comment #1 by Beno?t MINISINI: It works perfectly there, on KDE / Ubuntu 17.04. From bugtracker at ...3416... Thu Jun 22 01:23:18 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 21 Jun 2017 23:23:18 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1118: Button copy report does not work, at the end of creating packages. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1118&from=L21haW4- Comment #2 by Beno?t MINISINI: I have just tested on Mint 17.3 Mate + Cinnamon, and the Mate text editor cannot paste the copied. But LibreOffice (for example) can. So I guess the problem is in the Mate text editor. Beno?t MINISINI changed the state of the bug to: Upstream. From bugtracker at ...3416... Thu Jun 22 01:31:18 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 21 Jun 2017 23:31:18 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- Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bill-lancaster at ...2231... Thu Jun 22 08:10:55 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 21 Jun 2017 23:10:55 -0700 (MST) Subject: [Gambas-user] Strange behaviour of File.Read In-Reply-To: References: <1498052161364-59467.post@...3046...> Message-ID: <1498111855849-59493.post@...3046...> The directory string was written from a directory chooser, originally via a string variable - this is where the quotes came from. Using a variant produces a string without quotes and presumably without \n Thanks again -- View this message in context: http://gambas.8142.n7.nabble.com/Strange-behaviour-of-File-Read-tp59467p59493.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Thu Jun 22 08:17:42 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 22 Jun 2017 06:17:42 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 #7 by hakan UNVER: Hii I try Step by step explain. - We connect Mysql server - user working smoothly. - Any Time Mysql Server Stop or have network problem.. - If the user does something at this time - MYSQL_OPT_RECONNECT start try reconnecting - ?f Mysql server 15 min Dont work MYSQL_OPT_RECONNECT Try forever for connect server - This Time User application Not responding. Question is : In similar situations How to dedect this situation , or How we set MYSQL_OPT_RECONNECT time out option ? From bagonergi at ...626... Thu Jun 22 09:31:11 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 22 Jun 2017 09:31:11 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: Hi Benoit, our friend reports that now opens the tips window that works, but when he closes the window Gambas does not start. What other information do you need? I asked him for an image, and if he finds Gambas out of the dash Attached the new log files, it seems all right. Regards Gianluigi 2017-06-21 15:32 GMT+02:00 Beno?t Minisini : > Le 21/06/2017 ? 15:29, Beno?t Minisini a ?crit : > >> Le 21/06/2017 ? 15:25, Gianluigi a ?crit : >> >>> The libreries you have indicated are the last 5 of the command I >>> suggested, which is not wrong. >>> So I just have to let him to add libssl-dev, but I do not think his >>> problem stems from this, right? >>> Why he can not run Gambas and get these errors from the terminal? >>> Settings.WriteWindow.393: #20: Bad argument >>> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 >>> FMain.Form_Open.78 Project.Main.366 >>> >>> Regards >>> Gianluigi >>> >>> >> I don't know. I'm working on Kubuntu 17.04, and I have no problem with >> compiling Gambas, except the missing llvm 3.5. >> >> > Can you try to recompile the very latest revision? I added some code that > should avoid the specific crash you have. > > -- > Beno?t Minisini > From bagonergi at ...626... Thu Jun 22 09:40:21 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 22 Jun 2017 09:40:21 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: Missing attached here, sorry Regards Gianluigi 2017-06-21 15:32 GMT+02:00 Beno?t Minisini : > Le 21/06/2017 ? 15:29, Beno?t Minisini a ?crit : > >> Le 21/06/2017 ? 15:25, Gianluigi a ?crit : >> >>> The libreries you have indicated are the last 5 of the command I >>> suggested, which is not wrong. >>> So I just have to let him to add libssl-dev, but I do not think his >>> problem stems from this, right? >>> Why he can not run Gambas and get these errors from the terminal? >>> Settings.WriteWindow.393: #20: Bad argument >>> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 >>> FMain.Form_Open.78 Project.Main.366 >>> >>> Regards >>> Gianluigi >>> >>> >> I don't know. I'm working on Kubuntu 17.04, and I have no problem with >> compiling Gambas, except the missing llvm 3.5. >> >> > Can you try to recompile the very latest revision? I added some code that > should avoid the specific crash you have. > > -- > Beno?t Minisini > -------------- next part -------------- A non-text attachment was scrubbed... Name: LogFile.tar.gz Type: application/x-gzip Size: 34801 bytes Desc: not available URL: From bagonergi at ...626... Thu Jun 22 11:37:59 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 22 Jun 2017 11:37:59 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: Hi Benoit, problem solved. He forgot to tell us he has Ubuntu with Unity and Gnome but uses only Gnome. It was enough to run Gambas on Unity, which then started running on Gnome. Regards Gianluigi 2017-06-22 9:40 GMT+02:00 Gianluigi : > Missing attached here, sorry > > Regards > Gianluigi > > > 2017-06-21 15:32 GMT+02:00 Beno?t Minisini : > >> Le 21/06/2017 ? 15:29, Beno?t Minisini a ?crit : >> >>> Le 21/06/2017 ? 15:25, Gianluigi a ?crit : >>> >>>> The libreries you have indicated are the last 5 of the command I >>>> suggested, which is not wrong. >>>> So I just have to let him to add libssl-dev, but I do not think his >>>> problem stems from this, right? >>>> Why he can not run Gambas and get these errors from the terminal? >>>> Settings.WriteWindow.393: #20: Bad argument >>>> Settings.WriteWindow.393 Settings.Write.439 FDebugInfo.UpdateView.848 >>>> FMain.Form_Open.78 Project.Main.366 >>>> >>>> Regards >>>> Gianluigi >>>> >>>> >>> I don't know. I'm working on Kubuntu 17.04, and I have no problem with >>> compiling Gambas, except the missing llvm 3.5. >>> >>> >> Can you try to recompile the very latest revision? I added some code that >> should avoid the specific crash you have. >> >> -- >> Beno?t Minisini >> > > From gambas at ...1... Thu Jun 22 11:40:57 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Jun 2017 11:40:57 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> Message-ID: <8cfcb1e3-952f-ce82-a63c-f53e635ddb0c@...1...> Le 22/06/2017 ? 11:37, Gianluigi a ?crit : > Hi Benoit, > problem solved. > He forgot to tell us he has Ubuntu with Unity and Gnome but uses only Gnome. > It was enough to run Gambas on Unity, which then started running on Gnome. > > Regards > Gianluigi > Sorry I don't understand what you wrote. -- Beno?t Minisini From bagonergi at ...626... Thu Jun 22 11:57:37 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 22 Jun 2017 11:57:37 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: <8cfcb1e3-952f-ce82-a63c-f53e635ddb0c@...1...> References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> <8cfcb1e3-952f-ce82-a63c-f53e635ddb0c@...1...> Message-ID: He has two desktops on his Ubuntu, Unity and Gnome 3.24.2. But he used only the Gnome desktop. I asked him if on Unity Gambas is working. After trying to run Gambas on Unity successfully, Gambas started working on the Gnome desktop as well. I hope to have better explained. Regards Gianluigi 2017-06-22 11:40 GMT+02:00 Beno?t Minisini : > Le 22/06/2017 ? 11:37, Gianluigi a ?crit : > >> Hi Benoit, >> problem solved. >> He forgot to tell us he has Ubuntu with Unity and Gnome but uses only >> Gnome. >> It was enough to run Gambas on Unity, which then started running on Gnome. >> >> Regards >> Gianluigi >> >> > Sorry I don't understand what you wrote. > > -- > Beno?t Minisini > From mckaygerhard at ...626... Thu Jun 22 12:32:55 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 22 Jun 2017 06:32:55 -0400 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> <8cfcb1e3-952f-ce82-a63c-f53e635ddb0c@...1...> Message-ID: its the worst instalacion i never see, why not only just use the ppa? in any case using a specific desktop nothing to do related respect to launch or run! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-22 5:57 GMT-04:00 Gianluigi : > He has two desktops on his Ubuntu, Unity and Gnome 3.24.2. > But he used only the Gnome desktop. > I asked him if on Unity Gambas is working. > After trying to run Gambas on Unity successfully, Gambas started working on > the Gnome desktop as well. > I hope to have better explained. > > Regards > Gianluigi > > 2017-06-22 11:40 GMT+02:00 Beno?t Minisini : > > > Le 22/06/2017 ? 11:37, Gianluigi a ?crit : > > > >> Hi Benoit, > >> problem solved. > >> He forgot to tell us he has Ubuntu with Unity and Gnome but uses only > >> Gnome. > >> It was enough to run Gambas on Unity, which then started running on > Gnome. > >> > >> Regards > >> Gianluigi > >> > >> > > Sorry I don't understand what you wrote. > > > > -- > > 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 bagonergi at ...626... Thu Jun 22 13:28:28 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 22 Jun 2017 13:28:28 +0200 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> <8cfcb1e3-952f-ce82-a63c-f53e635ddb0c@...1...> Message-ID: 2017-06-22 12:32 GMT+02:00 PICCORO McKAY Lenz : > its the worst instalacion i never see, > :-) de gustibus non est disputandum > > why not only just use the ppa? > It did not work > > in any case using a specific desktop nothing to do related respect to > launch or run! > > It does not seem that way > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-22 5:57 GMT-04:00 Gianluigi : > > > He has two desktops on his Ubuntu, Unity and Gnome 3.24.2. > > But he used only the Gnome desktop. > > I asked him if on Unity Gambas is working. > > After trying to run Gambas on Unity successfully, Gambas started working > on > > the Gnome desktop as well. > > I hope to have better explained. > > > > Regards > > Gianluigi > > > > 2017-06-22 11:40 GMT+02:00 Beno?t Minisini >: > > > > > Le 22/06/2017 ? 11:37, Gianluigi a ?crit : > > > > > >> Hi Benoit, > > >> problem solved. > > >> He forgot to tell us he has Ubuntu with Unity and Gnome but uses only > > >> Gnome. > > >> It was enough to run Gambas on Unity, which then started running on > > Gnome. > > >> > > >> Regards > > >> Gianluigi > > >> > > >> > > > Sorry I don't understand what you wrote. > > > > > > -- > > > 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 alexchernoff at ...67... Thu Jun 22 13:56:46 2017 From: alexchernoff at ...67... (alexchernoff) Date: Thu, 22 Jun 2017 04:56:46 -0700 (MST) Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <20170621223118.b602245271bde64e3a2884a7@...626...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> Message-ID: <1498132606164-59502.post@...3046...> Peace! Well, Public Sub Application_Error() does fire upon a fatal error, but is it possible to know what the last error was? cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59502.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Thu Jun 22 14:16:04 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Jun 2017 14:16:04 +0200 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <1498132606164-59502.post@...3046...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> <1498132606164-59502.post@...3046...> Message-ID: <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> Le 22/06/2017 ? 13:56, alexchernoff a ?crit : > Peace! > > Well, Public Sub Application_Error() does fire upon a fatal error, but is it > possible to know what the last error was? > > cheers! > > At the moment, no. -- Beno?t Minisini From alexchernoff at ...67... Thu Jun 22 14:26:44 2017 From: alexchernoff at ...67... (alexchernoff) Date: Thu, 22 Jun 2017 05:26:44 -0700 (MST) Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> <1498132606164-59502.post@...3046...> <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> Message-ID: <1498134404588-59504.post@...3046...> well, at least system.backtrace[1] (or error.backtrace[0] seem to show the error line. But it would be nice to get fatal interpreter errors written to a file. cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59504.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Thu Jun 22 15:17:54 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 22 Jun 2017 09:17:54 -0400 Subject: [Gambas-user] Errors compiling on Ubuntu 17.04 zesty In-Reply-To: References: <6a6ae0e6-24be-f524-4a5c-2826c6ecc645@...1...> <87a91959-0939-5cfe-3184-070f22ccd813@...1...> <8cfcb1e3-952f-ce82-a63c-f53e635ddb0c@...1...> Message-ID: 2017-06-22 7:28 GMT-04:00 Gianluigi : > :-) de gustibus non est disputandum > O.o > It did not work > why? maybe the problem of the ppa are the same of the curent instalation... umm i already know now! you are using win... i mean winbuntu! X-D > > in any case using a specific desktop nothing to do related respect to > > launch or run! > It does not seem that way > so then was not unity or gnome!? > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-06-22 5:57 GMT-04:00 Gianluigi : > > > > > He has two desktops on his Ubuntu, Unity and Gnome 3.24.2. > > > But he used only the Gnome desktop. > > > I asked him if on Unity Gambas is working. > > > After trying to run Gambas on Unity successfully, Gambas started > working > > on > > > the Gnome desktop as well. > > > I hope to have better explained. > > > > > > Regards > > > Gianluigi > > > > > > 2017-06-22 11:40 GMT+02:00 Beno?t Minisini < > gambas at ...1... > > >: > > > > > > > Le 22/06/2017 ? 11:37, Gianluigi a ?crit : > > > > > > > >> Hi Benoit, > > > >> problem solved. > > > >> He forgot to tell us he has Ubuntu with Unity and Gnome but uses > only > > > >> Gnome. > > > >> It was enough to run Gambas on Unity, which then started running on > > > Gnome. > > > >> > > > >> Regards > > > >> Gianluigi > > > >> > > > >> > > > > Sorry I don't understand what you wrote. > > > > > > > > -- > > > > 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 > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 22 15:21:24 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 22 Jun 2017 09:21:24 -0400 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? Message-ID: i have some GOTO to avoit large IF-ELSE code blocks and make readable the code.. the usage of many GOTO instructions can be bad pracitce or make influence in the code? i remenber that in BASIC always tell me "dont use too much" of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Thu Jun 22 15:59:01 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Jun 2017 15:59:01 +0200 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: Le 22/06/2017 ? 15:21, PICCORO McKAY Lenz a ?crit : > i have some GOTO to avoit large IF-ELSE code blocks and make readable the > code.. > > the usage of many GOTO instructions can be bad pracitce or make influence > in the code? > > i remenber that in BASIC always tell me "dont use too much" > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-) > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com If your code is more readable with GOTO than without GOTO, then use GOTO. Note than you have GOSUB too. Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Thu Jun 22 16:00:53 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 22 Jun 2017 17:00:53 +0300 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: Depends on situation. Usually goto is not needed, but it can be useful. Impossible to say more without seeing the code. Usually the problem with goto is that it can render the code hard to debug or read. Jussi On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz wrote: > i have some GOTO to avoit large IF-ELSE code blocks and make readable the > code.. > > the usage of many GOTO instructions can be bad pracitce or make influence > in the code? > > i remenber that in BASIC always tell me "dont use too much" > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-) > > > 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 mckaygerhard at ...626... Thu Jun 22 16:10:21 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 22 Jun 2017 10:10:21 -0400 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen : > Usually the problem with goto is that it can render the code hard to debug > or read. > AH OK, so in large complex dependences must be avoid.. i only use to avoid a similar to this: if isnull(value ) then ' amount of 4000 lines of code else ' amount of other lot of lines endif so i put if not isnull() goto codepiecelabel1 endif ' amount of lines codepiecelabel1: ' here the 4000 lines i cannot use a sub procedures due manage some variables > > > Jussi > > On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz < > mckaygerhard at ...626...> > wrote: > > > i have some GOTO to avoit large IF-ELSE code blocks and make readable the > > code.. > > > > the usage of many GOTO instructions can be bad pracitce or make influence > > in the code? > > > > i remenber that in BASIC always tell me "dont use too much" > > > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-) > > > > > > 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 taboege at ...626... Thu Jun 22 16:23:58 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 22 Jun 2017 16:23:58 +0200 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: <20170622142358.GB583@...3600...> On Thu, 22 Jun 2017, PICCORO McKAY Lenz wrote: > 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen : > > > Usually the problem with goto is that it can render the code hard to debug > > or read. > > > AH OK, so in large complex dependences must be avoid.. > > i only use to avoid a similar to this: > > if isnull(value ) then > ' amount of 4000 lines of code > > else > ' amount of other lot of lines > endif > > so i put > > if not isnull() > goto codepiecelabel1 > endif > ' amount of lines > > codepiecelabel1: > ' here the 4000 lines > > > i cannot use a sub procedures due manage some variables > This is excessive. Maybe you can think about if your variables can be put into a meaningful class. An object of this class contains all your relevant variables and you can pass a reference of that object (as a container for the variables) to a function. If there's no sensible grouping of variables into classes but you don't have dozens of variables, then you could try ByRef [1]. Regards, Tobi [1] http://gambaswiki.org/wiki/doc/byref -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From criguada at ...626... Thu Jun 22 16:24:02 2017 From: criguada at ...626... (Cristiano Guadagnino) Date: Thu, 22 Jun 2017 16:24:02 +0200 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: Based on your example, I would not find the code using GOTO any more readable. Quite to the contrary, instead. And I don't understand why you cannot use a sub. What's the problem with variables that cannot be solved by passing the needed variables or using globals? Anyway, coding style is a matter of taste, so go with what you prefer. Unless the code needs to be read/perused by others, obviously. Cris On Thu, Jun 22, 2017 at 4:10 PM, PICCORO McKAY Lenz wrote: > 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen : > > > Usually the problem with goto is that it can render the code hard to > debug > > or read. > > > AH OK, so in large complex dependences must be avoid.. > > i only use to avoid a similar to this: > > if isnull(value ) then > ' amount of 4000 lines of code > > else > ' amount of other lot of lines > endif > > so i put > > if not isnull() > goto codepiecelabel1 > endif > ' amount of lines > > codepiecelabel1: > ' here the 4000 lines > > > i cannot use a sub procedures due manage some variables > > > > > > > > Jussi > > > > On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz < > > mckaygerhard at ...626...> > > wrote: > > > > > i have some GOTO to avoit large IF-ELSE code blocks and make readable > the > > > code.. > > > > > > the usage of many GOTO instructions can be bad pracitce or make > influence > > > in the code? > > > > > > i remenber that in BASIC always tell me "dont use too much" > > > > > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-) > > > > > > > > > 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 mckaygerhard at ...626... Thu Jun 22 16:45:20 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 22 Jun 2017 10:45:20 -0400 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: of course was a simple lines.. the code are around 3000 lines.. yes its complicated.. i have vision . of course.. make the work as JAva works, in the future maybe i make a framework based on my eforces Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-22 10:24 GMT-04:00 Cristiano Guadagnino : > Based on your example, I would not find the code using GOTO any more > readable. Quite to the contrary, instead. > And I don't understand why you cannot use a sub. What's the problem with > variables that cannot be solved by passing the needed variables or using > globals? > > Anyway, coding style is a matter of taste, so go with what you prefer. > Unless the code needs to be read/perused by others, obviously. > > Cris > > > On Thu, Jun 22, 2017 at 4:10 PM, PICCORO McKAY Lenz < > mckaygerhard at ...626...> > wrote: > > > 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen : > > > > > Usually the problem with goto is that it can render the code hard to > > debug > > > or read. > > > > > AH OK, so in large complex dependences must be avoid.. > > > > i only use to avoid a similar to this: > > > > if isnull(value ) then > > ' amount of 4000 lines of code > > > > else > > ' amount of other lot of lines > > endif > > > > so i put > > > > if not isnull() > > goto codepiecelabel1 > > endif > > ' amount of lines > > > > codepiecelabel1: > > ' here the 4000 lines > > > > > > i cannot use a sub procedures due manage some variables > > > > > > > > > > > > > Jussi > > > > > > On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz < > > > mckaygerhard at ...626...> > > > wrote: > > > > > > > i have some GOTO to avoit large IF-ELSE code blocks and make readable > > the > > > > code.. > > > > > > > > the usage of many GOTO instructions can be bad pracitce or make > > influence > > > > in the code? > > > > > > > > i remenber that in BASIC always tell me "dont use too much" > > > > > > > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-) > > > > > > > > > > > > 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 nando_f at ...951... Thu Jun 22 16:32:17 2017 From: nando_f at ...951... (nando_f at ...951...) Date: Thu, 22 Jun 2017 10:32:17 -0400 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: <20170622143114.M45066@...951...> Sometimes GOTO is needed...especially if you want your code to run faster. Used properly and judiciously, it can make code reading much easier. -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Cristiano Guadagnino To: mailing list for gambas users Sent: Thu, 22 Jun 2017 16:24:02 +0200 Subject: Re: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? > Based on your example, I would not find the code using GOTO any more > readable. Quite to the contrary, instead. > And I don't understand why you cannot use a sub. What's the problem with > variables that cannot be solved by passing the needed variables or using > globals? > > Anyway, coding style is a matter of taste, so go with what you prefer. > Unless the code needs to be read/perused by others, obviously. > > Cris > > On Thu, Jun 22, 2017 at 4:10 PM, PICCORO McKAY Lenz > wrote: > > > 2017-06-22 10:00 GMT-04:00 Jussi Lahtinen : > > > > > Usually the problem with goto is that it can render the code hard to > > debug > > > or read. > > > > > AH OK, so in large complex dependences must be avoid.. > > > > i only use to avoid a similar to this: > > > > if isnull(value ) then > > ' amount of 4000 lines of code > > > > else > > ' amount of other lot of lines > > endif > > > > so i put > > > > if not isnull() > > goto codepiecelabel1 > > endif > > ' amount of lines > > > > codepiecelabel1: > > ' here the 4000 lines > > > > > > i cannot use a sub procedures due manage some variables > > > > > > > > > > > > > Jussi > > > > > > On Thu, Jun 22, 2017 at 4:21 PM, PICCORO McKAY Lenz < > > > mckaygerhard at ...626...> > > > wrote: > > > > > > > i have some GOTO to avoit large IF-ELSE code blocks and make readable > > the > > > > code.. > > > > > > > > the usage of many GOTO instructions can be bad pracitce or make > > influence > > > > in the code? > > > > > > > > i remenber that in BASIC always tell me "dont use too much" > > > > > > > > of course GAMBAS IS NOT BASIC (umm that sound familiarr... ;-) > > > > > > > > > > > > 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 ------- End of Original Message ------- From fernandojosecabral at ...626... Thu Jun 22 19:53:06 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Thu, 22 Jun 2017 14:53:06 -0300 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: <20170622142358.GB583@...3600...> References: <20170622142358.GB583@...3600...> Message-ID: On Thu, 22 Jun 2017, PICCORO McKAY Lenz wrote: > > i only use to avoid a similar to this: > > > > if isnull(value ) then > > ' amount of 4000 lines of code > > else > > ' amount of other lot of lines > > endif > > if not isnull() > > goto codepiecelabel1 > > endif > > ' amount of lines > > I don't want to be blunt, but I am forced to say that: a) GOTO is always avoidable (even in COBOL) b) The need for GOTO usally comes from poor coding (and perhaps poor languages) c) For me, the above example is one of the worst situations to use GOTO. It makes reading and understanding the code very, very hard. My experience is that when you get to a point where GOTO seems to be the best solution (sometimes, only solution) then probabibly you have thought not enough about what you are coding -- or coded well enough. Finally, if you set the GOTO to break a loop, or to jump to a nearby place, you might be able to survive. But if you use it to to jump over 4000 lines of code, that should sound a LOUD, VERY LOUD alarm. Something is probabily very wrong. I simply can not think about a situation where you have a single block of 4.000 lines of code. It should have been broken down into a few tens or pehaps hundreds functions. It means, even thou I don't know your code, I would guess it has not been well thought out.. Regards - fernando be put into a meaningful class. An object of this class contains all > your relevant variables and you can pass a reference of that object > (as a container for the variables) to a function. > > If there's no sensible grouping of variables into classes but you > don't have dozens of variables, then you could try ByRef [1]. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/doc/byref > > -- > "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 alexchernoff at ...67... Thu Jun 22 22:12:06 2017 From: alexchernoff at ...67... (alexchernoff) Date: Thu, 22 Jun 2017 13:12:06 -0700 (MST) Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <1498134404588-59504.post@...3046...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> <1498132606164-59502.post@...3046...> <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> <1498134404588-59504.post@...3046...> Message-ID: <1498162326532-59515.post@...3046...> Anyone know if there is a wrapper to daemonize apps while keeping them in regular console mode? That way maybe it will be possible to log fatal interpreter errors? Peace! -- View this message in context: http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59515.html Sent from the gambas-user mailing list archive at Nabble.com. From adrien.prokopowicz at ...626... Fri Jun 23 12:09:57 2017 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Fri, 23 Jun 2017 12:09:57 +0200 Subject: [Gambas-user] Class HtmlDocument In-Reply-To: References: <1849a698-5c17-b5d5-ed3e-8fd7a86238cd@...3219...> <20170606232024.f40a4b3e019834f6ebf08c2d@...626...> Message-ID: Le Thu, 08 Jun 2017 16:02:32 +0200, Adrien Prokopowicz a ?crit: > Le Tue, 06 Jun 2017 15:50:24 +0200, adamnt42 at ...626... > a ?crit: > >> On Mon, 5 Jun 2017 11:56:34 +0200 >> Hans Lehmann wrote: >> >>> Hello, >>> >>> why creates the following source text: >>> >>> Public Sub btnCreateHTMLDocument_Click() >>> Dim hHtmlDocument As HtmlDocument >>> >>> hHtmlDocument = New HtmlDocument >> >> At this point hHtmlDocument.Html5 is false!! >> >>> >>> *hHtmlDocument.Html5 = False** >>> * >>> Print hHtmlDocument.ToString(True) >>> hHtmlDocument.Save(Application.Path &/ "test.html", True) >>> >>> End >>> >>> this HTML5 document? I would have expected: strict HTML 1.0! >>> >>> >>> >>> >>> >> /> >>> >>> >>> >>> >>> >>> >>> >>> Hans >> So, I guess that you are right. In fact, changing it to True and then >> back to False seems to have absolutely no effect on the generated html >> text. >> Oh well, back to Adrien for this one I'd say. >> >> b > > Hi guys, sorry for the delay, I've been a bit busy and missed your email > ! > > This is indeed a bug in gb.xml.html, I'm looking into fixing it ASAP. :) > > Regards, > This is now fixed in revision #8148. :) -- Adrien Prokopowicz From taboege at ...626... Fri Jun 23 12:46:13 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 23 Jun 2017 12:46:13 +0200 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <1498162326532-59515.post@...3046...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> <1498132606164-59502.post@...3046...> <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> <1498134404588-59504.post@...3046...> <1498162326532-59515.post@...3046...> Message-ID: <20170623104613.GA577@...3600...> On Thu, 22 Jun 2017, alexchernoff wrote: > Anyone know if there is a wrapper to daemonize apps while keeping them in > regular console mode? That way maybe it will be possible to log fatal > interpreter errors? > Why do you want to daemonise then? From the manpage of daemon(): The daemon() function is for programs wishing to detach themselves from the controlling terminal and run in the background as system daemons. Maybe it's time to ask what you want to accomplish, because it's probably not running a daemon. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at ...3416... Fri Jun 23 13:05:56 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 23 Jun 2017 11:05: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- Comment #5 by V?ctor PEREZ: Probe in the development version and the event menu does not appear when you type the second low script. From alexchernoff at ...67... Fri Jun 23 15:42:54 2017 From: alexchernoff at ...67... (alexchernoff) Date: Fri, 23 Jun 2017 06:42:54 -0700 (MST) Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <20170623104613.GA577@...3600...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> <1498132606164-59502.post@...3046...> <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> <1498134404588-59504.post@...3046...> <1498162326532-59515.post@...3046...> <20170623104613.GA577@...3600...> Message-ID: <1498225374298-59519.post@...3046...> Peace! Making apps daemons is exactly what I want to achieve, but couldn't get interpreter errors to log to file in native daemon mode. So I thought maybe a wrapper can start a non daemon app, intercept all output including interpreter errors, and go into background? This is boot time start "service" apps. Cheers -- View this message in context: http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59519.html Sent from the gambas-user mailing list archive at Nabble.com. From bugtracker at ...3416... Sat Jun 24 23:14:03 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 24 Jun 2017 21:14:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1123: Desktop.SendMail in its attachment field gives error if file name contains a comma Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1123&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- Desktop.SendMail in its attachment field gives error if file name contains a comma Type : Bug Priority : Medium Gambas version : Unknown Product : GUI components Description ----------- Desktop.SendMail in its attachment field gives error if file name contains a comma Desktop.SendMail en su campo de archivo adjunto da error si el nombre de archivo contiene una coma name=El Sabado Dia de Reposo(descanso), El Sabbath.lv Public Sub btnEnviarList_Click() Dim archivo As String 'fvwListas.Current=El Sabado Dia de Reposo(descanso), El Sabbath.lv archivo = FMain.TusListas & "/" & fvwListas.Current Print "archivo=" & archivo Desktop.SendMail(Null,,,,, archivo) Catch Debug Error.Text & ":" & Error.Where End 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... Sun Jun 25 01:56:31 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 24 Jun 2017 23:56:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1124: Gambas trunk 8148 can't find postgres under Arch/manjaro when postgresql 9.6.3-2 is installed Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1124&from=L21haW4- Tony MOREHEN reported a new bug. Summary ------- Gambas trunk 8148 can't find postgres under Arch/manjaro when postgresql 9.6.3-2 is installed Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- ./configure can't find postgres.h and pg_type.h so disables gb.db.postgres postgres.h is found in /usr/include/postgresql/server/postgres.h pg_type.h is found in /usr/include/postgresql/server/catalog/pg_type.h I changed line 16 of from: [GB_FIND(libpq-fe.h postgres.h pg_type.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include/pgsql* pgsql*/include include/postgresql* postgresql*/include include/postgresql/*/server/catalog include/postgresql/*/server include)], to [GB_FIND(libpq-fe.h postgres.h pg_type.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include/pgsql* pgsql*/include include/postgresql* postgresql*/include include/postgresql/*/server/catalog include/postgresql/*/server include/postgresql/server/catalog include/postgresql/server include)], Everything configured OK. Question: Is include/postgresql/*/server/catalog include/postgresql/*/server correct? the /*/ seems out of place. Maybe should be */ FYI gb.qt5 webkit will not compile under the latest arch/manjaro qt5 webkit version: qt5-webkit-5.212.0alpha2-1-x86_64. The fault is not Gambas. qt5-webkit-5.212.0alpha2-1-x86_64 contains broken pkg-config files. I've raised a bug report with arch. As a temporary fix, you can overwrite /usr/lib/pkgconfig/Qt5WebKitWidgets.pc and /usr/lib/pkgconfig/Qt5WebKit.pc with the same files from an earlier version of webkit. System information ------------------ [System] Gambas=3.9.90 r8147 OperatingSystem=Linux Kernel=4.9.33-1-MANJARO Architecture=x86_64 Distribution=Manjaro Linux Desktop=XFCE Theme=Gtk Language=en_CA.utf8 Memory=3947M [Libraries] Cairo=libcairo.so.2.11400.10 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.11 GStreamer=libgstreamer-1.0.so.0.1201.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 GTK+3=libgtk-3.so.0.2200.16 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.67.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.0 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=xfce DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=xfce GLADE_CATALOG_PATH=: GLADE_MODULE_PATH=: GLADE_PIXMAP_PATH=: GTK2_RC_FILES=/.gtkrc-2.0 GTK_MODULES=canberra-gtk-module:canberra-gtk-module HOME= LANG=en_CA.utf8 LC_ADDRESS=en_CA.UTF-8 LC_IDENTIFICATION=en_CA.UTF-8 LC_MEASUREMENT=en_CA.UTF-8 LC_MONETARY=en_CA.UTF-8 LC_NAME=en_CA.UTF-8 LC_NUMERIC=en_CA.UTF-8 LC_PAPER=en_CA.UTF-8 LC_TELEPHONE=en_CA.UTF-8 LC_TIME=en_CA.UTF-8 LOGNAME= MAIL=/var/spool/mail/ MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl PWD= QT_QPA_PLATFORMTHEME=qt5ct SAL_USE_VCLPLUGIN=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/24001,unix/:/tmp/.ICE-unix/24001 SHELL=/bin/bash SHLVL=1 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg XDG_CURRENT_DESKTOP=XFCE XDG_DATA_DIRS=/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=xfce- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=xfce XDG_SESSION_ID=c6 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 _=/usr/bin/xfce4-session From chrisml at ...3340... Sun Jun 25 11:31:33 2017 From: chrisml at ...3340... (Christof Thalhofer) Date: Sun, 25 Jun 2017 11:31:33 +0200 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: Am 22.06.2017 um 16:10 schrieb PICCORO McKAY Lenz: > so i put > > if not isnull() > goto codepiecelabel1 > endif > ' amount of lines > > codepiecelabel1: > ' here the 4000 lines > > > i cannot use a sub procedures due manage some variables I never understood the religious cruzification of Goto. Sometimes I do things like: If anyvar = Null then Goto EndAndExit Endif 'Some or a lot of code ... 'Inside another break: If anothervar = Null Then Goto EndAndExit Endif EndAndExit: End For that situations I find Goto very useful. If I use Goto, I only use it to jump downwards. I for me found out that jumping upwards is a jump to hell. And if it is really useful (jumping upwards, very very seldom) then it has to be heavily documented. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at ...626... Sun Jun 25 14:18:54 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 25 Jun 2017 07:48:54 -0430 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: due to many inconsistence responses i must spend time (again) to investigating.. the problem of goto comes from C to object conversion compilation.. many goto's produce many labels and "jump"'s in assembler code translation when a C program are compling.. so the resulting program will be more slower due too many "jumps" this are poor ilustrated to most of users here in the list due i think nobody here know (in experience) code in assemble like me.. i case of gambas analizing the code seems are not the same.. due gambas fist make their own bycode that runtime inderstand and then that runtime pass to object mahine.. so many things change and its not the same... in easy words.. so i'm very frustrating due when i try to use gambas in professional way (due are very promisess and usefully) many questions require spend of time due situations like that... please users.. dont make conjetures of things that not known, causes spend of time of otheers Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-25 5:01 GMT-04:30 Christof Thalhofer : > Am 22.06.2017 um 16:10 schrieb PICCORO McKAY Lenz: > > > so i put > > > > if not isnull() > > goto codepiecelabel1 > > endif > > ' amount of lines > > > > codepiecelabel1: > > ' here the 4000 lines > > > > > > i cannot use a sub procedures due manage some variables > > I never understood the religious cruzification of Goto. > > Sometimes I do things like: > > If anyvar = Null then > Goto EndAndExit > Endif > > 'Some or a lot of code ... > 'Inside another break: > > If anothervar = Null Then > Goto EndAndExit > Endif > > > EndAndExit: > End > > For that situations I find Goto very useful. > > If I use Goto, I only use it to jump downwards. I for me found out that > jumping upwards is a jump to hell. > > And if it is really useful (jumping upwards, very very seldom) then it > has to be heavily documented. > > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 nigelverity at ...67... Sun Jun 25 14:43:55 2017 From: nigelverity at ...67... (Nigel Verity) Date: Sun, 25 Jun 2017 12:43:55 +0000 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce ? Message-ID: I don't believe the use of GOTO is bad practice in terms of the efficiency and performance of the program, but its convenience often leads to lazy "spaghetti" code design which, in turn, usually leads to bugs. The use of RETURN is a much tidier way of breaking out of a SUB or FUNCTION, which has the effect of "GOTO END OF SUB/FUNCTION". It will then take you to the next line in the SUB/FUNCTION which made the call. It is always possible to write and position IF, SWITCH statements or loops in a way to avoid the need for a GOTO statement. The code following the corresponding label could, for example, be contained in a separate SUB or FUNCTION, which makes the code tidier and makes it easily reusable within the program. I certainly would not say that programmer who uses lots of GOTO statements is a bad programmer (as long as the program works correctly and efficiently) but I believe that few developers would choose to maintain code written by somebody else containing lots of GOTO statements. It's important to stress that this principle is not unique to Gambas. Nearly all programming languages support the concept of the "GOTO" (even C), and VB actively encourages it in its error handling, which is why Gambas is so superior. Nige From bagonergi at ...626... Sun Jun 25 14:57:46 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 25 Jun 2017 14:57:46 +0200 Subject: [Gambas-user] Software farm difference between download and install Message-ID: I apologize if is already been asked, I did not find the answer. I not known differences between download and install in Software farm. There are? Regards Gianluigi From mckaygerhard at ...626... Sun Jun 25 15:12:51 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 25 Jun 2017 09:12:51 -0400 Subject: [Gambas-user] Software farm difference between download and install In-Reply-To: References: Message-ID: download will only put the code at the location in home.. install added some extra steps and put by example a menu desktop entry Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-25 8:57 GMT-04:00 Gianluigi : > I apologize if is already been asked, I did not find the answer. > I not known differences between download and install in Software farm. > There are? > > 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... Sun Jun 25 15:15:02 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 25 Jun 2017 09:15:02 -0400 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce ? In-Reply-To: References: Message-ID: niger, please when edited the Subject mantain the original suject.. if users want to automatically response in conversatin any mail from gambas, please disable digest mode and use dary mode.. each mail will coming separatelly this its very usefully for gmail like inbos where each mail are in-conversation mode... for separing mails use labels.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-25 8:43 GMT-04:00 Nigel Verity : > I don't believe the use of GOTO is bad practice in terms of the efficiency > and performance of the program, but its convenience often leads to lazy > "spaghetti" code design which, in turn, usually leads to bugs. > > > The use of RETURN is a much tidier way of breaking out of a SUB or > FUNCTION, which has the effect of "GOTO END OF SUB/FUNCTION". It will then > take you to the next line in the SUB/FUNCTION which made the call. > > > It is always possible to write and position IF, SWITCH statements or loops > in a way to avoid the need for a GOTO statement. The code following the > corresponding label could, for example, be contained in a separate SUB or > FUNCTION, which makes the code tidier and makes it easily reusable within > the program. > > > I certainly would not say that programmer who uses lots of GOTO statements > is a bad programmer (as long as the program works correctly and > efficiently) but I believe that few developers would choose to maintain > code written by somebody else containing lots of GOTO statements. > > > It's important to stress that this principle is not unique to Gambas. > Nearly all programming languages support the concept of the "GOTO" (even > C), and VB actively encourages it in its error handling, which is why > Gambas is so superior. > > > Nige > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 25 16:52:35 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 25 Jun 2017 16:52:35 +0200 Subject: [Gambas-user] Software farm difference between download and install In-Reply-To: References: Message-ID: Does not look like this here Both installed and downloaded projects are displayed in the Installed Software menu. Same thing for menu Examples 2017-06-25 15:12 GMT+02:00 PICCORO McKAY Lenz : > download will only put the code at the location in home.. > > install added some extra steps and put by example a menu desktop entry > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-25 8:57 GMT-04:00 Gianluigi : > > > I apologize if is already been asked, I did not find the answer. > > I not known differences between download and install in Software farm. > > There are? > > > > 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 fernandojosecabral at ...626... Sun Jun 25 17:10:13 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 25 Jun 2017 12:10:13 -0300 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: 2017-06-25 6:31 GMT-03:00 Christof Thalhofer : > > > I never understood the religious cruzification of Goto. > > No doubt you can use a GOTO in a effective and understandable way. Especially if you are just jumping a few lines downwards as you mentioned. But my 40-year long experience with more than a dozen programming languages has always shown me this simple truth (for me!): if I come to a point where a GOTO is the best solution I can think of, then I'd better rewrite the code because something has gone stray. To begin with, probabily I don't know what I am doing. I have not thought enough about the problem at hand. Yes, even C has a GOTO. But if I remember correctly the original C Manual, it briefly mentions it and then recommends against using it. Now, this is not a religious crucification of GOTO. This is the result of the 60+ collective experience with GOTOs. I have never met a good programmer that relies on GOTOs to jump out of spaghetti-like code. That's because good programmers to not have spaghetti code, to begin with. But, again, I agree that jumping a few lines down the lane might not obfuscate the code to the point of making it unreadable. But then again, "breaks" and "loops" might work better even when you have nested loops. My two cents. Regards - fernando > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Sun Jun 25 18:23:54 2017 From: t.lee.davidson at ...626... (T Lee Davidson) Date: Sun, 25 Jun 2017 12:23:54 -0400 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce ? In-Reply-To: References: Message-ID: <97a4abe6-544e-fcef-b61a-9363c17a98bc@...626...> Lenz McKAY Gerardo, Please check your spelling before posting a message to the list. Most email clients have a built-in spell checker. And, it just might help us better understand what you are saying, especially given that English is obviously not your first language. Thanks. -- Lee On 06/25/2017 09:15 AM, PICCORO McKAY Lenz wrote: > niger, please when edited the Subject *mantain* the original *suject*.. > > if users want to automatically response in *conversatin* any mail from > gambas, please disable digest mode and use *dary* mode.. > > each mail will coming *separatelly* this its very usefully for gmail like > *inbos* where each mail are in-conversation mode... > > for *separing* mails use labels.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com [emphasis added] From taboege at ...626... Sun Jun 25 18:43:48 2017 From: taboege at ...626... (Tobias Boege) Date: Sun, 25 Jun 2017 18:43:48 +0200 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: <20170625164348.GA11204@...3600...> PICCORO, read this mail at your own risk. I won't accept invoices for wasting your professional time. On Sun, 25 Jun 2017, PICCORO McKAY Lenz wrote: > due to many inconsistence responses i must spend time (again) to > investigating.. > > the problem of goto comes from C to object conversion compilation.. > > many goto's produce many labels and "jump"'s in assembler code translation > when a C program are compling.. so the resulting program will be more > slower due too many "jumps" > > this are poor ilustrated to most of users here in the list due i think > nobody here know (in experience) code in assemble like me.. > Oh wow, that's a high footstool you're sitting on. > so i'm very frustrating due when i try to use gambas in professional way > (due are very promisess and usefully) many questions require spend of time > due situations like that... please users.. dont make conjetures of things > that not known, causes spend of time of otheers > What most people talked about were the usual readability concerns which are the first thing that's brought forward in every one of the countless "GOTO considered harmful" essays out there. Supposing you asked a general question about good practices regarding GOTO (which you were, just look at your opening message!) they also said that it was up to personal preference in the end. Therefore I don't see the too many inconsistencies you speak of. The only one who said anything about performance, which you bring up above, was nando: > Sometimes GOTO is needed...especially if you want your code to run faster. and here I agree with you. The last part is certainly debatable and depends on the platform (using goto in C is wildly different from using GOTO in Gambas, see below). *The* standard example, and *perhaps* what he thought of, is jumping out of 4 nested loops without GOTO. You can do it but at least the obvious two solutions introduce new functions (i.e. calls and returns) or some more IFs, both of which are forms of jumps. > i case of gambas analizing the code seems are not the same.. due gambas > fist make their own bycode that runtime inderstand and then that runtime > pass to object mahine.. so many things change and its not the same... in > easy words.. > Exactly, so why do you think your concerns about pipelining and branch prediction at the C -> machine level are relevant at all in Gambas? The program execution loop in the interpreter is a gigantic jump table. The execution of every instruction in a Gambas program involves at least two goto's in C, while the actual Gambas GOTO instruction is implemented as an arithmetic operation on the program counter! And no, I'm not conjecturing this; it's right there in the source code. It should be natural that you read it if you require a deeper understanding for your professional tasks than what others can provide. Your time is not more precious than anyone else's on this list. On a tangent I'm surprised nobody took the opportunity to scold Benoit in this thread yet :-) Have you never tried modifying one of his parsers, e.g. gb.markdown: $ cd ~/src/gambas3/comp/src/gb.markdown/.src // Count non-empty, non-comment lines $ egrep -cv "^[ ]*'|^[ ]*$" Markup.module 798 // Count labels, GOTO and GOSUB lines which are not commented out $ egrep -i ":[ ]*$|GOTO|GOSUB" Markup.module | grep -cv "^[ ]*'" 75 // Percentage of directly GOTO-related lines in the markdown parser $ pcalc 100*75/798 9.398496240601503 0x9 0y1001 Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From fernandojosecabral at ...626... Sun Jun 25 19:43:06 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Sun, 25 Jun 2017 14:43:06 -0300 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: <20170625164348.GA11204@...3600...> References: <20170625164348.GA11204@...3600...> Message-ID: > > On Sun, 25 Jun 2017, PICCORO McKAY Lenz wrote: > > this are poor ilustrated to most of users here in the list due i think > > nobody here know (in experience) code in assemble like me.. > > Lenz, I think you should pay attention to what Tobi has said. Very instructive and comprehensive (although succinct). In Assembly, yes, GOTOs are used abundantly. That has to do with the lower level progamming required by the machine language. But, avoiding machine language was, perhaps, the main reason why high-level language were invented in the fifities (BASIC was created in 1964). The newer and the higher-level the language, the less your programming should require GOTOs. When you say you have 4.000+ lines of code inside a IF THEN, and 4.000+ more after the ELSE, I would guess your code is very hard to read and understand. Perhaps you could benefit from some reorganization. For instance, breaking it down into smaller functions (or subroutines) you can call as needed. The more you break it down (up to a point), the easier it is to know what your are doing at each stage. On the other hand, functionality and efficacy come first. Performance comes next. That's because - no matter how fast your program is - if it is not doing what it is supposed to do, it is useless. Even in higher-level language, GOTO could be theoretically faster. But we would be talking about gains of very tyne fractions of milliseconds. Will it make any difference: I doubt it. It is hard to think and code bottleneck could be solved with GOTOs. If it is inefficient, it will continue to be so even if you spread GOTOs all over. Many of us consider GOTOs to be an unecessary and confusing command. But If you feel that using GOTO is your way to go, by all means, use it. Regards -fernando > > Oh wow, that's a high footstool you're sitting on. > > > so i'm very frustrating due when i try to use gambas in professional way > > (due are very promisess and usefully) many questions require spend of > time > > due situations like that... please users.. dont make conjetures of things > > that not known, causes spend of time of otheers > > > > What most people talked about were the usual readability concerns which > are the first thing that's brought forward in every one of the countless > "GOTO considered harmful" essays out there. Supposing you asked a general > question about good practices regarding GOTO (which you were, just look > at your opening message!) they also said that it was up to personal > preference in the end. Therefore I don't see the too many inconsistencies > you speak of. > > The only one who said anything about performance, which you bring up above, > was nando: > > > Sometimes GOTO is needed...especially if you want your code to run > faster. > > and here I agree with you. The last part is certainly debatable and depends > on the platform (using goto in C is wildly different from using GOTO in > Gambas, see below). *The* standard example, and *perhaps* what he thought > of, is jumping out of 4 nested loops without GOTO. You can do it but at > least the obvious two solutions introduce new functions (i.e. calls and > returns) or some more IFs, both of which are forms of jumps. > > > i case of gambas analizing the code seems are not the same.. due gambas > > fist make their own bycode that runtime inderstand and then that runtime > > pass to object mahine.. so many things change and its not the same... in > > easy words.. > > > > Exactly, so why do you think your concerns about pipelining and branch > prediction at the C -> machine level are relevant at all in Gambas? > The program execution loop in the interpreter is a gigantic jump table. > The execution of every instruction in a Gambas program involves at > least two goto's in C, while the actual Gambas GOTO instruction is > implemented as an arithmetic operation on the program counter! > > And no, I'm not conjecturing this; it's right there in the source code. > It should be natural that you read it if you require a deeper understanding > for your professional tasks than what others can provide. Your time is > not more precious than anyone else's on this list. > > On a tangent I'm surprised nobody took the opportunity to scold Benoit > in this thread yet :-) Have you never tried modifying one of his parsers, > e.g. gb.markdown: > > $ cd ~/src/gambas3/comp/src/gb.markdown/.src > // Count non-empty, non-comment lines > $ egrep -cv "^[ ]*'|^[ ]*$" Markup.module > 798 > // Count labels, GOTO and GOSUB lines which are not commented out > $ egrep -i ":[ ]*$|GOTO|GOSUB" Markup.module | grep -cv "^[ ]*'" > 75 > // Percentage of directly GOTO-related lines in the markdown parser > $ pcalc 100*75/798 > 9.398496240601503 0x9 0y1001 > > 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 jussi.lahtinen at ...626... Sun Jun 25 21:53:15 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Sun, 25 Jun 2017 22:53:15 +0300 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: References: Message-ID: People gave you good correct answers. Gambas is not C, and you cannot fix bad code structure by using goto. Remember that people here are spending quite a lot of time to decrypt your messages to be able to help you. And you don't even bother to use spell checker. Little bit respect towards others. Jussi On Sun, Jun 25, 2017 at 3:18 PM, PICCORO McKAY Lenz wrote: > due to many inconsistence responses i must spend time (again) to > investigating.. > > the problem of goto comes from C to object conversion compilation.. > > many goto's produce many labels and "jump"'s in assembler code translation > when a C program are compling.. so the resulting program will be more > slower due too many "jumps" > > this are poor ilustrated to most of users here in the list due i think > nobody here know (in experience) code in assemble like me.. > > i case of gambas analizing the code seems are not the same.. due gambas > fist make their own bycode that runtime inderstand and then that runtime > pass to object mahine.. so many things change and its not the same... in > easy words.. > > so i'm very frustrating due when i try to use gambas in professional way > (due are very promisess and usefully) many questions require spend of time > due situations like that... please users.. dont make conjetures of things > that not known, causes spend of time of otheers > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-25 5:01 GMT-04:30 Christof Thalhofer : > > > Am 22.06.2017 um 16:10 schrieb PICCORO McKAY Lenz: > > > > > so i put > > > > > > if not isnull() > > > goto codepiecelabel1 > > > endif > > > ' amount of lines > > > > > > codepiecelabel1: > > > ' here the 4000 lines > > > > > > > > > i cannot use a sub procedures due manage some variables > > > > I never understood the religious cruzification of Goto. > > > > Sometimes I do things like: > > > > If anyvar = Null then > > Goto EndAndExit > > Endif > > > > 'Some or a lot of code ... > > 'Inside another break: > > > > If anothervar = Null Then > > Goto EndAndExit > > Endif > > > > > > EndAndExit: > > End > > > > For that situations I find Goto very useful. > > > > If I use Goto, I only use it to jump downwards. I for me found out that > > jumping upwards is a jump to hell. > > > > And if it is really useful (jumping upwards, very very seldom) then it > > has to be heavily documented. > > > > > > Alles Gute > > > > Christof Thalhofer > > > > -- > > Dies ist keine Signatur > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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... Mon Jun 26 00:04:14 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 25 Jun 2017 17:34:14 -0430 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce or make influence in the code? In-Reply-To: <20170625164348.GA11204@...3600...> References: <20170625164348.GA11204@...3600...> Message-ID: 2017-06-25 12:13 GMT-04:30 Tobias Boege : > PICCORO, read this mail at your own risk. I won't accept invoices for > wasting your professional time. > you forgive it the EULA M$ license ;-) Oh wow, that's a high footstool you're sitting on. > well its due there's only one source of A&Q for gambas, a mail list.. and if you dont have property configured the mail.. you never see the response.. "GOTO considered harmful" essays out there. Supposing you asked a general > question about good practices regarding GOTO (which you were, just look > at your opening message!) they also said that it was up to personal > preference in the end. Therefore I don't see the too many inconsistencies > you speak of. > yeah i'm very frustrating make programs and dont have a spanish good source for.. > The only one who said anything about performance, which you bring up above, > was nando: > > > Sometimes GOTO is needed...especially if you want your code to run > faster. > > and here I agree with you. The last part is certainly debatable and depends > on the platform (using goto in C is wildly different from using GOTO in > Gambas, see below). *The* standard example, and *perhaps* what he thought > of, is jumping out of 4 nested loops without GOTO. You can do it but at > least the obvious two solutions introduce new functions (i.e. calls and > returns) or some more IFs, both of which are forms of jumps. as i spected i cannot show the resulting code now, due companies behavour.. but in my particular case i must ask firts.. and finally i doit by myselft.. but i paste the result for others like me (know are very few,... but make great things) an the next part of your mail are great, thanks for clarify: i reading the source code for analising but again i must spent more time.. i want made some projects but the time its the firts enemy for those that have some little vision... > > i case of gambas analizing the code seems are not the same.. due gambas > fist make their own bycode that runtime inderstand and then that runtime > > pass to object mahine.. so many things change and its not the same... in > > easy words.. > > > > Exactly, so why do you think your concerns about pipelining and branch > prediction at the C -> machine level are relevant at all in Gambas? > The program execution loop in the interpreter is a gigantic jump table. > The execution of every instruction in a Gambas program involves at > least two goto's in C, while the actual Gambas GOTO instruction is > implemented as an arithmetic operation on the program counter! > > And no, I'm not conjecturing this; it's right there in the source code. > It should be natural that you read it if you require a deeper understanding > for your professional tasks than what others can provide. Your time is > not more precious than anyone else's on this list. > eacho one in this list are always by own.. i can see that people here when gambas releaseing only send bug reports of their used things.. does not try other either by curiosity ... > On a tangent I'm surprised nobody took the opportunity to scold Benoit > in this thread yet :-) Have you never tried modifying one of his parsers, > e.g. gb.markdown: > > $ cd ~/src/gambas3/comp/src/gb.markdown/.src > // Count non-empty, non-comment lines > $ egrep -cv "^[ ]*'|^[ ]*$" Markup.module > 798 > // Count labels, GOTO and GOSUB lines which are not commented out > $ egrep -i ":[ ]*$|GOTO|GOSUB" Markup.module | grep -cv "^[ ]*'" > 75 > // Percentage of directly GOTO-related lines in the markdown parser > $ pcalc 100*75/798 > 9.398496240601503 0x9 0y1001 > interesting.. but as i tell you.. time its our enemy.. > > 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 mckaygerhard at ...626... Mon Jun 26 00:09:04 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 25 Jun 2017 17:39:04 -0430 Subject: [Gambas-user] usage of too much GOTO can be bad pracitce ? In-Reply-To: <97a4abe6-544e-fcef-b61a-9363c17a98bc@...626...> References: <97a4abe6-544e-fcef-b61a-9363c17a98bc@...626...> Message-ID: hi T, as example in my client mail, i cannot understand the "*" in the words.. only due i alredy know that are markdown similar.. are emphasis--- due i used console program never check the spell, its my faul.. sorry i always got a Scolding by that-- got corrected but when take me too many time.. prefer send inmmediatelly.. some info sometimes need to have as soon as possible.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-25 11:53 GMT-04:30 T Lee Davidson : > Lenz McKAY Gerardo, > > Please check your spelling before posting a message to the list. > > Most email clients have a built-in spell checker. And, it just might help > us better understand what you are saying, especially given that English is > obviously not your first language. > > Thanks. > > > -- > Lee > > On 06/25/2017 09:15 AM, PICCORO McKAY Lenz wrote: > >> niger, please when edited the Subject *mantain* the original *suject*.. >> >> if users want to automatically response in *conversatin* any mail from >> gambas, please disable digest mode and use *dary* mode.. >> >> each mail will coming *separatelly* this its very usefully for gmail like >> *inbos* where each mail are in-conversation mode... >> >> for *separing* mails use labels.. >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > [emphasis added] > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 26 00:10:49 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sun, 25 Jun 2017 17:40:49 -0430 Subject: [Gambas-user] Software farm difference between download and install In-Reply-To: References: Message-ID: umm quite xtrange.. so then both are the same? i dont think so.. download will download event if requirements are not fit, install will check requirements.. that its a process that are diferents.. for sure.. lest try Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-25 10:22 GMT-04:30 Gianluigi : > Does not look like this here > Both installed and downloaded projects are displayed in the Installed > Software menu. > Same thing for menu Examples > > 2017-06-25 15:12 GMT+02:00 PICCORO McKAY Lenz : > > > download will only put the code at the location in home.. > > > > install added some extra steps and put by example a menu desktop entry > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-06-25 8:57 GMT-04:00 Gianluigi : > > > > > I apologize if is already been asked, I did not find the answer. > > > I not known differences between download and install in Software farm. > > > There are? > > > > > > 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 jusabejusabe at ...626... Mon Jun 26 09:19:11 2017 From: jusabejusabe at ...626... (Julio Sanchez) Date: Mon, 26 Jun 2017 09:19:11 +0200 Subject: [Gambas-user] Software farm difference between download and install In-Reply-To: References: Message-ID: Piccoro: When you install, you may have problems due to lack of components (for example gb.qt5) and it does not finish installing or downloading. When downloading, it does not give problems by components, only you download the source code. Regards Julio 2017-06-26 0:10 GMT+02:00 PICCORO McKAY Lenz : > umm quite xtrange.. so then both are the same? i dont think so.. > > download will download event if requirements are not fit, install will > check requirements.. that its a process that are diferents.. for sure.. > lest try > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-25 10:22 GMT-04:30 Gianluigi : > > > Does not look like this here > > Both installed and downloaded projects are displayed in the Installed > > Software menu. > > Same thing for menu Examples > > > > 2017-06-25 15:12 GMT+02:00 PICCORO McKAY Lenz : > > > > > download will only put the code at the location in home.. > > > > > > install added some extra steps and put by example a menu desktop entry > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > > > > 2017-06-25 8:57 GMT-04:00 Gianluigi : > > > > > > > I apologize if is already been asked, I did not find the answer. > > > > I not known differences between download and install in Software > farm. > > > > There are? > > > > > > > > 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 bagonergi at ...626... Mon Jun 26 09:36:59 2017 From: bagonergi at ...626... (Gianluigi) Date: Mon, 26 Jun 2017 09:36:59 +0200 Subject: [Gambas-user] Software farm difference between download and install In-Reply-To: References: Message-ID: Hi Julio, thank you very much for the explanations. Finally I understood the difference. Regards Gianluigi 2017-06-26 9:19 GMT+02:00 Julio Sanchez : > Piccoro: > > When you install, you may have problems due to lack of components (for > example gb.qt5) and it does not finish installing or downloading. > > When downloading, it does not give problems by components, only you > download the source code. > > Regards > > Julio > > 2017-06-26 0:10 GMT+02:00 PICCORO McKAY Lenz : > > > umm quite xtrange.. so then both are the same? i dont think so.. > > > > download will download event if requirements are not fit, install will > > check requirements.. that its a process that are diferents.. for sure.. > > lest try > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-06-25 10:22 GMT-04:30 Gianluigi : > > > > > Does not look like this here > > > Both installed and downloaded projects are displayed in the Installed > > > Software menu. > > > Same thing for menu Examples > > > > > > 2017-06-25 15:12 GMT+02:00 PICCORO McKAY Lenz >: > > > > > > > download will only put the code at the location in home.. > > > > > > > > install added some extra steps and put by example a menu desktop > entry > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > http://qgqlochekone.blogspot.com > > > > > > > > 2017-06-25 8:57 GMT-04:00 Gianluigi : > > > > > > > > > I apologize if is already been asked, I did not find the answer. > > > > > I not known differences between download and install in Software > > farm. > > > > > There are? > > > > > > > > > > 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 > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 26 11:35:56 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 26 Jun 2017 05:05:56 -0430 Subject: [Gambas-user] Software farm difference between download and install In-Reply-To: References: Message-ID: Thanks Julio, i post that but mail arrives after you Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-26 3:06 GMT-04:30 Gianluigi : > Hi Julio, > thank you very much for the explanations. > Finally I understood the difference. > > Regards > Gianluigi > > 2017-06-26 9:19 GMT+02:00 Julio Sanchez : > > > Piccoro: > > > > When you install, you may have problems due to lack of components (for > > example gb.qt5) and it does not finish installing or downloading. > > > > When downloading, it does not give problems by components, only you > > download the source code. > > > > Regards > > > > Julio > > > > 2017-06-26 0:10 GMT+02:00 PICCORO McKAY Lenz : > > > > > umm quite xtrange.. so then both are the same? i dont think so.. > > > > > > download will download event if requirements are not fit, install will > > > check requirements.. that its a process that are diferents.. for sure.. > > > lest try > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > > > > 2017-06-25 10:22 GMT-04:30 Gianluigi : > > > > > > > Does not look like this here > > > > Both installed and downloaded projects are displayed in the Installed > > > > Software menu. > > > > Same thing for menu Examples > > > > > > > > 2017-06-25 15:12 GMT+02:00 PICCORO McKAY Lenz < > mckaygerhard at ...626... > > >: > > > > > > > > > download will only put the code at the location in home.. > > > > > > > > > > install added some extra steps and put by example a menu desktop > > entry > > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > > http://qgqlochekone.blogspot.com > > > > > > > > > > 2017-06-25 8:57 GMT-04:00 Gianluigi : > > > > > > > > > > > I apologize if is already been asked, I did not find the answer. > > > > > > I not known differences between download and install in Software > > > farm. > > > > > > There are? > > > > > > > > > > > > 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 > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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... Mon Jun 26 14:17:12 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 26 Jun 2017 08:17:12 -0400 Subject: [Gambas-user] some snap to sections in wiki and structure Message-ID: recently following the library how to wiki, when i was searching for information, can see there's a "/tutoria" an also the "/howto".. I deduced that it was a product of the migration of the old wiki to the new wiki... so i able... or seeing it more closely both sections can be used in one single so can be merged in one? .. Although I wrote the bad emails, I was careful to change things in the wiki, and I ask here always for many things when make changes or propose some very strongly. I want to remind how important it is to have good documentation for users, and due there are few sources (compared to other programming languages, and get in mail list are more complex rather thant a forum) for users and even expert programmers .. its point that already here in the list have taken in consideration .. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Mon Jun 26 18:19:48 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 26 Jun 2017 12:19:48 -0400 Subject: [Gambas-user] start point for firebird module get back with libfb Message-ID: i found today this project: https://sourceforge.net/projects/libfb/?source=directory the zip downladed includes a gambas subdirectorio in src subdirectory.. that implements the very basic libfbird library.. i thinks can be used to return back the native driver of firebird due some lack of functions in odbc module... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From phil_d_uk at ...67... Mon Jun 26 18:23:11 2017 From: phil_d_uk at ...67... (Phil D) Date: Mon, 26 Jun 2017 16:23:11 +0000 Subject: [Gambas-user] Playing ".swf" files- can play OK in browser but will not open with webviewer in gambas on one PC but works OK on another! Message-ID: Hi! Im making a user interface, and have a flash animation in part of it. I am developing the code on 2 computers: one is a slimmed down PC which will run the interface in the end, this is running linux mint 18. The other other is a windows PC running Gambas OS2 under oracle VM virtualbox. (Both running Gambas 3.7.1) I have the gambas code working nicely on the windows computer, and the swf animation file loads into the webviewer and plays without problems. On the other computer however the code runs without error, but the animation does not show. The computer will open swf files fine, but it seems like gambas is not able to open it. Is there some way to tell gambas how to open these files, some way of fixing an association? (My linux skills are a little limited so please dont spare the detail!) Many thanks, Phil From mckaygerhard at ...626... Mon Jun 26 19:24:01 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 26 Jun 2017 13:24:01 -0400 Subject: [Gambas-user] Playing ".swf" files- can play OK in browser but will not open with webviewer in gambas on one PC but works OK on another! In-Reply-To: References: Message-ID: the capability of playing flash relies on the webkit interface of gui so seems the loading of the swf can be overlaping by the html5 implementation if you are using qt4 vs qt5 .. so gambas list will be need more information of your system like version of qt and what qt version (4 or 5) are using the interface and also if the webkit are in use Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-26 12:23 GMT-04:00 Phil D : > Hi! > > > Im making a user interface, and have a flash animation in part of it. > > > I am developing the code on 2 computers: one is a slimmed down PC which > will run the interface in the end, this is running linux mint 18. The other< > http://aka.ms/weboutlook> other is a windows PC running Gambas OS2 under > oracle VM virtualbox. (Both running Gambas 3.7.1) > > > I have the gambas code working nicely on the windows computer, and the swf > animation file loads into the webviewer and plays without problems. On the > other computer however the code runs without error, but the animation does > not show. The computer will open swf files fine, but it seems like gambas > is not able to open it. > > > Is there some way to tell gambas how to open these files, some way of > fixing an association? > > > (My linux skills are a little limited so please dont spare the detail!) > > > Many thanks, > > Phil > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 phil_d_uk at ...67... Tue Jun 27 10:19:32 2017 From: phil_d_uk at ...67... (Phil D) Date: Tue, 27 Jun 2017 08:19:32 +0000 Subject: [Gambas-user] Playing ".swf" files- can play OK in browser but will not open with webviewer in gambas on one PC but works OK on another! In-Reply-To: References: , Message-ID: Hi Piccoro, Many thanks for the speedy reply. The project currently uses the following components: gb gb.form gb.image gb.net gb.qt4 gb.qt4.ext gb.qt4.ext gb.qt4.webkit gb.vb Regards, Phil ________________________________ From: PICCORO McKAY Lenz Sent: 26 June 2017 17:24 To: mailing list for gambas users Subject: Re: [Gambas-user] Playing ".swf" files- can play OK in browser but will not open with webviewer in gambas on one PC but works OK on another! the capability of playing flash relies on the webkit interface of gui so seems the loading of the swf can be overlaping by the html5 implementation if you are using qt4 vs qt5 .. so gambas list will be need more information of your system like version of qt and what qt version (4 or 5) are using the interface and also if the webkit are in use Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com [http://www4.clustrmaps.com/counter/index2.php?url=http://qgqlochekone.blogspot.com] McKAY brothers, multimedia emulation and support qgqlochekone.blogspot.com This documentation has two parts, and overall ODBC documentation and a specific Devuan ODBC documentation. The firs part are provided due most administrators and ... 2017-06-26 12:23 GMT-04:00 Phil D : > Hi! > > > Im making a user interface, and have a flash animation in part of it. > > > I am developing the code on 2 computers: one is a slimmed down PC which > will run the interface in the end, this is running linux mint 18. The other< > http://aka.ms/weboutlook> other is a windows PC running Gambas OS2 under [http://www.microsoft.com/en-us/outlook-com/img/Outlook_Facebook_Icon-2927f4df28.jpg] Check out Outlook.com ? free, personal email from Microsoft. aka.ms Take your email anywhere you go when you add your free, personal, Outlook.com webmail to your Android, iPhone, or Windows mobile devices. Send and receive messages with mobile mail from Outlook.com > oracle VM virtualbox. (Both running Gambas 3.7.1) > > > I have the gambas code working nicely on the windows computer, and the swf > animation file loads into the webviewer and plays without problems. On the > other computer however the code runs without error, but the animation does > not show. The computer will open swf files fine, but it seems like gambas > is not able to open it. > > > Is there some way to tell gambas how to open these files, some way of > fixing an association? > > > (My linux skills are a little limited so please dont spare the detail!) > > > Many thanks, > > Phil > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 - SourceForge 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 - SourceForge 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 fernandojosecabral at ...626... Tue Jun 27 14:26:34 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 27 Jun 2017 09:26:34 -0300 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array Message-ID: Hi I have a sorted array that may contain several repeated items scattered all over. I have to do two different things at different times: a) Eliminate the duplicates leaving a single specimen from each repeated item; b) Eliminate the duplicates but having a count of the original number. So, if I have, say A B B C D D In the first option, I want to have A B C D In the second option, I want to have 1 A 2 B 1 C 2 D Any hints on how to do this using some Gambas buit in method? Note; Presently I have been doing it using external calls to the utilities sort and uniq. 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 hans at ...3219... Tue Jun 27 15:51:19 2017 From: hans at ...3219... (Hans Lehmann) Date: Tue, 27 Jun 2017 15:51:19 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: Message-ID: Hello, look here: 8<----------------------------------------------------------------------------------------- Public Function RemoveMultiple(aStringListe As String[]) As String[] Dim iCount As Integer Dim iIndex As Integer Dim sElement As String iIndex = 0 ' Initialisierung NICHT notwendig While iIndex < aStringListe.Count iCount = 0 sElement = aStringListe[iIndex] While aStringListe.Find(sElement) <> -1 Inc iCount aStringListe.Remove(aStringListe.Find(sElement)) Wend If iCount Mod 2 = 1 Then aStringListe.Add(sElement, iIndex) Inc iIndex Endif ' iCount Mod 2 = 1 ? Wend Return aStringListe End ' RemoveMultiple(...) 8<----------------------------------------------------------------------------------------- Hans gambas-buch.de From taboege at ...626... Tue Jun 27 16:29:18 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 27 Jun 2017 16:29:18 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: Message-ID: <20170627142918.GA559@...3600...> On Tue, 27 Jun 2017, Fernando Cabral wrote: > Hi > > I have a sorted array that may contain several repeated items scattered all > over. > > I have to do two different things at different times: > a) Eliminate the duplicates leaving a single specimen from each repeated > item; > b) Eliminate the duplicates but having a count of the original number. > > So, if I have, say > > A > B > B > C > D > D > > In the first option, I want to have > A > B > C > D > In the second option, I want to have > 1 A > 2 B > 1 C > 2 D > > Any hints on how to do this using some Gambas buit in method? > > Note; Presently I have been doing it using external calls to > the utilities sort and uniq. > Your first sentence is a bit confusing. First you say that your array is sorted but then you say that duplicates may be scattered across the array. There are notions of order (namely *preorder*) which are so weak that this could happen, but are you actually dealing with a preorder on your items? What are your items, anyway? When I hear "sorted", I think of a partial order and if you have a partial order, then sorted implies that duplicates are consecutive! Anyway, I don't want to bore you with elementary concepts of order theory. There are ways to handle preorders, partial orders and every stronger notion of order, of course, from within Gambas. You simply have to ask a better question, by giving more details. If you have a sorting where duplicates are consecutive, the solution is very easy: just go through the array linearly and kick out these consecutive duplicates (which is precisely what uniq does), e.g. for integers: Dim aInts As Integer[] = ... Dim iInd, iLast As Integer If Not aInts.Count Then Return iLast = aInts[0] iInd = 1 While iInd < aInts.Count If aInts[iInd] = iLast Then ' consecutive duplicate aInts.Remove(iInd, 1) Else iLast = aInts[iInd] Inc iInd Endif Wend Note that the way I wrote it to get the idea across is not a linear-time operation (it depends on the complexity of aInts.Remove()), but you can achieve linear performance by writing better code. Think of it as an exercise. (Of course, you can't hope to be more efficient than linear time in a general situation.) The counting task is solved with a similar pattern, but while you kick an element out, you also increment a dedicated counter: Dim aInts As Integer[] = ... Dim aDups As New Integer[] Dim iInd, iLast As Integer If Not aInts.Count Then Return iLast = aInts[0] iInd = 1 aDups.Add(0) While iInd < aInts.Count If aInts[iInd] = iLast Then ' consecutive duplicate aInts.Remove(iInd, 1) Inc aDups[aDups.Max] Else iLast = aInts[iInd] aDups.Add(0) Inc iInd Endif Wend After this executed, the array aInts will not contain duplicates (supposing it was sorted before) and aDups[i] will contain the number of duplicates of the item aInts[i] that were removed. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From nando_f at ...951... Tue Jun 27 16:33:30 2017 From: nando_f at ...951... (nando_f at ...951...) Date: Tue, 27 Jun 2017 10:33:30 -0400 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: Message-ID: <20170627142416.M9094@...951...> Another very effective and simple would be: You have your array with data You create a new empty array. Loop through each item in your array with data If it's not in the new array, then add it. Destroy the original array. Keep the new one. ...something like (syntax may not be correct) Public Function RemoveMultiple(a As String[]) As String[] Dim x as Integer Dim z as NEW STRING[] For x = 1 to a.count() if z.Find(a) = 0 Then z.Add(a[x]) Next Return z END -Nando (Canada) -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Hans Lehmann To: gambas-user at lists.sourceforge.net Sent: Tue, 27 Jun 2017 15:51:19 +0200 Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array > Hello, > > look here: > > 8<------------------------------------------------------------------------------- > ---------- Public Function RemoveMultiple(aStringListe As String[]) As String[] > Dim iCount As Integer Dim iIndex As Integer Dim sElement As String > > iIndex = 0 ' Initialisierung NICHT notwendig > While iIndex < aStringListe.Count > iCount = 0 > sElement = aStringListe[iIndex] > While aStringListe.Find(sElement) <> -1 > Inc iCount > aStringListe.Remove(aStringListe.Find(sElement)) > Wend > If iCount Mod 2 = 1 Then > aStringListe.Add(sElement, iIndex) > Inc iIndex > Endif ' iCount Mod 2 = 1 ? > Wend > > Return aStringListe > > End ' RemoveMultiple(...) > 8<------------------------------------------------------------------------------- > ---------- > > Hans > gambas-buch.de > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 bagonergi at ...626... Tue Jun 27 16:52:48 2017 From: bagonergi at ...626... (Gianluigi) Date: Tue, 27 Jun 2017 16:52:48 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: <20170627142416.M9094@...951...> References: <20170627142416.M9094@...951...> Message-ID: My two cents. Public Sub Main() Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", "E", "E", "F"] Dim sSame As String[] = sSort Dim bb As New Byte[] Dim sSingle As New String[] Dim i, n As Integer For i = 0 To sSort.Max If i < sSort.Max Then If sSort[i] = sSame[i + 1] Then Inc n Else sSingle.Push(sSort[i]) bb.Push(n + 1) n = 0 Endif Endif Next sSingle.Push(sSort[sSort.Max]) bb.Push(n + 1) For i = 0 To sSingle.Max Print sSingle[i] Next For i = 0 To bb.Max Print bb[i] & sSingle[i] Next End Regards Gianluigi 2017-06-27 16:33 GMT+02:00 : > Another very effective and simple would be: > > You have your array with data > You create a new empty array. > > Loop through each item in your array with data > If it's not in the new array, then add it. > > Destroy the original array. > Keep the new one. > ...something like (syntax may not be correct) > > Public Function RemoveMultiple(a As String[]) As String[] > > Dim x as Integer > Dim z as NEW STRING[] > > For x = 1 to a.count() > if z.Find(a) = 0 Then z.Add(a[x]) > Next > > Return z > > END > > -Nando (Canada) > > > > > -- > Open WebMail Project (http://openwebmail.org) > > > ---------- Original Message ----------- > From: Hans Lehmann > To: gambas-user at lists.sourceforge.net > Sent: Tue, 27 Jun 2017 15:51:19 +0200 > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate items > in a array > > > Hello, > > > > look here: > > > > 8<---------------------------------------------------------- > --------------------- > > ---------- Public Function RemoveMultiple(aStringListe As String[]) As > String[] > > Dim iCount As Integer Dim iIndex As Integer Dim sElement As String > > > > iIndex = 0 ' Initialisierung NICHT notwendig > > While iIndex < aStringListe.Count > > iCount = 0 > > sElement = aStringListe[iIndex] > > While aStringListe.Find(sElement) <> -1 > > Inc iCount > > aStringListe.Remove(aStringListe.Find(sElement)) > > Wend > > If iCount Mod 2 = 1 Then > > aStringListe.Add(sElement, iIndex) > > Inc iIndex > > Endif ' iCount Mod 2 = 1 ? > > Wend > > > > Return aStringListe > > > > End ' RemoveMultiple(...) > > 8<---------------------------------------------------------- > --------------------- > > ---------- > > > > Hans > > gambas-buch.de > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 ------- > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Tue Jun 27 17:59:38 2017 From: nando_f at ...951... (nando_f at ...951...) Date: Tue, 27 Jun 2017 11:59:38 -0400 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> Message-ID: <20170627155344.M57287@...951...> Well, there is complicated, then there is simplicity: I tested this. Works for sorted, unsorted. Can't be any simpler. Public Function RemoveMultiple(a As String[]) As String[] Dim x as Integer Dim z as NEW STRING[] For x = 1 to a.count() if z.Find(a) = 0 Then z.Add(a[x]) Next 'if you want it sorted, do it here Return z END ' - - - - - use it this way: myArray = RemoveMultiple(myArray) 'the z array is now myArray. 'the original array is destroyed because there are no references. -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Gianluigi To: mailing list for gambas users Sent: Tue, 27 Jun 2017 16:52:48 +0200 Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate items in a array > My two cents. > > Public Sub Main() > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", > "E", "E", "F"] > Dim sSame As String[] = sSort > Dim bb As New Byte[] > Dim sSingle As New String[] > Dim i, n As Integer > > For i = 0 To sSort.Max > If i < sSort.Max Then > If sSort[i] = sSame[i + 1] Then > Inc n > Else > sSingle.Push(sSort[i]) > bb.Push(n + 1) > n = 0 > Endif > Endif > Next > sSingle.Push(sSort[sSort.Max]) > bb.Push(n + 1) > For i = 0 To sSingle.Max > Print sSingle[i] > Next > For i = 0 To bb.Max > Print bb[i] & sSingle[i] > Next > > End > > Regards > Gianluigi > > 2017-06-27 16:33 GMT+02:00 : > > > Another very effective and simple would be: > > > > You have your array with data > > You create a new empty array. > > > > Loop through each item in your array with data > > If it's not in the new array, then add it. > > > > Destroy the original array. > > Keep the new one. > > ...something like (syntax may not be correct) > > > > Public Function RemoveMultiple(a As String[]) As String[] > > > > Dim x as Integer > > Dim z as NEW STRING[] > > > > For x = 1 to a.count() > > if z.Find(a) = 0 Then z.Add(a[x]) > > Next > > > > Return z > > > > END > > > > -Nando (Canada) > > > > > > > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > > > ---------- Original Message ----------- > > From: Hans Lehmann > > To: gambas-user at lists.sourceforge.net > > Sent: Tue, 27 Jun 2017 15:51:19 +0200 > > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate items > > in a array > > > > > Hello, > > > > > > look here: > > > > > > 8<---------------------------------------------------------- > > --------------------- > > > ---------- Public Function RemoveMultiple(aStringListe As String[]) As > > String[] > > > Dim iCount As Integer Dim iIndex As Integer Dim sElement As String > > > > > > iIndex = 0 ' Initialisierung NICHT notwendig > > > While iIndex < aStringListe.Count > > > iCount = 0 > > > sElement = aStringListe[iIndex] > > > While aStringListe.Find(sElement) <> -1 > > > Inc iCount > > > aStringListe.Remove(aStringListe.Find(sElement)) > > > Wend > > > If iCount Mod 2 = 1 Then > > > aStringListe.Add(sElement, iIndex) > > > Inc iIndex > > > Endif ' iCount Mod 2 = 1 ? > > > Wend > > > > > > Return aStringListe > > > > > > End ' RemoveMultiple(...) > > > 8<---------------------------------------------------------- > > --------------------- > > > ---------- > > > > > > Hans > > > gambas-buch.de > > > > > > ------------------------------------------------------------ > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, 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 ------- > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 fernandojosecabral at ...626... Tue Jun 27 18:57:53 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 27 Jun 2017 13:57:53 -0300 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: <20170627142918.GA559@...3600...> References: <20170627142918.GA559@...3600...> Message-ID: 2017-06-27 11:29 GMT-03:00 Tobias Boege : > > Your first sentence is a bit confusing. First you say that your array is > sorted but then you say that duplicates may be scattered across the array. > You are right. My fault. The array is sorted. What I meant by scattered was that pairs, duples, triplets or a bunch of duplicates may appear all over interspersed with non-duplicated items. My items are either words or sentences (extracted from an ODT file. After the extraction, the words (or sentences) are sorted with the method Array.sort(gb.descent). After sorting it is much more efficient to search for the duplicates. And it can be done with some simple code (as some people have exemplified in this thread). So, my question is basically if Gambas has some built in method do eliminate duplicates. The reason I am asking this is because I am new to Gambas, so I have found myself coding things that were not needed. For instance, I coded some functions to do quicksort and bubble sort and then I found Array.sort () was available. Therefore, I waisted my time coding those quicksort and bubble sort functions.... :-( Regards - fernando > If you have a sorting where duplicates are consecutive, the solution is > very easy: just go through the array linearly and kick out these > consecutive > duplicates (which is precisely what uniq does), e.g. for integers: > > Dim aInts As Integer[] = ... > Dim iInd, iLast As Integer > > If Not aInts.Count Then Return > iLast = aInts[0] > iInd = 1 > While iInd < aInts.Count > If aInts[iInd] = iLast Then ' consecutive duplicate > aInts.Remove(iInd, 1) > Else > iLast = aInts[iInd] > Inc iInd > Endif > Wend > > Note that the way I wrote it to get the idea across is not a linear-time > operation (it depends on the complexity of aInts.Remove()), but you can > achieve linear performance by writing better code. Think of it as an > exercise. (Of course, you can't hope to be more efficient than linear > time in a general situation.) > > The counting task is solved with a similar pattern, but while you kick > an element out, you also increment a dedicated counter: > > Dim aInts As Integer[] = ... > Dim aDups As New Integer[] > Dim iInd, iLast As Integer > > If Not aInts.Count Then Return > iLast = aInts[0] > iInd = 1 > aDups.Add(0) > While iInd < aInts.Count > If aInts[iInd] = iLast Then ' consecutive duplicate > aInts.Remove(iInd, 1) > Inc aDups[aDups.Max] > Else > iLast = aInts[iInd] > aDups.Add(0) > Inc iInd > Endif > Wend > > After this executed, the array aInts will not contain duplicates (supposing > it was sorted before) and aDups[i] will contain the number of duplicates of > the item aInts[i] that were removed. > > 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 taboege at ...626... Tue Jun 27 19:08:11 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 27 Jun 2017 19:08:11 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142918.GA559@...3600...> Message-ID: <20170627170811.GB559@...3600...> On Tue, 27 Jun 2017, Fernando Cabral wrote: > So, my question is basically if Gambas has some built in method do > eliminate duplicates. > The reason I am asking this is because I am new to Gambas, so I have found > myself coding > things that were not needed. For instance, I coded some functions to do > quicksort and bubble sort and then I found Array.sort () was available. > Therefore, I waisted my time coding those quicksort and bubble sort > functions.... :-( > Ah, ok. I'm almost sure there is no built-in "uniq" function which gets rid of consecutive duplicates, so you can go ahead and write your own :-) -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From fernandojosecabral at ...626... Tue Jun 27 19:23:48 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 27 Jun 2017 14:23:48 -0300 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: <20170627155344.M57287@...951...> References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> Message-ID: Nando The problem with this search and destroy method without pre-sorting is the exponentional growth in time needed to do the job. If my math is not wrong, this is how quickly it gets unmanageable: Items / Comparisons needed (worst case scenario) 10 = 45 100 = 4,950 1000 = 499,500 1000 = 49,995,000 My program has to face a few thousand items, so not sorting does not seem a good option. Regards - fernando 2017-06-27 12:59 GMT-03:00 : > Well, there is complicated, then there is simplicity: > I tested this. Works for sorted, unsorted. > Can't be any simpler. > > Public Function RemoveMultiple(a As String[]) As String[] > > Dim x as Integer > Dim z as NEW STRING[] > > For x = 1 to a.count() > if z.Find(a) = 0 Then z.Add(a[x]) > Next > > 'if you want it sorted, do it here > Return z > > END > > ' - - - - - > use it this way: > > myArray = RemoveMultiple(myArray) > 'the z array is now myArray. > 'the original array is destroyed because there are no references. > > > > -- > Open WebMail Project (http://openwebmail.org) > > > ---------- Original Message ----------- > From: Gianluigi > To: mailing list for gambas users > Sent: Tue, 27 Jun 2017 16:52:48 +0200 > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate items > in a array > > > My two cents. > > > > Public Sub Main() > > > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", > > "E", "E", "F"] > > Dim sSame As String[] = sSort > > Dim bb As New Byte[] > > Dim sSingle As New String[] > > Dim i, n As Integer > > > > For i = 0 To sSort.Max > > If i < sSort.Max Then > > If sSort[i] = sSame[i + 1] Then > > Inc n > > Else > > sSingle.Push(sSort[i]) > > bb.Push(n + 1) > > n = 0 > > Endif > > Endif > > Next > > sSingle.Push(sSort[sSort.Max]) > > bb.Push(n + 1) > > For i = 0 To sSingle.Max > > Print sSingle[i] > > Next > > For i = 0 To bb.Max > > Print bb[i] & sSingle[i] > > Next > > > > End > > > > Regards > > Gianluigi > > > > 2017-06-27 16:33 GMT+02:00 : > > > > > Another very effective and simple would be: > > > > > > You have your array with data > > > You create a new empty array. > > > > > > Loop through each item in your array with data > > > If it's not in the new array, then add it. > > > > > > Destroy the original array. > > > Keep the new one. > > > ...something like (syntax may not be correct) > > > > > > Public Function RemoveMultiple(a As String[]) As String[] > > > > > > Dim x as Integer > > > Dim z as NEW STRING[] > > > > > > For x = 1 to a.count() > > > if z.Find(a) = 0 Then z.Add(a[x]) > > > Next > > > > > > Return z > > > > > > END > > > > > > -Nando (Canada) > > > > > > > > > > > > > > > -- > > > Open WebMail Project (http://openwebmail.org) > > > > > > > > > ---------- Original Message ----------- > > > From: Hans Lehmann > > > To: gambas-user at lists.sourceforge.net > > > Sent: Tue, 27 Jun 2017 15:51:19 +0200 > > > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate > items > > > in a array > > > > > > > Hello, > > > > > > > > look here: > > > > > > > > 8<---------------------------------------------------------- > > > --------------------- > > > > ---------- Public Function RemoveMultiple(aStringListe As String[]) > As > > > String[] > > > > Dim iCount As Integer Dim iIndex As Integer Dim sElement As > String > > > > > > > > iIndex = 0 ' Initialisierung NICHT notwendig > > > > While iIndex < aStringListe.Count > > > > iCount = 0 > > > > sElement = aStringListe[iIndex] > > > > While aStringListe.Find(sElement) <> -1 > > > > Inc iCount > > > > aStringListe.Remove(aStringListe.Find(sElement)) > > > > Wend > > > > If iCount Mod 2 = 1 Then > > > > aStringListe.Add(sElement, iIndex) > > > > Inc iIndex > > > > Endif ' iCount Mod 2 = 1 ? > > > > Wend > > > > > > > > Return aStringListe > > > > > > > > End ' RemoveMultiple(...) > > > > 8<---------------------------------------------------------- > > > --------------------- > > > > ---------- > > > > > > > > Hans > > > > gambas-buch.de > > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, 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 ------- > > > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, 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 ------- > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Tue Jun 27 20:43:50 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 27 Jun 2017 21:43:50 +0300 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: <20170627155344.M57287@...951...> References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> Message-ID: As Fernando stated your code is good only for small arrays. But if someone is going to use it, here is correct implementation: For x = 0 to a.Max if z.Find(a[x]) = -1 Then z.Add(a[x]) Next z.Exist() might be faster... I don't know. Jussi On Tue, Jun 27, 2017 at 6:59 PM, wrote: > Well, there is complicated, then there is simplicity: > I tested this. Works for sorted, unsorted. > Can't be any simpler. > > Public Function RemoveMultiple(a As String[]) As String[] > > Dim x as Integer > Dim z as NEW STRING[] > > For x = 1 to a.count() > if z.Find(a) = 0 Then z.Add(a[x]) > Next > > 'if you want it sorted, do it here > Return z > > END > > ' - - - - - > use it this way: > > myArray = RemoveMultiple(myArray) > 'the z array is now myArray. > 'the original array is destroyed because there are no references. > > > > -- > Open WebMail Project (http://openwebmail.org) > > > ---------- Original Message ----------- > From: Gianluigi > To: mailing list for gambas users > Sent: Tue, 27 Jun 2017 16:52:48 +0200 > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate items > in a array > > > My two cents. > > > > Public Sub Main() > > > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", > > "E", "E", "F"] > > Dim sSame As String[] = sSort > > Dim bb As New Byte[] > > Dim sSingle As New String[] > > Dim i, n As Integer > > > > For i = 0 To sSort.Max > > If i < sSort.Max Then > > If sSort[i] = sSame[i + 1] Then > > Inc n > > Else > > sSingle.Push(sSort[i]) > > bb.Push(n + 1) > > n = 0 > > Endif > > Endif > > Next > > sSingle.Push(sSort[sSort.Max]) > > bb.Push(n + 1) > > For i = 0 To sSingle.Max > > Print sSingle[i] > > Next > > For i = 0 To bb.Max > > Print bb[i] & sSingle[i] > > Next > > > > End > > > > Regards > > Gianluigi > > > > 2017-06-27 16:33 GMT+02:00 : > > > > > Another very effective and simple would be: > > > > > > You have your array with data > > > You create a new empty array. > > > > > > Loop through each item in your array with data > > > If it's not in the new array, then add it. > > > > > > Destroy the original array. > > > Keep the new one. > > > ...something like (syntax may not be correct) > > > > > > Public Function RemoveMultiple(a As String[]) As String[] > > > > > > Dim x as Integer > > > Dim z as NEW STRING[] > > > > > > For x = 1 to a.count() > > > if z.Find(a) = 0 Then z.Add(a[x]) > > > Next > > > > > > Return z > > > > > > END > > > > > > -Nando (Canada) > > > > > > > > > > > > > > > -- > > > Open WebMail Project (http://openwebmail.org) > > > > > > > > > ---------- Original Message ----------- > > > From: Hans Lehmann > > > To: gambas-user at lists.sourceforge.net > > > Sent: Tue, 27 Jun 2017 15:51:19 +0200 > > > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate > items > > > in a array > > > > > > > Hello, > > > > > > > > look here: > > > > > > > > 8<---------------------------------------------------------- > > > --------------------- > > > > ---------- Public Function RemoveMultiple(aStringListe As String[]) > As > > > String[] > > > > Dim iCount As Integer Dim iIndex As Integer Dim sElement As > String > > > > > > > > iIndex = 0 ' Initialisierung NICHT notwendig > > > > While iIndex < aStringListe.Count > > > > iCount = 0 > > > > sElement = aStringListe[iIndex] > > > > While aStringListe.Find(sElement) <> -1 > > > > Inc iCount > > > > aStringListe.Remove(aStringListe.Find(sElement)) > > > > Wend > > > > If iCount Mod 2 = 1 Then > > > > aStringListe.Add(sElement, iIndex) > > > > Inc iIndex > > > > Endif ' iCount Mod 2 = 1 ? > > > > Wend > > > > > > > > Return aStringListe > > > > > > > > End ' RemoveMultiple(...) > > > > 8<---------------------------------------------------------- > > > --------------------- > > > > ---------- > > > > > > > > Hans > > > > gambas-buch.de > > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, 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 ------- > > > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, 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 ------- > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 27 20:51:43 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Tue, 27 Jun 2017 15:51:43 -0300 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> Message-ID: Jussi said: > As Fernando stated your code is good only for small arrays. But if someone >is going to use it, here is correct implementation: No, Jussi, I didn't say it is good only for small arrays. I said some suggestions apply only to small arrays because if I have to traverse the array again and again, advancing one item at a time, and coming back to the next item, to repeat it one more time, then time requirement will grow exponentially. This makes most suggestion unusable for large arrays. The arrays I have might grow to thousands and thousands os items. Regards - fernando 2017-06-27 15:43 GMT-03:00 Jussi Lahtinen : > As Fernando stated your code is good only for small arrays. But if someone > is going to use it, here is correct implementation: > > For x = 0 to a.Max > if z.Find(a[x]) = -1 Then z.Add(a[x]) > Next > > > z.Exist() might be faster... I don't know. > > > > Jussi > > > > On Tue, Jun 27, 2017 at 6:59 PM, wrote: > > > Well, there is complicated, then there is simplicity: > > I tested this. Works for sorted, unsorted. > > Can't be any simpler. > > > > Public Function RemoveMultiple(a As String[]) As String[] > > > > Dim x as Integer > > Dim z as NEW STRING[] > > > > For x = 1 to a.count() > > if z.Find(a) = 0 Then z.Add(a[x]) > > Next > > > > 'if you want it sorted, do it here > > Return z > > > > END > > > > ' - - - - - > > use it this way: > > > > myArray = RemoveMultiple(myArray) > > 'the z array is now myArray. > > 'the original array is destroyed because there are no references. > > > > > > > > -- > > Open WebMail Project (http://openwebmail.org) > > > > > > ---------- Original Message ----------- > > From: Gianluigi > > To: mailing list for gambas users > > Sent: Tue, 27 Jun 2017 16:52:48 +0200 > > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate > items > > in a array > > > > > My two cents. > > > > > > Public Sub Main() > > > > > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", > > > "E", "E", "F"] > > > Dim sSame As String[] = sSort > > > Dim bb As New Byte[] > > > Dim sSingle As New String[] > > > Dim i, n As Integer > > > > > > For i = 0 To sSort.Max > > > If i < sSort.Max Then > > > If sSort[i] = sSame[i + 1] Then > > > Inc n > > > Else > > > sSingle.Push(sSort[i]) > > > bb.Push(n + 1) > > > n = 0 > > > Endif > > > Endif > > > Next > > > sSingle.Push(sSort[sSort.Max]) > > > bb.Push(n + 1) > > > For i = 0 To sSingle.Max > > > Print sSingle[i] > > > Next > > > For i = 0 To bb.Max > > > Print bb[i] & sSingle[i] > > > Next > > > > > > End > > > > > > Regards > > > Gianluigi > > > > > > 2017-06-27 16:33 GMT+02:00 : > > > > > > > Another very effective and simple would be: > > > > > > > > You have your array with data > > > > You create a new empty array. > > > > > > > > Loop through each item in your array with data > > > > If it's not in the new array, then add it. > > > > > > > > Destroy the original array. > > > > Keep the new one. > > > > ...something like (syntax may not be correct) > > > > > > > > Public Function RemoveMultiple(a As String[]) As String[] > > > > > > > > Dim x as Integer > > > > Dim z as NEW STRING[] > > > > > > > > For x = 1 to a.count() > > > > if z.Find(a) = 0 Then z.Add(a[x]) > > > > Next > > > > > > > > Return z > > > > > > > > END > > > > > > > > -Nando (Canada) > > > > > > > > > > > > > > > > > > > > -- > > > > Open WebMail Project (http://openwebmail.org) > > > > > > > > > > > > ---------- Original Message ----------- > > > > From: Hans Lehmann > > > > To: gambas-user at lists.sourceforge.net > > > > Sent: Tue, 27 Jun 2017 15:51:19 +0200 > > > > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate > > items > > > > in a array > > > > > > > > > Hello, > > > > > > > > > > look here: > > > > > > > > > > 8<---------------------------------------------------------- > > > > --------------------- > > > > > ---------- Public Function RemoveMultiple(aStringListe As String[]) > > As > > > > String[] > > > > > Dim iCount As Integer Dim iIndex As Integer Dim sElement As > > String > > > > > > > > > > iIndex = 0 ' Initialisierung NICHT notwendig > > > > > While iIndex < aStringListe.Count > > > > > iCount = 0 > > > > > sElement = aStringListe[iIndex] > > > > > While aStringListe.Find(sElement) <> -1 > > > > > Inc iCount > > > > > aStringListe.Remove(aStringListe.Find(sElement)) > > > > > Wend > > > > > If iCount Mod 2 = 1 Then > > > > > aStringListe.Add(sElement, iIndex) > > > > > Inc iIndex > > > > > Endif ' iCount Mod 2 = 1 ? > > > > > Wend > > > > > > > > > > Return aStringListe > > > > > > > > > > End ' RemoveMultiple(...) > > > > > 8<---------------------------------------------------------- > > > > --------------------- > > > > > ---------- > > > > > > > > > > Hans > > > > > gambas-buch.de > > > > > > > > > > ------------------------------------------------------------ > > > > ------------------ > > > > > Check out the vibrant tech community on one of the world's most > > > > > engaging tech sites, 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 ------- > > > > > > > > > > > > ------------------------------------------------------------ > > > > ------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, 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 ------- > > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 Jun 28 00:08:43 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Tue, 27 Jun 2017 22:08:43 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 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1102&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: hi, this query make me impossible document and find a solution to how populate a grid not using the Data event... i send a issue to freetds project, due this error today does not permit to me got some progress in the odbc+gridview work https://github.com/FreeTDS/freetds/issues/131 but the problem i guess its not totally freetds driver due in odbc+sqlite i cannot make simple quierys after connected... but the odbc+sqlite module are in good shape From mckaygerhard at ...626... Wed Jun 28 10:31:09 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 28 Jun 2017 04:31:09 -0400 Subject: [Gambas-user] Playing ".swf" files- can play OK in browser but will not open with webviewer in gambas on one PC but works OK on another! In-Reply-To: References: Message-ID: as i told you, u are using webkit and this relies on the support of the qt installed so in any case play and use swf files are a guindows only related implementation.. i recomende that make more deep learn on linux and change the adobe terrific iplementation Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-27 4:19 GMT-04:00 Phil D : > Hi Piccoro, > > > Many thanks for the speedy reply. > > > The project currently uses the following components: > > > gb > > gb.form > > gb.image > > gb.net > > gb.qt4 > > gb.qt4.ext > > gb.qt4.ext > > gb.qt4.webkit > > gb.vb > > > Regards, > > Phil > > ________________________________ > From: PICCORO McKAY Lenz > Sent: 26 June 2017 17:24 > To: mailing list for gambas users > Subject: Re: [Gambas-user] Playing ".swf" files- can play OK in browser > but will not open with webviewer in gambas on one PC but works OK on > another! > > the capability of playing flash relies on the webkit interface of gui so > seems the loading of the swf can be overlaping by the html5 implementation > if you are using qt4 vs qt5 .. > > so gambas list will be need more information of your system like version of > qt and what qt version (4 or 5) are using the interface and also if the > webkit are in use > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > [http://www4.clustrmaps.com/counter/index2.php?url=http:// > qgqlochekone.blogspot.com] > > McKAY brothers, multimedia emulation and support blogspot.com/> > qgqlochekone.blogspot.com > This documentation has two parts, and overall ODBC documentation and a > specific Devuan ODBC documentation. The firs part are provided due most > administrators and ... > > > > 2017-06-26 12:23 GMT-04:00 Phil D : > > > Hi! > > > > > > Im making a user interface, and have a flash animation in part of it. > > > > > > I am developing the code on 2 computers: one is a slimmed down PC which > > will run the interface in the end, this is running linux mint 18. The > other< > > http://aka.ms/weboutlook> other is a windows PC running Gambas OS2 under > [http://www.microsoft.com/en-us/outlook-com/img/Outlook_ > Facebook_Icon-2927f4df28.jpg] > > Check out Outlook.com ? free, personal email from Microsoft.< > http://aka.ms/weboutlook> > aka.ms > Take your email anywhere you go when you add your free, personal, > Outlook.com webmail to your Android, iPhone, or Windows mobile devices. > Send and receive messages with mobile mail from Outlook.com > > > > oracle VM virtualbox. (Both running Gambas 3.7.1) > > > > > > I have the gambas code working nicely on the windows computer, and the > swf > > animation file loads into the webviewer and plays without problems. On > the > > other computer however the code runs without error, but the animation > does > > not show. The computer will open swf files fine, but it seems like gambas > > is not able to open it. > > > > > > Is there some way to tell gambas how to open these files, some way of > > fixing an association? > > > > > > (My linux skills are a little limited so please dont spare the detail!) > > > > > > Many thanks, > > > > Phil > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 - SourceForge 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 - SourceForge 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 bugtracker at ...3416... Wed Jun 28 13:11:14 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 28 Jun 2017 11:11:14 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 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1102&from=L21haW4- Comment #2 by zxMarce: As per https://stackoverflow.com/questions/33940294/sqlgetstmtattr-output-value-for-sql-attr-row-number, it seems that SQLite has issues in their ODBC Driver implementation. Per ODBC definitions, returning negative row values is illegal for a driver in the particular ODBC calls the Gambas driver makes to find out a row count. That being the case I further patched my internal GetRecordCount() function in the ODBC Gambas driver to take these illegal values into account. The actual problem now is that when this issue hits, GetRecordCount() will return the default -1 as count, making iteration in a SQLite table hard. By "hard" I mean that data retrieved is garbage, and I do not yet know why. I'm looking into this latest development now. Regards, zxMarce. From bugtracker at ...3416... Wed Jun 28 15:35:40 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 28 Jun 2017 13:35:40 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 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1102&from=L21haW4- Comment #3 by PICCORO LENZ MCKAY: hi zxMarce, really really thanks for your support, about the subquery problem? seem when i have open result (opened cursor i think, with forward only) cannot made another query without free the previous result object, or cursor. that's the principal topic in this bug #1102, i'm not expert but the piece of code dont work in some odbc cases, specially with freetds (i cited that due i already know you can have it and can access a TDS-like db) query1 = "select col1, col2 from table1 " ' query2 = "select count(*) as total from table1" ' Try rs2 = $conexionodbc.Exec(query2) If rs2.Available Then ' print rs2!total try rs1 = $conexionodbc.Exec(query1) ' BUG this raise a problem, no rows and some times ! Endif that piece of code works with mysql only.. (and i'm tyred of mysql je jeje) From alexchernoff at ...67... Wed Jun 28 16:22:57 2017 From: alexchernoff at ...67... (alexchernoff) Date: Wed, 28 Jun 2017 07:22:57 -0700 (MST) Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <1498225374298-59519.post@...3046...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> <1498132606164-59502.post@...3046...> <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> <1498134404588-59504.post@...3046...> <1498162326532-59515.post@...3046...> <20170623104613.GA577@...3600...> <1498225374298-59519.post@...3046...> Message-ID: <1498659777486-59565.post@...3046...> Peace, Can gbr3 be made to log fatal interpreter errors to file? Thanks! -- View this message in context: http://gambas.8142.n7.nabble.com/Logging-errors-in-apps-running-as-Application-Daemon-tp59450p59565.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Wed Jun 28 16:39:36 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 28 Jun 2017 10:39:36 -0400 Subject: [Gambas-user] Logging errors in apps running as Application.Daemon In-Reply-To: <1498659777486-59565.post@...3046...> References: <1498036647346-59450.post@...3046...> <20170621201502.a81bd750d2eca2186a333e59@...626...> <20170621115111.GA574@...3600...> <20170621223118.b602245271bde64e3a2884a7@...626...> <1498132606164-59502.post@...3046...> <2c1b43fd-c66f-093e-e5b6-857a95c7bab2@...1...> <1498134404588-59504.post@...3046...> <1498162326532-59515.post@...3046...> <20170623104613.GA577@...3600...> <1498225374298-59519.post@...3046...> <1498659777486-59565.post@...3046...> Message-ID: can you combine that: https://www.gambas-es.org/viewtopic.php?f=5&t=6396 with a combination of some of that tools: a) recursive programing or exec callback's (i really not expert in this with gambas) b) http://cr.yp.to/daemontools.html c) http://supervisord.org/ Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-28 10:22 GMT-04:00 alexchernoff : > Peace, > > Can gbr3 be made to log fatal interpreter errors to file? > > Thanks! > > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Logging-errors-in-apps-running-as-Application-Daemon- > tp59450p59565.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 mckaygerhard at ...626... Wed Jun 28 17:02:56 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 28 Jun 2017 11:02:56 -0400 Subject: [Gambas-user] dialog.autoext wiki invalid references and gambas returns null Message-ID: i have some code that put Dialog.title = "Export CSV" Dialog.filter = ["*.csv", "*.CSV"] Dialoautoext = True I cannot found where was added this, due there a only one reference: http://gambaswiki.org/wiki/comp/gb.form.dialog/dialog/autoext but giot more depends of the gui or of the reference? at the end of the description Dialog refers to unknow page, and in my gambas 3.9 instalation this symbol/property does not exits and get hang http://gambaswiki.org/wiki/comp/gb.form.dialog?h=1 maybe that wa from older wiki? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Wed Jun 28 17:48:06 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 28 Jun 2017 11:48:06 -0400 Subject: [Gambas-user] gridview contents x,y are default richtext or text? Message-ID: i have a piece of code, from a complex project, that export line by line to a file, the contents of the gridview, but not the text, only the richtext why are not the same? For d = 0 To grid.Rows.Count - 1 linefile = "" For c = 0 To grid.Columns.Count - 1 linefile &= "\"" & grid[d, c].text & "\";" Next linefile = Left(linefile, -1) & gb.NewLine parsetofile &= linefile Next "parsetofile" its the file to put stream, but the grid object only have text content in the richtext, and the text not? why if i using .text does not show nothing? in the data event i set both, text and richtext! but only got in richtext! why? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From charlie at ...2793... Wed Jun 28 19:17:09 2017 From: charlie at ...2793... (Charlie) Date: Wed, 28 Jun 2017 10:17:09 -0700 (MST) Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: References: Message-ID: <1498670229634-59569.post@...3046...> PICCORO McKAY Lenz wrote > i have a piece of code, from a complex project, that export line by line > to > a file, the contents of the gridview, but not the text, only the richtext > why are not the same? Try using: *linefile &= "\"" & grid[d, c].RichText & "\";" 'Not .Text* Also you can use: - *For d = 0 To grid.Rows.Max 'Instead of Count - 1 * I have attached the program I used to test this. GUITest.tar ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/gridview-contents-x-y-are-default-richtext-or-text-tp59568p59569.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Wed Jun 28 19:38:52 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 28 Jun 2017 13:38:52 -0400 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: <1498670229634-59569.post@...3046...> References: <1498670229634-59569.post@...3046...> Message-ID: but that's the problem, why richtext have contents and .text does not have it? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-28 13:17 GMT-04:00 Charlie : > PICCORO McKAY Lenz wrote > > i have a piece of code, from a complex project, that export line by line > > to > > a file, the contents of the gridview, but not the text, only the richtext > > why are not the same? > > Try using: > > *linefile &= "\"" & grid[d, c].RichText & "\";" 'Not .Text* > > Also you can use: - > > *For d = 0 To grid.Rows.Max 'Instead of Count - 1 * > > I have attached the program I used to test this. > GUITest.tar > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/gridview-contents-x-y-are-default-richtext-or-text-tp59568p59569.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 charlie at ...2793... Wed Jun 28 20:05:30 2017 From: charlie at ...2793... (Charlie) Date: Wed, 28 Jun 2017 11:05:30 -0700 (MST) Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: References: Message-ID: <1498673130823-59571.post@...3046...> OK sorry I deleted that post once I reread your post. Have a look at this solution GUITest.tar ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/gridview-contents-x-y-are-default-richtext-or-text-tp59568p59571.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Thu Jun 29 00:14:54 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 28 Jun 2017 18:14:54 -0400 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: <1498673130823-59571.post@...3046...> References: <1498673130823-59571.post@...3046...> Message-ID: no no, i mean that i want to use the .text only but does not got any here, only by using .richtext.. ... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-28 14:05 GMT-04:00 Charlie : > OK sorry I deleted that post once I reread your post. > > Have a look at this solution > > GUITest.tar > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble. > com/gridview-contents-x-y-are-default-richtext-or-text-tp59568p59571.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 adamnt42 at ...626... Thu Jun 29 00:54:41 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Thu, 29 Jun 2017 08:24:41 +0930 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: References: <1498673130823-59571.post@...3046...> Message-ID: <20170629082441.6f13a8fad44a5b5c1cea5bea@...626...> Just because something has a similar name doesn't mean it is the same thing. Your original question makes as much sense as: "How come when I access the Text property of a GridView, it doesn't give me the value of the Alignment property?" V_GridView_Cell.Text and _GridView_Cell.RichText are not the same property. b On Wed, 28 Jun 2017 18:14:54 -0400 PICCORO McKAY Lenz wrote: > no no, i mean that i want to use the .text only but does not got any here, > only by using .richtext.. ... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-28 14:05 GMT-04:00 Charlie : > > > OK sorry I deleted that post once I reread your post. > > > > Have a look at this solution > > > > GUITest.tar > > > > > > > > ----- > > Check out www.gambas.one > > -- > > View this message in context: http://gambas.8142.n7.nabble. > > com/gridview-contents-x-y-are-default-richtext-or-text-tp59568p59571.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 -- B Bruen From ihaywood3 at ...626... Thu Jun 29 09:55:10 2017 From: ihaywood3 at ...626... (Ian Haywood) Date: Thu, 29 Jun 2017 17:55:10 +1000 Subject: [Gambas-user] Fwd: No menus visible Qt5 on Unity In-Reply-To: References: Message-ID: Running gambas under Qt5 on Ubuntu unity no menus are visible or accessible (in either the app window or the top bar) using Qt4 fixes the problem (so does not using Unity!) Yes this is minor issue, however Qt4 will eventually vanish (it already has on debian) so will need to be addressed someday. Ian [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.10.0-19-generic Architecture=x86_64 Distribution=Ubuntu 17.04 Desktop=UNITY:UNITY7 Theme=Gtk Language=en_AU.UTF-8 Memory=738M [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_IM_MODULE=xim COLORTERM=truecolor COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu-lowgfx DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=en_AU GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INVOCATION_ID=119a5df01dc344e0979a02c98cdf483f JOURNAL_STREAM=8:21771 LANG=en_AU.UTF-8 LANGUAGE=en_AU:en LESSCLOSE=/usr/bin/lesspipe %s %s LESSOPEN=| /usr/bin/lesspipe %s LIBGL_ALWAYS_SOFTWARE=1 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: MANAGERPID=1053 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 SHELL=/bin/bash SHLVL=2 SSH_AGENT_LAUNCHER=gnome-keyring SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TERM=xterm-256color TZ=:/etc/localtime USER= VTE_VERSION=4402 WINDOWID=46154159 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg XDG_CURRENT_DESKTOP=Unity:Unity7 XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XMODIFIERS=@...3498...=ibus _=/usr/bin/gambas3 -------------- next part -------------- A non-text attachment was scrubbed... Name: screenshot.png Type: image/png Size: 199907 bytes Desc: not available URL: From shordi at ...626... Thu Jun 29 10:42:18 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 29 Jun 2017 10:42:18 +0200 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: References: <1498673130823-59571.post@...3046...> Message-ID: I wrote that software. It is available in the Farm with the name of pageGrid. The Richtext property is used because the control allows the rows to be automatically set according to the length of their content and the available column width (control's wordWrap property), and that can only be calculated using RichText. The function that do this is in pGrid class: Public Sub calcHeights() Dim n, i, f As Integer For n = 0 To Me.Rows.Max If Me.Rows[n].Height <> Me.Rows.Height Then Me.Rows[n].Height = Me.Rows.Height f = 0 For i = 0 To Me.Columns.Max f = Max(f, Me[n, i].Font.RichTextHeight(Me[n, i].RichText, Me.Columns[i].width)) Next Me.Rows[n].Height = f + (Me.Rows.Height - Me.Font.Height - 1) Endif Next End As you can see, with text property of gridCells it's impossible to do this. Best Regars. 2017-06-29 0:14 GMT+02:00 PICCORO McKAY Lenz : > no no, i mean that i want to use the .text only but does not got any here, > only by using .richtext.. ... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-28 14:05 GMT-04:00 Charlie : > > > OK sorry I deleted that post once I reread your post. > > > > Have a look at this solution > > > > GUITest.tar > > > > > > > > ----- > > Check out www.gambas.one > > -- > > View this message in context: http://gambas.8142.n7.nabble. > > com/gridview-contents-x-y-are-default-richtext-or-text- > tp59568p59571.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 bugtracker at ...3416... Thu Jun 29 12:27:59 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Thu, 29 Jun 2017 10:27:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1125: Editor not available in gb.qt5.ext Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1125&from=L21haW4- Ian HAYWOOD reported a new bug. Summary ------- Editor not available in gb.qt5.ext Type : Request Priority : Low Gambas version : 3.9.90 (TRUNK) Product : QT5 component Description ----------- The Editor widget is available in gb.qt4 ext but is not available in gb.qt5.ext. The code needs to be ported to Qt5 from the Qt4 APis, specifcally classes like Q3ScroolView which are not available in Qt 5. From gambas.fr at ...626... Thu Jun 29 13:32:40 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 29 Jun 2017 13:32:40 +0200 Subject: [Gambas-user] Fwd: No menus visible Qt5 on Unity In-Reply-To: References: Message-ID: unity will vanish too :-) 2017-06-29 9:55 GMT+02:00 Ian Haywood : > Running gambas under Qt5 on Ubuntu unity no menus are visible or > accessible (in either the app window or the top bar) > > using Qt4 fixes the problem (so does not using Unity!) > > Yes this is minor issue, however Qt4 will eventually vanish (it > already has on debian) so will need to be addressed someday. > > Ian > > > [System] > Gambas=3.9.2 > OperatingSystem=Linux > Kernel=4.10.0-19-generic > Architecture=x86_64 > Distribution=Ubuntu 17.04 > Desktop=UNITY:UNITY7 > Theme=Gtk > Language=en_AU.UTF-8 > Memory=738M > > [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_IM_MODULE=xim > COLORTERM=truecolor > COMPIZ_BIN_PATH=/usr/bin/ > COMPIZ_CONFIG_PROFILE=ubuntu-lowgfx > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=ubuntu > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=ubuntu > GDM_LANG=en_AU > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GTK2_MODULES=overlay-scrollbar > GTK_IM_MODULE=ibus > GTK_MODULES=gail:atk-bridge:unity-gtk-module > HOME= > IM_CONFIG_PHASE=1 > INVOCATION_ID=119a5df01dc344e0979a02c98cdf483f > JOURNAL_STREAM=8:21771 > LANG=en_AU.UTF-8 > LANGUAGE=en_AU:en > LESSCLOSE=/usr/bin/lesspipe %s %s > LESSOPEN=| /usr/bin/lesspipe %s > LIBGL_ALWAYS_SOFTWARE=1 > 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: > MANAGERPID=1053 > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > PWD= > QT4_IM_MODULE=xim > QT_ACCESSIBILITY=1 > QT_IM_MODULE=ibus > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > SHELL=/bin/bash > SHLVL=2 > SSH_AGENT_LAUNCHER=gnome-keyring > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TERM=xterm-256color > TZ=:/etc/localtime > USER= > VTE_VERSION=4402 > WINDOWID=46154159 > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg > XDG_CURRENT_DESKTOP=Unity:Unity7 > XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=ubuntu > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XMODIFIERS=@...3498...=ibus > _=/usr/bin/gambas3 > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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... Thu Jun 29 15:40:25 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 29 Jun 2017 09:40:25 -0400 Subject: [Gambas-user] Fwd: No menus visible Qt5 on Unity In-Reply-To: References: Message-ID: well its a unitty problem i think.. respect qt5.. dues only happened in unitty, so how many distros uses unity? and : >Yes this is minor issue, however Qt4 will eventually vanish (it unity was not get any support form canonical, now are by own.. so recent version of winbuntu does not use it! as Fabien said: unity ITS vanished in esential... (thaniks god and aliens for that) and: >Qt4 will eventually vanish (it argggg i really hate QT5 ... too ram consuption! too CPU power requirements, too many space requirements Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-29 3:55 GMT-04:00 Ian Haywood : > Running gambas under Qt5 on Ubuntu unity no menus are visible or > accessible (in either the app window or the top bar) > > using Qt4 fixes the problem (so does not using Unity!) > > Yes this is minor issue, however Qt4 will eventually vanish (it > already has on debian) so will need to be addressed someday. > > Ian > > > [System] > Gambas=3.9.2 > OperatingSystem=Linux > Kernel=4.10.0-19-generic > Architecture=x86_64 > Distribution=Ubuntu 17.04 > Desktop=UNITY:UNITY7 > Theme=Gtk > Language=en_AU.UTF-8 > Memory=738M > > [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_IM_MODULE=xim > COLORTERM=truecolor > COMPIZ_BIN_PATH=/usr/bin/ > COMPIZ_CONFIG_PROFILE=ubuntu-lowgfx > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DESKTOP_SESSION=ubuntu > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=ubuntu > GDM_LANG=en_AU > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GTK2_MODULES=overlay-scrollbar > GTK_IM_MODULE=ibus > GTK_MODULES=gail:atk-bridge:unity-gtk-module > HOME= > IM_CONFIG_PHASE=1 > INVOCATION_ID=119a5df01dc344e0979a02c98cdf483f > JOURNAL_STREAM=8:21771 > LANG=en_AU.UTF-8 > LANGUAGE=en_AU:en > LESSCLOSE=/usr/bin/lesspipe %s %s > LESSOPEN=| /usr/bin/lesspipe %s > LIBGL_ALWAYS_SOFTWARE=1 > 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: > MANAGERPID=1053 > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ > sbin:/bin:/usr/games:/usr/local/games:/snap/bin > PWD= > QT4_IM_MODULE=xim > QT_ACCESSIBILITY=1 > QT_IM_MODULE=ibus > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > SHELL=/bin/bash > SHLVL=2 > SSH_AGENT_LAUNCHER=gnome-keyring > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TERM=xterm-256color > TZ=:/etc/localtime > USER= > VTE_VERSION=4402 > WINDOWID=46154159 > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg > XDG_CURRENT_DESKTOP=Unity:Unity7 > XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/ > share/:/var/lib/snapd/desktop > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=ubuntu > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XMODIFIERS=@im=ibus > _=/usr/bin/gambas3 > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 29 15:43:04 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 29 Jun 2017 09:43:04 -0400 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: References: <1498673130823-59571.post@...3046...> Message-ID: hi Jorge, i already know why the usage of the richtext in the pagegrid.. the question are why when i access to .text got nothing.. i modified the code to set both: .richtext content and .text content.. but only the richtext content are got ... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-29 4:42 GMT-04:00 Jorge Carri?n : > I wrote that software. It is available in the Farm with the name of > pageGrid. > The Richtext property is used because the control allows the rows to be > automatically set according to the length of their content and the > available column width (control's wordWrap property), and that can only be > calculated using RichText. > The function that do this is in pGrid class: > > Public Sub calcHeights() > > Dim n, i, f As Integer > > For n = 0 To Me.Rows.Max > If Me.Rows[n].Height <> Me.Rows.Height Then > Me.Rows[n].Height = Me.Rows.Height > f = 0 > For i = 0 To Me.Columns.Max > f = Max(f, Me[n, i].Font.RichTextHeight(Me[n, i].RichText, > Me.Columns[i].width)) > Next > Me.Rows[n].Height = f + (Me.Rows.Height - Me.Font.Height - 1) > Endif > Next > > End > > As you can see, with text property of gridCells it's impossible to do this. > > Best Regars. > > > > > > 2017-06-29 0:14 GMT+02:00 PICCORO McKAY Lenz : > > > no no, i mean that i want to use the .text only but does not got any > here, > > only by using .richtext.. ... > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-06-28 14:05 GMT-04:00 Charlie : > > > > > OK sorry I deleted that post once I reread your post. > > > > > > Have a look at this solution > > > > > > GUITest.tar > > > > > > > > > > > > ----- > > > Check out www.gambas.one > > > -- > > > View this message in context: http://gambas.8142.n7.nabble. > > > com/gridview-contents-x-y-are-default-richtext-or-text- > > tp59568p59571.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 > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 adamnt42 at ...626... Thu Jun 29 17:03:04 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 30 Jun 2017 00:33:04 +0930 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: References: <1498673130823-59571.post@...3046...> Message-ID: <20170630003304.20781be893fb1dd363f39c00@...626...> On Thu, 29 Jun 2017 09:43:04 -0400 PICCORO McKAY Lenz wrote: > hi Jorge, i already know why the usage of the richtext in the pagegrid.. > the question are why when i access to .text got nothing.. i modified the > code to set both: .richtext content and .text content.. but only the > richtext content are got ... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-29 4:42 GMT-04:00 Jorge Carri?n : > > > I wrote that software. It is available in the Farm with the name of > > pageGrid. > > The Richtext property is used because the control allows the rows to be > > automatically set according to the length of their content and the > > available column width (control's wordWrap property), and that can only be > > calculated using RichText. > > The function that do this is in pGrid class: > > > > Public Sub calcHeights() > > > > Dim n, i, f As Integer > > > > For n = 0 To Me.Rows.Max > > If Me.Rows[n].Height <> Me.Rows.Height Then > > Me.Rows[n].Height = Me.Rows.Height > > f = 0 > > For i = 0 To Me.Columns.Max > > f = Max(f, Me[n, i].Font.RichTextHeight(Me[n, i].RichText, > > Me.Columns[i].width)) > > Next > > Me.Rows[n].Height = f + (Me.Rows.Height - Me.Font.Height - 1) > > Endif > > Next > > > > End > > > > As you can see, with text property of gridCells it's impossible to do this. > > > > Best Regars. > > > > > > > > > > > > 2017-06-29 0:14 GMT+02:00 PICCORO McKAY Lenz : > > > > > no no, i mean that i want to use the .text only but does not got any > > here, > > > only by using .richtext.. ... > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > > > > 2017-06-28 14:05 GMT-04:00 Charlie : > > > > > > > OK sorry I deleted that post once I reread your post. > > > > > > > > Have a look at this solution > > > > > > > > GUITest.tar > > > > > > > > > > > > > > > > ----- > > > > Check out www.gambas.one > > > > -- > > > > View this message in context: http://gambas.8142.n7.nabble. > > > > com/gridview-contents-x-y-are-default-richtext-or-text- > > > tp59568p59571.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 > > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 -- B Bruen -------------- next part -------------- A non-text attachment was scrubbed... Name: Selection_067.png Type: image/png Size: 33954 bytes Desc: not available URL: From mckaygerhard at ...626... Thu Jun 29 17:20:14 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 29 Jun 2017 11:20:14 -0400 Subject: [Gambas-user] =?utf-8?q?Wiki_doc_=22how_to_make_library=22_Espani?= =?utf-8?q?sh/espa=C3=B1ol_actualizada?= Message-ID: Hi everywell, i'll watch the changes on the main gambas library wiki and tracked all to the spanish version.. http://gambaswiki.org/wiki/doc/library?l=es the last two topics are not yet completed due at that moment was'n completed in the english part. please revise and post feedback, Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Thu Jun 29 18:21:32 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 29 Jun 2017 12:21:32 -0400 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: <20170630003304.20781be893fb1dd363f39c00@...626...> References: <1498673130823-59571.post@...3046...> <20170630003304.20781be893fb1dd363f39c00@...626...> Message-ID: grrrrr that's wiki link its different from http://gambaswiki.org/wiki/comp/gb.qt4/gridview damn ok thanks ... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-29 11:03 GMT-04:00 adamnt42 at ...626... : > > > On Thu, 29 Jun 2017 09:43:04 -0400 > PICCORO McKAY Lenz wrote: > > > hi Jorge, i already know why the usage of the richtext in the pagegrid.. > > the question are why when i access to .text got nothing.. i modified the > > code to set both: .richtext content and .text content.. but only the > > richtext content are got ... > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-06-29 4:42 GMT-04:00 Jorge Carri?n : > > > > > I wrote that software. It is available in the Farm with the name of > > > pageGrid. > > > The Richtext property is used because the control allows the rows to be > > > automatically set according to the length of their content and the > > > available column width (control's wordWrap property), and that can > only be > > > calculated using RichText. > > > The function that do this is in pGrid class: > > > > > > Public Sub calcHeights() > > > > > > Dim n, i, f As Integer > > > > > > For n = 0 To Me.Rows.Max > > > If Me.Rows[n].Height <> Me.Rows.Height Then > > > Me.Rows[n].Height = Me.Rows.Height > > > f = 0 > > > For i = 0 To Me.Columns.Max > > > f = Max(f, Me[n, i].Font.RichTextHeight(Me[n, i].RichText, > > > Me.Columns[i].width)) > > > Next > > > Me.Rows[n].Height = f + (Me.Rows.Height - Me.Font.Height - 1) > > > Endif > > > Next > > > > > > End > > > > > > As you can see, with text property of gridCells it's impossible to do > this. > > > > > > Best Regars. > > > > > > > > > > > > > > > > > > 2017-06-29 0:14 GMT+02:00 PICCORO McKAY Lenz : > > > > > > > no no, i mean that i want to use the .text only but does not got any > > > here, > > > > only by using .richtext.. ... > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > > http://qgqlochekone.blogspot.com > > > > > > > > 2017-06-28 14:05 GMT-04:00 Charlie : > > > > > > > > > OK sorry I deleted that post once I reread your post. > > > > > > > > > > Have a look at this solution > > > > > > > > > > GUITest.tar com/file/n59571/GUITest.tar> > > > > > > > > > > > > > > > > > > > > ----- > > > > > Check out www.gambas.one > > > > > -- > > > > > View this message in context: http://gambas.8142.n7.nabble. > > > > > com/gridview-contents-x-y-are-default-richtext-or-text- > > > > tp59568p59571.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 > > > > > > > ------------------------------------------------------------ > > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, 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 > > > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 29 19:05:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 29 Jun 2017 13:05:39 -0400 Subject: [Gambas-user] gridview contents x, y are default richtext or text? In-Reply-To: References: <1498673130823-59571.post@...3046...> <20170630003304.20781be893fb1dd363f39c00@...626...> Message-ID: its there any possibility to override the .text to handle from .richtext ? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-29 12:21 GMT-04:00 PICCORO McKAY Lenz : > grrrrr that's wiki link its different from http://gambaswiki.org/ > wiki/comp/gb.qt4/gridview damn > > ok thanks ... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-06-29 11:03 GMT-04:00 adamnt42 at ...626... : > >> >> >> On Thu, 29 Jun 2017 09:43:04 -0400 >> PICCORO McKAY Lenz wrote: >> >> > hi Jorge, i already know why the usage of the richtext in the pagegrid.. >> > the question are why when i access to .text got nothing.. i modified the >> > code to set both: .richtext content and .text content.. but only the >> > richtext content are got ... >> > >> > Lenz McKAY Gerardo (PICCORO) >> > http://qgqlochekone.blogspot.com >> > >> > 2017-06-29 4:42 GMT-04:00 Jorge Carri?n : >> > >> > > I wrote that software. It is available in the Farm with the name of >> > > pageGrid. >> > > The Richtext property is used because the control allows the rows to >> be >> > > automatically set according to the length of their content and the >> > > available column width (control's wordWrap property), and that can >> only be >> > > calculated using RichText. >> > > The function that do this is in pGrid class: >> > > >> > > Public Sub calcHeights() >> > > >> > > Dim n, i, f As Integer >> > > >> > > For n = 0 To Me.Rows.Max >> > > If Me.Rows[n].Height <> Me.Rows.Height Then >> > > Me.Rows[n].Height = Me.Rows.Height >> > > f = 0 >> > > For i = 0 To Me.Columns.Max >> > > f = Max(f, Me[n, i].Font.RichTextHeight(Me[n, i].RichText, >> > > Me.Columns[i].width)) >> > > Next >> > > Me.Rows[n].Height = f + (Me.Rows.Height - Me.Font.Height - 1) >> > > Endif >> > > Next >> > > >> > > End >> > > >> > > As you can see, with text property of gridCells it's impossible to do >> this. >> > > >> > > Best Regars. >> > > >> > > >> > > >> > > >> > > >> > > 2017-06-29 0:14 GMT+02:00 PICCORO McKAY Lenz > >: >> > > >> > > > no no, i mean that i want to use the .text only but does not got any >> > > here, >> > > > only by using .richtext.. ... >> > > > >> > > > Lenz McKAY Gerardo (PICCORO) >> > > > http://qgqlochekone.blogspot.com >> > > > >> > > > 2017-06-28 14:05 GMT-04:00 Charlie : >> > > > >> > > > > OK sorry I deleted that post once I reread your post. >> > > > > >> > > > > Have a look at this solution >> > > > > >> > > > > GUITest.tar > com/file/n59571/GUITest.tar> >> > > > > >> > > > > >> > > > > >> > > > > ----- >> > > > > Check out www.gambas.one >> > > > > -- >> > > > > View this message in context: http://gambas.8142.n7.nabble. >> > > > > com/gridview-contents-x-y-are-default-richtext-or-text- >> > > > tp59568p59571.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 >> > > > >> > > ------------------------------------------------------------ >> > > ------------------ >> > > Check out the vibrant tech community on one of the world's most >> > > engaging tech sites, 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 >> >> >> -- >> B Bruen >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, 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 Jun 29 19:37:26 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 29 Jun 2017 19:37:26 +0200 Subject: [Gambas-user] Fwd: No menus visible Qt5 on Unity In-Reply-To: References: Message-ID: Sigh! I like Unity :-( Hi Ian, if you use gb.gui.qt component, menus works? Regards Gianluigi 2017-06-29 13:32 GMT+02:00 Fabien Bodard : > unity will vanish too :-) > > 2017-06-29 9:55 GMT+02:00 Ian Haywood : > > Running gambas under Qt5 on Ubuntu unity no menus are visible or > > accessible (in either the app window or the top bar) > > > > using Qt4 fixes the problem (so does not using Unity!) > > > > Yes this is minor issue, however Qt4 will eventually vanish (it > > already has on debian) so will need to be addressed someday. > > > > Ian > > > > > > [System] > > Gambas=3.9.2 > > OperatingSystem=Linux > > Kernel=4.10.0-19-generic > > Architecture=x86_64 > > Distribution=Ubuntu 17.04 > > Desktop=UNITY:UNITY7 > > Theme=Gtk > > Language=en_AU.UTF-8 > > Memory=738M > > > > [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_IM_MODULE=xim > > COLORTERM=truecolor > > COMPIZ_BIN_PATH=/usr/bin/ > > COMPIZ_CONFIG_PROFILE=ubuntu-lowgfx > > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > > DESKTOP_SESSION=ubuntu > > DISPLAY=:0 > > GB_GUI=gb.qt4 > > GDMSESSION=ubuntu > > GDM_LANG=en_AU > > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > > GTK2_MODULES=overlay-scrollbar > > GTK_IM_MODULE=ibus > > GTK_MODULES=gail:atk-bridge:unity-gtk-module > > HOME= > > IM_CONFIG_PHASE=1 > > INVOCATION_ID=119a5df01dc344e0979a02c98cdf483f > > JOURNAL_STREAM=8:21771 > > LANG=en_AU.UTF-8 > > LANGUAGE=en_AU:en > > LESSCLOSE=/usr/bin/lesspipe %s %s > > LESSOPEN=| /usr/bin/lesspipe %s > > LIBGL_ALWAYS_SOFTWARE=1 > > 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: > > MANAGERPID=1053 > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ > sbin:/bin:/usr/games:/usr/local/games:/snap/bin > > PWD= > > QT4_IM_MODULE=xim > > QT_ACCESSIBILITY=1 > > QT_IM_MODULE=ibus > > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > > SHELL=/bin/bash > > SHLVL=2 > > SSH_AGENT_LAUNCHER=gnome-keyring > > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > > TERM=xterm-256color > > TZ=:/etc/localtime > > USER= > > VTE_VERSION=4402 > > WINDOWID=46154159 > > XAUTHORITY=/.Xauthority > > XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg > > XDG_CURRENT_DESKTOP=Unity:Unity7 > > XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/ > share/:/var/lib/snapd/desktop > > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > > XDG_RUNTIME_DIR=/run/user/1000 > > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > > XDG_SESSION_DESKTOP=ubuntu > > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > > XDG_SESSION_TYPE=x11 > > XMODIFIERS=@im=ibus > > _=/usr/bin/gambas3 > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, 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 bagonergi at ...626... Thu Jun 29 19:47:01 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 29 Jun 2017 19:47:01 +0200 Subject: [Gambas-user] Fwd: No menus visible Qt5 on Unity In-Reply-To: References: Message-ID: Sorry, I did not see the picture Regards Gianluigi 2017-06-29 19:37 GMT+02:00 Gianluigi : > Sigh! I like Unity :-( > > Hi Ian, > > if you use gb.gui.qt component, menus works? > > Regards > Gianluigi > > 2017-06-29 13:32 GMT+02:00 Fabien Bodard : > >> unity will vanish too :-) >> >> 2017-06-29 9:55 GMT+02:00 Ian Haywood : >> > Running gambas under Qt5 on Ubuntu unity no menus are visible or >> > accessible (in either the app window or the top bar) >> > >> > using Qt4 fixes the problem (so does not using Unity!) >> > >> > Yes this is minor issue, however Qt4 will eventually vanish (it >> > already has on debian) so will need to be addressed someday. >> > >> > Ian >> > >> > >> > [System] >> > Gambas=3.9.2 >> > OperatingSystem=Linux >> > Kernel=4.10.0-19-generic >> > Architecture=x86_64 >> > Distribution=Ubuntu 17.04 >> > Desktop=UNITY:UNITY7 >> > Theme=Gtk >> > Language=en_AU.UTF-8 >> > Memory=738M >> > >> > [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_IM_MODULE=xim >> > COLORTERM=truecolor >> > COMPIZ_BIN_PATH=/usr/bin/ >> > COMPIZ_CONFIG_PROFILE=ubuntu-lowgfx >> > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus >> > DESKTOP_SESSION=ubuntu >> > DISPLAY=:0 >> > GB_GUI=gb.qt4 >> > GDMSESSION=ubuntu >> > GDM_LANG=en_AU >> > GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> > GTK2_MODULES=overlay-scrollbar >> > GTK_IM_MODULE=ibus >> > GTK_MODULES=gail:atk-bridge:unity-gtk-module >> > HOME= >> > IM_CONFIG_PHASE=1 >> > INVOCATION_ID=119a5df01dc344e0979a02c98cdf483f >> > JOURNAL_STREAM=8:21771 >> > LANG=en_AU.UTF-8 >> > LANGUAGE=en_AU:en >> > LESSCLOSE=/usr/bin/lesspipe %s %s >> > LESSOPEN=| /usr/bin/lesspipe %s >> > LIBGL_ALWAYS_SOFTWARE=1 >> > 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: >> > MANAGERPID=1053 >> > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin >> :/bin:/usr/games:/usr/local/games:/snap/bin >> > PWD= >> > QT4_IM_MODULE=xim >> > QT_ACCESSIBILITY=1 >> > QT_IM_MODULE=ibus >> > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 >> > SHELL=/bin/bash >> > SHLVL=2 >> > SSH_AGENT_LAUNCHER=gnome-keyring >> > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> > TERM=xterm-256color >> > TZ=:/etc/localtime >> > USER= >> > VTE_VERSION=4402 >> > WINDOWID=46154159 >> > XAUTHORITY=/.Xauthority >> > XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg >> > XDG_CURRENT_DESKTOP=Unity:Unity7 >> > XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share >> /:/var/lib/snapd/desktop >> > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >> > XDG_RUNTIME_DIR=/run/user/1000 >> > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >> > XDG_SESSION_DESKTOP=ubuntu >> > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >> > XDG_SESSION_TYPE=x11 >> > XMODIFIERS=@im=ibus >> > _=/usr/bin/gambas3 >> > >> > ------------------------------------------------------------ >> ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, 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 mckaygerhard at ...626... Fri Jun 30 00:57:29 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 29 Jun 2017 18:57:29 -0400 Subject: [Gambas-user] any way to convert Result to Collection more faster than copy? Message-ID: can i convert directly or more faster than copy each row, a Result from database to a collection or a VArian matrix? i'm taking about 200.000 rows in a result... the problem its that the odbc db object support only cursor with forward only.. so with a matrix or a collection i cant emulate the cursor behaviour Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Fri Jun 30 02:48:56 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 30 Jun 2017 02:48:56 +0200 Subject: [Gambas-user] Fwd: No menus visible Qt5 on Unity In-Reply-To: References: Message-ID: Le 29/06/2017 ? 09:55, Ian Haywood a ?crit : > Running gambas under Qt5 on Ubuntu unity no menus are visible or > accessible (in either the app window or the top bar) > > using Qt4 fixes the problem (so does not using Unity!) > > Yes this is minor issue, however Qt4 will eventually vanish (it > already has on debian) so will need to be addressed someday. > > Ian > Apparently, this is a bug in QT5 that appears only with Unity. Alas I didn't find any workaround on Internet. If you find something, tell me! -- Beno?t Minisini From gambas.fr at ...626... Fri Jun 30 09:58:12 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 30 Jun 2017 09:58:12 +0200 Subject: [Gambas-user] Fwd: No menus visible Qt5 on Unity In-Reply-To: References: Message-ID: 2017-06-30 2:48 GMT+02:00 Beno?t Minisini via Gambas-user : > Le 29/06/2017 ? 09:55, Ian Haywood a ?crit : >> >> Running gambas under Qt5 on Ubuntu unity no menus are visible or >> accessible (in either the app window or the top bar) >> >> using Qt4 fixes the problem (so does not using Unity!) >> >> Yes this is minor issue, however Qt4 will eventually vanish (it >> already has on debian) so will need to be addressed someday. >> >> Ian >> > Apparently, this is a bug in QT5 that appears only with Unity. Alas I didn't > find any workaround on Internet. If you find something, tell me! I think the workarround can be to deal with the dbus menu... no ? So gambas can display it's menus in the unity menu bar mac style > > -- > 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 -- Fabien Bodard From adamnt42 at ...626... Fri Jun 30 10:09:54 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Fri, 30 Jun 2017 17:39:54 +0930 Subject: [Gambas-user] any way to convert Result to Collection more faster than copy? In-Reply-To: References: Message-ID: <20170630173954.137fab15d2a48bebfc62cced@...626...> On Thu, 29 Jun 2017 18:57:29 -0400 PICCORO McKAY Lenz wrote: > can i convert directly or more faster than copy each row, a Result from > database to a collection or a VArian matrix? > > i'm taking about 200.000 rows in a result... the problem its that the odbc > db object support only cursor with forward only.. > > so with a matrix or a collection i cant emulate the cursor behaviour > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com Interesting. Well the row by row copy is how we do it here. I added some quick timer Prints to a program we run each day to verify that the database updates done overnight were "clean". The data loaded is a fairly complex join of several tables, the transactional table is 754,756 rows today and the master table is 733,723 rows long and the transactional data is compared to the master data to test a set of possible inconsistencies. ( The actual query returned a set of the transaction and master records that were actioned overnight - this generally returns about 5,000 to 10,000 rows - so I jigged it to return the pairs that were not actioned overnight thereby getting row counts of the sizes you are talking about.) So the jigged query just returned 556,000 rows. Here's the timing output. 17:05:59:706 Connecting to DB 17:06:00:202 Loading Data <---- so 406 mSec to establish the db connection 17:06:31:417 556502 rows <---- so 31,215 mSec to execute the query and return the result 17:06:31:417 Unmarshalling result started 17:06:44:758 Unmarshalling completed 556502 rows processed <--- so 13,341 mSec to unmarshall the result into an array of structs So, it took roughly 31 seconds to execute the query and return the result of half a million rows. To unmarshall that result into the array took just over 13 seconds. The unmarshalling is fairly well a straight field by field copy. (Also I must add, I ran this on a local db copy on my old steam driven laptop, 32 bits and about 1G of memory.) That's about 42 mSec unmarshalling time per row. I don't think that is too bad. From my perspective it is the query that is eating up my life, not the unmarshalling. What sort of times to you get? b (p.s. the query has been optimised until its' eyes bled. ) -- B Bruen From gambas.fr at ...626... Fri Jun 30 12:44:07 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 30 Jun 2017 12:44:07 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> Message-ID: The best way is the nando one ... at least for gambas. As you have not to matter about what is the index value or the order, the walk ahead option is the better. Then Fernando ... for big, big things... I think you need to use a DB. Or a native language.... maybe a sqlite memory structure can be good. 2017-06-27 20:51 GMT+02:00 Fernando Cabral : > Jussi said: > >> As Fernando stated your code is good only for small arrays. But if someone >>is going to use it, here is correct implementation: > > No, Jussi, I didn't say it is good only for small arrays. I said some > suggestions apply only > to small arrays because if I have to traverse the array again and again, > advancing one item at a time, and coming back to the next item, to repeat > it one more time, then time requirement will grow exponentially. This makes > most suggestion unusable for large arrays. The arrays I have might grow to > thousands and thousands os items. > > Regards > > - fernando > > > > > > > 2017-06-27 15:43 GMT-03:00 Jussi Lahtinen : > >> As Fernando stated your code is good only for small arrays. But if someone >> is going to use it, here is correct implementation: >> >> For x = 0 to a.Max >> if z.Find(a[x]) = -1 Then z.Add(a[x]) >> Next >> >> >> z.Exist() might be faster... I don't know. >> >> >> >> Jussi >> >> >> >> On Tue, Jun 27, 2017 at 6:59 PM, wrote: >> >> > Well, there is complicated, then there is simplicity: >> > I tested this. Works for sorted, unsorted. >> > Can't be any simpler. >> > >> > Public Function RemoveMultiple(a As String[]) As String[] >> > >> > Dim x as Integer >> > Dim z as NEW STRING[] >> > >> > For x = 1 to a.count() >> > if z.Find(a) = 0 Then z.Add(a[x]) >> > Next >> > >> > 'if you want it sorted, do it here >> > Return z >> > >> > END >> > >> > ' - - - - - >> > use it this way: >> > >> > myArray = RemoveMultiple(myArray) >> > 'the z array is now myArray. >> > 'the original array is destroyed because there are no references. >> > >> > >> > >> > -- >> > Open WebMail Project (http://openwebmail.org) >> > >> > >> > ---------- Original Message ----------- >> > From: Gianluigi >> > To: mailing list for gambas users >> > Sent: Tue, 27 Jun 2017 16:52:48 +0200 >> > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate >> items >> > in a array >> > >> > > My two cents. >> > > >> > > Public Sub Main() >> > > >> > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", >> > > "E", "E", "F"] >> > > Dim sSame As String[] = sSort >> > > Dim bb As New Byte[] >> > > Dim sSingle As New String[] >> > > Dim i, n As Integer >> > > >> > > For i = 0 To sSort.Max >> > > If i < sSort.Max Then >> > > If sSort[i] = sSame[i + 1] Then >> > > Inc n >> > > Else >> > > sSingle.Push(sSort[i]) >> > > bb.Push(n + 1) >> > > n = 0 >> > > Endif >> > > Endif >> > > Next >> > > sSingle.Push(sSort[sSort.Max]) >> > > bb.Push(n + 1) >> > > For i = 0 To sSingle.Max >> > > Print sSingle[i] >> > > Next >> > > For i = 0 To bb.Max >> > > Print bb[i] & sSingle[i] >> > > Next >> > > >> > > End >> > > >> > > Regards >> > > Gianluigi >> > > >> > > 2017-06-27 16:33 GMT+02:00 : >> > > >> > > > Another very effective and simple would be: >> > > > >> > > > You have your array with data >> > > > You create a new empty array. >> > > > >> > > > Loop through each item in your array with data >> > > > If it's not in the new array, then add it. >> > > > >> > > > Destroy the original array. >> > > > Keep the new one. >> > > > ...something like (syntax may not be correct) >> > > > >> > > > Public Function RemoveMultiple(a As String[]) As String[] >> > > > >> > > > Dim x as Integer >> > > > Dim z as NEW STRING[] >> > > > >> > > > For x = 1 to a.count() >> > > > if z.Find(a) = 0 Then z.Add(a[x]) >> > > > Next >> > > > >> > > > Return z >> > > > >> > > > END >> > > > >> > > > -Nando (Canada) >> > > > >> > > > >> > > > >> > > > >> > > > -- >> > > > Open WebMail Project (http://openwebmail.org) >> > > > >> > > > >> > > > ---------- Original Message ----------- >> > > > From: Hans Lehmann >> > > > To: gambas-user at lists.sourceforge.net >> > > > Sent: Tue, 27 Jun 2017 15:51:19 +0200 >> > > > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate >> > items >> > > > in a array >> > > > >> > > > > Hello, >> > > > > >> > > > > look here: >> > > > > >> > > > > 8<---------------------------------------------------------- >> > > > --------------------- >> > > > > ---------- Public Function RemoveMultiple(aStringListe As String[]) >> > As >> > > > String[] >> > > > > Dim iCount As Integer Dim iIndex As Integer Dim sElement As >> > String >> > > > > >> > > > > iIndex = 0 ' Initialisierung NICHT notwendig >> > > > > While iIndex < aStringListe.Count >> > > > > iCount = 0 >> > > > > sElement = aStringListe[iIndex] >> > > > > While aStringListe.Find(sElement) <> -1 >> > > > > Inc iCount >> > > > > aStringListe.Remove(aStringListe.Find(sElement)) >> > > > > Wend >> > > > > If iCount Mod 2 = 1 Then >> > > > > aStringListe.Add(sElement, iIndex) >> > > > > Inc iIndex >> > > > > Endif ' iCount Mod 2 = 1 ? >> > > > > Wend >> > > > > >> > > > > Return aStringListe >> > > > > >> > > > > End ' RemoveMultiple(...) >> > > > > 8<---------------------------------------------------------- >> > > > --------------------- >> > > > > ---------- >> > > > > >> > > > > Hans >> > > > > gambas-buch.de >> > > > > >> > > > > ------------------------------------------------------------ >> > > > ------------------ >> > > > > Check out the vibrant tech community on one of the world's most >> > > > > engaging tech sites, 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 ------- >> > > > >> > > > >> > > > ------------------------------------------------------------ >> > > > ------------------ >> > > > Check out the vibrant tech community on one of the world's most >> > > > engaging tech sites, 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 ------- >> > >> > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, 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 fernandojosecabral at ...626... Fri Jun 30 13:20:55 2017 From: fernandojosecabral at ...626... (Fernando Cabral) Date: Fri, 30 Jun 2017 08:20:55 -0300 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> Message-ID: 2017-06-30 7:44 GMT-03:00 Fabien Bodard : > The best way is the nando one ... at least for gambas. > > As you have not to matter about what is the index value or the order, > the walk ahead option is the better. > > > Then Fernando ... for big, big things... I think you need to use a DB. > Or a native language.... maybe a sqlite memory structure can be good. > Fabien, since this is a one-time only thing, I don't think I'd be better off witha database. Basically, I read a text file an then break it down into words, sentences and paragraphs. Next I count the items in each array (words, sentences paragraphs). Array.count works wonderfully. After that, have to eliminate the duplicate words (Array.words). But in doing it, al also have to count how many times each word appeared. Finally I sort the Array.Sentences and the Array.Paragraphs by size (string.len()). The Array.WOrds are sorted by count + lenght. This is all woring good. So, my quest is for the fastest way do eliminate the words duplicates while I count them. For the time being, here is a working solution based on system' s sort | uniq: Here is one of the versions I have been using: Exec ["/usr/bin/uniq", "Unsorted.txt", "Sorted.srt2"] Wait Exec ["/usr/bin/uniq", "-ci", "SortedWords.srt2", SortedWords.srt3"] Wait Exec ["/usr/bin/sort", "-bnr", SortedWords.srt3] To UniqWords WordArray = split (UniqWords, "\n") So, I end up with the result I want. It's effective. Now, it would be more elegant If I could do the same with Gambas. Of course, the sorting would be easy with the builting WordArray.sort (). But how about te '"/usr/bin/uniq", "-ci" ...' part? Regards - fernando > > > > > > > > > > > > 2017-06-27 15:43 GMT-03:00 Jussi Lahtinen : > > > >> As Fernando stated your code is good only for small arrays. But if > someone > >> is going to use it, here is correct implementation: > >> > >> For x = 0 to a.Max > >> if z.Find(a[x]) = -1 Then z.Add(a[x]) > >> Next > >> > >> > >> z.Exist() might be faster... I don't know. > >> > >> > >> > >> Jussi > >> > >> > >> > >> On Tue, Jun 27, 2017 at 6:59 PM, wrote: > >> > >> > Well, there is complicated, then there is simplicity: > >> > I tested this. Works for sorted, unsorted. > >> > Can't be any simpler. > >> > > >> > Public Function RemoveMultiple(a As String[]) As String[] > >> > > >> > Dim x as Integer > >> > Dim z as NEW STRING[] > >> > > >> > For x = 1 to a.count() > >> > if z.Find(a) = 0 Then z.Add(a[x]) > >> > Next > >> > > >> > 'if you want it sorted, do it here > >> > Return z > >> > > >> > END > >> > > >> > ' - - - - - > >> > use it this way: > >> > > >> > myArray = RemoveMultiple(myArray) > >> > 'the z array is now myArray. > >> > 'the original array is destroyed because there are no references. > >> > > >> > > >> > > >> > -- > >> > Open WebMail Project (http://openwebmail.org) > >> > > >> > > >> > ---------- Original Message ----------- > >> > From: Gianluigi > >> > To: mailing list for gambas users > >> > Sent: Tue, 27 Jun 2017 16:52:48 +0200 > >> > Subject: Re: [Gambas-user] I need a hint on how to deleted duplicate > >> items > >> > in a array > >> > > >> > > My two cents. > >> > > > >> > > Public Sub Main() > >> > > > >> > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", > "E", > >> > > "E", "E", "F"] > >> > > Dim sSame As String[] = sSort > >> > > Dim bb As New Byte[] > >> > > Dim sSingle As New String[] > >> > > Dim i, n As Integer > >> > > > >> > > For i = 0 To sSort.Max > >> > > If i < sSort.Max Then > >> > > If sSort[i] = sSame[i + 1] Then > >> > > Inc n > >> > > Else > >> > > sSingle.Push(sSort[i]) > >> > > bb.Push(n + 1) > >> > > n = 0 > >> > > Endif > >> > > Endif > >> > > Next > >> > > sSingle.Push(sSort[sSort.Max]) > >> > > bb.Push(n + 1) > >> > > For i = 0 To sSingle.Max > >> > > Print sSingle[i] > >> > > Next > >> > > For i = 0 To bb.Max > >> > > Print bb[i] & sSingle[i] > >> > > Next > >> > > > >> > > End > >> > > > >> > > Regards > >> > > Gianluigi > >> > > > >> > > 2017-06-27 16:33 GMT+02:00 : > >> > > > >> > > > Another very effective and simple would be: > >> > > > > >> > > > You have your array with data > >> > > > You create a new empty array. > >> > > > > >> > > > Loop through each item in your array with data > >> > > > If it's not in the new array, then add it. > >> > > > > >> > > > Destroy the original array. > >> > > > Keep the new one. > >> > > > ...something like (syntax may not be correct) > >> > > > > >> > > > Public Function RemoveMultiple(a As String[]) As String[] > >> > > > > >> > > > Dim x as Integer > >> > > > Dim z as NEW STRING[] > >> > > > > >> > > > For x = 1 to a.count() > >> > > > if z.Find(a) = 0 Then z.Add(a[x]) > >> > > > Next > >> > > > > >> > > > Return z > >> > > > > >> > > > END > >> > > > > >> > > > -Nando (Canada) > >> > > > > >> > > > > >> > > > > >> > > > > >> > > > -- > >> > > > Open WebMail Project (http://openwebmail.org) > >> > > > > >> > > > > >> > > > ---------- Original Message ----------- > >> > > > From: Hans Lehmann > >> > > > To: gambas-user at lists.sourceforge.net > >> > > > Sent: Tue, 27 Jun 2017 15:51:19 +0200 > >> > > > Subject: Re: [Gambas-user] I need a hint on how to deleted > duplicate > >> > items > >> > > > in a array > >> > > > > >> > > > > Hello, > >> > > > > > >> > > > > look here: > >> > > > > > >> > > > > 8<---------------------------------------------------------- > >> > > > --------------------- > >> > > > > ---------- Public Function RemoveMultiple(aStringListe As > String[]) > >> > As > >> > > > String[] > >> > > > > Dim iCount As Integer Dim iIndex As Integer Dim sElement As > >> > String > >> > > > > > >> > > > > iIndex = 0 ' Initialisierung NICHT notwendig > >> > > > > While iIndex < aStringListe.Count > >> > > > > iCount = 0 > >> > > > > sElement = aStringListe[iIndex] > >> > > > > While aStringListe.Find(sElement) <> -1 > >> > > > > Inc iCount > >> > > > > aStringListe.Remove(aStringListe.Find(sElement)) > >> > > > > Wend > >> > > > > If iCount Mod 2 = 1 Then > >> > > > > aStringListe.Add(sElement, iIndex) > >> > > > > Inc iIndex > >> > > > > Endif ' iCount Mod 2 = 1 ? > >> > > > > Wend > >> > > > > > >> > > > > Return aStringListe > >> > > > > > >> > > > > End ' RemoveMultiple(...) > >> > > > > 8<---------------------------------------------------------- > >> > > > --------------------- > >> > > > > ---------- > >> > > > > > >> > > > > Hans > >> > > > > gambas-buch.de > >> > > > > > >> > > > > ------------------------------------------------------------ > >> > > > ------------------ > >> > > > > Check out the vibrant tech community on one of the world's most > >> > > > > engaging tech sites, 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 ------- > >> > > > > >> > > > > >> > > > ------------------------------------------------------------ > >> > > > ------------------ > >> > > > Check out the vibrant tech community on one of the world's most > >> > > > engaging tech sites, 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 ------- > >> > > >> > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, 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. From d4t4full at ...626... Fri Jun 30 14:32:50 2017 From: d4t4full at ...626... (ML) Date: Fri, 30 Jun 2017 09:32:50 -0300 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> Message-ID: On 30/06/17 08:20, Fernando Cabral wrote: > 2017-06-30 7:44 GMT-03:00 Fabien Bodard : >> The best way is the nando one ... at least for gambas. >> As you have not to matter about what is the index value or the order, >> the walk ahead option is the better. >> Then Fernando ... for big, big things... I think you need to use a DB. >> Or a native language.... maybe a sqlite memory structure can be good. > Fabien, since this is a one-time only thing, I don't think I'd be > better off witha database. > Basically, I read a text file an then break it down into words, > sentences and paragraphs. > Next I count the items in each array (words, sentences paragraphs). > Array.count works wonderfully. > After that, have to eliminate the duplicate words (Array.words). But > in doing it, al also have to count how many times each word appeared. > Finally I sort the Array.Sentences and the Array.Paragraphs by size > (string.len()). The Array.WOrds are sorted by count + lenght. This is > all woring good. > So, my quest is for the fastest way do eliminate the words duplicates > while I count them. > For the time being, here is a working solution based on system' s sort > | uniq: > Here is one of the versions I have been using: > Exec ["/usr/bin/uniq", "Unsorted.txt", "Sorted.srt2"] Wait > Exec ["/usr/bin/uniq", "-ci", "SortedWords.srt2", SortedWords.srt3"] Wait > Exec ["/usr/bin/sort", "-bnr", SortedWords.srt3] To UniqWords > WordArray = split (UniqWords, "\n") > So, I end up with the result I want. It's effective. Now, it would be > more elegant If I could do the same with Gambas. Of course, the > sorting would be easy with the builting WordArray.sort (). > But how about te '"/usr/bin/uniq", "-ci" ...' part? > Regards > - fernando Not tried, but for the duplicate count, what about iterating the word array copying each word to a keyed collection? For any new given word, the value (item) added would be 1 (integer), and the key would be UCase(word$). If an error happens, the handler would just Inc the keyed Item value. So (please note my syntax may be slightly off, especially in If Error): Public Function CountWordsInArray(sortedWordArray As String[]) As Collection Dim wordCount As New Collection Dim currentWord As String = Null For Each currentWord In sortedWordArray Try wordCount.Add(1, UCase$(currentWord)) If Error Then Inc wordCount(UCase$(currentWord)) Error.Clear 'Is this needed, or even correct? End If Next Return (wordCollection) End The returned collection should be sorted if the array was, and for each item you will have a numeric count as the item and the word as the key. Hope it helps, zxMarce. From mckaygerhard at ...626... Fri Jun 30 14:41:49 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 30 Jun 2017 08:41:49 -0400 Subject: [Gambas-user] any way to convert Result to Collection more faster than copy? In-Reply-To: <20170630173954.137fab15d2a48bebfc62cced@...626...> References: <20170630173954.137fab15d2a48bebfc62cced@...626...> Message-ID: i get more than 30 minutes, due i must parse to a low end machine, not to your 4 cores, 16Gb ram super power machine.. i'm taking about a 1G ram and single core 1,6GHz atom cpu i need to convert from Result/cursor to other due the problem of the odbc lack of cursor/count .. i thinking about use a sqlite memory structure, how can i force it? documentation said "If Name is null, then a memory database is opened." for sqlite.. so if i used a memory structure can be a good idea? *tested yesterday took about 10 minutes but i dont know if i have a problem in my gambas installation!* Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-06-30 4:09 GMT-04:00 adamnt42 at ...626... : > On Thu, 29 Jun 2017 18:57:29 -0400 > PICCORO McKAY Lenz wrote: > > > can i convert directly or more faster than copy each row, a Result from > > database to a collection or a VArian matrix? > > > > i'm taking about 200.000 rows in a result... the problem its that the > odbc > > db object support only cursor with forward only.. > > > > so with a matrix or a collection i cant emulate the cursor behaviour > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > Interesting. > > Well the row by row copy is how we do it here. I added some quick timer > Prints to a program we run each day to verify that the > database updates done overnight were "clean". > The data loaded is a fairly complex join of several tables, the > transactional table is 754,756 rows today and the master table is 733,723 > rows long and the transactional data is compared to the master data to test > a set of possible inconsistencies. ( The actual query returned a set of the > transaction and master records that were actioned overnight - this > generally returns about 5,000 to 10,000 rows - so I jigged it to return the > pairs that were not actioned overnight thereby getting row counts of the > sizes you are talking about.) So the jigged query just returned 556,000 > rows. Here's the timing output. > > 17:05:59:706 Connecting to DB > 17:06:00:202 Loading Data <---- so 406 mSec to establish the db > connection > 17:06:31:417 556502 rows <---- so 31,215 mSec to execute the query > and return the result > 17:06:31:417 Unmarshalling result started > 17:06:44:758 Unmarshalling completed 556502 rows processed <--- so > 13,341 mSec to unmarshall the result into an array of structs > > So, it took roughly 31 seconds to execute the query and return the result > of half a million rows. > To unmarshall that result into the array took just over 13 seconds. The > unmarshalling is fairly well a straight field by field copy. > (Also I must add, I ran this on a local db copy on my old steam driven > laptop, 32 bits and about 1G of memory.) > > That's about 42 mSec unmarshalling time per row. > I don't think that is too bad. From my perspective it is the query that is > eating up my life, not the unmarshalling. > > What sort of times to you get? > > b > > (p.s. the query has been optimised until its' eyes bled. ) > > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, 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 Jun 30 15:05:24 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 30 Jun 2017 15:05:24 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> Message-ID: <20170630130524.GA568@...3600...> On Fri, 30 Jun 2017, Fernando Cabral wrote: > 2017-06-30 7:44 GMT-03:00 Fabien Bodard : > > > The best way is the nando one ... at least for gambas. > > > > As you have not to matter about what is the index value or the order, > > the walk ahead option is the better. > > > > > > Then Fernando ... for big, big things... I think you need to use a DB. > > Or a native language.... maybe a sqlite memory structure can be good. > > > > Fabien, since this is a one-time only thing, I don't think I'd be better > off witha database. > Basically, I read a text file an then break it down into words, sentences > and paragraphs. > Next I count the items in each array (words, sentences paragraphs). > Array.count works wonderfully. > After that, have to eliminate the duplicate words (Array.words). But in > doing it, al also have to count > how many times each word appeared. > > Finally I sort the Array.Sentences and the Array.Paragraphs by size > (string.len()). The Array.WOrds are > sorted by count + lenght. This is all woring good. > > So, my quest is for the fastest way do eliminate the words duplicates while > I count them. > For the time being, here is a working solution based on system' s sort | > uniq: > > Here is one of the versions I have been using: > > Exec ["/usr/bin/uniq", "Unsorted.txt", "Sorted.srt2"] Wait > Exec ["/usr/bin/uniq", "-ci", "SortedWords.srt2", SortedWords.srt3"] Wait > Exec ["/usr/bin/sort", "-bnr", SortedWords.srt3] To UniqWords > Are those temporary files? You can avoid those by piping your data into the processes and reading their output directly. Otherwise the Temp$() function gives you better temporary files. > WordArray = split (UniqWords, "\n") > > So, I end up with the result I want. It's effective. Now, it would be more > elegant If I could do the same > with Gambas. Of course, the sorting would be easy with the builting > WordArray.sort (). > But how about te '"/usr/bin/uniq", "-ci" ...' part? > I feel like my other mail answered this, but I can give you another version of that routine (which I said I would leave as an exercise to you): ' Remove duplicates in an array like "uniq -ci". String comparison is ' case insensitive. The i-th entry in the returned array counts how many ' times aStrings[i] (in the de-duplicated array) was present in the input. ' The data in ~aStrings~ is overridden. Assumes the array is sorted. Private Function Uniq(aStrings As String[]) As Integer[] Dim iSrc, iLast As Integer Dim aCount As New Integer[](aStrings.Count) If Not aStrings.Count Then Return [] iLast = 0 aCount[iLast] = 1 For iSrc = 1 To aStrings.Max If String.Comp(aStrings[iSrc], aStrings[iLast], gb.IgnoreCase) Then Inc iLast aStrings[iLast] = aStrings[iSrc] aCount[iLast] = 1 Else Inc aCount[iLast] Endif Next ' Now shrink the arrays to the memory they actually need aStrings.Resize(iLast + 1) aCount.Resize(iLast + 1) Return aCount End What, in my opinion, is at least theoretically better here than the other proposed solutions is that it runs in linear time, while nando's is quadratic[*]. (Of course, if you sort beforehand, it will become n*log(n), which is still better than quadratic.) Attached is a test script with some words. It runs the sort + uniq utilities first and then Array.Sort() + the Uniq() function above. The program then prints the *diff* between the two outputs. I get an empty diff, meaning that my Gambas routines produce exactly the same output as the shell utilities. Regards, Tobi [*] He calls array functions Add() and Find() inside a For loop that runs over an array of size n. Adding elements to an array or searching an array have themselves worst-case linear complexity, giving quadratic overall. My implementation reserves some more space in advance to avoid calling Add() in a loop. Since the array is sorted, we can go without Find(), too. Actually, as you may know, adding an element to the end of an array can be implemented in amortized constant time (as C++'s std::vector does), by wasting space, but AFAICS Gambas doesn't do this, but I could be wrong. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- #!/usr/bin/gbs3 Private Const WORDS As String = "" "Are those temporary files You can avoid those by piping your data into the " "processes and reading their output directly Otherwise the Temp function " "gives you better temporary files " "Fabien since this is a onetime only thing I dont think Id be better " "off witha database Basically I read a text file an then break it down into " "words sentences and paragraphs Next I count the items in each array " "words sentences paragraphs Arraycount works wonderfully After that " "have to eliminate the duplicate words Arraywords But in doing it al " "also have to count how many times each word appeared" Public Sub Main() Dim aStrings As String[] Dim aCount As Integer[] Dim iInd As Integer Dim sOut As String Dim sTemp As String = Temp$() Dim sTemp2 As String = Temp$() aStrings = Split(WORDS, " ") File.Save(sTemp, aStrings.Join("\n")) Exec ["sort", sTemp] To sOut File.Save(sTemp, sOut) Exec ["uniq", "-ci", sTemp] To sOut File.Save(sTemp, sOut) aStrings.Sort() aCount = Uniq(aStrings) sOut = "" For iInd = 0 To aStrings.Max sOut &= Subst$("&1 &2\n", Format$(aCount[iInd], "######0"), aStrings[iInd]) Next File.Save(sTemp2, sOut) Exec ["diff", "-u", sTemp, sTemp2] Wait End ' Remove duplicates in an array like "uniq -ci". String comparison is ' case insensitive. The i-th entry in the returned array counts how many ' times aStrings[i] (in the de-duplicated array) was present in the input. ' The data in ~aStrings~ is overridden. Assumes the array is sorted. Private Function Uniq(aStrings As String[]) As Integer[] Dim iSrc, iLast As Integer Dim aCount As New Integer[](aStrings.Count) If Not aStrings.Count Then Return [] iLast = 0 aCount[iLast] = 1 For iSrc = 1 To aStrings.Max If String.Comp(aStrings[iSrc], aStrings[iLast], gb.IgnoreCase) Then Inc iLast aStrings[iLast] = aStrings[iSrc] aCount[iLast] = 1 Else Inc aCount[iLast] Endif Next ' Now shrink the arrays to the memory they actually need aStrings.Resize(iLast + 1) aCount.Resize(iLast + 1) Return aCount End From bagonergi at ...626... Fri Jun 30 16:57:56 2017 From: bagonergi at ...626... (Gianluigi) Date: Fri, 30 Jun 2017 16:57:56 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: <20170630130524.GA568@...3600...> References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> <20170630130524.GA568@...3600...> Message-ID: What was wrong in my example which meant this? Public Sub Main() Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", "E", "E", "F"] Dim s As String For Each s In ReturnArrays(sSort, 0) Print s Next For Each s In ReturnArrays(sSort, -1) Print s Next End Private Function ReturnArrays(SortedArray As String[], withNumber As Boolean) As String[] Dim sSingle, sWithNumber As New String[] Dim i, n As Integer For i = 0 To SortedArray.Max ' You can avoid with Tobias's trick (For i = 1 To ...) If i < SortedArray.Max Then If SortedArray[i] = SortedArray[i + 1] Then Inc n Else Inc n sSingle.Push(SortedArray[i]) sWithNumber.Push(n & SortedArray[i]) n = 0 Endif Endif Next Inc n sSingle.Push(SortedArray[SortedArray.Max]) sWithNumber.Push(n & SortedArray[SortedArray.Max]) If withNumber Then Return sWithNumber Else Return sSingle Endif End Regards Gianluigi 2017-06-30 15:05 GMT+02:00 Tobias Boege : > On Fri, 30 Jun 2017, Fernando Cabral wrote: > > 2017-06-30 7:44 GMT-03:00 Fabien Bodard : > > > > > The best way is the nando one ... at least for gambas. > > > > > > As you have not to matter about what is the index value or the order, > > > the walk ahead option is the better. > > > > > > > > > Then Fernando ... for big, big things... I think you need to use a DB. > > > Or a native language.... maybe a sqlite memory structure can be good. > > > > > > > Fabien, since this is a one-time only thing, I don't think I'd be better > > off witha database. > > Basically, I read a text file an then break it down into words, sentences > > and paragraphs. > > Next I count the items in each array (words, sentences paragraphs). > > Array.count works wonderfully. > > After that, have to eliminate the duplicate words (Array.words). But in > > doing it, al also have to count > > how many times each word appeared. > > > > Finally I sort the Array.Sentences and the Array.Paragraphs by size > > (string.len()). The Array.WOrds are > > sorted by count + lenght. This is all woring good. > > > > So, my quest is for the fastest way do eliminate the words duplicates > while > > I count them. > > For the time being, here is a working solution based on system' s sort | > > uniq: > > > > Here is one of the versions I have been using: > > > > Exec ["/usr/bin/uniq", "Unsorted.txt", "Sorted.srt2"] Wait > > Exec ["/usr/bin/uniq", "-ci", "SortedWords.srt2", SortedWords.srt3"] > Wait > > Exec ["/usr/bin/sort", "-bnr", SortedWords.srt3] To UniqWords > > > > Are those temporary files? You can avoid those by piping your data into the > processes and reading their output directly. Otherwise the Temp$() function > gives you better temporary files. > > > WordArray = split (UniqWords, "\n") > > > > So, I end up with the result I want. It's effective. Now, it would be > more > > elegant If I could do the same > > with Gambas. Of course, the sorting would be easy with the builting > > WordArray.sort (). > > But how about te '"/usr/bin/uniq", "-ci" ...' part? > > > > I feel like my other mail answered this, but I can give you another version > of that routine (which I said I would leave as an exercise to you): > > ' Remove duplicates in an array like "uniq -ci". String comparison is > ' case insensitive. The i-th entry in the returned array counts how many > ' times aStrings[i] (in the de-duplicated array) was present in the > input. > ' The data in ~aStrings~ is overridden. Assumes the array is sorted. > Private Function Uniq(aStrings As String[]) As Integer[] > Dim iSrc, iLast As Integer > Dim aCount As New Integer[](aStrings.Count) > > If Not aStrings.Count Then Return [] > iLast = 0 > aCount[iLast] = 1 > For iSrc = 1 To aStrings.Max > If String.Comp(aStrings[iSrc], aStrings[iLast], gb.IgnoreCase) Then > Inc iLast > aStrings[iLast] = aStrings[iSrc] > aCount[iLast] = 1 > Else > Inc aCount[iLast] > Endif > Next > > ' Now shrink the arrays to the memory they actually need > aStrings.Resize(iLast + 1) > aCount.Resize(iLast + 1) > Return aCount > End > > What, in my opinion, is at least theoretically better here than the other > proposed solutions is that it runs in linear time, while nando's is > quadratic[*]. (Of course, if you sort beforehand, it will become n*log(n), > which is still better than quadratic.) > > Attached is a test script with some words. It runs the sort + uniq > utilities > first and then Array.Sort() + the Uniq() function above. The program then > prints the *diff* between the two outputs. I get an empty diff, meaning > that > my Gambas routines produce exactly the same output as the shell utilities. > > Regards, > Tobi > > [*] He calls array functions Add() and Find() inside a For loop that runs > over an array of size n. Adding elements to an array or searching an > array have themselves worst-case linear complexity, giving quadratic > overall. My implementation reserves some more space in advance to > avoid calling Add() in a loop. Since the array is sorted, we can go > without Find(), too. Actually, as you may know, adding an element to > the end of an array can be implemented in amortized constant time > (as C++'s std::vector does), by wasting space, but AFAICS Gambas > doesn't do this, but I could be wrong. > > -- > "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... Fri Jun 30 17:21:49 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 30 Jun 2017 17:21:49 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> <20170630130524.GA568@...3600...> Message-ID: <20170630152148.GB568@...3600...> On Fri, 30 Jun 2017, Gianluigi wrote: > What was wrong in my example which meant this? > > Public Sub Main() > > Dim sSort As String[] = ["A", "B", "B", "B", "C", "D", "D", "E", "E", > "E", "E", "F"] > Dim s As String > > For Each s In ReturnArrays(sSort, 0) > Print s > Next > For Each s In ReturnArrays(sSort, -1) > Print s > Next > > End > > Private Function ReturnArrays(SortedArray As String[], withNumber As > Boolean) As String[] > > Dim sSingle, sWithNumber As New String[] > Dim i, n As Integer > > For i = 0 To SortedArray.Max > ' You can avoid with Tobias's trick (For i = 1 To ...) > If i < SortedArray.Max Then > If SortedArray[i] = SortedArray[i + 1] Then > Inc n > Else > Inc n > sSingle.Push(SortedArray[i]) > sWithNumber.Push(n & SortedArray[i]) > n = 0 > Endif > Endif > Next > Inc n > sSingle.Push(SortedArray[SortedArray.Max]) > sWithNumber.Push(n & SortedArray[SortedArray.Max]) > If withNumber Then > Return sWithNumber > Else > Return sSingle > Endif > > End > I wouldn't say there is anything *wrong* with it, but it also has quadratic worst-case running time. You use String[].Push() which is just another name for String[].Add(). Adding an element to an array (the straightforward way) is done by extending the space of that array by one further element and storing the value there. But extending the space of an array could potentially require you to copy the whole array somewhere else (where you have enough free memory at the end of the array to enlarge it). Doing worst-case analysis, we have to assume that this bad case always occurs. If you fill an array with n values, e.g. Dim a As New Integer[] For i = 1 To n a.Add(i) Next then you loop n times and in the i-th iteration there will be already i-many elements in your array. Adding one further element to it will, in the worst case, require i copy operations to be performed. 9-year-old C.F. Gauss will tell you that the amount of store operations is about n^2. And your function does two jobs simultaneously but only returns the result of one of the jobs. The output you get is only worth half the time you spent. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Fri Jun 30 17:44:04 2017 From: bagonergi at ...626... (Gianluigi) Date: Fri, 30 Jun 2017 17:44:04 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: <20170630152148.GB568@...3600...> References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> <20170630130524.GA568@...3600...> <20170630152148.GB568@...3600...> Message-ID: 2017-06-30 17:21 GMT+02:00 Tobias Boege : > > I wouldn't say there is anything *wrong* with it, but it also has quadratic > worst-case running time. You use String[].Push() which is just another name > for String[].Add(). Adding an element to an array (the straightforward way) > is done by extending the space of that array by one further element and > storing the value there. But extending the space of an array could > potentially > require you to copy the whole array somewhere else (where you have enough > free memory at the end of the array to enlarge it). Doing worst-case > analysis, > we have to assume that this bad case always occurs. > > If you fill an array with n values, e.g. > > Dim a As New Integer[] > For i = 1 To n > a.Add(i) > Next > > then you loop n times and in the i-th iteration there will be already > i-many elements in your array. Adding one further element to it will, > in the worst case, require i copy operations to be performed. 9-year-old > C.F. Gauss will tell you that the amount of store operations is about n^2. > > Tobias you are always kind and thank you very much. Is possible for you to explain this more elementarily, for me (a poorly educated boy :-) ) > And your function does two jobs simultaneously but only returns the result > of one of the jobs. The output you get is only worth half the time you > spent. > > I did two functions in one, just to save space, this is a simple example. :-) Regards Gianluigi From bagonergi at ...626... Fri Jun 30 17:58:36 2017 From: bagonergi at ...626... (Gianluigi) Date: Fri, 30 Jun 2017 17:58:36 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> <20170630130524.GA568@...3600...> <20170630152148.GB568@...3600...> Message-ID: Sorry Tobias, other explanations are not necessary. I would not be able to understand :-( I accept what you already explained to me as a dogma and I will try to put it into practice by copying your code :-). Thanks again. Gianluigi 2017-06-30 17:44 GMT+02:00 Gianluigi : > > 2017-06-30 17:21 GMT+02:00 Tobias Boege : > >> >> I wouldn't say there is anything *wrong* with it, but it also has >> quadratic >> worst-case running time. You use String[].Push() which is just another >> name >> for String[].Add(). Adding an element to an array (the straightforward >> way) >> is done by extending the space of that array by one further element and >> storing the value there. But extending the space of an array could >> potentially >> require you to copy the whole array somewhere else (where you have enough >> free memory at the end of the array to enlarge it). Doing worst-case >> analysis, >> we have to assume that this bad case always occurs. >> >> If you fill an array with n values, e.g. >> >> Dim a As New Integer[] >> For i = 1 To n >> a.Add(i) >> Next >> >> then you loop n times and in the i-th iteration there will be already >> i-many elements in your array. Adding one further element to it will, >> in the worst case, require i copy operations to be performed. 9-year-old >> C.F. Gauss will tell you that the amount of store operations is about n^2. >> >> > Tobias you are always kind and thank you very much. > Is possible for you to explain this more elementarily, for me (a poorly > educated boy :-) ) > > > >> And your function does two jobs simultaneously but only returns the result >> of one of the jobs. The output you get is only worth half the time you >> spent. >> >> > I did two functions in one, just to save space, this is a simple example. > :-) > > Regards > Gianluigi > From bagonergi at ...626... Fri Jun 30 20:10:18 2017 From: bagonergi at ...626... (Gianluigi) Date: Fri, 30 Jun 2017 20:10:18 +0200 Subject: [Gambas-user] I need a hint on how to deleted duplicate items in a array In-Reply-To: References: <20170627142416.M9094@...951...> <20170627155344.M57287@...951...> <20170630130524.GA568@...3600...> <20170630152148.GB568@...3600...> Message-ID: Just for curiosity, on my computer, my function (double) processes 10 million strings (first and last name) in about 3 seconds. Very naif measurement using Timers and a limited number of names and surnames eg Willy Weber has come up 11051 times To demonstrate the goodness of Tobias' arguments, about 1 million 3 cents a second I really understood (I hope) what he wanted to say. Sorry my response times but today my modem works worse than my brain. Regards Gianluigi 2017-06-30 17:58 GMT+02:00 Gianluigi : > Sorry Tobias, > other explanations are not necessary. > I would not be able to understand :-( > I accept what you already explained to me as a dogma and I will try to put > it into practice by copying your code :-). > > Thanks again. > > Gianluigi > > 2017-06-30 17:44 GMT+02:00 Gianluigi : > >> >> 2017-06-30 17:21 GMT+02:00 Tobias Boege : >> >>> >>> I wouldn't say there is anything *wrong* with it, but it also has >>> quadratic >>> worst-case running time. You use String[].Push() which is just another >>> name >>> for String[].Add(). Adding an element to an array (the straightforward >>> way) >>> is done by extending the space of that array by one further element and >>> storing the value there. But extending the space of an array could >>> potentially >>> require you to copy the whole array somewhere else (where you have enough >>> free memory at the end of the array to enlarge it). Doing worst-case >>> analysis, >>> we have to assume that this bad case always occurs. >>> >>> If you fill an array with n values, e.g. >>> >>> Dim a As New Integer[] >>> For i = 1 To n >>> a.Add(i) >>> Next >>> >>> then you loop n times and in the i-th iteration there will be already >>> i-many elements in your array. Adding one further element to it will, >>> in the worst case, require i copy operations to be performed. 9-year-old >>> C.F. Gauss will tell you that the amount of store operations is about >>> n^2. >>> >>> >> Tobias you are always kind and thank you very much. >> Is possible for you to explain this more elementarily, for me (a poorly >> educated boy :-) ) >> >> >> >>> And your function does two jobs simultaneously but only returns the >>> result >>> of one of the jobs. The output you get is only worth half the time you >>> spent. >>> >>> >> I did two functions in one, just to save space, this is a simple example. >> :-) >> >> Regards >> Gianluigi >> > >