From mnaltrogge at web.de Sun Apr 1 18:32:09 2018 From: mnaltrogge at web.de (Michael N. Altrogge) Date: Sun, 1 Apr 2018 18:32:09 +0200 Subject: [Gambas-user] Behaviour FINALLY CATCH Message-ID: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> I have a problem while using Finally / Catch ... The finally part is ONLY executed if empty, even the entry is a comment. This will NOT work: /Public Function fncCheckDigit() As Integer ??? ... ??? intZahl= intWert1 / 0 ??? ... Finally???????????????????? ' Aufr?umen nach Fehler ??? 'Blah blah blubb Catch?????????????????????? ' Fehlerbahndlung ??? For Each strError In Error.Backtrace ??????? Debug strError & gb.NewLine ??? Next End / This will work: /Public Function fncCheckDigit() As Integer ??? ... ??? intZahl= intWert1 / 0 ??? ... Finally???????????????????? ' Aufr?umen nach Fehler Catch?????????????????????? ' Fehlerbahndlung ??? For Each strError In Error.Backtrace ??????? Debug strError & gb.NewLine ??? Next End // /Is this the expected behaviour? / / [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=4.13.0-37-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=de_DE.UTF-8 Memory=3390M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zehciQsGYq,guid=37167106bf9fbdc4c1398cd45ac0eaa1 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_AUTOSTART_ID=10bf101224edc7a02c152259241852434300000028010007 DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=de_DE GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=de_DE.UTF-8 LANGUAGE=de_DE LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/2801,unix/:/tmp/.ICE-unix/2801 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=2860 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Apr 1 18:41:18 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 1 Apr 2018 18:41:18 +0200 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> Message-ID: <888ceda1-ffab-a232-da9b-81a2eb02770f@gmail.com> Le 01/04/2018 ? 18:32, Michael N. Altrogge a ?crit?: > I have a problem while using Finally / Catch ... > > The finally part is ONLY executed if empty, even the entry is a comment. > > > This will NOT work: > > /Public Function fncCheckDigit() As Integer > > ??? ... > > ??? intZahl= intWert1 / 0 > > ??? ... > > Finally???????????????????? ' Aufr?umen nach Fehler > ??? 'Blah blah blubb > > Catch?????????????????????? ' Fehlerbahndlung > ??? For Each strError In Error.Backtrace > ??????? Debug strError & gb.NewLine > ??? Next > > End > / > This will work: > > /Public Function fncCheckDigit() As Integer > > ??? ... > > ??? intZahl= intWert1 / 0 > > ??? ... > > Finally???????????????????? ' Aufr?umen nach Fehler > > Catch?????????????????????? ' Fehlerbahndlung > ??? For Each strError In Error.Backtrace > ??????? Debug strError & gb.NewLine > ??? Next > > End > // > /Is this the expected behaviour? > / > Sorry, I don't understand what you mean. If the FINALLY part is void, what do you expect him to do? -- Beno?t Minisini From bugtracker at gambaswiki.org Sun Apr 1 18:43:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 01 Apr 2018 16:43:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1285: Gambas IDE - Breakpoint can not be disabled during running project. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1285&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun Apr 1 18:43:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 01 Apr 2018 16:43:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1285: Gambas IDE - Breakpoint can not be disabled during running project. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1285&from=L21haW4- Comment #1 by Beno?t MINISINI: At the moment, you can't modify breakpoints while a program is running. It must be stopped before. The bug is in the IDE interface. From bugtracker at gambaswiki.org Sun Apr 1 18:55:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 01 Apr 2018 16:55:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1285: Gambas IDE - Breakpoint can not be disabled during running project. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1285&from=L21haW4- Comment #2 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/31193668a9dbf88cbf8883de2b637cc05fecb81a. Beno?t MINISINI changed the state of the bug to: Fixed. From mckaygerhard at gmail.com Sun Apr 1 19:08:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 1 Apr 2018 13:08:00 -0400 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: <888ceda1-ffab-a232-da9b-81a2eb02770f@gmail.com> References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> <888ceda1-ffab-a232-da9b-81a2eb02770f@gmail.com> Message-ID: benoit, its a bug, if a new line with a comment are in the finally, a bug will raised Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-01 12:41 GMT-04:00 Beno?t Minisini : > Le 01/04/2018 ? 18:32, Michael N. Altrogge a ?crit : > >> I have a problem while using Finally / Catch ... >> >> The finally part is ONLY executed if empty, even the entry is a comment. >> >> >> This will NOT work: >> >> /Public Function fncCheckDigit() As Integer >> >> ... >> >> intZahl= intWert1 / 0 >> >> ... >> >> Finally ' Aufr?umen nach Fehler >> 'Blah blah blubb >> >> Catch ' Fehlerbahndlung >> For Each strError In Error.Backtrace >> Debug strError & gb.NewLine >> Next >> >> End >> / >> This will work: >> >> /Public Function fncCheckDigit() As Integer >> >> ... >> >> intZahl= intWert1 / 0 >> >> ... >> >> Finally ' Aufr?umen nach Fehler >> >> Catch ' Fehlerbahndlung >> For Each strError In Error.Backtrace >> Debug strError & gb.NewLine >> Next >> >> End >> // >> /Is this the expected behaviour? >> / >> >> > Sorry, I don't understand what you mean. If the FINALLY part is void, what > do you expect him to do? > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnaltrogge at web.de Sun Apr 1 19:18:25 2018 From: mnaltrogge at web.de (Michael Altrogge) Date: Sun, 1 Apr 2018 19:18:25 +0200 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> <888ceda1-ffab-a232-da9b-81a2eb02770f@gmail.com> Message-ID: An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sun Apr 1 19:20:44 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 1 Apr 2018 13:20:44 -0400 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> <888ceda1-ffab-a232-da9b-81a2eb02770f@gmail.com> Message-ID: well same error with different behaviour, in my gambas happened as i said Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-01 13:18 GMT-04:00 Michael Altrogge : > > No, the error is ... and is only raised if the FINALLY > part is empty ... > > > *Gesendet:* Sonntag, 01. April 2018 um 19:08 Uhr > *Von:* "PICCORO McKAY Lenz" > *An:* "Gambas Mailing List" > *Betreff:* Re: [Gambas-user] Behaviour FINALLY CATCH > benoit, its a bug, if a new line with a comment are in the finally, a bug > will raised > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-04-01 12:41 GMT-04:00 Beno?t Minisini : >> >> Le 01/04/2018 ? 18:32, Michael N. Altrogge a ?crit : >>> >>> I have a problem while using Finally / Catch ... >>> >>> The finally part is ONLY executed if empty, even the entry is a comment. >>> >>> >>> This will NOT work: >>> >>> /Public Function fncCheckDigit() As Integer >>> >>> ... >>> >>> intZahl= intWert1 / 0 >>> >>> ... >>> >>> Finally ' Aufr?umen nach Fehler >>> 'Blah blah blubb >>> >>> Catch ' Fehlerbahndlung >>> For Each strError In Error.Backtrace >>> Debug strError & gb.NewLine >>> Next >>> >>> End >>> / >>> This will work: >>> >>> /Public Function fncCheckDigit() As Integer >>> >>> ... >>> >>> intZahl= intWert1 / 0 >>> >>> ... >>> >>> Finally ' Aufr?umen nach Fehler >>> >>> Catch ' Fehlerbahndlung >>> For Each strError In Error.Backtrace >>> Debug strError & gb.NewLine >>> Next >>> >>> End >>> // >>> /Is this the expected behaviour? >>> / >>> >> >> >> Sorry, I don't understand what you mean. If the FINALLY part is void, >> what do you expect him to do? >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net > > -------------------------------------------------- This is the Gambas > Mailing List: https://lists.gambas-basic.org/listinfo/user Search the > list: https://lists.gambas-basic.org/cgi-bin/search.cgi Hosted by > https://www.hostsharing.net > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Apr 1 22:15:48 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 1 Apr 2018 22:15:48 +0200 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> Message-ID: <3ae7909b-a264-4df0-f930-458f11a8d780@deganius.de> Run this code and you will see everything is working as expected, whether you comment out or delete 'Message("finally done")': --8<-------------------------------------------------------------- Private Sub TestFinally() Dim f As Float f = 1 / 0 Finally Message("finally done") Catch Message("Error: " & Error.Text) End --8<-------------------------------------------------------------- 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 bagonergi at gmail.com Sun Apr 1 22:22:12 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 1 Apr 2018 22:22:12 +0200 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: <3ae7909b-a264-4df0-f930-458f11a8d780@deganius.de> References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> <3ae7909b-a264-4df0-f930-458f11a8d780@deganius.de> Message-ID: Here work well ------------------------------------------ ' Gambas module file Public Sub Main() fncCheckDigit1() 'row 6 fncCheckDigit2() 'row 7 End Public Function fncCheckDigit1() As Integer Dim intZahl, intWert As Integer Dim strError As String intZahl = intWert / 0 'row 17 Finally ' Aufr?umen nach Fehler 'Blah blah blubb Print "Pippo" Catch ' Fehlerbahndlung For Each strError In Error.Backtrace Debug strError & gb.NewLine 'row 24 Next End 'This will work: Public Function fncCheckDigit2() As Integer Dim intZahl, intWert As Integer Dim strError As String intZahl = intWert / 0 'row 36 Finally ' Aufr?umen nach Fehler Print "Pluto" Catch ' Fehlerbahndlung For Each strError In Error.Backtrace Debug strError & gb.NewLine 'row 42 Next End --------------------------------------------- Output in console: --------------------------------------------- Pippo Main.fncCheckDigit1.24: Main.fncCheckDigit1.17 Main.fncCheckDigit1.24: Main.Main.6 Pluto Main.fncCheckDigit2.42: Main.fncCheckDigit2.36 Main.fncCheckDigit2.42: Main.Main.7 ---------------------------------------------- Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mnaltrogge at web.de Sun Apr 1 23:27:49 2018 From: mnaltrogge at web.de (Michael Altrogge) Date: Sun, 1 Apr 2018 23:27:49 +0200 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: <3ae7909b-a264-4df0-f930-458f11a8d780@deganius.de> References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> <3ae7909b-a264-4df0-f930-458f11a8d780@deganius.de> Message-ID: An HTML attachment was scrubbed... URL: From shannon at inflecto.org Mon Apr 2 00:00:52 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sun, 1 Apr 2018 17:00:52 -0500 Subject: [Gambas-user] xmlreader Gambas 3.10.0 Message-ID: ? I can't read a xml file with comment(s) when XmlReader reads a comment line then the read method goes to the end of the file and EOF is true It looks to be the same issue reported here back in 2015 https://lists.gambas-basic.org/pipermail/user/2016-January/056378.html is there anyway around this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Mon Apr 2 03:11:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 01:11:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1285: Gambas IDE - Breakpoint can not be disabled during running project. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1285&from=L21haW4- Comment #3 by Olivier CRUILLES: Works as expected now. Fixed. Thank you Olivier From bugtracker at gambaswiki.org Mon Apr 2 11:16:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 09:16:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1280: Breakpoint can't work when module or class has renamed. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1280&from=L21haW4- Comment #4 by Beno?t MINISINI: Oops. Fixed in commit https://gitlab.com/gambas/gambas/commit/9969c3c5284b67741e46feb24071b391bbaed896. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Mon Apr 2 11:18:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 09:18:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1284: Can't convert G2 to G3 project In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1284&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Apr 2 11:39:51 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 09:39:51 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1284: Can't convert G2 to G3 project In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1284&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/a2eec9ea2ac25e829a7abc3a6a9f204f85408689. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Mon Apr 2 11:58:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 09:58:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Petro SAVCHUK reported a new bug. Summary ------- Gambas info is blocked by IP Type : Bug Priority : Medium Gambas version : 3.10 Product : Wiki Description ----------- Hi, I can't get any info from wiki because my ip is blocked. What this mean, Ukraine is blocked? This page gambaswiki.org/bugtracker - is also blocked for me, so I must use a VPN. When it will be fixed and will it be? First screenshot: https://ibb.co/cWyAqS Second screenshot: https://ibb.co/kbJUH7 From bugtracker at gambaswiki.org Mon Apr 2 11:59:59 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 09:59:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Petro SAVCHUK added an attachment: 2018-04-02-125541_1280x1024_scrot.png From bugtracker at gambaswiki.org Mon Apr 2 12:00:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 10:00:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Petro SAVCHUK added an attachment: 2018-04-02-122718_1280x1024_scrot.png From bugtracker at gambaswiki.org Mon Apr 2 12:13:36 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 10:13:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Comment #1 by Beno?t MINISINI: The wiki is hosted by the company where I work, and they have blocked all incoming traffic coming from Ukraine because of recurring attacks. I asked if it was possible to let traffic coming from Ukraine just reach the wiki server, but I didn't have a response yet. From bugtracker at gambaswiki.org Mon Apr 2 13:22:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 11:22:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1278: When break, breakpoint list alway show/selected automatic In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1278&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Apr 2 13:24:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 11:24:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1278: When break, breakpoint list alway show/selected automatic In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1278&from=L21haW4- Comment #1 by Beno?t MINISINI: Is it better with commit https://gitlab.com/gambas/gambas/commit/362aa289c039d2a03821517bbd3cccd185573e17 ? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From chrisml at deganius.de Mon Apr 2 14:21:08 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 2 Apr 2018 14:21:08 +0200 Subject: [Gambas-user] Behaviour FINALLY CATCH In-Reply-To: References: <63796768-4ee1-0f5d-3dd8-3cd440872ca5@web.de> <3ae7909b-a264-4df0-f930-458f11a8d780@deganius.de> Message-ID: Am 01.04.2018 um 23:27 schrieb Michael Altrogge: > Ich verstehs nicht ... No one else does ;-) To be sure always post a working piece of code and test it by yourself before posting. That may help a lot ... ;-) Happy easter 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 chrisml at deganius.de Mon Apr 2 14:22:06 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 2 Apr 2018 14:22:06 +0200 Subject: [Gambas-user] xmlreader Gambas 3.10.0 In-Reply-To: References: Message-ID: Am 02.04.2018 um 00:00 schrieb Shannon Kuchler: > I can't read a xml file with comment(s) // ... > is there anyway around this? No one can look at it if you do not provide a code example. 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 antonio.j.teixeira at gmail.com Mon Apr 2 18:38:15 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Mon, 2 Apr 2018 17:38:15 +0100 Subject: [Gambas-user] External library events Message-ID: Hi everyone, I am for the first time using external libraries, I have an external library that need to raise events on my gambas program. At this moment i already have some functions declared and I get errors from that functions. Now I need to for some way declare the events so the external library raise them. Can someone help me please? ?Thanks in advance? ?Best Regards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Mon Apr 2 18:49:18 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 2 Apr 2018 18:49:18 +0200 Subject: [Gambas-user] External library events In-Reply-To: References: Message-ID: <20180402164918.GB944@highrise.localdomain> On Mon, 02 Apr 2018, Antonio Teixeira wrote: > Hi everyone, > > I am for the first time using external libraries, I have an external > library that need to raise events on my gambas program. > > At this moment i already have some functions declared and I get errors from > that functions. > Now I need to for some way declare the events so the external library raise > them. > Can someone help me please? > Are we talking about external Gambas libraries (written in Gambas) or external libraries as in .so files? Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From shannon at inflecto.org Mon Apr 2 21:52:41 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Mon, 2 Apr 2018 14:52:41 -0500 Subject: [Gambas-user] xmlreader Gambas 3.10.0 Message-ID: In this code as soon as XmlReader encounters a comment line in a xml file it goes to end of file and stops the loop any ideas why? ----------------------------------------------------------------------------------------------- ?Public Sub Form_Open() Dim fileName As String Dim getFile As String Dim sXml As String Dim x As Integer Dim reader As XmlReader reader = New XmlReader For Each fileName In Dir(User.Home & "/" & ".mi4l/data", "*.xml", gb.File) ?? getFile = User.Home & "/" & ".mi4l/data" & "/" & fileName ?? x = 0 Try reader.Open(getFile) ?If Error Then ?? Message.Error("Error Can't Find XML file(s) to load!") ?? Return ?Endif ?Do While True ?? Try reader.Read() ?? If reader.Eof Then Break ? Select Case reader.Node.Name ???? Case "ServerGroup" ?????? For Each reader.Node.Attributes ???????? If reader.Node.Name = "Name" And x = 0 Then ?????????? ListBox5.Add(reader.Node.Value) ?????????? ListBox1.Add(getFile) ?????????? x = 1 ?????????? Print "ServerGroup = " & reader.Node.Value ??????? Endif ? Next ? End Select Loop Next End -------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Tue Apr 3 00:06:50 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Mon, 2 Apr 2018 23:06:50 +0100 Subject: [Gambas-user] User Digest, Vol 7, Issue 6 In-Reply-To: References: Message-ID: Hi Tobias, I am talking about external libraries writen in this case in c++. Ant?nio Teixeira 2018-04-02 20:53 GMT+01:00 : > Send User mailing list submissions to > user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of User digest..." > > > Today's Topics: > > 1. [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP > (bugtracker at gambaswiki.org) > 2. [Gambas Bug Tracker] Bug #1278: When break, breakpoint list > alway show/selected automatic (bugtracker at gambaswiki.org) > 3. [Gambas Bug Tracker] Bug #1278: When break, breakpoint list > alway show/selected automatic (bugtracker at gambaswiki.org) > 4. Re: Behaviour FINALLY CATCH (Christof Thalhofer) > 5. Re: xmlreader Gambas 3.10.0 (Christof Thalhofer) > 6. External library events (Antonio Teixeira) > 7. Re: External library events (Tobias Boege) > 8. Re: xmlreader Gambas 3.10.0 (Shannon Kuchler) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 02 Apr 2018 10:13:36 GMT > From: > To: abbat.81 at gmail.com,user at lists.gambas-basic.org > Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is > blocked by IP > Message-ID: > Content-Type: text/plain;charset=utf-8; charset="utf-8" > > http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- > > Comment #1 by Beno?t MINISINI: > > The wiki is hosted by the company where I work, and they have blocked all > incoming traffic coming from Ukraine because of recurring attacks. > > I asked if it was possible to let traffic coming from Ukraine just reach > the wiki server, but I didn't have a response yet. > > > > > ------------------------------ > > Message: 2 > Date: Mon, 02 Apr 2018 11:22:14 GMT > From: > To: mail.gambaspi at gmail.com,user at lists.gambas-basic.org > Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1278: When break, > breakpoint list alway show/selected automatic > Message-ID: > Content-Type: text/plain;charset=utf-8; charset="utf-8" > > http://gambaswiki.org/bugtracker/edit?object=BUG.1278&from=L21haW4- > > Beno?t MINISINI changed the state of the bug to: Accepted. > > > > > > ------------------------------ > > Message: 3 > Date: Mon, 02 Apr 2018 11:24:39 GMT > From: > To: mail.gambaspi at gmail.com,user at lists.gambas-basic.org > Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1278: When break, > breakpoint list alway show/selected automatic > Message-ID: > Content-Type: text/plain;charset=utf-8; charset="utf-8" > > http://gambaswiki.org/bugtracker/edit?object=BUG.1278&from=L21haW4- > > Comment #1 by Beno?t MINISINI: > > Is it better with commit https://gitlab.com/gambas/gambas/commit/ > 362aa289c039d2a03821517bbd3cccd185573e17 ? > > Beno?t MINISINI changed the state of the bug to: NeedsInfo. > > > > > ------------------------------ > > Message: 4 > Date: Mon, 2 Apr 2018 14:21:08 +0200 > From: Christof Thalhofer > To: Gambas Mailing List > Subject: Re: [Gambas-user] Behaviour FINALLY CATCH > Message-ID: > Content-Type: text/plain; charset="utf-8" > > Am 01.04.2018 um 23:27 schrieb Michael Altrogge: > > > Ich verstehs nicht ... > > No one else does ;-) > > To be sure always post a working piece of code and test it by yourself > before posting. That may help a lot ... ;-) > > Happy easter > > 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: attachments/20180402/7261887f/attachment-0001.sig> > > ------------------------------ > > Message: 5 > Date: Mon, 2 Apr 2018 14:22:06 +0200 > From: Christof Thalhofer > To: Gambas Mailing List > Subject: Re: [Gambas-user] xmlreader Gambas 3.10.0 > Message-ID: > Content-Type: text/plain; charset="utf-8" > > Am 02.04.2018 um 00:00 schrieb Shannon Kuchler: > > > I can't read a xml file with comment(s) // > ... > > is there anyway around this? > > No one can look at it if you do not provide a code example. > > > 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: attachments/20180402/8a630df8/attachment-0001.sig> > > ------------------------------ > > Message: 6 > Date: Mon, 2 Apr 2018 17:38:15 +0100 > From: Antonio Teixeira > To: user at lists.gambas-basic.org > Subject: [Gambas-user] External library events > Message-ID: > mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi everyone, > > I am for the first time using external libraries, I have an external > library that need to raise events on my gambas program. > > At this moment i already have some functions declared and I get errors from > that functions. > Now I need to for some way declare the events so the external library raise > them. > Can someone help me please? > > ?Thanks in advance? > > ?Best Regards > > > Ant?nio Teixeira > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20180402/a46cb529/attachment-0001.html> > > ------------------------------ > > Message: 7 > Date: Mon, 2 Apr 2018 18:49:18 +0200 > From: Tobias Boege > To: Gambas Mailing List > Subject: Re: [Gambas-user] External library events > Message-ID: <20180402164918.GB944 at highrise.localdomain> > Content-Type: text/plain; charset=us-ascii > > On Mon, 02 Apr 2018, Antonio Teixeira wrote: > > Hi everyone, > > > > I am for the first time using external libraries, I have an external > > library that need to raise events on my gambas program. > > > > At this moment i already have some functions declared and I get errors > from > > that functions. > > Now I need to for some way declare the events so the external library > raise > > them. > > Can someone help me please? > > > > Are we talking about external Gambas libraries (written in Gambas) or > external libraries as in .so files? > > Regards, > Tobias > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ------------------------------ > > Message: 8 > Date: Mon, 2 Apr 2018 14:52:41 -0500 > From: Shannon Kuchler > To: Gambas Mailing List > Subject: Re: [Gambas-user] xmlreader Gambas 3.10.0 > Message-ID: > > Content-Type: text/plain; charset="utf-8" > > In this code as soon as XmlReader encounters a comment line in a xml file > > it goes to end of file and stops the loop > > any ideas why? > > > > ------------------------------------------------------------ > ----------------------------------- > > ?Public Sub Form_Open() > Dim fileName As String > Dim getFile As String > Dim sXml As String > Dim x As Integer > Dim reader As XmlReader > reader = New XmlReader > > > For Each fileName In Dir(User.Home & "/" & ".mi4l/data", "*.xml", gb.File) > ?? getFile = User.Home & "/" & ".mi4l/data" & "/" & fileName > ?? x = 0 > > Try reader.Open(getFile) > ?If Error Then > ?? Message.Error("Error Can't Find XML file(s) to load!") > ?? Return > ?Endif > > ?Do While True > > ?? Try reader.Read() > ?? If reader.Eof Then Break > > > ? Select Case reader.Node.Name > ???? Case "ServerGroup" > ?????? For Each reader.Node.Attributes > ???????? If reader.Node.Name = "Name" And x = 0 Then > ?????????? ListBox5.Add(reader.Node.Value) > ?????????? ListBox1.Add(getFile) > ?????????? x = 1 > ?????????? Print "ServerGroup = " & reader.Node.Value > ??????? Endif > ? Next > ? End Select > > Loop > Next > End > ------------------------------------------------------------ > -------------------------------------------- > > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20180402/171827bc/attachment.html> > > ------------------------------ > > Subject: Digest Footer > > User mailing list > User at lists.gambas-basic.org > http://lists.gambas-basic.org/listinfo/user > > Mailinglist hosted by https://www.hostsharing.net > > > ------------------------------ > > End of User Digest, Vol 7, Issue 6 > ********************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Tue Apr 3 00:23:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 02 Apr 2018 22:23:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1224: Add IPC shared memory between Main process and these forks (TASK) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1224&from=L21haW4- Comment #12 by Olivier CRUILLES: Not necessary now. I close it. Olivier CRUILLES changed the state of the bug to: Abandoned. From bugtracker at gambaswiki.org Tue Apr 3 06:19:29 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 04:19:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1278: When break, breakpoint list alway show/selected automatic In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1278&from=L21haW4- Comment #2 by Zainudin AHMAD: yes it's better now, thank you. Zainudin AHMAD changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Tue Apr 3 06:19:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 04:19:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1278: When break, breakpoint list alway show/selected automatic In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1278&from=L21haW4- Zainudin AHMAD changed the state of the bug to: Fixed. From chrisml at deganius.de Tue Apr 3 17:12:34 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 3 Apr 2018 17:12:34 +0200 Subject: [Gambas-user] xmlreader Gambas 3.10.0 In-Reply-To: References: Message-ID: <7a397754-66b4-1838-e955-562945ac91f9@deganius.de> Am 02.04.2018 um 21:52 schrieb Shannon Kuchler: > In this code as soon as XmlReader encounters a comment line in a xml file > > it goes to end of file and stops the loop > > any ideas why? No. Because this is not an example that anyone can let run on the own computer. Please deliver a *working* project with form and a XML file that produces the behaviour you think is wrong. 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 bugtracker at gambaswiki.org Tue Apr 3 17:42:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 15:42:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1277: in special paste, this function could be interesting. In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1277&from=L21haW4- Comment #2 by V?ctor PEREZ: The difference is that you can enter the text in a variable of one, without having to modify or fix anything. with little text it would seem not to be very useful, but the issue is when it is a long text. I do not know, I found it interesting. From shannon at inflecto.org Tue Apr 3 22:23:07 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Tue, 3 Apr 2018 15:23:07 -0500 Subject: [Gambas-user] xmlreader Gambas 3.10.0 test project link included Message-ID: ? I hope this is better. The link is to a test project that includes 5 example xml files only one the dona.xml has comments ?https://www.dropbox.com/s/scnvmwhtdnr1dbh/Xml_Test-0.0.1.tar.gz?dl=0 Am 02.04.2018 um 21:52 schrieb Shannon Kuchler: > In this code as soon as XmlReader encounters a comment line in a xml file > > it goes to end of file and stops the loop > > any ideas why? No. Because this is not an example that anyone can let run on the own computer. Please deliver a *working* project with form and a XML file that produces the behaviour you think is wrong. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------------------------------------------- This is the Gambas Mailing List: https://lists.gambas-basic.org/listinfo/user Search the list: https://lists.gambas-basic.org/cgi-bin/search.cgi Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From abbat.81 at gmail.com Tue Apr 3 22:54:02 2018 From: abbat.81 at gmail.com (=?UTF-8?B?0J/QtdGC0YDQviBBYmJhdA==?=) Date: Tue, 3 Apr 2018 23:54:02 +0300 Subject: [Gambas-user] xmlreader Gambas 3.10.0 test project link included In-Reply-To: References: Message-ID: Hi, where I can post my question like I did it on gambas.8142.n7.nabble.com ? 2018-04-03 23:23 GMT+03:00 Shannon Kuchler : > ? > > > I hope this is better. The link is to a test project that includes 5 > example xml files only one the dona.xml has comments > > > ?https://www.dropbox.com/s/scnvmwhtdnr1dbh/Xml_Test-0.0.1.tar.gz?dl=0 > > > > > Am 02.04.2018 um 21:52 schrieb Shannon Kuchler: > > In this code as soon as XmlReader encounters a comment line in a xml file > > > > it goes to end of file and stops the loop > > > > any ideas why? > > No. Because this is not an example that anyone can let run on the own > computer. > > Please deliver a **working** project with form and a XML file that > produces the behaviour you think is wrong. > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -- ? ?????????? ???????????, ????? ?????? +38 (093) 566-41-00 -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Apr 3 23:35:34 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 3 Apr 2018 17:35:34 -0400 Subject: [Gambas-user] xmlreader Gambas 3.10.0 test project link included In-Reply-To: References: Message-ID: <7497b224-98f2-bfef-e058-da1e7d55eb1a@gmail.com> I was unable to get Valmar.xml to read properly until I used XmlReader.Close() if XmlReader.Eof: Try Print reader.Read() If reader.Eof Then reader.Close() Break Endif Also, the Print reader.Read() for dona.xml yields only: 1 7 which is quite different than for the other xml files. What the integer returned from XmlReader.Read signifies, I have no clue because the documentation does not say. -- Lee On 04/03/2018 04:23 PM, Shannon Kuchler wrote: > I hope this is better. The link is to a test project that includes 5 example xml files only one the dona.xml has comments > > > ?https://www.dropbox.com/s/scnvmwhtdnr1dbh/Xml_Test-0.0.1.tar.gz?dl=0 > > From bugtracker at gambaswiki.org Tue Apr 3 23:39:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 21:39:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Comment #2 by Petro SAVCHUK: It's not good to block whole country, not by separate bad IP. Tomorrow they will block Earth - there is Ukraine on the Earth. It's hard to use Gambas - no wiki help, no the examples farm... From bugtracker at gambaswiki.org Tue Apr 3 23:49:36 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 21:49:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Comment #3 by Beno?t MINISINI: I'm sorry for that. I will ask tomorrow again to the hosting administrators if they have a solution for that. From bugtracker at gambaswiki.org Tue Apr 3 23:51:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 21:51:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1287: link on website need to be update Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1287&from=L21haW4- buste BUSTE reported a new bug. Summary ------- link on website need to be update Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- in the page: http://gambas.sourceforge.net/en/main.html there is a link to: https://portland.freedesktop.org/ labeled as: ...from the project... that was moved here: https://www.freedesktop.org/wiki/Software/xdg-utils/ happy coding ;-) S. From bugtracker at gambaswiki.org Tue Apr 3 23:51:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 21:51:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1193: DataSource.Table doesn't accept "SELECT "request In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1193&from=L21haW4- Comment #3 by Beno?t MINISINI: Is it better with commit https://gitlab.com/gambas/gambas/commit/77392c328f4d16951d3c127f593d63815cd51812? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Wed Apr 4 00:00:43 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 22:00:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1287: link on website need to be update In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1287&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed. It was not in the main page, but in the "What is gambas" page! Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed Apr 4 00:16:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 03 Apr 2018 22:16:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1287: link on website need to be update In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1287&from=L21haW4- Comment #2 by buste BUSTE: sorry for my not correct info... but the use of iframe make me mistaken! ;-) S. From bugtracker at gambaswiki.org Wed Apr 4 04:41:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 02:41:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1288: Gambas IDE - Error message trying to replace Tab char by other letters Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1288&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Gambas IDE - Error message trying to replace Tab char by other letters Type : Bug Priority : High Gambas version : Master Product : Development Environment Description ----------- In a Webpage, when I try to replace all Tab char by double spaces for example by the Search/Replace Panel an error message raise and the IDE quits. Olivier System information ------------------ [System] Gambas=3.10.90 31193668a (master) OperatingSystem=Linux Kernel=4.15.12-201.fc26.x86_64 Architecture=x86_64 Distribution=redhat Fedora release 26 (Twenty Six) Desktop=MATE Theme=Breeze Language=fr_FR.utf8 Memory=3942M [Libraries] Cairo=libcairo.so.2.11400.10 DBus=libdbus-1.so.3.19.0 GStreamer=libgstreamer-1.0.so.0.1203.0 GTK+2=libgtk-x11-2.0.so.0.2400.31 OpenGL=libGL.so.1.0.0 SQLite=libsqlite3.so.0.8.6 [Environment] CAPP_BUILD=/Packages/Starter/Build DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_LANG=fr_FR.utf8 GNOME_KEYRING_CONTROL=/.cache/keyring-N24WGZ GTK_OVERLAY_SCROLLING=0 HISTCONTROL=ignoredups HISTSIZE=1000 HISTTIMEFORMAT=%F %T HOME= HOSTNAME= IMSETTINGS_INTEGRATE_DESKTOP=yes IMSETTINGS_MODULE=none KDEDIRS=/usr LANG=fr_FR.utf8 LESSOPEN=||/usr/bin/lesspipe.sh %s LOGNAME= MAIL=/var/spool/mail/ MATE_DESKTOP_SESSION_ID=this-is-deprecated PAGER=most PATH=/narwhal/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/bin:/usr/local/xaralx/bin PWD= QT_IM_MODULE=xim SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1476,unix/unix:/tmp/.ICE-unix/1476 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=1591 SSH_AUTH_SOCK=/.cache/keyring-N24WGZ/ssh TERM=dumb TZ=:/etc/localtime USER= XAUTHORITY=/var/run/lightdm//xauthority XDG_CURRENT_DESKTOP=MATE XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=1 XMODIFIERS=@im=none _=/usr/bin/mate-session From bugtracker at gambaswiki.org Wed Apr 4 04:41:47 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 02:41:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1288: Gambas IDE - Error message trying to replace Tab char by other letters In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1288&from=L21haW4- Olivier CRUILLES added an attachment: S?lection_196.png From bugtracker at gambaswiki.org Wed Apr 4 04:41:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 02:41:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1288: Gambas IDE - Error message trying to replace Tab char by other letters In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1288&from=L21haW4- Olivier CRUILLES added an attachment: S?lection_197.png From bugtracker at gambaswiki.org Wed Apr 4 15:17:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 13:17:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1289: in the editor of images / icons, indicating the means x and the medium y Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1289&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- in the editor of images / icons,indicating the means x and the medium y Type : Request Priority : Low Gambas version : Master Product : Development Environment Description ----------- in the editor of images / icons, can you put a guide or reference indicating the means x and the medium y? regards System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Wed Apr 4 15:22:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 13:22:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1289: in the editor of images / icons, indicating the means x and the medium y In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1289&from=L21haW4- Comment #1 by Beno?t MINISINI: What does that mean? I don't understand. Did you look at the image editor grid? From bugtracker at gambaswiki.org Wed Apr 4 19:12:41 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 17:12:41 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1290: incorrect information in column procedure (in search) Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1290&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- incorrect information in column procedure (in search) Type : Bug Priority : Low Gambas version : Master Product : Development Environment Description ----------- the error occurs when there is a commented procedure. System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Wed Apr 4 19:13:49 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 17:13:49 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1290: incorrect information in column procedure (in search) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1290&from=L21haW4- V?ctor PEREZ added an attachment: bug find.jpg From bugtracker at gambaswiki.org Wed Apr 4 23:16:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 04 Apr 2018 21:16:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1290: incorrect information in column procedure (in search) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1290&from=L21haW4- Comment #1 by Beno?t MINISINI: The text editor assumes that a comment belongs to the function defined before it. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Thu Apr 5 13:03:09 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 11:03:09 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1288: Gambas IDE - Error message trying to replace Tab char by other letters In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1288&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Apr 5 16:00:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 14:00:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1288: Gambas IDE - Error message trying to replace Tab char by other letters In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1288&from=L21haW4- Comment #1 by Beno?t MINISINI: Is it fixed with commit https://gitlab.com/gambas/gambas/commit/df02d308c929c7cc7b872d16da3bc1a7a1261605 ? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Thu Apr 5 16:00:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 14:00:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1193: DataSource.Table doesn't accept "SELECT "request In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1193&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Thu Apr 5 22:45:58 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 20:45:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #5 by Jussi LAHTINEN: That way it works almost as expected. Still the customized time format ("d.m.yyyy hh:nn") is ignored and instead the official Finnish time format is used (d.m.yyyy hh.nn). I hate it and refuse to use it, because in some cases it's unclear (we short dates "dd.mm" and thus "11.10" can be date or time) and it's not what most people are used to see. Also default language chosen from the IDE still does not have any effect. Jussi LAHTINEN changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Apr 5 22:49:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 20:49:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #6 by Beno?t MINISINI: Which customized time format? Where do you define it? And what do you mean by "default language chosen from the IDE still does not have any effect."? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Thu Apr 5 22:52:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 20:52:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #7 by Jussi LAHTINEN: This line has translatable string, which is translated as "d.m.yyyy hh:nn": tvAlarms.Data.RichText &= Format$(CDate(hAlarm.hTotal), ("m/d/yyyy hh:nn")) Just look up the translation. Project properties --> options --> default language Jussi LAHTINEN changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Thu Apr 5 23:10:46 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 21:10:46 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #8 by Beno?t MINISINI: Yes, I know where the option is. It's just there to tell which language you used in the untranslated strings. What do you expect that option to do? From bugtracker at gambaswiki.org Thu Apr 5 23:27:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 21:27:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #9 by Jussi LAHTINEN: Sorry. Just a brain fart. I used this 'System.Language = "fi_FI.UTF-8"' to select the language in runtime, not from the IDE as I incorrectly remembered. But that works without problems. So, in reality only the time format string issue is valid. From bugtracker at gambaswiki.org Thu Apr 5 23:35:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 21:35:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #10 by Beno?t MINISINI: Actually neither. :-) The customized format is not ignored. You didn't understand how the Format() function works. You have to write the translated string that way: "d\\.m\\.yyyy hh\\:nn", i.e. escape special character that are replaced by the date separators defined by the current localization. Note that there is bug in the translation window, where you have to write the translated string quoted, i.e. you have to write the "\" twice as if you write a Gambas string. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Fri Apr 6 00:09:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 05 Apr 2018 22:09:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1257: Translations are not working In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1257&from=L21haW4- Comment #11 by Jussi LAHTINEN: Oh damn... you are right. Actually the slashes were there, but when debugging I removed them, because I thought they were there because of accident. Learning & unlearning... From bugtracker at gambaswiki.org Fri Apr 6 02:29:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 06 Apr 2018 00:29:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1288: Gambas IDE - Error message trying to replace Tab char by other letters In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1288&from=L21haW4- Comment #2 by Olivier CRUILLES: Fixed. Thank you. Olivier Olivier CRUILLES changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri Apr 6 02:30:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 06 Apr 2018 00:30:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1288: Gambas IDE - Error message trying to replace Tab char by other letters In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1288&from=L21haW4- Comment #3 by Olivier CRUILLES: Fixed Olivier CRUILLES changed the state of the bug to: Fixed. From vuott at tiscali.it Sat Apr 7 02:02:15 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sat, 07 Apr 2018 02:02:15 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... Message-ID: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> Hello, I do not understand why these two lines do not return the same result. Public Sub Main() Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to activate "gb.util" Component End So that the two results are identical, I have to add 4 hours ! Public Sub Main() Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) ' Here I have to add 4 hours ! Print CFloat(Date.ToUnixTime(Now)) End regards vuott MY SYSTEM AND GAMBAS: [System] Gambas=3.10.90 23e7dec (master) OperatingSystem=Linux Kernel=4.15.0-13-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Cleanlooks Language=it_IT.UTF-8 Memory=3945M [Libraries] Cairo=libcairo.so.2.11400.6 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wi1D3Cngt9,guid=b771a1b43385eb8996e385e65ac78fe9 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=it GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= INSIDE_NEMO_PYTHON= LANG=it_IT.UTF-8 LANGUAGE=it LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/g ames PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1171,unix/:/tmp/.ICE-unix/1171 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1229 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo smartphone a 9? al mese per sempre. Passa ora a Tiscali Mobile, il nostro mese ? vero! http://tisca.li/Open6GB0318 -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Sat Apr 7 12:19:09 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sat, 7 Apr 2018 11:19:09 +0100 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> Message-ID: <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> Hi Vott, This produces the same results for me? *Public Sub Main()** ** **?? Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) ** ** **?? Print CFloat(Date.ToUnixTime(Now))????? ' Obviously we have to activate "gb.util" Component** ** **Print** **Two** ** **End** ** **Public Sub Two()** ** **?? Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) ** ** **?? Print CFloat(Date.ToUnixTime(Now))** ** **End** * This produces: - 1523088787 1523095987 1523088787 1523095987 Charlie On 07/04/18 01:02, vuott at tiscali.it wrote: > Hello, > > I do not understand why these two lines do not return the same result. > > Public Sub Main() > > Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) > > Print CFloat(Date.ToUnixTime(Now))????? ' Obviously we have to > activate "gb.util" Component > > End > > > So that the two results are identical, I have to add 4 hours ! > > Public Sub Main() > > Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second))'? > Here I have to add 4 hours ! > > Print CFloat(Date.ToUnixTime(Now)) > > End > > > regards > vuott > > > *My system and Gambas:* > [System] > Gambas=3.10.90 23e7dec (master) > OperatingSystem=Linux > Kernel=4.15.0-13-generic > Architecture=x86_64 > Distribution=Linux Mint 18.3 Sylvia > Desktop=CINNAMON > Theme=Cleanlooks > Language=it_IT.UTF-8 > Memory=3945M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.803.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wi1D3Cngt9,guid=b771a1b43385eb8996e385e65ac78fe9 > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=it > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > INSIDE_NEMO_PYTHON= > LANG=it_IT.UTF-8 > LANGUAGE=it > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_QPA_PLATFORMTHEME=qgnomeplatform > QT_STYLE_OVERRIDE=gtk > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1171,unix/:/tmp/.ICE-unix/1171 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1229 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > > > Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo > smartphone a 9? al mese per sempre. Passa ora a Tiscali Mobile, il > nostro mese ? vero! http://tisca.li/Open6GB0318 > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From criguada at gmail.com Sat Apr 7 13:04:17 2018 From: criguada at gmail.com (Cristiano Guadagnino) Date: Sat, 7 Apr 2018 13:04:17 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> Message-ID: Charlie, you get a difference between the first and the second statement, just as Vuott (not between the main and the sub, you misintepreted Vuott message). But you get a difference of two hours, whereas Vuott gets a difference of 4. I do not have time to read the docs, but I suspect TZ is the culprit. Cris On Sat, Apr 7, 2018 at 12:19 PM, Charlie Ogier wrote: > Hi Vott, > > This produces the same results for me? > > *Public Sub Main()* > > * Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) * > > * Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to > activate "gb.util" Component* > > *Print* > *Two* > > *End* > > *Public Sub Two()* > > * Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) * > > * Print CFloat(Date.ToUnixTime(Now))* > > *End* > > This produces: - > 1523088787 > 1523095987 > > 1523088787 > 1523095987 > > Charlie > > > On 07/04/18 01:02, vuott at tiscali.it wrote: > > Hello, > > I do not understand why these two lines do not return the same result. > > Public Sub Main() > > Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) > > Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to > activate "gb.util" Component > > End > > > So that the two results are identical, I have to add 4 hours ! > > Public Sub Main() > > Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) > ' Here I have to add 4 hours ! > > Print CFloat(Date.ToUnixTime(Now)) > > End > > > regards > vuott > > > *My system and Gambas:* > [System] > Gambas=3.10.90 23e7dec (master) > OperatingSystem=Linux > Kernel=4.15.0-13-generic > Architecture=x86_64 > Distribution=Linux Mint 18.3 Sylvia > Desktop=CINNAMON > Theme=Cleanlooks > Language=it_IT.UTF-8 > Memory=3945M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.803.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wi1D3Cngt9,guid= > b771a1b43385eb8996e385e65ac78fe9 > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=it > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > INSIDE_NEMO_PYTHON= > LANG=it_IT.UTF-8 > LANGUAGE=it > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PATH=/bin:/.local/bin:/usr/local/sbin:/usr/ > local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_QPA_PLATFORMTHEME=qgnomeplatform > QT_STYLE_OVERRIDE=gtk > SESSION_MANAGER=local/:@/tmp/.ICE-unix/ > 1171,unix/:/tmp/.ICE-unix/1171 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1229 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:< > home>/.local/share/flatpak/exports/share:/var/lib/ > flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > > > Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo > smartphone a 9? al mese per sempre. Passa ora a Tiscali Mobile, il nostro > mese ? vero! http://tisca.li/Open6GB0318 > > > > -------------------------------------------------- > > This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user > > Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Apr 7 15:45:46 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 7 Apr 2018 16:45:46 +0300 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> Message-ID: I really think the time zone should be optional argument for these functions. I have constant troubles to understand how and what time functions should be used. Really really unintuitive. In my GAlarm project, when I finally got everything working, I noticed that the "daylight saving time" fucks up all the alarm times by hour. No idea how to fix. Jussi On Sat, Apr 7, 2018 at 2:04 PM, Cristiano Guadagnino wrote: > Charlie, you get a difference between the first and the second statement, > just as Vuott (not between the main and the sub, you misintepreted Vuott > message). > But you get a difference of two hours, whereas Vuott gets a difference of > 4. > I do not have time to read the docs, but I suspect TZ is the culprit. > > Cris > > > On Sat, Apr 7, 2018 at 12:19 PM, Charlie Ogier wrote: > >> Hi Vott, >> >> This produces the same results for me? >> >> *Public Sub Main()* >> >> * Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) * >> >> * Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to >> activate "gb.util" Component* >> >> *Print* >> *Two* >> >> *End* >> >> *Public Sub Two()* >> >> * Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) * >> >> * Print CFloat(Date.ToUnixTime(Now))* >> >> *End* >> >> This produces: - >> 1523088787 >> 1523095987 >> >> 1523088787 >> 1523095987 >> >> Charlie >> >> >> On 07/04/18 01:02, vuott at tiscali.it wrote: >> >> Hello, >> >> I do not understand why these two lines do not return the same result. >> >> Public Sub Main() >> >> Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) >> >> Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to >> activate "gb.util" Component >> >> End >> >> >> So that the two results are identical, I have to add 4 hours ! >> >> Public Sub Main() >> >> Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) >> ' Here I have to add 4 hours ! >> >> Print CFloat(Date.ToUnixTime(Now)) >> >> End >> >> >> regards >> vuott >> >> >> *My system and Gambas:* >> [System] >> Gambas=3.10.90 23e7dec (master) >> OperatingSystem=Linux >> Kernel=4.15.0-13-generic >> Architecture=x86_64 >> Distribution=Linux Mint 18.3 Sylvia >> Desktop=CINNAMON >> Theme=Cleanlooks >> Language=it_IT.UTF-8 >> Memory=3945M >> >> [Libraries] >> Cairo=libcairo.so.2.11400.6 >> DBus=libdbus-1.so.3.14.6 >> GStreamer=libgstreamer-0.10.so.0.30.0 >> GStreamer=libgstreamer-1.0.so.0.803.0 >> GTK+2=libgtk-x11-2.0.so.0.2400.30 >> GTK+3=libgtk-3.so.0.1800.9 >> OpenGL=libGL.so.1.2.0 >> Poppler=libpoppler.so.58.0.0 >> QT4=libQtCore.so.4.8.7 >> QT5=libQt5Core.so.5.5.1 >> SDL=libSDL-1.2.so.0.11.4 >> SQLite=libsqlite3.so.0.8.6 >> >> [Environment] >> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-wi1D3Cngt9, >> guid=b771a1b43385eb8996e385e65ac78fe9 >> DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path >> DESKTOP_SESSION=cinnamon >> DISPLAY=:0 >> GB_GUI=gb.qt4 >> GDMSESSION=cinnamon >> GDM_LANG=it >> GNOME_DESKTOP_SESSION_ID=this-is-deprecated >> GTK_MODULES=gail:atk-bridge >> GTK_OVERLAY_SCROLLING=1 >> HOME= >> INSIDE_NEMO_PYTHON= >> LANG=it_IT.UTF-8 >> LANGUAGE=it >> LOGNAME= >> MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path >> PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local >> /bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games >> PWD= >> QT_ACCESSIBILITY=1 >> QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 >> QT_QPA_PLATFORMTHEME=qgnomeplatform >> QT_STYLE_OVERRIDE=gtk >> SESSION_MANAGER=local/:@/tmp/.ICE-unix/1171,unix/< >> hostname>:/tmp/.ICE-unix/1171 >> SHELL=/bin/bash >> SHLVL=0 >> SSH_AGENT_PID=1229 >> SSH_AUTH_SOCK=/run/user/1000/keyring/ssh >> TZ=:/etc/localtime >> USER= >> XAUTHORITY=/.Xauthority >> XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg >> XDG_CURRENT_DESKTOP=X-Cinnamon >> XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/. >> local/share/flatpak/exports/share:/var/lib/flatpak/ >> exports/share:/usr/local/share:/usr/share >> XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ >> XDG_RUNTIME_DIR=/run/user/1000 >> XDG_SEAT=seat0 >> XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 >> XDG_SESSION_DESKTOP=cinnamon >> XDG_SESSION_ID=c1 >> XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 >> XDG_SESSION_TYPE=x11 >> XDG_VTNR=7 >> >> >> >> >> Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo >> smartphone a 9? al mese per sempre. Passa ora a Tiscali Mobile, il nostro >> mese ? vero! http://tisca.li/Open6GB0318 >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List:https://lists.gambas-basic.org/listinfo/user >> >> Search the list:https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Apr 7 18:15:10 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 7 Apr 2018 18:15:10 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> Message-ID: <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> Le 07/04/2018 ? 02:02, vuott at tiscali.it a ?crit?: > Hello, > > I do not understand why these two lines do not return the same result. > > Public Sub Main() > > Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) > > Print CFloat(Date.ToUnixTime(Now))????? ' Obviously we have to activate > "gb.util" Component > > End > > > So that the two results are identical, I have to add 4 hours ! > > Public Sub Main() > > Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) > '? Here I have to add 4 hours ! > > Print CFloat(Date.ToUnixTime(Now)) > > End > > > regards > vuott > It's a bug in Date.ToUnixTime() and Date.FromUnixTime() function. Can you try with commit https://gitlab.com/gambas/gambas/commit/72384c0806071556d50e1e8870dd12f868985155 ? Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Apr 7 18:19:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 7 Apr 2018 18:19:48 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> Message-ID: <1ddeb5f9-f7c9-0b63-082b-88d8f8c5b15e@gmail.com> Le 07/04/2018 ? 15:45, Jussi Lahtinen a ?crit?: > I really think the time zone should be optional argument for these > functions. I have constant troubles to understand how and what time > functions should be used. Really really unintuitive. > In my GAlarm project, when I finally got everything working, I noticed > that the "daylight saving time" fucks up all the alarm times by hour. No > idea how to fix. > > > Jussi > It's simple: non localized date functions interpret string dates as UTC (CDate, CStr), whereas localized date functions (Val, Str, Format, Date) interpret string dates as being in local timezone. Internally dates are absolute, and stored in UTC. Regards, -- Beno?t Minisini From bagonergi at gmail.com Sat Apr 7 18:47:50 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 7 Apr 2018 18:47:50 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> Message-ID: 2018-04-07 18:15 GMT+02:00 Beno?t Minisini : > Le 07/04/2018 ? 02:02, vuott at tiscali.it a ?crit : > >> Hello, >> >> I do not understand why these two lines do not return the same result. >> >> Public Sub Main() >> >> Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) >> >> Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to activate >> "gb.util" Component >> >> End >> >> >> So that the two results are identical, I have to add 4 hours ! >> >> Public Sub Main() >> >> Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) >> ' Here I have to add 4 hours ! >> >> Print CFloat(Date.ToUnixTime(Now)) >> >> End >> >> >> regards >> vuott >> >> > It's a bug in Date.ToUnixTime() and Date.FromUnixTime() function. > > Can you try with commit https://gitlab.com/gambas/gamb > as/commit/72384c0806071556d50e1e8870dd12f868985155 ? > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > Sorry, I know I'm the most ignorant of all, but I think the error is in DateDif and not in ToUnixTime, as (perhaps) demonstrated as follows: Public Sub Main() unix diff End Private Sub unix() Dim i, u, r As Float i = 60 * 60 * 24 ' ms of one day u = CFloat(Date.ToUnixTime(Now)) ' epoc ms r = u / i r = Frac(r) ' remainder Print Time(r) ' UTC correct End Private Sub diff() Dim i, u, r As Float i = 60 * 60 * 24 ' ms of one day u = CFloat(DateDiff("01/01/1970", Now, gb.Second)) ' epoc ms??? r = u / i r = Frac(r) ' remainder Print Time(r) ' UTC incorrect (+ 4 hrs) End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Sat Apr 7 19:39:47 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sat, 07 Apr 2018 19:39:47 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> Message-ID: By using a external standard C function, its result is same that .ToUnixTime() Method: Library "libc:6" Public Struct timespec tv_sec As Long tv_nsec As Long End Struct Private Const CLOCK_REALTIME As Integer = 0 ' int clock_gettime (clockid_t __clock_id, struct timespec *__tp) ' Get current value of clock CLOCK_ID and store it in TP. Private Extern clock_gettime(__clock_id As Integer, __tp As Timespec) As Integer Public Sub Main() Dim spec As New Timespec clock_gettime(CLOCK_REALTIME, spec) Print spec.tv_sec, "(from external function)" Print CFloat(Date.ToUnixTime(Now)), "(with .ToUnixTime() Method)" Print CFloat(DateDiff("01/01/1970 04:00:00", Now, gb.Second)), "(by adding 4 hours)" Print Print CFloat(DateDiff("01/01/1970", Now, gb.Second)), "(--> NO added hours)" End regards vuott Il 07.04.2018 18:47 Gianluigi ha scritto: > 2018-04-07 18:15 GMT+02:00 Beno?t Minisini : > >> Le 07/04/2018 ? 02:02, vuott at tiscali.it [1] a ?crit : >> >>> Hello, >>> >>> I do not understand why these two lines do not return the same result. >>> >>> Public Sub Main() >>> >>> Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) >>> >>> Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to activate "gb.util" Component >>> >>> End >>> >>> So that the two results are identical, I have to add 4 hours ! >>> >>> Public Sub Main() >>> >>> Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) ' Here I have to add 4 hours ! >>> >>> Print CFloat(Date.ToUnixTime(Now)) >>> >>> End >>> >>> regards >>> vuott >> >> It's a bug in Date.ToUnixTime() and Date.FromUnixTime() function. >> >> Can you try with commit https://gitlab.com/gambas/gambas/commit/72384c0806071556d50e1e8870dd12f868985155 [2] ? >> >> Regards, >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user [3] >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi [4] >> >> Hosted by https://www.hostsharing.net [5] > > Sorry, I know I'm the most ignorant of all, but I think the error is in DateDif and not in ToUnixTime, as (perhaps) demonstrated as follows: > > Public Sub Main() > > unix > diff > > End > > Private Sub unix() > > Dim i, u, r As Float > > i = 60 * 60 * 24 ' ms of one day > u = CFloat(Date.ToUnixTime(Now)) ' epoc ms > r = u / i > r = Frac(r) ' remainder > Print Time(r) ' UTC correct > > End > > Private Sub diff() > > Dim i, u, r As Float > > i = 60 * 60 * 24 ' ms of one day > u = CFloat(DateDiff("01/01/1970", Now, gb.Second)) ' epoc ms??? > r = u / i > r = Frac(r) ' remainder > Print Time(r) ' UTC incorrect (+ 4 hrs) > > End > > Regards > Gianluigi Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo smartphone a 9? al mese per sempre. Passa ora a Tiscali Mobile, il nostro mese ? vero! http://tisca.li/Open6GB0318 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Sat Apr 7 23:13:21 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sat, 07 Apr 2018 23:13:21 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> Message-ID: <57f7b5dead24dfa0fb9b6d4177171f9d@tiscali.it> > By using a external standard C function, its result is same that .ToUnixTime() Method: Obviously still no 72384C08 fix. Il 07.04.2018 19:39 vuott at tiscali.it ha scritto: > By using a external standard C function, its result is same that .ToUnixTime() Method: > > Library "libc:6" > > Public Struct timespec > tv_sec As Long > tv_nsec As Long > End Struct > > Private Const CLOCK_REALTIME As Integer = 0 > > ' int clock_gettime (clockid_t __clock_id, struct timespec *__tp) > ' Get current value of clock CLOCK_ID and store it in TP. > Private Extern clock_gettime(__clock_id As Integer, __tp As Timespec) As Integer > > Public Sub Main() > > Dim spec As New Timespec > > clock_gettime(CLOCK_REALTIME, spec) > > Print spec.tv_sec, "(from external function)" > > Print CFloat(Date.ToUnixTime(Now)), "(with .ToUnixTime() Method)" > > Print CFloat(DateDiff("01/01/1970 04:00:00", Now, gb.Second)), "(by adding 4 hours)" > > Print > Print CFloat(DateDiff("01/01/1970", Now, gb.Second)), "(--> NO added hours)" > > End > > regards > vuott > > Il 07.04.2018 18:47 Gianluigi ha scritto: > >> 2018-04-07 18:15 GMT+02:00 Beno?t Minisini : >> >>> Le 07/04/2018 ? 02:02, vuott at tiscali.it [1] a ?crit : >>> >>>> Hello, >>>> >>>> I do not understand why these two lines do not return the same result. >>>> >>>> Public Sub Main() >>>> >>>> Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) >>>> >>>> Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to activate "gb.util" Component >>>> >>>> End >>>> >>>> So that the two results are identical, I have to add 4 hours ! >>>> >>>> Public Sub Main() >>>> >>>> Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) ' Here I have to add 4 hours ! >>>> >>>> Print CFloat(Date.ToUnixTime(Now)) >>>> >>>> End >>>> >>>> regards >>>> vuott >>> >>> It's a bug in Date.ToUnixTime() and Date.FromUnixTime() function. >>> >>> Can you try with commit https://gitlab.com/gambas/gambas/commit/72384c0806071556d50e1e8870dd12f868985155 [2] ? >>> >>> Regards, >>> >>> -- >>> Beno?t Minisini >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user [3] >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi [4] >>> >>> Hosted by https://www.hostsharing.net [5] >> >> Sorry, I know I'm the most ignorant of all, but I think the error is in DateDif and not in ToUnixTime, as (perhaps) demonstrated as follows: >> >> Public Sub Main() >> >> unix >> diff >> >> End >> >> Private Sub unix() >> >> Dim i, u, r As Float >> >> i = 60 * 60 * 24 ' ms of one day >> u = CFloat(Date.ToUnixTime(Now)) ' epoc ms >> r = u / i >> r = Frac(r) ' remainder >> Print Time(r) ' UTC correct >> >> End >> >> Private Sub diff() >> >> Dim i, u, r As Float >> >> i = 60 * 60 * 24 ' ms of one day >> u = CFloat(DateDiff("01/01/1970", Now, gb.Second)) ' epoc ms??? >> r = u / i >> r = Frac(r) ' remainder >> Print Time(r) ' UTC incorrect (+ 4 hrs) >> >> End >> >> Regards >> Gianluigi > > Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo smartphone a 9EUR al mese per sempre. Passa ora a Tiscali Mobile, il nostro mese ? vero! http://tisca.li/Open6GB0318 [7] Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo smartphone a 9? al mese per sempre. Passa ora a Tiscali Mobile, il nostro mese ? vero! http://tisca.li/Open6GB0318 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Apr 8 00:04:32 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 8 Apr 2018 01:04:32 +0300 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <1ddeb5f9-f7c9-0b63-082b-88d8f8c5b15e@gmail.com> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> <1ddeb5f9-f7c9-0b63-082b-88d8f8c5b15e@gmail.com> Message-ID: It's not simple. How do I save and load consistently time & date as string given by user? If I use CDate and CStr, the problem occurs when the user gives time & date before the "daylight saving" applies, because it will be hour off when loaded after the "daylight saving" applies. IF the user is not in UTC time zone. This is because UTC+1 <--> UTC yields different result than UTC+2 <--> UTC. If I use Val and Str, the problem occurs when language is changed. Jussi On Sat, Apr 7, 2018 at 7:19 PM, Beno?t Minisini wrote: > Le 07/04/2018 ? 15:45, Jussi Lahtinen a ?crit : > >> I really think the time zone should be optional argument for these >> functions. I have constant troubles to understand how and what time >> functions should be used. Really really unintuitive. >> In my GAlarm project, when I finally got everything working, I noticed >> that the "daylight saving time" fucks up all the alarm times by hour. No >> idea how to fix. >> >> >> Jussi >> >> > It's simple: non localized date functions interpret string dates as UTC > (CDate, CStr), whereas localized date functions (Val, Str, Format, Date) > interpret string dates as being in local timezone. > > Internally dates are absolute, and stored in UTC. > > Regards, > > -- > Beno?t Minisini > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Apr 8 00:51:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 8 Apr 2018 00:51:20 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> <1ddeb5f9-f7c9-0b63-082b-88d8f8c5b15e@gmail.com> Message-ID: <7adf7edc-fc06-d3d5-cf93-8a1c5d35efec@gmail.com> Le 08/04/2018 ? 00:04, Jussi Lahtinen a ?crit?: > It's not simple. How do I save and load consistently time & date as > string given by user? > > If I use CDate and CStr, the problem occurs when the user gives time & > date before the "daylight saving" applies, because it will be hour off > when loaded after the "daylight saving" applies. IF the user is not in > UTC time zone. This is because UTC+1 <--> UTC yields different result > than UTC+2 <--> UTC. > > If I use Val and Str, the problem occurs when language is changed. > > > Jussi If you have a string that you know it is a date/time in local timezone (daylight saving is automatically added by the system to the local timezone, i.e. daylight saving "changes" the timezone), then you must use Val() to convert it to a Date type. And if you have to display a date to the user in its local timezone, you have to use Str() or Print or Format(). If you use CDate(), then the string is assumed to be a date/time in UTC. And if you use CStr(), the date is displayed in UTC, using the american date format. You have to deal with timezone "by hand" only if you want to manipulate a string that represents a date that is not in UTC, and not in local timezone, daylight time saving included. If date strings were forced to always include the timezone, it would be clearer. But this is not the case, the timezone is implicit, and it's the kind of function you use that assumes it. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Apr 8 01:48:26 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 8 Apr 2018 02:48:26 +0300 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <7adf7edc-fc06-d3d5-cf93-8a1c5d35efec@gmail.com> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> <1ddeb5f9-f7c9-0b63-082b-88d8f8c5b15e@gmail.com> <7adf7edc-fc06-d3d5-cf93-8a1c5d35efec@gmail.com> Message-ID: How do you include timezone to the string? My current plan is to write the string assuming it's always in local time and in Val compatible format: Subst("&1/&2/&3 &4:&5:&6", Format(Month(hUserDate), "0#"), Format(Day(hUserDate), "0#"), Year(hUserDate), Format(Hour(hUserDate), "0#"), Format(Minute(hUserDate), "0#"), Format(Second(hUserDate), "0#")) And then read it with Val. Jussi On Sun, Apr 8, 2018 at 1:51 AM, Beno?t Minisini wrote: > Le 08/04/2018 ? 00:04, Jussi Lahtinen a ?crit : > >> It's not simple. How do I save and load consistently time & date as >> string given by user? >> >> If I use CDate and CStr, the problem occurs when the user gives time & >> date before the "daylight saving" applies, because it will be hour off when >> loaded after the "daylight saving" applies. IF the user is not in UTC time >> zone. This is because UTC+1 <--> UTC yields different result than UTC+2 >> <--> UTC. >> >> If I use Val and Str, the problem occurs when language is changed. >> >> >> Jussi >> > > > If you have a string that you know it is a date/time in local timezone > (daylight saving is automatically added by the system to the local > timezone, i.e. daylight saving "changes" the timezone), then you must use > Val() to convert it to a Date type. > > And if you have to display a date to the user in its local timezone, you > have to use Str() or Print or Format(). > > If you use CDate(), then the string is assumed to be a date/time in UTC. > And if you use CStr(), the date is displayed in UTC, using the american > date format. > > You have to deal with timezone "by hand" only if you want to manipulate a > string that represents a date that is not in UTC, and not in local > timezone, daylight time saving included. > > If date strings were forced to always include the timezone, it would be > clearer. But this is not the case, the timezone is implicit, and it's the > kind of function you use that assumes it. > > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Apr 8 02:09:34 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 8 Apr 2018 03:09:34 +0300 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> <1ddeb5f9-f7c9-0b63-082b-88d8f8c5b15e@gmail.com> <7adf7edc-fc06-d3d5-cf93-8a1c5d35efec@gmail.com> Message-ID: Hmmm... no. Of course Val cannot read US format in Finland. And there isn't another method to read it as local time. *'If you have a string that you know it is a date/time in local timezone (daylight saving is automatically added by the system to the local timezone, i.e. daylight saving "changes" the timezone), then you must use Val() to convert it to a Date type.'* No, you can't, because Val fails when switching a language, which I just recalled with my non working workaround. My case is really simple. If I want alarm at "10.10.2018 12:00", I want it to be written in file as "10.10.2018 12:00" and independently of where I am, I should see the alarm, when my computer clock shows "10.10.2018 12:00". IE always assume local time. Jussi On Sun, Apr 8, 2018 at 2:48 AM, Jussi Lahtinen wrote: > How do you include timezone to the string? > > My current plan is to write the string assuming it's always in local time > and in Val compatible format: > Subst("&1/&2/&3 &4:&5:&6", Format(Month(hUserDate), "0#"), > Format(Day(hUserDate), "0#"), Year(hUserDate), Format(Hour(hUserDate), > "0#"), Format(Minute(hUserDate), "0#"), Format(Second(hUserDate), "0#")) > > And then read it with Val. > > > Jussi > > > On Sun, Apr 8, 2018 at 1:51 AM, Beno?t Minisini wrote: > >> Le 08/04/2018 ? 00:04, Jussi Lahtinen a ?crit : >> >>> It's not simple. How do I save and load consistently time & date as >>> string given by user? >>> >>> If I use CDate and CStr, the problem occurs when the user gives time & >>> date before the "daylight saving" applies, because it will be hour off when >>> loaded after the "daylight saving" applies. IF the user is not in UTC time >>> zone. This is because UTC+1 <--> UTC yields different result than UTC+2 >>> <--> UTC. >>> >>> If I use Val and Str, the problem occurs when language is changed. >>> >>> >>> Jussi >>> >> >> >> If you have a string that you know it is a date/time in local timezone >> (daylight saving is automatically added by the system to the local >> timezone, i.e. daylight saving "changes" the timezone), then you must use >> Val() to convert it to a Date type. >> >> And if you have to display a date to the user in its local timezone, you >> have to use Str() or Print or Format(). >> >> If you use CDate(), then the string is assumed to be a date/time in UTC. >> And if you use CStr(), the date is displayed in UTC, using the american >> date format. >> >> You have to deal with timezone "by hand" only if you want to manipulate a >> string that represents a date that is not in UTC, and not in local >> timezone, daylight time saving included. >> >> If date strings were forced to always include the timezone, it would be >> clearer. But this is not the case, the timezone is implicit, and it's the >> kind of function you use that assumes it. >> >> >> Regards, >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Apr 8 08:31:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 8 Apr 2018 08:31:20 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <49655f80-f7b5-6e04-1eeb-77659395568a@cogier.com> <1ddeb5f9-f7c9-0b63-082b-88d8f8c5b15e@gmail.com> <7adf7edc-fc06-d3d5-cf93-8a1c5d35efec@gmail.com> Message-ID: Le 08/04/2018 ? 02:09, Jussi Lahtinen a ?crit?: > Hmmm... no. Of course Val cannot read US format in Finland. And there > isn't another method to read it as local time. > / > 'If you have a string that you know it is a date/time in local timezone > (daylight saving is automatically added by the system to the local > timezone, i.e. daylight saving "changes" the timezone), then you must > use Val() to convert it to a Date type.'/ > > No, you can't, because Val fails when switching a language, which I just > recalled with my non working workaround. > > My case is really simple. If I want alarm at "10.10.2018 12:00", I want > it to be written in file as "10.10.2018 12:00" and independently of > where I am, I should see the alarm, when my computer clock shows > "10.10.2018 12:00". IE always assume local time. > > > Jussi > Of course: as you use your own date format, and not the date format of the locale, you have to write your own string to date conversion routine. -- Beno?t Minisini From bugtracker at gambaswiki.org Sun Apr 8 10:47:20 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 08 Apr 2018 08:47:20 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- C THAL reported a new bug. Summary ------- Symbols with names which contain underscore are hidden Type : Bug Priority : Medium Gambas version : Master Product : Development Environment Description ----------- Until Gambas 3.9 only symbols with names that start with an underscore are hidden in the IDE. In the IDE in Master all variables are hidden, that CONTAIN an underscore. This behaviour is wrong. Only symbol names that start with an underscore should be hidden. From bugtracker at gambaswiki.org Sun Apr 8 16:33:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 08 Apr 2018 14:33:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- Comment #1 by Beno?t MINISINI: Where do you see that? From bugtracker at gambaswiki.org Sun Apr 8 18:00:31 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 08 Apr 2018 16:00:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- Comment #2 by C THAL: In the IDE editor From bugtracker at gambaswiki.org Sun Apr 8 18:00:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 08 Apr 2018 16:00:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- C THAL added an attachment: gb9.2.png From bugtracker at gambaswiki.org Sun Apr 8 18:00:59 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 08 Apr 2018 16:00:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- C THAL added an attachment: gb.3.10.90.2 git6412.72384c0 build1f4a06e4~ubuntu16.04.1.png From bugtracker at gambaswiki.org Sun Apr 8 18:24:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 08 Apr 2018 16:24:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Sun Apr 8 20:41:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 08 Apr 2018 18:41:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- Comment #3 by Beno?t MINISINI: Is it fixed by commit https://gitlab.com/gambas/gambas/commit/80c6f1fca9b6f617866d9f7dee164926fbbf2b2b ? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From shannon at inflecto.org Sun Apr 8 21:54:44 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Sun, 8 Apr 2018 14:54:44 -0500 Subject: [Gambas-user] xmlreader Gambas 3.10.0 test project link included Message-ID: ? adding reader.Close() gets it past a xml file that has comments that helps but of course it won't read the file with commentsif you remove the first comment at the begging of the dona.xml you will see what i mean. It will read the dona.xml until it run into a comment thenreader.Eof = true and it stops reading the file. That's where I'm stuck. I was unable to get Valmar.xml to read properly until I used XmlReader.Close() if XmlReader.Eof: Try Print reader.Read() If reader.Eof Then reader.Close() Break Endif Also, the Print reader.Read() for dona.xml yields only: 1 7 which is quite different than for the other xml files. What the integer returned from XmlReader.Read signifies, I have no clue because the documentation does not say. -- Lee On 04/03/2018 04:23 PM, Shannon Kuchler wrote: > I hope this is better. The link is to a test project that includes 5 example xml files only one the dona.xml has comments > > > ?https://www.dropbox.com/s/scnvmwhtdnr1dbh/Xml_Test-0.0.1.tar.gz?dl=0 > > -------------------------------------------------- This is the Gambas Mailing List: https://lists.gambas-basic.org/listinfo/user Search the list: https://lists.gambas-basic.org/cgi-bin/search.cgi Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Apr 9 11:00:22 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Apr 2018 11:00:22 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> Message-ID: 2018-04-07 18:47 GMT+02:00 Gianluigi : > > > 2018-04-07 18:15 GMT+02:00 Beno?t Minisini : > >> Le 07/04/2018 ? 02:02, vuott at tiscali.it a ?crit : >> >>> Hello, >>> >>> I do not understand why these two lines do not return the same result. >>> >>> Public Sub Main() >>> >>> Print CFloat(DateDiff(CDate("01/01/1970"), Now, gb.Second)) >>> >>> Print CFloat(Date.ToUnixTime(Now)) ' Obviously we have to activate >>> "gb.util" Component >>> >>> End >>> >>> >>> So that the two results are identical, I have to add 4 hours ! >>> >>> Public Sub Main() >>> >>> Print CFloat(DateDiff(CDate("01/01/1970 04:00:00"), Now, gb.Second)) >>> ' Here I have to add 4 hours ! >>> >>> Print CFloat(Date.ToUnixTime(Now)) >>> >>> End >>> >>> >>> regards >>> vuott >>> >>> >> It's a bug in Date.ToUnixTime() and Date.FromUnixTime() function. >> >> Can you try with commit https://gitlab.com/gambas/gamb >> as/commit/72384c0806071556d50e1e8870dd12f868985155 ? >> >> Regards, >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > Sorry, I know I'm the most ignorant of all, but I think the error is in > DateDif and not in ToUnixTime, as (perhaps) demonstrated as follows: > > Public Sub Main() > > unix > diff > > End > > > Private Sub unix() > > Dim i, u, r As Float > > i = 60 * 60 * 24 ' ms of one day > u = CFloat(Date.ToUnixTime(Now)) ' epoc ms > r = u / i > r = Frac(r) ' remainder > Print Time(r) ' UTC correct > > End > > Private Sub diff() > > Dim i, u, r As Float > > i = 60 * 60 * 24 ' ms of one day > u = CFloat(DateDiff("01/01/1970", Now, gb.Second)) ' epoc ms??? > r = u / i > r = Frac(r) ' remainder > Print Time(r) ' UTC incorrect (+ 4 hrs) > > End > > Regards > Gianluigi > Hi Benoit, Now both functions return + 4 hours compared to UTC time. Here in Italy + 2 hours as daylight saving time is in effect So I insist, for me ToUnixTime before was correct and the error is in DateDiff Regards Gianluigi [System] Gambas=3.10.90 80c6f1f (master) OperatingSystem=Linux Kernel=4.13.0-38-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=UNITY Theme=Cleanlooks Language=it_IT.UTF-8 ... -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Apr 9 13:47:03 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 9 Apr 2018 13:47:03 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> Message-ID: <709bb93a-b436-d6c3-ebf0-30630d03c478@gmail.com> Le 09/04/2018 ? 11:00, Gianluigi a ?crit?: > > Hi Benoit, > Now both functions return + 4 hours compared to UTC time. > Here in Italy + 2 hours as daylight saving time is in effect > > So I insist, for me ToUnixTime before was correct and the error is in > DateDiff > Regards > Gianluigi > I confirm the bug, but it is not in DateDiff(), which is a very rudimentary function. It's elsewhere, but I didn't find yet! -- Beno?t Minisini From g4mba5 at gmail.com Mon Apr 9 19:05:02 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 9 Apr 2018 19:05:02 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <709bb93a-b436-d6c3-ebf0-30630d03c478@gmail.com> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> <709bb93a-b436-d6c3-ebf0-30630d03c478@gmail.com> Message-ID: <837cca4b-56a3-279a-96cf-ce4e898fedd5@gmail.com> Le 09/04/2018 ? 13:47, Beno?t Minisini a ?crit?: > Le 09/04/2018 ? 11:00, Gianluigi a ?crit?: >> >> Hi Benoit, >> Now both functions return + 4 hours compared to UTC time. >> Here in Italy + 2 hours as daylight saving time is in effect >> >> So I insist, for me ToUnixTime before was correct and the error is in >> DateDiff >> Regards >> Gianluigi >> > > I confirm the bug, but it is not in DateDiff(), which is a very > rudimentary function. It's elsewhere, but I didn't find yet! > OK, I think I fixed it in commit https://gitlab.com/gambas/gambas/commit/de12caa1e784ba956bcf0e15a3b6efdc3cbe0c13. You will tell me. Regards, -- Beno?t Minisini From bagonergi at gmail.com Mon Apr 9 19:39:46 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 9 Apr 2018 19:39:46 +0200 Subject: [Gambas-user] Different quantities of seconds from UNIX date... In-Reply-To: <837cca4b-56a3-279a-96cf-ce4e898fedd5@gmail.com> References: <944919ae801fdf6c7efac38db793a2b6@tiscali.it> <127c8542-5355-1a1b-63e0-d52f75dd0d2a@gmail.com> <709bb93a-b436-d6c3-ebf0-30630d03c478@gmail.com> <837cca4b-56a3-279a-96cf-ce4e898fedd5@gmail.com> Message-ID: 2018-04-09 19:05 GMT+02:00 Beno?t Minisini : > Le 09/04/2018 ? 13:47, Beno?t Minisini a ?crit : > >> Le 09/04/2018 ? 11:00, Gianluigi a ?crit : >> >>> >>> Hi Benoit, >>> Now both functions return + 4 hours compared to UTC time. >>> Here in Italy + 2 hours as daylight saving time is in effect >>> >>> So I insist, for me ToUnixTime before was correct and the error is in >>> DateDiff >>> Regards >>> Gianluigi >>> >>> >> I confirm the bug, but it is not in DateDiff(), which is a very >> rudimentary function. It's elsewhere, but I didn't find yet! >> >> > OK, I think I fixed it in commit https://gitlab.com/gambas/gamb > as/commit/de12caa1e784ba956bcf0e15a3b6efdc3cbe0c13. > > You will tell me. > > Regards, > > -- > Beno?t Minisini > > Ok, now I get the correct UTC time from both functions (also from the function of vuott). Thank you very much Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Apr 9 20:12:09 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 9 Apr 2018 14:12:09 -0400 Subject: [Gambas-user] xmlreader Gambas 3.10.0 test project link included In-Reply-To: References: Message-ID: Yes, when I added reader.Close(), the only file with which there was a problem was the one with comments. I think it's a bug. Even the test module in the source tree fails to properly read the test, text.xml, file when it encounters the comment. Test project attached. -- Lee On 04/08/2018 03:54 PM, Shannon Kuchler wrote: > ? > > adding reader.Close() gets it past a xml file that has comments that helps but of course it won't read the file with comments > > if you remove the first comment at the begging of the dona.xml you will see what i mean. It will read the dona.xml until it > run into a comment thenreader.Eof = true and it stops reading the file. That's where I'm stuck. > > > > > I was unable to get Valmar.xml to read properly until I used XmlReader.Close() if XmlReader.Eof: > Try Print reader.Read() > If reader.Eof Then > reader.Close() > Break > Endif > > Also, the Print reader.Read() for dona.xml yields only: > 1 > 7 > > which is quite different than for the other xml files. > > What the integer returned from XmlReader.Read signifies, I have no clue because the documentation does not say. > > > -- > Lee > > > On 04/03/2018 04:23 PM, Shannon Kuchler wrote: >> I hope this is better. The link is to a test project that includes 5 example xml files only one the dona.xml has comments >> >> >> ?https://www.dropbox.com/s/scnvmwhtdnr1dbh/Xml_Test-0.0.1.tar.gz?dl=0 >> >> -------------- next part -------------- A non-text attachment was scrubbed... Name: xmlreader-0.0.1.tar.gz Type: application/gzip Size: 12048 bytes Desc: not available URL: From bugtracker at gambaswiki.org Mon Apr 9 23:02:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 09 Apr 2018 21:02:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1291: Symbols with names which contain underscore are hidden In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1291&from=L21haW4- Comment #4 by C THAL: Yes it is fixed now, thank you! C THAL changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Tue Apr 10 03:40:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 10 Apr 2018 01:40:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1289: in the editor of images / icons, indicating the means x and the medium y In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1289&from=L21haW4- Comment #2 by V?ctor PEREZ: guide, medium x; guide, medium 'Y' From bugtracker at gambaswiki.org Tue Apr 10 03:41:19 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 10 Apr 2018 01:41:19 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1289: in the editor of images / icons, indicating the means x and the medium y In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1289&from=L21haW4- V?ctor PEREZ added an attachment: mediumXY.jpg From bugtracker at gambaswiki.org Tue Apr 10 03:52:00 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 10 Apr 2018 01:52:00 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1292: failure to close form Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1292&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- failure to close form Type : Bug Priority : High Gambas version : 3.10 Product : Development Environment Description ----------- the sound is heard well, but when trying to close the form there is a fault. also happens in master version System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Tue Apr 10 03:54:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 10 Apr 2018 01:54:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1292: failure to close form In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1292&from=L21haW4- V?ctor PEREZ added an attachment: bug-sound.ogv From bugtracker at gambaswiki.org Tue Apr 10 03:57:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 10 Apr 2018 01:57:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1292: failure to close form In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1292&from=L21haW4- V?ctor PEREZ added an attachment: bug-sound-0.0.1.tar.gz From karl.reinl at fen-net.de Tue Apr 10 10:47:44 2018 From: karl.reinl at fen-net.de (Karl Reinl) Date: Tue, 10 Apr 2018 10:47:44 +0200 Subject: [Gambas-user] gbi3: warning: component gb.dbus.statusicon not found Message-ID: <1523350064.20122.24.camel@Scenic.local> Salut, found this in the 'make install' log today. gbi3: warning: component gb.dbus.statusicon not found configure says: || || THESE COMPONENTS ARE DISABLED: || - gb.qt5 || - gb.qt5.ext || - gb.qt5.opengl || - gb.qt5.webkit I attached the the logs [System] Gambas=3.10.90 de12caa (master) OperatingSystem=Linux Kernel=3.13.0-143-generic Architecture=x86 Distribution=Ubuntu 14.04.5 LTS Desktop=UNITY Theme=Plastique Language=de_DE.UTF-8 Memory=3029M [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 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-62RpS9ZpvO DEFAULTS_PATH=/usr/share/gconf/gnome-fallback.default.path DESKTOP_SESSION=gnome-fallback DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=gnome-fallback GDM_LANG=de_DE GIO_LAUNCHED_DESKTOP_FILE=/.local/share/applications/Gambas III.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=22946 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-9vAe3K GNOME_KEYRING_PID=3501 GPG_AGENT_INFO=/run/user/1000/keyring-9vAe3K/gpg:0:1 GTK_MODULES=canberra-gtk-module:overlay-scrollbar:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=de_DE.UTF-8 LANGUAGE=de_DE:en LC_MESSAGES=de_DE.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/gnome-fallback.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/local/games PWD= QT_NO_GLIB=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SELINUX_INIT=YES SESSION=gnome-fallback SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/3933,unix/:/tmp/.ICE-unix/3933 SHELL=/bin/bash SHLVL=0 SPEECHD_PORT=7560 SSH_AUTH_SOCK=/run/user/1000/keyring-9vAe3K/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime UBUNTU_MENUPROXY=0 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/3503 USER= USERNAME= WINDOWPATH=7 XAUTHORITY=/var/run/gdm/auth-for--Nn80gV/database XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome-fallback:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/gnome-fallback:/usr/share/gnome:/usr/local/share/:/usr/share/ XDG_MENU_PREFIX=gnome-flashback- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_ID=c3 XDG_VTNR=7 -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas3.comp.tar.bz2 Type: application/x-bzip-compressed-tar Size: 25243 bytes Desc: not available URL: From bugtracker at gambaswiki.org Tue Apr 10 20:56:03 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 10 Apr 2018 18:56:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1292: failure to close form In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1292&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From g4mba5 at gmail.com Tue Apr 10 21:03:07 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 10 Apr 2018 21:03:07 +0200 Subject: [Gambas-user] gbi3: warning: component gb.dbus.statusicon not found In-Reply-To: <1523350064.20122.24.camel@Scenic.local> References: <1523350064.20122.24.camel@Scenic.local> Message-ID: <55fa2c06-066c-dfbf-85df-88fbdfd82b35@gmail.com> Le 10/04/2018 ? 10:47, Karl Reinl a ?crit?: > Salut, > > found this in the 'make install' log today. > gbi3: warning: component gb.dbus.statusicon not found > > configure says: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.qt5 > || - gb.qt5.ext > || - gb.qt5.opengl > || - gb.qt5.webkit > > I attached the the logs > gb.dbus.statusicon is not a component from Gambas source code. I don't know where it comes from. Then the gb.qt5 development packages seems not to be installed. I cant' say more. -- Beno?t Minisini From karl.reinl at fen-net.de Tue Apr 10 22:19:41 2018 From: karl.reinl at fen-net.de (Karl Reinl) Date: Tue, 10 Apr 2018 22:19:41 +0200 Subject: [Gambas-user] gbi3: warning: component gb.dbus.statusicon not found In-Reply-To: <55fa2c06-066c-dfbf-85df-88fbdfd82b35@gmail.com> References: <1523350064.20122.24.camel@Scenic.local> <55fa2c06-066c-dfbf-85df-88fbdfd82b35@gmail.com> Message-ID: <1523391581.20122.33.camel@Scenic.local> Am Dienstag, den 10.04.2018, 21:03 +0200 schrieb Beno?t Minisini: > Le 10/04/2018 ? 10:47, Karl Reinl a ?crit : > > Salut, > > > > found this in the 'make install' log today. > > gbi3: warning: component gb.dbus.statusicon not found > > > > configure says: > > || > > || THESE COMPONENTS ARE DISABLED: > > || - gb.qt5 > > || - gb.qt5.ext > > || - gb.qt5.opengl > > || - gb.qt5.webkit > > > > I attached the the logs > > > > gb.dbus.statusicon is not a component from Gambas source code. I don't > know where it comes from. > > Then the gb.qt5 development packages seems not to be installed. > > I cant' say more. > Salut Beno?t, seems to be old stuff, found that. ~$ locate gb.dbus.statusicon /usr/lib/gambas3/gb.dbus.statusicon.component /usr/share/gambas3/control/gb.dbus.statusicon /usr/share/gambas3/control/gb.dbus.statusicon/texteditor.png /usr/share/gambas3/info/gb.dbus.statusicon.info /usr/share/gambas3/info/gb.dbus.statusicon.list ~$ cat /usr/lib/gambas3/gb.dbus.statusicon.component [Component] Key=gb.form.editor Version=3.7.90 Needs=Form Requires=gb.eval.highlight Yes, I know about qt5. -- Amicalement Charlie From bugtracker at gambaswiki.org Wed Apr 11 03:47:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 11 Apr 2018 01:47:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1292: failure to close form In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1292&from=L21haW4- Comment #1 by Beno?t MINISINI: It should be fixed in commit https://gitlab.com/gambas/gambas/commit/78ac58fb48e593d83120acf1ba021f5eb9ecca8a. By the way your bug title was really badly chosen! Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Wed Apr 11 16:29:37 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 11 Apr 2018 14:29:37 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1293: problems to interact with the terminal? (Playground) Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1293&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- problems to interact with the terminal? (Playground) Type : Request Priority : Low Gambas version : Unknown Product : Unknown Description ----------- 'by postapase 10 abr 2018 'http://novatocodegambas.blogspot.com.uy/ Public Sub Main() Dim A, B, C As Integer REPETIR1: Repeat Print "Ingrese n?mero par menor: " Try Input A 'si no es un n?mero repite If Error Then Goto REPETIR1 'sino es un n?mero par repite Until Not A Mod 2 REPETIR2: Repeat Print "Ingrese n?mero par Mayor a " & (A + 1) Try Input B 'si no es un n?mero repite If Error Then Goto REPETIR2 'sino es un n?mero par repite If B Mod 2 Then Goto REPETIR2 'si no es mayor que a+1 repite Until Not B <= (A - 2) C = A While C <= B Print C C += 2 Wend End System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Wed Apr 11 16:31:50 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 11 Apr 2018 14:31:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1293: problems to interact with the terminal? (Playground) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1293&from=L21haW4- V?ctor PEREZ added an attachment: console1.png From bugtracker at gambaswiki.org Fri Apr 13 16:20:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 13 Apr 2018 14:20:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1294: Modal opened Form is always centered Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1294&from=L21haW4- Michael ALTROGGE reported a new bug. Summary ------- Modal opened Form is always centered Type : Bug Priority : Low Gambas version : 3.10 Product : GUI components Description ----------- Button 1 in Form1 does: Form2.Show (Form2:Form_Open -> Me.Move(Mouse.ScreenX, Mouse.ScreenY) Result: Form2 top left shows on cursor position Button 2 in Form1 does: Form2.ShowModal (Form2:Form_Open -> Me.Move(Mouse.ScreenX, Mouse.ScreenY) Result: Form2 shows screen centered System information ------------------ [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=4.13.0-38-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=de_DE.UTF-8 Memory=3390M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-pMNBEdoxUi,guid=cb0e9287fa1b7258633dd4095ad06cbc DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_AUTOSTART_ID=105305bef9d198316152360876511481300000033250007 DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=de_DE GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=de_DE.UTF-8 LANGUAGE=de_DE LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/3325,unix/:/tmp/.ICE-unix/3325 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=3396 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bugtracker at gambaswiki.org Fri Apr 13 16:20:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 13 Apr 2018 14:20:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1294: Modal opened Form is always centered In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1294&from=L21haW4- Michael ALTROGGE added an attachment: Test_Fehler_Modal.tar.gz From bugtracker at gambaswiki.org Fri Apr 13 16:29:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 13 Apr 2018 14:29:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1294: Modal opened Form is always centered In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1294&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri Apr 13 17:11:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 13 Apr 2018 15:11:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1294: Modal opened Form is always centered In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1294&from=L21haW4- Comment #1 by Beno?t MINISINI: Fixed in commit https://gitlab.com/gambas/gambas/commit/c88b94cfbd8b8dbaffbaecf502fc0fdc2bbf161b Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sun Apr 15 06:05:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 04:05:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1295: Let select date on single click on datebox Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1295&from=L21haW4- Safiur RAHMAN reported a new bug. Summary ------- Let select date on single click on datebox Type : Request Priority : Low Gambas version : Master Product : Unknown Description ----------- We can select a date in datebox with double click. This is easy with mouse but difficult with touch screen. Users are facing problem in date selection from datebox with applications on touch screen. I request you to provide date selection on single click or some extra button or some way to make date selection easy in touch screen applications. From bugtracker at gambaswiki.org Sun Apr 15 14:19:25 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 12:19:25 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Michael ALTROGGE reported a new bug. Summary ------- not able to use db.find or sql.request with postgreSQL Type : Request Priority : Medium Gambas version : 3.10 Product : Database component Description ----------- First, i'm using postgreSQL and this works in pgAdmin III: SELECT "MA00"."HDR", "MA00"."TXT" FROM public."MA00" WHERE "MA00"."MDL" = 'ADRESSEN' AND "MA00"."TNR" = 1 AND "MA00"."AS4LOCAL" = 'DE'; this is the query string creation in gambas which works also: strSQL = "SELECT \"MA00\".\"HDR\", \"MA00\".\"TXT\" " strSQL &= "FROM \"public\".\"MA00\" " strSQL &= "WHERE \"MA00\".\"MDL\" = '" & VAR.INFMOD & "' AND " strSQL &= "\"MA00\".\"TNR\" = " & VAR.INFCOD & " AND " strSQL &= "\"MA00\".\"AS4LOCAL\" = '" & VAR.SYSLNG & "';" SQLRequest This is what I try ... Debug "INFCOD: " & VAR.INFCOD, "INFMOD: " & VAR.INFMOD, "SYSLNG: " & VAR.SYSLNG objSqlRequest = New SqlRequest(SYS.conMain) Print objRequest.Select("HDR", "TXT").From("MA00").Where("MDL = &1", VAR.INFCOD).And().Where("TNR = &2", VAR.INFMOD).And().Where("AS4LOCAL = &3", VAR.SYSLNG).OrderBy("HDR DESC").Get() Debug gives me: INFCOD: 1 INFMOD: ADRESSEN SYSLNG: DE SELECT "HDR","TXT" FROM "MA00" WHERE (MDL = E'ADRESSEN') AND (TNR = ) AND (AS4LOCAL = ) ORDER BY "HDR" DESC neither TNR or AS4LOCAL are filled and MDL has the wrong value, beside that naming is also wrong (table has to be prefixed with schema and fields has to be prefixed with table) but trying different possibilities within SQLRequest will not lead me to success ... what did I do wrong??? I tried to get DB.Find to work bat same problems ... System information ------------------ [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=4.13.0-38-generic Architecture=x86_64 Distribution=Linux Mint 18.3 Sylvia Desktop=CINNAMON Theme=Gtk Language=de_DE.UTF-8 Memory=3390M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DdhAFpsA3A,guid=88a4aec47827e9817dc919b95ad326c2 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_AUTOSTART_ID=104373d92f142e0395152378745935338000000033660007 DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_LANG=de_DE GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=de_DE.UTF-8 LANGUAGE=de_DE LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/3366,unix/:/tmp/.ICE-unix/3366 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=3541 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From shordi at gmail.com Sun Apr 15 15:03:50 2018 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sun, 15 Apr 2018 13:03:50 +0000 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: The only way to ensure the fields name in sqlite is using the "as" clause in query. Is what the sqlite web says. Try with it. It should work. Regards El dom., 15 abr. 2018 14:20, escribi?: > http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- > > Michael ALTROGGE reported a new bug. > > Summary > ------- > > not able to use db.find or sql.request with postgreSQL > > Type : Request > Priority : Medium > Gambas version : 3.10 > Product : Database component > > > Description > ----------- > > First, i'm using postgreSQL and this works in pgAdmin III: > > SELECT "MA00"."HDR", "MA00"."TXT" FROM public."MA00" > WHERE "MA00"."MDL" = 'ADRESSEN' AND "MA00"."TNR" = 1 AND "MA00"."AS4LOCAL" > = 'DE'; > > this is the query string creation in gambas which works also: > > strSQL = "SELECT \"MA00\".\"HDR\", \"MA00\".\"TXT\" " > strSQL &= "FROM \"public\".\"MA00\" " > strSQL &= "WHERE \"MA00\".\"MDL\" = '" & VAR.INFMOD & "' AND " > strSQL &= "\"MA00\".\"TNR\" = " & VAR.INFCOD & " AND " > strSQL &= "\"MA00\".\"AS4LOCAL\" = '" & VAR.SYSLNG & "';" > > > SQLRequest > > This is what I try ... > > Debug "INFCOD: " & VAR.INFCOD, "INFMOD: " & VAR.INFMOD, "SYSLNG: " & > VAR.SYSLNG > objSqlRequest = New SqlRequest(SYS.conMain) > Print objRequest.Select("HDR", "TXT").From("MA00").Where("MDL = &1", > VAR.INFCOD).And().Where("TNR = &2", VAR.INFMOD).And().Where("AS4LOCAL = > &3", VAR.SYSLNG).OrderBy("HDR DESC").Get() > > Debug gives me: > > INFCOD: 1 INFMOD: ADRESSEN SYSLNG: DE > SELECT "HDR","TXT" FROM "MA00" WHERE (MDL = E'ADRESSEN') AND (TNR = ) AND > (AS4LOCAL = ) ORDER BY "HDR" DESC > > neither TNR or AS4LOCAL are filled and MDL has the wrong value, beside > that naming is also wrong (table has to be prefixed with schema and fields > has to be prefixed with table) but trying different possibilities within > SQLRequest will not lead me to success ... what did I do wrong??? > > I tried to get DB.Find to work bat same problems ... > > > System information > ------------------ > > [System] > Gambas=3.10.90 > OperatingSystem=Linux > Kernel=4.13.0-38-generic > Architecture=x86_64 > Distribution=Linux Mint 18.3 Sylvia > Desktop=CINNAMON > Theme=Gtk > Language=de_DE.UTF-8 > Memory=3390M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.803.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DdhAFpsA3A,guid=88a4aec47827e9817dc919b95ad326c2 > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DESKTOP_AUTOSTART_ID=104373d92f142e0395152378745935338000000033660007 > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GDMSESSION=cinnamon > GDM_LANG=de_DE > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > LANG=de_DE.UTF-8 > LANGUAGE=de_DE > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > > PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 > QT_QPA_PLATFORMTHEME=qgnomeplatform > QT_STYLE_OVERRIDE=gtk > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/3366,unix/:/tmp/.ICE-unix/3366 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=3541 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c2 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sun Apr 15 15:11:14 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 13:11:14 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #1 by Beno?t MINISINI: You didn't understand that you are calling different methods, and so the substitution index always starts with "&1": objSqlRequest = New SqlRequest(SYS.conMain) Print objRequest.Select("HDR", "TXT").From("MA00").Where("MDL = &1", VAR.INFCOD).And().Where("TNR = &1", VAR.INFMOD).And().Where("AS4LOCAL = &1", VAR.SYSLNG).OrderBy("HDR DESC").Get() From bugtracker at gambaswiki.org Sun Apr 15 22:41:36 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 20:41:36 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1289: in the editor of images / icons, indicating the means x and the medium y In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1289&from=L21haW4- Comment #3 by Beno?t MINISINI: OK, you didn't look at the grid. If you toggle the grid button in the toolbar (the button with crossed lines inside on your screenshot), the image displays a grid. On the property panel to the right, you can define the number of pixels between each grid line, and the grid snap, i.e. how much the cursor position will be rounded. If you set zero, there will be no grid snap. And you can even define if you want diagonal grid lines too. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Sun Apr 15 23:12:06 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 21:12:06 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #2 by Michael ALTROGGE: First, thank you for the fast answer (as usual) :) But maybe you should understand how important an existing and "working" documantation is: http://gambaswiki.org/wiki/comp/gb.db/sqlrequest?nh says: Print hSqlRequest.Select("id", "name", "age").From("people").Where("age >= &1", iAgeMin).And().Where("age <= &2", iAgeMax).OrderBy("name", "age DESC").Get() Anyhow, IT DID NOT WORK Print objRequest.Select("HDR", "TXT").From("MA00").Where("MDL = &1", VAR.INFCOD).And().Where("TNR = &1", VAR.INFMOD).And().Where("AS4LOCAL = &1", VAR.SYSLNG).OrderBy("HDR DESC").Get() result in SELECT "HDR","TXT" FROM "MA00" WHERE (MDL = E'ADRESSEN') AND (TNR = 1) AND (AS4LOCAL = E'DE' ) ORDER BY "HDR" DESC This is not a working SQL Request in no way ... even without the >E'<'s it will work with mySQL (not tested) but will not work with postgreSQL ... About gb.db: ... The class preserves Gambas DBMS independence. In other words the same code will produce a request that is syntactically correct for the dialect of the underlying database. ... will result in an SQL DML sentence that is correct for the database type specified by the hConn Connection ... In my case the connection typ IS postgres and while using sqlrequest and db.find the resulting SQL DML sentence is wrong ... From bugtracker at gambaswiki.org Sun Apr 15 23:13:31 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 21:13:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1293: problems to interact with the terminal? (Playground) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1293&from=L21haW4- Comment #1 by Beno?t MINISINI: Playground has no terminal support, so the line "Try Input A" fails continuously. And I don't speak spanish, so please put only english in your bug report! Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Sun Apr 15 23:17:49 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 21:17:49 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #3 by Beno?t MINISINI: Sorry, then it's my fault, I will fix the documentation. The IDE database editor uses the SqlRequest class, and I have no problem to access my PostgreSQL databases with it. So please provide a full project that reproduces your problem. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Sun Apr 15 23:22:34 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 21:22:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1295: Let select date on single click on datebox In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1295&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Apr 16 01:25:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 23:25:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #4 by Michael ALTROGGE: here we go ... Michael ALTROGGE changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Apr 16 01:27:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 15 Apr 2018 23:27:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Michael ALTROGGE added an attachment: Test_postgres.tar.gz From bugtracker at gambaswiki.org Mon Apr 16 05:08:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 03:08:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1293: problems to interact with the terminal? (Playground) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1293&from=L21haW4- Comment #2 by V?ctor PEREZ: Well, it does not have terminal support, I did not know. part of the code is in Spanish, it is the code that was testing, but the title is in English. I know he only speaks French and English. thanks for the info regards From bugtracker at gambaswiki.org Mon Apr 16 13:27:52 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 11:27:52 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #5 by Michael ALTROGGE: Beno?t MINISINI ... The IDE database editor uses the SqlRequest class, and I have no problem to access my PostgreSQL databases with it. ... Hmmm ... I have problems with it, see atached Screenshot From bugtracker at gambaswiki.org Mon Apr 16 13:28:07 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 11:28:07 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Michael ALTROGGE added an attachment: Gambas Verbindungsmanager Fehler.png From bugtracker at gambaswiki.org Mon Apr 16 15:05:04 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 13:05:04 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #6 by Beno?t MINISINI: Strange, I cannot execute the INSERT query located in the 'insert.sql' file of your project... I get a `Query failed, column "DE" does not exist' message, whereas "DE" is a value, not a column name in the request! From bugtracker at gambaswiki.org Mon Apr 16 16:48:53 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 14:48:53 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #7 by Beno?t MINISINI: Anyway, is the behavior better with commit https://gitlab.com/gambas/gambas/commit/cc96782eee4a67aeb706c0c97ffec41950a26c07 ? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Mon Apr 16 16:55:45 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 14:55:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #8 by Beno?t MINISINI: OK, I know why your INSERT query does not work: this is not a valid PostgreSQL syntax. Strings are delimited with quotes. Only field names (or table names) are delimited with double quotes. Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Apr 16 17:00:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 15:00:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #9 by Beno?t MINISINI: The other problem with PostgreSQL is that you have to quote field or table names as soon as they are defined in upper case. Otherwise PostgreSQL seems to convert them to lower case. "Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case." says the PostgreSQL documentation. It seems weird to me, but it would explain the errors you get. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Mon Apr 16 19:27:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 17:27:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #10 by Michael ALTROGGE: 6 8 SORRY thats my fault ... I build the testproject from my main project and it was late (maybe to late ... SA was my birthday and a little party was SO) :( ... and you're right (as mostly) Fields have to be quotet by double (") and string values with single (') quotes ... again sorry for that 7 will test as soon as possible 9 ok but what can i do? a while ago i could not use the result's from a query (builded by hand) with resErgebnis!FIELD (even when i try select FIELD as Field (or field) ... but that is fixed ... just tested strHeader = SYS.resMain[0] strText = SYS.resMain[1] strHeader = SYS.resMain!"HDR" strText = SYS.resMain!"TXT" Michael ALTROGGE changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Apr 16 19:35:43 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 17:35:43 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #11 by Michael ALTROGGE: (bit tricky that bugtracker) both work fine. After all I didn't get on which point I can select the schema i'm using ... Hand quotet: SELECT blah blubb FROM public."MA00" and SELECT blah blubb FROM test."MA00" how is this possible with the SQLRequest/db.find ? From bugtracker at gambaswiki.org Mon Apr 16 19:48:31 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 17:48:31 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1295: Let select date on single click on datebox In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1295&from=L21haW4- Comment #1 by Beno?t MINISINI: Done in commit https://gitlab.com/gambas/gambas/commit/aaeebacc2f86eb99692d53bc10e5c0fddd45c6bb. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Mon Apr 16 19:50:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 17:50:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #12 by Beno?t MINISINI: It's normally automatically handled as soon as your table name has the "." form. Please provide me a working example that creates the schema, and the table inside the schema, because the previous example did just create the table. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Mon Apr 16 20:24:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 18:24:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #13 by Michael ALTROGGE: pgadmin III claims that this will create the schema: -- Schema: test -- DROP SCHEMA test; CREATE SCHEMA test AUTHORIZATION "NSAP"; <-- change to fit your needs this will create the table: -- Table: "test"."MA00" -- DROP TABLE "test"."MA00"; CREATE TABLE "test"."MA00" ( "INDX" serial NOT NULL, "MNDT" integer, "AS4LOCAL" character varying(2) NOT NULL, "AS4VERS" character(8), "MDL" character varying(64) NOT NULL, "TNR" integer NOT NULL, "HDR" character varying(30) NOT NULL, "TXT" character varying(5000) NOT NULL, "AS4USER" character(12) NOT NULL, "AS4DATE" date NOT NULL, "AS4TIME" time without time zone NOT NULL, CONSTRAINT "MA00-PK" PRIMARY KEY ("INDX") ) WITH ( OIDS=FALSE ); ALTER TABLE "test"."MA00" OWNER TO NSAP; <-- change to fit your needs and this will insert a row INSERT INTO "test"."MA00"( "INDX", "MNDT", "AS4LOCAL", "AS4VERS", "MDL", "TNR", "HDR", "TXT", "AS4USER", "AS4DATE", "AS4TIME") VALUES (1,1000,'DE','1.00.00 ','ADRESSEN',2,'Testtitel','Testeintrag','1000 ','2018-04-16','04:10:00'); Hope that this time I got everything right ... Interesting (for me) was that pgadmin quotet the schema test with " (double) but the schema public is not quotet ... Michael ALTROGGE changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Mon Apr 16 20:28:45 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 18:28:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #14 by Beno?t MINISINI: Yes, this is the PostgreSQL syntax: schema names must not be quoted. From bugtracker at gambaswiki.org Mon Apr 16 20:59:02 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Mon, 16 Apr 2018 18:59:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #15 by Beno?t MINISINI: This should be better with commit https://gitlab.com/gambas/gambas/commit/87f546bb8166d699c62db289a237e693b7ff207f Beno?t MINISINI changed the state of the bug to: NeedsInfo. From mckaygerhard at gmail.com Tue Apr 17 16:56:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 17 Apr 2018 10:56:25 -0400 Subject: [Gambas-user] can i specify a path to my modules or libs please how? Message-ID: i want to made my ow daemon and need to load/use others dinamically made modules/programs inside that deamon how can i set that from the code? the library path or module? please! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Apr 17 18:24:04 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 17 Apr 2018 18:24:04 +0200 Subject: [Gambas-user] can i specify a path to my modules or libs please how? In-Reply-To: References: Message-ID: <20180417162404.GG926@highrise.localdomain> On Tue, 17 Apr 2018, PICCORO McKAY Lenz wrote: > i want to made my ow daemon and need to load/use others dinamically made > modules/programs inside that deamon > > how can i set that from the code? the library path or module? > I don't know if there is a good way to do this now, but I'll tell you how I did this three years ago. It's not for the faint of heart, but up to the occasional svn/git merge conflict, it has been working here. About the scope: In some projects, I wanted to allow plugins written in Gambas, which the user can store in standalone text files or .tar.gz source archives somewhere under $HOME/.config. These can be loaded dynamically and interact with the main program through a monolithic Context object which is passed to the plugin constructor. First you need to enable loading of components by absolute paths. I attach a patch which should apply to git master, then you have to recompile Gambas. IIRC Benoit considers this a security risk, so it's not in the official Gambas source tree. Next, look at the Plugins.module in the attached sample project. This is where the fun starts. You can pass a text file or project source archive to Plugins.Add(). In both cases, the Plugins module copies the source code into a temporary location, vamps it up into a component project and builds that (you need to have gbc3 and gba3 installed). Thanks to the patched interpreter, this component can be loaded via Component.Load() now. The standalone class file or the startup class of the .tar.gz project is instantiated with the Context object, and that's it. If you can get the attached project to run, you will see the spinning triangle in the DrawingArea from the main program as well as the current time being displayed in the top-left corner via the plugin. That said, I wouldn't recommend this way, obviously. I just wanted to show that it can be done in a way that's adequate if you make a hobby project, like I did in 2015. (And that code hasn't been touched since.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- diff --git a/main/gbx/gbx_archive.c b/main/gbx/gbx_archive.c index a446c27e3..7b587b291 100644 --- a/main/gbx/gbx_archive.c +++ b/main/gbx/gbx_archive.c @@ -268,6 +268,11 @@ void ARCHIVE_load(ARCHIVE *arch, bool load_exp) name = &arch->path[1]; } + else if (*arch->path == '/') + { + ARCHIVE_path = STRING_new_zero(FILE_get_dir(arch->path)); + name = FILE_get_name(arch->path); + } else name = FILE_get_name(arch->path); -------------- next part -------------- A non-text attachment was scrubbed... Name: plugtest-0.0.1.tar.gz Type: application/gzip Size: 14556 bytes Desc: not available URL: From mckaygerhard at gmail.com Tue Apr 17 21:02:58 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 17 Apr 2018 15:02:58 -0400 Subject: [Gambas-user] can i specify a path to my modules or libs please how? In-Reply-To: <20180417162404.GG926@highrise.localdomain> References: <20180417162404.GG926@highrise.localdomain> Message-ID: umm interesting way Tobias .. i get that mail and read it too! umm in conclusion "it cannot be", but now i ask something about gambas library/modules if i have in my project only module sources and in last step i poin that use library, this mix can be done? i mean, that the final product due the sources are "linked" or not real in the project will use the library? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-17 12:24 GMT-04:00 Tobias Boege : > On Tue, 17 Apr 2018, PICCORO McKAY Lenz wrote: > > i want to made my ow daemon and need to load/use others dinamically made > > modules/programs inside that deamon > > > > how can i set that from the code? the library path or module? > > > > I don't know if there is a good way to do this now, but I'll tell you > how I did this three years ago. It's not for the faint of heart, but > up to the occasional svn/git merge conflict, it has been working here. > > About the scope: In some projects, I wanted to allow plugins written > in Gambas, which the user can store in standalone text files or .tar.gz > source archives somewhere under $HOME/.config. These can be loaded > dynamically and interact with the main program through a monolithic > Context object which is passed to the plugin constructor. > > First you need to enable loading of components by absolute paths. > I attach a patch which should apply to git master, then you have to > recompile Gambas. IIRC Benoit considers this a security risk, so > it's not in the official Gambas source tree. > > Next, look at the Plugins.module in the attached sample project. > This is where the fun starts. You can pass a text file or project > source archive to Plugins.Add(). In both cases, the Plugins module > copies the source code into a temporary location, vamps it up into > a component project and builds that (you need to have gbc3 and gba3 > installed). Thanks to the patched interpreter, this component can > be loaded via Component.Load() now. The standalone class file or > the startup class of the .tar.gz project is instantiated with the > Context object, and that's it. > > If you can get the attached project to run, you will see the spinning > triangle in the DrawingArea from the main program as well as the current > time being displayed in the top-left corner via the plugin. > > That said, I wouldn't recommend this way, obviously. I just wanted to > show that it can be done in a way that's adequate if you make a hobby > project, like I did in 2015. (And that code hasn't been touched since.) > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 17 21:22:12 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 17 Apr 2018 21:22:12 +0200 Subject: [Gambas-user] can i specify a path to my modules or libs please how? In-Reply-To: References: <20180417162404.GG926@highrise.localdomain> Message-ID: <7868d2af-2068-c2bc-7f16-15d12cac9fee@gmail.com> Le 17/04/2018 ? 21:02, PICCORO McKAY Lenz a ?crit?: > umm interesting way Tobias .. i get that mail and read it too! > > umm in conclusion "it cannot be", but now i ask something about gambas > library/modules > > if i have in my project only module sources and in last step i poin that > use library, this mix can be done? > > i mean, that the? final product due the sources are "linked" or not real > in the project will use the library? > Component.Load(":/:") will search for a Gambas executable name ":.gambas" in the "$XDG_DATA_HOME/gambas3/lib/" directory - $XDG_DATA_HOME being "~/.local/share/" by default. If you can compile and install your plugin there, you will be able to load it on demand. No need to patch the interpreter then. You just need a home directory for the user running your program. Regards, -- Beno?t Minisini From taboege at gmail.com Tue Apr 17 21:46:21 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 17 Apr 2018 21:46:21 +0200 Subject: [Gambas-user] can i specify a path to my modules or libs please how? In-Reply-To: References: <20180417162404.GG926@highrise.localdomain> Message-ID: <20180417194621.GH926@highrise.localdomain> On Tue, 17 Apr 2018, PICCORO McKAY Lenz wrote: > 2018-04-17 12:24 GMT-04:00 Tobias Boege : > > > On Tue, 17 Apr 2018, PICCORO McKAY Lenz wrote: > > > i want to made my ow daemon and need to load/use others dinamically made > > > modules/programs inside that deamon > > > > > > how can i set that from the code? the library path or module? > > > > > > > I don't know if there is a good way to do this now, but I'll tell you > > how I did this three years ago. It's not for the faint of heart, but > > up to the occasional svn/git merge conflict, it has been working here. > > > > About the scope: In some projects, I wanted to allow plugins written > > in Gambas, which the user can store in standalone text files or .tar.gz > > source archives somewhere under $HOME/.config. These can be loaded > > dynamically and interact with the main program through a monolithic > > Context object which is passed to the plugin constructor. > > > > First you need to enable loading of components by absolute paths. > > I attach a patch which should apply to git master, then you have to > > recompile Gambas. IIRC Benoit considers this a security risk, so > > it's not in the official Gambas source tree. > > > > Next, look at the Plugins.module in the attached sample project. > > This is where the fun starts. You can pass a text file or project > > source archive to Plugins.Add(). In both cases, the Plugins module > > copies the source code into a temporary location, vamps it up into > > a component project and builds that (you need to have gbc3 and gba3 > > installed). Thanks to the patched interpreter, this component can > > be loaded via Component.Load() now. The standalone class file or > > the startup class of the .tar.gz project is instantiated with the > > Context object, and that's it. > > > > If you can get the attached project to run, you will see the spinning > > triangle in the DrawingArea from the main program as well as the current > > time being displayed in the top-left corner via the plugin. > > > > That said, I wouldn't recommend this way, obviously. I just wanted to > > show that it can be done in a way that's adequate if you make a hobby > > project, like I did in 2015. (And that code hasn't been touched since.) > > > umm interesting way Tobias .. i get that mail and read it too! > > umm in conclusion "it cannot be", but now i ask something about gambas > library/modules > > if i have in my project only module sources and in last step i poin that > use library, this mix can be done? > > i mean, that the final product due the sources are "linked" or not real in > the project will use the library? > Oh right, I left out listing the easier solutions because they weren't satisfying for me. But if you want to use standard Gambas features, you have to put your library into the Gambas library search path. This is $XDG_DATA_HOME/gambas3/lib or $HOME/.local/share/gambas3/lib (if XDG_DATA_HOME isn't set). If you develop a library project in the IDE and make an executable out of it, a copy of your library is automatically saved into that directory by the IDE. In your main project, you can now add your libraries via the Properties > Libraries menu. This is probably not what you meant by "dynamic", as you have to do this while developing your main program. The most dynamic you get is using Component.Load(":/:") For example if you have a library "testlib" with version 0.0 and vendor "tboege", there will be a corresponding file $XDG_DATA_HOME/gambas3/lib/tboege/testlib:0.0.gambas and you can load it at runtime with: Component.Load(":tboege/testlib:0.0") This loads the library into your Gambas process. Note that since the compiler didn't know that you will load this library, you can't use class names exported by it directly in your main project. Either forward- declare them or look it up using Class.Load(). The only requirement to this method is that the library is compiled into a .gambas file and installed in the appropriate search directory. [ There is a comment in the source code that says you can also place the libraries inside the project directory without a vendor. Those will be found too. This is apparently for backwards compatibility and isn't "dynamic" anyway, I think. ] Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Tue Apr 17 22:20:02 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 17 Apr 2018 22:20:02 +0200 Subject: [Gambas-user] can i specify a path to my modules or libs please how? In-Reply-To: <20180417162404.GG926@highrise.localdomain> References: <20180417162404.GG926@highrise.localdomain> Message-ID: Am 17.04.2018 um 18:24 schrieb Tobias Boege: > First you need to enable loading of components by absolute paths. > I attach a patch which should apply to git master, then you have to > recompile Gambas. IIRC Benoit considers this a security risk, so > it's not in the official Gambas source tree. Urgs, that's ugly. Why not recommend the standard way of using libraries as it is common now for Gambas since 3.7 and/or 3.8 (I guess)? A project, flagged as library, compiled by the IDE, will be created automatically in ~/.local/share/gambas3/lib/$vendorname If installed as a package for a linux distro a project will always be installed in /usr/lib/gambas3/$vendorname The interpreter searches libraries here: 1) The same directory the executable resides 2) ~/.local/share/gambas3/lib 3) /usr/lib/gambas3 I use a lot of my own Gambas3 libraries exact in this way. 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 bugtracker at gambaswiki.org Wed Apr 18 01:50:13 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 17 Apr 2018 23:50:13 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #16 by Michael ALTROGGE: Ok Beno?t, Just a simple test with the IDE database editor with the latest daily build: schema in lower case : works schema in UPPER CASE : Error, see Screenshot schema in Mixed CASE : Error, see Screenshot NOT testet with db.find or SQLRequest ... Michael ALTROGGE changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Wed Apr 18 01:50:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 17 Apr 2018 23:50:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Michael ALTROGGE added an attachment: GB: pg schema Upper Case. From bugtracker at gambaswiki.org Wed Apr 18 01:50:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 17 Apr 2018 23:50:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Michael ALTROGGE added an attachment: GB pg schema Mixed Case.png From bugtracker at gambaswiki.org Wed Apr 18 03:18:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 18 Apr 2018 01:18:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #17 by Beno?t MINISINI: It should be fixed in commit https://gitlab.com/gambas/gambas/commit/6712de717c7bbf5ded904cb43e7b8e83d49dd569. Beno?t MINISINI changed the state of the bug to: Fixed. From rwe-sse at osnanet.de Wed Apr 18 11:51:08 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 18 Apr 2018 11:51:08 +0200 Subject: [Gambas-user] Drag and Drop - howto Message-ID: Last year I started a project which could benefit from dragging elements from one GridView to another with the mouse. As I was still developing the deeper code, I didn't take the time to dive in this, and this year I would like to complete it. Just had a look at the old code parts, and still do not grasp how these Drag, MouseDrag etc. are meant to work together. Public Sub GridView1_MouseDrag() TextBox1.Text = GridView1.Row & "::" & GridView1.Column End This starts as expected, but then keeps going - even beyond the borders of GridView1. This makes it somewhat combersome if you need a start value to be handed over to the drop point. I only see a chance when setting a flag at its first call and saving the value(s) only once. Public Sub GridView1_Drop() TextBox1.Text = "Stop" End This one is never raised, neither when the mouse button is depressed whithin nor when without GridView1. Why are there events called Mouse-something and NOT Mouse-something? Maybe someone here can shed a light on this for me. Regards Rolf From g4mba5 at gmail.com Wed Apr 18 12:09:25 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 18 Apr 2018 12:09:25 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: References: Message-ID: Le 18/04/2018 ? 11:51, Rolf-Werner Eilert a ?crit?: > Last year I started a project which could benefit from dragging elements > from one GridView to another with the mouse. > > As I was still developing the deeper code, I didn't take the time to > dive in this, and this year I would like to complete it. Just had a look > at the old code parts, and still do not grasp how these Drag, MouseDrag > etc. are meant to work together. > > Public Sub GridView1_MouseDrag() > > ?? TextBox1.Text = GridView1.Row & "::" & GridView1.Column > > End > > This starts as expected, but then keeps going - even beyond the borders > of GridView1. This makes it somewhat combersome if you need a start > value to be handed over to the drop point. I only see a chance when > setting a flag at its first call and saving the value(s) only once. > > Public Sub GridView1_Drop() > > ? TextBox1.Text = "Stop" > > End > > This one is never raised, neither when the mouse button is depressed > whithin nor when without GridView1. > > Why are there events called Mouse-something and NOT Mouse-something? > > Maybe someone here can shed a light on this for me. > > Regards > Rolf > Have you read the page about "Drag & Drop" on the wiki? -- Beno?t Minisini From rwe-sse at osnanet.de Wed Apr 18 12:43:43 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 18 Apr 2018 12:43:43 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: References: Message-ID: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> Am 18.04.2018 um 12:09 schrieb Beno?t Minisini: > Le 18/04/2018 ? 11:51, Rolf-Werner Eilert a ?crit?: >> Last year I started a project which could benefit from dragging >> elements from one GridView to another with the mouse. >> >> As I was still developing the deeper code, I didn't take the time to >> dive in this, and this year I would like to complete it. Just had a >> look at the old code parts, and still do not grasp how these Drag, >> MouseDrag etc. are meant to work together. >> >> Public Sub GridView1_MouseDrag() >> >> ??? TextBox1.Text = GridView1.Row & "::" & GridView1.Column >> >> End >> >> This starts as expected, but then keeps going - even beyond the >> borders of GridView1. This makes it somewhat combersome if you need a >> start value to be handed over to the drop point. I only see a chance >> when setting a flag at its first call and saving the value(s) only once. >> >> Public Sub GridView1_Drop() >> >> ?? TextBox1.Text = "Stop" >> >> End >> >> This one is never raised, neither when the mouse button is depressed >> whithin nor when without GridView1. >> >> Why are there events called Mouse-something and NOT Mouse-something? >> >> Maybe someone here can shed a light on this for me. >> >> Regards >> Rolf >> > > Have you read the page about "Drag & Drop" on the wiki? > Nope, is there? I never found one. At least I cannot remember... ;) Regards Rolf From g4mba5 at gmail.com Wed Apr 18 12:46:02 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 18 Apr 2018 12:46:02 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> References: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> Message-ID: <64aabfe4-0fb9-53c2-d6e4-60bd669ddd9b@gmail.com> Le 18/04/2018 ? 12:43, Rolf-Werner Eilert a ?crit?: >> >> Have you read the page about "Drag & Drop" on the wiki? >> > > Nope, is there? I never found one. At least I cannot remember... ;) > > Regards > Rolf > http://gambaswiki.org/wiki/doc/dragndrop It's very short, but it tells you exactly what to do. -- Beno?t Minisini From rwe-sse at osnanet.de Wed Apr 18 13:26:41 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 18 Apr 2018 13:26:41 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: <64aabfe4-0fb9-53c2-d6e4-60bd669ddd9b@gmail.com> References: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> <64aabfe4-0fb9-53c2-d6e4-60bd669ddd9b@gmail.com> Message-ID: <146ec0dd-25ad-2750-c3db-ffe967062a6c@osnanet.de> Am 18.04.2018 um 12:46 schrieb Beno?t Minisini: > Le 18/04/2018 ? 12:43, Rolf-Werner Eilert a ?crit?: >>> >>> Have you read the page about "Drag & Drop" on the wiki? >>> >> >> Nope, is there? I never found one. At least I cannot remember... ;) >> >> Regards >> Rolf >> > > http://gambaswiki.org/wiki/doc/dragndrop > > It's very short, but it tells you exactly what to do. > Thank you, I actually never found this. Yes, it is short, but it looks as if all necessary information is there. And if not - I'll be back here with a question! Regards Rolf From chrisml at deganius.de Wed Apr 18 13:55:57 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 18 Apr 2018 13:55:57 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> References: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> Message-ID: <1498b137-3952-e5f4-c91a-477c378da2fb@deganius.de> Am 18.04.2018 um 12:43 schrieb Rolf-Werner Eilert: >> Have you read the page about "Drag & Drop" on the wiki? >> > > Nope, is there? I never found one. At least I cannot remember... ;) http://gambaswiki.org/wiki/doc/dragndrop 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 rwe-sse at osnanet.de Wed Apr 18 18:39:53 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 18 Apr 2018 18:39:53 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: <1498b137-3952-e5f4-c91a-477c378da2fb@deganius.de> References: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> <1498b137-3952-e5f4-c91a-477c378da2fb@deganius.de> Message-ID: <453b27ca-1ff8-a47c-dc1e-ffdc18726d18@osnanet.de> Am 18.04.2018 um 13:55 schrieb Christof Thalhofer: > Am 18.04.2018 um 12:43 schrieb Rolf-Werner Eilert: > >>> Have you read the page about "Drag & Drop" on the wiki? >>> >> >> Nope, is there? I never found one. At least I cannot remember... ;) > > http://gambaswiki.org/wiki/doc/dragndrop > > > Alles Gute > > Christof Thalhofer > Danke! This runs perfectly: Public Sub GridView6_MouseDrag() GridView6.Drag(GridView6.Row & "::" & GridView6.Column) End Public Sub GridView1_Drop() TextBox1.Text = Drag.Data & "::" & Drag.Source.Name End And this is about everything I need here. Maybe we should add such a little example to the documentation, and a link from the help texts? I have question: In GridView6_MouseDrag() I have to give the name of the control. If I use a wrong one, the whole thing runs nevertheless: Public Sub GridView6_MouseDrag() GridView1.Drag(GridView6.Row & "::" & GridView6.Column) End Is there a special case where I could benefit from this behaviour? Regards Rolf From g4mba5 at gmail.com Wed Apr 18 19:11:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 18 Apr 2018 19:11:43 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: <453b27ca-1ff8-a47c-dc1e-ffdc18726d18@osnanet.de> References: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> <1498b137-3952-e5f4-c91a-477c378da2fb@deganius.de> <453b27ca-1ff8-a47c-dc1e-ffdc18726d18@osnanet.de> Message-ID: <2909e060-2ea5-3a38-1616-b4a15cabf8f1@gmail.com> Le 18/04/2018 ? 18:39, Rolf-Werner Eilert a ?crit?: > > I have question: In GridView6_MouseDrag() I have to give the name of the > control. If I use a wrong one, the whole thing runs nevertheless: > > Public Sub GridView6_MouseDrag() > > ? GridView1.Drag(GridView6.Row & "::" & GridView6.Column) > > End > > Is there a special case where I could benefit from this behaviour? > > Regards > Rolf > Control.Drag(Text) is a synonymous of Drag(Control, Text). The control defines the source property of the drag. It allows you to make the distinction between drags from different GUI locations. But if you have all the information you need in the drag data, the source control is not important. Regards, -- Beno?t Minisini From bugtracker at gambaswiki.org Wed Apr 18 22:35:40 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 18 Apr 2018 20:35:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #18 by Michael ALTROGGE: Ok, the IDE Database Editor now works fine, but this was not the reason for this ticket ... I still can't get SQLRequest or db/connection.find to work. So maybe I'm just to stupid for that ... Can a n y b o d y p l e a s e give me an example for the use of SQLRequest and an example for the use of db.find ? Schemaname : SYST Tablename : MA00 (zero Zero) Fields to Return: HDR, TXT postgreSQL Type gambas type Conditions : MDL (character varying(64))= strVar1 (String) TNR (integer) = intVar1 (Integer) ASL (character(2)) = strVar2 (String) Upper Cased has to be respected ... Thanks in advance :) ------------------------------------------------------------------------- this selection string works in pgA 3, pgA 4 and Adminer SELECT "MA00"."HDR", "MA00"."TXT" FROM "SYST"."MA00" WHERE "MA00"."AS4LOCAL" = 'DE' AND "MA00"."MDL" = 'ADRESSEN' AND "MA00"."TNR" = 1 ORDER BY "MA00"."HDR"; From bugtracker at gambaswiki.org Thu Apr 19 00:38:54 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 18 Apr 2018 22:38:54 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #19 by Beno?t MINISINI: Please provide the exact code you run as a full project. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Thu Apr 19 01:02:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Wed, 18 Apr 2018 23:02:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #20 by Michael ALTROGGE: Why? At the moment I asking for two examples (one for SqlRequest and one for db.find) that will result in that string because I believe that I'm doing something wrong. SELECT "MA00"."HDR", "MA00"."TXT" FROM "SYST"."MA00" WHERE "MA00"."AS4LOCAL" = 'DE' AND "MA00"."MDL" = 'ADRESSEN' AND "MA00"."TNR" = 1 ORDER BY "MA00"."HDR"; Michael ALTROGGE changed the state of the bug to: Accepted. From rwe-sse at osnanet.de Thu Apr 19 08:26:46 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 19 Apr 2018 08:26:46 +0200 Subject: [Gambas-user] Drag and Drop - howto In-Reply-To: <2909e060-2ea5-3a38-1616-b4a15cabf8f1@gmail.com> References: <83a3527c-eff8-ef36-06f1-f5349cb8ed14@osnanet.de> <1498b137-3952-e5f4-c91a-477c378da2fb@deganius.de> <453b27ca-1ff8-a47c-dc1e-ffdc18726d18@osnanet.de> <2909e060-2ea5-3a38-1616-b4a15cabf8f1@gmail.com> Message-ID: <5eaff315-277f-07eb-2bfe-6e6c4e503559@osnanet.de> Am 18.04.2018 um 19:11 schrieb Beno?t Minisini: > Le 18/04/2018 ? 18:39, Rolf-Werner Eilert a ?crit?: >> >> I have question: In GridView6_MouseDrag() I have to give the name of >> the control. If I use a wrong one, the whole thing runs nevertheless: >> >> Public Sub GridView6_MouseDrag() >> >> ?? GridView1.Drag(GridView6.Row & "::" & GridView6.Column) >> >> End >> >> Is there a special case where I could benefit from this behaviour? >> >> Regards >> Rolf >> > > Control.Drag(Text) is a synonymous of Drag(Control, Text). > > The control defines the source property of the drag. It allows you to > make the distinction between drags from different GUI locations. > > But if you have all the information you need in the drag data, the > source control is not important. > > Regards, > Ah yes, got it, thank you! Rolf From bugtracker at gambaswiki.org Thu Apr 19 13:55:22 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Thu, 19 Apr 2018 11:55:22 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1296: not able to use db.find or sql.request with postgreSQL In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1296&from=L21haW4- Comment #21 by Beno?t MINISINI: You have to ask for examples on the mailing-list. Here is for reporting bugs. I tried SqlRequest() and DB.Find(), and it seems to works as expected. But beware: - With PostgreSQL, you have to quote all your identifiers (tabls and field names) as soon as they are not in lowercase. For example: you have to write DB.Find("SCHEMA.TABLE", "\"FIELD_IN_UPPERCASE\" = &1", Value) - Table and schema names are automatically quoted. A table named SCHEMA.NAME will be quoted as "SCHEMA"."NAME". - When using a substitution database method (DB.Find, SqlRequest.Where...), you have to provide values of accurate datatypes. For example, DB.Find(".
", " = &1", 1) will fail if FIELD is a string field. Because the number 1 will not be converted to the string syntax ("E'1'") automatically. Beno?t MINISINI changed the state of the bug to: Fixed. From shannon at inflecto.org Thu Apr 19 19:12:47 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Thu, 19 Apr 2018 12:12:47 -0500 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 Message-ID: ?This is the Shell command I'm trying to run p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " & "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " & "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For Input As "Process" in console it should look like this? steamcmd +login username password +force_install_dir dirname/dirname +app_update 251570 -beta dirname? +quit The problem is on most systems the shell command works just fine but on one system with a fresh install of? arch linux i get this error /bin/sh: +force_install_dir: command not found it like it's skipping everything up to +force_install_dir in the command does anyone know why? I can get it to work like this but? CacheDir is a directory with spaces same thing for dlDat1 it has spaces as well so that's not working either p1 = Exec ["steamcmd", "+login", UserName, PassWD, "+force_install_dir", CacheDir, "+app_update", "251570", "-beta", dlDat1, "+quit"] For Input As "Process" -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Apr 19 19:28:30 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 19 Apr 2018 13:28:30 -0400 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: References: Message-ID: i think that directory with spaces are a bad practice and also seems the command line you have invoqued a wrong shell noted the firts try execute in BASH and the error try execute in SH that are not the same that's the problem ok.. so your command are fully bad practice Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-19 13:12 GMT-04:00 Shannon Kuchler : > ?This is the Shell command I'm trying to run > > > p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " & > "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " & > "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For Input > As "Process" > > > in console it should look like this > > steamcmd +login username password +force_install_dir dirname/dirname > +app_update 251570 -beta dirname +quit > > > The problem is on most systems the shell command works just fine but on > one system with a fresh install of arch linux i get this error > > /bin/sh: +force_install_dir: command not found > > > it like it's skipping everything up to +force_install_dir in the command > does anyone know why? > > > I can get it to work like this but CacheDir is a directory with spaces > same thing for dlDat1 it has spaces as well so that's not working either > > p1 = Exec ["steamcmd", "+login", UserName, PassWD, "+force_install_dir", > CacheDir, "+app_update", "251570", "-beta", dlDat1, "+quit"] For Input As > "Process" > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Thu Apr 19 19:31:19 2018 From: d4t4full at gmail.com (ML) Date: Thu, 19 Apr 2018 14:31:19 -0300 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: References: Message-ID: <00509c25-d28d-46e8-d19d-6ddc7ac5d8da@gmail.com> On 19/04/18 14:12, Shannon Kuchler wrote: > Problem with Shell Gambas 3.10.0 > > ?This is the Shell command I'm trying to run > > p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " & > "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " > & "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For > Input As "Process" > > in console it should look like this? > > steamcmd +login username password +force_install_dir dirname/dirname > +app_update 251570 -beta dirname? +quit > > The problem is on most systems the shell command works just fine but > on one system with a fresh install of? arch linux i get this error > > /bin/sh: +force_install_dir: command not found > it like it's skipping everything up to +force_install_dir in the > command does anyone know why? > > I can get it to work like this but? CacheDir is a directory with > spaces same thing for dlDat1 it has spaces as well so that's not > working either > > p1 = Exec ["steamcmd", "+login", UserName, PassWD, > "+force_install_dir", CacheDir, "+app_update", "251570", "-beta", > dlDat1, "+quit"] For Input As "Process" > > Shannon, Try enclosing the paths in double-quotes. For example, instead of ? "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & Try with ? [...] & "+force_install_dir" & " """ & CacheSaveLocation & "/" & dlDat[1] & """ " & [...] The twin double-quotes are there to be substituted by Gambas by a single double-quote when passed to the shell. Likewise with the string array, instead of ? "+force_install_dir", CacheDir Try with ? "+force_install_dir", """" & CacheDir & """" Again, the shell sees a double-quote, then the contents of CacheDir, then another double-quote. Hope it helps, zxMarce. -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu Apr 19 20:13:54 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 19 Apr 2018 20:13:54 +0200 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: References: Message-ID: <20180419181354.GI926@highrise.localdomain> On Thu, 19 Apr 2018, Shannon Kuchler wrote: > ?This is the Shell command I'm trying to run > > > > p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " & "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " & "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For Input As "Process" > > > > in console it should look like this? > > steamcmd +login username password +force_install_dir dirname/dirname +app_update 251570 -beta dirname? +quit > > > > The problem is on most systems the shell command works just fine but on one system with a fresh install of? arch linux i get this error > > /bin/sh: +force_install_dir: command not found > > > > > it like it's skipping everything up to +force_install_dir in the command does anyone know why? > > I have no explanation for this. > > I can get it to work like this but? CacheDir is a directory with spaces same thing for dlDat1 it has spaces as well so that's not working either > > p1 = Exec ["steamcmd", "+login", UserName, PassWD, "+force_install_dir", CacheDir, "+app_update", "251570", "-beta", dlDat1, "+quit"] For Input As "Process" > And this is very weird. Exec should extra-work. In fact, you shouldn't be using the Shell instruction because you don't need any shell features like redirection. Exec is: o faster (you don't need to spawn and initialise a shell process, which has to parse your commandline), o less complicated (you don't have to quote anything), and o more secure (your above code is vulnerable to command injection via any of the variables you use). (If you do need shell features, I would recommend using the Shell$() quoting function instead of quoting with double quotes by yourself. Subst$() can be used to make your commandline clearer, in addition.) I very much doubt that the problem is with /bin/sh, and spaces in filenames are perfectly fine. It's mostly the shell which gives you a headache with spaces because space happens to be a control character in the shell language. This isn't necessary with Exec at all. It passes its argument array directly to the process. How does the Exec line "not work either"? Are you sure that "+login" expects UserName and PassWD in separate arguments? Some page I found [1] says that you only specify the username. I suppose it will ask you interactively for the password (which is sensible). But you'll know that better. Regards, Tobi [1] https://developer.valvesoftware.com/wiki/SteamCMD#Linux.2FOS_X -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From shannon at inflecto.org Thu Apr 19 20:32:01 2018 From: shannon at inflecto.org (Shannon Kuchler) Date: Thu, 19 Apr 2018 13:32:01 -0500 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: <20180419181354.GI926@highrise.localdomain> References: <20180419181354.GI926@highrise.localdomain> Message-ID: <6D3BA4F6-76D9-44F1-AFEE-495139442D90@inflecto.org> The exec works unless there are spaces in the directory name the in instead of downloading to "my dir" it downloads to "my" which makes me think I need to in close it like this 'my dir' but steamcmd gives me an error same director does not exist unable to write to desk On April 19, 2018 1:13:54 PM CDT, Tobias Boege wrote: >On Thu, 19 Apr 2018, Shannon Kuchler wrote: >> ?This is the Shell command I'm trying to run >> >> >> >> p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " & >"+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " & >"+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For >Input As "Process" >> >> >> >> in console it should look like this? >> >> steamcmd +login username password +force_install_dir dirname/dirname >+app_update 251570 -beta dirname? +quit >> >> >> >> The problem is on most systems the shell command works just fine but >on one system with a fresh install of? arch linux i get this error >> >> /bin/sh: +force_install_dir: command not found >> >> >> >> >> it like it's skipping everything up to +force_install_dir in the >command does anyone know why? >> >> > >I have no explanation for this. > >> >> I can get it to work like this but? CacheDir is a directory with >spaces same thing for dlDat1 it has spaces as well so that's not >working either >> >> p1 = Exec ["steamcmd", "+login", UserName, PassWD, >"+force_install_dir", CacheDir, "+app_update", "251570", "-beta", >dlDat1, "+quit"] For Input As "Process" >> > >And this is very weird. Exec should extra-work. In fact, you shouldn't >be >using the Shell instruction because you don't need any shell features >like >redirection. Exec is: > > o faster (you don't need to spawn and initialise a shell process, > which has to parse your commandline), > o less complicated (you don't have to quote anything), and > o more secure (your above code is vulnerable to command injection > via any of the variables you use). > >(If you do need shell features, I would recommend using the Shell$() >quoting >function instead of quoting with double quotes by yourself. Subst$() >can be >used to make your commandline clearer, in addition.) > >I very much doubt that the problem is with /bin/sh, and spaces in >filenames >are perfectly fine. It's mostly the shell which gives you a headache >with >spaces because space happens to be a control character in the shell >language. >This isn't necessary with Exec at all. It passes its argument array >directly >to the process. > >How does the Exec line "not work either"? Are you sure that "+login" >expects >UserName and PassWD in separate arguments? Some page I found [1] says >that >you only specify the username. I suppose it will ask you interactively >for >the password (which is sensible). But you'll know that better. > >Regards, >Tobi > >[1] https://developer.valvesoftware.com/wiki/SteamCMD#Linux.2FOS_X > >-- >"There's an old saying: Don't change anything... ever!" -- Mr. Monk > >-------------------------------------------------- > >This is the Gambas Mailing List: >https://lists.gambas-basic.org/listinfo/user > >Search the list: >https://lists.gambas-basic.org/cgi-bin/search.cgi > >Hosted by https://www.hostsharing.net -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Apr 19 20:34:30 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 19 Apr 2018 21:34:30 +0300 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: References: Message-ID: I suggest you run the code like this and look what the command actually look like when it fails: Dim sCommand As String = "steamcmd +login" & " " & UserName & " " & PassWD & " " & "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " & "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Debug sCommand p1 = Shell sCommand Wait For Input As "Process" Also you can tidy up the command: "steamcmd +login " & UserName & " " & PassWD & " +force_install_dir " & CacheSaveLocation & "/" & dlDat[1] & " +app_update 251570 -beta " & dlDat[1] & " +quit" If you need to add quote marks for the command you can escape with \, and so \" will print quote mark. Jussi On Thu, Apr 19, 2018 at 8:12 PM, Shannon Kuchler wrote: > ?This is the Shell command I'm trying to run > > > p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " & > "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " & > "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For Input > As "Process" > > > in console it should look like this > > steamcmd +login username password +force_install_dir dirname/dirname > +app_update 251570 -beta dirname +quit > > > The problem is on most systems the shell command works just fine but on > one system with a fresh install of arch linux i get this error > > /bin/sh: +force_install_dir: command not found > > > it like it's skipping everything up to +force_install_dir in the command > does anyone know why? > > > I can get it to work like this but CacheDir is a directory with spaces > same thing for dlDat1 it has spaces as well so that's not working either > > p1 = Exec ["steamcmd", "+login", UserName, PassWD, "+force_install_dir", > CacheDir, "+app_update", "251570", "-beta", dlDat1, "+quit"] For Input As > "Process" > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu Apr 19 20:55:13 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 19 Apr 2018 20:55:13 +0200 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: <6D3BA4F6-76D9-44F1-AFEE-495139442D90@inflecto.org> References: <20180419181354.GI926@highrise.localdomain> <6D3BA4F6-76D9-44F1-AFEE-495139442D90@inflecto.org> Message-ID: <20180419185513.GJ926@highrise.localdomain> On Thu, 19 Apr 2018, Shannon Kuchler wrote: > The exec works unless there are spaces in the directory name the in instead of downloading to "my dir" it downloads to "my" which makes me think I need to in close it like this 'my dir' but steamcmd gives me an error same director does not exist unable to write to desk > Exec takes everything you give to it literally. If you say Exec ["ls", "'my dir'"] then, it will try to list the file 'my dir', including the single quotes as part of the path. This file doesn't exist, as it tells you. Single quotes, like spaces, are perfectly legal in a filename and Exec lets you use them without trying to interpret anything. Look at this snippet: Public Sub Main() File.Save("/tmp/a file with spaces", "") Exec ["ls", "-Nl", "/tmp/a file with spaces"] Wait End Executing it works: $ ./test.gbs3 -rw-r--r-- 1 user group 0 Apr 19 20:53 /tmp/a file with spaces And steamcmd doesn't throw up when you invoke it from your interactive shell, by hand, and use a directory with spaces? If yes, I'm out of ideas. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From shannon at inflecto.org Thu Apr 19 20:54:14 2018 From: shannon at inflecto.org (Shannon Kuchler) Date: Thu, 19 Apr 2018 13:54:14 -0500 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: References: Message-ID: <23190233-1FE0-421C-B409-9E4AA2C3035E@inflecto.org> Thanks Jussi I'll do that. I didn't know about the escape with \ that might be what I need On April 19, 2018 1:34:30 PM CDT, Jussi Lahtinen wrote: >I suggest you run the code like this and look what the command actually >look like when it fails: > > >Dim sCommand As String = "steamcmd +login" & " " & UserName & " " & >PassWD >& " " & "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] >& " >" & "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" > > >Debug sCommand > >p1 = Shell sCommand Wait For Input As "Process" > > > >Also you can tidy up the command: > > >"steamcmd +login " & UserName & " " & PassWD & " +force_install_dir " & >CacheSaveLocation & "/" & dlDat[1] & " +app_update 251570 -beta " & >dlDat[1] & " +quit" > > >If you need to add quote marks for the command you can escape with \, >and >so \" will print quote mark. > > > >Jussi > > > > >On Thu, Apr 19, 2018 at 8:12 PM, Shannon Kuchler >wrote: > >> ?This is the Shell command I'm trying to run >> >> >> p1 = Shell "steamcmd +login" & " " & UserName & " " & PassWD & " " & >> "+force_install_dir" & " " & CacheSaveLocation & "/" & dlDat[1] & " " >& >> "+app_update 251570 -beta" & " " & dlDat[1] & " " & "+quit" Wait For >Input >> As "Process" >> >> >> in console it should look like this >> >> steamcmd +login username password +force_install_dir dirname/dirname >> +app_update 251570 -beta dirname +quit >> >> >> The problem is on most systems the shell command works just fine but >on >> one system with a fresh install of arch linux i get this error >> >> /bin/sh: +force_install_dir: command not found >> >> >> it like it's skipping everything up to +force_install_dir in the >command >> does anyone know why? >> >> >> I can get it to work like this but CacheDir is a directory with >spaces >> same thing for dlDat1 it has spaces as well so that's not working >either >> >> p1 = Exec ["steamcmd", "+login", UserName, PassWD, >"+force_install_dir", >> CacheDir, "+app_update", "251570", "-beta", dlDat1, "+quit"] For >Input As >> "Process" >> >> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shannon at inflecto.org Thu Apr 19 22:25:09 2018 From: shannon at inflecto.org (Shannon Kuchler) Date: Thu, 19 Apr 2018 15:25:09 -0500 Subject: [Gambas-user] Problem with Shell Gambas 3.10.0 In-Reply-To: <20180419185513.GJ926@highrise.localdomain> References: <20180419181354.GI926@highrise.localdomain> <6D3BA4F6-76D9-44F1-AFEE-495139442D90@inflecto.org> <20180419185513.GJ926@highrise.localdomain> Message-ID: <325FD763-4C19-438C-B1F3-B42EBD2D6C51@inflecto.org> I don't know where my brain is today it just dawned on me that it's steamcmd that doesn't like long directory names in it's command line I bet if I replace the space in the long directory name string with a \space it'll do what it's supposed to On April 19, 2018 1:55:13 PM CDT, Tobias Boege wrote: > >On Thu, 19 Apr 2018, Shannon Kuchler wrote: >> The exec works unless there are spaces in the directory name the in >instead of downloading to "my dir" it downloads to "my" which makes me >think I need to in close it like this 'my dir' but steamcmd gives me an >error same director does not exist unable to write to desk >> > >Exec takes everything you give to it literally. If you say > > Exec ["ls", "'my dir'"] > >then, it will try to list the file 'my dir', including the single >quotes as part of the path. This file doesn't exist, as it tells you. >Single quotes, like spaces, are perfectly legal in a filename and >Exec lets you use them without trying to interpret anything. > >Look at this snippet: > > Public Sub Main() > File.Save("/tmp/a file with spaces", "") > Exec ["ls", "-Nl", "/tmp/a file with spaces"] Wait > End > >Executing it works: > > $ ./test.gbs3 > -rw-r--r-- 1 user group 0 Apr 19 20:53 /tmp/a file with spaces > >And steamcmd doesn't throw up when you invoke it from your interactive >shell, by hand, and use a directory with spaces? If yes, I'm out of >ideas. > >Regards, >Tobi > >-- >"There's an old saying: Don't change anything... ever!" -- Mr. Monk > >-------------------------------------------------- > >This is the Gambas Mailing List: >https://lists.gambas-basic.org/listinfo/user > >Search the list: >https://lists.gambas-basic.org/cgi-bin/search.cgi > >Hosted by https://www.hostsharing.net -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri Apr 20 11:35:32 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 20 Apr 2018 11:35:32 +0200 Subject: [Gambas-user] Font.Size of a GridView cell Message-ID: <64973f46-5305-6015-8709-935368ebbf15@osnanet.de> The re: says it: Can I read the font size of the text in a GridView cell? I mean, pointing to Row 2 and Column 3 and reading the Font.Size used for the Text therein? Regards Rolf From bagonergi at gmail.com Fri Apr 20 11:45:27 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 20 Apr 2018 11:45:27 +0200 Subject: [Gambas-user] Font.Size of a GridView cell In-Reply-To: <64973f46-5305-6015-8709-935368ebbf15@osnanet.de> References: <64973f46-5305-6015-8709-935368ebbf15@osnanet.de> Message-ID: GridView1[2, 3].Font.Size ??? Regards Gianluigi 2018-04-20 11:35 GMT+02:00 Rolf-Werner Eilert : > The re: says it: Can I read the font size of the text in a GridView cell? > I mean, pointing to Row 2 and Column 3 and reading the Font.Size used for > the Text therein? > > Regards > Rolf > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri Apr 20 13:22:38 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 20 Apr 2018 13:22:38 +0200 Subject: [Gambas-user] Drop into a GridView - how to hit a cell Message-ID: When I drag and drop data into a GridView, I want to hit a certain cell. Within the GridView_Drop event, however, .Column and .Row aren't set automagically to the aimed cell where the mouse button was released. So I have to hit the cell myself. First idea: using Drag.X and Drag.Y, and then...? Any more comfortable idea is appreciated :) Regards Rolf From g4mba5 at gmail.com Fri Apr 20 13:40:06 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 20 Apr 2018 13:40:06 +0200 Subject: [Gambas-user] Drop into a GridView - how to hit a cell In-Reply-To: References: Message-ID: <3377f0d2-e729-f68b-6c96-48a278b181cc@gmail.com> Le 20/04/2018 ? 13:22, Rolf-Werner Eilert a ?crit?: > When I drag and drop data into a GridView, I want to hit a certain cell. > > Within the GridView_Drop event, however, .Column and .Row aren't set > automagically to the aimed cell where the mouse button was released. > > So I have to hit the cell myself. First idea: using Drag.X and Drag.Y, > and then...? > > Any more comfortable idea is appreciated :) > > Regards > Rolf > Use RowAt() and ColumnAt() methods. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Fri Apr 20 13:50:40 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 20 Apr 2018 13:50:40 +0200 Subject: [Gambas-user] Font.Size of a GridView cell In-Reply-To: References: <64973f46-5305-6015-8709-935368ebbf15@osnanet.de> Message-ID: <99391f8c-8cdd-4b7f-4eaa-d34570e21715@osnanet.de> Arrgh - that was it, thank you very much! Rolf Am 20.04.2018 um 11:45 schrieb Gianluigi: > GridView1[2, 3].Font.Size ??? > > Regards > Gianluigi > > 2018-04-20 11:35 GMT+02:00 Rolf-Werner Eilert >: > > The re: says it: Can I read the font size of the text in a GridView > cell? I mean, pointing to Row 2 and Column 3 and reading the > Font.Size used for the Text therein? > > Regards > Rolf > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > Hosted by https://www.hostsharing.net > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > From rwe-sse at osnanet.de Fri Apr 20 14:06:33 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 20 Apr 2018 14:06:33 +0200 Subject: [Gambas-user] Drop into a GridView - how to hit a cell In-Reply-To: <3377f0d2-e729-f68b-6c96-48a278b181cc@gmail.com> References: <3377f0d2-e729-f68b-6c96-48a278b181cc@gmail.com> Message-ID: <9037ab98-2e9e-b6f1-baf7-03788c79c478@osnanet.de> Am 20.04.2018 um 13:40 schrieb Beno?t Minisini: > Le 20/04/2018 ? 13:22, Rolf-Werner Eilert a ?crit?: >> When I drag and drop data into a GridView, I want to hit a certain cell. >> >> Within the GridView_Drop event, however, .Column and .Row aren't set >> automagically to the aimed cell where the mouse button was released. >> >> So I have to hit the cell myself. First idea: using Drag.X and Drag.Y, >> and then...? >> >> Any more comfortable idea is appreciated :) >> >> Regards >> Rolf >> > > Use RowAt() and ColumnAt() methods. > > Regards, > Thank you! Now it works as expected. Regards Rolf From charlie at cogier.com Fri Apr 20 15:33:42 2018 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 20 Apr 2018 14:33:42 +0100 Subject: [Gambas-user] Drop into a GridView - how to hit a cell In-Reply-To: <9037ab98-2e9e-b6f1-baf7-03788c79c478@osnanet.de> References: <3377f0d2-e729-f68b-6c96-48a278b181cc@gmail.com> <9037ab98-2e9e-b6f1-baf7-03788c79c478@osnanet.de> Message-ID: On 20/04/18 13:06, Rolf-Werner Eilert wrote: > Am 20.04.2018 um 13:40 schrieb Beno?t Minisini: >> Le 20/04/2018 ? 13:22, Rolf-Werner Eilert a ?crit?: >>> When I drag and drop data into a GridView, I want to hit a certain >>> cell. >>> >>> Within the GridView_Drop event, however, .Column and .Row aren't set >>> automagically to the aimed cell where the mouse button was released. >>> >>> So I have to hit the cell myself. First idea: using Drag.X and >>> Drag.Y, and then...? >>> >>> Any more comfortable idea is appreciated :) >>> >>> Regards >>> Rolf >>> >> >> Use RowAt() and ColumnAt() methods. >> >> Regards, >> > > Thank you! Now it works as expected. > > Regards > Rolf > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net Hi Rolf, What did you put in RowAt() and ColumnAt()? I tried RowAt(Mouse.Y) and ColumnAt(Mouse.X) but that only returned the Row/Col of the 1st Gridview. Thanks, Charlie From bagonergi at gmail.com Fri Apr 20 20:28:34 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 20 Apr 2018 20:28:34 +0200 Subject: [Gambas-user] Unable to install seHelpBuilder 0.1.6 Message-ID: Making the download of the application all is OK, I get "has been successfully downloaded". With the installation I get instead this error window: Unable to install seHelpBuilder 0.1.6 Not an object DesktopFile.Name_Write.122 Csoftware.Install.421 FSoftwareFarm.btnInstall_Click.580 FSofwareFarm.17 FMain.Action_Activate.1576^Action.Raise.212 See attached. I not understand where the error is. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: UnableInstall.png Type: image/png Size: 140987 bytes Desc: not available URL: From bagonergi at gmail.com Fri Apr 20 20:48:12 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 20 Apr 2018 20:48:12 +0200 Subject: [Gambas-user] Simple Easy Help Builder Message-ID: I published a seHelpBuilder project on the Software farm, which is used to build online helps for our projects. The project is a bit heavy 7.4 MB because of the many images, if you want to try it use the Download and not Install that currently it give problems. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat Apr 21 14:46:26 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 21 Apr 2018 08:46:26 -0400 Subject: [Gambas-user] Simple Easy Help Builder In-Reply-To: References: Message-ID: its a kind of "make docs from code" ? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-20 14:48 GMT-04:00 Gianluigi : > I published a seHelpBuilder project on the Software farm, which is used to > build online helps for our projects. > The project is a bit heavy 7.4 MB because of the many images, if you want > to try it use the Download and not Install that currently it give problems. > > Regards > Gianluigi > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Apr 21 14:48:02 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 21 Apr 2018 14:48:02 +0200 Subject: [Gambas-user] Unable to install seHelpBuilder 0.1.6 In-Reply-To: References: Message-ID: <028faaf3-80bd-ed89-82fa-ac9841597efd@gmail.com> Le 20/04/2018 ? 20:28, Gianluigi a ?crit?: > Making the download of the application all is OK, I get "has been > successfully downloaded". > With the installation I get instead this error window: > > Unable to install seHelpBuilder 0.1.6 > Not an object > DesktopFile.Name_Write.122 Csoftware.Install.421 > FSoftwareFarm.btnInstall_Click.580 FSofwareFarm.17 > FMain.Action_Activate.1576^Action.Raise.212 > > See attached. > I not understand where the error is. > > Regards > Gianluigi > Apparently the DesktopFile class is buggy. -- Beno?t Minisini From bagonergi at gmail.com Sat Apr 21 15:15:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 21 Apr 2018 15:15:33 +0200 Subject: [Gambas-user] Simple Easy Help Builder In-Reply-To: References: Message-ID: Hi Piccoro, Easily get an local online help for your program, it should work with older versions of Gambas. See the image of the program Help. Regards Gianluigi 2018-04-21 14:46 GMT+02:00 PICCORO McKAY Lenz : > its a kind of "make docs from code" ? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-04-20 14:48 GMT-04:00 Gianluigi : > >> I published a seHelpBuilder project on the Software farm, which is used >> to build online helps for our projects. >> The project is a bit heavy 7.4 MB because of the many images, if you want >> to try it use the Download and not Install that currently it give problems. >> >> Regards >> Gianluigi >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: seHelpBuilder-2.png Type: image/png Size: 175476 bytes Desc: not available URL: From bagonergi at gmail.com Sat Apr 21 15:16:42 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 21 Apr 2018 15:16:42 +0200 Subject: [Gambas-user] Unable to install seHelpBuilder 0.1.6 In-Reply-To: <028faaf3-80bd-ed89-82fa-ac9841597efd@gmail.com> References: <028faaf3-80bd-ed89-82fa-ac9841597efd@gmail.com> Message-ID: 2018-04-21 14:48 GMT+02:00 Beno?t Minisini : > Le 20/04/2018 ? 20:28, Gianluigi a ?crit : > >> Making the download of the application all is OK, I get "has been >> successfully downloaded". >> With the installation I get instead this error window: >> >> Unable to install seHelpBuilder 0.1.6 >> Not an object >> DesktopFile.Name_Write.122 Csoftware.Install.421 >> FSoftwareFarm.btnInstall_Click.580 FSofwareFarm.17 >> FMain.Action_Activate.1576^Action.Raise.212 >> >> See attached. >> I not understand where the error is. >> >> Regards >> Gianluigi >> >> > Apparently the DesktopFile class is buggy. > > -- > Beno?t Minisini > > Hi Benoit, I do not understand the program works on different computers without problems, (one of 13 year old). You could kindly try it. i would be very grateful to you. Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Apr 21 15:26:17 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 21 Apr 2018 15:26:17 +0200 Subject: [Gambas-user] Unable to install seHelpBuilder 0.1.6 In-Reply-To: References: <028faaf3-80bd-ed89-82fa-ac9841597efd@gmail.com> Message-ID: <7c38a823-b172-5020-24b6-181873b2ead7@gmail.com> Le 21/04/2018 ? 15:16, Gianluigi a ?crit?: > > > 2018-04-21 14:48 GMT+02:00 Beno?t Minisini >: > > Le 20/04/2018 ? 20:28, Gianluigi a ?crit?: > > Making the download of the application all is OK, I get "has > been successfully downloaded". > With the installation I get instead this error window: > > Unable to install seHelpBuilder 0.1.6 > Not an object > DesktopFile.Name_Write.122 Csoftware.Install.421 > FSoftwareFarm.btnInstall_Click.580 FSofwareFarm.17 > FMain.Action_Activate.1576^Action.Raise.212 > > See attached. > I not understand where the error is. > > Regards > Gianluigi > > > Apparently the DesktopFile class is buggy. > > -- > Beno?t Minisini > > > Hi Benoit, > I do not understand the program works on different computers without > problems, (one of 13 year old). > You could kindly try it. > i would be very grateful to you. > > Gianluigi > This code is run if you have selected "create menu entry" when publishing the project. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Apr 21 15:32:33 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 21 Apr 2018 15:32:33 +0200 Subject: [Gambas-user] Unable to install seHelpBuilder 0.1.6 In-Reply-To: References: Message-ID: Le 20/04/2018 ? 20:28, Gianluigi a ?crit?: > Making the download of the application all is OK, I get "has been > successfully downloaded". > With the installation I get instead this error window: > > Unable to install seHelpBuilder 0.1.6 > Not an object > DesktopFile.Name_Write.122 Csoftware.Install.421 > FSoftwareFarm.btnInstall_Click.580 FSofwareFarm.17 > FMain.Action_Activate.1576^Action.Raise.212 > > See attached. > I not understand where the error is. > > Regards > Gianluigi > Can you try commit https://gitlab.com/gambas/gambas/commit/9b52761613d8b0277acf9309f17182fa728fe29b ? -- Beno?t Minisini From bagonergi at gmail.com Sat Apr 21 15:36:19 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 21 Apr 2018 15:36:19 +0200 Subject: [Gambas-user] Unable to install seHelpBuilder 0.1.6 In-Reply-To: References: Message-ID: Ok, I let you know Regards Gianluigi 2018-04-21 15:32 GMT+02:00 Beno?t Minisini : > Le 20/04/2018 ? 20:28, Gianluigi a ?crit : > >> Making the download of the application all is OK, I get "has been >> successfully downloaded". >> With the installation I get instead this error window: >> >> Unable to install seHelpBuilder 0.1.6 >> Not an object >> DesktopFile.Name_Write.122 Csoftware.Install.421 >> FSoftwareFarm.btnInstall_Click.580 FSofwareFarm.17 >> FMain.Action_Activate.1576^Action.Raise.212 >> >> See attached. >> I not understand where the error is. >> >> Regards >> Gianluigi >> >> > Can you try commit https://gitlab.com/gambas/gamb > as/commit/9b52761613d8b0277acf9309f17182fa728fe29b ? > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Apr 21 16:08:31 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 21 Apr 2018 16:08:31 +0200 Subject: [Gambas-user] Unable to install seHelpBuilder 0.1.6 In-Reply-To: References: Message-ID: It works, I installed the program successfully. I published the project with selected "create menu entry". Is it better to remove it for those with older versions? Is it enough to reinstall the program in the Farm without activating it? Regards Gianluigi 2018-04-21 15:32 GMT+02:00 Beno?t Minisini : > Le 20/04/2018 ? 20:28, Gianluigi a ?crit : > >> Making the download of the application all is OK, I get "has been >> successfully downloaded". >> With the installation I get instead this error window: >> >> Unable to install seHelpBuilder 0.1.6 >> Not an object >> DesktopFile.Name_Write.122 Csoftware.Install.421 >> FSoftwareFarm.btnInstall_Click.580 FSofwareFarm.17 >> FMain.Action_Activate.1576^Action.Raise.212 >> >> See attached. >> I not understand where the error is. >> >> Regards >> Gianluigi >> >> > Can you try commit https://gitlab.com/gambas/gamb > as/commit/9b52761613d8b0277acf9309f17182fa728fe29b ? > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Apr 21 17:44:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 21 Apr 2018 17:44:05 +0200 Subject: [Gambas-user] Simple Easy Help Builder In-Reply-To: References: Message-ID: I forgot to mention that you get guides in German, French, Spanish and of course English and Italian. Excuse me for the translations :-) Regards Gianluigi 2018-04-21 15:15 GMT+02:00 Gianluigi : > Hi Piccoro, > Easily get an local online help for your program, it should work with > older versions of Gambas. > See the image of the program Help. > > Regards > Gianluigi > > 2018-04-21 14:46 GMT+02:00 PICCORO McKAY Lenz : > >> its a kind of "make docs from code" ? >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-04-20 14:48 GMT-04:00 Gianluigi : >> >>> I published a seHelpBuilder project on the Software farm, which is used >>> to build online helps for our projects. >>> The project is a bit heavy 7.4 MB because of the many images, if you >>> want to try it use the Download and not Install that currently it give >>> problems. >>> >>> Regards >>> Gianluigi >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Apr 21 18:46:07 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 21 Apr 2018 18:46:07 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas Message-ID: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> Hello, my component for unittesting is working flawlessly and I do a lot of test-driven programming in Gambas with it. I would like to integrate it to Gambas. The current name is gb.deg.unittest (because currently it is an internal component for my firm), we could rename it to gb.unittest. If you agree, I would have to split it into two components, gb.unittest and gb.unittest-ui, this is done in one hour. Is there a chance to integrate it to Gambas or are there any caveats? https://github.com/Deganius/gb.deg.unittest/ 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 bagonergi at gmail.com Sat Apr 21 19:33:40 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 21 Apr 2018 19:33:40 +0200 Subject: [Gambas-user] Simple Easy Help Builder In-Reply-To: References: Message-ID: I have just uninstalled and reinstalled seHelpBuilder, I have removed the check to "create menu entry" and now it install well in the old versions also with the Install button. Regards Gianluigi 2018-04-21 17:44 GMT+02:00 Gianluigi : > I forgot to mention that you get guides in German, French, Spanish and of > course English and Italian. > Excuse me for the translations :-) > > Regards > Gianluigi > > 2018-04-21 15:15 GMT+02:00 Gianluigi : > >> Hi Piccoro, >> Easily get an local online help for your program, it should work with >> older versions of Gambas. >> See the image of the program Help. >> >> Regards >> Gianluigi >> >> 2018-04-21 14:46 GMT+02:00 PICCORO McKAY Lenz : >> >>> its a kind of "make docs from code" ? >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-04-20 14:48 GMT-04:00 Gianluigi : >>> >>>> I published a seHelpBuilder project on the Software farm, which is used >>>> to build online helps for our projects. >>>> The project is a bit heavy 7.4 MB because of the many images, if you >>>> want to try it use the Download and not Install that currently it give >>>> problems. >>>> >>>> Regards >>>> Gianluigi >>>> >>>> >>>> -------------------------------------------------- >>>> >>>> This is the Gambas Mailing List: >>>> https://lists.gambas-basic.org/listinfo/user >>>> >>>> Search the list: >>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>> >>>> Hosted by https://www.hostsharing.net >>>> >>>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Apr 21 19:43:22 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 21 Apr 2018 19:43:22 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> Message-ID: <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> Le 21/04/2018 ? 18:46, Christof Thalhofer a ?crit?: > Hello, > > my component for unittesting is working flawlessly and I do a lot of > test-driven programming in Gambas with it. > > I would like to integrate it to Gambas. > > The current name is gb.deg.unittest (because currently it is an internal > component for my firm), we could rename it to gb.unittest. > > If you agree, I would have to split it into two components, gb.unittest > and gb.unittest-ui, this is done in one hour. > > Is there a chance to integrate it to Gambas or are there any caveats? > > https://github.com/Deganius/gb.deg.unittest/ > > > Alles Gute > > Christof Thalhofer > No problem to add a new component, but I'm not sure to understand your interface. So maybe I will tell rubbish. ATestContainer -> it's actually the parent class for all tests? UnitTest -> Why this class? And why do you have to instanciate it? If it is just there to run all the test, I suggest mergin UnitTest and ATestContainer, and just make a static method "Run()" to run all the unit tests in the exported classes inheriting the new "UnitTest". As for the GUI, I think it should be be extern to the tested project and merged into the IDE. The result of the tests should be provided to the standard output in a standard format that will be displayed by your GUI in the IDE. The unit test will be run by forcing the startup class run by the interpreter to "UnitTest". What do you think about that? Does it raise any problem? -- Beno?t Minisini From bugtracker at gambaswiki.org Sat Apr 21 20:43:10 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 21 Apr 2018 18:43:10 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1234: Gambas Terminal display issue In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1234&from=L21haW4- Comment #1 by Beno?t MINISINI: It should be fixed by commit https://gitlab.com/gambas/gambas/commit/2b3cbd921798dd616f6ba368141ba48d921aacc7. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at gambaswiki.org Sat Apr 21 20:43:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 21 Apr 2018 18:43:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1286: Gambas info is blocked by IP In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1286&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From chrisml at deganius.de Sat Apr 21 22:04:22 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 21 Apr 2018 22:04:22 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> Message-ID: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> Am 21.04.2018 um 19:43 schrieb Beno?t Minisini: > No problem to add a new component, but I'm not sure to understand your > interface. So maybe I will tell rubbish. Maybe I will tell rubbish too. I forked this project from http://comunit.sourceforge.net/ So I did not develop the interface but I rearranged it to work in Gambas. I fixed a couple of selfmade bugs and ran it for a while in my projects. Like so: Just try it out with In TesteStartRunner the unittest tests itself in two ways: r.Test(...) delivers the testresult(s) to the console. (This is the way I work very often. I first write a test, and then do my coding. If I hit the Unittest runs and shows the results in the console. If everything is ok, my new method is ok ...) Be aware that the tests which test gb.deg.unittest itself intentionally are not successful. r.ShowTestForm() delivers the GUI (which is nice but I use it not very often, it is nice for playing around, but quite annoying when constantly coding on new things) > ATestContainer -> it's actually the parent class for all tests? Yes ... and no ... it is the parent class for all test *containers*. A container can contain a lot of tests. All test containers in a project (this is the "Test Suite") are identified by being inherited from ATestContainer. I know, "ATestContainer" is not a nice name ... > UnitTest -> Why this class? And why do you have to instanciate it? If it > is just there to run all the test, I suggest mergin UnitTest and > ATestContainer, and just make a static method "Run()" to run all the > unit tests in the exported classes inheriting the new "UnitTest". UnitTest identifies all testcontainers within a project, collects them and runs all tests in all containers, or all tests in a single container, or even just single test and then collects and displays the results. Merging ATestContainer and UnitTest could be much more elegant, yes. I will try it out. For now I was not able to make UnitTest.Test (the equivalent of "run") static. > As for the GUI, I think it should be be extern to the tested project and > merged into the IDE. Yes. But I think it is important to be able to run the unittest inside the project itself, even afterwards, when it is compiled, and not only through the IDE. There I think of automatic testing of all kind of libraries, components or programs. > The result of the tests should be provided to the standard output in a > standard format that will be displayed by your GUI in the IDE. Do you know a standard format for unittesting results? Something like this? https://testanything.org/ This is for displaying only. You mean sth like JSON? Ok, there would have to be coded methods like: TestResult.ToJson and TestResult.FromJson to ex- and import Testresults. > The unit test will be run by forcing the startup class run by the > interpreter to "UnitTest". Ah ok, now I understand ... this would be indeed very, very cool. gbr3 --test myproject.gambas > What do you think about that? Does it raise any problem? No Idea ... a lot ... my time (sigh) ... I have to try. Especially the "standard format" would cause a hefty rewrite. Now I drink a beer ... Sant? ! :-) 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 bugtracker at gambaswiki.org Sat Apr 21 22:36:12 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 21 Apr 2018 20:36:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1297: Illegal Operation in Serial Communication Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1297&from=L21haW4- Claus DIETRICH reported a new bug. Summary ------- Illegal Operation in Serial Communication Type : Bug Priority : High Gambas version : 3.10 Product : Unknown Description ----------- Hi, I found, that following illegal operation is possible in serial communication with Gambas: SerialPort1.PortName = "/dev/ttyS0" SerialPort1.Open SerialPort2.PortName = "/dev/ttyS0" SerialPort2.Open In the line "SerialPort2.Open" Gambas should throw an error message like "The associated port is already open." and interrupt the program. Currently Gambas doesn't do this, which potentially spoils the program integrity. With best regards Claus System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-116-generic Architecture=x86 Distribution=Linux Mint 17.2 Rafaela Desktop=MATE Theme=Gtk Language=de_DE.UTF-8 Memory=4042M [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 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-G2ZmHNfYUP,guid=8bda9e01a6408d2502ee3f7e5adb8e33 DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-miJpPj GNOME_KEYRING_PID=1972 GPG_AGENT_INFO=/run/user/1000/keyring-miJpPj/gpg:0:1 HOME= LANG=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_NUMERIC=de_DE.UTF-8 LC_PAPER=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=de_DE.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1845,unix/:/tmp/.ICE-unix/1845 SHELL=/bin/bash SSH_AGENT_PID=1951 SSH_AUTH_SOCK=/run/user/1000/keyring-miJpPj/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 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=cec7bd74c8d183e593c74ffc56ae75b5-1524338226.866181-1830116046 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 From g4mba5 at gmail.com Sat Apr 21 22:56:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 21 Apr 2018 22:56:48 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> Message-ID: <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> Le 21/04/2018 ? 22:04, Christof Thalhofer a ?crit?: > Am 21.04.2018 um 19:43 schrieb Beno?t Minisini: > >> No problem to add a new component, but I'm not sure to understand your >> interface. So maybe I will tell rubbish. > > Maybe I will tell rubbish too. I forked this project from > http://comunit.sourceforge.net/ > > So I did not develop the interface but I rearranged it to work in > Gambas. I fixed a couple of selfmade bugs and ran it for a while in my > projects. Like so: > > Just try it out with > > In TesteStartRunner the unittest tests itself in two ways: > > r.Test(...) > delivers the testresult(s) to the console. > > (This is the way I work very often. I first write a test, and then do my > coding. If I hit the Unittest runs and shows the results in the > console. If everything is ok, my new method is ok ...) > > Be aware that the tests which test gb.deg.unittest itself intentionally > are not successful. > > r.ShowTestForm() > delivers the GUI > > (which is nice but I use it not very often, it is nice for playing > around, but quite annoying when constantly coding on new things) > >> ATestContainer -> it's actually the parent class for all tests? > > Yes ... and no ... it is the parent class for all test *containers*. A > container can contain a lot of tests. All test containers in a project > (this is the "Test Suite") are identified by being inherited from > ATestContainer. > > I know, "ATestContainer" is not a nice name ... > >> UnitTest -> Why this class? And why do you have to instanciate it? If it >> is just there to run all the test, I suggest mergin UnitTest and >> ATestContainer, and just make a static method "Run()" to run all the >> unit tests in the exported classes inheriting the new "UnitTest". > > UnitTest identifies all testcontainers within a project, collects them > and runs all tests in all containers, or all tests in a single > container, or even just single test and then collects and displays the > results. > > Merging ATestContainer and UnitTest could be much more elegant, yes. > I will try it out. > > For now I was not able to make UnitTest.Test (the equivalent of "run") > static. Why having several tests in the same class? I think if you do that, it means that you always want to run all of them, don't you? In ohter words, all tests located in a Test container should be run from one Run() method. > >> As for the GUI, I think it should be be extern to the tested project and >> merged into the IDE. > > Yes. But I think it is important to be able to run the unittest inside > the project itself, even afterwards, when it is compiled, and not only > through the IDE. There I think of automatic testing of all kind of > libraries, components or programs. > >> The result of the tests should be provided to the standard output in a >> standard format that will be displayed by your GUI in the IDE. > > Do you know a standard format for unittesting results? Something like > this? https://testanything.org/ > > This is for displaying only. > > You mean sth like JSON? Ok, there would have to be coded methods like: > > TestResult.ToJson > and > TestResult.FromJson > > to ex- and import Testresults. Not necessarily. I just mean that running the test from the command line: $ gbr3 -s UnitTest myproject.gambas will run the static UnitTest.Main() method, that should run all the unit tests located in the project, and print the result to the standard output. This result does not have to use a standard format, just a format that is easy to parse to implement the GUI in the IDE. But if you know a standard format for unit test results, you can use it of course. As for exporting the unittest classes, this is not necessary. As soon as you are inside a project, you can browse the ".gambas" directory to get the name of each class of the project (in uppercase) and the Class.Stat() method of the gb.util component to get information about a class (its name and its parent class). I could even add a method in the gb.util component to return the list of all classes. And to go further, there is still a problem: a normal project having unit tests will always load the gb.unittest component even when running no test. There is no way to prevent that at the moment, but if you succeed in merging the ATestContainer and UnitTest, and separating the GUI from the component, I will see what I can do. Regards, -- Beno?t Minisini From chrisml at deganius.de Sun Apr 22 00:02:48 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 22 Apr 2018 00:02:48 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> Message-ID: <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> Am 21.04.2018 um 22:56 schrieb Beno?t Minisini: >> You mean sth like JSON? Ok, there would have to be coded methods like: >> >> TestResult.ToJson >> and >> TestResult.FromJson >> >> to ex- and import Testresults. > > Not necessarily. I just mean that running the test from the command line: > > $ gbr3 -s UnitTest myproject.gambas > > will run the static UnitTest.Main() method, that should run all the unit > tests located in the project, and print the result to the standard output. > > This result does not have to use a standard format, just a format that > is easy to parse to implement the GUI in the IDE. All neccessary is in TestSuite/TestResult (I have to figure out), and the GUI as well as console output use it, so serializing this would be the way to go, I think. gbr3 -s UnitTest myproject.gambas could produce readable output (and a parseable "success"), but sth like gbr3 -s UnitTest -j myproject.gambas could produce JSON ... ? > But if you know a standard format for unit test results, you can use it > of course. I did not find any. I think JSON is the easiest. > As for exporting the unittest classes, this is not necessary. I had to do it to recognize them anyhow, I remember I experimented a lot on that for about one day. Also playing around with a file that contained names of testclasses. But I did not like that. > As soon as you are inside a project, you can browse the ".gambas" > directory to get the name of each class of the project (in uppercase) > and the Class.Stat() method of the gb.util component to get information > about a class (its name and its parent class). Ah ok, I never was "in the project" as the interpreter sees it ... > I could even add a method in the gb.util component to return the list of > all classes. This would be a solution, I imagine. > And to go further, there is still a problem: a normal project having > unit tests will always load the gb.unittest component even when running > no test. There is no way to prevent that at the moment, but if you > succeed in merging the ATestContainer and UnitTest, and separating the > GUI from the component, I will see what I can do. Even libraries with unittests infect projects using them. This was the thing why I called it state alpha. It has to be supported by the interpreter to work really good inside one project and without affecting other projects. Btw. Merging ATestContainer and UnitTest was quite easy, static UnitTest.Run() also. Thank you for the advice! Next thingi is serializing and separating. So please wait a bit. 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 chrisml at deganius.de Sun Apr 22 00:26:01 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 22 Apr 2018 00:26:01 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> Message-ID: <162151cf-81fe-e4af-41cb-060e25c12d57@deganius.de> Am 21.04.2018 um 22:56 schrieb Beno?t Minisini: > Why having several tests in the same class? Because you can create a special fixture for all testmethods, for example create a database and some tables and destroy them after testing a couple of methods. Have a look at https://github.com/Deganius/gb.deg.unittest/ and there "Test fixture" > I think if you do that, it > means that you always want to run all of them, don't you? No. Not while doing test-driven development: I have a testcontainer that does a lot of db stuff. If I work on a remote database, running it takes a while. But if I just work on a separated part of my db library ... say the update part ... I want to test just that, not also insert and delete and ORM and so on ... With the current code I can run $testcontainer.$testfunction (not allcontainers.allfunctions). That's fast. And yes, it's important. > In ohter words, all tests located in a Test container should be run from > one Run() method. Yes that's the case now, but: Run(Optional Testcontainer as String, Optional Testmethod as String) 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 g4mba5 at gmail.com Sun Apr 22 00:26:30 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 22 Apr 2018 00:26:30 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> Message-ID: <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> Le 22/04/2018 ? 00:02, Christof Thalhofer a ?crit?: > Am 21.04.2018 um 22:56 schrieb Beno?t Minisini: >>> You mean sth like JSON? Ok, there would have to be coded methods like: >>> >>> TestResult.ToJson >>> and >>> TestResult.FromJson >>> >>> to ex- and import Testresults. >> >> Not necessarily. I just mean that running the test from the command line: >> >> $ gbr3 -s UnitTest myproject.gambas >> >> will run the static UnitTest.Main() method, that should run all the unit >> tests located in the project, and print the result to the standard output. >> >> This result does not have to use a standard format, just a format that >> is easy to parse to implement the GUI in the IDE. > > All neccessary is in TestSuite/TestResult (I have to figure out), and > the GUI as well as console output use it, so serializing this would be > the way to go, I think. > > gbr3 -s UnitTest myproject.gambas > > could produce readable output (and a parseable "success"), but sth like > > gbr3 -s UnitTest -j myproject.gambas > > could produce JSON ... ? No, because "-s" is a standard option of the interpreter. Your component will never see the arguments put before the executable name. At the moment this output is only for the IDE GUI, so use one only. If later we need another one, we will find a solution. >> I could even add a method in the gb.util component to return the list of >> all classes. > > This would be a solution, I imagine. I will do it. > >> And to go further, there is still a problem: a normal project having >> unit tests will always load the gb.unittest component even when running >> no test. There is no way to prevent that at the moment, but if you >> succeed in merging the ATestContainer and UnitTest, and separating the >> GUI from the component, I will see what I can do. > > Even libraries with unittests infect projects using them. This was the > thing why I called it state alpha. It has to be supported by the > interpreter to work really good inside one project and without affecting > other projects. I don't get your sentence. Logically tests have the same dependencies as the project itself, except the gb.unittest component. As for the test classes, it's not a problem, as the interpreter only loads a class if it is run. So it's just the useless load of gb.unittest component that disturbs me, even if it is a problem just for normal project (components or libraries loading their dependencies only when they are run as a normal project). > > Btw. Merging ATestContainer and UnitTest was quite easy, static > UnitTest.Run() also. Thank you for the advice! Multiplying the number of classes is usually a Java way of life. I prefer being more simpler, thinking about the user of the component. :-) > > Next thingi is serializing and separating. So please wait a bit. > > Alles Gute > > Christof Thalhofer > I'd like to release gambas 3.11 now for two months, but each time someone (sometimes it's me) finds an annoying bug I have to fix! I can wait a week or two, and if you are not in a hurry, the component can be put in the next version. The component has not to be perfect, but its public interface must be stabilized, so that you have only bugs to fix. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Sun Apr 22 00:57:19 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 21 Apr 2018 18:57:19 -0400 Subject: [Gambas-user] Simple Easy Help Builder In-Reply-To: References: Message-ID: hi guianluigi je je do you already know that i used older version of gambas right? XD ok if i have right, the program its just a web-browser with and selft-embebed http-server of a static html web content? and that content are selft generated from code? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-21 13:33 GMT-04:00 Gianluigi : > I have just uninstalled and reinstalled seHelpBuilder, I have removed the > check to "create menu entry" and now it install well in the old versions > also with the Install button. > > Regards > Gianluigi > > 2018-04-21 17:44 GMT+02:00 Gianluigi : > >> I forgot to mention that you get guides in German, French, Spanish and of >> course English and Italian. >> Excuse me for the translations :-) >> >> Regards >> Gianluigi >> >> 2018-04-21 15:15 GMT+02:00 Gianluigi : >> >>> Hi Piccoro, >>> Easily get an local online help for your program, it should work with >>> older versions of Gambas. >>> See the image of the program Help. >>> >>> Regards >>> Gianluigi >>> >>> 2018-04-21 14:46 GMT+02:00 PICCORO McKAY Lenz : >>> >>>> its a kind of "make docs from code" ? >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-04-20 14:48 GMT-04:00 Gianluigi : >>>> >>>>> I published a seHelpBuilder project on the Software farm, which is >>>>> used to build online helps for our projects. >>>>> The project is a bit heavy 7.4 MB because of the many images, if you >>>>> want to try it use the Download and not Install that currently it give >>>>> problems. >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> >>>>> -------------------------------------------------- >>>>> >>>>> This is the Gambas Mailing List: >>>>> https://lists.gambas-basic.org/listinfo/user >>>>> >>>>> Search the list: >>>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>>> >>>>> Hosted by https://www.hostsharing.net >>>>> >>>>> >>>> >>>> >>>> -------------------------------------------------- >>>> >>>> This is the Gambas Mailing List: >>>> https://lists.gambas-basic.org/listinfo/user >>>> >>>> Search the list: >>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>> >>>> Hosted by https://www.hostsharing.net >>>> >>>> >>> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Apr 22 10:02:36 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 22 Apr 2018 10:02:36 +0200 Subject: [Gambas-user] Simple Easy Help Builder In-Reply-To: References: Message-ID: :-) Hi Piccoro, yes, right. The project contains a wysiwyg editor, designed primarily to transform, with a few clicks, a text created with a professional editor (Libre Writer) into a page of the guide. You can write directly in the editor but there's not the spell check and the tables are fixed. Once the html pages have been created, you can build the guide with 1 tab up to a maximum of 4 tabs: Contents tree tab Index Bookmarks Find (which acts on all pages and not only on the current one) But I'm not sure it will work on older versions. If you try to download it, can you please let me know? The project was created with the most limited components gb.gui.qt and gb.gui.qt.webkit and, finally, changed to qt4 to make it compatible to those who use Gambas previus to version 3.8. Regards Gianluigi 2018-04-22 0:57 GMT+02:00 PICCORO McKAY Lenz : > hi guianluigi je je do you already know that i used older version of > gambas right? XD > > ok if i have right, the program its just a web-browser with and > selft-embebed http-server of a static html web content? > and that content are selft generated from code? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-04-21 13:33 GMT-04:00 Gianluigi : > >> I have just uninstalled and reinstalled seHelpBuilder, I have removed the >> check to "create menu entry" and now it install well in the old versions >> also with the Install button. >> >> Regards >> Gianluigi >> >> 2018-04-21 17:44 GMT+02:00 Gianluigi : >> >>> I forgot to mention that you get guides in German, French, Spanish and >>> of course English and Italian. >>> Excuse me for the translations :-) >>> >>> Regards >>> Gianluigi >>> >>> 2018-04-21 15:15 GMT+02:00 Gianluigi : >>> >>>> Hi Piccoro, >>>> Easily get an local online help for your program, it should work with >>>> older versions of Gambas. >>>> See the image of the program Help. >>>> >>>> Regards >>>> Gianluigi >>>> >>>> 2018-04-21 14:46 GMT+02:00 PICCORO McKAY Lenz : >>>> >>>>> its a kind of "make docs from code" ? >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> 2018-04-20 14:48 GMT-04:00 Gianluigi : >>>>> >>>>>> I published a seHelpBuilder project on the Software farm, which is >>>>>> used to build online helps for our projects. >>>>>> The project is a bit heavy 7.4 MB because of the many images, if you >>>>>> want to try it use the Download and not Install that currently it give >>>>>> problems. >>>>>> >>>>>> Regards >>>>>> Gianluigi >>>>>> >>>>>> >>>>>> -------------------------------------------------- >>>>>> >>>>>> This is the Gambas Mailing List: >>>>>> https://lists.gambas-basic.org/listinfo/user >>>>>> >>>>>> Search the list: >>>>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>>>> >>>>>> Hosted by https://www.hostsharing.net >>>>>> >>>>>> >>>>> >>>>> >>>>> -------------------------------------------------- >>>>> >>>>> This is the Gambas Mailing List: >>>>> https://lists.gambas-basic.org/listinfo/user >>>>> >>>>> Search the list: >>>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>>> >>>>> Hosted by https://www.hostsharing.net >>>>> >>>>> >>>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Apr 22 12:03:26 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 22 Apr 2018 12:03:26 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> Message-ID: Am 22.04.2018 um 00:26 schrieb Beno?t Minisini: > I'd like to release gambas 3.11 now for two months, but each time > someone (sometimes it's me) finds an annoying bug I have to fix! What is life without bugs? Impossible! ;-) > I can wait a week or two, and if you are not in a hurry, the component > can be put in the next version. The component has not to be perfect, but > its public interface must be stabilized, so that you have only bugs to fix. I am not in a hurry. I just investigated some time to understand the GUI, it is highly interwoven with the testing system itself, as it is updated on the fly via events while the tests are running. The GUI itself is the container for its data ... awful ... in the current state I think it is useless for the idea of letting the tests run separately and presenting the data in different ways (console/GUI) afterwards. So I would focus to just running the tests (which works good) and output results to the console like it is done via TAP https://testanything.org/tap-specification.html Tap seems to be a common format for unittest output. If we are done we can join this illustrious list: https://testanything.org/producers.html Tap can be parsed by other programs, one can then even use Jenkins to test programs. All in all this is a major rewrite, I cannot do this within two weeks as I currently do not have the time. So we should focus on a later version of Gambas. We should keep in mind that the unittest, if done by the interpreter initiated via commandline switch should be able to execute just a single testcontainer execute just one test in a testcontainer or at minimum one can do a Unittest.Run($testcontainer, $singletest) inside a Testmodule while developing by hitting . Have a nice sunday! 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 gmail.com Sun Apr 22 15:39:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 22 Apr 2018 09:39:00 -0400 Subject: [Gambas-user] Simple Easy Help Builder In-Reply-To: References: Message-ID: *amazing project, it's great! thank to make it compatible with 3.8 version...* *i'll take a look in some days due i'm still busy with php, i want to swicth to gambas coplety but we need a framework to produce websites.. and here in gambas there's only "hobby" targets...* Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-22 4:02 GMT-04:00 Gianluigi : > :-) Hi Piccoro, > yes, right. > The project contains a wysiwyg editor, designed primarily to transform, > with a few clicks, a text created with a professional editor (Libre Writer) > into a page of the guide. > You can write directly in the editor but there's not the spell check and > the tables are fixed. > Once the html pages have been created, you can build the guide with 1 tab > up to a maximum of 4 tabs: > Contents tree tab > Index > Bookmarks > Find (which acts on all pages and not only on the current one) > > But I'm not sure it will work on older versions. > If you try to download it, can you please let me know? > The project was created with the most limited components gb.gui.qt and > gb.gui.qt.webkit and, finally, changed to qt4 to make it compatible to > those who use Gambas previus to version 3.8. > > Regards > Gianluigi > > 2018-04-22 0:57 GMT+02:00 PICCORO McKAY Lenz : > >> hi guianluigi je je do you already know that i used older version of >> gambas right? XD >> >> ok if i have right, the program its just a web-browser with and >> selft-embebed http-server of a static html web content? >> and that content are selft generated from code? >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-04-21 13:33 GMT-04:00 Gianluigi : >> >>> I have just uninstalled and reinstalled seHelpBuilder, I have removed >>> the check to "create menu entry" and now it install well in the old >>> versions also with the Install button. >>> >>> Regards >>> Gianluigi >>> >>> 2018-04-21 17:44 GMT+02:00 Gianluigi : >>> >>>> I forgot to mention that you get guides in German, French, Spanish and >>>> of course English and Italian. >>>> Excuse me for the translations :-) >>>> >>>> Regards >>>> Gianluigi >>>> >>>> 2018-04-21 15:15 GMT+02:00 Gianluigi : >>>> >>>>> Hi Piccoro, >>>>> Easily get an local online help for your program, it should work with >>>>> older versions of Gambas. >>>>> See the image of the program Help. >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> 2018-04-21 14:46 GMT+02:00 PICCORO McKAY Lenz >>>>> : >>>>> >>>>>> its a kind of "make docs from code" ? >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>>> 2018-04-20 14:48 GMT-04:00 Gianluigi : >>>>>> >>>>>>> I published a seHelpBuilder project on the Software farm, which is >>>>>>> used to build online helps for our projects. >>>>>>> The project is a bit heavy 7.4 MB because of the many images, if you >>>>>>> want to try it use the Download and not Install that currently it give >>>>>>> problems. >>>>>>> >>>>>>> Regards >>>>>>> Gianluigi >>>>>>> >>>>>>> >>>>>>> -------------------------------------------------- >>>>>>> >>>>>>> This is the Gambas Mailing List: >>>>>>> https://lists.gambas-basic.org/listinfo/user >>>>>>> >>>>>>> Search the list: >>>>>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>>>>> >>>>>>> Hosted by https://www.hostsharing.net >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -------------------------------------------------- >>>>>> >>>>>> This is the Gambas Mailing List: >>>>>> https://lists.gambas-basic.org/listinfo/user >>>>>> >>>>>> Search the list: >>>>>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>>>>> >>>>>> Hosted by https://www.hostsharing.net >>>>>> >>>>>> >>>>> >>>> >>> >>> >>> -------------------------------------------------- >>> >>> This is the Gambas Mailing List: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Search the list: >>> https://lists.gambas-basic.org/cgi-bin/search.cgi >>> >>> Hosted by https://www.hostsharing.net >>> >>> >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Apr 22 19:48:57 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 22 Apr 2018 19:48:57 +0200 Subject: [Gambas-user] Why select "create menu entry"? Message-ID: I know I'm not particularly smart, first I could not to access the Software farm because I was mistaken the password, then I selected "create menu entry" without knowing what was is for, so to remedy I uninstalled the project without need, it is enough to deselect "create menu entry". That said, someone kindly can explain to me what purpose to select "create menu entry" in Software farm publish procedure? Regards Gianluigi P.S.To confirm: I apologize, I sent by mistake this mail to notification : - / -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Apr 22 19:53:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 22 Apr 2018 19:53:42 +0200 Subject: [Gambas-user] Why select "create menu entry"? In-Reply-To: References: Message-ID: <3b19a816-2fcd-4664-c37d-5c4462188dc1@gmail.com> Le 22/04/2018 ? 19:48, Gianluigi a ?crit?: > I know I'm not particularly smart, first I could not to access the > Software farm because I was mistaken the password, then I selected > "create menu entry" without knowing what was is for, so to remedy I > uninstalled the project without need, it is enough to deselect "create > menu entry". > That said, someone kindly can explain to me what purpose to select > "create menu entry" in Software farm publish procedure? > > Regards > Gianluigi > > P.S.To confirm: I apologize, I sent by mistake this mail to notification > : - / > It tells the installer to create a '*.desktop' file at the accurate place in your home directory so that your desktop application menu gets a new entry for launching your program. As the DesktopFile was buggy, the creation of the desktop file fails miserably. Regards, -- Beno?t Minisini From bagonergi at gmail.com Sun Apr 22 20:04:50 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 22 Apr 2018 20:04:50 +0200 Subject: [Gambas-user] Why select "create menu entry"? In-Reply-To: <3b19a816-2fcd-4664-c37d-5c4462188dc1@gmail.com> References: <3b19a816-2fcd-4664-c37d-5c4462188dc1@gmail.com> Message-ID: 2018-04-22 19:53 GMT+02:00 Beno?t Minisini : > Le 22/04/2018 ? 19:48, Gianluigi a ?crit : > >> I know I'm not particularly smart, first I could not to access the >> Software farm because I was mistaken the password, then I selected "create >> menu entry" without knowing what was is for, so to remedy I uninstalled the >> project without need, it is enough to deselect "create menu entry". >> That said, someone kindly can explain to me what purpose to select >> "create menu entry" in Software farm publish procedure? >> >> Regards >> Gianluigi >> >> P.S.To confirm: I apologize, I sent by mistake this mail to notification >> : - / >> >> > It tells the installer to create a '*.desktop' file at the accurate place > in your home directory so that your desktop application menu gets a new > entry for launching your program. > > As the DesktopFile was buggy, the creation of the desktop file fails > miserably. > > Regards, > > -- > Beno?t Minisini > > Now I understand, thank you very much. Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Apr 22 20:19:05 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 22 Apr 2018 20:19:05 +0200 Subject: [Gambas-user] F2 instead of F1 Message-ID: The attached project summarizes the procedure used in seHelpBuilder to call for help. Here F1 is read correctly. Why I always get F2 in seHelpBuider Application_KeyPress? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestKeyPress-0.1.tar.gz Type: application/gzip Size: 12049 bytes Desc: not available URL: From taboege at gmail.com Mon Apr 23 00:12:54 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 23 Apr 2018 00:12:54 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> Message-ID: <20180422221254.GM926@highrise.localdomain> On Sun, 22 Apr 2018, Christof Thalhofer wrote: > The GUI itself is the container for its data ... awful ... in the > current state I think it is useless for the idea of letting the tests > run separately and presenting the data in different ways (console/GUI) > afterwards. > > So I would focus to just running the tests (which works good) and output > results to the console like it is done via TAP > > https://testanything.org/tap-specification.html > > Tap seems to be a common format for unittest output. If we are done we > can join this illustrious list: > > https://testanything.org/producers.html > > Tap can be parsed by other programs, one can then even use Jenkins to > test programs. > > All in all this is a major rewrite, I cannot do this within two weeks as > I currently do not have the time. So we should focus on a later version > of Gambas. As a perl fan, I am 100% in favour of using TAP. I forked your repository and started with the rewrite [1]. This is a multistage process: [X] Write low-level TAP printer and parser. [ ] Make corresponding higher-level interfaces akin to Test::More and Test::Harness in perl, but Gambas-y. [ ] Port the rest of the component to the TAP classes. [ ] Of course, write tests. This should include interfacing the component with other TAP producers and consumers. Comments welcome. If you want to take any of the above tasks yourself, we'll have to coordinate it. Regards, Tobi [1] https://github.com/taboege/gb.deg.unittest/tree/TAP -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From chrisml at deganius.de Mon Apr 23 07:53:02 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 23 Apr 2018 07:53:02 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <20180422221254.GM926@highrise.localdomain> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> Message-ID: Hello Tobi, Am 23.04.2018 um 00:12 schrieb Tobias Boege: > As a perl fan, I am 100% in favour of using TAP. Cool ! > I forked your repository > and started with the rewrite [1]. This is a multistage process: > > [X] Write low-level TAP printer and parser. > [ ] Make corresponding higher-level interfaces akin to Test::More and > Test::Harness in perl, but Gambas-y. > [ ] Port the rest of the component to the TAP classes. > [ ] Of course, write tests. This should include interfacing the component > with other TAP producers and consumers. > > Comments welcome. If you want to take any of the above tasks yourself, > we'll have to coordinate it. Ups .. double work. I did it [x] yesterday in the branch develop. https://github.com/Deganius/gb.deg.unittest/tree/develop May you first have a look at that? The TAP printer is done. But feel free to make it better (or replace it with yours). Btw. I got rid of the GUI, it makes no sense at all, IMO. While working with the unittest I used it very seldom. 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 rwe-sse at osnanet.de Mon Apr 23 08:48:02 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 23 Apr 2018 08:48:02 +0200 Subject: [Gambas-user] Drop into a GridView - how to hit a cell In-Reply-To: References: <3377f0d2-e729-f68b-6c96-48a278b181cc@gmail.com> <9037ab98-2e9e-b6f1-baf7-03788c79c478@osnanet.de> Message-ID: Am 20.04.2018 um 15:33 schrieb Charlie Ogier: > On 20/04/18 13:06, Rolf-Werner Eilert wrote: >> Am 20.04.2018 um 13:40 schrieb Beno?t Minisini: >>> Le 20/04/2018 ? 13:22, Rolf-Werner Eilert a ?crit?: >>>> When I drag and drop data into a GridView, I want to hit a certain >>>> cell. >>>> >>>> Within the GridView_Drop event, however, .Column and .Row aren't set >>>> automagically to the aimed cell where the mouse button was released. >>>> >>>> So I have to hit the cell myself. First idea: using Drag.X and >>>> Drag.Y, and then...? >>>> >>>> Any more comfortable idea is appreciated :) >>>> >>>> Regards >>>> Rolf >>>> >>> >>> Use RowAt() and ColumnAt() methods. >>> >>> Regards, >>> >> >> Thank you! Now it works as expected. >> >> Regards >> Rolf >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net > Hi Rolf, > > What did you put in RowAt() and ColumnAt()? > I tried RowAt(Mouse.Y) and ColumnAt(Mouse.X) but that only returned the > Row/Col of the 1st Gridview. > > Thanks, > > Charlie > In GridView1_Drop() I put: With GridView1 .Row = .RowAt(Drag.Y) .Column = .ColumnAt(Drag.X) Regards Rolf From taboege at gmail.com Mon Apr 23 11:08:01 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 23 Apr 2018 11:08:01 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> Message-ID: <20180423090801.GN926@highrise.localdomain> On Mon, 23 Apr 2018, Christof Thalhofer wrote: > > I forked your repository > > and started with the rewrite [1]. This is a multistage process: > > > > [X] Write low-level TAP printer and parser. > > [ ] Make corresponding higher-level interfaces akin to Test::More and > > Test::Harness in perl, but Gambas-y. > > [ ] Port the rest of the component to the TAP classes. > > [ ] Of course, write tests. This should include interfacing the component > > with other TAP producers and consumers. > > > > Comments welcome. If you want to take any of the above tasks yourself, > > we'll have to coordinate it. > > Ups .. double work. I did it [x] yesterday in the branch develop. > > https://github.com/Deganius/gb.deg.unittest/tree/develop > > May you first have a look at that? The TAP printer is done. But feel > free to make it better (or replace it with yours). > > Btw. I got rid of the GUI, it makes no sense at all, IMO. While working > with the unittest I used it very seldom. > The trap of distributed development. My fault I didn't look through your other branches. But in the end, it wasn't that much double work. I have a dedicated class to print TAP, which may be worth including, and also a TAP parser. Your work touched my point (3) above, too. I can easily rebase my changes onto yours and consolidate them -- but not before this evening. If I understood the code at a glance, there is also a bit of a difference in architecture. You have a TestSuite which contains tests, executes them, buffers the result and prints it TAP-formatted afterwards, whereas I imagined (and am used to from perl) that there are many functions which reduce input data to Booleans (are two strings equal? does this string match a regex? is this object defined and of a certain type? does this code not raise an error? are these arrays recursively equal? and so on) and that Boolean is printed as a TAP "ok/not ok" line, *as you go* through the tests, in case there is an unhandled error and the test crashes. The TAP parser will notice such a crash because either not all tests in the plan "1..N" were executed or the test plan wasn't even printed. It can still tell you about the tests that *were* run, which tell you which one crashed. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Mon Apr 23 16:33:38 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 23 Apr 2018 16:33:38 +0200 Subject: [Gambas-user] Software farm Message-ID: Hi Benoit, I wrote a little guide to using Software Farm on our Gambas-it.org website. Yes, it's how you think, I wrote it mainly for myself. ;-D I ask you two clarifications. It is correct to say: 1 - *Install* download the project checking that the libraries and components useful for its operation are present in our operating system, fails if it does not find them (so, if I remember correctly, had been explained me by Jsbsan. 2 - We do not activate 'Create menu entry' because it can give problems to those who have not updated version of Gambas and the desktop file is buggy. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Apr 23 16:41:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 23 Apr 2018 16:41:42 +0200 Subject: [Gambas-user] Software farm In-Reply-To: References: Message-ID: <296d1743-2247-89c3-4073-408f8dc9afac@gmail.com> Le 23/04/2018 ? 16:33, Gianluigi a ?crit?: > Hi Benoit, > I wrote a little guide to using Software Farm on our Gambas-it.org website. > Yes, it's how you think, I wrote it mainly for myself. ;-D > I ask you two clarifications. It is correct to say: > > 1 - *Install* download the project checking that the libraries and > components useful for its operation are present in our operating system, > fails if it does not find them (so, if I remember correctly, had been > explained me by Jsbsan. Actually checking the libraries is not done yet, only the components (see the source code). > > 2 - We do not activate 'Create menu entry' because it can give problems > to those who have not updated version of Gambas and the desktop file is > buggy. Alas yes. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Mon Apr 23 16:43:27 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 23 Apr 2018 16:43:27 +0200 Subject: [Gambas-user] Question about "Source Archives" option in the IDE Message-ID: <90111af0-921a-5a4d-5ed9-36b194d1115c@gmail.com> Hello, Does anyone use the "Source archives" panel in the IDE configuration dialog? I'd like to remove it if it is unused. Regards, -- Beno?t Minisini From taboege at gmail.com Mon Apr 23 17:01:10 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 23 Apr 2018 17:01:10 +0200 Subject: [Gambas-user] Question about "Source Archives" option in the IDE In-Reply-To: <90111af0-921a-5a4d-5ed9-36b194d1115c@gmail.com> References: <90111af0-921a-5a4d-5ed9-36b194d1115c@gmail.com> Message-ID: <20180423150110.GO926@highrise.localdomain> On Mon, 23 Apr 2018, Beno?t Minisini wrote: > Hello, > > Does anyone use the "Source archives" panel in the IDE configuration dialog? > > I'd like to remove it if it is unused. > I have never modified that list but that just means that the default is good. The functionality is useful, isn't it? A release tarball, if someone chooses to make it from the IDE, shouldn't include all its git history, for example. (I would even add .settings and compiler-generated files like .gambas, .list and .info to that list, and to the default .gitignore, but that's a different topic.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Mon Apr 23 17:03:17 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 23 Apr 2018 17:03:17 +0200 Subject: [Gambas-user] Question about "Source Archives" option in the IDE In-Reply-To: <20180423150110.GO926@highrise.localdomain> References: <90111af0-921a-5a4d-5ed9-36b194d1115c@gmail.com> <20180423150110.GO926@highrise.localdomain> Message-ID: Le 23/04/2018 ? 17:01, Tobias Boege a ?crit?: > On Mon, 23 Apr 2018, Beno?t Minisini wrote: >> Hello, >> >> Does anyone use the "Source archives" panel in the IDE configuration dialog? >> >> I'd like to remove it if it is unused. >> > > I have never modified that list but that just means that the default is good. > The functionality is useful, isn't it? A release tarball, if someone chooses > to make it from the IDE, shouldn't include all its git history, for example. > (I would even add .settings and compiler-generated files like .gambas, .list > and .info to that list, and to the default .gitignore, but that's a different > topic.) > > Regards, > Tobi > The following patterns are already ignored by default: - .gambas/*" - *~ - core - core*.* - vgcore*.* - .lock" - .lang/*.pot" - .lang/.pot" - .xvpics" I will complete the list with your suggestions. -- Beno?t Minisini From bagonergi at gmail.com Mon Apr 23 17:08:20 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 23 Apr 2018 17:08:20 +0200 Subject: [Gambas-user] Question about "Source Archives" option in the IDE In-Reply-To: References: <90111af0-921a-5a4d-5ed9-36b194d1115c@gmail.com> <20180423150110.GO926@highrise.localdomain> Message-ID: 2018-04-23 17:03 GMT+02:00 Beno?t Minisini : > Le 23/04/2018 ? 17:01, Tobias Boege a ?crit : > >> On Mon, 23 Apr 2018, Beno?t Minisini wrote: >> >>> Hello, >>> >>> Does anyone use the "Source archives" panel in the IDE configuration >>> dialog? >>> >>> I'd like to remove it if it is unused. >>> >>> >> I have never modified that list but that just means that the default is >> good. >> The functionality is useful, isn't it? A release tarball, if someone >> chooses >> to make it from the IDE, shouldn't include all its git history, for >> example. >> (I would even add .settings and compiler-generated files like .gambas, >> .list >> and .info to that list, and to the default .gitignore, but that's a >> different >> topic.) >> >> Regards, >> Tobi >> >> > The following patterns are already ignored by default: > > - .gambas/*" > - *~ > - core > - core*.* > - vgcore*.* > - .lock" > - .lang/*.pot" > - .lang/.pot" > - .xvpics" > > I will complete the list with your suggestions. > > -- > Beno?t Minisini > > I never used it Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Apr 23 17:10:43 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 23 Apr 2018 17:10:43 +0200 Subject: [Gambas-user] Software farm In-Reply-To: <296d1743-2247-89c3-4073-408f8dc9afac@gmail.com> References: <296d1743-2247-89c3-4073-408f8dc9afac@gmail.com> Message-ID: 2018-04-23 16:41 GMT+02:00 Beno?t Minisini : > Le 23/04/2018 ? 16:33, Gianluigi a ?crit : > >> Hi Benoit, >> I wrote a little guide to using Software Farm on our Gambas-it.org >> website. >> Yes, it's how you think, I wrote it mainly for myself. ;-D >> I ask you two clarifications. It is correct to say: >> >> 1 - *Install* download the project checking that the libraries and >> components useful for its operation are present in our operating system, >> fails if it does not find them (so, if I remember correctly, had been >> explained me by Jsbsan. >> > > Actually checking the libraries is not done yet, only the components (see > the source code). > > >> 2 - We do not activate 'Create menu entry' because it can give problems >> to those who have not updated version of Gambas and the desktop file is >> buggy. >> > > Alas yes. > > Regards, > > -- > Beno?t Minisini > > Thanks so much Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Apr 24 07:52:35 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 24 Apr 2018 07:52:35 +0200 Subject: [Gambas-user] Integrate unittest component to Gambas In-Reply-To: <20180423090801.GN926@highrise.localdomain> References: <74b0f923-bdb3-77a5-289a-c6ed61d9ccae@deganius.de> <29faa1a4-ca13-d7fa-1b12-8720225de784@gmail.com> <517374d9-35db-1da4-890b-b322e6678af3@deganius.de> <3a18eade-0d88-0580-a86c-8ce3108a7410@gmail.com> <89463eb0-dba2-b690-6e6a-06cb52e08006@deganius.de> <843e7224-fe53-f1f2-53d8-4bdedfb5160f@gmail.com> <20180422221254.GM926@highrise.localdomain> <20180423090801.GN926@highrise.localdomain> Message-ID: Am 23.04.2018 um 11:08 schrieb Tobias Boege: > The trap of distributed development. My fault I didn't look through your > other branches. But in the end, it wasn't that much double work. I have > a dedicated class to print TAP, which may be worth including, and also a > TAP parser. Your work touched my point (3) above, too. I can easily rebase > my changes onto yours and consolidate them -- but not before this evening. Ok super, it is very good when you have a look at the code. The TAP printing function cost me about one hour, it was not that expensive ... This week I have not very much time, I couldn't even look at your code ... :-( > If I understood the code at a glance, there is also a bit of a difference > in architecture. You have a TestSuite which contains tests, executes them, > buffers the result and prints it TAP-formatted afterwards, whereas I > imagined (and am used to from perl) that there are many functions which > reduce input data to Booleans (are two strings equal? does this string > match a regex? is this object defined and of a certain type? does this > code not raise an error? are these arrays recursively equal? and so on) > and that Boolean is printed as a TAP "ok/not ok" line, *as you go* through > the tests, in case there is an unhandled error and the test crashes. > The TAP parser will notice such a crash because either not all tests > in the plan "1..N" were executed or the test plan wasn't even printed. > It can still tell you about the tests that *were* run, which tell you > which one crashed. Yes, you got it right, the tests are executed one after another and the results are buffered in TestResult (but only the failed ones). Therefore I had to restore the sequence by iterating through TestSuite (which contains the Tests) in Unittest.PrintTapResult(). This is not very cool, indeed it would be better if the Unittest would print out the TAP results on the fly without buffering. I you have a look at the stable code there it is done with events, but was delivered to the GUI to the tracer form. Maybe we can take these events and deliver to the TAP printer. One thing, the current code does right, is: It distinguishes between failures (the result is not as expected) and errors and can buffer (not so good) errors (this happens in TestCase.Run [59-62]). But if the tested code leads to a segfault then all previous test results are gone. That's pretty bad and should not happen. This week I won't be able to do anything further so feel free to play around. 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 rwe-sse at osnanet.de Tue Apr 24 12:14:09 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 24 Apr 2018 12:14:09 +0200 Subject: [Gambas-user] What is missed: pointer to control name Message-ID: This is one thing I sometimes miss. Just an example from my current project. - I have GridView1, 2, 3, 4, 5. - There is an array of strings for the GridView titles. Now I want a ptr = titlearray.Find("Title3"), pointing to item no. 2. In code, however, I have to do a Select ptr Case 0 something "GridView1" Case 1 something "GridView2" case 2 something "GridView3" etc. End select If I could simply Something GridViewX (where X is my ptr - 1) it was much, much easier. Do you agree, or am I completely wrong here? Regards Rolf From taboege at gmail.com Tue Apr 24 12:38:23 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 24 Apr 2018 12:38:23 +0200 Subject: [Gambas-user] What is missed: pointer to control name In-Reply-To: References: Message-ID: <20180424103823.GA28294@highrise.localdomain> On Tue, 24 Apr 2018, Rolf-Werner Eilert wrote: > This is one thing I sometimes miss. > > Just an example from my current project. > > - I have GridView1, 2, 3, 4, 5. > > - There is an array of strings for the GridView titles. > > Now I want a ptr = titlearray.Find("Title3"), pointing to item no. 2. In > code, however, I have to do a > > Select ptr > Case 0 > something "GridView1" > Case 1 > something "GridView2" > case 2 > something "GridView3" > etc. > End select > > If I could simply Something GridViewX (where X is my ptr - 1) it was much, > much easier. > > Do you agree, or am I completely wrong here? > What you are looking for is Window._get [1]. In a test project, add Label1 and Label2 with different Text properties, a SpinBox1 and a Button1. Then add the code: Public Sub Button1_Click() Dim hLabel As Label hLabel = Me["Label" & SpinBox1.Value] Print hLabel.Text End You can put the label number into the SpinBox, look up the constructed control name in your form, then use that object how you want. I have to "cast" it into a Label variable first, as the Text property lookup fails otherwise. That said, whenever this question comes up, I end up recommending to make a custom control. Relying on numbers in control names isn't pretty IMHO. If you have multiple numbered GridViews that you either want to treat all the same or couple into a single widget, it calls for encapsulation. A separate Control class *could*, depending on what you're doing, manage the GridViews better and take that code out of your main program. But you don't give enough context to estimate that. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.qt4/window/_get -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From rwe-sse at osnanet.de Tue Apr 24 13:13:25 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 24 Apr 2018 13:13:25 +0200 Subject: [Gambas-user] What is missed: pointer to control name In-Reply-To: <20180424103823.GA28294@highrise.localdomain> References: <20180424103823.GA28294@highrise.localdomain> Message-ID: <4dfc71d6-95e7-10cd-a47e-ff62423e8ec0@osnanet.de> Am 24.04.2018 um 12:38 schrieb Tobias Boege: > On Tue, 24 Apr 2018, Rolf-Werner Eilert wrote: >> This is one thing I sometimes miss. >> >> Just an example from my current project. >> >> - I have GridView1, 2, 3, 4, 5. >> >> - There is an array of strings for the GridView titles. >> >> Now I want a ptr = titlearray.Find("Title3"), pointing to item no. 2. In >> code, however, I have to do a >> >> Select ptr >> Case 0 >> something "GridView1" >> Case 1 >> something "GridView2" >> case 2 >> something "GridView3" >> etc. >> End select >> >> If I could simply Something GridViewX (where X is my ptr - 1) it was much, >> much easier. >> >> Do you agree, or am I completely wrong here? >> > > What you are looking for is Window._get [1]. In a test project, add Label1 > and Label2 with different Text properties, a SpinBox1 and a Button1. Then > add the code: > > Public Sub Button1_Click() > Dim hLabel As Label > > hLabel = Me["Label" & SpinBox1.Value] > Print hLabel.Text > End > > You can put the label number into the SpinBox, look up the constructed > control name in your form, then use that object how you want. I have to > "cast" it into a Label variable first, as the Text property lookup fails > otherwise. > Thank you for the example code, what I made from it runs flawlessly: Private Sub droprahmenZeigen(kl As String) Dim zeiger As Integer Dim hGridView As GridView zeiger = klassenbez.Find(kl) If zeiger = -1 Then Return hGridView = Me["GridView" & CStr(zeiger + 1)] Drag.Show(hGridView) ' Select zeiger ' Case 0 ' Drag.Show(GridView1) ' Case 1 ' Drag.Show(GridView2) ' Case 2 ' Drag.Show(GridView3) ' Case 3 ' Drag.Show(Gridview4) ' Case 4 ' Drag.Show(Gridview5) ' End Select End > That said, whenever this question comes up, I end up recommending to make > a custom control. Relying on numbers in control names isn't pretty IMHO. Oh yes, it is pretty ugly :) Now that reminds me of the Tag property, maybe one could use it (in relation with some function that evaluates it). If I think of my above example, something like Gridview1.Tag = klassenbez[0] etc. which would spare you getting a pointer 1, 2, 3... but could use the strings in klassenbez[] directly. and then... have to think about it. > If you have multiple numbered GridViews that you either want to treat all > the same or couple into a single widget, it calls for encapsulation. This is not the case here. > A separate Control class *could*, depending on what you're doing, manage > the GridViews better and take that code out of your main program. But you > don't give enough context to estimate that. That could be something for the Tag thing, but how to look up the strings? Would have to be some function like Find. Regards Rolf From bugtracker at gambaswiki.org Tue Apr 24 13:32:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 24 Apr 2018 11:32:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1298: I'm having problems with 'input' Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1298&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- I'm having problems with 'input' Type : Bug Priority : High Gambas version : 3.10 Product : Development Environment Description ----------- I'm having problems with 'input' limitation of characters cut text if there are spaces. I can not use texts of more than one word System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Tue Apr 24 13:35:38 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 24 Apr 2018 11:35:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1298: I'm having problems with 'input' In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1298&from=L21haW4- Comment #1 by Beno?t MINISINI: This is by design, how is this a bug? Please use the mailing-list if you have programming questions. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Tue Apr 24 13:36:32 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 24 Apr 2018 11:36:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1297: Illegal Operation in Serial Communication In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1297&from=L21haW4- Comment #1 by Beno?t MINISINI: I will look at it, but aren't you sure that opening the same device port twice is not perfectly legal with Linux? Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at gambaswiki.org Tue Apr 24 13:36:42 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 24 Apr 2018 11:36:42 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1298: I'm having problems with 'input' In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1298&from=L21haW4- Comment #2 by Tobias BOEGE: This is by design and documentation [1]: > INPUT [ # Stream , ] Variable [ , Variable ... ] > Reads the stream Stream, and converts elements *separated by space characters* or newlines with the Val function before putting them into the variables. If you want to read an entire line, use LINE INPUT [2]. [1] http://gambaswiki.org/wiki/lang/input [2] http://gambaswiki.org/wiki/lang/lineinput From bugtracker at gambaswiki.org Tue Apr 24 13:54:01 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Tue, 24 Apr 2018 11:54:01 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1298: I'm having problems with 'input' In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1298&from=L21haW4- Comment #3 by V?ctor PEREZ: sorry From bagonergi at gmail.com Tue Apr 24 16:00:39 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 16:00:39 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: 2018-04-22 20:19 GMT+02:00 Gianluigi : > The attached project summarizes the procedure used in seHelpBuilder to > call for help. > Here F1 is read correctly. > Why I always get F2 in seHelpBuider Application_KeyPress? > > Regards > Gianluigi > >From two weeks I'm breaking my head on this problem. If I try with a small example (see previous mail) the code works, if I transport it to seHelpBuilder no. I tried to move the code from the main module to the main window without result. I tried to change properties with a function, nothing. It seems like a bug when reading the function keys, because the first routine that start on the key can only be Application_KeyPress of the main module and it always reads "Key.F2" when I act on the F1 key. I thought it could be the IDE's fault, but I get the same behavior even in the executable. Help would be greatly appreciated. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 24 16:16:01 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 24 Apr 2018 16:16:01 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: Le 24/04/2018 ? 16:00, Gianluigi a ?crit?: > > 2018-04-22 20:19 GMT+02:00 Gianluigi >: > > The attached project summarizes the procedure used in seHelpBuilder > to call for help. > Here F1 is read correctly. > Why I always get F2 in seHelpBuider Application_KeyPress? > > Regards > Gianluigi > > > From two weeks I'm breaking my head on this problem. > If I try with a small example (see previous mail) the code works, if I > transport it to seHelpBuilder no. > I tried to move the code from the main module to the main window without > result. > I tried to change properties with a function, nothing. > It seems like a bug when reading the function keys, because the first > routine that start on the key can only be Application_KeyPress of the > main module and it always reads "Key.F2" when I act on the F1 key. > I thought it could be the IDE's fault, but I get the same behavior even > in the executable. > > Help would be greatly appreciated. > Regards > Gianluigi > No idea at the moment, but don't use Application_KeyPress. You should not decide for the user of your library which shortcut he wants to use. -- Beno?t Minisini From bagonergi at gmail.com Tue Apr 24 16:25:22 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 16:25:22 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: 2018-04-24 16:16 GMT+02:00 Beno?t Minisini : > Le 24/04/2018 ? 16:00, Gianluigi a ?crit : > >> >> 2018-04-22 20:19 GMT+02:00 Gianluigi > bagonergi at gmail.com>>: >> >> The attached project summarizes the procedure used in seHelpBuilder >> to call for help. >> Here F1 is read correctly. >> Why I always get F2 in seHelpBuider Application_KeyPress? >> >> Regards >> Gianluigi >> >> >> From two weeks I'm breaking my head on this problem. >> If I try with a small example (see previous mail) the code works, if I >> transport it to seHelpBuilder no. >> I tried to move the code from the main module to the main window without >> result. >> I tried to change properties with a function, nothing. >> It seems like a bug when reading the function keys, because the first >> routine that start on the key can only be Application_KeyPress of the main >> module and it always reads "Key.F2" when I act on the F1 key. >> I thought it could be the IDE's fault, but I get the same behavior even >> in the executable. >> >> Help would be greatly appreciated. >> Regards >> Gianluigi >> >> > No idea at the moment, but don't use Application_KeyPress. > > You should not decide for the user of your library which shortcut he wants > to use. > > -- > Beno?t Minisini > > Ok I move the code on the main window. But I fear that it will continue to not work Thanks for the explanation. Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Apr 24 16:51:48 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 16:51:48 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: 2018-04-24 16:25 GMT+02:00 Gianluigi : > > > 2018-04-24 16:16 GMT+02:00 Beno?t Minisini : > >> Le 24/04/2018 ? 16:00, Gianluigi a ?crit : >> >>> >>> 2018-04-22 20:19 GMT+02:00 Gianluigi >> bagonergi at gmail.com>>: >>> >>> The attached project summarizes the procedure used in seHelpBuilder >>> to call for help. >>> Here F1 is read correctly. >>> Why I always get F2 in seHelpBuider Application_KeyPress? >>> >>> Regards >>> Gianluigi >>> >>> >>> From two weeks I'm breaking my head on this problem. >>> If I try with a small example (see previous mail) the code works, if I >>> transport it to seHelpBuilder no. >>> I tried to move the code from the main module to the main window without >>> result. >>> I tried to change properties with a function, nothing. >>> It seems like a bug when reading the function keys, because the first >>> routine that start on the key can only be Application_KeyPress of the main >>> module and it always reads "Key.F2" when I act on the F1 key. >>> I thought it could be the IDE's fault, but I get the same behavior even >>> in the executable. >>> >>> Help would be greatly appreciated. >>> Regards >>> Gianluigi >>> >>> >> No idea at the moment, but don't use Application_KeyPress. >> >> You should not decide for the user of your library which shortcut he >> wants to use. >> >> -- >> Beno?t Minisini >> >> > Ok I move the code on the main window. > But I fear that it will continue to not work > Thanks for the explanation. > > Regards > Gianluigi > > Hi Benoit, I updated as per your suggestions, the malfunction persists. Regards Gianluigi > -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Apr 24 17:18:06 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 17:18:06 +0200 Subject: [Gambas-user] Question of shortcut keys position Message-ID: Hi Benoit, I have not completely understood this suggestion: "You should not decide for the user of your library which shortcut he wants to use." But is not it always the programmer who decides what the shortcut keys of his application will be? Is not it normal to reserve F1 and F2 for help? This application is a utility if the shortcut keys are in the main module is not easier for the programmer to intervene and change them? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 24 17:33:13 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 24 Apr 2018 17:33:13 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: References: Message-ID: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> Le 24/04/2018 ? 17:18, Gianluigi a ?crit?: > Hi Benoit, > I have not completely understood this suggestion: > "You should not decide for the user of your library which shortcut he > wants to use." > But is not it always the programmer who decides what the shortcut keys > of his application will be? > Is not it normal to reserve F1 and F2 for help? > This application is a utility if the shortcut keys are in the main > module is not easier for the programmer to intervene and change them? > > Regards > Gianluigi > No, shortcuts should be configurable. In Gambas, this is done through : - The "Action" property of a control. - The "Shortcut" associated with a menu entry having its Action property set. - the gb.form.mdi component that adds support for configuring these shortcuts. At the moment, this is not possible to have an action with a shortcut outside of a menu entry. I suggest that you don't try to handle the shortcut. Just offer a method to show your help browser, and let the user of your library manage the shortcuts as he likes. -- Beno?t Minisini From g4mba5 at gmail.com Tue Apr 24 17:44:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 24 Apr 2018 17:44:59 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: Le 24/04/2018 ? 16:51, Gianluigi a ?crit?: > > Ok I move the code on the main window. > But I fear that it will continue to not work > Thanks for the explanation. > > Regards > Gianluigi > > > Hi Benoit, > I updated as per your suggestions, the malfunction persists. > > Regards > Gianluigi > Can you try to isolate that bug in a small project? -- Beno?t Minisini From bagonergi at gmail.com Tue Apr 24 17:59:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 17:59:32 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: 2018-04-24 17:44 GMT+02:00 Beno?t Minisini : > Le 24/04/2018 ? 16:51, Gianluigi a ?crit : > >> >> Ok I move the code on the main window. >> But I fear that it will continue to not work >> Thanks for the explanation. >> >> Regards >> Gianluigi >> >> >> Hi Benoit, >> I updated as per your suggestions, the malfunction persists. >> >> Regards >> Gianluigi >> >> > Can you try to isolate that bug in a small project? > > -- > Beno?t Minisini > > I try. I hope you were the one to download the latest seHelpBuilder which contains by default System.Language = "fr_FR.UTF-8" activated, I have already remedied, I apologize. Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Apr 24 18:06:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 18:06:33 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> Message-ID: 2018-04-24 17:33 GMT+02:00 Beno?t Minisini : > Le 24/04/2018 ? 17:18, Gianluigi a ?crit : > >> Hi Benoit, >> I have not completely understood this suggestion: >> "You should not decide for the user of your library which shortcut he >> wants to use." >> But is not it always the programmer who decides what the shortcut keys of >> his application will be? >> Is not it normal to reserve F1 and F2 for help? >> This application is a utility if the shortcut keys are in the main module >> is not easier for the programmer to intervene and change them? >> >> Regards >> Gianluigi >> >> > No, shortcuts should be configurable. > > In Gambas, this is done through : > > - The "Action" property of a control. > > - The "Shortcut" associated with a menu entry having its Action property > set. > > - the gb.form.mdi component that adds support for configuring these > shortcuts. > > At the moment, this is not possible to have an action with a shortcut > outside of a menu entry. > > I suggest that you don't try to handle the shortcut. Just offer a method > to show your help browser, and let the user of your library manage the > shortcuts as he likes. > > -- > Beno?t Minisini > > What you have just given me is a great teaching. Thank you so much Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Apr 24 18:16:00 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 24 Apr 2018 18:16:00 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> Message-ID: <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> Le 24/04/2018 ? 18:06, Gianluigi a ?crit?: > > > 2018-04-24 17:33 GMT+02:00 Beno?t Minisini >: > > Le 24/04/2018 ? 17:18, Gianluigi a ?crit?: > > Hi Benoit, > I have not completely understood this suggestion: > "You should not decide for the user of your library which > shortcut he wants to use." > But is not it always the programmer who decides what the > shortcut keys of his application will be? > Is not it normal to reserve F1 and F2 for help? > This application is a utility if the shortcut keys are in the > main module is not easier for the programmer to intervene and > change them? > > Regards > Gianluigi > > > No, shortcuts should be configurable. > > In Gambas, this is done through : > > - The "Action" property of a control. > > - The "Shortcut" associated with a menu entry having its Action > property set. > > - the gb.form.mdi component that adds support for configuring these > shortcuts. > > At the moment, this is not possible to have an action with a > shortcut outside of a menu entry. > > I suggest that you don't try to handle the shortcut. Just offer a > method to show your help browser, and let the user of your library > manage the shortcuts as he likes. > > -- > Beno?t Minisini > > > What you have just given me is a great teaching. > Thank you so much > > Regards > Gianluigi > Well, if you didn't know, gb.form.mdi (which is not just a component for multi-document interface) provides you a Toolbar container: - Every control put in it with the Action property set will be configurable. - If the action of a control (which is just a string) starts with a point, then this action is assumed local to the form of the control. Otherwise it is a global action. - The Action class allows you to enable, disable actions. All controls having the same action are handled in one shot. Just use the IDE toolbars and menus, and you see how it works. Regards, -- Beno?t Minisini From bagonergi at gmail.com Tue Apr 24 18:30:53 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 18:30:53 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> Message-ID: 2018-04-24 18:16 GMT+02:00 Beno?t Minisini : > Le 24/04/2018 ? 18:06, Gianluigi a ?crit : > >> >> >> 2018-04-24 17:33 GMT+02:00 Beno?t Minisini > g4mba5 at gmail.com>>: >> >> Le 24/04/2018 ? 17:18, Gianluigi a ?crit : >> >> Hi Benoit, >> I have not completely understood this suggestion: >> "You should not decide for the user of your library which >> shortcut he wants to use." >> But is not it always the programmer who decides what the >> shortcut keys of his application will be? >> Is not it normal to reserve F1 and F2 for help? >> This application is a utility if the shortcut keys are in the >> main module is not easier for the programmer to intervene and >> change them? >> >> Regards >> Gianluigi >> >> >> No, shortcuts should be configurable. >> >> In Gambas, this is done through : >> >> - The "Action" property of a control. >> >> - The "Shortcut" associated with a menu entry having its Action >> property set. >> >> - the gb.form.mdi component that adds support for configuring these >> shortcuts. >> >> At the moment, this is not possible to have an action with a >> shortcut outside of a menu entry. >> >> I suggest that you don't try to handle the shortcut. Just offer a >> method to show your help browser, and let the user of your library >> manage the shortcuts as he likes. >> >> -- Beno?t Minisini >> >> >> What you have just given me is a great teaching. >> Thank you so much >> >> Regards >> Gianluigi >> >> > Well, if you didn't know, gb.form.mdi (which is not just a component for > multi-document interface) provides you a Toolbar container: > > - Every control put in it with the Action property set will be > configurable. > > - If the action of a control (which is just a string) starts with a point, > then this action is assumed local to the form of the control. Otherwise it > is a global action. > > - The Action class allows you to enable, disable actions. All controls > having the same action are handled in one shot. > > Just use the IDE toolbars and menus, and you see how it works. > > Regards, > > -- > Beno?t Minisini > > Yes Benoit, in seHelpBuider I used gb.form.mdi with the toolbar container. I used Action_Activate by copying your code, but obviously I did not completely understand it :-( Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Apr 24 20:19:08 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 20:19:08 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: 2018-04-24 17:44 GMT+02:00 Beno?t Minisini : > Le 24/04/2018 ? 16:51, Gianluigi a ?crit : > >> >> Ok I move the code on the main window. >> But I fear that it will continue to not work >> Thanks for the explanation. >> >> Regards >> Gianluigi >> >> >> Hi Benoit, >> I updated as per your suggestions, the malfunction persists. >> >> Regards >> Gianluigi >> >> > Can you try to isolate that bug in a small project? > > -- > Beno?t Minisini > > I removed all the code, it seems that this window prevents him from reading F1 Tomorrow I will deepen Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestseHelpBuilder-0.0.1.tar.gz Type: application/gzip Size: 120380 bytes Desc: not available URL: From bagonergi at gmail.com Tue Apr 24 22:35:14 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 24 Apr 2018 22:35:14 +0200 Subject: [Gambas-user] F2 instead of F1 In-Reply-To: References: Message-ID: 2018-04-24 20:19 GMT+02:00 Gianluigi : > > > 2018-04-24 17:44 GMT+02:00 Beno?t Minisini : > >> Le 24/04/2018 ? 16:51, Gianluigi a ?crit : >> >>> >>> Ok I move the code on the main window. >>> But I fear that it will continue to not work >>> Thanks for the explanation. >>> >>> Regards >>> Gianluigi >>> >>> >>> Hi Benoit, >>> I updated as per your suggestions, the malfunction persists. >>> >>> Regards >>> Gianluigi >>> >>> >> Can you try to isolate that bug in a small project? >> >> -- >> Beno?t Minisini >> >> > I removed all the code, it seems that this window prevents him from > reading F1 > Tomorrow I will deepen > > Regards > Gianluigi > > Solved, I'm a real idiot, F1 was calling F2. I suspected it but I was looking everywhere except where it was logical. Regards Gianluigi > -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Apr 25 13:21:03 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 25 Apr 2018 13:21:03 +0200 Subject: [Gambas-user] What is missed: pointer to control name In-Reply-To: <20180424103823.GA28294@highrise.localdomain> References: <20180424103823.GA28294@highrise.localdomain> Message-ID: <03d9ffcd-9c48-cff1-cb33-70232f599e34@osnanet.de> Am 24.04.2018 um 12:38 schrieb Tobias Boege: > On Tue, 24 Apr 2018, Rolf-Werner Eilert wrote: >> This is one thing I sometimes miss. >> >> Just an example from my current project. >> >> - I have GridView1, 2, 3, 4, 5. >> >> - There is an array of strings for the GridView titles. >> >> Now I want a ptr = titlearray.Find("Title3"), pointing to item no. 2. In >> code, however, I have to do a >> >> Select ptr >> Case 0 >> something "GridView1" >> Case 1 >> something "GridView2" >> case 2 >> something "GridView3" >> etc. >> End select >> >> If I could simply Something GridViewX (where X is my ptr - 1) it was much, >> much easier. >> >> Do you agree, or am I completely wrong here? >> > > What you are looking for is Window._get [1]. In a test project, add Label1 > and Label2 with different Text properties, a SpinBox1 and a Button1. Then > add the code: > > Public Sub Button1_Click() > Dim hLabel As Label > > hLabel = Me["Label" & SpinBox1.Value] > Print hLabel.Text > End > > You can put the label number into the SpinBox, look up the constructed > control name in your form, then use that object how you want. I have to > "cast" it into a Label variable first, as the Text property lookup fails > otherwise. > > That said, whenever this question comes up, I end up recommending to make > a custom control. Relying on numbers in control names isn't pretty IMHO. > If you have multiple numbered GridViews that you either want to treat all > the same or couple into a single widget, it calls for encapsulation. > A separate Control class *could*, depending on what you're doing, manage > the GridViews better and take that code out of your main program. But you > don't give enough context to estimate that. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/comp/gb.qt4/window/_get > Hi Tobias, I'm missing my first answer mail echo from the list. Hope you got it. If not, please tell me and I'll resend it. Further to our discussion, I had the idea of using .Tag in some way, and this is what I found practical: Public Sub GridView1_MouseDrag() With GridView1 klasse = klassenbez[Val(.Tag) - 1] When I copy this code into GridView2_MouseDrag() and 3 and 4 and so on, I won't have to take care that klassenbez[] is changed appropriately. But I still have to take care to change With GridView1 into GridView2 etc., so it's only half way done. Your solution would help here, but is it really worth making a new instance of a GridView just to look up its number for every MouseDrag? In my answer I posted yesterday, the function I included your solution in is only used seldomly, so I could live with it. Regards Rolf From g4mba5 at gmail.com Wed Apr 25 14:14:00 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 25 Apr 2018 14:14:00 +0200 Subject: [Gambas-user] What is missed: pointer to control name In-Reply-To: <03d9ffcd-9c48-cff1-cb33-70232f599e34@osnanet.de> References: <20180424103823.GA28294@highrise.localdomain> <03d9ffcd-9c48-cff1-cb33-70232f599e34@osnanet.de> Message-ID: <44dd46a1-a78a-5cb3-d9f9-030aeeea5953@gmail.com> Le 25/04/2018 ? 13:21, Rolf-Werner Eilert a ?crit?: > > Hi Tobias, > > I'm missing my first answer mail echo from the list. Hope you got it. If > not, please tell me and I'll resend it. > > Further to our discussion, I had the idea of using .Tag in some way, and > this is what I found practical: > > Public Sub GridView1_MouseDrag() > > ? With GridView1 > > ??? klasse = klassenbez[Val(.Tag) - 1] > > When I copy this code into GridView2_MouseDrag() and 3 and 4 and so on, > I won't have to take care that klassenbez[] is changed appropriately. > But I still have to take care to change With GridView1 into GridView2 > etc., so it's only half way done. > > Your solution would help here, but is it really worth making a new > instance of a GridView just to look up its number for every MouseDrag? > In my answer I posted yesterday, the function I included your solution > in is only used seldomly, so I could live with it. > > Regards > Rolf > Why don't you use control groups and LAST ??? -- Beno?t Minisini From mckaygerhard at gmail.com Wed Apr 25 16:42:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 25 Apr 2018 10:42:05 -0400 Subject: [Gambas-user] gambas playground are active project? Message-ID: hi! playground are great, but i wish to install locally and not in a docker! how to? http://gambaswiki.org/wiki/playground my dessire its to include in a live disk that we use too much here to change machines without many clicks in any case, how i can install gambas playground in a normal linux install i cannot remenber the project github/gitlab url .. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Apr 25 16:59:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 25 Apr 2018 16:59:32 +0200 Subject: [Gambas-user] gambas playground are active project? In-Reply-To: References: Message-ID: Are you looking for this [0]? Regards Gianluigi [0] https://gitlab.com/prokopyl/gambas-playground 2018-04-25 16:42 GMT+02:00 PICCORO McKAY Lenz : > > hi! playground are great, but i wish to install locally and not in a > docker! how to? > > http://gambaswiki.org/wiki/playground > > my dessire its to include in a live disk that we use too much here to > change machines without many clicks > > in any case, how i can install gambas playground in a normal linux install > > i cannot remenber the project github/gitlab url .. > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Wed Apr 25 17:41:17 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 25 Apr 2018 18:41:17 +0300 Subject: [Gambas-user] WebTable Scroll header Message-ID: <20180425154007.M37628@455.co.il> hello Can you make a table header that will not disappear when scrolling down From bagonergi at gmail.com Wed Apr 25 17:59:12 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 25 Apr 2018 17:59:12 +0200 Subject: [Gambas-user] WebTable Scroll header In-Reply-To: <20180425154007.M37628@455.co.il> References: <20180425154007.M37628@455.co.il> Message-ID: I do not understand, do you mean something like that? -------------------------------------------------------- Public Sub Form_Open() With TableView1 .Header = 3 .Rows.count = 215 .Columns.count = 2 .Columns[0].Text = "Mame" .Columns[1].Text = "Address" End With End ------------------------------------------------------- Regards Gianluigi 2018-04-25 17:41 GMT+02:00 Mayost Sharon : > hello > > Can you make a table header that will not disappear when scrolling down > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Apr 25 18:02:24 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 25 Apr 2018 18:02:24 +0200 Subject: [Gambas-user] WebTable Scroll header In-Reply-To: <20180425154007.M37628@455.co.il> References: <20180425154007.M37628@455.co.il> Message-ID: <0cb833c6-7455-62eb-c933-bbc8025863ef@gmail.com> Le 25/04/2018 ? 17:41, Mayost Sharon a ?crit?: > hello > > Can you make a table header that will not disappear when scrolling down > This is not possible in standard HTML, but it seems there are some CSS hacks that can help. I will see if I can use them in gb.web.form. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Wed Apr 25 18:03:46 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 25 Apr 2018 12:03:46 -0400 Subject: [Gambas-user] gambas playground are active project? In-Reply-To: References: Message-ID: hi, i can see that was focused on docker deploy (and cloud docker now are abandoned) i dont trush on docker due are like fashion.. thankns for the link, i try to use it and install,. maybe made a package.. i need some instructions tips and directions some one can help me? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-25 10:59 GMT-04:00 Gianluigi : > Are you looking for this [0]? > > Regards > Gianluigi > [0] https://gitlab.com/prokopyl/gambas-playground > > 2018-04-25 16:42 GMT+02:00 PICCORO McKAY Lenz : > >> >> hi! playground are great, but i wish to install locally and not in a >> docker! how to? >> >> http://gambaswiki.org/wiki/playground >> >> my dessire its to include in a live disk that we use too much here to >> change machines without many clicks >> >> in any case, how i can install gambas playground in a normal linux install >> >> i cannot remenber the project github/gitlab url .. >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> >> > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Apr 25 18:05:34 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 25 Apr 2018 18:05:34 +0200 Subject: [Gambas-user] WebTable Scroll header In-Reply-To: <0cb833c6-7455-62eb-c933-bbc8025863ef@gmail.com> References: <20180425154007.M37628@455.co.il> <0cb833c6-7455-62eb-c933-bbc8025863ef@gmail.com> Message-ID: <04dc1572-7382-ce39-fd85-392302c5a0c4@gmail.com> Le 25/04/2018 ? 18:02, Beno?t Minisini a ?crit?: > Le 25/04/2018 ? 17:41, Mayost Sharon a ?crit?: >> hello >> >> Can you make a table header that will not disappear when scrolling down >> > > This is not possible in standard HTML, but it seems there are some CSS > hacks that can help. I will see if I can use them in gb.web.form. > > Regards, > I'm afraid that these hacks only work with fixed size columns. :-( -- Beno?t Minisini From bagonergi at gmail.com Wed Apr 25 18:25:20 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 25 Apr 2018 18:25:20 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> Message-ID: 2018-04-24 18:16 GMT+02:00 Beno?t Minisini : > Le 24/04/2018 ? 18:06, Gianluigi a ?crit : > >> >> >> 2018-04-24 17:33 GMT+02:00 Beno?t Minisini > g4mba5 at gmail.com>>: >> >> Le 24/04/2018 ? 17:18, Gianluigi a ?crit : >> >> Hi Benoit, >> I have not completely understood this suggestion: >> "You should not decide for the user of your library which >> shortcut he wants to use." >> But is not it always the programmer who decides what the >> shortcut keys of his application will be? >> Is not it normal to reserve F1 and F2 for help? >> This application is a utility if the shortcut keys are in the >> main module is not easier for the programmer to intervene and >> change them? >> >> Regards >> Gianluigi >> >> >> No, shortcuts should be configurable. >> >> In Gambas, this is done through : >> >> - The "Action" property of a control. >> >> - The "Shortcut" associated with a menu entry having its Action >> property set. >> >> - the gb.form.mdi component that adds support for configuring these >> shortcuts. >> >> At the moment, this is not possible to have an action with a >> shortcut outside of a menu entry. >> >> I suggest that you don't try to handle the shortcut. Just offer a >> method to show your help browser, and let the user of your library >> manage the shortcuts as he likes. >> >> -- Beno?t Minisini >> >> >> What you have just given me is a great teaching. >> Thank you so much >> >> Regards >> Gianluigi >> >> > Well, if you didn't know, gb.form.mdi (which is not just a component for > multi-document interface) provides you a Toolbar container: > > - Every control put in it with the Action property set will be > configurable. > > - If the action of a control (which is just a string) starts with a point, > then this action is assumed local to the form of the control. Otherwise it > is a global action. > > - The Action class allows you to enable, disable actions. All controls > having the same action are handled in one shot. > > Just use the IDE toolbars and menus, and you see how it works. > > Regards, > > -- > Beno?t Minisini > > Hi Benoit, if I use "Action.Configure" the user can change the shortcuts and this is ok. Is there a way to intercept the new key combination with the Form_KeyPress event? If not, do you have a suggestion to get around the obstacle? Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Apr 25 20:17:29 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 25 Apr 2018 20:17:29 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> Message-ID: > Hi Benoit, > if I use "Action.Configure" the user can change the shortcuts and this is > ok. > Is there a way to intercept the new key combination with the Form_KeyPress > event? > If not, do you have a suggestion to get around the obstacle? > > Regards > Gianluigi > Ok, I answer by myself: "stupid question" ;-D Regards Gianluigi > > >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Thu Apr 26 19:54:03 2018 From: kicking177 at gmail.com (KKing) Date: Thu, 26 Apr 2018 18:54:03 +0100 Subject: [Gambas-user] length of file and byte handling Message-ID: 1. Can you retrieve the length/size of a file in bytes? 2. Can you read specific number of bytes from file from a certain position? KK From taboege at gmail.com Thu Apr 26 20:04:12 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 26 Apr 2018 20:04:12 +0200 Subject: [Gambas-user] length of file and byte handling In-Reply-To: References: Message-ID: <20180426180412.GE20895@highrise.localdomain> On Thu, 26 Apr 2018, KKing wrote: > 1. Can you retrieve the length/size of a file in bytes? > Stat(sPath).Size [1]. > 2. Can you read specific number of bytes from file from a certain position? > Open, Seek and Read [2]. It's in the documentation. Regards, Tobi [1] http://gambaswiki.org/wiki/lang/stat [2] http://gambaswiki.org/wiki/cat/stream -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Thu Apr 26 23:00:51 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 26 Apr 2018 23:00:51 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> Message-ID: 2018-04-24 18:16 GMT+02:00 Beno?t Minisini : > Le 24/04/2018 ? 18:06, Gianluigi a ?crit : > >> >> >> 2018-04-24 17:33 GMT+02:00 Beno?t Minisini > g4mba5 at gmail.com>>: >> >> Le 24/04/2018 ? 17:18, Gianluigi a ?crit : >> >> Hi Benoit, >> I have not completely understood this suggestion: >> "You should not decide for the user of your library which >> shortcut he wants to use." >> But is not it always the programmer who decides what the >> shortcut keys of his application will be? >> Is not it normal to reserve F1 and F2 for help? >> This application is a utility if the shortcut keys are in the >> main module is not easier for the programmer to intervene and >> change them? >> >> Regards >> Gianluigi >> >> >> No, shortcuts should be configurable. >> >> In Gambas, this is done through : >> >> - The "Action" property of a control. >> >> - The "Shortcut" associated with a menu entry having its Action >> property set. >> >> - the gb.form.mdi component that adds support for configuring these >> shortcuts. >> >> At the moment, this is not possible to have an action with a >> shortcut outside of a menu entry. >> >> I suggest that you don't try to handle the shortcut. Just offer a >> method to show your help browser, and let the user of your library >> manage the shortcuts as he likes. >> >> -- Beno?t Minisini >> >> >> What you have just given me is a great teaching. >> Thank you so much >> >> Regards >> Gianluigi >> >> > Well, if you didn't know, gb.form.mdi (which is not just a component for > multi-document interface) provides you a Toolbar container: > > - Every control put in it with the Action property set will be > configurable. > > - If the action of a control (which is just a string) starts with a point, > then this action is assumed local to the form of the control. Otherwise it > is a global action. > > - The Action class allows you to enable, disable actions. All controls > having the same action are handled in one shot. > > Just use the IDE toolbars and menus, and you see how it works. > > Regards, > > -- > Beno?t Minisini > > Hi Benoit, I wanted to tell you that I updated seHelpBuilder based on your teachings (at least I think), as you can see from the attached screenshot. Just a question, I do not understand how the 'Find shortcut' button works, if press it, nothing happens (same thing for the IDE). Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: shortcuts-window.png Type: image/png Size: 70663 bytes Desc: not available URL: From taboege at gmail.com Thu Apr 26 23:16:36 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 26 Apr 2018 23:16:36 +0200 Subject: [Gambas-user] EXIT keyword Message-ID: <20180426211636.GA22921@highrise.localdomain> Hi, I noticed that the EXIT keyword is highlighted in the IDE. I couldn't find it anywhere in the docs. When I wrote it into a program, the compiler told me that it's an "unexpected BREAK". Is it an intentional synonym for BREAK or a relic? (I get that feeling, reading the "VB warning" box in on the documentation page.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas.fr at gmail.com Fri Apr 27 16:32:15 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 27 Apr 2018 14:32:15 +0000 Subject: [Gambas-user] What is missed: pointer to control name In-Reply-To: <44dd46a1-a78a-5cb3-d9f9-030aeeea5953@gmail.com> References: <20180424103823.GA28294@highrise.localdomain> <03d9ffcd-9c48-cff1-cb33-70232f599e34@osnanet.de> <44dd46a1-a78a-5cb3-d9f9-030aeeea5953@gmail.com> Message-ID: Le mer. 25 avr. 2018 14:15, Beno?t Minisini a ?crit : > Le 25/04/2018 ? 13:21, Rolf-Werner Eilert a ?crit : > > > > Hi Tobias, > > > > I'm missing my first answer mail echo from the list. Hope you got it. If > > not, please tell me and I'll resend it. > > > > Further to our discussion, I had the idea of using .Tag in some way, and > > this is what I found practical: > > > > Public Sub GridView1_MouseDrag() > > > > With GridView1 > > > > klasse = klassenbez[Val(.Tag) - 1] > > > > When I copy this code into GridView2_MouseDrag() and 3 and 4 and so on, > > I won't have to take care that klassenbez[] is changed appropriately. > > But I still have to take care to change With GridView1 into GridView2 > > etc., so it's only half way done. > > > > Your solution would help here, but is it really worth making a new > > instance of a GridView just to look up its number for every MouseDrag? > > In my answer I posted yesterday, the function I included your solution > > in is only used seldomly, so I could live with it. > > > > Regards > > Rolf > > > > Why don't you use control groups and LAST ??? > Because it's too gambasian ? > > > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Apr 27 16:39:54 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 27 Apr 2018 14:39:54 +0000 Subject: [Gambas-user] WebTable Scroll header In-Reply-To: <04dc1572-7382-ce39-fd85-392302c5a0c4@gmail.com> References: <20180425154007.M37628@455.co.il> <0cb833c6-7455-62eb-c933-bbc8025863ef@gmail.com> <04dc1572-7382-ce39-fd85-392302c5a0c4@gmail.com> Message-ID: Le mer. 25 avr. 2018 18:06, Beno?t Minisini a ?crit : > Le 25/04/2018 ? 18:02, Beno?t Minisini a ?crit : > > Le 25/04/2018 ? 17:41, Mayost Sharon a ?crit : > >> hello > >> > >> Can you make a table header that will not disappear when scrolling down > >> > > > > This is not possible in standard HTML, but it seems there are some CSS > > hacks that can help. I will see if I can use them in gb.web.form. > > > > Regards, > > > > I'm afraid that these hacks only work with fixed size columns. :-( > And by using too imbricated container ? > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Apr 27 16:40:22 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 27 Apr 2018 14:40:22 +0000 Subject: [Gambas-user] WebTable Scroll header In-Reply-To: References: <20180425154007.M37628@455.co.il> <0cb833c6-7455-62eb-c933-bbc8025863ef@gmail.com> <04dc1572-7382-ce39-fd85-392302c5a0c4@gmail.com> Message-ID: Mean two Le ven. 27 avr. 2018 16:39, Fabien Bodard a ?crit : > > > Le mer. 25 avr. 2018 18:06, Beno?t Minisini a ?crit : > >> Le 25/04/2018 ? 18:02, Beno?t Minisini a ?crit : >> > Le 25/04/2018 ? 17:41, Mayost Sharon a ?crit : >> >> hello >> >> >> >> Can you make a table header that will not disappear when scrolling down >> >> >> > >> > This is not possible in standard HTML, but it seems there are some CSS >> > hacks that can help. I will see if I can use them in gb.web.form. >> > >> > Regards, >> > >> >> I'm afraid that these hacks only work with fixed size columns. :-( >> > And by using too imbricated container ? > >> >> -- >> Beno?t Minisini >> >> -------------------------------------------------- >> >> This is the Gambas Mailing List: >> https://lists.gambas-basic.org/listinfo/user >> >> Search the list: >> https://lists.gambas-basic.org/cgi-bin/search.cgi >> >> Hosted by https://www.hostsharing.net >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Fri Apr 27 17:41:04 2018 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 27 Apr 2018 16:41:04 +0100 Subject: [Gambas-user] Ubuntu 18.04 Message-ID: Gambas in not in the Ubuntu 18.04 repository! From shannon at inflecto.org Fri Apr 27 22:42:28 2018 From: shannon at inflecto.org (=?utf-8?Q?Shannon_Kuchler?=) Date: Fri, 27 Apr 2018 15:42:28 -0500 Subject: [Gambas-user] Ubuntu 18.04 Message-ID: ? ppa sudo add-apt-repository ppa:gambas-team/gambas3 Gambas in not in the Ubuntu 18.04 repository! -------------------------------------------------- This is the Gambas Mailing List: https://lists.gambas-basic.org/listinfo/user Search the list: https://lists.gambas-basic.org/cgi-bin/search.cgi Hosted by https://www.hostsharing.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Fri Apr 27 23:36:33 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 27 Apr 2018 21:36:33 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- Comment #2 by V?ctor PEREZ: something like this maybe V?ctor PEREZ changed the state of the bug to: Accepted. From bugtracker at gambaswiki.org Fri Apr 27 23:36:56 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 27 Apr 2018 21:36:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- V?ctor PEREZ added an attachment: Ayugam-0.1.tar.gz From bugtracker at gambaswiki.org Sat Apr 28 00:57:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Fri, 27 Apr 2018 22:57:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- Comment #3 by Beno?t MINISINI: Sorry, you are still incomprehensible. I just see some sort of text editor, with a void panel to the left. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From mb at code-it.com Sat Apr 28 02:54:15 2018 From: mb at code-it.com (mikeB) Date: Fri, 27 Apr 2018 18:54:15 -0600 Subject: [Gambas-user] connot edit a class file in the IDE Message-ID: <20180427185415.464a3d09@Code-it Software> eGreetings Gambas folks, I feel really stupid asking this question but after 2 hours of pulling out what hair I have left = have decided to do so;-) I started a new Gambas project and had been working on it for several hours. All of a sudden it would not let me edit the class code. Made sure that it was stopped running (Degug> Stop) and also made sure that it was not "locked" (the lock icon). Any clue what I need to do to get back at it? Gambas 3.10.0 Linux Mint 18.3 Thanks for any/ all help, mikeB From sebikul at gmail.com Sat Apr 28 03:03:34 2018 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Sat, 28 Apr 2018 01:03:34 +0000 Subject: [Gambas-user] Ubuntu 18.04 In-Reply-To: References: Message-ID: Unfortunately my only PC broke down this week. I'm gonna try to push a gambas3 build for Ubuntu Bionic as soon as possible, but it may take a few days. On Fri, Apr 27, 2018, 17:43 Shannon Kuchler wrote: > ? > > ppa sudo add-apt-repository ppa:gambas-team/gambas3 > > > Gambas in not in the Ubuntu 18.04 repository! > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Apr 28 03:06:51 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 28 Apr 2018 04:06:51 +0300 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: So, you can edit the class in some text editor? Jussi On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: > eGreetings Gambas folks, > I feel really stupid asking this question but after 2 hours > of pulling out what hair I have left = have decided to do so;-) > > I started a new Gambas project and had been working on it for > several hours. All of a sudden it would not let me edit the class > code. Made sure that it was stopped running (Degug> Stop) and > also made sure that it was not "locked" (the lock icon). > > Any clue what I need to do to get back at it? > Gambas 3.10.0 > Linux Mint 18.3 > > Thanks for any/ all help, > mikeB > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mb at code-it.com Sat Apr 28 03:10:09 2018 From: mb at code-it.com (mikeB) Date: Fri, 27 Apr 2018 19:10:09 -0600 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <20180427191009.2e2eda9d@Code-it Software> Yes - try to edit via BlueFish editor and there was NO problem. mB On Sat, 28 Apr 2018 04:06:51 +0300 Jussi Lahtinen wrote: > So, you can edit the class in some text editor? > > > Jussi > > On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: > > > eGreetings Gambas folks, > > I feel really stupid asking this question but after 2 hours > > of pulling out what hair I have left = have decided to do so;-) > > > > I started a new Gambas project and had been working on it for > > several hours. All of a sudden it would not let me edit the class > > code. Made sure that it was stopped running (Degug> Stop) and > > also made sure that it was not "locked" (the lock icon). > > > > Any clue what I need to do to get back at it? > > Gambas 3.10.0 > > Linux Mint 18.3 > > > > Thanks for any/ all help, > > mikeB > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List: > > https://lists.gambas-basic.org/listinfo/user > > > > Search the list: > > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > > Hosted by https://www.hostsharing.net > > From jussi.lahtinen at gmail.com Sat Apr 28 04:19:16 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 28 Apr 2018 05:19:16 +0300 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: Do you run Gambas as other user or with some other privileges, than the editor? Then just in case check the permissions of the class file. Jussi On Sat, Apr 28, 2018 at 4:10 AM, mikeB wrote: > Yes - try to edit via BlueFish editor and there was NO problem. > mB > > On Sat, 28 Apr 2018 04:06:51 +0300 > Jussi Lahtinen wrote: > > > So, you can edit the class in some text editor? > > > > > > Jussi > > > > On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: > > > > > eGreetings Gambas folks, > > > I feel really stupid asking this question but after 2 hours > > > of pulling out what hair I have left = have decided to do so;-) > > > > > > I started a new Gambas project and had been working on it for > > > several hours. All of a sudden it would not let me edit the class > > > code. Made sure that it was stopped running (Degug> Stop) and > > > also made sure that it was not "locked" (the lock icon). > > > > > > Any clue what I need to do to get back at it? > > > Gambas 3.10.0 > > > Linux Mint 18.3 > > > > > > Thanks for any/ all help, > > > mikeB > > > > > > -------------------------------------------------- > > > > > > This is the Gambas Mailing List: > > > https://lists.gambas-basic.org/listinfo/user > > > > > > Search the list: > > > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > > > > Hosted by https://www.hostsharing.net > > > > > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mb at code-it.com Sat Apr 28 05:35:07 2018 From: mb at code-it.com (mikeB) Date: Fri, 27 Apr 2018 21:35:07 -0600 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <20180427213507.75fea6df@Code-it Software> Nope did not run as a diff user - I'm the only one on this system. I did check the permissions of the class file and set to read/ write. I tested editing the file via BlueFish editor and then loaded into the Gambas IDE - the changes were there but still could not edit the code within Gambas IDE;-( mB On Sat, 28 Apr 2018 05:19:16 +0300 Jussi Lahtinen wrote: > Do you run Gambas as other user or with some other privileges, than > the editor? > Then just in case check the permissions of the class file. > > > Jussi > > On Sat, Apr 28, 2018 at 4:10 AM, mikeB wrote: > > > Yes - try to edit via BlueFish editor and there was NO problem. > > mB > > > > On Sat, 28 Apr 2018 04:06:51 +0300 > > Jussi Lahtinen wrote: > > > > > So, you can edit the class in some text editor? > > > > > > > > > Jussi > > > > > > On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: > > > > > > > eGreetings Gambas folks, > > > > I feel really stupid asking this question but after 2 hours > > > > of pulling out what hair I have left = have decided to do so;-) > > > > > > > > I started a new Gambas project and had been working on it for > > > > several hours. All of a sudden it would not let me edit the > > > > class code. Made sure that it was stopped running (Degug> Stop) > > > > and also made sure that it was not "locked" (the lock icon). > > > > > > > > Any clue what I need to do to get back at it? > > > > Gambas 3.10.0 > > > > Linux Mint 18.3 > > > > > > > > Thanks for any/ all help, > > > > mikeB > > > > > > > > -------------------------------------------------- > > > > > > > > This is the Gambas Mailing List: > > > > https://lists.gambas-basic.org/listinfo/user > > > > > > > > Search the list: > > > > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > > > > > > Hosted by https://www.hostsharing.net > > > > > > > > > > -------------------------------------------------- > > > > This is the Gambas Mailing List: > > https://lists.gambas-basic.org/listinfo/user > > > > Search the list: > > https://lists.gambas-basic.org/cgi-bin/search.cgi > > > > Hosted by https://www.hostsharing.net > > From bugtracker at gambaswiki.org Sat Apr 28 09:46:16 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 07:46:16 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1179: Inherited properties whose name begins with underscore In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1179&from=L21haW4- Comment #10 by Mourad REGGADI: I just downloaded Gambas last development version and checked this feature and it's working great, thanks again ! By the way, i discovered a particular case which doesn't have the desired behavior. When you have a base class which have ONLY "hidden" properties, methods or variables, when trying to use auto-completion in editor, even if typing an underscore after the point still doesn't show anything. I used the keyword "Super" in a child class to reproduce. From bugtracker at gambaswiki.org Sat Apr 28 09:46:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 07:46:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1179: Inherited properties whose name begins with underscore In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1179&from=L21haW4- Mourad REGGADI changed the state of the bug to: NeedsInfo. From kicking177 at gmail.com Sat Apr 28 12:00:13 2018 From: kicking177 at gmail.com (KKing) Date: Sat, 28 Apr 2018 11:00:13 +0100 Subject: [Gambas-user] User Controls and Font resizing to fit content Message-ID: 1. Does Gambas have a concept similar to the VB User Control concept (i.e. you build a control with the standard label/textbox/buttons save it and be able to reuse multiple times in another form)? 2. Suggestions if convenient way to get the font size to automatically change to fit provided text in a (can be any of) label/textbox/or other control? KK From g4mba5 at gmail.com Sat Apr 28 13:47:47 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 28 Apr 2018 13:47:47 +0200 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: <5ae3ec26.1c69fb81.1a8c3.64c1SMTPIN_ADDED_BROKEN@mx.google.com> References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ec26.1c69fb81.1a8c3.64c1SMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <324b7373-ab84-2953-9963-a23e7a3481b6@gmail.com> Le 28/04/2018 ? 05:35, mikeB a ?crit?: > Nope did not run as a diff user - I'm the only one on this system. > I did check the permissions of the class file and set to read/ write. > I tested editing the file via BlueFish editor and then loaded into the > Gambas IDE - the changes were there but still could not edit the > code within Gambas IDE;-( > mB > > On Sat, 28 Apr 2018 05:19:16 +0300 > Jussi Lahtinen wrote: > >> Do you run Gambas as other user or with some other privileges, than >> the editor? >> Then just in case check the permissions of the class file. >> >> >> Jussi >> >> On Sat, Apr 28, 2018 at 4:10 AM, mikeB wrote: >> >>> Yes - try to edit via BlueFish editor and there was NO problem. >>> mB >>> >>> On Sat, 28 Apr 2018 04:06:51 +0300 >>> Jussi Lahtinen wrote: >>> >>>> So, you can edit the class in some text editor? >>>> >>>> >>>> Jussi >>>> >>>> On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: >>>> >>>>> eGreetings Gambas folks, >>>>> I feel really stupid asking this question but after 2 hours >>>>> of pulling out what hair I have left = have decided to do so;-) >>>>> >>>>> I started a new Gambas project and had been working on it for >>>>> several hours. All of a sudden it would not let me edit the >>>>> class code. Made sure that it was stopped running (Degug> Stop) >>>>> and also made sure that it was not "locked" (the lock icon). >>>>> >>>>> Any clue what I need to do to get back at it? >>>>> Gambas 3.10.0 >>>>> Linux Mint 18.3 >>>>> >>>>> Thanks for any/ all help, >>>>> mikeB >>>>> Can you send your project so that we see if we have the same problem? -- Beno?t Minisini From bugtracker at gambaswiki.org Sat Apr 28 14:00:38 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 12:00:38 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- Comment #4 by Fabien BODARD: I think he is talking about having all the class and object names in the same tree. Like if the project tree contain also the procedures name... but for a big big project I'm not sure this can be a so good idea to have 2km length tree. Fabien BODARD changed the state of the bug to: Accepted. From g4mba5 at gmail.com Sat Apr 28 14:03:14 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 28 Apr 2018 14:03:14 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> Message-ID: <03175ed5-87b4-05ab-008e-d8acaa78c9fe@gmail.com> Le 26/04/2018 ? 23:00, Gianluigi a ?crit?: > > Hi Benoit, > I wanted to tell you that I updated seHelpBuilder based on your > teachings (at least I think), as you can see from the attached screenshot. > Just a question, I do not understand how the 'Find shortcut' button > works, if press it, nothing happens (same thing for the IDE). > > Regards > Gianluigi > Once you have clicked on the button, you have to press the keys of a shortcut, and it will find it in the table. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat Apr 28 14:05:23 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 28 Apr 2018 14:05:23 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: <03175ed5-87b4-05ab-008e-d8acaa78c9fe@gmail.com> References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> <03175ed5-87b4-05ab-008e-d8acaa78c9fe@gmail.com> Message-ID: <58bd1ca5-5488-7330-bee8-94c7469420c6@gmail.com> Le 28/04/2018 ? 14:03, Beno?t Minisini a ?crit?: > Le 26/04/2018 ? 23:00, Gianluigi a ?crit?: >> >> Hi Benoit, >> I wanted to tell you that I updated seHelpBuilder based on your >> teachings (at least I think), as you can see from the attached >> screenshot. >> Just a question, I do not understand how the 'Find shortcut' button >> works, if press it, nothing happens (same thing for the IDE). >> >> Regards >> Gianluigi >> > > Once you have clicked on the button, you have to press the keys of a > shortcut, and it will find it in the table. > > Regards, > ...and this is a toggle. You have to click again on the "find shortcut" button to return to normal mode. Regards, -- Beno?t Minisini From bagonergi at gmail.com Sat Apr 28 14:13:33 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 28 Apr 2018 14:13:33 +0200 Subject: [Gambas-user] Question of shortcut keys position In-Reply-To: <58bd1ca5-5488-7330-bee8-94c7469420c6@gmail.com> References: <5a281fa3-d564-45d5-043a-9dbaf878ab4e@gmail.com> <957d0529-a48b-f855-9066-4e4a678dd439@gmail.com> <03175ed5-87b4-05ab-008e-d8acaa78c9fe@gmail.com> <58bd1ca5-5488-7330-bee8-94c7469420c6@gmail.com> Message-ID: 2018-04-28 14:05 GMT+02:00 Beno?t Minisini : > Le 28/04/2018 ? 14:03, Beno?t Minisini a ?crit : > >> Le 26/04/2018 ? 23:00, Gianluigi a ?crit : >> >>> >>> Hi Benoit, >>> I wanted to tell you that I updated seHelpBuilder based on your >>> teachings (at least I think), as you can see from the attached screenshot. >>> Just a question, I do not understand how the 'Find shortcut' button >>> works, if press it, nothing happens (same thing for the IDE). >>> >>> Regards >>> Gianluigi >>> >>> >> Once you have clicked on the button, you have to press the keys of a >> shortcut, and it will find it in the table. >> >> Regards, >> >> > ...and this is a toggle. You have to click again on the "find shortcut" > button to return to normal mode. > > Regards, > > -- > Beno?t Minisini > > Now I understand! Thank you very much Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bugtracker at gambaswiki.org Sat Apr 28 16:04:57 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 14:04:57 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1179: Inherited properties whose name begins with underscore In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1179&from=L21haW4- Comment #11 by Beno?t MINISINI: In commit https://gitlab.com/gambas/gambas/commit/f57ffd73540d709a0a3cdc9ac9c42f2fd1305f2e, I fixed that by making ME and SUPER keywords always show hidden symbols. Beno?t MINISINI changed the state of the bug to: Fixed. From mb at code-it.com Sat Apr 28 17:03:20 2018 From: mb at code-it.com (mikeB) Date: Sat, 28 Apr 2018 09:03:20 -0600 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: <324b7373-ab84-2953-9963-a23e7a3481b6@gmail.com> References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ec26.1c69fb81.1a8c3.64c1SMTPIN_ADDED_BROKEN@mx.google.com> <324b7373-ab84-2953-9963-a23e7a3481b6@gmail.com> Message-ID: <20180428090320.22c66c79@Code-it Software> On Sat, 28 Apr 2018 13:47:47 +0200 Beno?t Minisini wrote: > Le 28/04/2018 ? 05:35, mikeB a ?crit?: > > Nope did not run as a diff user - I'm the only one on this system. > > I did check the permissions of the class file and set to read/ > > write. I tested editing the file via BlueFish editor and then > > loaded into the Gambas IDE - the changes were there but still could > > not edit the code within Gambas IDE;-( > > mB > > > > On Sat, 28 Apr 2018 05:19:16 +0300 > > Jussi Lahtinen wrote: > > > >> Do you run Gambas as other user or with some other privileges, than > >> the editor? > >> Then just in case check the permissions of the class file. > >> > >> > >> Jussi > >> > >> On Sat, Apr 28, 2018 at 4:10 AM, mikeB wrote: > >> > >>> Yes - try to edit via BlueFish editor and there was NO problem. > >>> mB > >>> > >>> On Sat, 28 Apr 2018 04:06:51 +0300 > >>> Jussi Lahtinen wrote: > >>> > >>>> So, you can edit the class in some text editor? > >>>> > >>>> > >>>> Jussi > >>>> > >>>> On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: > >>>> > >>>>> eGreetings Gambas folks, > >>>>> I feel really stupid asking this question but after 2 hours > >>>>> of pulling out what hair I have left = have decided to do so;-) > >>>>> > >>>>> I started a new Gambas project and had been working on it for > >>>>> several hours. All of a sudden it would not let me edit the > >>>>> class code. Made sure that it was stopped running (Degug> Stop) > >>>>> and also made sure that it was not "locked" (the lock icon). > >>>>> > >>>>> Any clue what I need to do to get back at it? > >>>>> Gambas 3.10.0 > >>>>> Linux Mint 18.3 > >>>>> > >>>>> Thanks for any/ all help, > >>>>> mikeB > >>>>> > > Can you send your project so that we see if we have the same problem? Sure = is (just the very start of the project) attached. mikeB > -------------- next part -------------- A non-text attachment was scrubbed... Name: All_Things_Video.tar.gz Type: application/gzip Size: 13581 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Apr 28 17:16:45 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 28 Apr 2018 17:16:45 +0200 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: <5ae48d66.1c69fb81.5120c.d65eSMTPIN_ADDED_BROKEN@mx.google.com> References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ec26.1c69fb81.1a8c3.64c1SMTPIN_ADDED_BROKEN@mx.google.com> <324b7373-ab84-2953-9963-a23e7a3481b6@gmail.com> <5ae48d66.1c69fb81.5120c.d65eSMTPIN_ADDED_BROKEN@mx.google.com> Message-ID: <3cbe2c14-6014-1ab7-af9b-76ce4d0cd180@gmail.com> Le 28/04/2018 ? 17:03, mikeB a ?crit?: > On Sat, 28 Apr 2018 13:47:47 +0200 > Beno?t Minisini wrote: > >> Le 28/04/2018 ? 05:35, mikeB a ?crit?: >>> Nope did not run as a diff user - I'm the only one on this system. >>> I did check the permissions of the class file and set to read/ >>> write. I tested editing the file via BlueFish editor and then >>> loaded into the Gambas IDE - the changes were there but still could >>> not edit the code within Gambas IDE;-( >>> mB >>> >>> On Sat, 28 Apr 2018 05:19:16 +0300 >>> Jussi Lahtinen wrote: >>> >>>> Do you run Gambas as other user or with some other privileges, than >>>> the editor? >>>> Then just in case check the permissions of the class file. >>>> >>>> >>>> Jussi >>>> >>>> On Sat, Apr 28, 2018 at 4:10 AM, mikeB wrote: >>>> >>>>> Yes - try to edit via BlueFish editor and there was NO problem. >>>>> mB >>>>> >>>>> On Sat, 28 Apr 2018 04:06:51 +0300 >>>>> Jussi Lahtinen wrote: >>>>> >>>>>> So, you can edit the class in some text editor? >>>>>> >>>>>> >>>>>> Jussi >>>>>> >>>>>> On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: >>>>>> >>>>>>> eGreetings Gambas folks, >>>>>>> I feel really stupid asking this question but after 2 hours >>>>>>> of pulling out what hair I have left = have decided to do so;-) >>>>>>> >>>>>>> I started a new Gambas project and had been working on it for >>>>>>> several hours. All of a sudden it would not let me edit the >>>>>>> class code. Made sure that it was stopped running (Degug> Stop) >>>>>>> and also made sure that it was not "locked" (the lock icon). >>>>>>> >>>>>>> Any clue what I need to do to get back at it? >>>>>>> Gambas 3.10.0 >>>>>>> Linux Mint 18.3 >>>>>>> >>>>>>> Thanks for any/ all help, >>>>>>> mikeB >>>>>>> >> >> Can you send your project so that we see if we have the same problem? > > Sure = is (just the very start of the project) attached. > mikeB > The '.src' directory in your archive has no write authorization. But I can't tell you why, as I don't know how you created your project, and if you didn't change the authorizations of that directory inadvertently. Regards, -- Beno?t Minisini From mb at code-it.com Sat Apr 28 17:48:59 2018 From: mb at code-it.com (mikeB) Date: Sat, 28 Apr 2018 09:48:59 -0600 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: <3cbe2c14-6014-1ab7-af9b-76ce4d0cd180@gmail.com> References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ec26.1c69fb81.1a8c3.64c1SMTPIN_ADDED_BROKEN@mx.google.com> <324b7373-ab84-2953-9963-a23e7a3481b6@gmail.com> <5ae48d66.1c69fb81.5120c.d65eSMTPIN_ADDED_BROKEN@mx.google.com> <3cbe2c14-6014-1ab7-af9b-76ce4d0cd180@gmail.com> Message-ID: <20180428094859.153b4642@Code-it Software> On Sat, 28 Apr 2018 17:16:45 +0200 Beno?t Minisini wrote: > Le 28/04/2018 ? 17:03, mikeB a ?crit?: > > On Sat, 28 Apr 2018 13:47:47 +0200 > > Beno?t Minisini wrote: > > > >> Le 28/04/2018 ? 05:35, mikeB a ?crit?: > >>> Nope did not run as a diff user - I'm the only one on this system. > >>> I did check the permissions of the class file and set to read/ > >>> write. I tested editing the file via BlueFish editor and then > >>> loaded into the Gambas IDE - the changes were there but still > >>> could not edit the code within Gambas IDE;-( > >>> mB > >>> > >>> On Sat, 28 Apr 2018 05:19:16 +0300 > >>> Jussi Lahtinen wrote: > >>> > >>>> Do you run Gambas as other user or with some other privileges, > >>>> than the editor? > >>>> Then just in case check the permissions of the class file. > >>>> > >>>> > >>>> Jussi > >>>> > >>>> On Sat, Apr 28, 2018 at 4:10 AM, mikeB wrote: > >>>> > >>>>> Yes - try to edit via BlueFish editor and there was NO problem. > >>>>> mB > >>>>> > >>>>> On Sat, 28 Apr 2018 04:06:51 +0300 > >>>>> Jussi Lahtinen wrote: > >>>>> > >>>>>> So, you can edit the class in some text editor? > >>>>>> > >>>>>> > >>>>>> Jussi > >>>>>> > >>>>>> On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: > >>>>>> > >>>>>>> eGreetings Gambas folks, > >>>>>>> I feel really stupid asking this question but after 2 hours > >>>>>>> of pulling out what hair I have left = have decided to do > >>>>>>> so;-) > >>>>>>> > >>>>>>> I started a new Gambas project and had been working on it for > >>>>>>> several hours. All of a sudden it would not let me edit the > >>>>>>> class code. Made sure that it was stopped running (Degug> > >>>>>>> Stop) and also made sure that it was not "locked" (the lock > >>>>>>> icon). > >>>>>>> > >>>>>>> Any clue what I need to do to get back at it? > >>>>>>> Gambas 3.10.0 > >>>>>>> Linux Mint 18.3 > >>>>>>> > >>>>>>> Thanks for any/ all help, > >>>>>>> mikeB > >>>>>>> > >> > >> Can you send your project so that we see if we have the same > >> problem? > > > > Sure = is (just the very start of the project) attached. > > mikeB > > > > The '.src' directory in your archive has no write authorization. But > I can't tell you why, as I don't know how you created your project, > and if you didn't change the authorizations of that directory > inadvertently. > > Regards, > > OKAY - it was not that way before (I've been palying around with the permissibut I accept your observation as true:THANK YOU. From mb at code-it.com Sat Apr 28 18:09:22 2018 From: mb at code-it.com (mikeB) Date: Sat, 28 Apr 2018 10:09:22 -0600 Subject: [Gambas-user] connot edit a class file in the IDE In-Reply-To: <3cbe2c14-6014-1ab7-af9b-76ce4d0cd180@gmail.com> References: <5ae3c7d2.561b1c0a.1b0aa.8130SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ca29.1c69fb81.dfc92.cf72SMTPIN_ADDED_BROKEN@mx.google.com> <5ae3ec26.1c69fb81.1a8c3.64c1SMTPIN_ADDED_BROKEN@mx.google.com> <324b7373-ab84-2953-9963-a23e7a3481b6@gmail.com> <5ae48d66.1c69fb81.5120c.d65eSMTPIN_ADDED_BROKEN@mx.google.com> <3cbe2c14-6014-1ab7-af9b-76ce4d0cd180@gmail.com> Message-ID: <20180428100922.2816fd69@Code-it Software> On Sat, 28 Apr 2018 17:16:45 +0200 Beno?t Minisini wrote: > Le 28/04/2018 ? 17:03, mikeB a ?crit?: > > On Sat, 28 Apr 2018 13:47:47 +0200 > > Beno?t Minisini wrote: > > > >> Le 28/04/2018 ? 05:35, mikeB a ?crit?: > >>> Nope did not run as a diff user - I'm the only one on this system. > >>> I did check the permissions of the class file and set to read/ > >>> write. I tested editing the file via BlueFish editor and then > >>> loaded into the Gambas IDE - the changes were there but still > >>> could not edit the code within Gambas IDE;-( > >>> mB > >>> > >>> On Sat, 28 Apr 2018 05:19:16 +0300 > >>> Jussi Lahtinen wrote: > >>> > >>>> Do you run Gambas as other user or with some other privileges, > >>>> than the editor? > >>>> Then just in case check the permissions of the class file. > >>>> > >>>> > >>>> Jussi > >>>> > >>>> On Sat, Apr 28, 2018 at 4:10 AM, mikeB wrote: > >>>> > >>>>> Yes - try to edit via BlueFish editor and there was NO problem. > >>>>> mB > >>>>> > >>>>> On Sat, 28 Apr 2018 04:06:51 +0300 > >>>>> Jussi Lahtinen wrote: > >>>>> > >>>>>> So, you can edit the class in some text editor? > >>>>>> > >>>>>> > >>>>>> Jussi > >>>>>> > >>>>>> On Sat, Apr 28, 2018 at 3:54 AM, mikeB wrote: > >>>>>> > >>>>>>> eGreetings Gambas folks, > >>>>>>> I feel really stupid asking this question but after 2 hours > >>>>>>> of pulling out what hair I have left = have decided to do > >>>>>>> so;-) > >>>>>>> > >>>>>>> I started a new Gambas project and had been working on it for > >>>>>>> several hours. All of a sudden it would not let me edit the > >>>>>>> class code. Made sure that it was stopped running (Degug> > >>>>>>> Stop) and also made sure that it was not "locked" (the lock > >>>>>>> icon). > >>>>>>> > >>>>>>> Any clue what I need to do to get back at it? > >>>>>>> Gambas 3.10.0 > >>>>>>> Linux Mint 18.3 > >>>>>>> > >>>>>>> Thanks for any/ all help, > >>>>>>> mikeB > >>>>>>> > >> > >> Can you send your project so that we see if we have the same > >> problem? > > > > Sure = is (just the very start of the project) attached. > > mikeB > > > > The '.src' directory in your archive has no write authorization. But > I can't tell you why, as I don't know how you created your project, > and if you didn't change the authorizations of that directory > inadvertently. > > Regards, > > OKAY - it was not that way before (I've been palying around with the permissions) but I accept your observation as true. From bugtracker at gambaswiki.org Sat Apr 28 19:50:44 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 17:50:44 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1299: Toolbar malfunction Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1299&from=L21haW4- Gianluigi GRADASCHI reported a new bug. Summary ------- Toolbar malfunction Type : Bug Priority : Medium Gambas version : Master Product : GUI components Description ----------- If the form has the margin the toolbar ends up under it. See attached project System information ------------------ [System] Gambas=3.10.90 f57ffd7 (master) OperatingSystem=Linux Kernel=4.13.0-39-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=UNITY Theme=Cleanlooks Language=it_IT.UTF-8 Memory=15967M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 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 OpenGL=libGL.so.1.7.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-N1nvkT9hHu DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=it GIO_LAUNCHED_DESKTOP_FILE=/home//.local/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=24909 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/home//.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME=/home/ IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=it_IT.UTF-8 LANGUAGE=it:en LC_ADDRESS=it_IT.UTF-8 LC_IDENTIFICATION=it_IT.UTF-8 LC_MEASUREMENT=it_IT.UTF-8 LC_MONETARY=it_IT.UTF-8 LC_NAME=it_IT.UTF-8 LC_NUMERIC=it_IT.UTF-8 LC_PAPER=it_IT.UTF-8 LC_TELEPHONE=it_IT.UTF-8 LC_TIME=it_IT.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=a4 PATH=/home//bin:/home//.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD=/home/ 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/1460,unix/:/tmp/.ICE-unix/1460 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UNITY_DEFAULT_PROFILE=unity UNITY_HAS_3D_SUPPORT=true UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1140 USER= XAUTHORITY=/home//.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=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus From bugtracker at gambaswiki.org Sat Apr 28 19:51:27 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 17:51:27 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1299: Toolbar malfunction In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1299&from=L21haW4- Gianluigi GRADASCHI added an attachment: ToolBarTest-0.0.1.tar.gz From bugtracker at gambaswiki.org Sat Apr 28 19:52:35 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 17:52:35 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1299: Toolbar malfunction In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1299&from=L21haW4- Comment #1 by Beno?t MINISINI: This is by design. Beno?t MINISINI changed the state of the bug to: Rejected. From bugtracker at gambaswiki.org Sat Apr 28 21:40:48 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 19:40:48 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- Comment #5 by V?ctor PEREZ: It is an idea that was born, because I needed to know if I had created a certain method and if I did what I needed or had to do a new method, but without leaving the workplace, the code where it is being created. But it may not be important ... I do not know. From bugtracker at gambaswiki.org Sat Apr 28 21:41:24 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 19:41:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- V?ctor PEREZ added an attachment: y1.png From bugtracker at gambaswiki.org Sat Apr 28 21:42:23 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sat, 28 Apr 2018 19:42:23 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1228: create tree of objects in a separate window In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1228&from=L21haW4- V?ctor PEREZ added an attachment: y2.png From bagonergi at gmail.com Sat Apr 28 23:41:28 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 28 Apr 2018 23:41:28 +0200 Subject: [Gambas-user] Two more questions about Action Message-ID: Why can I close FMain if action is local? Why are there differences on Enable between the file menu and others? See the attached project Good night to all Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ActionGroup-0.0.1.tar.gz Type: application/gzip Size: 12881 bytes Desc: not available URL: From bugtracker at gambaswiki.org Sun Apr 29 02:35:17 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 29 Apr 2018 00:35:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1179: Inherited properties whose name begins with underscore In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1179&from=L21haW4- Comment #12 by Mourad REGGADI: Works like a charm ! Thanks ! From bugtracker at gambaswiki.org Sun Apr 29 05:50:29 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 29 Apr 2018 03:50:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1300: Color picker does not remember last tab if you change class Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1300&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- Color picker does not remember last tab if you change class Type : Request Priority : Low Gambas version : 3.10 Product : Development Environment Description ----------- when selecting the color again in the color selector in background property, the selector does not remember the last tab chosen (if we change the class), it always appears in the system tab, when the last used was free and vs. System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Sun Apr 29 06:08:28 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 29 Apr 2018 04:08:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1301: the image selector does not detect that an image has been deleted Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1301&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- the image selector does not detect that an image has been deleted Type : Bug Priority : Low Gambas version : 3.10 Product : Development Environment Description ----------- the image selector does not detect that an image has been deleted, only after closing prawns and reopening it. System information ------------------ [System] Gambas=3.10 OperatingSystem=Linux Kernel=4.4.0-53-generic Architecture=x86 Distribution=Linux Mint 18.1 Serena Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1757M [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 From bugtracker at gambaswiki.org Sun Apr 29 06:12:30 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 29 Apr 2018 04:12:30 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1301: the image selector does not detect that an image has been deleted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1301&from=L21haW4- V?ctor PEREZ added an attachment: bug-image.ogv From bugtracker at gambaswiki.org Sun Apr 29 09:35:39 2018 From: bugtracker at gambaswiki.org (bugtracker at gambaswiki.org) Date: Sun, 29 Apr 2018 07:35:39 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1301: the image selector does not detect that an image has been deleted In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1301&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bagonergi at gmail.com Sun Apr 29 11:37:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 29 Apr 2018 11:37:32 +0200 Subject: [Gambas-user] Two more questions about Action In-Reply-To: References: Message-ID: I am a distracted person and yesterday I was more than usual. :-( Now Enabled works, sorry. See the attached project I doubt if I have understood the meaning of Local Regards Gianluigi 2018-04-28 23:41 GMT+02:00 Gianluigi : > Why can I close FMain if action is local? > Why are there differences on Enable between the file menu and others? > See the attached project > > Good night to all > Gianluigi > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ActionGroup-2-0.0.1.tar.gz Type: application/gzip Size: 12739 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Apr 29 17:44:24 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 29 Apr 2018 17:44:24 +0200 Subject: [Gambas-user] Two more questions about Action In-Reply-To: References: Message-ID: Le 29/04/2018 ? 11:37, Gianluigi a ?crit?: > I am a distracted person and yesterday I was more than usual. :-( > Now Enabled works, sorry. > See the attached project > I doubt if I have understood the meaning of Local > > Regards > Gianluigi > Yes, it is a bit difficult to explain. 1) When you do Action["xxx"], all controls whose Action is set to "xxx" are returned. 2) Action[] takes a second argument that indicated the observer of the action. If not specified, all controls associated with that action are returned. 3) Action names starting with a point are (almost) just a convention that means that they intend to be local to their current event observer (usually their form). 4) Actions starting with a point have the same shortcuts as the action without the initial point. 5) Control having the same action are supposed to have the same text and the same icon. If you don't, the text and the icon of one of the control will be used. Example : In the IDE, you have a form for editing Gambas source code. You can have multiple instances of that form, if you have opened several sources files. In that form, you have a button to undo the last change. It is associated with the ".undo" action. If you lock the form, the ".undo" action is hidden, but only for that form. The undo buttons of the other forms must keep being visible! 1) If I do Action[".undo"].Visible = False, all undo buttons of all forms will be hidden. 2) So I have to do Action[".undo", Me].Visible = False in the source code of the form (hence Me represents the form, the event observer of the toolbar button and the menu entry I want to hide). 3) As the undo action must be hidden in one form only, I name it a "local" action. I must start it with a point so that the Action class acts correctly. 4) If you change the shortcut of the "undo" action in the shortcut configuration dialog, you will see that there is only one shortcut for all "undo" action everywhere. 5) You could have a "global" undo action named "undo" too (usually you don't. An action is either local or global, like "open-project"). It will have the same shortcut than ".undo". 6) See "local" action like a "dynamic variable", and "global" action like a "static variable". I hope things are clearer now. -- Beno?t Minisini From bagonergi at gmail.com Sun Apr 29 18:30:34 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 29 Apr 2018 18:30:34 +0200 Subject: [Gambas-user] Two more questions about Action In-Reply-To: References: Message-ID: 2018-04-29 17:44 GMT+02:00 Beno?t Minisini : > Le 29/04/2018 ? 11:37, Gianluigi a ?crit : > >> I am a distracted person and yesterday I was more than usual. :-( >> Now Enabled works, sorry. >> See the attached project >> I doubt if I have understood the meaning of Local >> >> Regards >> Gianluigi >> >> > Yes, it is a bit difficult to explain. > > 1) When you do Action["xxx"], all controls whose Action is set to "xxx" > are returned. > > 2) Action[] takes a second argument that indicated the observer of the > action. If not specified, all controls associated with that action are > returned. > > 3) Action names starting with a point are (almost) just a convention that > means that they intend to be local to their current event observer (usually > their form). > > 4) Actions starting with a point have the same shortcuts as the action > without the initial point. > > 5) Control having the same action are supposed to have the same text and > the same icon. If you don't, the text and the icon of one of the control > will be used. > > Example : > > In the IDE, you have a form for editing Gambas source code. You can have > multiple instances of that form, if you have opened several sources files. > > In that form, you have a button to undo the last change. It is associated > with the ".undo" action. > > If you lock the form, the ".undo" action is hidden, but only for that > form. The undo buttons of the other forms must keep being visible! > > 1) If I do Action[".undo"].Visible = False, all undo buttons of all forms > will be hidden. > > 2) So I have to do Action[".undo", Me].Visible = False in the source code > of the form (hence Me represents the form, the event observer of the > toolbar button and the menu entry I want to hide). > > 3) As the undo action must be hidden in one form only, I name it a "local" > action. I must start it with a point so that the Action class acts > correctly. > > 4) If you change the shortcut of the "undo" action in the shortcut > configuration dialog, you will see that there is only one shortcut for all > "undo" action everywhere. > > 5) You could have a "global" undo action named "undo" too (usually you > don't. An action is either local or global, like "open-project"). It will > have the same shortcut than ".undo". > > 6) See "local" action like a "dynamic variable", and "global" action like > a "static variable". > > I hope things are clearer now. > > -- > Beno?t Minisini > > Hi Benoit, I thank you for the very detailed explanation. I take some time to study it well. I like the example on 'undo' and I can see the horizon. I will let you know. You're always very kind. Regards Gianluigi > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Apr 29 18:35:07 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 29 Apr 2018 18:35:07 +0200 Subject: [Gambas-user] Two more questions about Action In-Reply-To: References: Message-ID: <87ef865b-1510-0138-d22d-ea0d5579f1e5@gmail.com> Some fixes... > Yes, it is a bit difficult to explain. > > 1) When you do Action["xxx"], all controls whose Action is set to > "xxx" are returned. > > 2) Action[] takes a second argument that indicated the observer of --> indicates > the action. If not specified, all controls associated with that > action are returned. > > 3) Action names starting with a point are (almost) just a convention > that means that they intend to be local to their current event > observer (usually their form). > > 4) Actions starting with a point have the same shortcuts as the --> shortcut > action without the initial point. > > 5) Control having the same action are supposed to have the same text > and the same icon. If you don't, the text and the icon of one of the --> if they don't > control will be used. > -- Beno?t Minisini From mckaygerhard at gmail.com Sun Apr 29 20:17:06 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 29 Apr 2018 14:17:06 -0400 Subject: [Gambas-user] plese some examples of slot settings manage Message-ID: plese some examples of slot settings manage, i cannot trick with that! the component documentation doe snothign about it, only simple par key=value Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sun Apr 29 20:39:20 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 29 Apr 2018 14:39:20 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: <20160212122546.GA745@aurora> References: <20160212122546.GA745@aurora> Message-ID: This is a old mail, but interested me, that i try to make some kind of framework for my apps.. what the status of that problem Tobias? see below the message: 2016-02-12 7:55 GMT-04:30 Tobias Boege : > Hi Benoit, > > in my project I use a Gambas library which manages some kind of flat file > database where "config" files in gb.settings format play a role. The > current > project I use the library in is a gb.web.form project. I got to install it > on a friend's server and on its first day of runtime, I noticed that the > config files got corrupted: either the whole file or some lines of them > vanished. > > I suspect that this is due to the library saving the configs on exit. > Naturally the gb.web.form project initialises and exits very often and > concurrently. I must add that the project only reads the database and does > not modify it, so the writing is useless. And indeed after I modified the > library to not issue explicit Settings.Save()'s and refuse to modify any > value in a Settings object (which would trigger the auto-save mechanism in > gb.settings), the server ran for 34 hours now without a problem. > > Clearly I'm at fault for the file corruption here, but does this problem > not > sound common enough to deserve some thought about a solution inside of > gb.settings? > > I could imagine a Settings.ReadOnly property which when set to True > disables > the automatic saving of configuration files in Settings._free() (and maybe > cancels even explicit Settings.Save()s). That's the pattern I now have in > my > library, to restrict access to Settings methods. > > There are two things that puzzle me though: > 1. Apparently gb.settings already uses lock files to counter this sort of > corruption. What happened?[*] > 2. How could sometimes a whole config file vanish, i.e. it is not only > emptied but does not exist anymore in the filesystem. > > If you have no idea, maybe I can reproduce the issue... [ JFTR: whenever it > happened that a part of a web page, like a background image, could not be > loaded, it was an indicator that a config corruption happened. Probably the > server crashed in an unhandled error (from Settings.Save()) before the file > was sent. So even if I can't reproduce it, I might still verify that it is > gb.settings. ] > > Sorry for the long mail. Some passages are just reminders for myself :-) > > Regards, > Tobi > > [*] Maybe this theory makes sense: imagine three processes are trying to > write the settings concurrently. > > The #1 gets the lock and begins writing. Now #2 kicks in and fails to > get the lock. In the Finally block in Settings.Save(), it Kills #1's > lock file (is that possible if #1 still holds the lock?). Then #3 can > acquire the lock again and writes concurrently with #1. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > Seems the problem it's when more than a process write same file, using locks!? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Apr 29 21:27:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 29 Apr 2018 21:27:55 +0200 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: References: <20160212122546.GA745@aurora> Message-ID: Le 29/04/2018 ? 20:39, PICCORO McKAY Lenz a ?crit?: > This is a old mail, but interested me, that i try to make some kind of > framework for my apps.. > > what the status of that problem Tobias? see below the message: > A Settings object is now saved only if it has been modified, so there is no need for an explicit ReadOnly property. But the saving concurrency management is still flawed, but I can now fix it correctly with the new MOVE ... KILL ... instruction. The file won't be corrupted... but you can't expect modifying the file with two different processes at the same time. The last process written the file will override the changes of the previous one. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Sun Apr 29 22:53:39 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 29 Apr 2018 16:53:39 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: References: <20160212122546.GA745@aurora> Message-ID: thanks for clarification Benoit, great! and about the slot line, which begins with a '[' character, and ends with a ']' character. wiki said: "This groups key/value lines together in a slot" but due a language barrier i cannot understand that in a gambas example code i have sne d apreviously mail about that! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-29 15:27 GMT-04:00 Beno?t Minisini : > Le 29/04/2018 ? 20:39, PICCORO McKAY Lenz a ?crit : > >> This is a old mail, but interested me, that i try to make some kind of >> framework for my apps.. >> >> what the status of that problem Tobias? see below the message: >> >> > A Settings object is now saved only if it has been modified, so there is > no need for an explicit ReadOnly property. > > But the saving concurrency management is still flawed, but I can now fix > it correctly with the new MOVE ... KILL ... instruction. > > The file won't be corrupted... but you can't expect modifying the file > with two different processes at the same time. The last process written the > file will override the changes of the previous one. > > Regards, > > -- > Beno?t Minisini > > -------------------------------------------------- > > This is the Gambas Mailing List: > https://lists.gambas-basic.org/listinfo/user > > Search the list: > https://lists.gambas-basic.org/cgi-bin/search.cgi > > Hosted by https://www.hostsharing.net > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Apr 30 04:13:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 29 Apr 2018 22:13:18 -0400 Subject: [Gambas-user] path from invocation name program how to? Message-ID: how could i extract or detect the application path from execution runtime.. just like bash does with $0 ? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Apr 30 04:15:20 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 29 Apr 2018 22:15:20 -0400 Subject: [Gambas-user] path from invocation name program how to? In-Reply-To: References: Message-ID: was my fault, was thinking that Application.Path and Application.name dont work, sorry was my disk full and excetuables was not working.. SOLVED Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-29 22:13 GMT-04:00 PICCORO McKAY Lenz : > how could i extract or detect the application path from execution > runtime.. just like bash does with $0 ? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Mon Apr 30 10:28:15 2018 From: kicking177 at gmail.com (KKing) Date: Mon, 30 Apr 2018 09:28:15 +0100 Subject: [Gambas-user] gb.settings while under IDE Message-ID: <21b74182-465d-875f-ab3c-c13920041c0e@gmail.com> I'm running a simple demo with window positioning saved to settings but this only works when running compiled programs and not while running under IDE? If it should work under IDE where should the config file be located when it is written to and read from, and or I can tell where mine thinks it is writing and reading from while under IDE? KK From taboege at gmail.com Mon Apr 30 10:38:27 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 30 Apr 2018 10:38:27 +0200 Subject: [Gambas-user] gb.settings while under IDE In-Reply-To: <21b74182-465d-875f-ab3c-c13920041c0e@gmail.com> References: <21b74182-465d-875f-ab3c-c13920041c0e@gmail.com> Message-ID: <20180430083827.GD22921@highrise.localdomain> On Mon, 30 Apr 2018, KKing wrote: > I'm running a simple demo with window positioning saved to settings but this > only works when running compiled programs and not while running under IDE? > It should work from either. > If it should work under IDE where should the config file be located when it > is written to and read from, and or I can tell where mine thinks it is > writing and reading from while under IDE? > Quoting the documentation [1]: The path of the default configuration file is: User.Home &/ ".config/gambas3" &/ Application.Name & ".conf" For example, the development environment configuration file is stored in ~/.config/gambas3/gambas3.conf Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.settings/settings -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Mon Apr 30 12:03:16 2018 From: kicking177 at gmail.com (KKing) Date: Mon, 30 Apr 2018 11:03:16 +0100 Subject: [Gambas-user] gb.settings while under IDE Message-ID: <7f2273b3-b76f-8613-1dd2-40c500a0fb07@gmail.com> On 30/04/18 09:34, user-request at lists.gambas-basic.org wrote: > On Mon, 30 Apr 2018, KKing wrote: >> I'm running a simple demo with window positioning saved to settings but this >> only works when running compiled programs and not while running under IDE? >> > It should work from either. > sorry for the noise. I had a breakpoint in code and was choosing stop from the Debug menu after the setting the settings lines and before some other things I didn't want to run. If I let it process a "QUIT" statement it works as expected. KK -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Apr 30 20:09:53 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 30 Apr 2018 14:09:53 -0400 Subject: [Gambas-user] Concurrent gb.settings In-Reply-To: References: <20160212122546.GA745@aurora> Message-ID: The slot is to group related key/value pairs together. If you have: Public Sub Form_Close() ' Save window settings when application closes Settings["Window/Top"] = Me.Top Settings["Window/Left"] = Me.Left Settings["Window/Height"] = Me.Height Settings["Window/Width"] = Me.Width End The saved settings file would look something like the following: [Window] Top = 13 Left = 18 Height = 154 Width = 235 To save a setting, the syntax is Settings["SLOT/KEY"] = VALUE When retrieving a setting, you can set a default value in case the setting is not found in the file. To retrieve a setting, the syntax is VALUE = Settings["SLOT/KEY", DEFAULT_VALUE] See http://gambaswiki.org/wiki/comp/gb.settings/settings -- Lee On 04/29/2018 04:53 PM, PICCORO McKAY Lenz wrote: > thanks? for clarification Benoit, great! > > and about the slot line, which begins with a '|[|' character, and ends with a '|]|' character. > > wiki said: "This groups key/value lines together in a slot" but due a language barrier i cannot understand that in a gambas > example code > > i have sne d apreviously mail about that! >