From claude.dessere at orange.fr Fri Jun 1 13:50:01 2018 From: claude.dessere at orange.fr (CD) Date: Fri, 01 Jun 2018 13:50:01 +0200 Subject: [Gambas-user] Gambas Doc Message-ID: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> Hello, I look for explanation about the "Mode" parameter of for example the XmlDocument.GetElementsByTagName (gb.xml) Function GetElementsByTagName ( TagName As String [ , Mode As Integer, Depth As Integer ] ) As XmlElement[] or the XmlElement.GetAttribute (gb.xml) Function GetAttribute ( Name As String [ , Mode As Integer ] ) As String I do not find any explanation about, is it a case sensitive argument : gb.Binary or gb.IgnoreCase or something else ? also for the method : XmlElement.AppendFromText (gb.xml) Sub AppendFromText ( Data As String, Arguments As , ... ) no comment in the documentation about "Arguments As " and about " ..." thank you in advance for your replies ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 1 14:05:11 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 1 Jun 2018 08:05:11 -0400 Subject: [Gambas-user] Gambas Doc In-Reply-To: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> References: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> Message-ID: mode its explained here: http://gambaswiki.org/wiki/cat/constant#t4 Since 3.4 *Comparison* can be one of the following value: - gb.Binary for a binary comparison (the default). That includes case-sensitive and length not based on strings - gb.IgnoreCase for a case-insensitive comparison. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-01 7:50 GMT-04:00 CD : > Hello, > I look for explanation about the "Mode" parameter of for example the > XmlDocument.GetElementsByTagName (gb.xml) > Function GetElementsByTagName ( TagName As String [ , Mode As Integer, > Depth As Integer ] ) As XmlElement[] > or the > XmlElement.GetAttribute (gb.xml) > Function GetAttribute ( Name As String [ , Mode As Integer ] ) As String > > I do not find any explanation about, is it a case sensitive argument : > gb.Binary or gb.IgnoreCase > or something else ? > also for the method : > XmlElement.AppendFromText (gb.xml) > Sub AppendFromText ( Data As String, Arguments As , ... ) > no comment in the documentation about > "Arguments As " and about " ..." > thank you in advance for your replies ! > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Jun 1 14:09:16 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 1 Jun 2018 15:09:16 +0300 Subject: [Gambas-user] Compilation AND Installation Message-ID: <20180601120916.M66930@455.co.il> Hello fedora 28 workstation 64bit first i install dnf groupinstall -y "C Development Tools and Libraries" "D Development Tools and Libraries" "Development Tools" I tried to compile according to the instructions I attach the output.txt file I see that there are new files such as: /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 But I can not find how to run the IDE Thanks for the help From t.lee.davidson at gmail.com Fri Jun 1 14:18:56 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 1 Jun 2018 08:18:56 -0400 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180601120916.M66930@455.co.il> References: <20180601120916.M66930@455.co.il> Message-ID: On my system, it is `/usr/bin/gambas3` -- Lee On 06/01/2018 08:09 AM, Mayost Sharon wrote: > Hello > > fedora 28 workstation 64bit > > first i install > dnf groupinstall -y "C Development Tools and Libraries" "D Development Tools and > Libraries" "Development Tools" > > I tried to compile according to the instructions > > I attach the output.txt file > > I see that there are new files such as: > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 > > But I can not find how to run the IDE > > Thanks for the help > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From mckaygerhard at gmail.com Fri Jun 1 14:25:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 1 Jun 2018 08:25:25 -0400 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180601120916.M66930@455.co.il> References: <20180601120916.M66930@455.co.il> Message-ID: it's clear that you not have meet depends, so ide cannot be compiled! it's clear do you not have qt4 or/either qt5 another win-hat.. i mean fedora misctake by the usage so simple of the command line installations solution be more specific with the packages to install, for win.fedora the needs are: dnf install qt5-qttools-devel qt5-qtbase qt5-qtwebkit (was yum install qt-devel qt-doc qt-creator in olders or if will use qt4 only) qt are need for the ide and some important gambas components another final solution its use a rel linux XD Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-01 8:09 GMT-04:00 Mayost Sharon : > Hello > > fedora 28 workstation 64bit > > first i install > dnf groupinstall -y "C Development Tools and Libraries" "D Development > Tools and > Libraries" "Development Tools" > > I tried to compile according to the instructions > > I attach the output.txt file > > I see that there are new files such as: > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 > > But I can not find how to run the IDE > > Thanks for the help > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Jun 1 14:27:55 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 1 Jun 2018 15:27:55 +0300 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: References: <20180601120916.M66930@455.co.il> Message-ID: <20180601122238.M31829@455.co.il> /usr/bin/gambas3 is LINK TO gambas3.gambas but gambas3.gambas is not found in my For remembrance I did COMPILE I did not do the order dnf install gambas3 ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Fri, 1 Jun 2018 08:18:56 -0400 Subject: Re: [Gambas-user] Compilation AND Installation > On my system, it is `/usr/bin/gambas3` > > -- > Lee > > On 06/01/2018 08:09 AM, Mayost Sharon wrote: > > Hello > > > > fedora 28 workstation 64bit > > > > first i install > > dnf groupinstall -y "C Development Tools and Libraries" "D Development Tools and > > Libraries" "Development Tools" > > > > I tried to compile according to the instructions > > > > I attach the output.txt file > > > > I see that there are new files such as: > > > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 > > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 > > > > But I can not find how to run the IDE > > > > Thanks for the help > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From bagonergi at gmail.com Fri Jun 1 15:33:35 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 1 Jun 2018 15:33:35 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180601122238.M31829@455.co.il> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> Message-ID: The instructions for compiling Fedora [0] are obsolete. Gambas is no longer with SVN is now with Git should read here [1] Before installing you should give these commands to clean, suggested by Jussi Lahtinen: sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 /usr/local/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/local/lib/gambas3 sudo rm -rf /usr/local/share/gambas3 sudo rm -f /usr/local/bin/gambas3 sudo rm -f /usr/local/bin/gambas3.gambas sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 /usr/local/bin/gbs3 sudo rm -rf /usr/lib/gambas3 sudo rm -rf /usr/share/gambas3 sudo rm -f /usr/bin/gambas3 sudo rm -f /usr/bin/gambas3.gambas These are the steps for a first installation (note I do not know Fedora :-) it's all at your risk): 1 - Open terminal. 2 - Download with #yum comand the libraries as suggested to SVN ( look here [0], I think they will not be enough) 3 - If you want the Master version you have to download Git: 3.1 - yum install git 3.2 - git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel 3.3 - cd gambasdevel 4 - If you want the stable from tar dawnload here [2] 4.1 - tar -zxvf gambas-3.11.3.tar.gz 4.2 - cd gambas-3.11.3 5 - ( ./reconf-all && ./configure -C ) > ~/Desktop/R_conf-Gambsdevel.log 2>&1 Check the log file R_conf-Gambsdevel.log on the desktop, scroll to the bottom and see if you lack libraries, if you need to inform yourself in Fedora how to install them. Then completed the installation with: 6 - ( make && sudo make install ) > ~/Desktop/Make_Inst-Gambasdevel.log 2>&1 And check if everything went well otherwise write to attach the log files Regards Gianluigi [0] http://gambaswiki.org/wiki/install/fedora#t11 NOTE: Plus retrieving for fedora 17 [1] http://gambaswiki.org/wiki/install#t4 [2] https://gitlab.com/gambas/gambas/-/archive/3.11.3/gambas-3.11.3.tar.bz2 2018-06-01 14:27 GMT+02:00 Mayost Sharon : > /usr/bin/gambas3 > is LINK TO > gambas3.gambas > > but gambas3.gambas is not found in my > > > For remembrance > I did COMPILE > I did not do the order > dnf install gambas3 > > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Fri, 1 Jun 2018 08:18:56 -0400 > Subject: Re: [Gambas-user] Compilation AND Installation > > > On my system, it is `/usr/bin/gambas3` > > > > -- > > Lee > > > > On 06/01/2018 08:09 AM, Mayost Sharon wrote: > > > Hello > > > > > > fedora 28 workstation 64bit > > > > > > first i install > > > dnf groupinstall -y "C Development Tools and Libraries" "D Development > Tools and > > > Libraries" "Development Tools" > > > > > > I tried to compile according to the instructions > > > > > > I attach the output.txt file > > > > > > I see that there are new files such as: > > > > > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 > > > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 > > > > > > But I can not find how to run the IDE > > > > > > Thanks for the help > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jun 1 15:59:01 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 1 Jun 2018 15:59:01 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> Message-ID: ERRATA CORRIGE For cleaning the sudo command change it with yum. Warning: Or install from git or tar, you can not have both Regards Gianluigi 2018-06-01 15:33 GMT+02:00 Gianluigi : > The instructions for compiling Fedora [0] are obsolete. > Gambas is no longer with SVN is now with Git should read here [1] > Before installing you should give these commands to clean, suggested by > Jussi Lahtinen: > sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > /usr/local/bin/gbi3 /usr/local/bin/gbs3 > sudo rm -rf /usr/local/lib/gambas3 > sudo rm -rf /usr/local/share/gambas3 > sudo rm -f /usr/local/bin/gambas3 > sudo rm -f /usr/local/bin/gambas3.gambas > > sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 > /usr/local/bin/gbs3 > sudo rm -rf /usr/lib/gambas3 > sudo rm -rf /usr/share/gambas3 > sudo rm -f /usr/bin/gambas3 > sudo rm -f /usr/bin/gambas3.gambas > > These are the steps for a first installation (note I do not know Fedora > :-) it's all at your risk): > 1 - Open terminal. > 2 - Download with #yum comand the libraries as suggested to SVN ( look > here [0], I think they will not be enough) > > 3 - If you want the Master version you have to download Git: > 3.1 - yum install git > 3.2 - git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel > 3.3 - cd gambasdevel > > 4 - If you want the stable from tar dawnload here [2] > > 4.1 - tar -zxvf gambas-3.11.3.tar.gz > 4.2 - cd gambas-3.11.3 > > > 5 - ( ./reconf-all && ./configure -C ) > ~/Desktop/R_conf-Gambsdevel.log > 2>&1 > > Check the log file R_conf-Gambsdevel.log on the desktop, scroll to the > bottom and see if you lack libraries, if you need to inform yourself in > Fedora how to install them. > Then completed the installation with: > 6 - ( make && sudo make install ) > ~/Desktop/Make_Inst-Gambasdevel.log > 2>&1 > > And check if everything went well otherwise write to attach the log files > > Regards > Gianluigi > > [0] http://gambaswiki.org/wiki/install/fedora#t11 > NOTE: Plus retrieving for fedora 17 > > [1] http://gambaswiki.org/wiki/install#t4 > > [2] https://gitlab.com/gambas/gambas/-/archive/3.11.3/ > gambas-3.11.3.tar.bz2 > > 2018-06-01 14:27 GMT+02:00 Mayost Sharon : > >> /usr/bin/gambas3 >> is LINK TO >> gambas3.gambas >> >> but gambas3.gambas is not found in my >> >> >> For remembrance >> I did COMPILE >> I did not do the order >> dnf install gambas3 >> >> ---------- Original Message ----------- >> From: T Lee Davidson >> To: user at lists.gambas-basic.org >> Sent: Fri, 1 Jun 2018 08:18:56 -0400 >> Subject: Re: [Gambas-user] Compilation AND Installation >> >> > On my system, it is `/usr/bin/gambas3` >> > >> > -- >> > Lee >> > >> > On 06/01/2018 08:09 AM, Mayost Sharon wrote: >> > > Hello >> > > >> > > fedora 28 workstation 64bit >> > > >> > > first i install >> > > dnf groupinstall -y "C Development Tools and Libraries" "D >> Development Tools and >> > > Libraries" "Development Tools" >> > > >> > > I tried to compile according to the instructions >> > > >> > > I attach the output.txt file >> > > >> > > I see that there are new files such as: >> > > >> > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 >> > > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 >> > > >> > > But I can not find how to run the IDE >> > > >> > > Thanks for the help >> > > >> > > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > > >> > >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> ------- End of Original Message ------- >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 1 16:02:19 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 1 Jun 2018 10:02:19 -0400 Subject: [Gambas-user] ofline wiki are unusefully In-Reply-To: References: Message-ID: how can i make my own copy of the hole site gambas wiki? it's a pain the offline mode ! or at leas how to made the redirection if a specific languaje page does not exist? in the ide this does not happened! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-31 14:16 GMT-04:00 PICCORO McKAY Lenz : > my gambas are in spanish, when i put wiki help offline, many many pages > are missing > > of course due there's no such translation but when i use online version > atleast the english are use! > > that's made the offline wiki mode unusefully! > > how can i build and use the complete wiki in localhost on my particular > machine! ? > > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 1 16:21:34 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 1 Jun 2018 10:21:34 -0400 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: References: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> Message-ID: reported now: http://gambaswiki.org/bugtracker/edit?object=BUG.1338&class=bug&tab=%2A&update=bug&s=0&from=L21haW4- Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-30 13:26 GMT-04:00 PICCORO McKAY Lenz : > i'll report as a bug, tested with gambas 3.8.0 and works perfect, with > 3.11.3 does not work with 3.10.0 detect but when package loads and try to > generate a source tarball the version number are not get from file > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-30 10:42 GMT-04:00 PICCORO McKAY Lenz : > >> when i opened your project and goes to the project properties, the "check >> from version" are uncheked, and by example produced packages get 0.0.1 >> event your number version.. >> >> atached screenshot.. >> >> the only difference i think its the languaje.. maybe that are a point..? >> seems here are a bug? >> >> 2018-05-30 10:01 GMT-04:00 Charlie Ogier : >> >>> Try the attached. >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jun 1 18:15:42 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 1 Jun 2018 18:15:42 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> Message-ID: I wanted to help but unfortunately I only created confusion. However, the steps to compile are those indicated by me: First of all, we need to remove every trace of the previous Gambas from our OS. Then we need to have all the libraries installed as shown here [0] So we need to download Gambas through Tar or Git. Once we have in our home the Gambas folder, we enter the folder and give the commands: As a normal user: ./reconf-all ./configure -C make And as root: make install Better if we send the output error to a log file to get help in case of errors. Regards Gianluigi 2018-06-01 15:59 GMT+02:00 Gianluigi : > ERRATA CORRIGE > > For cleaning the sudo command change it with yum. > > Warning: Or install from git or tar, you can not have both > > Regards > Gianluigi > > 2018-06-01 15:33 GMT+02:00 Gianluigi : > >> The instructions for compiling Fedora [0] are obsolete. >> Gambas is no longer with SVN is now with Git should read here [1] >> Before installing you should give these commands to clean, suggested by >> Jussi Lahtinen: >> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >> sudo rm -rf /usr/local/lib/gambas3 >> sudo rm -rf /usr/local/share/gambas3 >> sudo rm -f /usr/local/bin/gambas3 >> sudo rm -f /usr/local/bin/gambas3.gambas >> >> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >> /usr/local/bin/gbs3 >> sudo rm -rf /usr/lib/gambas3 >> sudo rm -rf /usr/share/gambas3 >> sudo rm -f /usr/bin/gambas3 >> sudo rm -f /usr/bin/gambas3.gambas >> >> These are the steps for a first installation (note I do not know Fedora >> :-) it's all at your risk): >> 1 - Open terminal. >> 2 - Download with #yum comand the libraries as suggested to SVN ( look >> here [0], I think they will not be enough) >> >> 3 - If you want the Master version you have to download Git: >> 3.1 - yum install git >> 3.2 - git clone --depth=1 https://gitlab.com/gambas/gambas.git >> gambasdevel >> 3.3 - cd gambasdevel >> >> 4 - If you want the stable from tar dawnload here [2] >> >> 4.1 - tar -zxvf gambas-3.11.3.tar.gz >> 4.2 - cd gambas-3.11.3 >> >> >> 5 - ( ./reconf-all && ./configure -C ) > ~/Desktop/R_conf-Gambsdevel.log >> 2>&1 >> >> Check the log file R_conf-Gambsdevel.log on the desktop, scroll to the >> bottom and see if you lack libraries, if you need to inform yourself in >> Fedora how to install them. >> Then completed the installation with: >> 6 - ( make && sudo make install ) > ~/Desktop/Make_Inst-Gambasdevel.log >> 2>&1 >> >> And check if everything went well otherwise write to attach the log files >> >> Regards >> Gianluigi >> >> [0] http://gambaswiki.org/wiki/install/fedora#t11 >> NOTE: Plus retrieving for fedora 17 >> >> [1] http://gambaswiki.org/wiki/install#t4 >> >> [2] https://gitlab.com/gambas/gambas/-/archive/3.11.3/gambas-3. >> 11.3.tar.bz2 >> >> 2018-06-01 14:27 GMT+02:00 Mayost Sharon : >> >>> /usr/bin/gambas3 >>> is LINK TO >>> gambas3.gambas >>> >>> but gambas3.gambas is not found in my >>> >>> >>> For remembrance >>> I did COMPILE >>> I did not do the order >>> dnf install gambas3 >>> >>> ---------- Original Message ----------- >>> From: T Lee Davidson >>> To: user at lists.gambas-basic.org >>> Sent: Fri, 1 Jun 2018 08:18:56 -0400 >>> Subject: Re: [Gambas-user] Compilation AND Installation >>> >>> > On my system, it is `/usr/bin/gambas3` >>> > >>> > -- >>> > Lee >>> > >>> > On 06/01/2018 08:09 AM, Mayost Sharon wrote: >>> > > Hello >>> > > >>> > > fedora 28 workstation 64bit >>> > > >>> > > first i install >>> > > dnf groupinstall -y "C Development Tools and Libraries" "D >>> Development Tools and >>> > > Libraries" "Development Tools" >>> > > >>> > > I tried to compile according to the instructions >>> > > >>> > > I attach the output.txt file >>> > > >>> > > I see that there are new files such as: >>> > > >>> > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 >>> > > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 >>> > > >>> > > But I can not find how to run the IDE >>> > > >>> > > Thanks for the help >>> > > >>> > > >>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> > > >>> > >>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> ------- End of Original Message ------- >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jun 1 18:18:42 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 1 Jun 2018 18:18:42 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> Message-ID: [0] http://gambaswiki.org/wiki/install#t2 2018-06-01 18:15 GMT+02:00 Gianluigi : > I wanted to help but unfortunately I only created confusion. > > However, the steps to compile are those indicated by me: > > First of all, we need to remove every trace of the previous Gambas from > our OS. > Then we need to have all the libraries installed as shown here [0] > So we need to download Gambas through Tar or Git. > Once we have in our home the Gambas folder, we enter the folder and give > the commands: > As a normal user: > ./reconf-all > ./configure -C > make > And as root: > make install > > Better if we send the output error to a log file to get help in case of > errors. > > Regards > Gianluigi > > > 2018-06-01 15:59 GMT+02:00 Gianluigi : > >> ERRATA CORRIGE >> >> For cleaning the sudo command change it with yum. >> >> Warning: Or install from git or tar, you can not have both >> >> Regards >> Gianluigi >> >> 2018-06-01 15:33 GMT+02:00 Gianluigi : >> >>> The instructions for compiling Fedora [0] are obsolete. >>> Gambas is no longer with SVN is now with Git should read here [1] >>> Before installing you should give these commands to clean, suggested by >>> Jussi Lahtinen: >>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 >>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 >>> sudo rm -rf /usr/local/lib/gambas3 >>> sudo rm -rf /usr/local/share/gambas3 >>> sudo rm -f /usr/local/bin/gambas3 >>> sudo rm -f /usr/local/bin/gambas3.gambas >>> >>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 >>> /usr/local/bin/gbs3 >>> sudo rm -rf /usr/lib/gambas3 >>> sudo rm -rf /usr/share/gambas3 >>> sudo rm -f /usr/bin/gambas3 >>> sudo rm -f /usr/bin/gambas3.gambas >>> >>> These are the steps for a first installation (note I do not know Fedora >>> :-) it's all at your risk): >>> 1 - Open terminal. >>> 2 - Download with #yum comand the libraries as suggested to SVN ( look >>> here [0], I think they will not be enough) >>> >>> 3 - If you want the Master version you have to download Git: >>> 3.1 - yum install git >>> 3.2 - git clone --depth=1 https://gitlab.com/gambas/gambas.git >>> gambasdevel >>> 3.3 - cd gambasdevel >>> >>> 4 - If you want the stable from tar dawnload here [2] >>> >>> 4.1 - tar -zxvf gambas-3.11.3.tar.gz >>> 4.2 - cd gambas-3.11.3 >>> >>> >>> 5 - ( ./reconf-all && ./configure -C ) > ~/Desktop/R_conf-Gambsdevel.log >>> 2>&1 >>> >>> Check the log file R_conf-Gambsdevel.log on the desktop, scroll to the >>> bottom and see if you lack libraries, if you need to inform yourself in >>> Fedora how to install them. >>> Then completed the installation with: >>> 6 - ( make && sudo make install ) > ~/Desktop/Make_Inst-Gambasdevel.log >>> 2>&1 >>> >>> And check if everything went well otherwise write to attach the log files >>> >>> Regards >>> Gianluigi >>> >>> [0] http://gambaswiki.org/wiki/install/fedora#t11 >>> NOTE: Plus retrieving for fedora 17 >>> >>> [1] http://gambaswiki.org/wiki/install#t4 >>> >>> [2] https://gitlab.com/gambas/gambas/-/archive/3.11.3/gambas-3.1 >>> 1.3.tar.bz2 >>> >>> 2018-06-01 14:27 GMT+02:00 Mayost Sharon : >>> >>>> /usr/bin/gambas3 >>>> is LINK TO >>>> gambas3.gambas >>>> >>>> but gambas3.gambas is not found in my >>>> >>>> >>>> For remembrance >>>> I did COMPILE >>>> I did not do the order >>>> dnf install gambas3 >>>> >>>> ---------- Original Message ----------- >>>> From: T Lee Davidson >>>> To: user at lists.gambas-basic.org >>>> Sent: Fri, 1 Jun 2018 08:18:56 -0400 >>>> Subject: Re: [Gambas-user] Compilation AND Installation >>>> >>>> > On my system, it is `/usr/bin/gambas3` >>>> > >>>> > -- >>>> > Lee >>>> > >>>> > On 06/01/2018 08:09 AM, Mayost Sharon wrote: >>>> > > Hello >>>> > > >>>> > > fedora 28 workstation 64bit >>>> > > >>>> > > first i install >>>> > > dnf groupinstall -y "C Development Tools and Libraries" "D >>>> Development Tools and >>>> > > Libraries" "Development Tools" >>>> > > >>>> > > I tried to compile according to the instructions >>>> > > >>>> > > I attach the output.txt file >>>> > > >>>> > > I see that there are new files such as: >>>> > > >>>> > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 >>>> > > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 >>>> > > >>>> > > But I can not find how to run the IDE >>>> > > >>>> > > Thanks for the help >>>> > > >>>> > > >>>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> > > >>>> > >>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> ------- End of Original Message ------- >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 1 20:42:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 1 Jun 2018 14:42:57 -0400 Subject: [Gambas-user] Gambas Doc In-Reply-To: References: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> Message-ID: umm tobias got the right direction: http://gambaswiki.org/bugtracker/edit?object=BUG.1339&from=L21haW4- seems there's a real issue in the mode ! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-01 8:05 GMT-04:00 PICCORO McKAY Lenz : > mode its explained here: http://gambaswiki.org/wiki/cat/constant#t4 > > Since 3.4 > *Comparison* can be one of the following value: > > - > > gb.Binary for a binary > comparison (the default). That includes case-sensitive and length not based > on strings > - > > gb.IgnoreCase for a > case-insensitive comparison. > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-01 7:50 GMT-04:00 CD : > >> Hello, >> I look for explanation about the "Mode" parameter of for example the >> XmlDocument.GetElementsByTagName (gb.xml) >> Function GetElementsByTagName ( TagName As String [ , Mode As Integer, >> Depth As Integer ] ) As XmlElement[] >> or the >> XmlElement.GetAttribute (gb.xml) >> Function GetAttribute ( Name As String [ , Mode As Integer ] ) As String >> >> I do not find any explanation about, is it a case sensitive argument : >> gb.Binary or gb.IgnoreCase >> or something else ? >> also for the method : >> XmlElement.AppendFromText (gb.xml) >> Sub AppendFromText ( Data As String, Arguments As , ... ) >> no comment in the documentation about >> "Arguments As " and about " ..." >> thank you in advance for your replies ! >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jun 1 21:00:44 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 1 Jun 2018 21:00:44 +0200 Subject: [Gambas-user] Gambas Doc In-Reply-To: References: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> Message-ID: <20180601190044.GE5149@highrise.localdomain> On Fri, 01 Jun 2018, PICCORO McKAY Lenz wrote: > umm tobias got the right direction: > > http://gambaswiki.org/bugtracker/edit?object=BUG.1339&from=L21haW4- > > seems there's a real issue in the mode ! > There is an issue but you can still use the Mode argument right now if you know its limitations. The things it does right at the moment won't go away. It supports gb.IgnoreCase, gb.Language+gb.IgnoreCase and gb.Like from the the comparison mode listing [1]. Everything else is silently treated as gb.Binary. [1] http://gambaswiki.org/wiki/cat/comp -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bm.530502 at gmail.com Fri Jun 1 20:57:17 2018 From: bm.530502 at gmail.com (Ingo) Date: Fri, 1 Jun 2018 20:57:17 +0200 Subject: [Gambas-user] Gambas Doc In-Reply-To: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> References: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> Message-ID: Am 01.06.2018 um 13:50 schrieb CD: > Hello, > I look for explanation about the "Mode" parameter of for example the > XmlDocument.GetElementsByTagName (gb.xml) > Function GetElementsByTagName ( TagName As String [ , Mode As Integer, > Depth As Integer ] ) As XmlElement[] > or the > XmlElement.GetAttribute (gb.xml) > Function GetAttribute ( Name As String [ , Mode As Integer ] ) As String > > I do not find any explanation about, is it a case sensitive argument : > gb.Binary or gb.IgnoreCase > or something else ? > also for the method : > XmlElement.AppendFromText (gb.xml) > Sub AppendFromText ( Data As String, Arguments As , ... ) > no comment in the documentation about > "Arguments As " and about " ..." > thank you in advance for your replies ! > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Hi Claude, take a look here: http://www.gambas-book.net/doku.php?id=k27:k27.1:start&s[]=xml Regards Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 1 22:34:37 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 1 Jun 2018 16:34:37 -0400 Subject: [Gambas-user] Gambas Doc In-Reply-To: References: <77d7cd07ef3f492c2f1b873d583aef25ffb5b19e.camel@orange.fr> Message-ID: well documentation can be fixed with the current state to clarify: It supports gb.IgnoreCase, gb.Language+gb.IgnoreCase and gb.Like from the the comparison mode listing [1]. Everything else is silently treated as gb.Binary. i can do it? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-01 14:57 GMT-04:00 Ingo : > Am 01.06.2018 um 13:50 schrieb CD: > > Hello, > I look for explanation about the "Mode" parameter of for example the > XmlDocument.GetElementsByTagName (gb.xml) > Function GetElementsByTagName ( TagName As String [ , Mode As Integer, > Depth As Integer ] ) As XmlElement[] > or the > XmlElement.GetAttribute (gb.xml) > Function GetAttribute ( Name As String [ , Mode As Integer ] ) As String > > I do not find any explanation about, is it a case sensitive argument : > gb.Binary or gb.IgnoreCase > or something else ? > also for the method : > XmlElement.AppendFromText (gb.xml) > Sub AppendFromText ( Data As String, Arguments As , ... ) > no comment in the documentation about > "Arguments As " and about " ..." > thank you in advance for your replies ! > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Hi Claude, > take a look here: http://www.gambas-book.net/doku.php?id=k27:k27.1:start&s > []=xml > > Regards > Ingo > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jun 2 18:32:21 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jun 2018 18:32:21 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) Message-ID: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> Hi, The new JIT system ('jit-with-c' branch) is now able to run the Fractal example! Note: the Fractal example here draws the Mandelbrot fractal by dividing the drawing area in four parts, and computing each part in an external task. Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_20180602_183005.png Type: image/png Size: 215706 bytes Desc: not available URL: From taboege at gmail.com Sat Jun 2 20:05:43 2018 From: taboege at gmail.com (Tobias Boege) Date: Sat, 2 Jun 2018 20:05:43 +0200 Subject: [Gambas-user] Version numbers Message-ID: <20180602180543.GN5149@highrise.localdomain> Hi, could it be that the VERSION file was forgotten in the release wave around 3.11? master/VERSION shows 3.10.90 and stable/VERSION shows 3.11.2, but they should be 3.11.90 and 3.11.3. Obviously this is very confusing (and frustrating, as I've experienced) for users who try to install the latest stable Gambas version, because they can't seem to get past 3.11.2. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: ikdldggndbbnmpap.png Type: image/png Size: 89495 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Jun 2 20:06:16 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jun 2018 20:06:16 +0200 Subject: [Gambas-user] Version numbers In-Reply-To: <20180602180543.GN5149@highrise.localdomain> References: <20180602180543.GN5149@highrise.localdomain> Message-ID: <345bc741-55bf-340c-49e0-60399e8af99b@gmail.com> Le 02/06/2018 ? 20:05, Tobias Boege a ?crit?: > Hi, > > could it be that the VERSION file was forgotten in the release wave > around 3.11? It was. I have just fixed it. -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat Jun 2 22:16:19 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 2 Jun 2018 23:16:19 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> Message-ID: Is this going to be merged to master branch soon? Jussi On Sat, Jun 2, 2018 at 7:32 PM, Beno?t Minisini wrote: > Hi, > > The new JIT system ('jit-with-c' branch) is now able to run the Fractal > example! > > Note: the Fractal example here draws the Mandelbrot fractal by dividing > the drawing area in four parts, and computing each part in an external task. > > Regards, > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jun 2 22:22:01 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jun 2018 22:22:01 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> Message-ID: <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit?: > Is this going to be merged to master branch soon? > > > Jussi > It's far from being finished. -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat Jun 2 22:49:57 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 2 Jun 2018 23:49:57 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: Oh, of course, it cannot be merged until ready, because it replaces the old JIT... I'll fetch the branch and test it. Jussi On Sat, Jun 2, 2018 at 11:22 PM, Beno?t Minisini wrote: > Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit : > >> Is this going to be merged to master branch soon? >> >> >> Jussi >> >> > It's far from being finished. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jun 2 22:58:06 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 2 Jun 2018 23:58:06 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: ...but it's never easy with git. How to switch branches? Advices on "git for dummies", "git for f*cking idiots", etc, etc do nothing useful. There doesn't seem to be branch named "jit-with-c". Only master is listed. Jussi On Sat, Jun 2, 2018 at 11:49 PM, Jussi Lahtinen wrote: > Oh, of course, it cannot be merged until ready, because it replaces the > old JIT... > I'll fetch the branch and test it. > > > Jussi > > > On Sat, Jun 2, 2018 at 11:22 PM, Beno?t Minisini wrote: > >> Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit : >> >>> Is this going to be merged to master branch soon? >>> >>> >>> Jussi >>> >>> >> It's far from being finished. >> >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jun 2 23:01:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jun 2018 23:01:40 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> Le 02/06/2018 ? 22:58, Jussi Lahtinen a ?crit?: > ...but it's never easy with git. How to switch branches? > Advices on "git for dummies", "git for f*cking idiots", etc, etc do > nothing useful. There doesn't seem to be branch named "jit-with-c". > Only master is listed. > > > Jussi > If you have cloned the repository from gitlab, you just have to do "git checkout jit-with-c". Then you have to do a full "./reconf-all && ./configure -C && make clean && make". Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat Jun 2 23:05:37 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 3 Jun 2018 00:05:37 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> Message-ID: Yes, I did clone it from gitlab, but: $ git checkout jit-with-c error: pathspec 'jit-with-c' did not match any file(s) known to git. Jussi On Sun, Jun 3, 2018 at 12:01 AM, Beno?t Minisini wrote: > Le 02/06/2018 ? 22:58, Jussi Lahtinen a ?crit : > >> ...but it's never easy with git. How to switch branches? >> Advices on "git for dummies", "git for f*cking idiots", etc, etc do >> nothing useful. There doesn't seem to be branch named "jit-with-c". >> Only master is listed. >> >> >> Jussi >> >> > If you have cloned the repository from gitlab, you just have to do "git > checkout jit-with-c". > > Then you have to do a full "./reconf-all && ./configure -C && make clean > && make". > > Regards, > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jun 2 23:15:53 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 2 Jun 2018 23:15:53 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> Message-ID: <75bb431b-0063-fe6f-d692-d69a593f51b9@gmail.com> Le 02/06/2018 ? 23:05, Jussi Lahtinen a ?crit?: > Yes, I did clone it from gitlab, but: > $ git checkout jit-with-c > error: pathspec 'jit-with-c' did not match any file(s) known to git. > > Jussi > Did synchronzie your repository? (git pull). -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Jun 3 00:04:39 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 3 Jun 2018 01:04:39 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: <75bb431b-0063-fe6f-d692-d69a593f51b9@gmail.com> References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> <75bb431b-0063-fe6f-d692-d69a593f51b9@gmail.com> Message-ID: I did first "git pull", then the checkout. Should I do it again? Jussi On Sun, Jun 3, 2018 at 12:15 AM, Beno?t Minisini wrote: > Le 02/06/2018 ? 23:05, Jussi Lahtinen a ?crit : > >> Yes, I did clone it from gitlab, but: >> $ git checkout jit-with-c >> error: pathspec 'jit-with-c' did not match any file(s) known to git. >> >> Jussi >> >> > Did synchronzie your repository? (git pull). > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 3 00:06:16 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 3 Jun 2018 01:06:16 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> <75bb431b-0063-fe6f-d692-d69a593f51b9@gmail.com> Message-ID: Ignore, I found solution. I think it is about clone depth. Jussi On Sun, Jun 3, 2018 at 1:04 AM, Jussi Lahtinen wrote: > I did first "git pull", then the checkout. Should I do it again? > > > Jussi > > On Sun, Jun 3, 2018 at 12:15 AM, Beno?t Minisini wrote: > >> Le 02/06/2018 ? 23:05, Jussi Lahtinen a ?crit : >> >>> Yes, I did clone it from gitlab, but: >>> $ git checkout jit-with-c >>> error: pathspec 'jit-with-c' did not match any file(s) known to git. >>> >>> Jussi >>> >>> >> Did synchronzie your repository? (git pull). >> >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jun 3 00:11:18 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jun 2018 00:11:18 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> <75bb431b-0063-fe6f-d692-d69a593f51b9@gmail.com> Message-ID: <45e23bd2-2224-7c5a-a9bf-686557e86e38@gmail.com> Le 03/06/2018 ? 00:04, Jussi Lahtinen a ?crit?: > I did first "git pull", then the checkout. Should I do it again? > > > Jussi > I don't know. I thought 'git pull' would have downloaded the new branches. Try to clone the repository from scratch. You will get all the branches that way. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Jun 3 01:04:10 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 3 Jun 2018 02:04:10 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32e3e24f-7743-8d35-f86c-73e2240aeb02@gmail.com> <75bb431b-0063-fe6f-d692-d69a593f51b9@gmail.com> Message-ID: I think these commands did the job: git remote set-branches origin '*' git fetch -v git checkout jit-with-c But I'm unable to compile. So... either the sources on my machine are messed or there is actual error. Jussi On Sun, Jun 3, 2018 at 1:06 AM, Jussi Lahtinen wrote: > Ignore, I found solution. I think it is about clone depth. > > > Jussi > > On Sun, Jun 3, 2018 at 1:04 AM, Jussi Lahtinen > wrote: > >> I did first "git pull", then the checkout. Should I do it again? >> >> >> Jussi >> >> On Sun, Jun 3, 2018 at 12:15 AM, Beno?t Minisini >> wrote: >> >>> Le 02/06/2018 ? 23:05, Jussi Lahtinen a ?crit : >>> >>>> Yes, I did clone it from gitlab, but: >>>> $ git checkout jit-with-c >>>> error: pathspec 'jit-with-c' did not match any file(s) known to git. >>>> >>>> Jussi >>>> >>>> >>> Did synchronzie your repository? (git pull). >>> >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: compile.log.tar.gz Type: application/gzip Size: 21729 bytes Desc: not available URL: From claude.dessere at orange.fr Sun Jun 3 09:21:19 2018 From: claude.dessere at orange.fr (CD) Date: Sun, 03 Jun 2018 09:21:19 +0200 Subject: [Gambas-user] Gambas Doc Message-ID: Thanks you for your replies. The second part of my question has been completely zappedabout the method : XmlElement.AppendFromText (gb.xml)Sub AppendFromText ( Data As String, Arguments As , ... )no comment in the documentation about "Arguments As " and about " ..." -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sun Jun 3 09:39:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 3 Jun 2018 03:39:57 -0400 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: in gambas wiki there's directly the "how to deal with git" with specifics topics about it Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-02 16:58 GMT-04:00 Jussi Lahtinen : > ...but it's never easy with git. How to switch branches? > Advices on "git for dummies", "git for f*cking idiots", etc, etc do > nothing useful. There doesn't seem to be branch named "jit-with-c". > Only master is listed. > > > Jussi > > On Sat, Jun 2, 2018 at 11:49 PM, Jussi Lahtinen > wrote: > >> Oh, of course, it cannot be merged until ready, because it replaces the >> old JIT... >> I'll fetch the branch and test it. >> >> >> Jussi >> >> >> On Sat, Jun 2, 2018 at 11:22 PM, Beno?t Minisini >> wrote: >> >>> Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit : >>> >>>> Is this going to be merged to master branch soon? >>>> >>>> >>>> Jussi >>>> >>>> >>> It's far from being finished. >>> >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sun Jun 3 09:42:39 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sun, 3 Jun 2018 03:42:39 -0400 Subject: [Gambas-user] Version numbers In-Reply-To: <345bc741-55bf-340c-49e0-60399e8af99b@gmail.com> References: <20180602180543.GN5149@highrise.localdomain> <345bc741-55bf-340c-49e0-60399e8af99b@gmail.com> Message-ID: Benoit! of course you are busy in some level, please see something about the problems with odbc and xml, was working in 3.10 before the commits mentioned Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-02 14:06 GMT-04:00 Beno?t Minisini : > Le 02/06/2018 ? 20:05, Tobias Boege a ?crit : > >> Hi, >> >> could it be that the VERSION file was forgotten in the release wave >> around 3.11? >> > > It was. I have just fixed it. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Jun 3 12:06:03 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 3 Jun 2018 12:06:03 +0200 Subject: [Gambas-user] Gambas Doc In-Reply-To: References: Message-ID: <20180603100603.GQ5149@highrise.localdomain> On Sun, 03 Jun 2018, CD wrote: > Thanks you for your replies. > The second part of my question has been completely zappedabout the method : > XmlElement.AppendFromText (gb.xml)Sub AppendFromText ( Data As String, Arguments > As , ... )no comment in the documentation about "Arguments As " and about " ..." Throughout the Gambas documentation "..." in a function signature stands for a variable argument list [1][2][3]. A more experienced Gambas programmer will look at AppendFromText(Data As String, Arguments ...) and immediately realise that it is just using Subst$() [4] from Data and Arguments and then append the resulting data :-) AppendFromText("a &2 c &1", "d", "b") will first construct the string "a b c d" and then append it to the XmlElement you call this method on. Of course, as the documentation already states, this isn't just text which is appended but it is parsed as XML first. I added the Subst$() bit and an example to the documentation. Regards, Tobi [1] https://en.wikipedia.org/wiki/Variadic_function [2] http://gambaswiki.org/wiki/lang/methoddecl [3] http://gambaswiki.org/wiki/comp/gb/param [4] http://gambaswiki.org/wiki/lang/subst -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sharon at 455.co.il Sun Jun 3 14:22:02 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 3 Jun 2018 15:22:02 +0300 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> Message-ID: <20180603120916.M65034@455.co.il> Hello and thank you very much I am on a new operating system FEDORA 28 never installed GAMBAS I ran: dnf groupinstall -y "Development Tools" "Development Libraries" dnf install -y cairo-devel libsqlite3x-devel sqlite2-devel gtk2-devel gtkglext-devel imlib2-devel librsvg2-devel poppler-devel qt-devel libv4l-devel SDL-devel SDL_sound-devel SDL_ttf-devel SDL_net-devel SDL_mixer-devel SDL_image-devel SDL_gfx-devel SDL_Pango-devel unixODBC-devel postgresql-devel libXtst-devel mysql-devel pcre-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libGL-devel glew-devel dbus-devel libzip libzip-devel bzip2-devel libcurl-devel qt-webkit-devel libxml2-devel libxslt-devel libv4l-devel libjpeg-turbo-devel ncurses-devel gsl-devel libXtst-devel gstreamer-devel gstreamer-plugins-base-devel I ran the ( ./reconf-all ; ./configure -C ; make ; make install ) > output4.txt 2>&1 And yet it does not work ---------- Original Message ----------- From: Gianluigi To: Gambas Mailing List Sent: Fri, 1 Jun 2018 18:18:42 +0200 Subject: Re: [Gambas-user] Compilation AND Installation > [0] http://gambaswiki.org/wiki/install#t2 > > 2018-06-01 18:15 GMT+02:00 Gianluigi : > > > I wanted to help but unfortunately I only created confusion. > > > > However, the steps to compile are those indicated by me: > > > > First of all, we need to remove every trace of the previous Gambas from > > our OS. > > Then we need to have all the libraries installed as shown here [0] > > So we need to download Gambas through Tar or Git. > > Once we have in our home the Gambas folder, we enter the folder and give > > the commands: > > As a normal user: > > ./reconf-all > > ./configure -C > > make > > And as root: > > make install > > > > Better if we send the output error to a log file to get help in case of > > errors. > > > > Regards > > Gianluigi > > > > > > 2018-06-01 15:59 GMT+02:00 Gianluigi : > > > >> ERRATA CORRIGE > >> > >> For cleaning the sudo command change it with yum. > >> > >> Warning: Or install from git or tar, you can not have both > >> > >> Regards > >> Gianluigi > >> > >> 2018-06-01 15:33 GMT+02:00 Gianluigi : > >> > >>> The instructions for compiling Fedora [0] are obsolete. > >>> Gambas is no longer with SVN is now with Git should read here [1] > >>> Before installing you should give these commands to clean, suggested by > >>> Jussi Lahtinen: > >>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 /usr/local/bin/gba3 > >>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 > >>> sudo rm -rf /usr/local/lib/gambas3 > >>> sudo rm -rf /usr/local/share/gambas3 > >>> sudo rm -f /usr/local/bin/gambas3 > >>> sudo rm -f /usr/local/bin/gambas3.gambas > >>> > >>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 > >>> /usr/local/bin/gbs3 > >>> sudo rm -rf /usr/lib/gambas3 > >>> sudo rm -rf /usr/share/gambas3 > >>> sudo rm -f /usr/bin/gambas3 > >>> sudo rm -f /usr/bin/gambas3.gambas > >>> > >>> These are the steps for a first installation (note I do not know Fedora > >>> :-) it's all at your risk): > >>> 1 - Open terminal. > >>> 2 - Download with #yum comand the libraries as suggested to SVN ( look > >>> here [0], I think they will not be enough) > >>> > >>> 3 - If you want the Master version you have to download Git: > >>> 3.1 - yum install git > >>> 3.2 - git clone --depth=1 https://gitlab.com/gambas/gambas.git > >>> gambasdevel > >>> 3.3 - cd gambasdevel > >>> > >>> 4 - If you want the stable from tar dawnload here [2] > >>> > >>> 4.1 - tar -zxvf gambas-3.11.3.tar.gz > >>> 4.2 - cd gambas-3.11.3 > >>> > >>> > >>> 5 - ( ./reconf-all && ./configure -C ) > ~/Desktop/R_conf-Gambsdevel.log > >>> 2>&1 > >>> > >>> Check the log file R_conf-Gambsdevel.log on the desktop, scroll to the > >>> bottom and see if you lack libraries, if you need to inform yourself in > >>> Fedora how to install them. > >>> Then completed the installation with: > >>> 6 - ( make && sudo make install ) > ~/Desktop/Make_Inst-Gambasdevel.log > >>> 2>&1 > >>> > >>> And check if everything went well otherwise write to attach the log files > >>> > >>> Regards > >>> Gianluigi > >>> > >>> [0] http://gambaswiki.org/wiki/install/fedora#t11 > >>> NOTE: Plus retrieving for fedora 17 > >>> > >>> [1] http://gambaswiki.org/wiki/install#t4 > >>> > >>> [2] https://gitlab.com/gambas/gambas/-/archive/3.11.3/gambas-3.1 > >>> 1.3.tar.bz2 > >>> > >>> 2018-06-01 14:27 GMT+02:00 Mayost Sharon : > >>> > >>>> /usr/bin/gambas3 > >>>> is LINK TO > >>>> gambas3.gambas > >>>> > >>>> but gambas3.gambas is not found in my > >>>> > >>>> > >>>> For remembrance > >>>> I did COMPILE > >>>> I did not do the order > >>>> dnf install gambas3 > >>>> > >>>> ---------- Original Message ----------- > >>>> From: T Lee Davidson > >>>> To: user at lists.gambas-basic.org > >>>> Sent: Fri, 1 Jun 2018 08:18:56 -0400 > >>>> Subject: Re: [Gambas-user] Compilation AND Installation > >>>> > >>>> > On my system, it is `/usr/bin/gambas3` > >>>> > > >>>> > -- > >>>> > Lee > >>>> > > >>>> > On 06/01/2018 08:09 AM, Mayost Sharon wrote: > >>>> > > Hello > >>>> > > > >>>> > > fedora 28 workstation 64bit > >>>> > > > >>>> > > first i install > >>>> > > dnf groupinstall -y "C Development Tools and Libraries" "D > >>>> Development Tools and > >>>> > > Libraries" "Development Tools" > >>>> > > > >>>> > > I tried to compile according to the instructions > >>>> > > > >>>> > > I attach the output.txt file > >>>> > > > >>>> > > I see that there are new files such as: > >>>> > > > >>>> > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 /bin/gbw3 > >>>> > > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas /bin/gbx3 > >>>> > > > >>>> > > But I can not find how to run the IDE > >>>> > > > >>>> > > Thanks for the help > >>>> > > > >>>> > > > >>>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > >>>> ]---- > >>>> > > > >>>> > > >>>> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > >>>> ]---- > >>>> ------- End of Original Message ------- > >>>> > >>>> > >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > >>>> ]---- > >>>> > >>> > >>> > >> > > ------- End of Original Message ------- From sharon at 455.co.il Sun Jun 3 14:26:21 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 3 Jun 2018 15:26:21 +0300 Subject: [Gambas-user] ver 3.11.3 In Fedora In-Reply-To: <20180603120916.M65034@455.co.il> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> Message-ID: <20180603122526.M6941@455.co.il> Hello Is it known when version 3.11.3 will be available in Fedora? And who is responsible for giving version 3.11.3 to Fedora Thank you From taboege at gmail.com Sun Jun 3 14:38:42 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 3 Jun 2018 14:38:42 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180603120916.M65034@455.co.il> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> Message-ID: <20180603123842.GR5149@highrise.localdomain> On Sun, 03 Jun 2018, Mayost Sharon wrote: > Hello and thank you very much > > I am on a new operating system FEDORA 28 never installed GAMBAS > > I ran: > > dnf groupinstall -y "Development Tools" "Development Libraries" > > dnf install -y cairo-devel libsqlite3x-devel sqlite2-devel gtk2-devel gtkglext-devel > imlib2-devel librsvg2-devel poppler-devel qt-devel libv4l-devel SDL-devel > SDL_sound-devel SDL_ttf-devel SDL_net-devel SDL_mixer-devel SDL_image-devel > SDL_gfx-devel SDL_Pango-devel unixODBC-devel postgresql-devel libXtst-devel mysql-devel > pcre-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libGL-devel glew-devel dbus-devel > libzip libzip-devel bzip2-devel libcurl-devel qt-webkit-devel libxml2-devel > libxslt-devel libv4l-devel libjpeg-turbo-devel ncurses-devel gsl-devel libXtst-devel > gstreamer-devel gstreamer-plugins-base-devel > > > I ran the > > ( ./reconf-all ; ./configure -C ; make ; make install ) > output4.txt 2>&1 > > And yet it does not work > But what does not work? Do you get errors, does nothing happen at all? Does it compile but not install? You did not attach the output4.txt which ought to contain all that information. And another observation: "make install" must be executed as root, which is usually done by issuing "sudo make install" or "su make install". If you weren't root, it's no wonder Gambas didn't install, even though compilation was successful. If you executed the whole above chain as root and it didn't work either, attach the output file you created. Also note that compiling as root isn't necessary and doing unnecessary things as root is dangerous by default. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Jun 3 15:05:32 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 3 Jun 2018 15:05:32 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180603120916.M65034@455.co.il> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> Message-ID: I, for the stable (3.11.3), I had indicated this passage that seems to have jumped: 4 - If you want the stable from tar dawnload here [2] 4.1 - tar -zxvf gambas-3.11.3.tar.gz 4.2 - cd gambas-3.11.3 [2] https://gitlab.com/gambas/gambas/-/archive/3.11.3/gambas-3.11.3.tar.bz2 Regards Gianluigi 2018-06-03 14:22 GMT+02:00 Mayost Sharon : > Hello and thank you very much > > I am on a new operating system FEDORA 28 never installed GAMBAS > > I ran: > > dnf groupinstall -y "Development Tools" "Development Libraries" > > dnf install -y cairo-devel libsqlite3x-devel sqlite2-devel gtk2-devel > gtkglext-devel > imlib2-devel librsvg2-devel poppler-devel qt-devel libv4l-devel SDL-devel > SDL_sound-devel SDL_ttf-devel SDL_net-devel SDL_mixer-devel SDL_image-devel > SDL_gfx-devel SDL_Pango-devel unixODBC-devel postgresql-devel > libXtst-devel mysql-devel > pcre-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libGL-devel glew-devel > dbus-devel > libzip libzip-devel bzip2-devel libcurl-devel qt-webkit-devel libxml2-devel > libxslt-devel libv4l-devel libjpeg-turbo-devel ncurses-devel gsl-devel > libXtst-devel > gstreamer-devel gstreamer-plugins-base-devel > > > I ran the > > ( ./reconf-all ; ./configure -C ; make ; make install ) > output4.txt 2>&1 > > And yet it does not work > > > ---------- Original Message ----------- > From: Gianluigi > To: Gambas Mailing List > Sent: Fri, 1 Jun 2018 18:18:42 +0200 > Subject: Re: [Gambas-user] Compilation AND Installation > > > [0] http://gambaswiki.org/wiki/install#t2 > > > > 2018-06-01 18:15 GMT+02:00 Gianluigi : > > > > > I wanted to help but unfortunately I only created confusion. > > > > > > However, the steps to compile are those indicated by me: > > > > > > First of all, we need to remove every trace of the previous Gambas from > > > our OS. > > > Then we need to have all the libraries installed as shown here [0] > > > So we need to download Gambas through Tar or Git. > > > Once we have in our home the Gambas folder, we enter the folder and > give > > > the commands: > > > As a normal user: > > > ./reconf-all > > > ./configure -C > > > make > > > And as root: > > > make install > > > > > > Better if we send the output error to a log file to get help in case of > > > errors. > > > > > > Regards > > > Gianluigi > > > > > > > > > 2018-06-01 15:59 GMT+02:00 Gianluigi : > > > > > >> ERRATA CORRIGE > > >> > > >> For cleaning the sudo command change it with yum. > > >> > > >> Warning: Or install from git or tar, you can not have both > > >> > > >> Regards > > >> Gianluigi > > >> > > >> 2018-06-01 15:33 GMT+02:00 Gianluigi : > > >> > > >>> The instructions for compiling Fedora [0] are obsolete. > > >>> Gambas is no longer with SVN is now with Git should read here [1] > > >>> Before installing you should give these commands to clean, suggested > by > > >>> Jussi Lahtinen: > > >>> sudo rm -f /usr/local/bin/gbx3 /usr/local/bin/gbc3 > /usr/local/bin/gba3 > > >>> /usr/local/bin/gbi3 /usr/local/bin/gbs3 > > >>> sudo rm -rf /usr/local/lib/gambas3 > > >>> sudo rm -rf /usr/local/share/gambas3 > > >>> sudo rm -f /usr/local/bin/gambas3 > > >>> sudo rm -f /usr/local/bin/gambas3.gambas > > >>> > > >>> sudo rm -f /usr/bin/gbx3 /usr/bin/gbc3 /usr/bin/gba3 /usr/bin/gbi3 > > >>> /usr/local/bin/gbs3 > > >>> sudo rm -rf /usr/lib/gambas3 > > >>> sudo rm -rf /usr/share/gambas3 > > >>> sudo rm -f /usr/bin/gambas3 > > >>> sudo rm -f /usr/bin/gambas3.gambas > > >>> > > >>> These are the steps for a first installation (note I do not know > Fedora > > >>> :-) it's all at your risk): > > >>> 1 - Open terminal. > > >>> 2 - Download with #yum comand the libraries as suggested to SVN ( > look > > >>> here [0], I think they will not be enough) > > >>> > > >>> 3 - If you want the Master version you have to download Git: > > >>> 3.1 - yum install git > > >>> 3.2 - git clone --depth=1 https://gitlab.com/gambas/gambas.git > > >>> gambasdevel > > >>> 3.3 - cd gambasdevel > > >>> > > >>> 4 - If you want the stable from tar dawnload here [2] > > >>> > > >>> 4.1 - tar -zxvf gambas-3.11.3.tar.gz > > >>> 4.2 - cd gambas-3.11.3 > > >>> > > >>> > > >>> 5 - ( ./reconf-all && ./configure -C ) > ~/Desktop/R_conf-Gambsdevel. > log > > >>> 2>&1 > > >>> > > >>> Check the log file R_conf-Gambsdevel.log on the desktop, scroll to > the > > >>> bottom and see if you lack libraries, if you need to inform yourself > in > > >>> Fedora how to install them. > > >>> Then completed the installation with: > > >>> 6 - ( make && sudo make install ) > ~/Desktop/Make_Inst- > Gambasdevel.log > > >>> 2>&1 > > >>> > > >>> And check if everything went well otherwise write to attach the log > files > > >>> > > >>> Regards > > >>> Gianluigi > > >>> > > >>> [0] http://gambaswiki.org/wiki/install/fedora#t11 > > >>> NOTE: Plus retrieving for fedora 17 > > >>> > > >>> [1] http://gambaswiki.org/wiki/install#t4 > > >>> > > >>> [2] https://gitlab.com/gambas/gambas/-/archive/3.11.3/gambas-3.1 > > >>> 1.3.tar.bz2 > > >>> > > >>> 2018-06-01 14:27 GMT+02:00 Mayost Sharon : > > >>> > > >>>> /usr/bin/gambas3 > > >>>> is LINK TO > > >>>> gambas3.gambas > > >>>> > > >>>> but gambas3.gambas is not found in my > > >>>> > > >>>> > > >>>> For remembrance > > >>>> I did COMPILE > > >>>> I did not do the order > > >>>> dnf install gambas3 > > >>>> > > >>>> ---------- Original Message ----------- > > >>>> From: T Lee Davidson > > >>>> To: user at lists.gambas-basic.org > > >>>> Sent: Fri, 1 Jun 2018 08:18:56 -0400 > > >>>> Subject: Re: [Gambas-user] Compilation AND Installation > > >>>> > > >>>> > On my system, it is `/usr/bin/gambas3` > > >>>> > > > >>>> > -- > > >>>> > Lee > > >>>> > > > >>>> > On 06/01/2018 08:09 AM, Mayost Sharon wrote: > > >>>> > > Hello > > >>>> > > > > >>>> > > fedora 28 workstation 64bit > > >>>> > > > > >>>> > > first i install > > >>>> > > dnf groupinstall -y "C Development Tools and Libraries" "D > > >>>> Development Tools and > > >>>> > > Libraries" "Development Tools" > > >>>> > > > > >>>> > > I tried to compile according to the instructions > > >>>> > > > > >>>> > > I attach the output.txt file > > >>>> > > > > >>>> > > I see that there are new files such as: > > >>>> > > > > >>>> > > /bin/gba3 /bin/gbh3 /bin/gbi3 /bin/gbs3 > /bin/gbw3 > > >>>> > > /bin/gbc3 /bin/gbh3.gambas /bin/gbr3 /bin/gbs3.gambas > /bin/gbx3 > > >>>> > > > > >>>> > > But I can not find how to run the IDE > > >>>> > > > > >>>> > > Thanks for the help > > >>>> > > > > >>>> > > > > >>>> > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > >>>> ]---- > > >>>> > > > > >>>> > > > >>>> > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > >>>> ]---- > > >>>> ------- End of Original Message ------- > > >>>> > > >>>> > > >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > >>>> ]---- > > >>>> > > >>> > > >>> > > >> > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Sun Jun 3 15:40:45 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Sun, 3 Jun 2018 15:40:45 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> Message-ID: <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> Am 03.06.2018 um 15:05 schrieb Gianluigi: > I, for the stable (3.11.3), I had indicated this passage that seems to > have jumped: > > 4 - If you want the stable from tar dawnload here [2] > > 4.1 - tar -zxvf gambas-3.11.3.tar.gz > 4.2 - cd gambas-3.11.3 Hello Gianluigi, when I carry out these commands: ? $ ./reconf-all && ./configure && make -j5 ? $ sudo make install I get this - but NOT the stable version 3.11.3: ? Regards, Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3.11.2.png Type: image/png Size: 81551 bytes Desc: not available URL: From bagonergi at gmail.com Sun Jun 3 17:50:46 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 3 Jun 2018 17:50:46 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> Message-ID: 2018-06-03 15:40 GMT+02:00 Hans Lehmann : > Am 03.06.2018 um 15:05 schrieb Gianluigi: > > I, for the stable (3.11.3), I had indicated this passage that seems to > have jumped: > > 4 - If you want the stable from tar dawnload here [2] > > 4.1 - tar -zxvf gambas-3.11.3.tar.gz > 4.2 - cd gambas-3.11.3 > > Hello Gianluigi, > > when I carry out these commands: > > $ ./reconf-all && ./configure && make -j5 > $ sudo make install > > I get this - but NOT the stable version 3.11.3: > > > > ? > > Regards, > > Hans > > Hi Hans, I can not help you. We need to ask Benoit :-) I use the Master Regards Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3.11.2.png Type: image/png Size: 81551 bytes Desc: not available URL: From sharon at 455.co.il Sun Jun 3 17:53:06 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 3 Jun 2018 18:53:06 +0300 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180603123842.GR5149@highrise.localdomain> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <20180603123842.GR5149@highrise.localdomain> Message-ID: <20180603155102.M41746@455.co.il> Hello and thank you very much i run ( ./reconf-all && ./configure && make -j5 ) > output5.txt 2>&1 I attach the log file ---------- Original Message ----------- From: Tobias Boege To: Gambas Mailing List Sent: Sun, 3 Jun 2018 14:38:42 +0200 Subject: Re: [Gambas-user] Compilation AND Installation > On Sun, 03 Jun 2018, Mayost Sharon wrote: > > Hello and thank you very much > > > > I am on a new operating system FEDORA 28 never installed GAMBAS > > > > I ran: > > > > dnf groupinstall -y "Development Tools" "Development Libraries" > > > > dnf install -y cairo-devel libsqlite3x-devel sqlite2-devel gtk2-devel gtkglext-devel > > imlib2-devel librsvg2-devel poppler-devel qt-devel libv4l-devel SDL-devel > > SDL_sound-devel SDL_ttf-devel SDL_net-devel SDL_mixer-devel SDL_image-devel > > SDL_gfx-devel SDL_Pango-devel unixODBC-devel postgresql-devel libXtst-devel mysql-devel > > pcre-devel mesa-libGLU-devel mesa-libGLw-devel mesa-libGL-devel glew-devel dbus-devel > > libzip libzip-devel bzip2-devel libcurl-devel qt-webkit-devel libxml2-devel > > libxslt-devel libv4l-devel libjpeg-turbo-devel ncurses-devel gsl-devel libXtst-devel > > gstreamer-devel gstreamer-plugins-base-devel > > > > > > I ran the > > > > ( ./reconf-all ; ./configure -C ; make ; make install ) > output4.txt 2>&1 > > > > And yet it does not work > > > > But what does not work? Do you get errors, does nothing happen at all? > Does it compile but not install? You did not attach the output4.txt which > ought to contain all that information. > > And another observation: "make install" must be executed as root, which is > usually done by issuing "sudo make install" or "su make install". If you > weren't root, it's no wonder Gambas didn't install, even though compilation > was successful. > > If you executed the whole above chain as root and it didn't work either, > attach the output file you created. Also note that compiling as root isn't > necessary and doing unnecessary things as root is dangerous by default. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: output5.txt URL: From t.lee.davidson at gmail.com Sun Jun 3 18:09:39 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 3 Jun 2018 12:09:39 -0400 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> Message-ID: <85c112ee-9332-1ba5-4b92-8b1b8f622a66@gmail.com> On 06/03/2018 09:40 AM, Hans Lehmann wrote: > Am 03.06.2018 um 15:05 schrieb Gianluigi: >> I, for the stable (3.11.3), I had indicated this passage that seems to have jumped: >> >> 4 - If you want the stable from tar dawnload here [2] >> >> 4.1 - tar -zxvf gambas-3.11.3.tar.gz >> 4.2 - cd gambas-3.11.3 > Hello Gianluigi, > > when I carry out these commands: > > ? $ ./reconf-all && ./configure && make -j5 > ? $ sudo make install > > I get this - but NOT the stable version 3.11.3: > > ? > > Regards, > > Hans > Try refetching the source. It seems there was an issue with the version file: [quote] Le 02/06/2018 ? 20:05, Tobias Boege a ?crit : > Hi, > > could it be that the VERSION file was forgotten in the release wave > around 3.11? It was. I have just fixed it. -- Beno?t Minisini [/quote] -- Lee From t.lee.davidson at gmail.com Sun Jun 3 18:22:15 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 3 Jun 2018 12:22:15 -0400 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180603155102.M41746@455.co.il> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <20180603123842.GR5149@highrise.localdomain> <20180603155102.M41746@455.co.il> Message-ID: On 06/03/2018 11:53 AM, Mayost Sharon wrote: > Hello and thank you very much > > i run > ( ./reconf-all && ./configure && make -j5 ) > output5.txt 2>&1 > > I attach the log file > > -- output5.txt -------------------------------------- > ../../main/gbx/gbx_library.h:34:12: fatal error: ltdl.h: No such file or directory > #include > ^~~~~~~~ Apparently you need the libtool-ltdl-devel package. https://ask.fedoraproject.org/en/question/53550/how-can-i-find-a-needed-header-file/ -- Lee From sharon at 455.co.il Sun Jun 3 18:47:33 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 3 Jun 2018 19:47:33 +0300 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <20180603123842.GR5149@highrise.localdomain> <20180603155102.M41746@455.co.il> Message-ID: <20180603164524.M18893@455.co.il> Hello and thank you very much After I ran as you told me it works Thanks again But it gives version 3.11.2 ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Sun, 3 Jun 2018 12:22:15 -0400 Subject: Re: [Gambas-user] Compilation AND Installation > On 06/03/2018 11:53 AM, Mayost Sharon wrote: > > Hello and thank you very much > > > > i run > > ( ./reconf-all && ./configure && make -j5 ) > output5.txt 2>&1 > > > > I attach the log file > > > > > -- output5.txt -------------------------------------- > > > ../../main/gbx/gbx_library.h:34:12: fatal error: ltdl.h: No such file or directory > > #include > > ^~~~~~~~ > > Apparently you need the libtool-ltdl-devel package. > https://ask.fedoraproject.org/en/question/53550/how-can-i-find-a-needed-header- > file/ > > -- > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From gambas.fr at gmail.com Sun Jun 3 19:00:12 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 3 Jun 2018 19:00:12 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: Hi, On a fresh cloned git : fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether to enable maintainer-specific portions of Makefiles... no configure: error: source directory already configured; run "make distclean" there first fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ make disclean make: *** Aucune r?gle pour fabriquer la cible ? disclean ?. Arr?t. fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ make distclean make[1] : on entre dans le r?pertoire ? /home/fabien/Documents/gambas/gb.jit ? rm -rf .libs _libs rm -f *.lo test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f config.h stamp-h1 rm -f libtool config.lt rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1] : on quitte le r?pertoire ? /home/fabien/Documents/gambas/gb.jit ? rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -f Makefile fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ ./reconf bash: ./reconf: Aucun fichier ou dossier de ce type fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ ls aclocal.m4 compile config.h.in configure DISABLED install-sh Makefile.in src autom4te.cache config.guess config.sub depcomp DISABLED.gb.jit ltmain.sh missing warnings.log fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ ./reconf bash: ./reconf: Aucun fichier ou dossier de ce type fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether to enable maintainer-specific portions of Makefiles... no configure: error: source directory already configured; run "make distclean" there first fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ ^C fabien at fabien-TERRA-MOBILE-1749S ~/Documents/gambas/gb.jit $ I'm stuck here. How can i progress ? 2018-06-03 9:39 GMT+02:00 PICCORO McKAY Lenz : > in gambas wiki there's directly the "how to deal with git" with specifics > topics about it > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-02 16:58 GMT-04:00 Jussi Lahtinen : > >> ...but it's never easy with git. How to switch branches? >> Advices on "git for dummies", "git for f*cking idiots", etc, etc do >> nothing useful. There doesn't seem to be branch named "jit-with-c". >> Only master is listed. >> >> >> Jussi >> >> On Sat, Jun 2, 2018 at 11:49 PM, Jussi Lahtinen > > wrote: >> >>> Oh, of course, it cannot be merged until ready, because it replaces the >>> old JIT... >>> I'll fetch the branch and test it. >>> >>> >>> Jussi >>> >>> >>> On Sat, Jun 2, 2018 at 11:22 PM, Beno?t Minisini >>> wrote: >>> >>>> Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit : >>>> >>>>> Is this going to be merged to master branch soon? >>>>> >>>>> >>>>> Jussi >>>>> >>>>> >>>> It's far from being finished. >>>> >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jun 3 19:52:46 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 3 Jun 2018 19:52:46 +0200 Subject: [Gambas-user] Compilation AND Installation In-Reply-To: <20180603164524.M18893@455.co.il> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <20180603123842.GR5149@highrise.localdomain> <20180603155102.M41746@455.co.il> <20180603164524.M18893@455.co.il> Message-ID: 2018-06-03 18:47 GMT+02:00 Mayost Sharon : > Hello and thank you very much > > After I ran as you told me it works > Thanks again > > You should have attached the log files for a check on the libraries. You can also open Gambas and from the help menu (?) click on the System information menu, copy and paste here, to see what you have. > But it gives version 3.11.2 > Yes, it seems to be what happens to everyone > > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Sun, 3 Jun 2018 12:22:15 -0400 > Subject: Re: [Gambas-user] Compilation AND Installation > > > On 06/03/2018 11:53 AM, Mayost Sharon wrote: > > > Hello and thank you very much > > > > > > i run > > > ( ./reconf-all && ./configure && make -j5 ) > output5.txt 2>&1 > > > > > > I attach the log file > > > > > > > > -- output5.txt -------------------------------------- > > > > > ../../main/gbx/gbx_library.h:34:12: fatal error: ltdl.h: No such file > or directory > > > #include > > > ^~~~~~~~ > > > > Apparently you need the libtool-ltdl-devel package. > > https://ask.fedoraproject.org/en/question/53550/how-can-i- > find-a-needed-header- > > file/ > > > > -- > > Lee > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 3 21:00:16 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 3 Jun 2018 22:00:16 +0300 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: Yes, I completely forgot that. However I'm not sure it would have helped. At least there isn't the commands I end up using. However I'm not sure whether they corrupted the source code or what happened. What "git fetch" does/means? I always use only "git pull" to update sources and it seems to work (at least with master branch). Jussi On Sun, Jun 3, 2018 at 10:39 AM, PICCORO McKAY Lenz wrote: > in gambas wiki there's directly the "how to deal with git" with specifics > topics about it > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-02 16:58 GMT-04:00 Jussi Lahtinen : > >> ...but it's never easy with git. How to switch branches? >> Advices on "git for dummies", "git for f*cking idiots", etc, etc do >> nothing useful. There doesn't seem to be branch named "jit-with-c". >> Only master is listed. >> >> >> Jussi >> >> On Sat, Jun 2, 2018 at 11:49 PM, Jussi Lahtinen > > wrote: >> >>> Oh, of course, it cannot be merged until ready, because it replaces the >>> old JIT... >>> I'll fetch the branch and test it. >>> >>> >>> Jussi >>> >>> >>> On Sat, Jun 2, 2018 at 11:22 PM, Beno?t Minisini >>> wrote: >>> >>>> Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit : >>>> >>>>> Is this going to be merged to master branch soon? >>>>> >>>>> >>>>> Jussi >>>>> >>>>> >>>> It's far from being finished. >>>> >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jun 3 21:39:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jun 2018 21:39:42 +0200 Subject: [Gambas-user] Gambas 3.11.3 version files Message-ID: <1b8a7354-0924-cfab-715f-ce72092eb008@gmail.com> Hi, I have just updated Gambas 3.11.3 with the correct version files. Sorry for the mistake! -- Beno?t Minisini From g4mba5 at gmail.com Sun Jun 3 22:50:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jun 2018 22:50:05 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab Message-ID: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> https://www.bloomberg.com/news/articles/2018-06-03/microsoft-is-said-to-have-agreed-to-acquire-coding-site-github? -- Beno?t Minisini From g4mba5 at gmail.com Sun Jun 3 22:55:48 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jun 2018 22:55:48 +0200 Subject: [Gambas-user] Ruby will soon have a JIT compiler... Message-ID: https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/ ...and it is based on translation to C code, compilation and shared library linking. They had the same idea as your servant (or the contrary)! So maybe it was finally a good idea. -- Beno?t Minisini From gambas.fr at gmail.com Sun Jun 3 22:59:01 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 3 Jun 2018 22:59:01 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: As Nadella increasingly moves the company away from complete dependence on the Windows operating system to more in-house development on Linux, the company needs new ways to connect with the broader developer community. Humf ... is this good for linux ? 2018-06-03 22:50 GMT+02:00 Beno?t Minisini : > https://www.bloomberg.com/news/articles/2018-06-03/microsoft > -is-said-to-have-agreed-to-acquire-coding-site-github? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jun 3 23:24:16 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 3 Jun 2018 23:24:16 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: 2018-06-03 22:59 GMT+02:00 Fabien Bodard : > As Nadella increasingly moves the company away from complete dependence > on the Windows operating system to more in-house development on Linux, the > company needs new ways to connect with the broader developer community. > > Humf ... is this good for linux ? > > 2018-06-03 22:50 GMT+02:00 Beno?t Minisini : > >> https://www.bloomberg.com/news/articles/2018-06-03/microsoft >> -is-said-to-have-agreed-to-acquire-coding-site-github? >> >> -- >> Beno?t Minisini >> >> Fabien Bodard > > Fortunately? Are You sure :-( Regards Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jun 3 23:54:11 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 3 Jun 2018 23:54:11 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: Le 03/06/2018 ? 23:24, Gianluigi a ?crit?: > > Fortunately? Are You sure :-( > > Regards > Gianluigi > I hope so. Usually any company bought by Microsoft means more bugs (Minecraft) or big problems (Nokia). -- Beno?t Minisini From gambas.fr at gmail.com Mon Jun 4 00:08:13 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 4 Jun 2018 00:08:13 +0200 Subject: [Gambas-user] Ruby will soon have a JIT compiler... In-Reply-To: References: Message-ID: 2018-06-03 22:55 GMT+02:00 Beno?t Minisini : > https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/ > > ...and it is based on translation to C code, compilation and shared > library linking. > > They had the same idea as your servant (or the contrary)! > > So maybe it was finally a good idea. Maybe the beginning of the end for the JIT VMs fashions ? > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jun 4 00:12:13 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jun 2018 00:12:13 +0200 Subject: [Gambas-user] Ruby will soon have a JIT compiler... In-Reply-To: References: Message-ID: Le 04/06/2018 ? 00:08, Fabien Bodard a ?crit?: > > > 2018-06-03 22:55 GMT+02:00 Beno?t Minisini >: > > https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/ > > > ...and it is based on translation to C code, compilation and shared > library linking. > > They had the same idea as your servant (or the contrary)! > > So maybe it was finally a good idea. > > > Maybe the beginning of the end for the JIT VMs fashions ? > Why??? I would have said the opposite. -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Jun 4 00:22:54 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 4 Jun 2018 01:22:54 +0300 Subject: [Gambas-user] Ruby will soon have a JIT compiler... In-Reply-To: References: Message-ID: Why? If people turn away from LLVM style tech, then it's the opposite non-VM tech? Jussi On Mon, Jun 4, 2018 at 1:12 AM, Beno?t Minisini wrote: > Le 04/06/2018 ? 00:08, Fabien Bodard a ?crit : > >> >> >> 2018-06-03 22:55 GMT+02:00 Beno?t Minisini > g4mba5 at gmail.com>>: >> >> https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-prev >> iew2-released/ >> > view2-released/> >> >> ...and it is based on translation to C code, compilation and shared >> library linking. >> >> They had the same idea as your servant (or the contrary)! >> >> So maybe it was finally a good idea. >> >> >> Maybe the beginning of the end for the JIT VMs fashions ? >> >> > Why??? I would have said the opposite. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Jun 4 00:34:55 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 4 Jun 2018 00:34:55 +0200 Subject: [Gambas-user] Ruby will soon have a JIT compiler... In-Reply-To: References: Message-ID: Le lun. 4 juin 2018 00:24, Jussi Lahtinen a ?crit : > Why? > If people turn away from LLVM style tech, then it's the opposite non-VM > tech? > Truly.. I don't know > > Jussi > > On Mon, Jun 4, 2018 at 1:12 AM, Beno?t Minisini wrote: > >> Le 04/06/2018 ? 00:08, Fabien Bodard a ?crit : >> >>> >>> >>> 2018-06-03 22:55 GMT+02:00 Beno?t Minisini >> g4mba5 at gmail.com>>: >>> >>> >>> https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/ >>> < >>> https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-preview2-released/ >>> > >>> >>> ...and it is based on translation to C code, compilation and shared >>> library linking. >>> >>> They had the same idea as your servant (or the contrary)! >>> >>> So maybe it was finally a good idea. >>> >>> >>> Maybe the beginning of the end for the JIT VMs fashions ? >>> >>> >> Why??? I would have said the opposite. >> >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Jun 4 09:31:54 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 4 Jun 2018 09:31:54 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: 2018-06-03 23:54 GMT+02:00 Beno?t Minisini : > Le 03/06/2018 ? 23:24, Gianluigi a ?crit : > >> >> Fortunately? Are You sure :-( >> >> Regards >> Gianluigi >> >> > I hope so. Usually any company bought by Microsoft means more bugs > (Minecraft) or big problems (Nokia). > > -- > Beno?t Minisini > It is my ignorance to have spoken :-( Finally, thanks to your answer, I understood the difference between 'git', 'GitLab' and 'GitHub' :-) A lesser competition... Regards Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Jun 4 10:39:34 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 4 Jun 2018 10:39:34 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: Am 03.06.2018 um 23:54 schrieb Beno?t Minisini: > Le 03/06/2018 ? 23:24, Gianluigi a ?crit?: >> >> Fortunately? Are You sure :-( > I hope so. Usually any company bought by Microsoft means more bugs > (Minecraft) or big problems (Nokia). We have the sources now on Git. If we are in any need with a company we can run our own server running GitLab or a more simple solution. 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 Mon Jun 4 14:49:13 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 08:49:13 -0400 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: bullshit! its not good! in nomadays linux was a "one install play forever" now today linux are a wastebacket for things like systemd and so.. due the tentacles of people like mmaycosoft developers infiltrated! the only way to guindows win to linux environment its "infectating" from inside! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-03 16:59 GMT-04:00 Fabien Bodard : > As Nadella increasingly moves the company away from complete dependence > on the Windows operating system to more in-house development on Linux, the > company needs new ways to connect with the broader developer community. > > Humf ... is this good for linux ? > > 2018-06-03 22:50 GMT+02:00 Beno?t Minisini : > >> https://www.bloomberg.com/news/articles/2018-06-03/microsoft >> -is-said-to-have-agreed-to-acquire-coding-site-github? >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > -- > Fabien Bodard > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 4 14:53:17 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 08:53:17 -0400 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: 2018-06-04 4:39 GMT-04:00 Christof Thalhofer : > We have the sources now on Git. If we are in any need with a company we > that's right! good for that! > can run our own server running GitLab or a more simple solution. > why not? why not RIGHT NOW! with a copy mirror in gitlab? (and maybe not another copy in sf ) the best simples and fast tool to do its the very powered and clean GODS/GITEA! git can be configured to make mirroring only from specifcis branchs, inclusivelly gitlab has "click interfaces" for that! > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 4 14:55:33 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 08:55:33 -0400 Subject: [Gambas-user] Ruby will soon have a JIT compiler... In-Reply-To: References: Message-ID: 2018-06-03 18:12 GMT-04:00 Beno?t Minisini : > Le 04/06/2018 ? 00:08, Fabien Bodard a ?crit : > >> >> >> 2018-06-03 22:55 GMT+02:00 Beno?t Minisini > g4mba5 at gmail.com>>: >> >> https://www.ruby-lang.org/en/news/2018/05/31/ruby-2-6-0-prev >> iew2-released/ >> > view2-released/> >> >> ...and it is based on translation to C code, compilation and shared >> library linking. >> >> They had the same idea as your servant (or the contrary)! >> >> So maybe it was finally a good idea. >> >> >> Maybe the beginning of the end for the JIT VMs fashions ? >> >> > Why??? I would have said the opposite. maybe means waya from A PARTICULAR LLVM usage nota away of using LLVM in fact remenber that the problem its the llvm project per set, not the usage of a llvm ... > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 4 15:02:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 09:02:01 -0400 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: git pull updates your code to with the "remote" (in that case update the code agains the gambas repository in gitlab) git fecth only hava a "internal copy hidden in some way" to make operations (specially diff's) without going agains the network on each (that's why its named descentralized) in resume git pull DOWNLOAD AND PUSH CHANGES TO THE LOCAL COPY ... git fetch in fact its one of the many steps made by git pull.. git fet6ch as wiki gamba said only retrieve code to compare locally by example git pull retrieve code and merge with you Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-03 15:00 GMT-04:00 Jussi Lahtinen : > Yes, I completely forgot that. However I'm not sure it would have helped. > At least there isn't the commands I end up using. However I'm not sure > whether they corrupted the source code or what happened. > What "git fetch" does/means? I always use only "git pull" to update > sources and it seems to work (at least with master branch). > > > Jussi > > On Sun, Jun 3, 2018 at 10:39 AM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> in gambas wiki there's directly the "how to deal with git" with specifics >> topics about it >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-02 16:58 GMT-04:00 Jussi Lahtinen : >> >>> ...but it's never easy with git. How to switch branches? >>> Advices on "git for dummies", "git for f*cking idiots", etc, etc do >>> nothing useful. There doesn't seem to be branch named "jit-with-c". >>> Only master is listed. >>> >>> >>> Jussi >>> >>> On Sat, Jun 2, 2018 at 11:49 PM, Jussi Lahtinen < >>> jussi.lahtinen at gmail.com> wrote: >>> >>>> Oh, of course, it cannot be merged until ready, because it replaces the >>>> old JIT... >>>> I'll fetch the branch and test it. >>>> >>>> >>>> Jussi >>>> >>>> >>>> On Sat, Jun 2, 2018 at 11:22 PM, Beno?t Minisini >>>> wrote: >>>> >>>>> Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit : >>>>> >>>>>> Is this going to be merged to master branch soon? >>>>>> >>>>>> >>>>>> Jussi >>>>>> >>>>>> >>>>> It's far from being finished. >>>>> >>>>> >>>>> -- >>>>> Beno?t Minisini >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 4 15:11:30 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 09:11:30 -0400 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: umm and that information are all very well explained in the wiki i wrote: http://gambaswiki.org/wiki/howto/git#t15 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-04 9:02 GMT-04:00 PICCORO McKAY Lenz : > git pull updates your code to with the "remote" (in that case update the > code agains the gambas repository in gitlab) > > git fecth only hava a "internal copy hidden in some way" to make > operations (specially diff's) without going agains the network on each > (that's why its named descentralized) > > in resume git pull DOWNLOAD AND PUSH CHANGES TO THE LOCAL COPY ... git > fetch in fact its one of the many steps made by git pull.. > > git fet6ch as wiki gamba said only retrieve code to compare locally by > example > > git pull retrieve code and merge with you > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-03 15:00 GMT-04:00 Jussi Lahtinen : > >> Yes, I completely forgot that. However I'm not sure it would have helped. >> At least there isn't the commands I end up using. However I'm not sure >> whether they corrupted the source code or what happened. >> What "git fetch" does/means? I always use only "git pull" to update >> sources and it seems to work (at least with master branch). >> >> >> Jussi >> >> On Sun, Jun 3, 2018 at 10:39 AM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> in gambas wiki there's directly the "how to deal with git" with >>> specifics topics about it >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-02 16:58 GMT-04:00 Jussi Lahtinen : >>> >>>> ...but it's never easy with git. How to switch branches? >>>> Advices on "git for dummies", "git for f*cking idiots", etc, etc do >>>> nothing useful. There doesn't seem to be branch named "jit-with-c". >>>> Only master is listed. >>>> >>>> >>>> Jussi >>>> >>>> On Sat, Jun 2, 2018 at 11:49 PM, Jussi Lahtinen < >>>> jussi.lahtinen at gmail.com> wrote: >>>> >>>>> Oh, of course, it cannot be merged until ready, because it replaces >>>>> the old JIT... >>>>> I'll fetch the branch and test it. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> >>>>> On Sat, Jun 2, 2018 at 11:22 PM, Beno?t Minisini >>>>> wrote: >>>>> >>>>>> Le 02/06/2018 ? 22:16, Jussi Lahtinen a ?crit : >>>>>> >>>>>>> Is this going to be merged to master branch soon? >>>>>>> >>>>>>> >>>>>>> Jussi >>>>>>> >>>>>>> >>>>>> It's far from being finished. >>>>>> >>>>>> >>>>>> -- >>>>>> Beno?t Minisini >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 4 15:24:22 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 09:24:22 -0400 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: WAS DONE! https://www.theverge.com/2018/6/4/17422788/microsoft-github-acquisition-official-deal https://blogs.microsoft.com/blog/2018/06/04/microsoft-github-empowering-developers/ WHAT A CRAP; I'll moved al lmy projects from that sh*t and only let those that already are forks derived! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-04 8:53 GMT-04:00 PICCORO McKAY Lenz : > 2018-06-04 4:39 GMT-04:00 Christof Thalhofer : > >> We have the sources now on Git. If we are in any need with a company we >> > that's right! good for that! > > >> can run our own server running GitLab or a more simple solution. >> > why not? > > why not RIGHT NOW! with a copy mirror in gitlab? (and maybe not another > copy in sf ) > > the best simples and fast tool to do its the very powered and clean > GODS/GITEA! > > git can be configured to make mirroring only from specifcis branchs, > inclusivelly gitlab has "click interfaces" for that! > > >> >> Alles Gute >> >> Christof Thalhofer >> >> -- >> Dies ist keine Signatur >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jun 4 15:35:08 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 4 Jun 2018 15:35:08 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> Message-ID: <32a6be8d-fead-3aa9-2edc-ad39989944d6@gmail.com> Le 04/06/2018 ? 15:11, PICCORO McKAY Lenz a ?crit?: > umm and that information are all very well explained in the wiki i wrote: > > http://gambaswiki.org/wiki/howto/git#t15 > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > Thanks for your efforts, but as I told you many times : you have to write in *proper english*. You make too many mistakes to be understandable most of the time. Your wiki page is not an exception. Please: 1) Use an english spell checker in your mail client and in your browser. 2) Use the Google translater (for example). 3) Check all your expressions with a web site like linguee.com. 4) Try to find a friend that can help you in english. English is "de facto" the esperanto of computing. I suffer from that too, but we have to deal with that. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Mon Jun 4 16:41:31 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 10:41:31 -0400 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: <32a6be8d-fead-3aa9-2edc-ad39989944d6@gmail.com> References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32a6be8d-fead-3aa9-2edc-ad39989944d6@gmail.com> Message-ID: hi, benoit but that wiki was corected (as i remenber was with many mistakes but was corrected) i make all that you suggested! still have errors? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-04 9:35 GMT-04:00 Beno?t Minisini : > Le 04/06/2018 ? 15:11, PICCORO McKAY Lenz a ?crit : > >> umm and that information are all very well explained in the wiki i wrote: >> >> http://gambaswiki.org/wiki/howto/git#t15 >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > Thanks for your efforts, but as I told you many times : you have to write > in *proper english*. > > You make too many mistakes to be understandable most of the time. Your > wiki page is not an exception. > > Please: > > 1) Use an english spell checker in your mail client and in your browser. > > 2) Use the Google translater (for example). > > 3) Check all your expressions with a web site like linguee.com. > > 4) Try to find a friend that can help you in english. > > English is "de facto" the esperanto of computing. I suffer from that too, > but we have to deal with that. > > Regards, > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 4 17:22:26 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 4 Jun 2018 11:22:26 -0400 Subject: [Gambas-user] directory separator? Message-ID: i revised and seems that now gambas officially builds and runs on guindows.. ok over cywin i guess, but thngs like directory separator will be now differenced? in unix-like like mac or linux are "/" but in guindows are "\" with exceptions like winbuntu that now will run in guindows 10 will be nice that in future as was done with Java 1.2 Gambas become as a solid rock standar platform popular in all the enterprise environments just like are JAva today! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Jun 4 20:44:09 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 4 Jun 2018 20:44:09 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: Am 04.06.2018 um 14:53 schrieb PICCORO McKAY Lenz: > We have the sources now on Git. If we are in any need with a company we > > that's right! good for that! > ? > > can run our own server running GitLab or a more simple solution. > > why not? > > why not RIGHT NOW! with a copy mirror in gitlab? (and maybe not another > copy in sf ) It is a lot of work. And cost (for traffic). I would do this only if we were "in need". As long as Gitlab works, we should stay there. We always have copies of the complete Gambas repo on our computers as backup. So we are not "in need". 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 Mon Jun 4 20:47:12 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 4 Jun 2018 20:47:12 +0200 Subject: [Gambas-user] New Just-In-Time system (work in progress) In-Reply-To: References: <5377b36a-d590-60c3-6c4b-05e90a6307f6@gmail.com> <41ce2488-a6cd-21dd-8ca2-dfd6377638da@gmail.com> <32a6be8d-fead-3aa9-2edc-ad39989944d6@gmail.com> Message-ID: <6dbc8627-891a-887c-ed37-a823ca5b40b5@deganius.de> Am 04.06.2018 um 16:41 schrieb PICCORO McKAY Lenz: > hi, benoit but that wiki was corected (as i remenber was with many > mistakes but was corrected) > > i make all that you suggested! still have errors? Yes, a lot! 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 Mon Jun 4 22:45:45 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 4 Jun 2018 22:45:45 +0200 Subject: [Gambas-user] Fortunately, Gambas migrated to GitLab In-Reply-To: References: <216971d6-685c-282c-e41c-80c7c6749b4c@gmail.com> Message-ID: <423b4701-98fd-cfd3-1d3a-a6c25d5c473c@deganius.de> Am 04.06.2018 um 20:44 schrieb Christof Thalhofer: > It is a lot of work. And cost (for traffic). I would do this only if we > were "in need". As long as Gitlab works, we should stay there. But we should be aware of not rely on any "vendor lockin" strategies. 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 Tue Jun 5 12:04:24 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Jun 2018 12:04:24 +0200 Subject: [Gambas-user] New Just-in-time system (2) Message-ID: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Hi, Now I can run all the benchmarks. The result is equivalent to the old JIT (a bit slower), but far slower as soon as you access objects. You actually have almost no gain, because as the translation is done by the compiler, object access cannot be translated (the interpreter code is called). So I plan to do the translation directly from the interpreter (like the old JIT) to be able to optimize object access. Consequently the startup time will be a bit slower. Not a lot, as it's the compilation that takes time. Regards, -- Beno?t Minisini From d4t4full at gmail.com Tue Jun 5 14:02:47 2018 From: d4t4full at gmail.com (ML) Date: Tue, 5 Jun 2018 09:02:47 -0300 Subject: [Gambas-user] Cannot find proprietary shared libraries. Message-ID: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> Guys, need help accessing proprietary shared libs from Gambas (v3.11.2) from PPA in Ubuntu 16.04 x64. I've been given -after signing an NDA with a company- a couple of development .so files. I placed these .so files in a subfolder inside my home folder. I've put this path inside a .conf file, put this .conf file inside /etc/ld.so.conf.d and ran ldconfig as superuser. I verified the libs and their location are in the cache by grepping the output from ldconfig -p: They are both there. But alas! Gambas cannot find them. I have this sample code (sorry, cannot give real code details 'cos of the NDA): Lib call declaration in a module (say it is called modLib): ? 'The call name used is the actual call name, respecting upper/lowercase, ie: no need for EXEC. ? Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In "libName" I also have a form with -appx- the following code: ? Public Sub Form_Open() ? ? Dim libVersion As String = String(128, " ") ? ? Dim strPtr As Pointer = VarPtr(libVersion) ? ? Try modLibrary.SomeLib_GetVersion(strPtr) ? ? If (Error.Code) Then ?? ?? Message.Error(Error.Text) ? ? End If ? End When I call this from a form, I get the following error: ? Cannot find dynamic library 'libName.so': libName.so: cannot open shared object file: No such file or directory Now, I've seen lib names with a trailing colon and (version?) number. I don't know how or where can I get this info from, or if I need them. How can I get Gambas able to find and use these .so files? Regarding these trailing ":" in EXTERN declarations: How do I find these out, and how do I know whether I need them or not? My sysinfo: [System] Gambas=3.11.2 OperatingSystem=Linux Kernel=4.4.0-127-generic Architecture=x86_64 Distribution=Ubuntu 16.04.4 LTS Desktop=GNOME Theme=Gtk Language=en_US.UTF-8 Memory=11888M [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.2000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-2r6tbcrYPM DEFAULTS_PATH=/usr/share/gconf/gnome.default.path DESKTOP_SESSION=gnome DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=gnome GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4213 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=es_AR.UTF-8 LC_IDENTIFICATION=es_AR.UTF-8 LC_MEASUREMENT=es_AR.UTF-8 LC_MONETARY=es_AR.UTF-8 LC_NAME=es_AR.UTF-8 LC_NUMERIC=es_AR.UTF-8 LC_PAPER=es_AR.UTF-8 LC_TELEPHONE=es_AR.UTF-8 LC_TIME=es_AR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path PATH=/bin:/bin/eclipse:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform SESSION=gnome SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/12752,unix/:/tmp/.ICE-unix/12752 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/12452 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=GNOME XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/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=gnome XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus Thanks in advance, zxMarce -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jun 5 14:10:56 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Jun 2018 14:10:56 +0200 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> Message-ID: <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> Le 05/06/2018 ? 14:02, ML a ?crit?: > Guys, need help accessing proprietary shared libs from Gambas (v3.11.2) > from PPA in Ubuntu 16.04 x64. > > I've been given -after signing an NDA with a company- a couple of > development .so files. > > I placed these .so files in a subfolder inside my home folder. > I've put this path inside a .conf file, put this .conf file inside > /etc/ld.so.conf.d and ran ldconfig as superuser. > I verified the libs and their location are in the cache by grepping the > output from ldconfig -p: They are both there. > > But alas! Gambas cannot find them. I have this sample code (sorry, > cannot give real code details 'cos of the NDA): > > Lib call declaration in a module (say it is called modLib): > > ? 'The call name used is the actual call name, respecting > upper/lowercase, ie: no need for EXEC. > ? Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In "libName" > > I also have a form with -appx- the following code: > > ? Public Sub Form_Open() > > ? ? Dim libVersion As String = String(128, " ") > ? ? Dim strPtr As Pointer = VarPtr(libVersion) > > ? ? Try modLibrary.SomeLib_GetVersion(strPtr) > ? ? If (Error.Code) Then > ?? ?? Message.Error(Error.Text) > ? ? End If > > ? End > > When I call this from a form, I get the following error: > > Cannot find dynamic library 'libName.so': libName.so: cannot open shared > object file: No such file or directory > > Now, I've seen lib names with a trailing colon and (version?) number. I > don't know how or where can I get this info from, or if I need them. > > How can I get Gambas able to find and use these .so files? > Regarding these trailing ":" in EXTERN declarations: How do I > find these out, and how do I know whether I need them or not? > The name of the library is directly passed to the dlopen() function, and the error you get is the error returned by dlopen(). The "" after the colon is just the version number of the shared library. You find it in the name of the shared library symbolic link. You have to specify it only if you have multiple versions of the same library, or if you requested a specific feature of a specific version of the library. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Tue Jun 5 14:15:28 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 5 Jun 2018 08:15:28 -0400 Subject: [Gambas-user] dont let github project "alone"(inexists) in github Message-ID: to all , there-s a huge migration from github now! dont migrate the project name's, M$ can take owership and superset! migrate only the code! for those with private repos its strong recomended Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Tue Jun 5 14:39:09 2018 From: d4t4full at gmail.com (ML) Date: Tue, 5 Jun 2018 09:39:09 -0300 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> Message-ID: <6d2a45fe-3738-a0ab-8945-de0611f30952@gmail.com> On 05/06/18 09:10, Beno?t Minisini wrote: > Le 05/06/2018 ? 14:02, ML a ?crit?: >> Guys, need help accessing proprietary shared libs from Gambas >> (v3.11.2) from PPA in Ubuntu 16.04 x64. >> I've been given -after signing an NDA with a company- a couple of >> development .so files. >> I placed these .so files in a subfolder inside my home folder. >> I've put this path inside a .conf file, put this .conf file inside >> /etc/ld.so.conf.d and ran ldconfig as superuser. >> I verified the libs and their location are in the cache by grepping >> the output from ldconfig -p: They are both there. >> But alas! Gambas cannot find them. I have this sample code (sorry, >> cannot give real code details 'cos of the NDA): >> Lib call declaration in a module (say it is called modLib): >> >> ?? 'The call name used is the actual call name, respecting >> upper/lowercase, ie: no need for EXEC. >> ?? Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In >> "libName" >> >> I also have a form with -appx- the following code: >> >> ?? Public Sub Form_Open() >> ?? ? Dim libVersion As String = String(128, " ") >> ?? ? Dim strPtr As Pointer = VarPtr(libVersion) >> ?? ? Try modLibrary.SomeLib_GetVersion(strPtr) >> ?? ? If (Error.Code) Then >> ??? ?? Message.Error(Error.Text) >> ?? ? End If >> ?? End >> >> When I call this from a form, I get the following error: >> Cannot find dynamic library 'libName.so': libName.so: cannot open >> shared object file: No such file or directory >> Now, I've seen lib names with a trailing colon and (version?) number. >> I don't know how or where can I get this info from, or if I need them. >> How can I get Gambas able to find and use these .so files? >> Regarding these trailing ":" in EXTERN declarations: How do I >> find these out, and how do I know whether I need them or not? >> > > The name of the library is directly passed to the dlopen() function, > and the error you get is the error returned by dlopen(). > The "" after the colon is just the version number of the > shared library. You find it in the name of the shared library symbolic > link. You have to specify it only if you have multiple versions of the > same library, or if you requested a specific feature of a specific > version of the library. > Regards, Well, then I'm so far royally screwed... Ran a readelf on the libs, it returned this: ?? 0x00000001 (NEEDED)???????????????????? Shared library: [libpthread.so.0] ?? 0x00000001 (NEEDED)???????????????????? Shared library: [librt.so.1] ?? 0x00000001 (NEEDED)???????????????????? Shared library: [libdl.so.2] ?? 0x00000001 (NEEDED)???????????????????? Shared library: [libstdc++.so.6] ?? 0x00000001 (NEEDED)???????????????????? Shared library: [libm.so.6] ?? 0x00000001 (NEEDED)???????????????????? Shared library: [libgcc_s.so.1] ?? 0x00000001 (NEEDED)???????????????????? Shared library: [libc.so.6] Then, I ran ldconfig 7 times, grepping the library names one at a time. I got 2 entries for each dependency, one for 32 and one for 64 bit. Everything seems in place, but no luck. Will next try running Gambas as superuser, and if that also fails, I'll move the libs to a system folder to see if I have some kind of access issue. Any other suggestions? From mckaygerhard at gmail.com Tue Jun 5 15:41:27 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 5 Jun 2018 09:41:27 -0400 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: <6d2a45fe-3738-a0ab-8945-de0611f30952@gmail.com> References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> <6d2a45fe-3738-a0ab-8945-de0611f30952@gmail.com> Message-ID: when u are using PRIVATIVE LINES you mostly are on your own Benoit said the most normal and obviously rules to try to solve it! but more than that are very difficult! here all cannot make so much due we cannot "see" so much! right? so your vendor rules must be more flexible! the readelf reurn no links due there-s no link usage.. maybe the symbols exported by your libs are bad refence or must not be used as its.. as i said, must ask to the authors of the library Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-05 8:39 GMT-04:00 ML : > On 05/06/18 09:10, Beno?t Minisini wrote: > > Le 05/06/2018 ? 14:02, ML a ?crit : > >> Guys, need help accessing proprietary shared libs from Gambas > >> (v3.11.2) from PPA in Ubuntu 16.04 x64. > >> I've been given -after signing an NDA with a company- a couple of > >> development .so files. > >> I placed these .so files in a subfolder inside my home folder. > >> I've put this path inside a .conf file, put this .conf file inside > >> /etc/ld.so.conf.d and ran ldconfig as superuser. > >> I verified the libs and their location are in the cache by grepping > >> the output from ldconfig -p: They are both there. > >> But alas! Gambas cannot find them. I have this sample code (sorry, > >> cannot give real code details 'cos of the NDA): > >> Lib call declaration in a module (say it is called modLib): > >> > >> 'The call name used is the actual call name, respecting > >> upper/lowercase, ie: no need for EXEC. > >> Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In > >> "libName" > >> > >> I also have a form with -appx- the following code: > >> > >> Public Sub Form_Open() > >> Dim libVersion As String = String(128, " ") > >> Dim strPtr As Pointer = VarPtr(libVersion) > >> Try modLibrary.SomeLib_GetVersion(strPtr) > >> If (Error.Code) Then > >> Message.Error(Error.Text) > >> End If > >> End > >> > >> When I call this from a form, I get the following error: > >> Cannot find dynamic library 'libName.so': libName.so: cannot open > >> shared object file: No such file or directory > >> Now, I've seen lib names with a trailing colon and (version?) number. > >> I don't know how or where can I get this info from, or if I need them. > >> How can I get Gambas able to find and use these .so files? > >> Regarding these trailing ":" in EXTERN declarations: How do I > >> find these out, and how do I know whether I need them or not? > >> > > > > The name of the library is directly passed to the dlopen() function, > > and the error you get is the error returned by dlopen(). > > The "" after the colon is just the version number of the > > shared library. You find it in the name of the shared library symbolic > > link. You have to specify it only if you have multiple versions of the > > same library, or if you requested a specific feature of a specific > > version of the library. > > Regards, > > Well, then I'm so far royally screwed... Ran a readelf on the libs, it > returned this: > > 0x00000001 (NEEDED) Shared library: > [libpthread.so.0] > 0x00000001 (NEEDED) Shared library: [librt.so.1] > 0x00000001 (NEEDED) Shared library: [libdl.so.2] > 0x00000001 (NEEDED) Shared library: [libstdc++.so.6] > 0x00000001 (NEEDED) Shared library: [libm.so.6] > 0x00000001 (NEEDED) Shared library: [libgcc_s.so.1] > 0x00000001 (NEEDED) Shared library: [libc.so.6] > > Then, I ran ldconfig 7 times, grepping the library names one at a time. > I got 2 entries for each dependency, one for 32 and one for 64 bit. > Everything seems in place, but no luck. > Will next try running Gambas as superuser, and if that also fails, I'll > move the libs to a system folder to see if I have some kind of access > issue. > > Any other suggestions? > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at gmail.com Tue Jun 5 19:10:51 2018 From: lordheavym at gmail.com (Laurent Carlier) Date: Tue, 05 Jun 2018 19:10:51 +0200 Subject: [Gambas-user] Gambas 3.10.0 In-Reply-To: References: Message-ID: <4806885.Aq4lc5pxnB@lordh-pc> Le mardi 22 mai 2018, 11:20:21 CEST Roberto Estevam a ?crit : > Hi there, > The latest update on ArchLinux is Gambas 3.10.0 and not Gambas 3.11.3 as it > is available on "our" website. I've pushed 3.11.3 in the repository Regards -- Laurent Carlier http://www.archlinux.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From r0bst7m at gmail.com Tue Jun 5 19:29:22 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Tue, 5 Jun 2018 17:29:22 +0000 Subject: [Gambas-user] Gambas 3.10.0 In-Reply-To: <4806885.Aq4lc5pxnB@lordh-pc> References: <4806885.Aq4lc5pxnB@lordh-pc> Message-ID: Hi After done an update with Pacman, there is no new version of gambas. Same 3.10.0. Laurent Carlier escreveu no dia ter?a, 5/06/2018 ?(s) 17:11: > Le mardi 22 mai 2018, 11:20:21 CEST Roberto Estevam a ?crit : > > Hi there, > > The latest update on ArchLinux is Gambas 3.10.0 and not Gambas 3.11.3 as > it > > is available on "our" website. > > I've pushed 3.11.3 in the repository > > Regards > > -- > Laurent Carlier > http://www.archlinux.org > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Tue Jun 5 19:38:46 2018 From: d4t4full at gmail.com (ML) Date: Tue, 5 Jun 2018 14:38:46 -0300 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> Message-ID: On 05/06/18 09:10, Beno?t Minisini wrote: > Le 05/06/2018 ? 14:02, ML a ?crit?: >> Guys, need help accessing proprietary shared libs from Gambas >> (v3.11.2) from PPA in Ubuntu 16.04 x64. >> I've been given -after signing an NDA with a company- a couple of >> development .so files. >> I placed these .so files in a subfolder inside my home folder. >> I've put this path inside a .conf file, put this .conf file inside >> /etc/ld.so.conf.d and ran ldconfig as superuser. >> I verified the libs and their location are in the cache by grepping >> the output from ldconfig -p: They are both there. >> But alas! Gambas cannot find them. I have this sample code (sorry, >> cannot give real code details 'cos of the NDA): >> Lib call declaration in a module (say it is called modLib): >> >> ?? 'The call name used is the actual call name, respecting >> upper/lowercase, ie: no need for EXEC. >> ?? Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In >> "libName" >> >> I also have a form with -appx- the following code: >> >> ?? Public Sub Form_Open() >> ?? ? Dim libVersion As String = String(128, " ") >> ?? ? Dim strPtr As Pointer = VarPtr(libVersion) >> ?? ? Try modLibrary.SomeLib_GetVersion(strPtr) >> ?? ? If (Error.Code) Then >> ??? ?? Message.Error(Error.Text) >> ?? ? End If >> ?? End >> >> When I call this from a form, I get the following error: >> Cannot find dynamic library 'libName.so': libName.so: cannot open >> shared object file: No such file or directory >> Now, I've seen lib names with a trailing colon and (version?) number. >> I don't know how or where can I get this info from, or if I need them. >> How can I get Gambas able to find and use these .so files? >> Regarding these trailing ":" in EXTERN declarations: How do I >> find these out, and how do I know whether I need them or not? > > The name of the library is directly passed to the dlopen() function, > and the error you get is the error returned by dlopen(). > The "" after the colon is just the version number of the > shared library. You find it in the name of the shared library symbolic > link. You have to specify it only if you have multiple versions of the > same library, or if you requested a specific feature of a specific > version of the library. > Regards, Beno?t, Thanks a ton for the tips. Further investigation led me to find the root of all evil (this means I wrote and compiled a quick&dirty C 'hello world' targeting the libraries and compiled 32 and 64 bit versions; 32bit worked and 64bit did not giving the same error as Gambas). Libs are 32bit, my OS is 64bit. Using a virtual Ubuntu (32bit) inside my Ubuntu (64bit), the 32bit virtual Gambas version works as expected. Beware, probably stupid question: Is there a way I can install a 32bit Gambas alongside a 64bit Gambas in my 64bit OS? From lordheavym at gmail.com Tue Jun 5 19:39:15 2018 From: lordheavym at gmail.com (Laurent Carlier) Date: Tue, 05 Jun 2018 19:39:15 +0200 Subject: [Gambas-user] Gambas 3.10.0 In-Reply-To: References: <4806885.Aq4lc5pxnB@lordh-pc> Message-ID: <35541174.HMvnCE8qYr@lordh-pc> Le mardi 5 juin 2018, 19:29:22 CEST Roberto Estevam a ?crit : > Hi > After done an update with Pacman, there is no new version of gambas. > Same 3.10.0. > > Laurent Carlier escreveu no dia ter?a, 5/06/2018 > > ?(s) 17:11: > > Le mardi 22 mai 2018, 11:20:21 CEST Roberto Estevam a ?crit : > > > Hi there, > > > The latest update on ArchLinux is Gambas 3.10.0 and not Gambas 3.11.3 as > > > > it > > > > > is available on "our" website. > > > > I've pushed 3.11.3 in the repository > > > > Regards > > > > -- > > Laurent Carlier > > http://www.archlinux.org > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- https://www.archlinux.org/packages/community/x86_64/gambas3/ -- Laurent Carlier http://www.archlinux.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From r0bst7m at gmail.com Tue Jun 5 20:02:15 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Tue, 5 Jun 2018 18:02:15 +0000 Subject: [Gambas-user] Gambas 3.10.0 In-Reply-To: <35541174.HMvnCE8qYr@lordh-pc> References: <4806885.Aq4lc5pxnB@lordh-pc> <35541174.HMvnCE8qYr@lordh-pc> Message-ID: So we have a bug in Pacman or something like that. I have already uninstalled and re-installed, and the 3.10.0 version continues. Laurent Carlier escreveu no dia ter?a, 5/06/2018 ?(s) 17:39: > Le mardi 5 juin 2018, 19:29:22 CEST Roberto Estevam a ?crit : > > Hi > > After done an update with Pacman, there is no new version of gambas. > > Same 3.10.0. > > > > Laurent Carlier escreveu no dia ter?a, 5/06/2018 > > > > ?(s) 17:11: > > > Le mardi 22 mai 2018, 11:20:21 CEST Roberto Estevam a ?crit : > > > > Hi there, > > > > The latest update on ArchLinux is Gambas 3.10.0 and not Gambas > 3.11.3 as > > > > > > it > > > > > > > is available on "our" website. > > > > > > I've pushed 3.11.3 in the repository > > > > > > Regards > > > > > > -- > > > Laurent Carlier > > > http://www.archlinux.org > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > https://www.archlinux.org/packages/community/x86_64/gambas3/ > > -- > Laurent Carlier > http://www.archlinux.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 5 20:25:59 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 5 Jun 2018 14:25:59 -0400 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> Message-ID: yes you can using multiarch in DEBIAN, see apt manpage, in my venenux the multiarch are set automatically i cannot remenber how right now but yes it can be done! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-05 13:38 GMT-04:00 ML : > On 05/06/18 09:10, Beno?t Minisini wrote: > > Le 05/06/2018 ? 14:02, ML a ?crit : > >> Guys, need help accessing proprietary shared libs from Gambas > >> (v3.11.2) from PPA in Ubuntu 16.04 x64. > >> I've been given -after signing an NDA with a company- a couple of > >> development .so files. > >> I placed these .so files in a subfolder inside my home folder. > >> I've put this path inside a .conf file, put this .conf file inside > >> /etc/ld.so.conf.d and ran ldconfig as superuser. > >> I verified the libs and their location are in the cache by grepping > >> the output from ldconfig -p: They are both there. > >> But alas! Gambas cannot find them. I have this sample code (sorry, > >> cannot give real code details 'cos of the NDA): > >> Lib call declaration in a module (say it is called modLib): > >> > >> 'The call name used is the actual call name, respecting > >> upper/lowercase, ie: no need for EXEC. > >> Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In > >> "libName" > >> > >> I also have a form with -appx- the following code: > >> > >> Public Sub Form_Open() > >> Dim libVersion As String = String(128, " ") > >> Dim strPtr As Pointer = VarPtr(libVersion) > >> Try modLibrary.SomeLib_GetVersion(strPtr) > >> If (Error.Code) Then > >> Message.Error(Error.Text) > >> End If > >> End > >> > >> When I call this from a form, I get the following error: > >> Cannot find dynamic library 'libName.so': libName.so: cannot open > >> shared object file: No such file or directory > >> Now, I've seen lib names with a trailing colon and (version?) number. > >> I don't know how or where can I get this info from, or if I need them. > >> How can I get Gambas able to find and use these .so files? > >> Regarding these trailing ":" in EXTERN declarations: How do I > >> find these out, and how do I know whether I need them or not? > > > > The name of the library is directly passed to the dlopen() function, > > and the error you get is the error returned by dlopen(). > > The "" after the colon is just the version number of the > > shared library. You find it in the name of the shared library symbolic > > link. You have to specify it only if you have multiple versions of the > > same library, or if you requested a specific feature of a specific > > version of the library. > > Regards, > > Beno?t, > > Thanks a ton for the tips. > Further investigation led me to find the root of all evil (this means I > wrote and compiled a quick&dirty C 'hello world' targeting the libraries > and compiled 32 and 64 bit versions; 32bit worked and 64bit did not > giving the same error as Gambas). > Libs are 32bit, my OS is 64bit. Using a virtual Ubuntu (32bit) inside my > Ubuntu (64bit), the 32bit virtual Gambas version works as expected. > > Beware, probably stupid question: Is there a way I can install a 32bit > Gambas alongside a 64bit Gambas in my 64bit OS? > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jun 5 21:23:22 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 5 Jun 2018 22:23:22 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: Has anyone be able to compile the jit branch (other than Benoit)? Failure logs attached. Jussi On Tue, Jun 5, 2018 at 1:04 PM, Beno?t Minisini wrote: > Hi, > > Now I can run all the benchmarks. > > The result is equivalent to the old JIT (a bit slower), but far slower as > soon as you access objects. > > You actually have almost no gain, because as the translation is done by > the compiler, object access cannot be translated (the interpreter code is > called). > > So I plan to do the translation directly from the interpreter (like the > old JIT) to be able to optimize object access. Consequently the startup > time will be a bit slower. Not a lot, as it's the compilation that takes > time. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: compile.log.tar.gz Type: application/gzip Size: 21762 bytes Desc: not available URL: From sebikul at gmail.com Tue Jun 5 21:27:11 2018 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Tue, 5 Jun 2018 16:27:11 -0300 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> Message-ID: If you are using any of the PPAs, this should work: $ sudo dpkg --add-architecture i386 $ sudo apt remove gambas3 $ sudo apt update $ sudo apt install gambas3:i386 More info here: https://wiki.debian.org/Multiarch/HOWTO Hope it helps! On Tue, Jun 5, 2018, 14:39 ML wrote: > On 05/06/18 09:10, Beno?t Minisini wrote: > > Le 05/06/2018 ? 14:02, ML a ?crit : > >> Guys, need help accessing proprietary shared libs from Gambas > >> (v3.11.2) from PPA in Ubuntu 16.04 x64. > >> I've been given -after signing an NDA with a company- a couple of > >> development .so files. > >> I placed these .so files in a subfolder inside my home folder. > >> I've put this path inside a .conf file, put this .conf file inside > >> /etc/ld.so.conf.d and ran ldconfig as superuser. > >> I verified the libs and their location are in the cache by grepping > >> the output from ldconfig -p: They are both there. > >> But alas! Gambas cannot find them. I have this sample code (sorry, > >> cannot give real code details 'cos of the NDA): > >> Lib call declaration in a module (say it is called modLib): > >> > >> 'The call name used is the actual call name, respecting > >> upper/lowercase, ie: no need for EXEC. > >> Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In > >> "libName" > >> > >> I also have a form with -appx- the following code: > >> > >> Public Sub Form_Open() > >> Dim libVersion As String = String(128, " ") > >> Dim strPtr As Pointer = VarPtr(libVersion) > >> Try modLibrary.SomeLib_GetVersion(strPtr) > >> If (Error.Code) Then > >> Message.Error(Error.Text) > >> End If > >> End > >> > >> When I call this from a form, I get the following error: > >> Cannot find dynamic library 'libName.so': libName.so: cannot open > >> shared object file: No such file or directory > >> Now, I've seen lib names with a trailing colon and (version?) number. > >> I don't know how or where can I get this info from, or if I need them. > >> How can I get Gambas able to find and use these .so files? > >> Regarding these trailing ":" in EXTERN declarations: How do I > >> find these out, and how do I know whether I need them or not? > > > > The name of the library is directly passed to the dlopen() function, > > and the error you get is the error returned by dlopen(). > > The "" after the colon is just the version number of the > > shared library. You find it in the name of the shared library symbolic > > link. You have to specify it only if you have multiple versions of the > > same library, or if you requested a specific feature of a specific > > version of the library. > > Regards, > > Beno?t, > > Thanks a ton for the tips. > Further investigation led me to find the root of all evil (this means I > wrote and compiled a quick&dirty C 'hello world' targeting the libraries > and compiled 32 and 64 bit versions; 32bit worked and 64bit did not > giving the same error as Gambas). > Libs are 32bit, my OS is 64bit. Using a virtual Ubuntu (32bit) inside my > Ubuntu (64bit), the 32bit virtual Gambas version works as expected. > > Beware, probably stupid question: Is there a way I can install a 32bit > Gambas alongside a 64bit Gambas in my 64bit OS? > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Tue Jun 5 21:41:29 2018 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Tue, 05 Jun 2018 16:41:29 -0300 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> Message-ID: Sebasti?n, Thanks for the info. Will most probably do that. It seems to me that I will end up with either 32 or 64 but not both. Just in case to be real sure, though, and referring to my last question: Is there any way I can get both, Gambas3 32 AND 64 on the same 64bit OS? Thanks in advance, On Jun 5, 2018, 16:28, at 16:28, "Sebasti?n Kulesz" wrote: >If you are using any of the PPAs, this should work: > >$ sudo dpkg --add-architecture i386 >$ sudo apt remove gambas3 >$ sudo apt update >$ sudo apt install gambas3:i386 > >More info here: https://wiki.debian.org/Multiarch/HOWTO > >Hope it helps! > >On Tue, Jun 5, 2018, 14:39 ML wrote: > >> On 05/06/18 09:10, Beno?t Minisini wrote: >> > Le 05/06/2018 ? 14:02, ML a ?crit : >> >> Guys, need help accessing proprietary shared libs from Gambas >> >> (v3.11.2) from PPA in Ubuntu 16.04 x64. >> >> I've been given -after signing an NDA with a company- a couple of >> >> development .so files. >> >> I placed these .so files in a subfolder inside my home folder. >> >> I've put this path inside a .conf file, put this .conf file inside >> >> /etc/ld.so.conf.d and ran ldconfig as superuser. >> >> I verified the libs and their location are in the cache by >grepping >> >> the output from ldconfig -p: They are both there. >> >> But alas! Gambas cannot find them. I have this sample code (sorry, >> >> cannot give real code details 'cos of the NDA): >> >> Lib call declaration in a module (say it is called modLib): >> >> >> >> 'The call name used is the actual call name, respecting >> >> upper/lowercase, ie: no need for EXEC. >> >> Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In >> >> "libName" >> >> >> >> I also have a form with -appx- the following code: >> >> >> >> Public Sub Form_Open() >> >> Dim libVersion As String = String(128, " ") >> >> Dim strPtr As Pointer = VarPtr(libVersion) >> >> Try modLibrary.SomeLib_GetVersion(strPtr) >> >> If (Error.Code) Then >> >> Message.Error(Error.Text) >> >> End If >> >> End >> >> >> >> When I call this from a form, I get the following error: >> >> Cannot find dynamic library 'libName.so': libName.so: cannot open >> >> shared object file: No such file or directory >> >> Now, I've seen lib names with a trailing colon and (version?) >number. >> >> I don't know how or where can I get this info from, or if I need >them. >> >> How can I get Gambas able to find and use these .so files? >> >> Regarding these trailing ":" in EXTERN declarations: How >do I >> >> find these out, and how do I know whether I need them or not? >> > >> > The name of the library is directly passed to the dlopen() >function, >> > and the error you get is the error returned by dlopen(). >> > The "" after the colon is just the version number of the >> > shared library. You find it in the name of the shared library >symbolic >> > link. You have to specify it only if you have multiple versions of >the >> > same library, or if you requested a specific feature of a specific >> > version of the library. >> > Regards, >> >> Beno?t, >> >> Thanks a ton for the tips. >> Further investigation led me to find the root of all evil (this means >I >> wrote and compiled a quick&dirty C 'hello world' targeting the >libraries >> and compiled 32 and 64 bit versions; 32bit worked and 64bit did not >> giving the same error as Gambas). >> Libs are 32bit, my OS is 64bit. Using a virtual Ubuntu (32bit) inside >my >> Ubuntu (64bit), the 32bit virtual Gambas version works as expected. >> >> Beware, probably stupid question: Is there a way I can install a >32bit >> Gambas alongside a 64bit Gambas in my 64bit OS? >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- >> > > >------------------------------------------------------------------------ > > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 5 21:55:13 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 5 Jun 2018 15:55:13 -0400 Subject: [Gambas-user] Cannot find proprietary shared libraries. In-Reply-To: References: <7a09deff-1576-ebbe-3519-2b2a69d4aa02@gmail.com> <7a54b720-2d12-80f2-5d31-74362407b067@gmail.com> Message-ID: can be done with no using package manager.. its a bit complex dont remenber how but can be possible, do normal instalation and when perform install step must use tarjet directory with 32/64 libs, like multiarch does! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-05 15:41 GMT-04:00 : > Sebasti?n, > > Thanks for the info. Will most probably do that. > > It seems to me that I will end up with either 32 or 64 but not both. > > Just in case to be real sure, though, and referring to my last question: > Is there any way I can get both, Gambas3 32 AND 64 on the same 64bit OS? > > Thanks in advance, > On Jun 5, 2018, at 16:28, "Sebasti?n Kulesz" wrote: >> >> If you are using any of the PPAs, this should work: >> >> $ sudo dpkg --add-architecture i386 >> $ sudo apt remove gambas3 >> $ sudo apt update >> $ sudo apt install gambas3:i386 >> >> More info here: https://wiki.debian.org/Multiarch/HOWTO >> >> Hope it helps! >> >> On Tue, Jun 5, 2018, 14:39 ML wrote: >> >>> On 05/06/18 09:10, Beno?t Minisini wrote: >>> > Le 05/06/2018 ? 14:02, ML a ?crit : >>> >> Guys, need help accessing proprietary shared libs from Gambas >>> >> (v3.11.2) from PPA in Ubuntu 16.04 x64. >>> >> I've been given -after signing an NDA with a company- a couple of >>> >> development .so files. >>> >> I placed these .so files in a subfolder inside my home folder. >>> >> I've put this path inside a .conf file, put this .conf file inside >>> >> /etc/ld.so.conf.d and ran ldconfig as superuser. >>> >> I verified the libs and their location are in the cache by grepping >>> >> the output from ldconfig -p: They are both there. >>> >> But alas! Gambas cannot find them. I have this sample code (sorry, >>> >> cannot give real code details 'cos of the NDA): >>> >> Lib call declaration in a module (say it is called modLib): >>> >> >>> >> 'The call name used is the actual call name, respecting >>> >> upper/lowercase, ie: no need for EXEC. >>> >> Public Extern SomeLib_GetVersion(versionStrPtr As Pointer) In >>> >> "libName" >>> >> >>> >> I also have a form with -appx- the following code: >>> >> >>> >> Public Sub Form_Open() >>> >> Dim libVersion As String = String(128, " ") >>> >> Dim strPtr As Pointer = VarPtr(libVersion) >>> >> Try modLibrary.SomeLib_GetVersion(strPtr) >>> >> If (Error.Code) Then >>> >> Message.Error(Error.Text) >>> >> End If >>> >> End >>> >> >>> >> When I call this from a form, I get the following error: >>> >> Cannot find dynamic library 'libName.so': libName.so: cannot open >>> >> shared object file: No such file or directory >>> >> Now, I've seen lib names with a trailing colon and (version?) number. >>> >> I don't know how or where can I get this info from, or if I need them. >>> >> How can I get Gambas able to find and use these .so files? >>> >> Regarding these trailing ":" in EXTERN declarations: How do I >>> >> find these out, and how do I know whether I need them or not? >>> > >>> > The name of the library is directly passed to the dlopen() function, >>> > and the error you get is the error returned by dlopen(). >>> > The "" after the colon is just the version number of the >>> > shared library. You find it in the name of the shared library symbolic >>> > link. You have to specify it only if you have multiple versions of the >>> > same library, or if you requested a specific feature of a specific >>> > version of the library. >>> > Regards, >>> >>> Beno?t, >>> >>> Thanks a ton for the tips. >>> Further investigation led me to find the root of all evil (this means I >>> wrote and compiled a quick&dirty C 'hello world' targeting the libraries >>> and compiled 32 and 64 bit versions; 32bit worked and 64bit did not >>> giving the same error as Gambas). >>> Libs are 32bit, my OS is 64bit. Using a virtual Ubuntu (32bit) inside my >>> Ubuntu (64bit), the 32bit virtual Gambas version works as expected. >>> Beware, probably stupid question: Is there a way I can install a 32bit >>> Gambas alongside a 64bit Gambas in my 64bit OS? >>> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jun 5 22:41:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Jun 2018 22:41:05 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: Le 05/06/2018 ? 21:23, Jussi Lahtinen a ?crit?: > Has anyone be able to compile the jit branch (other than Benoit)? > Failure logs attached. > > > Jussi > Sorry, I forgot to add "gb.jit" to the 'comp/src/order' file. Without that the component is not compiled. -- Beno?t Minisini From g4mba5 at gmail.com Tue Jun 5 22:41:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 5 Jun 2018 22:41:55 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: <11511613-8dd2-7209-af7a-4646215730f3@gmail.com> Le 05/06/2018 ? 22:41, Beno?t Minisini a ?crit?: > Le 05/06/2018 ? 21:23, Jussi Lahtinen a ?crit?: >> Has anyone be able to compile the jit branch (other than Benoit)? >> Failure logs attached. >> >> >> Jussi >> > > Sorry, I forgot to add "gb.jit" to the 'comp/src/order' file. Without > that the component is not compiled. > And you have to manually disable the pdf component, as the 'jit-with-c' branch do not have all the gb.pdf patches from 'master'. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Jun 6 00:07:03 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 6 Jun 2018 01:07:03 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: Still unable to pull changes for that..? I added "gb.jit" to the end of the file, but it doesn't seem to have any effect. The component is still disable, no reason given. In addition to that, disabling gb.pdf should enable me to compile the branch. Jussi On Tue, Jun 5, 2018 at 11:41 PM, Beno?t Minisini wrote: > Le 05/06/2018 ? 21:23, Jussi Lahtinen a ?crit : > >> Has anyone be able to compile the jit branch (other than Benoit)? >> Failure logs attached. >> >> >> Jussi >> >> > Sorry, I forgot to add "gb.jit" to the 'comp/src/order' file. Without that > the component is not compiled. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 6 00:09:59 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Jun 2018 00:09:59 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: Le 06/06/2018 ? 00:07, Jussi Lahtinen a ?crit?: > Still unable to pull changes for that..? I added "gb.jit" to the end of > the file, but it doesn't seem to have any effect. The component is still > disable, no reason given. > In addition to that, disabling gb.pdf should enable me to compile the > branch. > > > Jussi > If you change the 'order' file, you have to do a './reconf && ./configure -C' again. -- Beno?t Minisini From r0bst7m at gmail.com Wed Jun 6 00:20:56 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Tue, 5 Jun 2018 22:20:56 +0000 Subject: [Gambas-user] Gambas 3.10.0 In-Reply-To: References: <4806885.Aq4lc5pxnB@lordh-pc> <35541174.HMvnCE8qYr@lordh-pc> Message-ID: Done. Not a bug problem with my mirrorlist. Thank you. Roberto Estevam escreveu no dia ter?a, 5/06/2018 ?(s) 18:02: > So we have a bug in Pacman or something like that. I have already > uninstalled and re-installed, and the 3.10.0 version continues. > > Laurent Carlier escreveu no dia ter?a, 5/06/2018 > ?(s) 17:39: > >> Le mardi 5 juin 2018, 19:29:22 CEST Roberto Estevam a ?crit : >> > Hi >> > After done an update with Pacman, there is no new version of gambas. >> > Same 3.10.0. >> > >> > Laurent Carlier escreveu no dia ter?a, 5/06/2018 >> > >> > ?(s) 17:11: >> > > Le mardi 22 mai 2018, 11:20:21 CEST Roberto Estevam a ?crit : >> > > > Hi there, >> > > > The latest update on ArchLinux is Gambas 3.10.0 and not Gambas >> 3.11.3 as >> > > >> > > it >> > > >> > > > is available on "our" website. >> > > >> > > I've pushed 3.11.3 in the repository >> > > >> > > Regards >> > > >> > > -- >> > > Laurent Carlier >> > > http://www.archlinux.org >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> >> https://www.archlinux.org/packages/community/x86_64/gambas3/ >> >> -- >> Laurent Carlier >> http://www.archlinux.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From r0bst7m at gmail.com Wed Jun 6 00:22:51 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Tue, 5 Jun 2018 22:22:51 +0000 Subject: [Gambas-user] A BEGINNER'S GUIDE TO GAMBAS, REVISED FOR VERSION 3 Message-ID: Hi, The free pdf is not working: A Beginner's Guide to Gambas - Revised for Version 3 -- .PDF version, OCL license. The complete book! Where I can get a link that works to get the pdf? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 6 01:26:24 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 6 Jun 2018 02:26:24 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: No, I still get: || THESE COMPONENTS ARE DISABLED: || - gb.db.postgresql || - gb.db.sqlite2 *|| - gb.jit* || - gb.jit.llvm || - gb.qt5 || - gb.qt5.ext || - gb.qt5.opengl || - gb.qt5.webkit Jussi On Wed, Jun 6, 2018 at 1:09 AM, Beno?t Minisini wrote: > Le 06/06/2018 ? 00:07, Jussi Lahtinen a ?crit : > >> Still unable to pull changes for that..? I added "gb.jit" to the end of >> the file, but it doesn't seem to have any effect. The component is still >> disable, no reason given. >> In addition to that, disabling gb.pdf should enable me to compile the >> branch. >> >> >> Jussi >> >> > If you change the 'order' file, you have to do a './reconf && ./configure > -C' again. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 6 01:38:05 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Jun 2018 01:38:05 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: Le 06/06/2018 ? 01:26, Jussi Lahtinen a ?crit?: > No, I still get: > || THESE COMPONENTS ARE DISABLED: > || - gb.db.postgresql > || - gb.db.sqlite2 > *|| - gb.jit* > || - gb.jit.llvm > || - gb.qt5 > || - gb.qt5.ext > || - gb.qt5.opengl > || - gb.qt5.webkit > > > Jussi > You can't have gb.jit in the list, it's a component made in Gambas with no requirement maanged by "./configure" (at the moment). I think you did something weird with the source code... Can you post your configure output? -- Beno?t Minisini From r0bst7m at gmail.com Wed Jun 6 02:03:27 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Wed, 6 Jun 2018 00:03:27 +0000 Subject: [Gambas-user] Gambas 3.10.0 In-Reply-To: References: <4806885.Aq4lc5pxnB@lordh-pc> <35541174.HMvnCE8qYr@lordh-pc> Message-ID: [roberto at archlinux ~]$ gambas3 gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component ERROR: #2: Cannot load class 'HelpView': Cannot load parent class: Cannot load class 'WebView': Unable to load class file Roberto Estevam escreveu no dia ter?a, 5/06/2018 ?(s) 22:20: > Done. Not a bug problem with my mirrorlist. Thank you. > > Roberto Estevam escreveu no dia ter?a, 5/06/2018 ?(s) > 18:02: > >> So we have a bug in Pacman or something like that. I have already >> uninstalled and re-installed, and the 3.10.0 version continues. >> >> Laurent Carlier escreveu no dia ter?a, 5/06/2018 >> ?(s) 17:39: >> >>> Le mardi 5 juin 2018, 19:29:22 CEST Roberto Estevam a ?crit : >>> > Hi >>> > After done an update with Pacman, there is no new version of gambas. >>> > Same 3.10.0. >>> > >>> > Laurent Carlier escreveu no dia ter?a, >>> 5/06/2018 >>> > >>> > ?(s) 17:11: >>> > > Le mardi 22 mai 2018, 11:20:21 CEST Roberto Estevam a ?crit : >>> > > > Hi there, >>> > > > The latest update on ArchLinux is Gambas 3.10.0 and not Gambas >>> 3.11.3 as >>> > > >>> > > it >>> > > >>> > > > is available on "our" website. >>> > > >>> > > I've pushed 3.11.3 in the repository >>> > > >>> > > Regards >>> > > >>> > > -- >>> > > Laurent Carlier >>> > > http://www.archlinux.org >>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> >>> https://www.archlinux.org/packages/community/x86_64/gambas3/ >>> >>> -- >>> Laurent Carlier >>> http://www.archlinux.org >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Jun 6 10:10:44 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 6 Jun 2018 10:10:44 +0200 Subject: [Gambas-user] Swap function for arrays Message-ID: Ever so often I have to pick an entry from an array or a table and set it to another position. Mostly this happens when the GUI offers an upward and downward button. Each time I have to find a practical solution for my code, invent the wheel if you want so, to - store the contents of the array - put it to its new position - delete it at its old position So a ready-made function for this would be nice, and alongside we could even have a broader concept by allowing for whole blocks to be pushed. Don't know which word is best for this in English, maybe push or skip or slide... If it was push, it might be used like myArray.Push(FromPosition, ToPosition, Length) What do you think? Regards Rolf From d4t4full at gmail.com Wed Jun 6 11:16:38 2018 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Wed, 06 Jun 2018 06:16:38 -0300 Subject: [Gambas-user] Swap function for arrays In-Reply-To: References: Message-ID: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> I guess SWAP or EXCHANGE would better represent the intention of exchanging two items or blocks of items. zxMarce. On Jun 6, 2018, 05:09, at 05:09, Rolf-Werner Eilert wrote: >Ever so often I have to pick an entry from an array or a table and set >it to another position. Mostly this happens when the GUI offers an >upward and downward button. > >Each time I have to find a practical solution for my code, invent the >wheel if you want so, to > >- store the contents of the array >- put it to its new position >- delete it at its old position > >So a ready-made function for this would be nice, and alongside we could > >even have a broader concept by allowing for whole blocks to be pushed. > >Don't know which word is best for this in English, maybe push or skip >or >slide... If it was push, it might be used like > >myArray.Push(FromPosition, ToPosition, Length) > >What do you think? > >Regards >Rolf > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jun 6 11:29:26 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 6 Jun 2018 11:29:26 +0200 Subject: [Gambas-user] Swap function for arrays In-Reply-To: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> References: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> Message-ID: But swap function already exist. I believe that based on this example [0], we can make our own generic function. Regards Gianluigi [0] http://gambaswiki.org/wiki/comp/gb.qt4/gridview/sorted 2018-06-06 11:16 GMT+02:00 : > I guess SWAP or EXCHANGE would better represent the intention of > exchanging two items or blocks of items. > > zxMarce. > On Jun 6, 2018, at 05:09, Rolf-Werner Eilert wrote: >> >> Ever so often I have to pick an entry from an array or a table and set >> it to another position. Mostly this happens when the GUI offers an >> upward and downward button. >> >> Each time I have to find a practical solution for my code, invent the >> wheel if you want so, to >> >> - store the contents of the array >> - put it to its new position >> - delete it at its old position >> >> So a ready-made function for this would be nice, and alongside we could >> even have a broader concept by allowing for whole blocks to be pushed. >> >> Don't know which word is best for this in English, maybe push or skip or >> slide... If it was push, it might be used like >> >> myArray.Push(FromPosition, ToPosition, Length) >> >> What do you think? >> >> Regards >> Rolf >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Jun 6 11:41:17 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 6 Jun 2018 11:41:17 +0200 Subject: [Gambas-user] Swap function for arrays In-Reply-To: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> References: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> Message-ID: Am 06.06.2018 um 11:16 schrieb d4t4full at gmail.com: > I guess SWAP or EXCHANGE would better represent the intention of > exchanging two items or blocks of items. > > zxMarce. I thought so too, but... after all, it's not a swapping or exchanging, I don't want to exchange or swap TWO items but only set ONE item to a new position. Hard to find a word for it. In German it is "verschieben" whereas "schieben" means "to push" and "ver..." means "away" or "to another place". Maybe "move" would match it? Regards Rolf From carlosvalente at gmail.com Wed Jun 6 13:05:20 2018 From: carlosvalente at gmail.com (Carlos Valente) Date: Wed, 6 Jun 2018 08:05:20 -0300 Subject: [Gambas-user] Code Editor Does Not Edit Message-ID: <0181d3e0-e722-841f-a91d-a57489b1936a@gmail.com> Hi, ??? I made a little confusion with the address of the list, but now I put (I think) the correct list (Sorry for the failure PICCORO McKAY) ??? I installed Gambas3 version 3.11.90 on my PC Desktop, running Ubuntu 16.04.4. When I open a new project or edit an existing project, I can not change / type anything in the code through the Gambas3 editor. The project files and folders are fully read and write (777) and the Lock key is open. If I create a project through the root user, I can edit it normally. If I run Gambas3 on a VM (like VirtualBox) I can edit it normally (with my user and as root). ??? My system information: https://pastebin.com/ygC8Wg3P ??? Ubuntu 16.04.4, runing gnome flashback interface assinatura Regards, Carlos Valente -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 6 13:22:52 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 6 Jun 2018 13:22:52 +0200 Subject: [Gambas-user] Code Editor Does Not Edit In-Reply-To: <0181d3e0-e722-841f-a91d-a57489b1936a@gmail.com> References: <0181d3e0-e722-841f-a91d-a57489b1936a@gmail.com> Message-ID: Le 06/06/2018 ? 13:05, Carlos Valente a ?crit?: > Hi, > > ??? I made a little confusion with the address of the list, but now I > put (I think) the correct list (Sorry for the failure PICCORO McKAY) > > ??? I installed Gambas3 version 3.11.90 on my PC Desktop, running > Ubuntu 16.04.4. When I open a new project or edit an existing project, I > can not change / type anything in the code through the Gambas3 editor. > The project files and folders are fully read and write (777) and the > Lock key is open. If I create a project through the root user, I can > edit it normally. If I run Gambas3 on a VM (like VirtualBox) I can edit > it normally (with my user and as root). > > ??? My system information: https://pastebin.com/ygC8Wg3P > > ??? Ubuntu 16.04.4, runing gnome flashback interface > > > assinatura > > Regards, > > Carlos Valente > Your desktop is "GNOME-FLASHBACK:UNITY". What's that? -- Beno?t Minisini From charlie at cogier.com Wed Jun 6 16:29:24 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 6 Jun 2018 15:29:24 +0100 Subject: [Gambas-user] Swap function for arrays In-Reply-To: References: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> Message-ID: <075056cf-e4f8-0b79-0b06-d82d4551dcee@cogier.com> Try this. It will correct the "8" & "7" in one line: - *Public Sub Form_Open()** **Dim sArray As String[] = ["0", "1", "2", "3", "4", "5", "6", "8", "7", "9"] ** ** **sArray.add(sArray.Extract(7)[0], 8)** ** **Print sArray.Join(" ")** ** **End** * Charlie On 06/06/18 10:41, Rolf-Werner Eilert wrote: > > Am 06.06.2018 um 11:16 schrieb d4t4full at gmail.com: >> I guess SWAP or EXCHANGE would better represent the intention of >> exchanging two items or blocks of items. >> >> zxMarce. > > I thought so too, but... after all, it's not a swapping or exchanging, > I don't want to exchange or swap TWO items but only set ONE item to a > new position. > > Hard to find a word for it. In German it is "verschieben" whereas > "schieben" means "to push" and "ver..." means "away" or "to another > place". > > Maybe "move" would match it? > > Regards > Rolf > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Jun 6 17:18:17 2018 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 6 Jun 2018 17:18:17 +0200 Subject: [Gambas-user] Swap function for arrays In-Reply-To: <075056cf-e4f8-0b79-0b06-d82d4551dcee@cogier.com> References: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> <075056cf-e4f8-0b79-0b06-d82d4551dcee@cogier.com> Message-ID: <2ce6a777-161d-87e6-20c8-a934da7a4940@osnanet.de> Thank you Charlie, that's interesting! I tried to do right this, but forgot the [0], so it wouldn't run. Will try right now... Regards Rolf Am 06.06.2018 um 16:29 schrieb Charlie Ogier: > Try this. It will correct the "8" & "7" in one line: - > > *Public Sub Form_Open()** > **Dim sArray As String[] = ["0", "1", "2", "3", "4", "5", "6", "8", "7", > "9"] ** > ** > **sArray.add(sArray.Extract(7)[0], 8)** > ** > **Print sArray.Join(" ")** > ** > **End** > * > Charlie > > > On 06/06/18 10:41, Rolf-Werner Eilert wrote: >> >> Am 06.06.2018 um 11:16 schrieb d4t4full at gmail.com: >>> I guess SWAP or EXCHANGE would better represent the intention of >>> exchanging two items or blocks of items. >>> >>> zxMarce. >> >> I thought so too, but... after all, it's not a swapping or exchanging, >> I don't want to exchange or swap TWO items but only set ONE item to a >> new position. >> >> Hard to find a word for it. In German it is "verschieben" whereas >> "schieben" means "to push" and "ver..." means "away" or "to another >> place". >> >> Maybe "move" would match it? >> >> Regards >> Rolf >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From bagonergi at gmail.com Wed Jun 6 17:55:41 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 6 Jun 2018 17:55:41 +0200 Subject: [Gambas-user] Swap function for arrays In-Reply-To: <075056cf-e4f8-0b79-0b06-d82d4551dcee@cogier.com> References: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> <075056cf-e4f8-0b79-0b06-d82d4551dcee@cogier.com> Message-ID: 2018-06-06 16:29 GMT+02:00 Charlie Ogier : > Try this. It will correct the "8" & "7" in one line: - > > *Public Sub Form_Open()* > *Dim sArray As String[] = ["0", "1", "2", "3", "4", "5", "6", "8", "7", > "9"] * > > *sArray.add(sArray.Extract(7)[0], 8)* > > *Print sArray.Join(" ")* > > *End* > > Charlie > > Hi Charlie, kyndle :-) or if you want replace the number: Print Replace(sArray.Join(" "), sArray[3], "33") Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jun 6 18:04:10 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 6 Jun 2018 18:04:10 +0200 Subject: [Gambas-user] Swap function for arrays In-Reply-To: References: <050b3cfc-5526-4895-9308-1292ac9f2b57@gmail.com> <075056cf-e4f8-0b79-0b06-d82d4551dcee@cogier.com> Message-ID: 2018-06-06 17:55 GMT+02:00 Gianluigi : > > > 2018-06-06 16:29 GMT+02:00 Charlie Ogier : > >> Try this. It will correct the "8" & "7" in one line: - >> >> *Public Sub Form_Open()* >> *Dim sArray As String[] = ["0", "1", "2", "3", "4", "5", "6", "8", "7", >> "9"] * >> >> *sArray.add(sArray.Extract(7)[0], 8)* >> >> *Print sArray.Join(" ")* >> >> *End* >> >> Charlie >> >> > Hi Charlie, > kyndle :-) or if you want replace the number: > > Print Replace(sArray.Join(" "), sArray[3], "33") > > Regards > Gianluigi > > Sorry kyndle = nice, I'm competing with Piccoro ;-D > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 6 22:52:01 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 6 Jun 2018 23:52:01 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: Here are the logs. Jussi On Wed, Jun 6, 2018 at 2:38 AM, Beno?t Minisini wrote: > Le 06/06/2018 ? 01:26, Jussi Lahtinen a ?crit : > >> No, I still get: >> || THESE COMPONENTS ARE DISABLED: >> || - gb.db.postgresql >> || - gb.db.sqlite2 >> *|| - gb.jit* >> || - gb.jit.llvm >> || - gb.qt5 >> || - gb.qt5.ext >> || - gb.qt5.opengl >> || - gb.qt5.webkit >> >> >> Jussi >> >> > You can't have gb.jit in the list, it's a component made in Gambas with no > requirement maanged by "./configure" (at the moment). I think you did > something weird with the source code... Can you post your configure output? > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: compile.log.tar.gz Type: application/gzip Size: 21599 bytes Desc: not available URL: From gambas at geodosch.com Wed Jun 6 23:35:48 2018 From: gambas at geodosch.com (George) Date: Wed, 6 Jun 2018 17:35:48 -0400 Subject: [Gambas-user] Format function changes date value In-Reply-To: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> Message-ID: I'm not sure why the previous, more consistent behavior, was considered a bug, and why it's deemed better now that it's 'fixed', and different date functions behave differently, and are incompatible with each other. I have an application that makes extensive use of dates and date calculations, which has worked just fine for years. But now the bug fix has seriously broken things. I started to kludge some of the code to make it work, but I could see I was heading down a rat-hole. So in the end I migrated it to .NET instead. Just my $0.02 On Sat, May 19, 2018 at 2:43 PM, T Lee Davidson wrote: > I don't get that 5 minute anomaly. With three blocks each defining > zTestDate through Debug (Print), I get: > Main.Main.9: Test date: 5/4/2018 Formatted: 05/03/18 20:00 Thu > Main.Main.12: Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:59 Thu > Main.Main.15: Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:00 Fri > > > On 05/19/2018 01:48 PM, George wrote: > > (This was originally posted in gambas-user at lists.sourceforge.net > > > I've since seen that list has been deprecated, so I'm reposting the > pertinent issues here) > > > > When using the Format function to format a date, the date gets offset by > 1 day. Here's an example: > > > > Dim zTestDate As String > > Dim zTestResult As String > > zTestDate = "5/4/2018" > > zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd") > > Debug "Test date: " & zTestDate & " Formatted: " & zTestResult > > > > Result: Test date: 5/4/2018 Formatted: 05/03/18 Thu > > > > This seems to have started since the last update was applied. > > > >>T Lee Davidson com>> > >> > >>CDate uses UTC and, without the time information in the string, it would > store midnight. Format uses local time. > >> > >>So, anyone in a time zone behind UTC will get the previous day printed. > Try this format string: > >>zTestResult = Format(CDate(zTestDate), "mm/dd/yy hh:nn ddd") > >> > >>Does the difference in hours match your timezone offset? > > > > That is definitely part of the issue. My local time is GMT-04, and > here's what I get when specifying the time in my test: > > > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu > > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 Fri > > > > However, if I look at time in the results, the difference isn't exactly > the offset: > > Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 23:05:00 Difference: > 4:54:00 > > Test date: 5/4/2018 04:00:00 Formatted: 05/04/18 00:05:00 Difference: > 3:55:00 > > Test date: 5/4/2018 00:00:00 Formatted: 05/03/18 20:05:00 Difference: > 3:55:00 > > > > The offset isn't an even number of hours. What's also odd is that this > was never a problem before about a week ago. This code > > is many years old, and the problem suddenly began occurring with > compiled code. > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > -- > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 7 00:42:15 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jun 2018 00:42:15 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> Message-ID: Le 06/06/2018 ? 23:35, George a ?crit?: > I'm not sure why the previous, more consistent behavior, was considered > a bug, and why it's deemed better now that it's 'fixed', and different > date functions behave differently, and are incompatible with each other. > > I have an application that makes extensive use of dates and date > calculations, which has worked just fine for years.? But now the bug fix > has seriously broken things.? I started to kludge some of the code to > make it work, but I could see I was heading down a rat-hole.? So in the > end I migrated it to .NET instead. > > Just my $0.02 > Sorry, but if you don't understand why the old behaviour is buggy, and the new one is correct, then it means that you don't understand how date & time work. It's exactly like strings and charsets. As soon as you don't deal with applications that must simultaneously work in different timezones, it's not a big deal. Otherwise you will have problems sooner or later. Regards, -- Beno?t Minisini From gambas at geodosch.com Thu Jun 7 11:55:50 2018 From: gambas at geodosch.com (George) Date: Thu, 7 Jun 2018 05:55:50 -0400 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> Message-ID: It's not a lack of understanding on my part. I have developed software that must work across different time zones, and it certainly adds a layer of complication to things, since time data must be dealt with based on location, and display of times must take into account the user's location (showing everything as GMT is the lazy way out, as it puts the burden of time conversion on the user.) However, in this particular case I'm working with data that's in a single location, and only deals with days, not times. That should be easy, since it shouldn't need to deal with time zones. And yet, due to the way date functions work, what should be a simple calculation, such as how many days are between 1-Jun-2018 and 3-Jun-2018, needs to know the GMT offset of the machine it's running on, and fudge the date into a date/time value in order to get the correct result. (Just changing CDate() to Date(), as previously suggested, did not work for me.) Yes, that can be done, but because of what that would have entailed, in this case I decided that porting the app to a different language was the better option for me. IMHO all date functions should work internally as based on GMT or local time, not a mix of both. If some functions are relying on external code that operates in a different base, then the language should be handling the offset, and not expecting the higher-level code to be doing that. On Wed, Jun 6, 2018 at 6:42 PM, Beno?t Minisini wrote: > Le 06/06/2018 ? 23:35, George a ?crit : > >> I'm not sure why the previous, more consistent behavior, was considered a >> bug, and why it's deemed better now that it's 'fixed', and different date >> functions behave differently, and are incompatible with each other. >> >> I have an application that makes extensive use of dates and date >> calculations, which has worked just fine for years. But now the bug fix >> has seriously broken things. I started to kludge some of the code to make >> it work, but I could see I was heading down a rat-hole. So in the end I >> migrated it to .NET instead. >> >> Just my $0.02 >> >> > Sorry, but if you don't understand why the old behaviour is buggy, and the > new one is correct, then it means that you don't understand how date & time > work. > > It's exactly like strings and charsets. > > As soon as you don't deal with applications that must simultaneously work > in different timezones, it's not a big deal. > > Otherwise you will have problems sooner or later. > > Regards, > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Thu Jun 7 12:00:52 2018 From: claude.dessere at orange.fr (CD) Date: Thu, 07 Jun 2018 12:00:52 +0200 Subject: [Gambas-user] Gambas Doc In-Reply-To: <20180603100603.GQ5149@highrise.localdomain> Message-ID: Hi, I never took the time to thank you! your explanations are very clear and very detailed. Thank you. Cordially. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 7 14:42:32 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jun 2018 14:42:32 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> Message-ID: Le 07/06/2018 ? 11:55, George a ?crit?: > It's not a lack of understanding on my part.? I have developed software > that must work across different time zones, and it certainly adds a > layer of complication to things, since time data must be dealt with > based on location, and display of times must take into account the > user's location (showing everything as GMT is the lazy way out, as it > puts the burden of time conversion on the user.) > > However, in this particular case I'm working with data that's in a > single location, and only deals with days, not times.? That should be > easy, since it shouldn't need to deal with time zones.? And yet, due to > the way date functions work, what should be a simple calculation, such > as how many days are between 1-Jun-2018 and 3-Jun-2018, needs to know > the GMT offset of the machine it's running on, and fudge the date into a > date/time value in order to get the correct result. (Just changing > CDate() to Date(), as previously suggested, did not work for me.)? Yes, > that can be done, but because of what that would have entailed, in this > case I decided that porting the app to a different language was the > better option for me. You get the difference between two dates with DateDiff(). Where did you see that you had to deal with timezones? > > IMHO all date functions should work internally as based on GMT or local > time, not a mix of both. All date & times are internally stored in UTC. But all date & times functions that deal with date & time string printed representation (Str & Val & Format) have to supposed a local date, because none of them have an optional argument that would tell the timezone. Date & times functions using a non-printed string representation (CStr & CDate) assume an UTC timezone. -- Beno?t Minisini From gambas at geodosch.com Thu Jun 7 15:52:06 2018 From: gambas at geodosch.com (George) Date: Thu, 7 Jun 2018 09:52:06 -0400 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> Message-ID: This is what broke my code: Dim Dat1 As Date Dat1 = "6/1/2018" Message("Dat1: " & Dat1 & " Formatted: " & Format(Dat1, "mm/dd/yyyy")) Result: Dat1: 06/01/2018 Formatted: 05/31/2018 I stand corrected on the DateDiff issue; my code was not using it because it's counting days based on a schedule of working/non-working days. Since I hadn't gotten past the 'Format' issue, I never dove into that part of the code to see why it was breaking, other than seeing that day calculations, which used to work, no longer did since the patch. On Thu, Jun 7, 2018 at 8:42 AM, Beno?t Minisini wrote: > Le 07/06/2018 ? 11:55, George a ?crit : > >> It's not a lack of understanding on my part. I have developed software >> that must work across different time zones, and it certainly adds a layer >> of complication to things, since time data must be dealt with based on >> location, and display of times must take into account the user's location >> (showing everything as GMT is the lazy way out, as it puts the burden of >> time conversion on the user.) >> >> However, in this particular case I'm working with data that's in a single >> location, and only deals with days, not times. That should be easy, since >> it shouldn't need to deal with time zones. And yet, due to the way date >> functions work, what should be a simple calculation, such as how many days >> are between 1-Jun-2018 and 3-Jun-2018, needs to know the GMT offset of the >> machine it's running on, and fudge the date into a date/time value in order >> to get the correct result. (Just changing CDate() to Date(), as previously >> suggested, did not work for me.) Yes, that can be done, but because of >> what that would have entailed, in this case I decided that porting the app >> to a different language was the better option for me. >> > > You get the difference between two dates with DateDiff(). Where did you > see that you had to deal with timezones? > > >> IMHO all date functions should work internally as based on GMT or local >> time, not a mix of both. >> > > All date & times are internally stored in UTC. > > But all date & times functions that deal with date & time string printed > representation (Str & Val & Format) have to supposed a local date, because > none of them have an optional argument that would tell the timezone. > > Date & times functions using a non-printed string representation (CStr & > CDate) assume an UTC timezone. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 7 16:00:31 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jun 2018 16:00:31 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> Message-ID: <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> Le 07/06/2018 ? 15:52, George a ?crit?: > This is what broke my code: > Dim Dat1 As Date > ? Dat1 = "6/1/2018" The problem is here. The automatic conversion is done by CStr(), i.e. it assumes that "6/1/2018" is UTC... > ? Message("Dat1: " & Dat1 & " Formatted: " & Format(Dat1, "mm/dd/yyyy")) ...but Format() prints the date in local timezone... > > Result: Dat1: 06/01/2018? Formatted: 05/31/2018 ...And so you may have a difference. Each time you have a string converted to a date or the contrary, you must know which timezone Gambas assumes. To convert a string in local date, you have to use Val("6/1/2018"), or, faster, Date(2018,1,6). > > I stand corrected on the DateDiff issue; my code was not using it > because it's counting days based on a schedule of working/non-working > days.? Since I hadn't gotten past the 'Format' issue, I never dove into > that part of the code to see why it was breaking, other than seeing that > day calculations, which used to work, no longer did since the patch. > For working / non-working days, I have written my own function (based on French days-off), but I didn't put it in Gambas yet. -- Beno?t Minisini From bagonergi at gmail.com Thu Jun 7 16:26:56 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 7 Jun 2018 16:26:56 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> Message-ID: 2018-06-07 16:00 GMT+02:00 Beno?t Minisini : > Le 07/06/2018 ? 15:52, George a ?crit : > >> This is what broke my code: >> Dim Dat1 As Date >> Dat1 = "6/1/2018" >> > > The problem is here. The automatic conversion is done by CStr(), i.e. it > assumes that "6/1/2018" is UTC... > > Message("Dat1: " & Dat1 & " Formatted: " & Format(Dat1, "mm/dd/yyyy")) >> > > ...but Format() prints the date in local timezone... > > >> Result: Dat1: 06/01/2018 Formatted: 05/31/2018 >> > > ...And so you may have a difference. > > Each time you have a string converted to a date or the contrary, you must > know which timezone Gambas assumes. > > To convert a string in local date, you have to use Val("6/1/2018"), or, > faster, Date(2018,1,6). > > >> I stand corrected on the DateDiff issue; my code was not using it because >> it's counting days based on a schedule of working/non-working days. Since >> I hadn't gotten past the 'Format' issue, I never dove into that part of the >> code to see why it was breaking, other than seeing that day calculations, >> which used to work, no longer did since the patch. >> >> > For working / non-working days, I have written my own function (based on > French days-off), but I didn't put it in Gambas yet. > > -- > Beno?t Minisini > > I believe that coercion should always be avoided. You have passed a string to a date type: Dim Dat1 As Date Dat1 = "6/1/2018" By writing Dat1 = CDate ("6/1/2018") the error would have been avoided. Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 7 16:35:55 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jun 2018 16:35:55 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> Message-ID: <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> Le 07/06/2018 ? 16:26, Gianluigi a ?crit?: > > I believe that coercion should always be avoided. > You have passed a string to a date type: > ?? Dim Dat1 As Date > ?? Dat1 = "6/1/2018" > By writing Dat1 = CDate ("6/1/2018") the error would have been avoided. > > Regards > Gianluigi > Of course not, as Dat1 = "6/1/2018" and Dat1 = CDate("6/1/2018") do exactly the same thing. -- Beno?t Minisini From bagonergi at gmail.com Thu Jun 7 16:51:28 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 7 Jun 2018 16:51:28 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> Message-ID: I wrote it even if I imagined it was wrong (it works here), I'm sorry. It's useless, with the dates I still do not understand anything. These coming days, I will try to write a my wiki to and submit it to your judgment. Regards Gianluigi 2018-06-07 16:35 GMT+02:00 Beno?t Minisini : > Le 07/06/2018 ? 16:26, Gianluigi a ?crit : > >> >> I believe that coercion should always be avoided. >> You have passed a string to a date type: >> Dim Dat1 As Date >> Dat1 = "6/1/2018" >> By writing Dat1 = CDate ("6/1/2018") the error would have been avoided. >> >> Regards >> Gianluigi >> >> > Of course not, as Dat1 = "6/1/2018" and Dat1 = CDate("6/1/2018") do > exactly the same thing. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 7 17:12:46 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jun 2018 17:12:46 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> Message-ID: <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> Le 07/06/2018 ? 16:51, Gianluigi a ?crit?: > I wrote it even if I imagined it was wrong (it works here), I'm sorry. > It's useless, with the dates I still do not understand anything. > These coming days, I will try to write a my wiki to and submit it to > your judgment. > > Regards > Gianluigi > I try to explain again: 1) Date & times are internally represented in UTC date. See them as a number of days since an absolute instant in the past. You can get this number with CFloat(AnyDate). The integer part is the number of days, the fractional part is the part of the day (the precision is the millisecond). 2) Each time you read or you write a date & time as a string, you *must* know the timezone associated with the string representation. *But* this timezone is implicit, as it is not written inside the string representation (something that I should add to Gambas). In other words, "2018/6/7" *cannot* represent an absolute time instant. It depends on the implicit timezone. 3) So, all Gambas functions that deal with date & time as a string *must* assume a timezone. Some functions assume UTC timezone, and others assume local timezone. Normally, all documentation pages on the wiki says which one is used. Is it clearer now? -- Beno?t Minisini From bagonergi at gmail.com Thu Jun 7 20:11:03 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 7 Jun 2018 20:11:03 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> Message-ID: 2018-06-07 17:12 GMT+02:00 Beno?t Minisini : > Le 07/06/2018 ? 16:51, Gianluigi a ?crit : > >> I wrote it even if I imagined it was wrong (it works here), I'm sorry. >> It's useless, with the dates I still do not understand anything. >> These coming days, I will try to write a my wiki to and submit it to your >> judgment. >> >> Regards >> Gianluigi >> >> > I try to explain again: > > 1) Date & times are internally represented in UTC date. See them as a > number of days since an absolute instant in the past. You can get this > number with CFloat(AnyDate). The integer part is the number of days, the > fractional part is the part of the day (the precision is the millisecond). > > 2) Each time you read or you write a date & time as a string, you *must* > know the timezone associated with the string representation. *But* this > timezone is implicit, as it is not written inside the string representation > (something that I should add to Gambas). > > In other words, "2018/6/7" *cannot* represent an absolute time instant. It > depends on the implicit timezone. > > 3) So, all Gambas functions that deal with date & time as a string *must* > assume a timezone. Some functions assume UTC timezone, and others assume > local timezone. Normally, all documentation pages on the wiki says which > one is used. > > Is it clearer now? > > -- > Beno?t Minisini > > Hi Benoit, sorry for the delay, I had to go out. The difference between local and UTC is clear to me. I find it difficult to memorize, to fix well in my mind, to fully understand the translation into the string. Suppose we have a CUsers class where I store user data including the date of birth. Suppose I use this class as an array: hObj = New CUsers (iId, sName, sSurName, dDate, ...) $hGlobalObject.Add(hObj) If I have to save the date in an ini file like Settings and I want to be sure that I do not have problems, how do I translate the date to be saved into a string, and then how can I re-translate it into a date format from ini? So I'm in confusion, I would use CStr and then CDate to stay in UTC and then display the dates with Format. I know I'm an idiot, and I'll continue to use a database... Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Thu Jun 7 20:34:49 2018 From: d4t4full at gmail.com (ML) Date: Thu, 7 Jun 2018 15:34:49 -0300 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> Message-ID: <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> On 07/06/18 15:11, Gianluigi wrote: > 2018-06-07 17:12 GMT+02:00 Beno?t Minisini >: > > Le 07/06/2018 ? 16:51, Gianluigi a ?crit?: > > I wrote it even if I imagined it was wrong (it works here), > I'm sorry. > It's useless, with the dates I still do not understand anything. > These coming days, I will try to write a my wiki to and submit > it to your judgment. > Regards > Gianluigi > > > I try to explain again: > 1) Date & times are internally represented in UTC date. See them > as a number of days since an absolute instant in the past. You can > get this number with CFloat(AnyDate). The integer part is the > number of days, the fractional part is the part of the day (the > precision is the millisecond). > 2) Each time you read or you write a date & time as a string, you > *must* know the timezone associated with the string > representation. *But* this timezone is implicit, as it is not > written inside the string representation (something that I should > add to Gambas). > In other words, "2018/6/7" *cannot* represent an absolute time > instant. It depends on the implicit timezone. > 3) So, all Gambas functions that deal with date & time as a string > *must* assume a timezone. Some functions assume UTC timezone, and > others assume local timezone. Normally, all documentation pages on > the wiki says which one is used. > Is it clearer now? > -- > Beno?t Minisini > > > Hi Benoit, > sorry for the delay, I had to go out. > The difference between local and UTC is clear to me. > I find it difficult to memorize, to fix well in my mind, to fully > understand the translation into the string. > Suppose we have a CUsers class where I store user data including the > date of birth. > Suppose I use this class as an array: > ?? hObj = New CUsers (iId, sName, sSurName, dDate, ...) > ?? $hGlobalObject.Add(hObj) > If I have to save the date in an ini file like Settings and I want to > be sure that I do not have problems, how do I translate the date to be > saved into a string, and then how can I re-translate it into a date > format from ini? > So I'm in confusion, I would use CStr and then CDate to stay in UTC > and then display the dates with Format. > I know I'm an idiot, and I'll continue to use a database... > Regards > Gianluigi I'd break the date down to day, month, year, and store them as 3 separate data units. Then, when retrieving, read the three separate data items and use: ? Dim userBirthday As Date = Date(savedYear, savedMonth, savedDay) So userBirthday will be a Date with the proper value... If I inderstood it correctly, that is! -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 7 20:50:56 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jun 2018 20:50:56 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: <1cf70c62-81be-4243-9c1a-4ef23ccb50a8@gmail.com> Le 07/06/2018 ? 20:34, ML a ?crit?: >> >> Hi Benoit, >> sorry for the delay, I had to go out. >> The difference between local and UTC is clear to me. >> I find it difficult to memorize, to fix well in my mind, to fully >> understand the translation into the string. >> Suppose we have a CUsers class where I store user data including the >> date of birth. >> Suppose I use this class as an array: >> ?? hObj = New CUsers (iId, sName, sSurName, dDate, ...) >> ?? $hGlobalObject.Add(hObj) >> If I have to save the date in an ini file like Settings and I want to >> be sure that I do not have problems, how do I translate the date to be >> saved into a string, and then how can I re-translate it into a date >> format from ini? >> So I'm in confusion, I would use CStr and then CDate to stay in UTC >> and then display the dates with Format. >> I know I'm an idiot, and I'll continue to use a database... >> Regards >> Gianluigi Save it in UTC with CStr(), and read it back with CDate(). As for databases, the gb.db component store dates & times are stored UTC as much as possible. Of course, this is far more complex than that as every SQL database has it own way of dealing with dates. Gambas database component tries to hide all the quirks. -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu Jun 7 21:36:43 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 7 Jun 2018 22:36:43 +0300 Subject: [Gambas-user] Format function changes date value In-Reply-To: <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: This is how I do it, when I want to save & load the values as string, without being influenced by timezones. Write as string: sStringToBeSaved = Subst("&1/&2/&3 &4:&5:&6", Format(Month(hDateAndTimel), "0#"), Format(Day(hDateAndTimel), "0#"), Year(hDateAndTimel), Format(Hour(hDateAndTimel), "0#"), Format(Minute(hDateAndTime), "0#"), Format(Second(hDateAndTimel), "0#")) Read as date: Dim sStr, sDate, sTime As String[] sStr = Split(sLoadedString, " ") sDate = Split(sStr[0], "/") sTime = Split(sStr[1], ":") hDateAndTime = Date(sDate[2], sDate[0], sDate[1], sTime[0], sTime[1], sTime[2]) Jussi On Thu, Jun 7, 2018 at 9:34 PM, ML wrote: > On 07/06/18 15:11, Gianluigi wrote: > > 2018-06-07 17:12 GMT+02:00 Beno?t Minisini : > >> Le 07/06/2018 ? 16:51, Gianluigi a ?crit : >> >>> I wrote it even if I imagined it was wrong (it works here), I'm sorry. >>> It's useless, with the dates I still do not understand anything. >>> These coming days, I will try to write a my wiki to and submit it to >>> your judgment. >>> Regards >>> Gianluigi >>> >>> >> I try to explain again: >> 1) Date & times are internally represented in UTC date. See them as a >> number of days since an absolute instant in the past. You can get this >> number with CFloat(AnyDate). The integer part is the number of days, the >> fractional part is the part of the day (the precision is the millisecond). >> 2) Each time you read or you write a date & time as a string, you *must* >> know the timezone associated with the string representation. *But* this >> timezone is implicit, as it is not written inside the string representation >> (something that I should add to Gambas). >> In other words, "2018/6/7" *cannot* represent an absolute time instant. >> It depends on the implicit timezone. >> 3) So, all Gambas functions that deal with date & time as a string *must* >> assume a timezone. Some functions assume UTC timezone, and others assume >> local timezone. Normally, all documentation pages on the wiki says which >> one is used. >> Is it clearer now? >> -- >> Beno?t Minisini >> >> > Hi Benoit, > sorry for the delay, I had to go out. > The difference between local and UTC is clear to me. > I find it difficult to memorize, to fix well in my mind, to fully > understand the translation into the string. > Suppose we have a CUsers class where I store user data including the date > of birth. > Suppose I use this class as an array: > hObj = New CUsers (iId, sName, sSurName, dDate, ...) > $hGlobalObject.Add(hObj) > If I have to save the date in an ini file like Settings and I want to be > sure that I do not have problems, how do I translate the date to be saved > into a string, and then how can I re-translate it into a date format from > ini? > So I'm in confusion, I would use CStr and then CDate to stay in UTC and > then display the dates with Format. > I know I'm an idiot, and I'll continue to use a database... > Regards > Gianluigi > > > I'd break the date down to day, month, year, and store them as 3 separate > data units. > Then, when retrieving, read the three separate data items and use: > > Dim userBirthday As Date = Date(savedYear, savedMonth, savedDay) > > So userBirthday will be a Date with the proper value... If I inderstood it > correctly, that is! > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 7 22:43:13 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 7 Jun 2018 22:43:13 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: Le 07/06/2018 ? 21:36, Jussi Lahtinen a ?crit?: > This is how I do it, when I want to save & load the values as string, > without being influenced by timezones. > > Write as string: > > sStringToBeSaved = Subst("&1/&2/&3 &4:&5:&6", > Format(Month(hDateAndTimel), "0#"), Format(Day(hDateAndTimel), "0#"), > Year(hDateAndTimel), Format(Hour(hDateAndTimel), "0#"), > Format(Minute(hDateAndTime), "0#"), Format(Second(hDateAndTimel), "0#")) > > > Read as date: > > Dim sStr, sDate, sTime As String[] > > ????? sStr = Split(sLoadedString, " ") > > ????? sDate = Split(sStr[0], "/") > ????? sTime = Split(sStr[1], ":") > > ????? hDateAndTime = Date(sDate[2], sDate[0], sDate[1], sTime[0], > sTime[1], sTime[2]) > > > > Jussi > This is wrong: you are using Year(), Month(), Day()... functions that assume a local date. It works only if the date is read in the same timezone as the write. You have to, and just have to use CStr() and CDate(). I.e. write dates in UTC, and read them back in UTC. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu Jun 7 22:55:58 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 7 Jun 2018 23:55:58 +0300 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: > This is wrong: you are using Year(), Month(), Day()... functions that > assume a local date. It works only if the date is read in the same timezone > as the write. > The point is my way always assumes local date. Thus when "time zone" changes twice in a year, the dates and times keep the same, instead of being adjusted wrongly by hour. You have to, and just have to use CStr() and CDate(). I.e. write dates in > UTC, and read them back in UTC. > The problem is I'm not in UTC and my local time zone changes twice a year. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Jun 7 23:13:01 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 7 Jun 2018 23:13:01 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: 2018-06-07 22:55 GMT+02:00 Jussi Lahtinen : > > This is wrong: you are using Year(), Month(), Day()... functions that >> assume a local date. It works only if the date is read in the same timezone >> as the write. >> > > The point is my way always assumes local date. Thus when "time zone" > changes twice in a year, the dates and times keep the same, instead of > being adjusted wrongly by hour. > > > You have to, and just have to use CStr() and CDate(). I.e. write dates in >> UTC, and read them back in UTC. >> > > The problem is I'm not in UTC and my local time zone changes twice a year. > > > Jussi > > > Hello Benoit, ML, Jussi, dear brothers in Gambas :-) Thank you very much for the benevolent attention you dedicate to me. It seems that on the dates, among the disciples of Benoit, constant confusion reigns. I think we can summarize that the best thing to do is to create time calculations in UTC and then localize with Format what is shown to the user. This should also work for Jussi's calculations, or not? Regards Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jun 7 23:29:46 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 8 Jun 2018 00:29:46 +0300 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: Unfortunately no. I can't use any conversions between UTC and local time zone. See GAlarm from software farm. If I want to set alarm to remind me of meeting at 12:00 and if that happens to be at date after time zone change, then the alarm is not shown at 12:00 in local time, but instead something complicated (11:00 or 13:00 depending on the change [+/-1 UTC]). So, my only solution is to always assume local time. Jussi On Fri, Jun 8, 2018 at 12:13 AM, Gianluigi wrote: > > > 2018-06-07 22:55 GMT+02:00 Jussi Lahtinen : > >> >> This is wrong: you are using Year(), Month(), Day()... functions that >>> assume a local date. It works only if the date is read in the same timezone >>> as the write. >>> >> >> The point is my way always assumes local date. Thus when "time zone" >> changes twice in a year, the dates and times keep the same, instead of >> being adjusted wrongly by hour. >> >> >> You have to, and just have to use CStr() and CDate(). I.e. write dates in >>> UTC, and read them back in UTC. >>> >> >> The problem is I'm not in UTC and my local time zone changes twice a year. >> >> >> Jussi >> >> >> > > Hello Benoit, ML, Jussi, dear brothers in Gambas :-) > Thank you very much for the benevolent attention you dedicate to me. > It seems that on the dates, among the disciples of Benoit, constant > confusion reigns. > I think we can summarize that the best thing to do is to create time > calculations in UTC and then localize with Format what is shown to the user. > This should also work for Jussi's calculations, or not? > > Regards > Gianluigi > > >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Jun 7 23:47:00 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 7 Jun 2018 23:47:00 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93e1ca41-ea1c-c7e2-e739-9981a4f6500c@gmail.com> <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: 2018-06-07 23:29 GMT+02:00 Jussi Lahtinen : > Unfortunately no. I can't use any conversions between UTC and local time > zone. See GAlarm from software farm. > If I want to set alarm to remind me of meeting at 12:00 and if that > happens to be at date after time zone change, then the alarm is not shown > at 12:00 in local time, but instead something complicated (11:00 or 13:00 > depending on the change [+/-1 UTC]). > > So, my only solution is to always assume local time. > > > Jussi > > Hi Jussi, I'm old and now I'm going to sleep. Tomorrow I look at your code and try to understand. Good night Gianluigi ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jun 8 00:10:06 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Jun 2018 00:10:06 +0200 Subject: [Gambas-user] Format function changes date value In-Reply-To: References: <93700e15-65b2-ee19-b982-e5119f2dffac@gmail.com> <683e4d34-8296-b1ed-1488-ad3075d40113@gmail.com> <3576c1ba-2571-76d5-dee7-450bdbfc7842@gmail.com> <0f4669a7-160a-f40d-f53e-d47726168bb0@gmail.com> Message-ID: <15ab625d-7ac9-9e4d-c712-e37923545c2b@gmail.com> Le 07/06/2018 ? 23:29, Jussi Lahtinen a ?crit?: > Unfortunately no. I can't use any conversions between UTC and local time > zone. See GAlarm from software farm. > If I want to set alarm to remind me of meeting at 12:00 and if that > happens to be at date after time zone change, then the alarm is not > shown at 12:00 in local time, but instead something complicated (11:00 > or 13:00 depending on the change [+/-1 UTC]). > > So, my only solution is to always assume local time. > > > Jussi > OK, I forgot your alarm program. Your case is special, because the date/time of an alarm is not absolute, but relative to the timezone of the user, and relative to the alarm day too, as the timezone may change during the year (thanks to the delirium of summer and winter time). The timezone may change unexpectly too for political reason (for example, North Korea has just adopted the South Korea timezone as a reconcilation sign). So the rule would be: - When you deal with dates & times decided by the user, you should store them in the local timezone of the user, or, better, add the timezone to the date string representation. - When you deal with dates & times managed by the computer, usually from the past (for example a creation date, or a modification date), use UTC dates. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Jun 8 00:51:08 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 8 Jun 2018 01:51:08 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: I deleted all the sources and started from the beginning. But again the same result. Or at least I still get: || THESE COMPONENTS ARE DISABLED: || - gb.db.postgresql || - gb.db.sqlite2 *|| - gb.jit* || - gb.jit.llvm || - gb.qt5 || - gb.qt5.ext || - gb.qt5.opengl || - gb.qt5.webkit However, later in the logs I see this: Compiling gb.jit... OK Installing gb.jit... But also: || Unable to compile gb.form.editor || Unable to compile gb.form.terminal || Unable to compile gambas3 Logs attached. Jussi On Wed, Jun 6, 2018 at 11:52 PM, Jussi Lahtinen wrote: > Here are the logs. > > > Jussi > > On Wed, Jun 6, 2018 at 2:38 AM, Beno?t Minisini wrote: > >> Le 06/06/2018 ? 01:26, Jussi Lahtinen a ?crit : >> >>> No, I still get: >>> || THESE COMPONENTS ARE DISABLED: >>> || - gb.db.postgresql >>> || - gb.db.sqlite2 >>> *|| - gb.jit* >>> || - gb.jit.llvm >>> || - gb.qt5 >>> || - gb.qt5.ext >>> || - gb.qt5.opengl >>> || - gb.qt5.webkit >>> >>> >>> Jussi >>> >>> >> You can't have gb.jit in the list, it's a component made in Gambas with >> no requirement maanged by "./configure" (at the moment). I think you did >> something weird with the source code... Can you post your configure output? >> >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: compile.log.tar.gz Type: application/gzip Size: 20593 bytes Desc: not available URL: From g4mba5 at gmail.com Fri Jun 8 00:59:51 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 8 Jun 2018 00:59:51 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: Le 08/06/2018 ? 00:51, Jussi Lahtinen a ?crit?: > I deleted all the sources and started from the beginning. But again the > same result. Or at least I still get: > > || THESE COMPONENTS ARE DISABLED: > || - gb.db.postgresql > || - gb.db.sqlite2 > *|| - gb.jit* > || - gb.jit.llvm > || - gb.qt5 > || - gb.qt5.ext > || - gb.qt5.opengl > || - gb.qt5.webkit > > However, later in the logs I see this: > > Compiling gb.jit... > OK > Installing gb.jit... > > But also: > > || Unable to compile gb.form.editor > || Unable to compile gb.form.terminal > || Unable to compile gambas3 > > > Logs attached. > > > Jussi > I think you have to wait for my next commit where I move the jit compiler to the interpreter. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Jun 8 01:06:31 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 8 Jun 2018 02:06:31 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: OK Jussi On Fri, Jun 8, 2018 at 1:59 AM, Beno?t Minisini wrote: > Le 08/06/2018 ? 00:51, Jussi Lahtinen a ?crit : > >> I deleted all the sources and started from the beginning. But again the >> same result. Or at least I still get: >> >> || THESE COMPONENTS ARE DISABLED: >> || - gb.db.postgresql >> || - gb.db.sqlite2 >> *|| - gb.jit* >> || - gb.jit.llvm >> || - gb.qt5 >> || - gb.qt5.ext >> || - gb.qt5.opengl >> || - gb.qt5.webkit >> >> However, later in the logs I see this: >> >> Compiling gb.jit... >> OK >> Installing gb.jit... >> >> But also: >> >> || Unable to compile gb.form.editor >> || Unable to compile gb.form.terminal >> || Unable to compile gambas3 >> >> >> Logs attached. >> >> >> Jussi >> >> > I think you have to wait for my next commit where I move the jit compiler > to the interpreter. > > Regards, > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Fri Jun 8 12:41:42 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 8 Jun 2018 12:41:42 +0200 Subject: [Gambas-user] Stat class (gb) In-Reply-To: <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> References: <20180601120916.M66930@455.co.il> <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> Message-ID: Hello, I have a question about the Stat class (gb). I use: Dim FileInfo As Stat FileInfo = Stat(sFilePath) Print Stat(sFilePath).Auth ??? --->?? rwxrw-r-- Print Stat(sFilePath) mode ??? --->?? 500 How is the result 500 to be evaluated? Which property of a file is characterized by .mode? With kind regards Hans From taboege at gmail.com Fri Jun 8 12:58:10 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 8 Jun 2018 12:58:10 +0200 Subject: [Gambas-user] Stat class (gb) In-Reply-To: References: <20180601122238.M31829@455.co.il> <20180603120916.M65034@455.co.il> <2fe3e373-4a75-43dc-6574-720f3c649b87@gambas-buch.de> Message-ID: <20180608105810.GC31875@highrise.localdomain> On Fri, 08 Jun 2018, Hans Lehmann wrote: > Hello, > > I have a question about the Stat class (gb). > > I use: > > Dim FileInfo As Stat > > FileInfo = Stat(sFilePath) > > Print Stat(sFilePath).Auth ??? --->?? rwxrw-r-- > Print Stat(sFilePath) mode ??? --->?? 500 > > How is the result 500 to be evaluated? > Which property of a file is characterized by .mode? > It is the same as .Auth actually. Stat.Mode is the numerical value of the file mode bits, while Stat.Auth is their human-readable form [1]. Printing Auth.Mode gives you the numerical value in decimal form (as is always the case when you print an integer in Gambas) but you might be more familiar with the *octal* representation of that same number: Print Oct(Stat(sFilePath).Mode) 764 ' decimal 500 = octal 764 and as explained in [1], 764 stands for: 7: read+write+execute permissions for owner rwx 6: read+write permissions for group rw- 4: read permission for others r-- Regards, Tobi [1] https://en.wikipedia.org/wiki/File_system_permissions#Notation_of_traditional_Unix_permissions -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From claude.dessere at orange.fr Fri Jun 8 16:37:11 2018 From: claude.dessere at orange.fr (CD) Date: Fri, 08 Jun 2018 16:37:11 +0200 Subject: [Gambas-user] Gambas Doc In-Reply-To: <20180603100603.GQ5149@highrise.localdomain> Message-ID: And to finish with the subject a short example of xmlElement.AppendFromText(Data As String, Arguments As, ...) it works well and the principle is very useful with Subst $ for the translation of strings of an application as explained in the doc: http://gambaswiki.org/wiki/howto/translate I would have rather called Subst in Concat, but ... Small detail as to the ergonomics of the interface "Project Translation", we can not select a string and copy it to put it in a translator for example ... Thanks again and Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ExempleXML01-0.0.1.tar.gz Type: application/x-compressed-tar Size: 12304 bytes Desc: not available URL: From demosthenesk at gmail.com Fri Jun 8 23:50:33 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sat, 9 Jun 2018 00:50:33 +0300 Subject: [Gambas-user] external function freezes In-Reply-To: References: <1ea9eb56-90b5-af8b-7c70-2ccd0defba28@gmail.com> Message-ID: <408e54b4-7a30-7722-37c6-527ed9658962@gmail.com> this pid is from gnome-calculator that i run it as test-target program. i got this pid from ps command if you try it yourself you must setup your pid and address from scanmem tool On 06/09/2018 12:13 AM, Jussi Lahtinen wrote: > I guess it is just waiting process with pid 8634... how do you ensure this > pid of given to the process? > > > Jussi > > On Fri, Jun 8, 2018 at 11:41 PM, Demosthenes Koptsis > wrote: >> Hello, i implemented a ptrace and waitpid external functions in order to >> read/write a memory address of a process. >> >> i want to make a trainer for a game in gambas and i created a small >> program that reads and writes to a memory process. >> >> The problem is that when i try to write to memory it freezes at waitpid >> line. >> >> i attach the test program you have to 1) open it as root 2) run a process >> you want to hack and get the pid 3) scan memory with scanmem and locate an >> address you want to write. 4) run my test program and see it freezes. >> >> Any help? >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From demosthenesk at gmail.com Sat Jun 9 00:22:19 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sat, 9 Jun 2018 01:22:19 +0300 Subject: [Gambas-user] external function freezes In-Reply-To: <20180608211123.GF31875@highrise.localdomain> References: <1ea9eb56-90b5-af8b-7c70-2ccd0defba28@gmail.com> <20180608211123.GF31875@highrise.localdomain> Message-ID: On 06/09/2018 12:11 AM, Tobias Boege wrote: > On Fri, 08 Jun 2018, Demosthenes Koptsis wrote: >> Hello, i implemented a ptrace and waitpid external functions in order to >> read/write a memory address of a process. >> >> i want to make a trainer for a game in gambas and i created a small program >> that reads and writes to a memory process. >> >> The problem is that when i try to write to memory it freezes at waitpid >> line. >> >> i attach the test program you have to 1) open it as root 2) run a process >> you want to hack and get the pid 3) scan memory with scanmem and locate an >> address you want to write. 4) run my test program and see it freezes. >> >> Any help? >> > Does the same code work in a C program? It seems like waitpid() is just what > you need to do after PTRACE_ATTACH, but anyway I'd say it's a good idea to > develop the low-level bits in C first, so that we're sure it's the translation > to Gambas which is faulty, and not the algorithm. > > Three other remarks: > > * I'm certainly not running a random somebody's buggy program as root. > Can't you spawn a child process yourself and then use PTRACE_TRACEME > for debugging purposes? That shouldn't require root privileges. > > * You should also check return values of system calls. > > * THIS MAILING LIST IS DEPRECATED. USE THE NEW ONE: https://lists.gambas-basic.org/listinfo/user > > Regards, > Tobi > i also test it with c++ with codeblocks and it also freezes at waitpid of WriteMemory function how i spawn a child process? From jussi.lahtinen at gmail.com Sat Jun 9 00:57:03 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 9 Jun 2018 01:57:03 +0300 Subject: [Gambas-user] external function freezes In-Reply-To: References: <1ea9eb56-90b5-af8b-7c70-2ccd0defba28@gmail.com> <20180608211123.GF31875@highrise.localdomain> Message-ID: With exec or shell command, but I'm not sure that is what you want to do. I think you want to attach to existing process. >From the documentation: *"The waitpid() system call suspends execution of the calling process until a child specified by pid argument has changed state."* So this is what you observe as freezing. *"By default, waitpid() waits only for terminated children, but this behavior is modifiable via the options argument, as described below."* Not sure what this means... maybe they meant to write "... waitpid waits only for termination of the children ...". Are they required to be child processes or do attaching to process count as child process? I don't know. If so, I don't think the options argument can be zero in your case. Jussi On Sat, Jun 9, 2018 at 1:22 AM, Demosthenes Koptsis wrote: > On 06/09/2018 12:11 AM, Tobias Boege wrote: > >> On Fri, 08 Jun 2018, Demosthenes Koptsis wrote: >> >>> Hello, i implemented a ptrace and waitpid external functions in order to >>> read/write a memory address of a process. >>> >>> i want to make a trainer for a game in gambas and i created a small >>> program >>> that reads and writes to a memory process. >>> >>> The problem is that when i try to write to memory it freezes at waitpid >>> line. >>> >>> i attach the test program you have to 1) open it as root 2) run a process >>> you want to hack and get the pid 3) scan memory with scanmem and locate >>> an >>> address you want to write. 4) run my test program and see it freezes. >>> >>> Any help? >>> >>> Does the same code work in a C program? It seems like waitpid() is just >> what >> you need to do after PTRACE_ATTACH, but anyway I'd say it's a good idea to >> develop the low-level bits in C first, so that we're sure it's the >> translation >> to Gambas which is faulty, and not the algorithm. >> >> Three other remarks: >> >> * I'm certainly not running a random somebody's buggy program as root. >> Can't you spawn a child process yourself and then use PTRACE_TRACEME >> for debugging purposes? That shouldn't require root privileges. >> >> * You should also check return values of system calls. >> >> * THIS MAILING LIST IS DEPRECATED. USE THE NEW ONE: >> https://lists.gambas-basic.org/listinfo/user >> >> Regards, >> Tobi >> >> i also test it with c++ with codeblocks and it also freezes at waitpid of > WriteMemory function > > how i spawn a child process? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jun 9 01:10:58 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 9 Jun 2018 02:10:58 +0300 Subject: [Gambas-user] external function freezes In-Reply-To: References: <1ea9eb56-90b5-af8b-7c70-2ccd0defba28@gmail.com> <20180608211123.GF31875@highrise.localdomain> Message-ID: I'm not sure you need waitpid call at all, but if it is needed for some side effects, then try to pass it as: waitpid(Me.pid, Null, 1) ''IE WNOHANG Jussi On Sat, Jun 9, 2018 at 1:57 AM, Jussi Lahtinen wrote: > With exec or shell command, but I'm not sure that is what you want to do. > I think you want to attach to existing process. > > From the documentation: > *"The waitpid() system call suspends execution of the calling process > until a child specified by pid argument has changed state."* > > So this is what you observe as freezing. > > *"By default, waitpid() waits only for terminated children, but this > behavior is modifiable via the options argument, as described below."* > > Not sure what this means... maybe they meant to write "... waitpid waits > only for termination of the children ...". > Are they required to be child processes or do attaching to process count > as child process? I don't know. If so, I don't think the options argument > can be zero in your case. > > > Jussi > > > On Sat, Jun 9, 2018 at 1:22 AM, Demosthenes Koptsis < > demosthenesk at gmail.com> wrote: > >> On 06/09/2018 12:11 AM, Tobias Boege wrote: >> >>> On Fri, 08 Jun 2018, Demosthenes Koptsis wrote: >>> >>>> Hello, i implemented a ptrace and waitpid external functions in order to >>>> read/write a memory address of a process. >>>> >>>> i want to make a trainer for a game in gambas and i created a small >>>> program >>>> that reads and writes to a memory process. >>>> >>>> The problem is that when i try to write to memory it freezes at waitpid >>>> line. >>>> >>>> i attach the test program you have to 1) open it as root 2) run a >>>> process >>>> you want to hack and get the pid 3) scan memory with scanmem and locate >>>> an >>>> address you want to write. 4) run my test program and see it freezes. >>>> >>>> Any help? >>>> >>>> Does the same code work in a C program? It seems like waitpid() is just >>> what >>> you need to do after PTRACE_ATTACH, but anyway I'd say it's a good idea >>> to >>> develop the low-level bits in C first, so that we're sure it's the >>> translation >>> to Gambas which is faulty, and not the algorithm. >>> >>> Three other remarks: >>> >>> * I'm certainly not running a random somebody's buggy program as root. >>> Can't you spawn a child process yourself and then use PTRACE_TRACEME >>> for debugging purposes? That shouldn't require root privileges. >>> >>> * You should also check return values of system calls. >>> >>> * THIS MAILING LIST IS DEPRECATED. USE THE NEW ONE: >>> https://lists.gambas-basic.org/listinfo/user >>> >>> Regards, >>> Tobi >>> >>> i also test it with c++ with codeblocks and it also freezes at waitpid >> of WriteMemory function >> >> how i spawn a child process? >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sat Jun 9 08:42:55 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sat, 9 Jun 2018 09:42:55 +0300 Subject: [Gambas-user] external function freezes In-Reply-To: References: <1ea9eb56-90b5-af8b-7c70-2ccd0defba28@gmail.com> <20180608211123.GF31875@highrise.localdomain> Message-ID: <4529f22a-bbfc-0eed-d698-e7beb19dc5bc@gmail.com> Hello Jussi, from man 2 waitpid The? value? of? options? is an OR of zero or more of the following con? ?????? stants: ?????? WNOHANG???? return immediately if no child has exited. i do not exit the target process and waitpid returns to gambas process. With WNOHANG the gambas project (and also the c project) behaves like there is no waitpid. As a result is to break the target process and the Me.ret value of Me.ret = ptrace(PTRACE_PEEKDATA, Me.pid, Me.addr, Null) Me.ret = -1 which means ptrace exit with an error After that i cannot ptrace any more the target process. Thanks. On 06/09/2018 02:10 AM, Jussi Lahtinen wrote: > I'm not sure you need waitpid call at all, but if it is needed for > some side effects, then try to pass it as: > waitpid(Me.pid, Null, 1) ''IE WNOHANG > > > Jussi > > On Sat, Jun 9, 2018 at 1:57 AM, Jussi Lahtinen > > wrote: > > With exec or shell command, but I'm not sure that is what you want > to do. I think you want to attach to existing process. > > From the documentation: > /"The *waitpid*() system call suspends execution of the calling > process until a child specified by pid argument has changed state."/ > > So this is what you observe as freezing. > > /"By default, *waitpid*() waits only for terminated children, but > this behavior is modifiable via the options argument, as described > below."/ > / > / > Not sure what this means... maybe they meant to write "... waitpid > waits only for termination of the children ...". > Are they required to be child processes or do attaching to process > count as child process? I don't know. If so, I don't think the > options argument can be zero in your case. > > > Jussi > > > On Sat, Jun 9, 2018 at 1:22 AM, Demosthenes Koptsis > > wrote: > > On 06/09/2018 12:11 AM, Tobias Boege wrote: > > On Fri, 08 Jun 2018, Demosthenes Koptsis wrote: > > Hello, i implemented a ptrace and waitpid external > functions in order to > read/write a memory address of a process. > > i want to make a trainer for a game in gambas and i > created a small program > that reads and writes to a memory process. > > The problem is that when i try to write to memory it > freezes at waitpid > line. > > i attach the test program you have to 1) open it as > root 2) run a process > you want to hack and get the pid 3) scan memory with > scanmem and locate an > address you want to write. 4) run my test program and > see it freezes. > > Any help? > > Does the same code work in a C program? It seems like > waitpid() is just what > you need to do after PTRACE_ATTACH, but anyway I'd say > it's a good idea to > develop the low-level bits in C first, so that we're sure > it's the translation > to Gambas which is faulty, and not the algorithm. > > Three other remarks: > > ? ?* I'm certainly not running a random somebody's buggy > program as root. > ? ? ?Can't you spawn a child process yourself and then use > PTRACE_TRACEME > ? ? ?for debugging purposes? That shouldn't require root > privileges. > > ? ?* You should also check return values of system calls. > > ? ?* THIS MAILING LIST IS DEPRECATED. USE THE NEW ONE: > https://lists.gambas-basic.org/listinfo/user > > > Regards, > Tobi > > i also test it with c++ with codeblocks and it also freezes at > waitpid of WriteMemory function > > how i spawn a child process? > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sat Jun 9 09:38:36 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sat, 9 Jun 2018 10:38:36 +0300 Subject: [Gambas-user] external function freezes In-Reply-To: <20180608211123.GF31875@highrise.localdomain> References: <1ea9eb56-90b5-af8b-7c70-2ccd0defba28@gmail.com> <20180608211123.GF31875@highrise.localdomain> Message-ID: The same code freezes also a c++ project and c project. On 06/09/2018 12:11 AM, Tobias Boege wrote: > On Fri, 08 Jun 2018, Demosthenes Koptsis wrote: >> Hello, i implemented a ptrace and waitpid external functions in order to >> read/write a memory address of a process. >> >> i want to make a trainer for a game in gambas and i created a small program >> that reads and writes to a memory process. >> >> The problem is that when i try to write to memory it freezes at waitpid >> line. >> >> i attach the test program you have to 1) open it as root 2) run a process >> you want to hack and get the pid 3) scan memory with scanmem and locate an >> address you want to write. 4) run my test program and see it freezes. >> >> Any help? >> > Does the same code work in a C program? It seems like waitpid() is just what > you need to do after PTRACE_ATTACH, but anyway I'd say it's a good idea to > develop the low-level bits in C first, so that we're sure it's the translation > to Gambas which is faulty, and not the algorithm. > > Three other remarks: > > * I'm certainly not running a random somebody's buggy program as root. > Can't you spawn a child process yourself and then use PTRACE_TRACEME > for debugging purposes? That shouldn't require root privileges. > > * You should also check return values of system calls. > > * THIS MAILING LIST IS DEPRECATED. USE THE NEW ONE: https://lists.gambas-basic.org/listinfo/user > > Regards, > Tobi > From demosthenesk at gmail.com Sat Jun 9 17:45:24 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sat, 9 Jun 2018 18:45:24 +0300 Subject: [Gambas-user] external function freezes In-Reply-To: References: <1ea9eb56-90b5-af8b-7c70-2ccd0defba28@gmail.com> <20180608211123.GF31875@highrise.localdomain> Message-ID: <694aabd1-677d-28a7-3d1c-64589c2b5f2a@gmail.com> Well after many tries and search at Google i found that you cannot use waitpid more than once. i had to attach ptrace then call waitpid and the make all read/writes to memory and finaly detach ptrace. i attach a working example for test and try. You have to open and run it as root. On 06/09/2018 02:10 AM, Jussi Lahtinen wrote: > I'm not sure you need waitpid call at all, but if it is needed for > some side effects, then try to pass it as: > waitpid(Me.pid, Null, 1) ''IE WNOHANG > > > Jussi > > On Sat, Jun 9, 2018 at 1:57 AM, Jussi Lahtinen > > wrote: > > With exec or shell command, but I'm not sure that is what you want > to do. I think you want to attach to existing process. > > From the documentation: > /"The *waitpid*() system call suspends execution of the calling > process until a child specified by pid argument has changed state."/ > > So this is what you observe as freezing. > > /"By default, *waitpid*() waits only for terminated children, but > this behavior is modifiable via the options argument, as described > below."/ > / > / > Not sure what this means... maybe they meant to write "... waitpid > waits only for termination of the children ...". > Are they required to be child processes or do attaching to process > count as child process? I don't know. If so, I don't think the > options argument can be zero in your case. > > > Jussi > > > On Sat, Jun 9, 2018 at 1:22 AM, Demosthenes Koptsis > > wrote: > > On 06/09/2018 12:11 AM, Tobias Boege wrote: > > On Fri, 08 Jun 2018, Demosthenes Koptsis wrote: > > Hello, i implemented a ptrace and waitpid external > functions in order to > read/write a memory address of a process. > > i want to make a trainer for a game in gambas and i > created a small program > that reads and writes to a memory process. > > The problem is that when i try to write to memory it > freezes at waitpid > line. > > i attach the test program you have to 1) open it as > root 2) run a process > you want to hack and get the pid 3) scan memory with > scanmem and locate an > address you want to write. 4) run my test program and > see it freezes. > > Any help? > > Does the same code work in a C program? It seems like > waitpid() is just what > you need to do after PTRACE_ATTACH, but anyway I'd say > it's a good idea to > develop the low-level bits in C first, so that we're sure > it's the translation > to Gambas which is faulty, and not the algorithm. > > Three other remarks: > > ? ?* I'm certainly not running a random somebody's buggy > program as root. > ? ? ?Can't you spawn a child process yourself and then use > PTRACE_TRACEME > ? ? ?for debugging purposes? That shouldn't require root > privileges. > > ? ?* You should also check return values of system calls. > > ? ?* THIS MAILING LIST IS DEPRECATED. USE THE NEW ONE: > https://lists.gambas-basic.org/listinfo/user > > > Regards, > Tobi > > i also test it with c++ with codeblocks and it also freezes at > waitpid of WriteMemory function > > how i spawn a child process? > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Memory-working.tar.gz Type: application/gzip Size: 13603 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Jun 9 22:53:51 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 9 Jun 2018 22:53:51 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> Message-ID: <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> Le 08/06/2018 ? 01:06, Jussi Lahtinen a ?crit?: > OK > > > Jussi > It should now be in better shape and compilable. Translation is now done at runtime. Speed gain is about the same as the old JIT compiler (less in some benchmarks, a lot better in one), but many things are not optimized, and there are still many features to implement. What works: the fast routines declared in the IDE, gb.form.terminal and gb.form.editor, as well as the benchmarks. There is no speed gain in string processing (string processing is mainly allocation, copies, and comparisons). The 'string' benchmark is even slower when JIT compiled! Set GB_NO_JIT=1 to disable the JIT compiler. Set GB_JIT_DEBUG=1 to see what is done, and get a copy of generated C file in '/tmp/.c'. The project C file is '/tmp/gb.c'. There is no compilation cache support at the moment. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Jun 10 00:25:39 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 01:25:39 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> Message-ID: Thanks! However, there are still some minor issues (something weird [apparently nothing critical] + missing file). See attached logs. Jussi On Sat, Jun 9, 2018 at 11:53 PM, Beno?t Minisini wrote: > Le 08/06/2018 ? 01:06, Jussi Lahtinen a ?crit : > >> OK >> >> >> Jussi >> >> > It should now be in better shape and compilable. > > Translation is now done at runtime. > > Speed gain is about the same as the old JIT compiler (less in some > benchmarks, a lot better in one), but many things are not optimized, and > there are still many features to implement. > > What works: the fast routines declared in the IDE, gb.form.terminal and > gb.form.editor, as well as the benchmarks. > > There is no speed gain in string processing (string processing is mainly > allocation, copies, and comparisons). The 'string' benchmark is even slower > when JIT compiled! > > Set GB_NO_JIT=1 to disable the JIT compiler. > > Set GB_JIT_DEBUG=1 to see what is done, and get a copy of generated C file > in '/tmp/.c'. The project C file is '/tmp/gb.c'. > > There is no compilation cache support at the moment. > > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: compile.log.tar.gz Type: application/gzip Size: 31806 bytes Desc: not available URL: From g4mba5 at gmail.com Sun Jun 10 05:09:00 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 Jun 2018 05:09:00 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> Message-ID: <184168bc-b8fb-d359-c6a8-7d1ff1c085dc@gmail.com> Le 10/06/2018 ? 00:25, Jussi Lahtinen a ?crit?: > Thanks! > However, there are still some minor issues (something weird [apparently > nothing critical] + missing file). See attached logs. > > > Jussi Did you remove 'gb.jit' from the 'order' file? -- Beno?t Minisini From demosthenesk at gmail.com Sun Jun 10 17:10:02 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 18:10:02 +0300 Subject: [Gambas-user] Creating a library.... Message-ID: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> Hello, i want to port to gambas the libc library, so i decided to create a library project. i have some questions... 1) First i created a new project as a command line project 2) i added a module file for all Public Extern functions, named gbLibc 3) i have also a Main module for testing purposes. i want to ask when a choose from project properties "Library" as project type, i need the Main module? Or before i compile the project i need to remove the Main module and have only the gbLibc module? How i must setup the project to create a library? Thanks. From jussi.lahtinen at gmail.com Sun Jun 10 17:17:39 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 18:17:39 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: <184168bc-b8fb-d359-c6a8-7d1ff1c085dc@gmail.com> References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> <184168bc-b8fb-d359-c6a8-7d1ff1c085dc@gmail.com> Message-ID: No, I did nothing to the sources. I'll try once more from the beginning. Jussi On Sun, Jun 10, 2018 at 6:09 AM, Beno?t Minisini wrote: > Le 10/06/2018 ? 00:25, Jussi Lahtinen a ?crit : > >> Thanks! >> However, there are still some minor issues (something weird [apparently >> nothing critical] + missing file). See attached logs. >> >> >> Jussi >> > > Did you remove 'gb.jit' from the 'order' file? > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 17:38:30 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 18:38:30 +0300 Subject: [Gambas-user] unsigned int datatype for external function Message-ID: hello, i want to use an unsigned int in external function, which gambas datatype should i use? Integer or Long? The range of values is 0 to 4,294,967,295 From sharon at 455.co.il Sun Jun 10 17:57:14 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 10 Jun 2018 18:57:14 +0300 Subject: [Gambas-user] sign $ Message-ID: <20180610155639.M16001@455.co.il> Hello to you I wanted to know When I declare variables I sometimes see: $ Sign And sometimes not For example, I took part of a section of gb.setting Export Create Static Class Window Class Desktop Class DesktopWindow Class Screens Static Property Read DefaultDir As String Static Private $ sStr As String Static Private $ iPos As Integer Property Read Keys As _Settings_Keys Property Read Path As String Private $ sPath As String Private $ sTitle As String Private $ cSlot As Collection Private $ bModify As Boolean Private $ bModifyAll As Boolean Private $ cModify As Collection And I see that there are functions with a $ sign For example: Format $ or Format without a $ sign Thank you From bagonergi at gmail.com Sun Jun 10 18:06:31 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 10 Jun 2018 18:06:31 +0200 Subject: [Gambas-user] sign $ In-Reply-To: <20180610155639.M16001@455.co.il> References: <20180610155639.M16001@455.co.il> Message-ID: 2018-06-10 17:57 GMT+02:00 Mayost Sharon : > Hello to you > > I wanted to know > When I declare variables I sometimes see: > $ Sign > And sometimes not > > For example, I took part of a section of gb.setting > > Export > Create Static > > Class Window > Class Desktop > Class DesktopWindow > Class Screens > > Static Property Read DefaultDir As String > > Static Private $ sStr As String > Static Private $ iPos As Integer > > Property Read Keys As _Settings_Keys > Property Read Path As String > > Private $ sPath As String > Private $ sTitle As String > Private $ cSlot As Collection > Private $ bModify As Boolean > Private $ bModifyAll As Boolean > Private $ cModify As Collection > > And I see that there are functions with a $ sign > > For example: > Format $ > or > Format without a $ sign > > Thank you > > You can see here [0] Gianluigi [0] http://gambaswiki.org/wiki/doc/namingconvention > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Jun 10 18:20:12 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 10 Jun 2018 18:20:12 +0200 Subject: [Gambas-user] sign $ In-Reply-To: <20180610155639.M16001@455.co.il> References: <20180610155639.M16001@455.co.il> Message-ID: <20180610162012.GH31875@highrise.localdomain> On Sun, 10 Jun 2018, Mayost Sharon wrote: > Hello to you > > I wanted to know > When I declare variables I sometimes see: > $ Sign > And sometimes not > > For example, I took part of a section of gb.setting > > Export > Create Static > > Class Window > Class Desktop > Class DesktopWindow > Class Screens > > Static Property Read DefaultDir As String > > Static Private $ sStr As String > Static Private $ iPos As Integer > > Property Read Keys As _Settings_Keys > Property Read Path As String > > Private $ sPath As String > Private $ sTitle As String > Private $ cSlot As Collection > Private $ bModify As Boolean > Private $ bModifyAll As Boolean > Private $ cModify As Collection > This is a naming convention in the Gambas source tree. Private variables start with a dollar sign [1]. Other than being conventional, there is no meaning to that. > And I see that there are functions with a $ sign > > For example: > Format $ > or > Format without a $ sign > The dollar sign is a suffix here and the meaning is completely different. I believe it is inherited from earlier BASIC languages and it hints at the function operating on a string. All functions which have the $-suffix also have a name without that suffix: Format$ <-> Format, Mid$ <-> Mid, Hex$ <-> Hex and so on. Both names map to exactly the same opcode, there is no difference and no meaning to that suffix. Regards, Tobi [1] http://gambaswiki.org/wiki/doc/naming -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sharon at 455.co.il Sun Jun 10 18:16:54 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 10 Jun 2018 19:16:54 +0300 Subject: [Gambas-user] sign $ In-Reply-To: References: <20180610155639.M16001@455.co.il> Message-ID: <20180610161554.M3043@455.co.il> Thank you I did not understand Is it meaningful or is it just for good order ---------- Original Message ----------- From: Gianluigi To: Gambas Mailing List Sent: Sun, 10 Jun 2018 18:06:31 +0200 Subject: Re: [Gambas-user] sign $ > 2018-06-10 17:57 GMT+02:00 Mayost Sharon : > > > Hello to you > > > > I wanted to know > > When I declare variables I sometimes see: > > $ Sign > > And sometimes not > > > > For example, I took part of a section of gb.setting > > > > Export > > Create Static > > > > Class Window > > Class Desktop > > Class DesktopWindow > > Class Screens > > > > Static Property Read DefaultDir As String > > > > Static Private $ sStr As String > > Static Private $ iPos As Integer > > > > Property Read Keys As _Settings_Keys > > Property Read Path As String > > > > Private $ sPath As String > > Private $ sTitle As String > > Private $ cSlot As Collection > > Private $ bModify As Boolean > > Private $ bModifyAll As Boolean > > Private $ cModify As Collection > > > > And I see that there are functions with a $ sign > > > > For example: > > Format $ > > or > > Format without a $ sign > > > > Thank you > > > > > You can see here [0] > > Gianluigi > > [0] http://gambaswiki.org/wiki/doc/namingconvention > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From bagonergi at gmail.com Sun Jun 10 18:28:43 2018 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 10 Jun 2018 18:28:43 +0200 Subject: [Gambas-user] sign $ In-Reply-To: <20180610161554.M3043@455.co.il> References: <20180610155639.M16001@455.co.il> <20180610161554.M3043@455.co.il> Message-ID: It is only a convention to better understand the code written by others, but also ours after some time. I find it useful, for example, in the Properties: Property sName As String Private $sName As String Private Function sName_Read() As String Return $sName End Private Sub sName_Write(Value As String) $sName = Value End Regards Gianluigi 2018-06-10 18:16 GMT+02:00 Mayost Sharon : > Thank you > > I did not understand > > Is it meaningful or is it just for good order > > ---------- Original Message ----------- > From: Gianluigi > To: Gambas Mailing List > Sent: Sun, 10 Jun 2018 18:06:31 +0200 > Subject: Re: [Gambas-user] sign $ > > > 2018-06-10 17:57 GMT+02:00 Mayost Sharon : > > > > > Hello to you > > > > > > I wanted to know > > > When I declare variables I sometimes see: > > > $ Sign > > > And sometimes not > > > > > > For example, I took part of a section of gb.setting > > > > > > Export > > > Create Static > > > > > > Class Window > > > Class Desktop > > > Class DesktopWindow > > > Class Screens > > > > > > Static Property Read DefaultDir As String > > > > > > Static Private $ sStr As String > > > Static Private $ iPos As Integer > > > > > > Property Read Keys As _Settings_Keys > > > Property Read Path As String > > > > > > Private $ sPath As String > > > Private $ sTitle As String > > > Private $ cSlot As Collection > > > Private $ bModify As Boolean > > > Private $ bModifyAll As Boolean > > > Private $ cModify As Collection > > > > > > And I see that there are functions with a $ sign > > > > > > For example: > > > Format $ > > > or > > > Format without a $ sign > > > > > > Thank you > > > > > > > > You can see here [0] > > > > Gianluigi > > > > [0] http://gambaswiki.org/wiki/doc/namingconvention > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 10 18:45:28 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 19:45:28 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: Message-ID: So, it's 32bit integer. Most likely the library reads only 32 bit from the memory, and thus "long" wont help you. Gambas integer reserves one bit for sign and thus returned values are not correctly displayed in Gambas side. However you can display them correctly by using binary representation. Jussi On Sun, Jun 10, 2018 at 6:38 PM, Demosthenes Koptsis wrote: > hello, > > i want to use an unsigned int in external function, which gambas datatype > should i use? > > Integer or Long? > > The range of values is 0 to 4,294,967,295 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 10 19:00:01 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 20:00:01 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> <184168bc-b8fb-d359-c6a8-7d1ff1c085dc@gmail.com> Message-ID: OK, now everything works! Thanks! Jussi On Sun, Jun 10, 2018 at 6:17 PM, Jussi Lahtinen wrote: > No, I did nothing to the sources. I'll try once more from the beginning. > > > Jussi > > On Sun, Jun 10, 2018 at 6:09 AM, Beno?t Minisini wrote: > >> Le 10/06/2018 ? 00:25, Jussi Lahtinen a ?crit : >> >>> Thanks! >>> However, there are still some minor issues (something weird [apparently >>> nothing critical] + missing file). See attached logs. >>> >>> >>> Jussi >>> >> >> Did you remove 'gb.jit' from the 'order' file? >> >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 19:27:12 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 20:27:12 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: Message-ID: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> i dont understand, i have an external function from libc and i see size_t as datatype. size_t is unsigned integer on function declaration what should i set for size_t, AS Integer or AS Long? for example i have this 'void setbuffer (FILE *stream, char *buf, size_t size) Public Extern setbuffer(stream As Pointer, buf As Pointer, size As Integer) 'FIXME size_t int or long? On 06/10/2018 07:45 PM, Jussi Lahtinen wrote: > So, it's 32bit integer. Most likely the library reads only 32 bit from > the memory, and thus "long" wont help you. > > Gambas integer reserves one bit for sign and thus returned values are > not correctly displayed in Gambas side. > However you can display them correctly by using binary representation. > > > Jussi > > On Sun, Jun 10, 2018 at 6:38 PM, Demosthenes Koptsis > > wrote: > > hello, > > i want to use an unsigned int in external function, which gambas > datatype should i use? > > Integer or Long? > > The range of values is 0 to 4,294,967,295 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jun 10 19:35:13 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 10 Jun 2018 13:35:13 -0400 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> Message-ID: <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> An integer type is obviously not wide enough. I don't know why Jussi said that a long type won't help you. A 'long' is 63+1 bits wide; certainly wide enough to hold a 32-bit unsigned integer. -- Lee On 06/10/2018 01:27 PM, Demosthenes Koptsis wrote: > i dont understand, > > i have an external function from libc and i see size_t as datatype. > > size_t is unsigned integer > > on function declaration what should i set for size_t, AS Integer or AS Long? > > for example i have this > > 'void setbuffer (FILE *stream, char *buf, size_t size) > Public Extern setbuffer(stream As Pointer, buf As Pointer, size As Integer) 'FIXME size_t int or long? > > > On 06/10/2018 07:45 PM, Jussi Lahtinen wrote: >> So, it's 32bit integer. Most likely the library reads only 32 bit from the memory, and thus "long" wont help you. >> >> Gambas integer reserves one bit for sign and thus returned values are not correctly displayed in Gambas side. >> However you can display them correctly by using binary representation. >> >> >> Jussi >> >> On Sun, Jun 10, 2018 at 6:38 PM, Demosthenes Koptsis > wrote: >> >> hello, >> >> i want to use an unsigned int in external function, which gambas datatype should i use? >> >> Integer or Long? >> >> The range of values is 0 to 4,294,967,295 >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From jussi.lahtinen at gmail.com Sun Jun 10 19:39:43 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 20:39:43 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> Message-ID: As integer. Jussi On Sun, Jun 10, 2018 at 8:27 PM, Demosthenes Koptsis wrote: > i dont understand, > > i have an external function from libc and i see size_t as datatype. > > size_t is unsigned integer > > on function declaration what should i set for size_t, AS Integer or AS > Long? > > for example i have this > > 'void setbuffer (FILE *stream, char *buf, size_t size) > Public Extern setbuffer(stream As Pointer, buf As Pointer, size As > Integer) 'FIXME size_t int or long? > > On 06/10/2018 07:45 PM, Jussi Lahtinen wrote: > > So, it's 32bit integer. Most likely the library reads only 32 bit from the > memory, and thus "long" wont help you. > > Gambas integer reserves one bit for sign and thus returned values are not > correctly displayed in Gambas side. > However you can display them correctly by using binary representation. > > > Jussi > > On Sun, Jun 10, 2018 at 6:38 PM, Demosthenes Koptsis < > demosthenesk at gmail.com> wrote: > >> hello, >> >> i want to use an unsigned int in external function, which gambas datatype >> should i use? >> >> Integer or Long? >> >> The range of values is 0 to 4,294,967,295 >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jun 10 19:42:27 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 10 Jun 2018 13:42:27 -0400 Subject: [Gambas-user] Creating a library.... In-Reply-To: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> Message-ID: <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> As I understand it, for final deployment, you should not have a Main module _and_ a library module. The Main module should be your library. For testing, create a new project that uses the compiled library. http://gambaswiki.org/wiki/doc/library For ease of development, you could of course use the two modules as you have done. Then for deployment, move the library module to the Main module and set the project type as Library. -- Lee On 06/10/2018 11:10 AM, Demosthenes Koptsis wrote: > Hello, i want to port to gambas the libc library, so i decided to create a library project. > > i have some questions... > > 1) First i created a new project as a command line project > > 2) i added a module file for all Public Extern functions, named gbLibc > > 3) i have also a Main module for testing purposes. > > i want to ask when a choose from project properties "Library" as project type, i need the Main module? > > Or before i compile the project i need to remove the Main module and have only the gbLibc module? > > How i must setup the project to create a library? > > Thanks. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From jussi.lahtinen at gmail.com Sun Jun 10 19:42:20 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 20:42:20 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: > An integer type is obviously not wide enough. > It is. You need 32 bits and Gambas integer is 32 bits. Gambas just interprets/displays the most significant bit as sign bit. > I don't know why Jussi said that a long type won't help you. A 'long' is > 63+1 bits wide; certainly wide enough to hold a 32-bit > unsigned integer. > Yes, it does hold the value, but you are giving the library more than it can take. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Jun 10 19:48:29 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 10 Jun 2018 13:48:29 -0400 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: On 06/10/2018 01:42 PM, Jussi Lahtinen wrote: > An integer type is obviously not wide enough. > > > It is. You need 32 bits and Gambas integer is 32 bits. Gambas just interprets/displays the most significant bit as sign bit. > > That means that the Gambas integer type is only 31 (+ 1) bits wide. Not wide enough to hold a 32-bit unsigned integer if the highest bit is reserved for the sign bit. So then, if it is wide enough as you say, how would one manage a 32-bit unsigned integer in a 32-bit signed datatype? -- Lee From taboege at gmail.com Sun Jun 10 20:00:09 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 10 Jun 2018 20:00:09 +0200 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: <20180610180009.GI31875@highrise.localdomain> On Sun, 10 Jun 2018, Jussi Lahtinen wrote: > > An integer type is obviously not wide enough. > > > > It is. You need 32 bits and Gambas integer is 32 bits. Gambas just > interprets/displays the most significant bit as sign bit. > I believe the C standard leaves the width of size_t open. When it speaks about "an unsigned integer type", that does not necessarily mean it's *the* "unsigned int" of which we could maybe expect that it's 32 bits wide. FWIW, on my system, size_t is 64 bits wide, like unsigned long and unlike unsigned int: $ echo -e '#include \n #include \n int main(void) { printf("%u\\n", sizeof(size_t)); }' | gcc -x c - && ./a.out 8 Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From taboege at gmail.com Sun Jun 10 20:05:52 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 10 Jun 2018 20:05:52 +0200 Subject: [Gambas-user] Creating a library.... In-Reply-To: <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> Message-ID: <20180610180552.GJ31875@highrise.localdomain> On Sun, 10 Jun 2018, T Lee Davidson wrote: > As I understand it, for final deployment, you should not have a Main module _and_ a library module. The Main module should be > your library. For testing, create a new project that uses the compiled library. > I'm not sure if I subscribe to that, even though I've never formally written a library, only components. Try running the gb.form component (yes, you read that right): $ /usr/lib/gambas3/gb.form.gambas Even though it is an official component, which is as deployed as it gets, it still contains a test class as its startup class. If the .gambas file is used like a component, it doesn't matter what its startup class is; only the exported classes matter. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From demosthenesk at gmail.com Sun Jun 10 20:05:57 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:05:57 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: size_t in c holds values 0 to 4,294,967,295 gambas integer holds -2.147.483.648...+2.147.483.647 gambas long holds -9.223.372.036.854.775.808...+9.223.372.036.854.775.807 so i thing long is the correct choice. Although, long is 8 bytes and size_t is 4 bytes Will be there any issue if i use 8 bytes long in place of 4 byte datatype? On 06/10/2018 08:48 PM, T Lee Davidson wrote: > On 06/10/2018 01:42 PM, Jussi Lahtinen wrote: >> An integer type is obviously not wide enough. >> >> >> It is. You need 32 bits and Gambas integer is 32 bits. Gambas just interprets/displays the most significant bit as sign bit. >> >> > That means that the Gambas integer type is only 31 (+ 1) bits wide. Not wide enough to hold a 32-bit unsigned integer if the > highest bit is reserved for the sign bit. > > So then, if it is wide enough as you say, how would one manage a 32-bit unsigned integer in a 32-bit signed datatype? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Jun 10 20:15:38 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 10 Jun 2018 20:15:38 +0200 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: <20180610181538.GK31875@highrise.localdomain> On Sun, 10 Jun 2018, Demosthenes Koptsis wrote: > Although, long is 8 bytes and size_t is 4 bytes size_t can be 8 bytes as well. See my last mail. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From demosthenesk at gmail.com Sun Jun 10 20:10:01 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:10:01 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <20180610180552.GJ31875@highrise.localdomain> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> <20180610180552.GJ31875@highrise.localdomain> Message-ID: <6ef1a149-d76c-36de-d21c-267d245a9bf6@gmail.com> i use a module not a class. the easy way is to copy/insert the gbLibc module file to your project and start using it. the other way is to compile it as library not component. this is my question. In a library project do we need Main module (i use command line project)? On 06/10/2018 09:05 PM, Tobias Boege wrote: > On Sun, 10 Jun 2018, T Lee Davidson wrote: >> As I understand it, for final deployment, you should not have a Main module _and_ a library module. The Main module should be >> your library. For testing, create a new project that uses the compiled library. >> > I'm not sure if I subscribe to that, even though I've never formally written > a library, only components. Try running the gb.form component (yes, you read > that right): > > $ /usr/lib/gambas3/gb.form.gambas > > Even though it is an official component, which is as deployed as it gets, > it still contains a test class as its startup class. If the .gambas file > is used like a component, it doesn't matter what its startup class is; > only the exported classes matter. > > Regards, > Tobi > From jussi.lahtinen at gmail.com Sun Jun 10 20:10:29 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 21:10:29 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: > > That means that the Gambas integer type is only 31 (+ 1) bits wide. Not > wide enough to hold a 32-bit unsigned integer if the > highest bit is reserved for the sign bit. > > So then, if it is wide enough as you say, how would one manage a 32-bit > unsigned integer in a 32-bit signed datatype? > They both contain 32bits of information, unsigned or not. Signed integer only means that the most significant bit is reserved for the sign. When the library reads the signed value, it ignores the original meaning of the most significant bit, because it assumes it as unsigned. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 20:11:04 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:11:04 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <20180610181538.GK31875@highrise.localdomain> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <20180610181538.GK31875@highrise.localdomain> Message-ID: <1a472b01-63ce-a62b-d5fc-24d8cc82ad6c@gmail.com> yes it depends fro gcc if it is 32bit or 64bit. mine is 32bit and gives as result 4 bytes. On 06/10/2018 09:15 PM, Tobias Boege wrote: > On Sun, 10 Jun 2018, Demosthenes Koptsis wrote: >> Although, long is 8 bytes and size_t is 4 bytes > size_t can be 8 bytes as well. See my last mail. > From jussi.lahtinen at gmail.com Sun Jun 10 20:13:04 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 21:13:04 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <20180610180009.GI31875@highrise.localdomain> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <20180610180009.GI31875@highrise.localdomain> Message-ID: Very good point. However, the OP gave the expected range, which is for 32 bits. Jussi On Sun, Jun 10, 2018 at 9:00 PM, Tobias Boege wrote: > On Sun, 10 Jun 2018, Jussi Lahtinen wrote: > > > An integer type is obviously not wide enough. > > > > > > > It is. You need 32 bits and Gambas integer is 32 bits. Gambas just > > interprets/displays the most significant bit as sign bit. > > > > I believe the C standard leaves the width of size_t open. When it speaks > about "an unsigned integer type", that does not necessarily mean it's > *the* "unsigned int" of which we could maybe expect that it's 32 bits wide. > > FWIW, on my system, size_t is 64 bits wide, like unsigned long and unlike > unsigned int: > > $ echo -e '#include \n #include \n int main(void) { > printf("%u\\n", sizeof(size_t)); }' | gcc -x c - && ./a.out > 8 > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 10 20:18:35 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 21:18:35 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: Lee, if you don't believe me try this: Make a library with following code: unsigned int TakeAndReturn(unsigned int value) { return value; } Then from Gambas: Private Extern TakeAndReturn(value As Integer) As Integer In "libTest" '... or what ever Print Bin(TakeAndReturn(2 ^ 32), 32) You get the expected value: 10000000000000000000000000000000 Then try it as long: Private Extern TakeAndReturn(value As Long) As Long In "liblibTest" If you don't get crash, you will get wrong result. However it might work with small values. Jussi On Sun, Jun 10, 2018 at 8:48 PM, T Lee Davidson wrote: > On 06/10/2018 01:42 PM, Jussi Lahtinen wrote: > > An integer type is obviously not wide enough. > > > > > > It is. You need 32 bits and Gambas integer is 32 bits. Gambas just > interprets/displays the most significant bit as sign bit. > > > > > > That means that the Gambas integer type is only 31 (+ 1) bits wide. Not > wide enough to hold a 32-bit unsigned integer if the > highest bit is reserved for the sign bit. > > So then, if it is wide enough as you say, how would one manage a 32-bit > unsigned integer in a 32-bit signed datatype? > > > -- > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 20:20:41 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:20:41 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: <1c8b8917-a22f-3aeb-7f6d-bac8bd3d96a6@gmail.com> so your advice is to use Integer not Long. is this right? On 06/10/2018 09:10 PM, Jussi Lahtinen wrote: > > That means that the Gambas integer type is only 31 (+ 1) bits > wide. Not wide enough to hold a 32-bit unsigned integer if the > highest bit is reserved for the sign bit. > > So then, if it is wide enough as you say, how would one manage a > 32-bit unsigned integer in a 32-bit signed datatype? > > > They both contain 32bits of information, unsigned or not. Signed > integer only means that the most significant bit is reserved for the sign. > When the library reads the signed value, it ignores the original > meaning of the most significant bit, because it assumes it as unsigned. > > > Jussi > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Jun 10 20:24:21 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 10 Jun 2018 20:24:21 +0200 Subject: [Gambas-user] Creating a library.... In-Reply-To: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> Message-ID: <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> Am 10.06.2018 um 17:10 schrieb Demosthenes Koptsis: > Hello, i want to port to gambas the libc library, so i decided to create > a library project. > > i have some questions... > > 1) First i created a new project as a command line project > > 2) i added a module file for all Public Extern functions, named gbLibc > > 3) i have also a Main module for testing purposes. > > i want to ask when a choose from project properties "Library" as project > type, i need the Main module? No. > Or before i compile the project i need to remove the Main module and > have only the gbLibc module? > > How i must setup the project to create a library? Flag the project as library and give it a vendor name. Every class or module that has to bee seen from outside (in other projects) must contain the word "Export" in the beginning. Only public methods can be used in other projects. If it is compiled, the IDE will install it locally in the dir ~/.local/share/gambas3/lib/vendorname From now on you can see it in the library tab of the project dialog of other projects. In other projects that will rely on the lib every exported class or module will be seen and can be accessed as Classname.PublicMethod(...) If cou create an installation package for a Linux distro then the library will be installed in /usr/lib/gambas3/vendorname 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 jussi.lahtinen at gmail.com Sun Jun 10 20:27:40 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 21:27:40 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <1c8b8917-a22f-3aeb-7f6d-bac8bd3d96a6@gmail.com> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <1c8b8917-a22f-3aeb-7f6d-bac8bd3d96a6@gmail.com> Message-ID: Use interger, otherwise you will start to experience random unexpected behaviour. However, keep in mind that passing values from Gambas greater, than 31bit may not be straightforward (they look like negative values in Gambas). Jussi On Sun, Jun 10, 2018 at 9:20 PM, Demosthenes Koptsis wrote: > so your advice is to use Integer not Long. > > is this right? > > On 06/10/2018 09:10 PM, Jussi Lahtinen wrote: > > That means that the Gambas integer type is only 31 (+ 1) bits wide. Not >> wide enough to hold a 32-bit unsigned integer if the >> highest bit is reserved for the sign bit. >> >> So then, if it is wide enough as you say, how would one manage a 32-bit >> unsigned integer in a 32-bit signed datatype? >> > > They both contain 32bits of information, unsigned or not. Signed integer > only means that the most significant bit is reserved for the sign. > When the library reads the signed value, it ignores the original meaning > of the most significant bit, because it assumes it as unsigned. > > > Jussi > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 20:29:26 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:29:26 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> Message-ID: <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> EXPORT This keyword, when placed alone at the beginning of a class file declares the class as/exported/. i use a Module not a Class file. Should i use a class? On 06/10/2018 09:24 PM, Christof Thalhofer wrote: > Am 10.06.2018 um 17:10 schrieb Demosthenes Koptsis: >> Hello, i want to port to gambas the libc library, so i decided to create >> a library project. >> >> i have some questions... >> >> 1) First i created a new project as a command line project >> >> 2) i added a module file for all Public Extern functions, named gbLibc >> >> 3) i have also a Main module for testing purposes. >> >> i want to ask when a choose from project properties "Library" as project >> type, i need the Main module? > No. > >> Or before i compile the project i need to remove the Main module and >> have only the gbLibc module? >> >> How i must setup the project to create a library? > Flag the project as library and give it a vendor name. > > Every class or module that has to bee seen from outside (in other > projects) must contain the word "Export" in the beginning. > > Only public methods can be used in other projects. > > If it is compiled, the IDE will install it locally in the dir > > ~/.local/share/gambas3/lib/vendorname > > From now on you can see it in the library tab of the project dialog of > other projects. > > In other projects that will rely on the lib every exported class or > module will be seen and can be accessed as > > Classname.PublicMethod(...) > > If cou create an installation package for a Linux distro then the > library will be installed in > > /usr/lib/gambas3/vendorname > > Alles Gute > > Christof Thalhofer > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 20:30:06 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:30:06 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <1c8b8917-a22f-3aeb-7f6d-bac8bd3d96a6@gmail.com> Message-ID: Thanks Jussi! On 06/10/2018 09:27 PM, Jussi Lahtinen wrote: > Use interger, otherwise you will start to experience random unexpected > behaviour. > However, keep in mind that passing values from Gambas greater, than > 31bit may not be straightforward (they look like negative values in > Gambas). > > > Jussi > > On Sun, Jun 10, 2018 at 9:20 PM, Demosthenes Koptsis > > wrote: > > so your advice is to use Integer not Long. > > is this right? > > > On 06/10/2018 09:10 PM, Jussi Lahtinen wrote: >> >> That means that the Gambas integer type is only 31 (+ 1) bits >> wide. Not wide enough to hold a 32-bit unsigned integer if the >> highest bit is reserved for the sign bit. >> >> So then, if it is wide enough as you say, how would one >> manage a 32-bit unsigned integer in a 32-bit signed datatype? >> >> >> They both contain 32bits of information, unsigned or not. Signed >> integer only means that the most significant bit is reserved for >> the sign. >> When the library reads the signed value, it ignores the original >> meaning of the most significant bit, because it assumes it as >> unsigned. >> >> >> Jussi >> >> >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jun 10 20:31:23 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 Jun 2018 20:31:23 +0200 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: Message-ID: <3cea1f90-efe1-24b6-f7bd-24557bb710f7@gmail.com> Le 10/06/2018 ? 17:38, Demosthenes Koptsis a ?crit?: > hello, > > i want to use an unsigned int in external function, which gambas > datatype should i use? > > Integer or Long? > > The range of values is 0 to 4,294,967,295 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > . You must use the Integer datatype. Then if you want to get the real unsigned integer value, as there is no UnsignedInteger datatype in Gambas (sorry for that), you have to do this trick: Public Sub UnsignedIntegerToLong(X As Integer) As Long Return CLong(X) And (Lsl(1, 32) - 1) End Public Sub LongToUnsignedIntegerToLong(X As Integer) As Integer Return X End -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Jun 10 20:35:30 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 21:35:30 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> Message-ID: You can export modules also (they really are classes). Jussi On Sun, Jun 10, 2018 at 9:29 PM, Demosthenes Koptsis wrote: > EXPORT > > This keyword, when placed alone at the beginning of a class file declares > the class as *exported*. > i use a Module not a Class file. > Should i use a class? > > > > On 06/10/2018 09:24 PM, Christof Thalhofer wrote: > > Am 10.06.2018 um 17:10 schrieb Demosthenes Koptsis: > > Hello, i want to port to gambas the libc library, so i decided to create > a library project. > > i have some questions... > > 1) First i created a new project as a command line project > > 2) i added a module file for all Public Extern functions, named gbLibc > > 3) i have also a Main module for testing purposes. > > i want to ask when a choose from project properties "Library" as project > type, i need the Main module? > > No. > > > Or before i compile the project i need to remove the Main module and > have only the gbLibc module? > > How i must setup the project to create a library? > > Flag the project as library and give it a vendor name. > > Every class or module that has to bee seen from outside (in other > projects) must contain the word "Export" in the beginning. > > Only public methods can be used in other projects. > > If it is compiled, the IDE will install it locally in the dir > > ~/.local/share/gambas3/lib/vendorname > > From now on you can see it in the library tab of the project dialog of > other projects. > > In other projects that will rely on the lib every exported class or > module will be seen and can be accessed as > > Classname.PublicMethod(...) > > If cou create an installation package for a Linux distro then the > library will be installed in > > /usr/lib/gambas3/vendorname > > Alles Gute > > Christof Thalhofer > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 20:44:46 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:44:46 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <3cea1f90-efe1-24b6-f7bd-24557bb710f7@gmail.com> References: <3cea1f90-efe1-24b6-f7bd-24557bb710f7@gmail.com> Message-ID: <96eb39fa-41dc-dbab-d548-4d6531742e57@gmail.com> Thanks Beno?t ! On 06/10/2018 09:31 PM, Beno?t Minisini wrote: > Le 10/06/2018 ? 17:38, Demosthenes Koptsis a ?crit?: >> hello, >> >> i want to use an unsigned int in external function, which gambas >> datatype should i use? >> >> Integer or Long? >> >> The range of values is 0 to 4,294,967,295 >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> . > > You must use the Integer datatype. > > Then if you want to get the real unsigned integer value, as there is > no UnsignedInteger datatype in Gambas (sorry for that), you have to do > this trick: > > Public Sub UnsignedIntegerToLong(X As Integer) As Long > > ? Return CLong(X) And (Lsl(1, 32) - 1) > > End > > Public Sub LongToUnsignedIntegerToLong(X As Integer) As Integer > > ? Return X > > End > From demosthenesk at gmail.com Sun Jun 10 20:47:01 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 21:47:01 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> Message-ID: ok! the Main module file should i keep it? Or remove it? Now i just keep it for testing the gbLibc module with external functions. The final lib should have a Main module? On 06/10/2018 09:35 PM, Jussi Lahtinen wrote: > You can export modules also (they really are classes). > > > Jussi > > On Sun, Jun 10, 2018 at 9:29 PM, Demosthenes Koptsis > > wrote: > > EXPORT > > This keyword, when placed alone at the beginning of a class file > declares the class as/exported/. > > i use a Module not a Class file. > Should i use a class? > > > > On 06/10/2018 09:24 PM, Christof Thalhofer wrote: >> Am 10.06.2018 um 17:10 schrieb Demosthenes Koptsis: >>> Hello, i want to port to gambas the libc library, so i decided to create >>> a library project. >>> >>> i have some questions... >>> >>> 1) First i created a new project as a command line project >>> >>> 2) i added a module file for all Public Extern functions, named gbLibc >>> >>> 3) i have also a Main module for testing purposes. >>> >>> i want to ask when a choose from project properties "Library" as project >>> type, i need the Main module? >> No. >> >>> Or before i compile the project i need to remove the Main module and >>> have only the gbLibc module? >>> >>> How i must setup the project to create a library? >> Flag the project as library and give it a vendor name. >> >> Every class or module that has to bee seen from outside (in other >> projects) must contain the word "Export" in the beginning. >> >> Only public methods can be used in other projects. >> >> If it is compiled, the IDE will install it locally in the dir >> >> ~/.local/share/gambas3/lib/vendorname >> >> From now on you can see it in the library tab of the project dialog of >> other projects. >> >> In other projects that will rely on the lib every exported class or >> module will be seen and can be accessed as >> >> Classname.PublicMethod(...) >> >> If cou create an installation package for a Linux distro then the >> library will be installed in >> >> /usr/lib/gambas3/vendorname >> >> Alles Gute >> >> Christof Thalhofer >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Jun 10 21:01:12 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 10 Jun 2018 21:01:12 +0200 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> Message-ID: <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> Am 10.06.2018 um 20:47 schrieb Demosthenes Koptsis: > ok! > > the Main module file should i keep it? Or remove it? If you need it for tests, keep it. 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 demosthenesk at gmail.com Sun Jun 10 21:09:13 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 22:09:13 +0300 Subject: [Gambas-user] abs as external function Message-ID: <4276e7c6-7905-66b9-7d40-b8f3797ac240@gmail.com> is this correct? 'int abs (int number) Public Extern {abs}(number As Integer) As Integer From demosthenesk at gmail.com Sun Jun 10 21:12:08 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 22:12:08 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> Message-ID: <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> Libraries do they need a Main module to work? My library project can be only one module file (without Main) with EXPORT keyword at the begining? On 06/10/2018 10:01 PM, Christof Thalhofer wrote: > Am 10.06.2018 um 20:47 schrieb Demosthenes Koptsis: >> ok! >> >> the Main module file should i keep it? Or remove it? > If you need it for tests, keep it. > > > Alles Gute > > Christof Thalhofer > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 21:25:06 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 22:25:06 +0300 Subject: [Gambas-user] BUG at external abs function Message-ID: <32919093-70a6-4811-5542-2c223b2c8b08@gmail.com> Hello, i have from libc the abs function in a module gbLibc as 'int abs (int number) Public Extern {abs}(number As Integer) As Integer in Main file i have ' Gambas module file Public Sub Main() Dim x As Integer = -1 Dim a As Integer a = gbLibc.abs(x) Print a End The bug concerns the auto complete system. when i type a=gbLibc. the help preview is wrong, missing the number parameter Also when i hit to autocomplete the number parameter is missing Although i can pass a parameter in abs and it works. i attach the project with the bug -------------- next part -------------- A non-text attachment was scrubbed... Name: gbLibc.tar.gz Type: application/gzip Size: 30254 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Jun 10 21:30:00 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 22:30:00 +0300 Subject: [Gambas-user] abs as external function In-Reply-To: <4276e7c6-7905-66b9-7d40-b8f3797ac240@gmail.com> References: <4276e7c6-7905-66b9-7d40-b8f3797ac240@gmail.com> Message-ID: Yes, but why bother? Gambas already has abs(). Jussi On Sun, Jun 10, 2018 at 10:09 PM, Demosthenes Koptsis < demosthenesk at gmail.com> wrote: > is this correct? > > 'int abs (int number) > Public Extern {abs}(number As Integer) As Integer > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 10 21:31:24 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 22:31:24 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> Message-ID: You mean Main sub? Keep it if you need it, but it's not required. Jussi On Sun, Jun 10, 2018 at 10:12 PM, Demosthenes Koptsis < demosthenesk at gmail.com> wrote: > Libraries do they need a Main module to work? > > My library project can be only one module file (without Main) with EXPORT > keyword at the begining? > > On 06/10/2018 10:01 PM, Christof Thalhofer wrote: > > Am 10.06.2018 um 20:47 schrieb Demosthenes Koptsis: > > ok! > > the Main module file should i keep it? Or remove it? > > If you need it for tests, keep it. > > > Alles Gute > > Christof Thalhofer > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 21:44:05 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 22:44:05 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> Message-ID: the Main Sub is in file Main.module can i remove Main.module from library? i have two file Main.module and gbLibc.module. On 06/10/2018 10:31 PM, Jussi Lahtinen wrote: > You mean Main sub? Keep it if you need it, but it's not required. > > > Jussi > > On Sun, Jun 10, 2018 at 10:12 PM, Demosthenes Koptsis > > wrote: > > Libraries do they need a Main module to work? > > My library project can be only one module file (without Main) with > EXPORT keyword at the begining? > > > On 06/10/2018 10:01 PM, Christof Thalhofer wrote: >> Am 10.06.2018 um 20:47 schrieb Demosthenes Koptsis: >>> ok! >>> >>> the Main module file should i keep it? Or remove it? >> If you need it for tests, keep it. >> >> >> Alles Gute >> >> Christof Thalhofer >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 10 21:47:11 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 22:47:11 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> <184168bc-b8fb-d359-c6a8-7d1ff1c085dc@gmail.com> Message-ID: OK, the generated C code is readable, but definitely not easy to read! You really need to know a lot to be able to contribute to the JIT. I tried it with my big project, but no luck. Obviously still work in progress. Jussi On Sun, Jun 10, 2018 at 8:00 PM, Jussi Lahtinen wrote: > OK, now everything works! > Thanks! > > > Jussi > > On Sun, Jun 10, 2018 at 6:17 PM, Jussi Lahtinen > wrote: > >> No, I did nothing to the sources. I'll try once more from the beginning. >> >> >> Jussi >> >> On Sun, Jun 10, 2018 at 6:09 AM, Beno?t Minisini >> wrote: >> >>> Le 10/06/2018 ? 00:25, Jussi Lahtinen a ?crit : >>> >>>> Thanks! >>>> However, there are still some minor issues (something weird [apparently >>>> nothing critical] + missing file). See attached logs. >>>> >>>> >>>> Jussi >>>> >>> >>> Did you remove 'gb.jit' from the 'order' file? >>> >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 10 21:48:41 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 22:48:41 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> Message-ID: You can (of course, if all the library code is independent of it), but no need. Jussi On Sun, Jun 10, 2018 at 10:44 PM, Demosthenes Koptsis < demosthenesk at gmail.com> wrote: > the Main Sub is in file Main.module > > can i remove Main.module from library? > > i have two file Main.module and gbLibc.module. > > On 06/10/2018 10:31 PM, Jussi Lahtinen wrote: > > You mean Main sub? Keep it if you need it, but it's not required. > > > Jussi > > On Sun, Jun 10, 2018 at 10:12 PM, Demosthenes Koptsis < > demosthenesk at gmail.com> wrote: > >> Libraries do they need a Main module to work? >> >> My library project can be only one module file (without Main) with EXPORT >> keyword at the begining? >> >> On 06/10/2018 10:01 PM, Christof Thalhofer wrote: >> >> Am 10.06.2018 um 20:47 schrieb Demosthenes Koptsis: >> >> ok! >> >> the Main module file should i keep it? Or remove it? >> >> If you need it for tests, keep it. >> >> >> Alles Gute >> >> Christof Thalhofer >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Jun 10 21:52:07 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 10 Jun 2018 21:52:07 +0200 Subject: [Gambas-user] Creating a library.... In-Reply-To: <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> Message-ID: <00a49030-9c64-643c-397b-bee4b1beea3b@deganius.de> Am 10.06.2018 um 21:12 schrieb Demosthenes Koptsis: > Libraries do they need a Main module to work? Please read my first answer. Why are you questioning the same again??? 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 demosthenesk at gmail.com Sun Jun 10 21:52:22 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 22:52:22 +0300 Subject: [Gambas-user] abs as external function In-Reply-To: References: <4276e7c6-7905-66b9-7d40-b8f3797ac240@gmail.com> Message-ID: <7c4f9818-4b7f-3f38-d62b-01d64d86b2b2@gmail.com> just for compatibility of porting libc there are int abs, long abs, single abs, float abs Gambas abs is only for floats not great function but it gave us the bug to autocomplete system! On 06/10/2018 10:30 PM, Jussi Lahtinen wrote: > Yes, but why bother? Gambas already has abs(). > > > Jussi > > On Sun, Jun 10, 2018 at 10:09 PM, Demosthenes Koptsis > > wrote: > > is this correct? > > 'int abs (int number) > Public Extern {abs}(number As Integer) As Integer > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 21:53:07 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 22:53:07 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> Message-ID: <78cea7eb-9464-04a5-d73f-938aba2a9bc7@gmail.com> Thanks Jussi! On 06/10/2018 10:48 PM, Jussi Lahtinen wrote: > You can (of course, if all the library code is independent of it), but > no need. > > > Jussi > > On Sun, Jun 10, 2018 at 10:44 PM, Demosthenes Koptsis > > wrote: > > the Main Sub is in file Main.module > > can i remove Main.module from library? > > i have two file Main.module and gbLibc.module. > > > On 06/10/2018 10:31 PM, Jussi Lahtinen wrote: >> You mean Main sub? Keep it if you need it, but it's not required. >> >> >> Jussi >> >> On Sun, Jun 10, 2018 at 10:12 PM, Demosthenes Koptsis >> > wrote: >> >> Libraries do they need a Main module to work? >> >> My library project can be only one module file (without Main) >> with EXPORT keyword at the begining? >> >> >> On 06/10/2018 10:01 PM, Christof Thalhofer wrote: >>> Am 10.06.2018 um 20:47 schrieb Demosthenes Koptsis: >>>> ok! >>>> >>>> the Main module file should i keep it? Or remove it? >>> If you need it for tests, keep it. >>> >>> >>> Alles Gute >>> >>> Christof Thalhofer >>> >>> >>> >>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- >> >> >> >> ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net ]---- >> >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 10 21:56:45 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 10 Jun 2018 22:56:45 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <00a49030-9c64-643c-397b-bee4b1beea3b@deganius.de> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> <00a49030-9c64-643c-397b-bee4b1beea3b@deganius.de> Message-ID: <37fbe753-dc6c-7ab0-40aa-78d8cf36cf3b@gmail.com> Now all are clear, i can use EXPORT also in modules and i dont need the Main.module. Your advice is ok i will follow it. Thanks Christof On 06/10/2018 10:52 PM, Christof Thalhofer wrote: > Am 10.06.2018 um 21:12 schrieb Demosthenes Koptsis: > >> Libraries do they need a Main module to work? > Please read my first answer. Why are you questioning the same again??? > > > Alles Gute > > Christof Thalhofer > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Jun 10 21:59:19 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 22:59:19 +0300 Subject: [Gambas-user] abs as external function In-Reply-To: <7c4f9818-4b7f-3f38-d62b-01d64d86b2b2@gmail.com> References: <4276e7c6-7905-66b9-7d40-b8f3797ac240@gmail.com> <7c4f9818-4b7f-3f38-d62b-01d64d86b2b2@gmail.com> Message-ID: Gambas does the conversions for you, thus interger and long are just subsets of float. In C that is completely different thing. In other words, Gambas Abs does everything what int abs, long abs and float abs combined does in C. Jussi On Sun, Jun 10, 2018 at 10:52 PM, Demosthenes Koptsis < demosthenesk at gmail.com> wrote: > just for compatibility of porting libc > > there are int abs, long abs, single abs, float abs > > Gambas abs is only for floats > > not great function but it gave us the bug to autocomplete system! > > On 06/10/2018 10:30 PM, Jussi Lahtinen wrote: > > Yes, but why bother? Gambas already has abs(). > > > Jussi > > On Sun, Jun 10, 2018 at 10:09 PM, Demosthenes Koptsis < > demosthenesk at gmail.com> wrote: > >> is this correct? >> >> 'int abs (int number) >> Public Extern {abs}(number As Integer) As Integer >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Jun 10 22:04:52 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 10 Jun 2018 22:04:52 +0200 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> <184168bc-b8fb-d359-c6a8-7d1ff1c085dc@gmail.com> Message-ID: <491796ee-da17-c5cd-4c9c-5dd79e3e0599@gmail.com> Le 10/06/2018 ? 21:47, Jussi Lahtinen a ?crit?: > OK, the generated C code is readable, but definitely not easy to read! > You really need to know a lot to be able to contribute to the JIT It's a lot of macros defined in the 'jit.h' and 'gambas.h' file located in gb.jit, and directly put at the start of the C file. Of course you have to know how the interpreter works to understand the code. The C compiler is used there as a sophisticated assembler. It's not really C. > > I tried it with my big project, but no luck. Obviously still work in > progress. > > > Jussi > You must use GB_JIT_DEBUG=1 and run your project from the command-line. That way, you will know if there is a unimplemented bytecode or a crash (i.e. bad C code). Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Sun Jun 10 22:15:29 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 10 Jun 2018 23:15:29 +0300 Subject: [Gambas-user] New Just-in-time system (2) In-Reply-To: <491796ee-da17-c5cd-4c9c-5dd79e3e0599@gmail.com> References: <6b4f2b6d-1caa-f4f3-a935-7eb4c05a42c8@gmail.com> <71a41ce4-6452-3b70-0680-e7d17decf5da@gmail.com> <184168bc-b8fb-d359-c6a8-7d1ff1c085dc@gmail.com> <491796ee-da17-c5cd-4c9c-5dd79e3e0599@gmail.com> Message-ID: > It's a lot of macros defined in the 'jit.h' and 'gambas.h' file located in > gb.jit, and directly put at the start of the C file. > Yes, I noticed. > Of course you have to know how the interpreter works to understand the > code. > Well, example generated C code for "for to" loops are easy to understand. But messy for human eye! The C compiler is used there as a sophisticated assembler. It's not really > C. > Also noticed the similarity. You must use GB_JIT_DEBUG=1 and run your project from the command-line. > That way, you will know if there is a unimplemented bytecode or a crash > (i.e. bad C code). > I did not run it from command line, nor did I used the debug on that. I just got wrongly identified variable types (X was given, expected Y). I'm quite sure it is not fruitful to report any of that yet. It's very probably about unimplemented stuff. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sun Jun 10 23:36:06 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sun, 10 Jun 2018 23:36:06 +0200 Subject: [Gambas-user] Code Editor Does Not Edit In-Reply-To: References: <0181d3e0-e722-841f-a91d-a57489b1936a@gmail.com> Message-ID: https://www.binarytides.com/install-gnome-flashback-ubuntu/ Le mer. 6 juin 2018 ? 13:23, Beno?t Minisini a ?crit : > Le 06/06/2018 ? 13:05, Carlos Valente a ?crit : > > Hi, > > > > I made a little confusion with the address of the list, but now I > > put (I think) the correct list (Sorry for the failure PICCORO McKAY) > > > > I installed Gambas3 version 3.11.90 on my PC Desktop, running > > Ubuntu 16.04.4. When I open a new project or edit an existing project, I > > can not change / type anything in the code through the Gambas3 editor. > > The project files and folders are fully read and write (777) and the > > Lock key is open. If I create a project through the root user, I can > > edit it normally. If I run Gambas3 on a VM (like VirtualBox) I can edit > > it normally (with my user and as root). > > > > My system information: https://pastebin.com/ygC8Wg3P > > > > Ubuntu 16.04.4, runing gnome flashback interface > > > > > > assinatura > > > > Regards, > > > > Carlos Valente > > > > Your desktop is "GNOME-FLASHBACK:UNITY". What's that? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Sun Jun 10 23:29:36 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sun, 10 Jun 2018 23:29:36 +0200 Subject: [Gambas-user] abs as external function In-Reply-To: References: <4276e7c6-7905-66b9-7d40-b8f3797ac240@gmail.com> <7c4f9818-4b7f-3f38-d62b-01d64d86b2b2@gmail.com> Message-ID: When the identifier of an external function coincides with the identifier of a Gambas function, it is necessary to change the name of the external function and to use Exec. Ad exemplum: ' int abs (int number) Public Extern abs_C(number As Integer) As Integer Exec "abs" You use the name abs_C, but tell Gambas that it has to use the real abs () function. Il 10.06.2018 21:59 Jussi Lahtinen ha scritto: > Gambas does the conversions for you, thus interger and long are just subsets of float. In C that is completely different thing. > In other words, Gambas Abs does everything what int abs, long abs and float abs combined does in C. > Jussi > > On Sun, Jun 10, 2018 at 10:52 PM, Demosthenes Koptsis wrote: > >> just for compatibility of porting libc >> >> there are int abs, long abs, single abs, float abs >> >> Gambas abs is only for floats >> >> not great function but it gave us the bug to autocomplete system! >> >> On 06/10/2018 10:30 PM, Jussi Lahtinen wrote: >> >>> Yes, but why bother? Gambas already has abs(). >>> Jussi >>> >>> On Sun, Jun 10, 2018 at 10:09 PM, Demosthenes Koptsis wrote: >>> >>>> is this correct? >>>> >>>> 'int abs (int number) >>>> Public Extern {abs}(number As Integer) As Integer >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [1] ]---- >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [3] ]---- >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [4] ]---- 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 demosthenesk at gmail.com Mon Jun 11 05:52:20 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 06:52:20 +0300 Subject: [Gambas-user] abs as external function In-Reply-To: References: <4276e7c6-7905-66b9-7d40-b8f3797ac240@gmail.com> <7c4f9818-4b7f-3f38-d62b-01d64d86b2b2@gmail.com> Message-ID: <510722d7-8934-a5b2-3a58-d2f29622d230@gmail.com> yes you are right, thank you! On 06/11/2018 12:29 AM, vuott at tiscali.it wrote: > When the identifier of an external function coincides with the > identifier of a Gambas function, it is necessary to change the name of > the external function and to use Exec. > > Ad exemplum: > > ' int abs (int number) > Public Extern abs_C(number As Integer) As Integer Exec "abs" > > You use the name abs_C, but tell Gambas that it has to use the real > abs () function. > > > > Il 10.06.2018 21:59 Jussi Lahtinen ha scritto: > >> Gambas does the conversions for you, thus interger and long are just >> subsets of float. In C that is completely different thing. >> In other words, Gambas Abs does everything what int abs, long abs and >> float abs combined does in C. >> Jussi >> >> On Sun, Jun 10, 2018 at 10:52 PM, Demosthenes Koptsis >> > wrote: >> >> just for compatibility of porting libc >> >> there are int abs, long abs, single abs, float abs >> >> Gambas abs is only for floats >> >> not great function but it gave us the bug to autocomplete system! >> >> >> On 06/10/2018 10:30 PM, Jussi Lahtinen wrote: >>> Yes, but why bother? Gambas already has abs(). >>> Jussi >>> >>> On Sun, Jun 10, 2018 at 10:09 PM, Demosthenes Koptsis >>> > wrote: >>> >>> is this correct? >>> >>> 'int abs (int number) >>> Public Extern {abs}(number As Integer) As Integer >>> >>> >>> ----[ Gambas mailing-list is hosted by >>> https://www.hostsharing.net ]---- >>> >>> >>> >>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- >> >> >> ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net ]---- >> > > > > 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 > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Mon Jun 11 06:29:48 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 07:29:48 +0300 Subject: [Gambas-user] comments of autocomplete Message-ID: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> hello, when we write a gambas function in editor the autocomplete system shows a preview of the function with comments from the help wiki. in my library functions can i add comments which they are been shown on autocomplete. For now only the function declaration is shown without any help comments. Thanks Dim From demosthenesk at gmail.com Mon Jun 11 06:40:12 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 07:40:12 +0300 Subject: [Gambas-user] cannot find symbol sinh in libc Message-ID: hello, according https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions i have this external function 'double sinh (double x) Public Extern sinh_C(x As Float) As Float Exec "sinh" but i get the error "cannot find symbol sinh in libc" why? From chrisml at deganius.de Mon Jun 11 09:13:52 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 11 Jun 2018 09:13:52 +0200 Subject: [Gambas-user] Creating a library.... In-Reply-To: <37fbe753-dc6c-7ab0-40aa-78d8cf36cf3b@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <9e5823c1-58c1-10be-550f-8e1a9a7e5217@deganius.de> <9b1b6267-821d-3875-181a-cfa7ff89811d@gmail.com> <581fd927-59ee-6bc1-ac65-21725d3725f0@deganius.de> <5582438c-9678-09a8-8a7a-7e7dd55cdb89@gmail.com> <00a49030-9c64-643c-397b-bee4b1beea3b@deganius.de> <37fbe753-dc6c-7ab0-40aa-78d8cf36cf3b@gmail.com> Message-ID: <88fa0689-ce22-3b17-de6f-78f657c972f4@deganius.de> Am 10.06.2018 um 21:56 schrieb Demosthenes Koptsis: > Now all are clear, i can use EXPORT also in modules and i dont need the > Main.module. > > Your advice is ok i will follow it. Ok, great :-) If you have any more questions, don't hesitate to ask them. 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 Mon Jun 11 09:21:54 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 11 Jun 2018 09:21:54 +0200 Subject: [Gambas-user] comments of autocomplete In-Reply-To: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> Message-ID: 2018-06-11 6:29 GMT+02:00 Demosthenes Koptsis : > hello, > > when we write a gambas function in editor the autocomplete system shows a > preview of the function with comments from the help wiki. > > in my library functions can i add comments which they are been shown on > autocomplete. > > For now only the function declaration is shown without any help comments. > > Thanks Dim > > > In the Component Class modules, this is done as follows: '' Explain what the property does Property Goofy as String '' Explain what the routine does Public Sub Foo() ... End It could also be the same for libraries Regards Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Mon Jun 11 09:33:53 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 10:33:53 +0300 Subject: [Gambas-user] comments of autocomplete In-Reply-To: References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> Message-ID: <25915eab-2eea-e8c2-da7c-310c80308569@gmail.com> great it works also for libraries, thanks a lot Gianluigi ! On 06/11/2018 10:21 AM, Gianluigi wrote: > > > 2018-06-11 6:29 GMT+02:00 Demosthenes Koptsis >: > > hello, > > when we write a gambas function in editor the autocomplete system > shows a preview of the function with comments from the help wiki. > > in my library functions can i add comments which they are been > shown on autocomplete. > > For now only the function declaration is shown without any help > comments. > > Thanks Dim > > > > In the Component Class modules, this is done as follows: > > '' Explain what the property does > Property Goofy as String > > '' Explain what the routine does > Public Sub Foo() > ? ... > End > > It could also be the same for libraries > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Mon Jun 11 09:39:00 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 10:39:00 +0300 Subject: [Gambas-user] comments of autocomplete In-Reply-To: References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> Message-ID: how write in bold? can i use html in these comments? On 06/11/2018 10:21 AM, Gianluigi wrote: > > > 2018-06-11 6:29 GMT+02:00 Demosthenes Koptsis >: > > hello, > > when we write a gambas function in editor the autocomplete system > shows a preview of the function with comments from the help wiki. > > in my library functions can i add comments which they are been > shown on autocomplete. > > For now only the function declaration is shown without any help > comments. > > Thanks Dim > > > > In the Component Class modules, this is done as follows: > > '' Explain what the property does > Property Goofy as String > > '' Explain what the routine does > Public Sub Foo() > ? ... > End > > It could also be the same for libraries > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Jun 11 09:54:34 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 11 Jun 2018 09:54:34 +0200 Subject: [Gambas-user] comments of autocomplete In-Reply-To: References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> Message-ID: You can use html after the two apostrophes like this: '' Foo 2018-06-11 9:39 GMT+02:00 Demosthenes Koptsis : > how write in bold? can i use html in these comments? > > On 06/11/2018 10:21 AM, Gianluigi wrote: > > > > 2018-06-11 6:29 GMT+02:00 Demosthenes Koptsis : > >> hello, >> >> when we write a gambas function in editor the autocomplete system shows a >> preview of the function with comments from the help wiki. >> >> in my library functions can i add comments which they are been shown on >> autocomplete. >> >> For now only the function declaration is shown without any help comments. >> >> Thanks Dim >> >> >> > In the Component Class modules, this is done as follows: > > '' Explain what the property does > Property Goofy as String > > '' Explain what the routine does > Public Sub Foo() > ... > End > > It could also be the same for libraries > > Regards > Gianluigi > > >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Mon Jun 11 09:56:01 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 10:56:01 +0300 Subject: [Gambas-user] comments of autocomplete In-Reply-To: References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> Message-ID: yes i tried and found it, it works great. Thank you! On 06/11/2018 10:54 AM, Gianluigi wrote: > You can use html after the two apostrophes like this: > '' Foo > > 2018-06-11 9:39 GMT+02:00 Demosthenes Koptsis >: > > how write in bold? can i use html in these comments? > > > On 06/11/2018 10:21 AM, Gianluigi wrote: >> >> >> 2018-06-11 6:29 GMT+02:00 Demosthenes Koptsis >> >: >> >> hello, >> >> when we write a gambas function in editor the autocomplete >> system shows a preview of the function with comments from the >> help wiki. >> >> in my library functions can i add comments which they are >> been shown on autocomplete. >> >> For now only the function declaration is shown without any >> help comments. >> >> Thanks Dim >> >> >> >> In the Component Class modules, this is done as follows: >> >> '' Explain what the property does >> Property Goofy as String >> >> '' Explain what the routine does >> Public Sub Foo() >> ? ... >> End >> >> It could also be the same for libraries >> >> Regards >> Gianluigi >> >> >> ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net ]---- >> >> >> >> >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Mon Jun 11 10:07:02 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 11 Jun 2018 10:07:02 +0200 Subject: [Gambas-user] cannot find symbol sinh in libc In-Reply-To: References: Message-ID: <20180611080702.GM31875@highrise.localdomain> On Mon, 11 Jun 2018, Demosthenes Koptsis wrote: > hello, > > according https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions > > i have this external function > > 'double sinh (double x) > Public Extern sinh_C(x As Float) As Float Exec "sinh" > > but i get the error "cannot find symbol sinh in libc" > > why? > Because it is in libm: Extern my_sinh(f As Float) As Float In "libm:6" Exec "sinh" Print Sinh(20) Print my_sinh(20) >242582597.704895 >242582597.704895 At least on my system, the manpage of sinh tells you to "Link with -lm." Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From demosthenesk at gmail.com Mon Jun 11 10:04:02 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 11:04:02 +0300 Subject: [Gambas-user] cannot find symbol sinh in libc In-Reply-To: <20180611080702.GM31875@highrise.localdomain> References: <20180611080702.GM31875@highrise.localdomain> Message-ID: <4aa1a128-eb3b-1790-a2d1-ef74dafdfa0b@gmail.com> Thanks Tobias! Anyway sinh is documented in glibc manual also, but it is not there as you say. https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions On 06/11/2018 11:07 AM, Tobias Boege wrote: > On Mon, 11 Jun 2018, Demosthenes Koptsis wrote: >> hello, >> >> according https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions >> >> i have this external function >> >> 'double sinh (double x) >> Public Extern sinh_C(x As Float) As Float Exec "sinh" >> >> but i get the error "cannot find symbol sinh in libc" >> >> why? >> > Because it is in libm: > > Extern my_sinh(f As Float) As Float In "libm:6" Exec "sinh" > > Print Sinh(20) > Print my_sinh(20) > > >242582597.704895 > >242582597.704895 > > At least on my system, the manpage of sinh tells you to "Link with -lm." > > Regards, > Tobi > From taboege at gmail.com Mon Jun 11 10:15:03 2018 From: taboege at gmail.com (Tobias Boege) Date: Mon, 11 Jun 2018 10:15:03 +0200 Subject: [Gambas-user] comments of autocomplete In-Reply-To: References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> Message-ID: <20180611081502.GN31875@highrise.localdomain> On Mon, 11 Jun 2018, Gianluigi wrote: > You can use html after the two apostrophes like this: > '' Foo > The help comments are in Gambas markdown. That means you can use HTML, but you shouldn't if you can avoid it. Bold text is **bold**. Look at the documentation: http://gambaswiki.org/wiki/doc/helpcomments Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From vuott at tiscali.it Mon Jun 11 11:17:39 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Mon, 11 Jun 2018 11:17:39 +0200 Subject: [Gambas-user] cannot find symbol sinh in libc In-Reply-To: <4aa1a128-eb3b-1790-a2d1-ef74dafdfa0b@gmail.com> References: <20180611080702.GM31875@highrise.localdomain> <4aa1a128-eb3b-1790-a2d1-ef74dafdfa0b@gmail.com> Message-ID: > ...but it is not there as you say. what do you mean? vuott Il 11.06.2018 10:04 Demosthenes Koptsis ha scritto: > Thanks Tobias! > > Anyway sinh is documented in glibc manual also, but it is not there as > you say. > > https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions [2]On 06/11/2018 11:07 AM, Tobias Boege wrote: > >> On Mon, 11 Jun 2018, Demosthenes Koptsis wrote: >> >>> hello, according https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions [1] i have this external function 'double sinh (double x) Public Extern sinh_C(x As Float) As Float Exec "sinh" but i get the error "cannot find symbol sinh in libc" why? >> Because it is in libm: Extern my_sinh(f As Float) As Float In "libm:6" Exec "sinh" Print Sinh(20) Print my_sinh(20) >> >>> 242582597.704895 242582597.704895 >> At least on my system, the manpage of sinh tells you to "Link with -lm." Regards, Tobi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [3] ]---- 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 bagonergi at gmail.com Mon Jun 11 11:43:59 2018 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 11 Jun 2018 11:43:59 +0200 Subject: [Gambas-user] comments of autocomplete In-Reply-To: <20180611081502.GN31875@highrise.localdomain> References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> <20180611081502.GN31875@highrise.localdomain> Message-ID: 2018-06-11 10:15 GMT+02:00 Tobias Boege : > On Mon, 11 Jun 2018, Gianluigi wrote: > > You can use html after the two apostrophes like this: > > '' Foo > > > > The help comments are in Gambas markdown. That means you can use HTML, > but you shouldn't if you can avoid it. Bold text is **bold**. Look at > the documentation: > > http://gambaswiki.org/wiki/doc/helpcomments > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > Great Tobias, I had completely lost this, thank you very much. You gave me a lot of work :-) Regards Gianluigi > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Jun 11 12:14:43 2018 From: adamnt42 at gmail.com (Adam Ant) Date: Mon, 11 Jun 2018 19:44:43 +0930 Subject: [Gambas-user] comments of autocomplete In-Reply-To: References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> <20180611081502.GN31875@highrise.localdomain> Message-ID: Sorry I ever wrote it ;-) but there are a couple of errors in it now regarding what you need to do to get it visible (down at the bottom). rgrds b On Mon, Jun 11, 2018, 7:15 PM Gianluigi wrote: > > > 2018-06-11 10:15 GMT+02:00 Tobias Boege : > >> On Mon, 11 Jun 2018, Gianluigi wrote: >> > You can use html after the two apostrophes like this: >> > '' Foo >> > >> >> The help comments are in Gambas markdown. That means you can use HTML, >> but you shouldn't if you can avoid it. Bold text is **bold**. Look at >> the documentation: >> >> http://gambaswiki.org/wiki/doc/helpcomments >> >> Regards, >> Tobi >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> > > Great Tobias, > I had completely lost this, thank you very much. > You gave me a lot of work :-) > > Regards > Gianluigi > > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Mon Jun 11 12:19:43 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 13:19:43 +0300 Subject: [Gambas-user] cannot find symbol sinh in libc In-Reply-To: References: <20180611080702.GM31875@highrise.localdomain> <4aa1a128-eb3b-1790-a2d1-ef74dafdfa0b@gmail.com> Message-ID: sinh is documented in libc manual but it is function of libm On 06/11/2018 12:17 PM, vuott at tiscali.it wrote: > > ...but it is not there as you say. > > what do you mean? > > > vuott > > > > > > Il 11.06.2018 10:04 Demosthenes Koptsis ha scritto: > >> Thanks Tobias! >> >> Anyway sinh is documented in glibc manual also, but it is not there as >> you say. >> >> https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-FunctionsOn 06/11/2018 11:07 AM, Tobias Boege wrote: >>> On Mon, 11 Jun 2018, Demosthenes Koptsis wrote: >>>> hello, according >>>> https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions >>>> i have this external function 'double sinh (double x) Public Extern >>>> sinh_C(x As Float) As Float Exec "sinh" but i get the error "cannot >>>> find symbol sinh in libc" why? >>> Because it is in libm: Extern my_sinh(f As Float) As Float In >>> "libm:6" Exec "sinh" Print Sinh(20) Print my_sinh(20) >>>> 242582597.704895 242582597.704895 >>> At least on my system, the manpage of sinh tells you to "Link with >>> -lm." Regards, Tobi >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > > 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 > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Mon Jun 11 12:21:01 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 11 Jun 2018 13:21:01 +0300 Subject: [Gambas-user] comments of autocomplete In-Reply-To: References: <0cc86910-f21f-fe4b-8554-9c2da0c346ca@gmail.com> <20180611081502.GN31875@highrise.localdomain> Message-ID: <42301d71-247f-3460-7da3-514cd9b6faa2@gmail.com> here is the markdown http://gambaswiki.org/wiki/doc/markdown On 06/11/2018 01:14 PM, Adam Ant wrote: > Sorry I ever wrote it? ;-) but? there are a couple of errors in it now > regarding what you need to do to get it visible (down at the bottom). > rgrds > b > > On Mon, Jun 11, 2018, 7:15 PM Gianluigi > wrote: > > > > 2018-06-11 10:15 GMT+02:00 Tobias Boege >: > > On Mon, 11 Jun 2018, Gianluigi wrote: > > You can use html after the two apostrophes like this: > > '' Foo > > > > The help comments are in Gambas markdown. That means you can > use HTML, > but you shouldn't if you can avoid it. Bold text is **bold**. > Look at > the documentation: > > http://gambaswiki.org/wiki/doc/helpcomments > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. > Monk > > > > Great Tobias, > I had completely lost this, thank you very much. > You gave me a lot of work :-) > > Regards > Gianluigi > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Jun 11 13:53:15 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 11 Jun 2018 13:53:15 +0200 Subject: [Gambas-user] Creating a library.... In-Reply-To: <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> Message-ID: Am 10.06.2018 um 19:42 schrieb T Lee Davidson: > As I understand it, for final deployment, you should not have a Main > module _and_ a library module. The Main module should be your > library. For testing, create a new project that uses the compiled > library. > > http://gambaswiki.org/wiki/doc/library > > For ease of development, you could of course use the two modules as > you have done. Then for deployment, move the library module to the > Main module and set the project type as Library. Soory this is wrong. It is very easy to test a library with a start class (aka "Main module") from inside. You do not need a separate project for testing purposes. There is no need for it but it doesn't harm, if there is a start class. A library is a container for classes and methods that can be used in different projects. They are "blended in" by the interpreter in these projects. So, if you call a class method from a testfunction inside the library project or from outside is quite the same ... 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 t.lee.davidson at gmail.com Mon Jun 11 15:18:46 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 11 Jun 2018 09:18:46 -0400 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> Message-ID: <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> On 06/11/2018 07:53 AM, Christof Thalhofer wrote: > Am 10.06.2018 um 19:42 schrieb T Lee Davidson: >> As I understand it, for final deployment, you should not have a Main >> module _and_ a library module. The Main module should be your >> library. For testing, create a new project that uses the compiled >> library. >> >> http://gambaswiki.org/wiki/doc/library >> >> For ease of development, you could of course use the two modules as >> you have done. Then for deployment, move the library module to the >> Main module and set the project type as Library. > > Soory this is wrong. > > It is very easy to test a library with a start class (aka "Main module") > from inside. You do not need a separate project for testing purposes. > > There is no need for it but it doesn't harm, if there is a start class. > > A library is a container for classes and methods that can be used in > different projects. > > They are "blended in" by the interpreter in these projects. So, if you > call a class method from a testfunction inside the library project or > from outside is quite the same ... > > > Alles Gute > > Christof Thalhofer > I went by the documentation. If it is wrong, then the documentation needs correction? You have said almost the same as I have. Which part, exactly, is incorrect? -- Lee From t.lee.davidson at gmail.com Mon Jun 11 15:40:40 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 11 Jun 2018 09:40:40 -0400 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: It's not that I didn't believe you, Jussi. Hence, the reason I asked the question regarding how to handle a 32-bit integer stored in a 31+1 integer datatype. A question that you have now partially answered by example using Bin$(). > Private Extern TakeAndReturn(value As Long) As Long In "liblibTest" It doesn't make any sense to pass a long to a function that is expecting 32-bit integer. And, of course, the function would not treat the most significant bit as a sign bit. So, passing a signed integer TO the function is no problem. But when receiving the return value FROM the function, it would be stored in a signed integer datatype. So then back to my question, how to handle an unsigned integer in a signed integer datatype? Why not do: Private Extern TakeAndReturn(value As Integer) As Long In "liblibTest" -- Lee On 06/10/2018 02:18 PM, Jussi Lahtinen wrote: > Lee, > if you don't believe me try this: > > Make a library with following code: > > unsigned int TakeAndReturn(unsigned int value) > { > return value; > } > > Then from Gambas: > Private Extern TakeAndReturn(value As Integer) As Integer In "libTest" '... or what ever > > Print Bin(TakeAndReturn(2 ^ 32), 32) > > You get the expected value: 10000000000000000000000000000000 > > > Then try it as long: > Private Extern TakeAndReturn(value As Long) As Long In "liblibTest" > > If you don't get crash, you will get wrong result. However it might work with small values. > > > > Jussi > > > > On Sun, Jun 10, 2018 at 8:48 PM, T Lee Davidson > wrote: > > On 06/10/2018 01:42 PM, Jussi Lahtinen wrote: > >? ? ?An integer type is obviously not wide enough. > > > > > > It is. You need 32 bits and Gambas integer is 32 bits. Gambas just interprets/displays the most significant bit as sign bit. > > > > > > That means that the Gambas integer type is only 31 (+ 1) bits wide. Not wide enough to hold a 32-bit unsigned integer if the > highest bit is reserved for the sign bit. > > So then, if it is wide enough as you say, how would one manage a 32-bit unsigned integer in a 32-bit signed datatype? > > > -- > Lee > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From g4mba5 at gmail.com Mon Jun 11 15:46:49 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 11 Jun 2018 15:46:49 +0200 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: <8c083c22-1236-bc5a-d166-8ea900f66884@gmail.com> Le 11/06/2018 ? 15:40, T Lee Davidson a ?crit?: > It's not that I didn't believe you, Jussi. Hence, the reason I asked the question regarding how to handle a 32-bit integer > stored in a 31+1 integer datatype. A question that you have now partially answered by example using Bin$(). > >> Private Extern TakeAndReturn(value As Long) As Long In "liblibTest" > > It doesn't make any sense to pass a long to a function that is expecting 32-bit integer. And, of course, the function would not > treat the most significant bit as a sign bit. So, passing a signed integer TO the function is no problem. But when receiving the > return value FROM the function, it would be stored in a signed integer datatype. So then back to my question, how to handle an > unsigned integer in a signed integer datatype? > > Why not do: > > Private Extern TakeAndReturn(value As Integer) As Long In "liblibTest" > > See my answer in the same thred. -- Beno?t Minisini From d4t4full at gmail.com Mon Jun 11 16:17:02 2018 From: d4t4full at gmail.com (ML) Date: Mon, 11 Jun 2018 11:17:02 -0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <8c083c22-1236-bc5a-d166-8ea900f66884@gmail.com> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <8c083c22-1236-bc5a-d166-8ea900f66884@gmail.com> Message-ID: <9e40a07c-d056-a194-3ed5-bc0fb55aa086@gmail.com> *On 11/06/18 10:46, Beno?t Minisini wrote:* > *Le 11/06/2018 ? 15:40, T Lee Davidson a ?crit?: * >> It's not that I didn't believe you, Jussi. Hence, the reason I asked >> the question regarding how to handle a 32-bit integer >> stored in a 31+1 integer datatype. A question that you have now >> partially answered by example using Bin$(). >> >>> Private Extern TakeAndReturn(value As Long) As Long In "liblibTest" >> >> It doesn't make any sense to pass a long to a function that is >> expecting 32-bit integer. And, of course, the function would not >> treat the most significant bit as a sign bit. So, passing a signed >> integer TO the function is no problem. But when receiving the >> return value FROM the function, it would be stored in a signed >> integer datatype. So then back to my question, how to handle an >> unsigned integer in a signed integer datatype? >> Why not do: >> Private Extern TakeAndReturn(value As Integer) As Long In "liblibTest" > > See my answer in the same thred. Pardon me butting in... I learned one or two things from interfacing VB6 with the Windows API. I guess that, since both OS's run (OK, one runs, the other crawls) on the same common architecture (x86) the concepts are really the same. The Gambas Integer (32bit) and C int (also 32bit) are the plain same. What changes is the INTERPRETATION each language gives these 4 bytes. C sees the full 32bit as a positive integer ranging 0 to +4Gigs. Gambas (and VB6...) see these same 32bit as a signed integer ranging -2Gigs to +2Gigs. Range "extension" in both cases is the same 4Gigs, simply because that's what you get in 32bit! Only the "zero" is shifted. Plain C cannot make heads nor tails with a negative integer, whereas Gambas/VB6 explodes if it tries to shove a value over +2Gig on a 32bit integer. (purists could say the negative range is larger than the positive range by one; that would be the ZERO taking a place in the positive range) Why? Simple: Gambas uses two's complement to interpret 32bit data as a signed integer (https://en.wikipedia.org/wiki/Two%27s_complement). C, on the other hand, simply adds bit weights and spits back a positive integer. This is actually the reason why some error codes that have bit 31 set (the most significant bit) make some languages emit a (very big) NEGATIVE error number; these codes are being interpreted in two's complement. Hope I make the matter clearer; the Wiki page also has an example short 3bit table in two's complement to help the reader see the overall method. The real problem: If you DIM in Gambas an EXTERN C 32 bit int as LONG chances are segfaults, etc. because you're actually pushing 8 bytes instead of 4 bytes to the stack, and the C function expects 4 bytes... Depending on what the EXTERN C code does this abomination can pass unnoticed... or it can make things really go down the drain. You MUST ALWAYS pass as many bytes as the EXTERN function needs. No more, no less. Doing this properly includes understanding what the function expects, and that involves knowing at least a little C. Pointers will haunt you. Be warned. Mbwehehehe!!! *flaps cape and dissappears in a surreal Z80 mist* Regards, zxMarce -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 11 19:31:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 11 Jun 2018 13:31:25 -0400 Subject: [Gambas-user] "get from VERSION file", where its or where i must put this? In-Reply-To: References: <15dabb18-1957-6be8-f5ea-5cc63d1e6e80@web.de> Message-ID: any news in that? please ! still happened! Charlie, Michael? i tried with the attached and does not work! when i load the version got are 0.0.1 and checkbox becomes uncheked! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-01 10:21 GMT-04:00 PICCORO McKAY Lenz : > reported now: http://gambaswiki.org/bugtracker/edit?object=BUG. > 1338&class=bug&tab=%2A&update=bug&s=0&from=L21haW4- > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-05-30 13:26 GMT-04:00 PICCORO McKAY Lenz : > >> i'll report as a bug, tested with gambas 3.8.0 and works perfect, with >> 3.11.3 does not work with 3.10.0 detect but when package loads and try to >> generate a source tarball the version number are not get from file >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-05-30 10:42 GMT-04:00 PICCORO McKAY Lenz : >> >>> when i opened your project and goes to the project properties, the >>> "check from version" are uncheked, and by example produced packages get >>> 0.0.1 event your number version.. >>> >>> atached screenshot.. >>> >>> the only difference i think its the languaje.. maybe that are a point..? >>> seems here are a bug? >>> >>> 2018-05-30 10:01 GMT-04:00 Charlie Ogier : >>> >>>> Try the attached. >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Jun 11 22:39:58 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 11 Jun 2018 23:39:58 +0300 Subject: [Gambas-user] cannot find symbol sinh in libc In-Reply-To: <4aa1a128-eb3b-1790-a2d1-ef74dafdfa0b@gmail.com> References: <20180611080702.GM31875@highrise.localdomain> <4aa1a128-eb3b-1790-a2d1-ef74dafdfa0b@gmail.com> Message-ID: What I'm missing here? Sinh is also already native Gambas function. I bet using it as external function makes it only little bit slower for zero gain. Jussi On Mon, Jun 11, 2018 at 11:04 AM, Demosthenes Koptsis < demosthenesk at gmail.com> wrote: > Thanks Tobias! > > Anyway sinh is documented in glibc manual also, but it is not there as you > say. > > https://www.gnu.org/software/libc/manual/html_node/Hyperboli > c-Functions.html#Hyperbolic-Functions > > > On 06/11/2018 11:07 AM, Tobias Boege wrote: > >> On Mon, 11 Jun 2018, Demosthenes Koptsis wrote: >> >>> hello, >>> >>> according https://www.gnu.org/software/libc/manual/html_node/Hyperboli >>> c-Functions.html#Hyperbolic-Functions >>> >>> i have this external function >>> >>> 'double sinh (double x) >>> Public Extern sinh_C(x As Float) As Float Exec "sinh" >>> >>> but i get the error "cannot find symbol sinh in libc" >>> >>> why? >>> >>> Because it is in libm: >> >> Extern my_sinh(f As Float) As Float In "libm:6" Exec "sinh" >> >> Print Sinh(20) >> Print my_sinh(20) >> >> >242582597.704895 >> >242582597.704895 >> >> At least on my system, the manpage of sinh tells you to "Link with -lm." >> >> Regards, >> Tobi >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Jun 11 22:44:10 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 11 Jun 2018 23:44:10 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> Message-ID: > > I went by the documentation. If it is wrong, then the documentation needs > correction? > > You have said almost the same as I have. Which part, exactly, is incorrect? > There is no reason to remove the Main module ever. Ready product or not. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 11 22:44:43 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 11 Jun 2018 16:44:43 -0400 Subject: [Gambas-user] cannot find symbol sinh in libc In-Reply-To: References: <20180611080702.GM31875@highrise.localdomain> <4aa1a128-eb3b-1790-a2d1-ef74dafdfa0b@gmail.com> Message-ID: 2018-06-11 16:39 GMT-04:00 Jussi Lahtinen : > What I'm missing here? Sinh is also already native Gambas function. > I bet using it as external function makes it only little bit slower for > zero gain. > umm ok but if are using as external, any changes over the libc will be reflected at gambas side without updating.. maybe the only benefit from.. > > > Jussi > > On Mon, Jun 11, 2018 at 11:04 AM, Demosthenes Koptsis < > demosthenesk at gmail.com> wrote: > >> Thanks Tobias! >> >> Anyway sinh is documented in glibc manual also, but it is not there as >> you say. >> >> https://www.gnu.org/software/libc/manual/html_node/Hyperboli >> c-Functions.html#Hyperbolic-Functions >> >> >> On 06/11/2018 11:07 AM, Tobias Boege wrote: >> >>> On Mon, 11 Jun 2018, Demosthenes Koptsis wrote: >>> >>>> hello, >>>> >>>> according https://www.gnu.org/software/libc/manual/html_node/Hyperboli >>>> c-Functions.html#Hyperbolic-Functions >>>> >>>> i have this external function >>>> >>>> 'double sinh (double x) >>>> Public Extern sinh_C(x As Float) As Float Exec "sinh" >>>> >>>> but i get the error "cannot find symbol sinh in libc" >>>> >>>> why? >>>> >>>> Because it is in libm: >>> >>> Extern my_sinh(f As Float) As Float In "libm:6" Exec "sinh" >>> >>> Print Sinh(20) >>> Print my_sinh(20) >>> >>> >242582597.704895 >>> >242582597.704895 >>> >>> At least on my system, the manpage of sinh tells you to "Link with -lm." >>> >>> Regards, >>> Tobi >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Jun 11 23:22:19 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 11 Jun 2018 23:22:19 +0200 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> Message-ID: <6ccf9e82-6c6a-4950-5009-b5ce9d6297fd@deganius.de> Am 11.06.2018 um 22:44 schrieb Jussi Lahtinen: > I went by the documentation. If it is wrong, then the documentation > needs correction? > > You have said almost the same as I have. Which part, exactly, is > incorrect? > > > There is no reason to remove the Main module ever. Ready product or not. Yes. And a methods of a lib can easily been tested from inside the same project. There is no reason to create an extra project to test the library. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Tue Jun 12 01:01:23 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 12 Jun 2018 02:01:23 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: Why not do: > > Private Extern TakeAndReturn(value As Integer) As Long In "liblibTest" > Not sure, maybe you could in some situation read some trash along the right answer (32 bits is written to output, but 64 bits are read, what are the rest?). But most certainly the problem would arise when trying to read output, which consist of multiple variables (arrays, structures, etc). This would be my way to do the conversion: Public Sub UnsignedIntegerToLong(X As Integer) As Long If BTst(x, 31) = False Then Return x Else Return CLong(BClr(x, 31)) + 2 ^ 31 Endif End And thus: UnsignedIntegerToLong(-1) = 4294967295 Note that my earlier example was one bit off (confusing!), but apparently it's not that easy to crash program with one variable. However, the main point still remains. Stick with correct bit number! Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Tue Jun 12 12:06:55 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Tue, 12 Jun 2018 13:06:55 +0300 Subject: [Gambas-user] where to put gpl.txt ? Message-ID: <887f65c3-eb29-65c8-6d00-c92e5cecf593@gmail.com> hello, i have as silly question, where i have to put the gpl.txt file? Inside Data folder of a gambas project or outside? Thanks for your help From hans at gambas-buch.de Tue Jun 12 12:33:12 2018 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 12 Jun 2018 12:33:12 +0200 Subject: [Gambas-user] Properties of the Stat class (gb) - In-Reply-To: <8c083c22-1236-bc5a-d166-8ea900f66884@gmail.com> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <8c083c22-1236-bc5a-d166-8ea900f66884@gmail.com> Message-ID: Hello, I'm experimenting with the properties of the Stat class (gb) for another chapter in the Gambas book. First, a temporary file with a random file name is created in all three cases. Then the owner and the group will be changed with the instructions Chown and Chgrp. Afterwards, different file rights are assigned in three cases. Finally, the file properties are read out and displayed with a Stat object (FileInfo = Stat(sFilePath)) and Access(path [, mode ] ). Source code section: sRandomFileName = SetRandomFileName() sFilePath = Temp(sRandomFileName) ... Shell Subst$("touch &1; echo 'ZEILE 1\nZEILE 2' > &1", sFilePath) Wait Chown sFilePath To User.Name Chgrp sFilePath To sGroup Three results (gambas program and console): (1) Chmod sFilePath To "rwxrw-r--" Path = /tmp/gambas.1000/5750/f4ec9844.tmp File-Type (Integer) = 1 File-Type = Regular file Permissions (Symbolic notation) = rwxrw-r-- File-Modus (Numeric Notation)?? = 764 Sticky-Bit set? = False SetUID set? = False SetGID set? = False hans at mint-183 ~ $ stat -c "%a %A" /tmp/gambas.1000/5750/f4ec9844.tmp 764 -rwxrw-r-- ------------------------------------------------------------------------ (2) Chmod sFilePath To "rwSrwSr-T" Path = /tmp/gambas.1000/5180/161632d2.tmp File-Type (Integer) = 1 File-Type = Regular file Permissions (Symbolic notation) = rwSrwSr-T File-Modus (Numeric Notation)?? = 7664 Sticky-Bit set? = True SetUID set? = True SetGID set? = True hans at mint-183 ~ $ stat -c "%a %A" /tmp/gambas.1000/5180/161632d2.tmp 7664 -rwSrwSr-T ------------------------------------------------------------------------ (3) Chmod sFilePath To "rwsrwsrwt" Path = /tmp/gambas.1000/5829/fb60cd7b.tmp File-Type (Integer) = 1 File-Type = Regular file Permissions (Symbolic notation) = rw-rw-rw- File-Modus (Numeric Notation)?? = 666 Sticky-Bit set? = False SetUID set? = False SetGID set? = False hans at mint-183 ~ $ stat -c "%a %A" /tmp/gambas.1000/5829/fb60cd7b.tmp 666 -rw-rw-rw- In the first two cases, the values of the properties that were expected were obtained. The displayed file rights as string should have the same syntax as CHMOD in the documentation on http://gambaswiki.org/wiki/cat/mode It's not like that. Assigned rights: "rwsrwsrwt"; read: "rw-rw-rw-". Mistake? The documentation contains the following information: ... if there is an s or S at the 3rd position (owner), .... then the SetUID.bit is always set, ... if at the 6th position (group) an s or S stands, .... then the SetGID.bit is always set, ... if the 9th position (Other) is t or T, ... then the sticky bit is always set. In the third case, however, there are three contradictions. It is indicated that neither the SetUID.Bit, SetGID.Bit nor the Sticky-Bit have been set. Is there an error here or am I wrong with my algorithms? The project used is attached. Regards, Hans -------------- next part -------------- A non-text attachment was scrubbed... Name: FileProperties-1.1.8.tar.gz Type: application/gzip Size: 13054 bytes Desc: not available URL: From taboege at gmail.com Tue Jun 12 13:53:28 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 12 Jun 2018 13:53:28 +0200 Subject: [Gambas-user] Properties of the Stat class (gb) - In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <8c083c22-1236-bc5a-d166-8ea900f66884@gmail.com> Message-ID: <20180612115328.GP31875@highrise.localdomain> On Tue, 12 Jun 2018, Hans Lehmann wrote: > Hello, > Please create a new thread for a new topic instead of replying to an existing one. Your message shows up in the thread about "unsigned int datatype for external function" but it has nothing to do with that. > I'm experimenting with the properties of the Stat class (gb) for another > chapter in the Gambas book. > > First, a temporary file with a random file name is created in all three > cases. > Then the owner and the group will be changed with the instructions Chown and > Chgrp. > Afterwards, different file rights are assigned in three cases. > Finally, the file properties are read out and displayed with a Stat object > (FileInfo = Stat(sFilePath)) and Access(path [, mode ] ). > > Source code section: > > sRandomFileName = SetRandomFileName() > sFilePath = Temp(sRandomFileName) > ... > Shell Subst$("touch &1; echo 'ZEILE 1\nZEILE 2' > &1", sFilePath) Wait You definitely shouldn't show code like this in the book. Substituting a string into a shell command with just Subst$() creates an injection vulnerability [1]. In *this* case, it is acceptable, since we can (can we?) assume Temp$() to return a safe path, but I'm afraid a newbie might look at this and think it's fine to substitute paths into SHELL. Gambas has a function named Shell$() [2], which escapes a string so that it can safely be put into a SHELL command. Of course, you could also avoid the overhead of SHELL altogether, by just doing File.Save(sFilePath, "some data"). In that spirit, in SetRandomFileName(), you don't have to ask `openssl` to give you random bytes. Gambas' Hex$(Rand(0,2^32-1)) works just fine. > Chown sFilePath To User.Name > Chgrp sFilePath To sGroup > > Three results (gambas program and console): > > (1) > Chmod sFilePath To "rwxrw-r--" > Path = /tmp/gambas.1000/5750/f4ec9844.tmp > File-Type (Integer) = 1 > File-Type = Regular file > Permissions (Symbolic notation) = rwxrw-r-- > File-Modus (Numeric Notation)?? = 764 > Sticky-Bit set? = False > SetUID set? = False > SetGID set? = False > > hans at mint-183 ~ $ stat -c "%a %A" /tmp/gambas.1000/5750/f4ec9844.tmp > 764 -rwxrw-r-- > > ------------------------------------------------------------------------ > > (2) > Chmod sFilePath To "rwSrwSr-T" > Path = /tmp/gambas.1000/5180/161632d2.tmp > File-Type (Integer) = 1 > File-Type = Regular file > Permissions (Symbolic notation) = rwSrwSr-T > File-Modus (Numeric Notation)?? = 7664 > Sticky-Bit set? = True > SetUID set? = True > SetGID set? = True > > hans at mint-183 ~ $ stat -c "%a %A" /tmp/gambas.1000/5180/161632d2.tmp > 7664 -rwSrwSr-T > > ------------------------------------------------------------------------ > > (3) > Chmod sFilePath To "rwsrwsrwt" > Path = /tmp/gambas.1000/5829/fb60cd7b.tmp > File-Type (Integer) = 1 > File-Type = Regular file > Permissions (Symbolic notation) = rw-rw-rw- > File-Modus (Numeric Notation)?? = 666 > Sticky-Bit set? = False > SetUID set? = False > SetGID set? = False > > hans at mint-183 ~ $ stat -c "%a %A" /tmp/gambas.1000/5829/fb60cd7b.tmp > 666 -rw-rw-rw- > > In the first two cases, the values of the properties that were expected were > obtained. The displayed file rights as string should have the same syntax as > CHMOD in the documentation on http://gambaswiki.org/wiki/cat/mode It's not > like that. Assigned rights: "rwsrwsrwt"; read: "rw-rw-rw-". Mistake? > > The documentation contains the following information: > > ... if there is an s or S at the 3rd position (owner), .... then the > SetUID.bit is always set, > ... if at the 6th position (group) an s or S stands, .... then the > SetGID.bit is always set, > ... if the 9th position (Other) is t or T, ... then the sticky bit is always > set. > > In the third case, however, there are three contradictions. It is indicated > that neither the SetUID.Bit, SetGID.Bit nor the Sticky-Bit have been set. Is > there an error here or am I wrong with my algorithms? > The attached script is more comfortable (because less noisy) for reproducing this behaviour. It's actually an off-by-one bug in the Gambas interpreter, resulting in the 's' and 't' bits to be unrecognised. It's not your fault and I fixed it in commit d44b4bd7f. Here is the "before and after": $ ./chmod-bug.gbs3 # before rw-r--r-- # default rwxrwSrwT # applied "rwxrwSrwT" r--rwSrwT # applied "r--r**rwt" rw-rwSrwT # applied "rwsrwsrwt" $ ./chmod-bug.gbs3 # after d44b4bd7f rw-r--r-- # default rwxrwSrwT # applied "rwxrwSrwT" r--rwSrwt # applied "r--r**rwt" rwsrwsrwt # applied "rwsrwsrwt" You see: 's' and 't' used to behave just as if they were unrecognised characters (like the '*'). Now they work correctly. Regards, Tobi [1] https://en.wikipedia.org/wiki/Code_injection#Shell_injection [2] http://gambaswiki.org/wiki/lang/shell2 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- #!/usr/bin/env gbs3 Public Sub Main() Dim s As String = Temp$() File.Save(s, "some data") Print Stat(s).Auth Chmod s To "rwxrwSrwT" Print Stat(s).Auth Chmod s To "r--r**rwt" Print Stat(s).Auth Chmod s To "rwsrwsrwt" Print Stat(s).Auth End From t.lee.davidson at gmail.com Tue Jun 12 14:56:42 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 12 Jun 2018 08:56:42 -0400 Subject: [Gambas-user] Creating a library.... In-Reply-To: <6ccf9e82-6c6a-4950-5009-b5ce9d6297fd@deganius.de> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> <6ccf9e82-6c6a-4950-5009-b5ce9d6297fd@deganius.de> Message-ID: <5c9062e9-1516-21d2-0955-86f0c87f034e@gmail.com> On 06/11/2018 05:22 PM, Christof Thalhofer wrote: > Am 11.06.2018 um 22:44 schrieb Jussi Lahtinen: >> I went by the documentation. If it is wrong, then the documentation >> needs correction? >> >> You have said almost the same as I have. Which part, exactly, is >> incorrect? >> >> >> There is no reason to remove the Main module ever. Ready product or not. > > Yes. And a methods of a lib can easily been tested from inside the same > project. As I said could be done for development purposes. > There is no reason to create an extra project to test the library. Again, as I stated the testing could be done within the same project. But, how would one test that the compiled and installed library works with a different project? (And, BTW, I never said to remove the Main module.) -- Lee From mckaygerhard at gmail.com Tue Jun 12 15:08:45 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 12 Jun 2018 09:08:45 -0400 Subject: [Gambas-user] where to put gpl.txt ? In-Reply-To: <887f65c3-eb29-65c8-6d00-c92e5cecf593@gmail.com> References: <887f65c3-eb29-65c8-6d00-c92e5cecf593@gmail.com> Message-ID: if are the license must be named LICENSE and must be in root directory that means inside data DIRECTORY (not folder thist is not ruindows) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-12 6:06 GMT-04:00 Demosthenes Koptsis : > hello, > > i have as silly question, > > where i have to put the gpl.txt file? Inside Data folder of a gambas > project or outside? > > Thanks for your help > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Tue Jun 12 16:47:47 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Tue, 12 Jun 2018 17:47:47 +0300 Subject: [Gambas-user] where to put gpl.txt ? In-Reply-To: References: <887f65c3-eb29-65c8-6d00-c92e5cecf593@gmail.com> Message-ID: when a gambas project is compiled it is included in it the Data section of project? when i will install from a deb package the gambas project (a library) where the Data files are installed (which path) ? On 06/12/2018 04:08 PM, PICCORO McKAY Lenz wrote: > if are the license must be named LICENSE and must be in root directory > that means inside data DIRECTORY (not folder thist is not ruindows) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-12 6:06 GMT-04:00 Demosthenes Koptsis >: > > hello, > > i have as silly question, > > where i have to put the gpl.txt file? Inside Data folder of a > gambas project or outside? > > Thanks for your help > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 12 23:50:33 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 12 Jun 2018 17:50:33 -0400 Subject: [Gambas-user] where to put gpl.txt ? In-Reply-To: References: <887f65c3-eb29-65c8-6d00-c92e5cecf593@gmail.com> Message-ID: 2018-06-12 10:47 GMT-04:00 Demosthenes Koptsis : > when a gambas project is compiled it is included in it the Data section of > project? > the data section its basically the representation of a every normal files in the root project > when i will install from a deb package the gambas project (a library) > where the Data files are installed (which path) ? > depends of you! do you try and test the package creator for? make some test and indage into the results! of course you must have enought knowledge of the deb file format > > On 06/12/2018 04:08 PM, PICCORO McKAY Lenz wrote: > > if are the license must be named LICENSE and must be in root directory > that means inside data DIRECTORY (not folder thist is not ruindows) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-12 6:06 GMT-04:00 Demosthenes Koptsis : > >> hello, >> >> i have as silly question, >> >> where i have to put the gpl.txt file? Inside Data folder of a gambas >> project or outside? >> >> Thanks for your help >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 13 00:29:32 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 13 Jun 2018 01:29:32 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <5c9062e9-1516-21d2-0955-86f0c87f034e@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> <6ccf9e82-6c6a-4950-5009-b5ce9d6297fd@deganius.de> <5c9062e9-1516-21d2-0955-86f0c87f034e@gmail.com> Message-ID: Lee, this was the reason of the criticism. You said *"As I understand it, for final deployment, you should not have a Main module _and_ a library module"*. This is wrong. You said *"The Main module should be your library"*. This is misleading, as it doesn't matter at all. You said *"For testing, create a new project that uses the compiled library"*. This is not the same as include unit test within the library. And even if the development ends, the test should not be removed as you might still want to maintain the library. Note that libraries can be run as normal executables, if they have start up method. Jussi On Tue, Jun 12, 2018 at 3:56 PM, T Lee Davidson wrote: > > > On 06/11/2018 05:22 PM, Christof Thalhofer wrote: > > Am 11.06.2018 um 22:44 schrieb Jussi Lahtinen: > >> I went by the documentation. If it is wrong, then the documentation > >> needs correction? > >> > >> You have said almost the same as I have. Which part, exactly, is > >> incorrect? > >> > >> > >> There is no reason to remove the Main module ever. Ready product or not. > > > > Yes. And a methods of a lib can easily been tested from inside the same > > project. > > As I said could be done for development purposes. > > > There is no reason to create an extra project to test the library. > > Again, as I stated the testing could be done within the same project. But, > how would one test that the compiled and installed > library works with a different project? > > (And, BTW, I never said to remove the Main module.) > > > -- > Lee > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 13 01:38:16 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 Jun 2018 01:38:16 +0200 Subject: [Gambas-user] New Jit system merged on master Message-ID: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Hi, I have just merged the 'jit-with-c' branch to 'master'. The JIT compiler is not finished, but is advanced enough to run all the fast methods of the IDE, the gb.form.editor and the gb.form.terminal components. The benchmarks run too. Many features are still not implemented: - Functions with variable number of arguments. - Structures. - Static arrays. - ON GOTO and ON GOSUB. - Error management. - BYREF. - Extern functions. - WITH ... END WITH. And many implemented features are not tested. And many optimizations could be done too, especially in properties and methods calls, that are mostly run by the interpreter at the moment. The performance gain is about the same as the old JIT compiler. Often a bit slower, sometimes unexpectedly faster. The biggest gains are when dealing with loops, integers and native arrays. On the other side, you won't gain anything with string routines, the 'string' benchmark even being a bit slower! Note that the JIT compiler is not a compiler, but a Gambas to C translator, about 3,000 lines of code, whose result is preprocessed, compiled and linked by the gcc compiler at runtime. To disable the JIT compiler, set the environment variable GB_NO_JIT to 1. To have some debugging messages, set GB_JIT_DEBUG to 1. Otherwise, I fixed the thousand separator management in the Format() function, and optimized the string search routine used by InStr(), RInstr() and Replace(). The "string" benchmark now runs 4 times faster. Apart from the previous limitations, you can start to play with it, to help me test the following: - Does it work with 32 bits x86? - Does it work with ARM? - Does it work with clang? - ... Enjoy it! -- Beno?t Minisini From jussi.lahtinen at gmail.com Wed Jun 13 03:05:35 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 13 Jun 2018 04:05:35 +0300 Subject: [Gambas-user] New Jit system merged on master In-Reply-To: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> References: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Message-ID: 1. Behaviour discrepancy between loops run with interpreter and JIT. See attachment (NewJITtest-0.0.1). 2. Bug with arrays as arguments. See attachment (NewJITtest-0.0.2). I bet you will get a lot more, when the rest of the features are implemented. I have talent for this... Jussi On Wed, Jun 13, 2018 at 2:38 AM, Beno?t Minisini wrote: > Hi, > > I have just merged the 'jit-with-c' branch to 'master'. > > The JIT compiler is not finished, but is advanced enough to run all the > fast methods of the IDE, the gb.form.editor and the gb.form.terminal > components. The benchmarks run too. > > Many features are still not implemented: > > - Functions with variable number of arguments. > - Structures. > - Static arrays. > - ON GOTO and ON GOSUB. > - Error management. > - BYREF. > - Extern functions. > - WITH ... END WITH. > > And many implemented features are not tested. > > And many optimizations could be done too, especially in properties and > methods calls, that are mostly run by the interpreter at the moment. > > The performance gain is about the same as the old JIT compiler. Often a > bit slower, sometimes unexpectedly faster. The biggest gains are when > dealing with loops, integers and native arrays. On the other side, you > won't gain anything with string routines, the 'string' benchmark even being > a bit slower! > > Note that the JIT compiler is not a compiler, but a Gambas to C > translator, about 3,000 lines of code, whose result is preprocessed, > compiled and linked by the gcc compiler at runtime. > > To disable the JIT compiler, set the environment variable GB_NO_JIT to 1. > To have some debugging messages, set GB_JIT_DEBUG to 1. > > Otherwise, I fixed the thousand separator management in the Format() > function, and optimized the string search routine used by InStr(), RInstr() > and Replace(). The "string" benchmark now runs 4 times faster. > > Apart from the previous limitations, you can start to play with it, to > help me test the following: > > - Does it work with 32 bits x86? > - Does it work with ARM? > - Does it work with clang? > - ... > > Enjoy it! > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NewJITtest-0.0.1.tar.gz Type: application/gzip Size: 11396 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: NewJITtest-0.0.2.tar.gz Type: application/gzip Size: 11420 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Jun 13 13:00:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 13 Jun 2018 13:00:40 +0200 Subject: [Gambas-user] New Jit system merged on master In-Reply-To: References: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Message-ID: Le 13/06/2018 ? 03:05, Jussi Lahtinen a ?crit?: > 1. Behaviour discrepancy between loops run with interpreter and JIT. See > attachment (NewJITtest-0.0.1). > 2. Bug with arrays as arguments. See attachment (NewJITtest-0.0.2). > > I bet you will get a lot more, when the rest of the features are > implemented. I have talent for this... > > > Jussi > > The JIT is right in the first one, the interpreter is wrong! -- Beno?t Minisini From t.lee.davidson at gmail.com Wed Jun 13 14:48:15 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 13 Jun 2018 08:48:15 -0400 Subject: [Gambas-user] Creating a library.... In-Reply-To: References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> <6ccf9e82-6c6a-4950-5009-b5ce9d6297fd@deganius.de> <5c9062e9-1516-21d2-0955-86f0c87f034e@gmail.com> Message-ID: <15cee5b5-e511-0dbc-36f4-2a323a78139a@gmail.com> Thank you for that clarification, Jussi. At the time, I was going by the documentation at http://gambaswiki.org/wiki/doc/library#t3 . But now in re-reading it, either it's been recently edited, or I read something into it that simply isn't there. So then, ultimately, a library project can utilize as many modules as the developer deems necessary, and testing can be done as with any normal Gambas project. -- Lee On 06/12/2018 06:29 PM, Jussi Lahtinen wrote: > Lee, this was the reason of the criticism. > > You said /"As I understand it, for final deployment, you should not have a Main module _and_ a library module"/. > > This is wrong. > > You said /"The Main module should be your library"/. > > This is misleading, as it doesn't matter at all. > > You said /"For testing, create a new project that uses the compiled library"/. > > This is not the same as include unit test within the library. And even if the development ends, the test should not be removed > as you might still want to maintain the library. Note that libraries can be run as normal executables, if they have start up method. > > > Jussi From t.lee.davidson at gmail.com Wed Jun 13 15:25:26 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 13 Jun 2018 09:25:26 -0400 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> Message-ID: <6ccb3a0b-71ef-78d8-358a-d4999fb5f7ef@gmail.com> Okay so, when passing values to and receiving values from an external library, the bit width of the datatypes should be matched or else undefined behavior or garbage values will result. For example, if a value stored in a 64-bit wide datatype is passed to an external function that expects a 32-bit value, the behavior is undefined and could lead to application crash. And, if a 32-bit value is returned into a 64-bit datatype, the state of the higher 32 bits will be undefined tainting the returned value so that it should not be relied upon. -- Lee On 06/11/2018 07:01 PM, Jussi Lahtinen wrote: > > Why not do: > > Private Extern TakeAndReturn(value As Integer) As Long In "liblibTest" > > > Not sure, maybe you could in some situation read some trash along the right answer (32 bits is written to output, but 64 bits > are read, what are the rest?). But most certainly the problem would arise when trying to read output, which consist of multiple > variables (arrays, structures, etc). > > This would be my way to do the conversion: > > Public Sub UnsignedIntegerToLong(X As Integer) As Long > > ? If BTst(x, 31) = False Then > ??? Return x > ? Else > ??? Return CLong(BClr(x, 31)) + 2 ^ 31 > ? Endif > > End > > And thus: > UnsignedIntegerToLong(-1) = 4294967295 > > Note that my earlier example was one bit off (confusing!), but apparently it's not that easy to crash program with one variable. > However, the main point still remains. Stick with correct bit number! > > > Jussi > ? > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From demosthenesk at gmail.com Wed Jun 13 19:09:20 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Wed, 13 Jun 2018 20:09:20 +0300 Subject: [Gambas-user] what is ... in c external function? Message-ID: Hello, i have the next external function in libc 'void errx (int status, const char *format, ?) what is the ... ? is this correct? Public Extern errx(status As Integer, format as Pointer) Thnaks! From mckaygerhard at gmail.com Wed Jun 13 19:49:46 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 13 Jun 2018 13:49:46 -0400 Subject: [Gambas-user] inherist wiki description misc! Message-ID: > You must use the ME keyword to access the inherited elements from the class inside. at the last of the sentece said "inside".. umm that sound little confusing!?! can someone explain me better , i think the lwaguaje are a break here! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 13 20:15:57 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 13 Jun 2018 21:15:57 +0300 Subject: [Gambas-user] Creating a library.... In-Reply-To: <15cee5b5-e511-0dbc-36f4-2a323a78139a@gmail.com> References: <22f35e78-dcf5-d304-dc3f-16514e0edc8d@gmail.com> <88bee84f-f655-31aa-fbf9-5079a136caad@gmail.com> <52aacee2-c14e-bffd-f11c-af5af6c808bc@gmail.com> <6ccf9e82-6c6a-4950-5009-b5ce9d6297fd@deganius.de> <5c9062e9-1516-21d2-0955-86f0c87f034e@gmail.com> <15cee5b5-e511-0dbc-36f4-2a323a78139a@gmail.com> Message-ID: Yes. My big project is mainly executable, but the same time it act as library for data editors etc tools. You can use the export command for as many or few classes as you like. Very useful feature. Jussi On Wed, Jun 13, 2018 at 3:48 PM, T Lee Davidson wrote: > Thank you for that clarification, Jussi. > > At the time, I was going by the documentation at > http://gambaswiki.org/wiki/doc/library#t3 . But now in re-reading it, > either > it's been recently edited, or I read something into it that simply isn't > there. > > > So then, ultimately, a library project can utilize as many modules as the > developer deems necessary, and testing can be done as > with any normal Gambas project. > > > -- > Lee > > > On 06/12/2018 06:29 PM, Jussi Lahtinen wrote: > > Lee, this was the reason of the criticism. > > > > You said /"As I understand it, for final deployment, you should not have > a Main module _and_ a library module"/. > > > > This is wrong. > > > > You said /"The Main module should be your library"/. > > > > This is misleading, as it doesn't matter at all. > > > > You said /"For testing, create a new project that uses the compiled > library"/. > > > > This is not the same as include unit test within the library. And even > if the development ends, the test should not be removed > > as you might still want to maintain the library. Note that libraries can > be run as normal executables, if they have start up method. > > > > > > Jussi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 13 20:21:59 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 13 Jun 2018 21:21:59 +0300 Subject: [Gambas-user] unsigned int datatype for external function In-Reply-To: <6ccb3a0b-71ef-78d8-358a-d4999fb5f7ef@gmail.com> References: <3af46c34-ee2d-b41d-9ce9-892d8f03d1e4@gmail.com> <8e49145f-aeef-85a3-fcbd-a5eca1a1cdf3@gmail.com> <6ccb3a0b-71ef-78d8-358a-d4999fb5f7ef@gmail.com> Message-ID: Good summary and rule of thumb. This way you wont get troubles, even when the actual details are much more complicated. Jussi On Wed, Jun 13, 2018 at 4:25 PM, T Lee Davidson wrote: > Okay so, when passing values to and receiving values from an external > library, the bit width of the datatypes should be matched > or else undefined behavior or garbage values will result. > > For example, if a value stored in a 64-bit wide datatype is passed to an > external function that expects a 32-bit value, the > behavior is undefined and could lead to application crash. And, if a > 32-bit value is returned into a 64-bit datatype, the state > of the higher 32 bits will be undefined tainting the returned value so > that it should not be relied upon. > > > -- > Lee > > > On 06/11/2018 07:01 PM, Jussi Lahtinen wrote: > > > > Why not do: > > > > Private Extern TakeAndReturn(value As Integer) As Long In > "liblibTest" > > > > > > Not sure, maybe you could in some situation read some trash along the > right answer (32 bits is written to output, but 64 bits > > are read, what are the rest?). But most certainly the problem would > arise when trying to read output, which consist of multiple > > variables (arrays, structures, etc). > > > > This would be my way to do the conversion: > > > > Public Sub UnsignedIntegerToLong(X As Integer) As Long > > > > If BTst(x, 31) = False Then > > Return x > > Else > > Return CLong(BClr(x, 31)) + 2 ^ 31 > > Endif > > > > End > > > > And thus: > > UnsignedIntegerToLong(-1) = 4294967295 > > > > Note that my earlier example was one bit off (confusing!), but > apparently it's not that easy to crash program with one variable. > > However, the main point still remains. Stick with correct bit number! > > > > > > Jussi > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 13 20:29:22 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 13 Jun 2018 21:29:22 +0300 Subject: [Gambas-user] inherist wiki description misc! In-Reply-To: References: Message-ID: Example if you have class named Test that inherits Point, then if you want to access x and y in some method of the Test you need to use Me.X and Me.Y. So, example Test class could have code like this: Sub DoSomethingUseless() Me.X = 1 Me.Y = 2 ' These do not work: ' X = 1 ' Y = 2 End Jussi On Wed, Jun 13, 2018 at 8:49 PM, PICCORO McKAY Lenz wrote: > > You must use the ME keyword to > access the inherited elements from the class inside. > > at the last of the sentece said "inside".. umm that sound little > confusing!?! > > can someone explain me better , i think the lwaguaje are a break here! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 13 20:38:56 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 13 Jun 2018 21:38:56 +0300 Subject: [Gambas-user] what is ... in c external function? In-Reply-To: References: Message-ID: It means the same as in Gambas. IE undefined amount of arguments. I have never run into this while using external functions. You can try: Public Extern errx(status As Integer, format as Pointer, ...) ...but I have n clue whether it actually works. The implementation may not be compatible with C. Jussi On Wed, Jun 13, 2018 at 8:09 PM, Demosthenes Koptsis wrote: > Hello, > > i have the next external function in libc > > 'void errx (int status, const char *format, ?) > > what is the ... ? > > is this correct? > > Public Extern errx(status As Integer, format as Pointer) > > Thnaks! > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 13 20:39:46 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 13 Jun 2018 14:39:46 -0400 Subject: [Gambas-user] inherist wiki description misc! In-Reply-To: References: Message-ID: hanks jussi so then to refers methods in the "son class" i must not prefix with "me." and th access the inherits methods (heredados) i must use me. so "this" its not equal to "me"? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-13 14:29 GMT-04:00 Jussi Lahtinen : > Example if you have class named Test that inherits Point, then if you want > to access x and y in some method of the Test you need to use Me.X and Me.Y. > So, example Test class could have code like this: > > Sub DoSomethingUseless() > > Me.X = 1 > Me.Y = 2 > > ' These do not work: > ' X = 1 > ' Y = 2 > > End > > > Jussi > > On Wed, Jun 13, 2018 at 8:49 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> > You must use the ME keyword to >> access the inherited elements from the class inside. >> >> at the last of the sentece said "inside".. umm that sound little >> confusing!?! >> >> can someone explain me better , i think the lwaguaje are a break here! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 13 21:10:18 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 13 Jun 2018 15:10:18 -0400 Subject: [Gambas-user] store a emtpy string in a collection key? how ? Message-ID: store a emtpy string in a collection key , how? due when i try to do, i get that this key are excluded from the collection! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Jun 13 21:36:14 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 13 Jun 2018 21:36:14 +0200 Subject: [Gambas-user] store a emtpy string in a collection key? how ? In-Reply-To: References: Message-ID: <20180613193614.GD870@highrise.localdomain> On Wed, 13 Jun 2018, PICCORO McKAY Lenz wrote: > store a emtpy string in a collection key , how? due when i try to do, i get > that this key are excluded from the collection! > The empty string is equal to Null in Gambas and assigning Null to a collection slot deletes it. You can get around this limitation, but you have to create the logic yourself. For example JSONCollection [1] from gb.web allows you to store a Null-ish value, but instead of Null itself, you have to store the special token JSON.Null (which is actually not Null, if you're still with me). Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.web/jsoncollection -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Wed Jun 13 22:27:43 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 13 Jun 2018 16:27:43 -0400 Subject: [Gambas-user] store a emtpy string in a collection key? how ? In-Reply-To: <20180613193614.GD870@highrise.localdomain> References: <20180613193614.GD870@highrise.localdomain> Message-ID: 2018-06-13 15:36 GMT-04:00 Tobias Boege : > The empty string is equal to Null in Gambas and assigning Null to a > collection slot deletes it. You can get around this limitation, but you > have to create the logic yourself. > ohh god dam! > > For example JSONCollection [1] from gb.web allows you to store a Null-ish > value, but instead of Null itself, you have to store the special token > JSON.Null (which is actually not Null, if you're still with me). > i got it, that special value permits to store null and not delete the key! damm! i need something like php array does! this king of "misc" stop gambas gain force in web/app umm ok thanks Tobiaas! > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/comp/gb.web/jsoncollection > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Jun 14 00:04:21 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 14 Jun 2018 00:04:21 +0200 Subject: [Gambas-user] New Jit system merged on master In-Reply-To: References: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Message-ID: So you was right ... the compilation time by gcc no take so much time ... the benchmark results show similar result as the previous version. Le mer. 13 juin 2018 ? 13:01, Beno?t Minisini a ?crit : > Le 13/06/2018 ? 03:05, Jussi Lahtinen a ?crit : > > 1. Behaviour discrepancy between loops run with interpreter and JIT. See > > attachment (NewJITtest-0.0.1). > > 2. Bug with arrays as arguments. See attachment (NewJITtest-0.0.2). > > > > I bet you will get a lot more, when the rest of the features are > > implemented. I have talent for this... > > > > > > Jussi > > > > > > The JIT is right in the first one, the interpreter is wrong! > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jun 14 00:24:13 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 14 Jun 2018 01:24:13 +0300 Subject: [Gambas-user] inherist wiki description misc! In-Reply-To: References: Message-ID: ?? Some English teacher somewhere out there just died. Please try again. Jussi On Wed, Jun 13, 2018 at 9:39 PM, PICCORO McKAY Lenz wrote: > hanks jussi so then to refers methods in the "son class" i must not prefix > with "me." > > and th access the inherits methods (heredados) i must use me. so "this" > its not equal to "me"? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-13 14:29 GMT-04:00 Jussi Lahtinen : > >> Example if you have class named Test that inherits Point, then if you >> want to access x and y in some method of the Test you need to use Me.X and >> Me.Y. >> So, example Test class could have code like this: >> >> Sub DoSomethingUseless() >> >> Me.X = 1 >> Me.Y = 2 >> >> ' These do not work: >> ' X = 1 >> ' Y = 2 >> >> End >> >> >> Jussi >> >> On Wed, Jun 13, 2018 at 8:49 PM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> > You must use the ME keyword to >>> access the inherited elements from the class inside. >>> >>> at the last of the sentece said "inside".. umm that sound little >>> confusing!?! >>> >>> can someone explain me better , i think the lwaguaje are a break here! >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 14 00:26:08 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Jun 2018 00:26:08 +0200 Subject: [Gambas-user] New Jit system merged on master In-Reply-To: References: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Message-ID: Le 14/06/2018 ? 00:04, Fabien Bodard a ?crit?: > So you was right ... the compilation time by gcc no take so much time > ... the benchmark results show similar result as the previous version. > Hopefully, because I can't cache the compile code, as it uses absolute addresses for performance reasons. There is one compilation for each component having at least one fast routine, and one for the main project. So it may take time if you have a lot of fast routines in a lot of components. -- Beno?t Minisini From vuott at tiscali.it Thu Jun 14 00:38:26 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Thu, 14 Jun 2018 00:38:26 +0200 Subject: [Gambas-user] =?utf-8?q?what_is_=2E=2E=2E_in_c_external_function?= =?utf-8?q?=3F?= In-Reply-To: References: Message-ID: ...or you can specify it. Library "libc:6" ' int sprintf (char *__restrict __s, const char *__restrict __format, ...) ' Write formatted output to S. Private Extern sprintf(__s As Pointer, __format As String, f As Float) As Integer Public Sub Main() Dim p As Pointer Dim s As String p = Alloc(SizeOf(gb.Byte), 11) sprintf(p, "%f", 123.456789) s = String@(p) Print s Free(p) End Il 13.06.2018 20:38 Jussi Lahtinen ha scritto: > It means the same as in Gambas. IE undefined amount of arguments. I have never run into this while using external functions. > You can try: > Public Extern errx(status As Integer, format as Pointer, ...) > ...but I have n clue whether it actually works. The implementation may not be compatible with C. > Jussi > > On Wed, Jun 13, 2018 at 8:09 PM, Demosthenes Koptsis wrote: > >> Hello, >> >> i have the next external function in libc >> >> 'void errx (int status, const char *format, ?) >> >> what is the ... ? >> >> is this correct? >> >> Public Extern errx(status As Integer, format as Pointer) >> >> Thnaks! >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [1] ]---- 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 demosthenesk at gmail.com Thu Jun 14 08:56:20 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Thu, 14 Jun 2018 09:56:20 +0300 Subject: [Gambas-user] what is ... in c external function? In-Reply-To: References: Message-ID: <3d39d487-367e-ddd4-c9f7-78579f69698d@gmail.com> yes thanks a lot all of you... it is the ellipsis as i found at https://stackoverflow.com/questions/2735587/in-a-c-function-declaration-what-does-as-the-last-parameter-do On 06/14/2018 01:38 AM, vuott at tiscali.it wrote: > ...or you can specify it. > > > Library "libc:6" > > ' int sprintf (char *__restrict __s, const char *__restrict __format, ...) > ' Write formatted output to S. > Private Extern sprintf(__s As Pointer, __format As String, f As Float) > As Integer > > > Public Sub Main() > ? Dim p As Pointer > ? Dim s As String > > ? p = Alloc(SizeOf(gb.Byte), 11) > > ? sprintf(p, "%f", 123.456789) > > ? s = String@(p) > > ? Print s > > ? Free(p) > > End > > > > > > > Il 13.06.2018 20:38 Jussi Lahtinen ha scritto: > >> It means the same as in Gambas. IE undefined amount of arguments. I >> have never run into this while using external functions. >> You can try: >> Public Extern errx(status As Integer, format as Pointer, ...) >> ...but I have n clue whether it actually works. The implementation >> may not be compatible with C. >> Jussi >> >> On Wed, Jun 13, 2018 at 8:09 PM, Demosthenes Koptsis >> > wrote: >> >> Hello, >> >> i have the next external function in libc >> >> 'void errx (int status, const char *format, ?) >> >> what is the ... ? >> >> is this correct? >> >> Public Extern errx(status As Integer, format as Pointer) >> >> Thnaks! >> >> >> ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net ]---- >> > > > > 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 > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Thu Jun 14 10:49:02 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Thu, 14 Jun 2018 11:49:02 +0300 Subject: [Gambas-user] external functions and struct Message-ID: i get an error with the following any help? Public Struct Mallinfo ? arena As Integer ? ordblks As Integer ? smblks As Integer ? hblks As Integer ? hblkhd As Integer ? usmblks As Integer ? fsmblks As Integer ? uordblks As Integer ? fordblks As Integer ? keepcost As Integer End Struct 'struct mallinfo mallinfo (void) Public Extern mallinfo() As Struct Mallinfo From g4mba5 at gmail.com Thu Jun 14 10:55:10 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Jun 2018 10:55:10 +0200 Subject: [Gambas-user] external functions and struct In-Reply-To: References: Message-ID: Le 14/06/2018 ? 10:49, Demosthenes Koptsis a ?crit?: > i get an error with the following any help? > > Public Struct Mallinfo > ? arena As Integer > ? ordblks As Integer > ? smblks As Integer > ? hblks As Integer > ? hblkhd As Integer > ? usmblks As Integer > ? fsmblks As Integer > ? uordblks As Integer > ? fordblks As Integer > ? keepcost As Integer > End Struct > > 'struct mallinfo mallinfo (void) > Public Extern mallinfo() As Struct Mallinfo > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Have you read http://gambaswiki.org/wiki/doc/extern ? Do you know C ? -- Beno?t Minisini From demosthenesk at gmail.com Thu Jun 14 11:18:01 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Thu, 14 Jun 2018 12:18:01 +0300 Subject: [Gambas-user] external functions and struct In-Reply-To: References: Message-ID: <6bf83cb3-c0e9-91cf-2cf6-b1dcfd77b2f1@gmail.com> a liitle, basics On 06/14/2018 11:55 AM, Beno?t Minisini wrote: > Le 14/06/2018 ? 10:49, Demosthenes Koptsis a ?crit?: >> i get an error with the following any help? >> >> Public Struct Mallinfo >> ?? arena As Integer >> ?? ordblks As Integer >> ?? smblks As Integer >> ?? hblks As Integer >> ?? hblkhd As Integer >> ?? usmblks As Integer >> ?? fsmblks As Integer >> ?? uordblks As Integer >> ?? fordblks As Integer >> ?? keepcost As Integer >> End Struct >> >> 'struct mallinfo mallinfo (void) >> Public Extern mallinfo() As Struct Mallinfo >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Have you read http://gambaswiki.org/wiki/doc/extern ? > > Do you know C ? > From demosthenesk at gmail.com Thu Jun 14 11:25:12 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Thu, 14 Jun 2018 12:25:12 +0300 Subject: [Gambas-user] external functions and struct In-Reply-To: References: Message-ID: <674c2775-6603-0b73-7f5e-9d33d7800219@gmail.com> According to gambas wiki *If the function returns a|struct ABC *|*, then you mimic the structure|ABC|declaration somewhere, and you declare the return value as|Struct ABC|. here the function returns a struct mallinfo. 'struct mallinfo mallinfo (void) so i created a Struct Mallinfo and i declare an external function As Struct Mallinfo Public Extern mallinfo() As Struct Mallinfo why this is wrong ? On 06/14/2018 11:55 AM, Beno?t Minisini wrote: > Le 14/06/2018 ? 10:49, Demosthenes Koptsis a ?crit?: >> i get an error with the following any help? >> >> Public Struct Mallinfo >> ?? arena As Integer >> ?? ordblks As Integer >> ?? smblks As Integer >> ?? hblks As Integer >> ?? hblkhd As Integer >> ?? usmblks As Integer >> ?? fsmblks As Integer >> ?? uordblks As Integer >> ?? fordblks As Integer >> ?? keepcost As Integer >> End Struct >> >> 'struct mallinfo mallinfo (void) >> Public Extern mallinfo() As Struct Mallinfo >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Have you read http://gambaswiki.org/wiki/doc/extern ? > > Do you know C ? > -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Thu Jun 14 12:38:53 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Thu, 14 Jun 2018 13:38:53 +0300 Subject: [Gambas-user] external functions and struct In-Reply-To: References: Message-ID: ok it works without Struct as keyword at return value Public Struct Mallinfo ? arena As Integer ? ordblks As Integer ? smblks As Integer ? hblks As Integer ? hblkhd As Integer ? usmblks As Integer ? fsmblks As Integer ? uordblks As Integer ? fordblks As Integer ? keepcost As Integer End Struct 'struct mallinfo mallinfo (void) Public Extern mallinfo() As Mallinfo On 06/14/2018 11:55 AM, Beno?t Minisini wrote: > Le 14/06/2018 ? 10:49, Demosthenes Koptsis a ?crit?: >> i get an error with the following any help? >> >> Public Struct Mallinfo >> ?? arena As Integer >> ?? ordblks As Integer >> ?? smblks As Integer >> ?? hblks As Integer >> ?? hblkhd As Integer >> ?? usmblks As Integer >> ?? fsmblks As Integer >> ?? uordblks As Integer >> ?? fordblks As Integer >> ?? keepcost As Integer >> End Struct >> >> 'struct mallinfo mallinfo (void) >> Public Extern mallinfo() As Struct Mallinfo >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Have you read http://gambaswiki.org/wiki/doc/extern ? > > Do you know C ? > From gambas.fr at gmail.com Thu Jun 14 14:22:09 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 14 Jun 2018 14:22:09 +0200 Subject: [Gambas-user] New Jit system merged on master In-Reply-To: References: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Message-ID: Le jeu. 14 juin 2018 00:27, Beno?t Minisini a ?crit : > Le 14/06/2018 ? 00:04, Fabien Bodard a ?crit : > > So you was right ... the compilation time by gcc no take so much time > > ... the benchmark results show similar result as the previous version. > > > > Hopefully, because I can't cache the compile code, as it uses absolute > addresses for performance reasons. > Is it not a way to make a bridge between absolute adresse and compiled code with dynamic one ? > There is one compilation for each component having at least one fast > routine, and one for the main project. So it may take time if you have a > lot of fast routines in a lot of components. > Hopefully the goal of this technic is not to have the faster program at startup but to have a way to speedup calculation and long loop processes. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jun 14 14:59:54 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 14 Jun 2018 08:59:54 -0400 Subject: [Gambas-user] inherist wiki description misc! In-Reply-To: References: Message-ID: <7f5f784b-0340-6cb9-b01e-4ca3cc2abcac@gmail.com> On 06/13/2018 01:49 PM, PICCORO McKAY Lenz wrote: > can someone explain me better , i think the lwaguaje are a break here! Mabye you explane you better for not break lwaguaje there. -- Lee From mckaygerhard at gmail.com Thu Jun 14 15:44:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jun 2018 09:44:21 -0400 Subject: [Gambas-user] inherist wiki description misc! In-Reply-To: References: Message-ID: ok sorry! i mean! thanks, Jussi! i only prefix with "me" if i want inherits methods, newly added methods just only call clean using directly their names? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-13 18:24 GMT-04:00 Jussi Lahtinen : > ?? > Some English teacher somewhere out there just died. Please try again. > > > Jussi > > On Wed, Jun 13, 2018 at 9:39 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> hanks jussi so then to refers methods in the "son class" i must not >> prefix with "me." >> >> and th access the inherits methods (heredados) i must use me. so "this" >> its not equal to "me"? >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-13 14:29 GMT-04:00 Jussi Lahtinen : >> >>> Example if you have class named Test that inherits Point, then if you >>> want to access x and y in some method of the Test you need to use Me.X and >>> Me.Y. >>> So, example Test class could have code like this: >>> >>> Sub DoSomethingUseless() >>> >>> Me.X = 1 >>> Me.Y = 2 >>> >>> ' These do not work: >>> ' X = 1 >>> ' Y = 2 >>> >>> End >>> >>> >>> Jussi >>> >>> On Wed, Jun 13, 2018 at 8:49 PM, PICCORO McKAY Lenz < >>> mckaygerhard at gmail.com> wrote: >>> >>>> > You must use the ME keyword to >>>> access the inherited elements from the class inside. >>>> >>>> at the last of the sentece said "inside".. umm that sound little >>>> confusing!?! >>>> >>>> can someone explain me better , i think the lwaguaje are a break here! >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 14 16:52:39 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jun 2018 10:52:39 -0400 Subject: [Gambas-user] New Jit system merged on master In-Reply-To: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> References: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Message-ID: if i download and try to compile from git repository!? will the new git component need furter configurations or just configure & make & make instll etc etc??? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-12 19:38 GMT-04:00 Beno?t Minisini : > Hi, > > I have just merged the 'jit-with-c' branch to 'master'. > > The JIT compiler is not finished, but is advanced enough to run all the > fast methods of the IDE, the gb.form.editor and the gb.form.terminal > components. The benchmarks run too. > > Many features are still not implemented: > > - Functions with variable number of arguments. > - Structures. > - Static arrays. > - ON GOTO and ON GOSUB. > - Error management. > - BYREF. > - Extern functions. > - WITH ... END WITH. > > And many implemented features are not tested. > > And many optimizations could be done too, especially in properties and > methods calls, that are mostly run by the interpreter at the moment. > > The performance gain is about the same as the old JIT compiler. Often a > bit slower, sometimes unexpectedly faster. The biggest gains are when > dealing with loops, integers and native arrays. On the other side, you > won't gain anything with string routines, the 'string' benchmark even being > a bit slower! > > Note that the JIT compiler is not a compiler, but a Gambas to C > translator, about 3,000 lines of code, whose result is preprocessed, > compiled and linked by the gcc compiler at runtime. > > To disable the JIT compiler, set the environment variable GB_NO_JIT to 1. > To have some debugging messages, set GB_JIT_DEBUG to 1. > > Otherwise, I fixed the thousand separator management in the Format() > function, and optimized the string search routine used by InStr(), RInstr() > and Replace(). The "string" benchmark now runs 4 times faster. > > Apart from the previous limitations, you can start to play with it, to > help me test the following: > > - Does it work with 32 bits x86? > - Does it work with ARM? > - Does it work with clang? > - ... > > Enjoy it! > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 14 17:20:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jun 2018 11:20:57 -0400 Subject: [Gambas-user] store a emtpy string in a collection key? how ? In-Reply-To: References: <20180613193614.GD870@highrise.localdomain> Message-ID: hi Tobias and all, i review the JSON component and see that: If IsNull(Value) Then Value = JSON.Null and the JSON module has this that i dont know where i put in my new collection class: Public Sub _init() $vNull = VarPtr($vNull) ' End and then when read try to detect the JSON.null and if detected set the return to null so if i inherits and make my onw collection class like json module does? jus i copy the same code as JSON componente will work? where i must put the init code of the null json value? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-13 16:27 GMT-04:00 PICCORO McKAY Lenz : > 2018-06-13 15:36 GMT-04:00 Tobias Boege : > >> The empty string is equal to Null in Gambas and assigning Null to a >> collection slot deletes it. You can get around this limitation, but you >> have to create the logic yourself. >> > ohh god dam! > >> >> For example JSONCollection [1] from gb.web allows you to store a Null-ish >> value, but instead of Null itself, you have to store the special token >> JSON.Null (which is actually not Null, if you're still with me). >> > i got it, that special value permits to store null and not delete the key! > > damm! i need something like php array does! > > this king of "misc" stop gambas gain force in web/app > > umm ok thanks Tobiaas! > > >> >> Regards, >> Tobi >> >> [1] http://gambaswiki.org/wiki/comp/gb.web/jsoncollection >> >> -- >> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 14 17:50:46 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 14 Jun 2018 11:50:46 -0400 Subject: [Gambas-user] store a emtpy string in a collection key? how ? In-Reply-To: References: <20180613193614.GD870@highrise.localdomain> Message-ID: ok it works! i just review the code at JSON module and paste in my inherist collection and thanks Tobias! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-14 11:20 GMT-04:00 PICCORO McKAY Lenz : > hi Tobias and all, i review the JSON component and see that: > > If IsNull(Value) Then Value = JSON.Null > > and the JSON module has this that i dont know where i put in my new > collection class: > > Public Sub _init() > > $vNull = VarPtr($vNull) ' > > End > > and then when read try to detect the JSON.null and if detected set the > return to null > > so if i inherits and make my onw collection class like json module does? > jus i copy the same code as JSON componente will work? where i must put the > init code of the null json value? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-13 16:27 GMT-04:00 PICCORO McKAY Lenz : > >> 2018-06-13 15:36 GMT-04:00 Tobias Boege : >> >>> The empty string is equal to Null in Gambas and assigning Null to a >>> collection slot deletes it. You can get around this limitation, but you >>> have to create the logic yourself. >>> >> ohh god dam! >> >>> >>> For example JSONCollection [1] from gb.web allows you to store a Null-ish >>> value, but instead of Null itself, you have to store the special token >>> JSON.Null (which is actually not Null, if you're still with me). >>> >> i got it, that special value permits to store null and not delete the key! >> >> damm! i need something like php array does! >> >> this king of "misc" stop gambas gain force in web/app >> >> umm ok thanks Tobiaas! >> >> >>> >>> Regards, >>> Tobi >>> >>> [1] http://gambaswiki.org/wiki/comp/gb.web/jsoncollection >>> >>> -- >>> "There's an old saying: Don't change anything... ever!" -- Mr. Monk >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jun 14 19:10:13 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 14 Jun 2018 20:10:13 +0300 Subject: [Gambas-user] inherist wiki description misc! In-Reply-To: References: Message-ID: Yes, you got it right. Jussi On Thu, Jun 14, 2018 at 4:44 PM, PICCORO McKAY Lenz wrote: > ok sorry! i mean! > > thanks, Jussi! > > i only prefix with "me" if i want inherits methods, newly added methods > just only call clean using directly their names? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-13 18:24 GMT-04:00 Jussi Lahtinen : > >> ?? >> Some English teacher somewhere out there just died. Please try again. >> >> >> Jussi >> >> On Wed, Jun 13, 2018 at 9:39 PM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> hanks jussi so then to refers methods in the "son class" i must not >>> prefix with "me." >>> >>> and th access the inherits methods (heredados) i must use me. so "this" >>> its not equal to "me"? >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-13 14:29 GMT-04:00 Jussi Lahtinen : >>> >>>> Example if you have class named Test that inherits Point, then if you >>>> want to access x and y in some method of the Test you need to use Me.X and >>>> Me.Y. >>>> So, example Test class could have code like this: >>>> >>>> Sub DoSomethingUseless() >>>> >>>> Me.X = 1 >>>> Me.Y = 2 >>>> >>>> ' These do not work: >>>> ' X = 1 >>>> ' Y = 2 >>>> >>>> End >>>> >>>> >>>> Jussi >>>> >>>> On Wed, Jun 13, 2018 at 8:49 PM, PICCORO McKAY Lenz < >>>> mckaygerhard at gmail.com> wrote: >>>> >>>>> > You must use the ME keyword to >>>>> access the inherited elements from the class inside. >>>>> >>>>> at the last of the sentece said "inside".. umm that sound little >>>>> confusing!?! >>>>> >>>>> can someone explain me better , i think the lwaguaje are a break here! >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Jun 14 20:10:36 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 14 Jun 2018 20:10:36 +0200 Subject: [Gambas-user] New Jit system merged on master In-Reply-To: References: <03941741-5744-1fc4-f0cb-ae725d6150c1@gmail.com> Message-ID: Le jeu. 14 juin 2018 16:53, PICCORO McKAY Lenz a ?crit : > if i download and try to compile from git repository!? will the new git > component need furter configurations or just configure & make & make instll > etc etc??? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > >> You just have to do : ./reconf-all ./configure -C make make install The new jit just need gcc >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu Jun 14 21:24:10 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 14 Jun 2018 21:24:10 +0200 Subject: [Gambas-user] Playground problems Message-ID: <20180614192410.GB1010@highrise.localdomain> Hi Adrien, I just tried to use the playground for the first time -- it didn't work for me :-/ 1. I couldn't share my snippet. Are the gists by chance based on anonymous gists on github, which were removed recently? (Maybe you wrote about that here, I faintly remember something.) 2. I couldn't load gb.db.sqlite3 for an in-memory DB. Could you add that component? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From herberthguzman at gmail.com Thu Jun 14 22:51:57 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Thu, 14 Jun 2018 22:51:57 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 Message-ID: Hi Benoit I have problems with systray again with gb-qt5. With ubuntu 16.04 and gb-qt5 the system tray works well With Ubuntu 18.04 it does not work. I need help. Systray does NOT work with gb-qt5 ubuntu 18.04 Tell me if it is possible that I can work with gb-qt5 please. Can you help me please or find some solution to my problem ...? Thank you very much Herberth Guzm?n -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 14 22:57:20 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Jun 2018 22:57:20 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: Message-ID: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> Le 14/06/2018 ? 22:51, herberth guzman a ?crit?: > Hi Benoit > > I have problems with systray again with gb-qt5. > With ubuntu 16.04 and gb-qt5 the system tray works well > With Ubuntu 18.04 it does not work. > > > I need help. > > Systray does NOT work with gb-qt5 ubuntu 18.04 > > > Tell me if it is possible that I can work with gb-qt5 please. > > Can you help me please or find some solution to my problem ...? > Thank you very much > > Herberth Guzm?n > Which desktop do you use exactly? -- Beno?t Minisini From herberthguzman at gmail.com Thu Jun 14 23:32:16 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Thu, 14 Jun 2018 23:32:16 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> Message-ID: Innova and Gnome 3.26 [System] Gambas=3.11.2 OperatingSystem=Linux Kernel=4.15.0-20-generic Architecture=x86_64 Distribution=Ubuntu 18.04 LTS Desktop=INNOVA Theme=Windows Language=es_ES.UTF-8 Memory=3816M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1400.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.73.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.5 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/Innova.default.path DESKTOP_SESSION=Innova DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=Innova GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge HOME= LANG=es_ES.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/Innova.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_PLATFORMTHEME=qt5ct QT_PLATFORM_PLUGIN=qt5ct QT_QPA_PLATFORMTHEME=qt5ct SAL_USE_VCLPLUGIN=kde4 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1246 SSH_AUTH_SOCK=/tmp/ssh-09QsW73vrM2e/agent.1182 TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=2 XAUTHORITY=/run/user/1000/gdm/Xauthority XDG_CACHE_HOME=/.cache XDG_CONFIG_DIRS=/etc/xdg/xdg-Innova:/etc/xdg XDG_CONFIG_HOME=/.config XDG_CURRENT_DESKTOP=Innova XDG_DATA_DIRS=/usr/share/Innova:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_DATA_HOME=/.local/share XDG_MENU_PREFIX=innova- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_DESKTOP=Innova XDG_SESSION_ID=2 XDG_SESSION_TYPE=x11 XDG_VTNR=2 2018-06-14 22:57 GMT+02:00 Beno?t Minisini : > Le 14/06/2018 ? 22:51, herberth guzman a ?crit : > >> Hi Benoit >> >> I have problems with systray again with gb-qt5. >> With ubuntu 16.04 and gb-qt5 the system tray works well >> With Ubuntu 18.04 it does not work. >> >> >> I need help. >> >> Systray does NOT work with gb-qt5 ubuntu 18.04 >> >> >> Tell me if it is possible that I can work with gb-qt5 please. >> >> Can you help me please or find some solution to my problem ...? >> Thank you very much >> >> Herberth Guzm?n >> >> > Which desktop do you use exactly? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 14 23:46:04 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 14 Jun 2018 23:46:04 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> Message-ID: <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Le 14/06/2018 ? 23:32, herberth guzman a ?crit?: > > Innova and Gnome 3.26 > > Does this desktop have a DBus system tray? Does it have support for the old system tray protocol? -- Beno?t Minisini From herberthguzman at gmail.com Thu Jun 14 23:53:43 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Thu, 14 Jun 2018 23:53:43 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : > Le 14/06/2018 ? 23:32, herberth guzman a ?crit : > >> >> Innova and Gnome 3.26 >> >> >> > Does this desktop have a DBus system tray? > No > > Does it have support for the old system tray protocol? Yes > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From herberthguzman at gmail.com Thu Jun 14 23:54:25 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Thu, 14 Jun 2018 23:54:25 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: I would like to improve, but I do not know how to do it ... 2018-06-14 23:53 GMT+02:00 herberth guzman : > > > 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : > >> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >> >>> >>> Innova and Gnome 3.26 >>> >>> >>> >> Does this desktop have a DBus system tray? >> > > No > >> >> Does it have support for the old system tray protocol? > > > Yes > >> >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jun 15 08:57:49 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 15 Jun 2018 08:57:49 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: Is it a problem with the icon tray or with the systrayarea ? I have begin to wrote a systray area based on the dbus protocol.. there is some year . maybe it not take too much time to me to finish it. But the protocols are really not all standardized :-(. Le jeu. 14 juin 2018 23:55, herberth guzman a ?crit : > I would like to improve, but I do not know how to do it ... > > 2018-06-14 23:53 GMT+02:00 herberth guzman : > >> >> >> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >> >>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>> >>>> >>>> Innova and Gnome 3.26 >>>> >>>> >>>> >>> Does this desktop have a DBus system tray? >>> >> >> No >> >>> >>> Does it have support for the old system tray protocol? >> >> >> Yes >> >>> >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 15 15:33:03 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jun 2018 09:33:03 -0400 Subject: [Gambas-user] how to handle amount of connections pool? Message-ID: hi to all.. i try to make a minimal framework to work in gambas as a library/component to load.. i try to see how to handle best way to use connections by name.. just like codeigniter framework does.. i mean.. in CI framework, the coder just only load the connection "by name" as defined on settings in the "database.conf" file configuration.. i have a collection of all the configuartion files that inherits from Settings and collection (a special class just like settings but handle all the variables like collection but admit a null value) basically how can i emulate the creation of class like in php : $newclass = $this->config("database1") ?? of course "newclass" its a connection gambas class Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Fri Jun 15 16:23:10 2018 From: claude.dessere at orange.fr (CD) Date: Fri, 15 Jun 2018 16:23:10 +0200 Subject: [Gambas-user] Format$ function Message-ID: Hi,I read, and read, the Gambas doc, search this lists.gambas-basic, and other. I searched in the config of my ubuntu-mate 18.04 without any success, otherwise I would not be there: why when I write for example in the console Print Format$(1234567, "#, ## 0") gb returns 1? 234? 567 freeoffice calc, returns him well the separator of the local thousands for fr_FR: 1 234 567 I think it's an environmental problem and not gb, but I do not know where to set that ... N.B. I also tried Print Format$(1234567, "$#,##0") 1?234?567 ? Thank you for your answers -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Fri Jun 15 16:38:51 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Fri, 15 Jun 2018 17:38:51 +0300 Subject: [Gambas-user] Too many External Functions error... Message-ID: <79ca58bf-f87f-e213-c167-6616fc58bc42@gmail.com> Hello, i get "Too many External Functions" error. Is there a limit of number of extern functions per file? i split my module to 2 files for now... Thanks Dim From g4mba5 at gmail.com Fri Jun 15 16:42:51 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jun 2018 16:42:51 +0200 Subject: [Gambas-user] Format$ function In-Reply-To: References: Message-ID: <210930ac-74c6-3e58-3e6f-2d644ee1269d@gmail.com> Le 15/06/2018 ? 16:23, CD a ?crit?: > Hi,I read, and read, the Gambas doc, search this lists.gambas-basic, and > other. > I searched in the config of my ubuntu-mate 18.04 without any success, > otherwise I would not be there: > why when I write for example in the console > > Print Format$(1234567, "#, ## 0") > gb returns > 1? 234? 567 > > freeoffice calc, returns him well the separator of the local thousands > for fr_FR: 1 234 567 > I think it's an environmental problem and not gb, but I do not know > where to set that ... > > N.B. > I also tried > Print Format$(1234567, "$#,##0") > 1?234?567 ? > > Thank you for your answers > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > That bug has just been fixed. The people who make the french localization of glibc seem to like using new Unicode space separators at each new release... Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri Jun 15 16:44:40 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 15 Jun 2018 16:44:40 +0200 Subject: [Gambas-user] Too many External Functions error... In-Reply-To: <79ca58bf-f87f-e213-c167-6616fc58bc42@gmail.com> References: <79ca58bf-f87f-e213-c167-6616fc58bc42@gmail.com> Message-ID: Le 15/06/2018 ? 16:38, Demosthenes Koptsis a ?crit?: > Hello, > > i get "Too many External Functions" error. > > Is there a limit of number of extern functions per file? > > i split my module to 2 files for now... > > Thanks Dim > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Yes: http://gambaswiki.org/wiki/doc/limit -- Beno?t Minisini From mckaygerhard at gmail.com Fri Jun 15 16:51:28 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jun 2018 10:51:28 -0400 Subject: [Gambas-user] how to handle amount of connections pool? In-Reply-To: References: Message-ID: i explain me bad, i mean the name of the new clas could be equal as the name of the "connection name" so, how can i emulate the creation of class like in php : $this->config("database1") so then i now have a new class named "datbase1" $this->database1->query("select * from dual") please help! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-15 9:33 GMT-04:00 PICCORO McKAY Lenz : > hi to all.. i try to make a minimal framework to work in gambas as a > library/component to load.. > > i try to see how to handle best way to use connections by name.. just like > codeigniter framework does.. i mean.. > > in CI framework, the coder just only load the connection "by name" as > defined on settings in the "database.conf" file configuration.. > > i have a collection of all the configuartion files that inherits from > Settings and collection (a special class just like settings but handle all > the variables like collection but admit a null value) > > basically how can i emulate the creation of class like in php : > $newclass = $this->config("database1") > > ?? > > of course "newclass" its a connection gambas class > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 15 16:52:44 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jun 2018 10:52:44 -0400 Subject: [Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs? Message-ID: this are necesary at leats for web application programs! how can i emulate GLOBAL VARIABLES in gambas project/programs? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Fri Jun 15 17:38:43 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Fri, 15 Jun 2018 18:38:43 +0300 Subject: [Gambas-user] Too many External Functions error... In-Reply-To: References: <79ca58bf-f87f-e213-c167-6616fc58bc42@gmail.com> Message-ID: <3e924fd3-33b3-121e-7b08-f91f3a89256b@gmail.com> Thanks Beno?t! On 06/15/2018 05:44 PM, Beno?t Minisini wrote: > Le 15/06/2018 ? 16:38, Demosthenes Koptsis a ?crit?: >> Hello, >> >> i get "Too many External Functions" error. >> >> Is there a limit of number of extern functions per file? >> >> i split my module to 2 files for now... >> >> Thanks Dim >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > Yes: http://gambaswiki.org/wiki/doc/limit > From claude.dessere at orange.fr Fri Jun 15 17:41:50 2018 From: claude.dessere at orange.fr (CD) Date: Fri, 15 Jun 2018 17:41:50 +0200 Subject: [Gambas-user] Format$ function In-Reply-To: References: Message-ID: <975c9c66aec80921d61cf239d8cc2fad98678611.camel@orange.fr> you says : "That bug has just been fixed." so fixed but we have to wait for the next version, the update? The update of gambas or the update of glibc? Regards Le vendredi 15 juin 2018 ? 16:52 +0200, user-request at lists.gambas-basic.org a ?crit : > 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/useror, 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-b > asic.org > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..." > Today's Topics: > 1. how to handle amount of connections pool? (PICCORO McKAY Lenz) 2. > Format$ function (CD) 3. Too many External Functions error... (Demosthenes > Koptsis) 4. Re: Format$ function (Beno?t Minisini) 5. Re: Too many > External Functions error... (Beno?t Minisini) 6. Re: how to handle amount of > connections pool? (PICCORO McKAY Lenz) > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From herberthguzman at gmail.com Fri Jun 15 18:43:34 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Fri, 15 Jun 2018 18:43:34 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: How can I create a DBus system tray? Can you help me please. >>Is it a problem with the icon tray or with the systrayarea ? t does not show any icon, example I want to show vlc or nm-applet, it does not show it. >>I have begin to wrote a systray area based on the dbus protocol.. there is some year . maybe it not take too much time to me to finish it. I can test your new system tray ...? 2018-06-15 8:57 GMT+02:00 Fabien Bodard : > Is it a problem with the icon tray or with the systrayarea ? > > I have begin to wrote a systray area based on the dbus protocol.. there is > some year . maybe it not take too much time to me to finish it. > > But the protocols are really not all standardized :-(. > > Le jeu. 14 juin 2018 23:55, herberth guzman a > ?crit : > >> I would like to improve, but I do not know how to do it ... >> >> 2018-06-14 23:53 GMT+02:00 herberth guzman : >> >>> >>> >>> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >>> >>>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>>> >>>>> >>>>> Innova and Gnome 3.26 >>>>> >>>>> >>>>> >>>> Does this desktop have a DBus system tray? >>>> >>> >>> No >>> >>>> >>>> Does it have support for the old system tray protocol? >>> >>> >>> Yes >>> >>>> >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jun 15 20:39:23 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 15 Jun 2018 20:39:23 +0200 Subject: [Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs? In-Reply-To: References: Message-ID: <20180615183923.GC1010@highrise.localdomain> On Fri, 15 Jun 2018, PICCORO McKAY Lenz wrote: > this are necesary at leats for web application programs! > > how can i emulate GLOBAL VARIABLES in gambas project/programs? > The usual way is to make a module and declare all your variables inside it using Public: ' Global.module: Public X As Integer Now you can access Global.X anywhere in your program and all places will access the same location in memory. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri Jun 15 20:52:48 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jun 2018 14:52:48 -0400 Subject: [Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs? In-Reply-To: <20180615183923.GC1010@highrise.localdomain> References: <20180615183923.GC1010@highrise.localdomain> Message-ID: umm i cannot avoid the "global." prefix! right? well thanks in any case! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-15 14:39 GMT-04:00 Tobias Boege : > On Fri, 15 Jun 2018, PICCORO McKAY Lenz wrote: > > this are necesary at leats for web application programs! > > > > how can i emulate GLOBAL VARIABLES in gambas project/programs? > > > > The usual way is to make a module and declare all your variables > inside it using Public: > > ' Global.module: > Public X As Integer > > Now you can access Global.X anywhere in your program and all > places will access the same location in memory. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 15 20:54:43 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jun 2018 14:54:43 -0400 Subject: [Gambas-user] 3.11 not listed at bugtracker and git now are in 3.11.90 Message-ID: 3.11 are now at stable branch, master becomes 3.11.90 and 3.11 not listed at bugtracker and git now are in 3.11.90 Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Fri Jun 15 21:24:32 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 15 Jun 2018 21:24:32 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: Le ven. 15 juin 2018 ? 18:44, herberth guzman a ?crit : > > > How can I create a DBus system tray? > Can you help me please. > it's not so easy :-) > > >>Is it a problem with the icon tray or with the systrayarea ? > t does not show any icon, example I want to show vlc or nm-applet, it does > not show it. > > > >>I have begin to wrote a systray area based on the dbus protocol.. there > is some year . maybe it not take too much time to me to finish it. > > I can test your new system tray ...? > it's too early :-) > > 2018-06-15 8:57 GMT+02:00 Fabien Bodard : > >> Is it a problem with the icon tray or with the systrayarea ? >> >> I have begin to wrote a systray area based on the dbus protocol.. there >> is some year . maybe it not take too much time to me to finish it. >> >> But the protocols are really not all standardized :-(. >> >> Le jeu. 14 juin 2018 23:55, herberth guzman a >> ?crit : >> >>> I would like to improve, but I do not know how to do it ... >>> >>> 2018-06-14 23:53 GMT+02:00 herberth guzman : >>> >>>> >>>> >>>> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >>>> >>>>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>>>> >>>>>> >>>>>> Innova and Gnome 3.26 >>>>>> >>>>>> >>>>>> >>>>> Does this desktop have a DBus system tray? >>>>> >>>> >>>> No >>>> >>>>> >>>>> Does it have support for the old system tray protocol? >>>> >>>> >>>> Yes >>>> >>>>> >>>>> >>>>> -- >>>>> Beno?t Minisini >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 15 22:04:47 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 15 Jun 2018 16:04:47 -0400 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: 2018-06-15 15:24 GMT-04:00 Fabien Bodard : > How can I create a DBus system tray? > >> Can you help me please. >> > > it's not so easy :-) > yeah, the dbus message format and interfaces are very inconsistent between versions and the freedesktop documents are very ambigous about it! also the qt5 > > >> >> >>Is it a problem with the icon tray or with the systrayarea ? >> t does not show any icon, example I want to show vlc or nm-applet, it >> does not show it. >> >> >> >>I have begin to wrote a systray area based on the dbus protocol.. there >> is some year . maybe it not take too much time to me to finish it. >> >> I can test your new system tray ...? >> > > it's too early :-) > > > > > >> >> 2018-06-15 8:57 GMT+02:00 Fabien Bodard : >> >>> Is it a problem with the icon tray or with the systrayarea ? >>> >>> I have begin to wrote a systray area based on the dbus protocol.. there >>> is some year . maybe it not take too much time to me to finish it. >>> >>> But the protocols are really not all standardized :-(. >>> >>> Le jeu. 14 juin 2018 23:55, herberth guzman >>> a ?crit : >>> >>>> I would like to improve, but I do not know how to do it ... >>>> >>>> 2018-06-14 23:53 GMT+02:00 herberth guzman : >>>> >>>>> >>>>> >>>>> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >>>>> >>>>>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>>>>> >>>>>>> >>>>>>> Innova and Gnome 3.26 >>>>>>> >>>>>>> >>>>>>> >>>>>> Does this desktop have a DBus system tray? >>>>>> >>>>> >>>>> No >>>>> >>>>>> >>>>>> Does it have support for the old system tray protocol? >>>>> >>>>> >>>>> Yes >>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Beno?t Minisini >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Sat Jun 16 10:31:39 2018 From: claude.dessere at orange.fr (CD) Date: Sat, 16 Jun 2018 10:31:39 +0200 Subject: [Gambas-user] User Preferences Message-ID: <2a284cac03c4492a016aa8cd0743ca80e1536156.camel@orange.fr> Hi, In the IDE Gambas when I go to "Tools / Preferences" tab or rubric "Project" under the heading "Tabulation by default" I chose 4 spaces ... when next I activate the menu "File/New Project" I have a new project whose "Properties/Options/Tabulation Size" is 2 spaces. Is it normal? what are the user preferences for, from the point of view of the default tabs? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Sat Jun 16 12:18:11 2018 From: claude.dessere at orange.fr (CD) Date: Sat, 16 Jun 2018 12:18:11 +0200 Subject: [Gambas-user] (no subject) Message-ID: Hi, in the translation form could we have the possibility, by a double-click for example, to copy each line of the default language to be able to paste it into a translator. Or even better to have a "Copy" button which inserts into the clipboard all the items in the list to translate separated by a "\ n". Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sat Jun 16 14:34:03 2018 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 16 Jun 2018 08:34:03 -0400 Subject: [Gambas-user] User Preferences In-Reply-To: <2a284cac03c4492a016aa8cd0743ca80e1536156.camel@orange.fr> References: <2a284cac03c4492a016aa8cd0743ca80e1536156.camel@orange.fr> Message-ID: Setting a custom tab size works fine for me with version 3.11.90 89f82c0b1 (master). -- Lee On 06/16/2018 04:31 AM, CD wrote: > Hi, > > In the IDE Gambas > when I go to "Tools / Preferences" > tab or rubric "Project" under the heading "Tabulation by default" > I chose 4 spaces ... > when next I activate the menu "File/New Project" > I have a new project whose > "Properties/Options/Tabulation Size" is 2 spaces. > Is it normal? > what are the user preferences for, from the point of view of the default tabs? > > Regards > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From g4mba5 at gmail.com Sat Jun 16 14:52:51 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Jun 2018 14:52:51 +0200 Subject: [Gambas-user] User Preferences In-Reply-To: <2a284cac03c4492a016aa8cd0743ca80e1536156.camel@orange.fr> References: <2a284cac03c4492a016aa8cd0743ca80e1536156.camel@orange.fr> Message-ID: <7b1a1843-910b-e37c-76b1-23ab82e75fe6@gmail.com> Le 16/06/2018 ? 10:31, CD a ?crit?: > Hi, > > In the IDE Gambas > when I go to "Tools / Preferences" > tab or rubric "Project" under the heading "Tabulation by default" > I chose 4 spaces ... > when next I activate the menu "File/New Project" > I have a new project whose > "Properties/Options/Tabulation Size" is 2 spaces. > Is it normal? No. It's fixed in commit https://gitlab.com/gambas/gambas/commit/f922f8c18774c6c0c9f52004e13bcee7ccfad37b. Regards, -- Beno?t Minisini From herberthguzman at gmail.com Sat Jun 16 16:02:07 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Sat, 16 Jun 2018 08:02:07 -0600 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: How can i solve the problem with gb.qt5 I need my system tray for my project. Help please. El vie., 15 jun. 2018 2:05 p.m., PICCORO McKAY Lenz escribi?: > 2018-06-15 15:24 GMT-04:00 Fabien Bodard : > >> How can I create a DBus system tray? >> >>> Can you help me please. >>> >> >> it's not so easy :-) >> > > yeah, the dbus message format and interfaces are very inconsistent between > versions and the freedesktop documents are very ambigous about it! also the > qt5 > > >> >> >>> >>> >>Is it a problem with the icon tray or with the systrayarea ? >>> t does not show any icon, example I want to show vlc or nm-applet, it >>> does not show it. >>> >>> >>> >>I have begin to wrote a systray area based on the dbus protocol.. >>> there is some year . maybe it not take too much time to me to finish it. >>> >>> I can test your new system tray ...? >>> >> >> it's too early :-) >> >> >> >> >> >>> >>> 2018-06-15 8:57 GMT+02:00 Fabien Bodard : >>> >>>> Is it a problem with the icon tray or with the systrayarea ? >>>> >>>> I have begin to wrote a systray area based on the dbus protocol.. there >>>> is some year . maybe it not take too much time to me to finish it. >>>> >>>> But the protocols are really not all standardized :-(. >>>> >>>> Le jeu. 14 juin 2018 23:55, herberth guzman >>>> a ?crit : >>>> >>>>> I would like to improve, but I do not know how to do it ... >>>>> >>>>> 2018-06-14 23:53 GMT+02:00 herberth guzman : >>>>> >>>>>> >>>>>> >>>>>> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >>>>>> >>>>>>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>>>>>> >>>>>>>> >>>>>>>> Innova and Gnome 3.26 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Does this desktop have a DBus system tray? >>>>>>> >>>>>> >>>>>> No >>>>>> >>>>>>> >>>>>>> Does it have support for the old system tray protocol? >>>>>> >>>>>> >>>>>> Yes >>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Beno?t Minisini >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> -- >> Fabien Bodard >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jun 16 16:11:52 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 16 Jun 2018 16:11:52 +0200 Subject: [Gambas-user] (no subject) In-Reply-To: References: Message-ID: <26c09643-b600-a02a-66ac-a8c9dd09caf6@gmail.com> Le 16/06/2018 ? 12:18, CD a ?crit?: > Hi, > > in the translation form > could we have the possibility, by a double-click for example, > to copy each line of the default language > to be able to paste it into a translator. > > Or even better to have a "Copy" button > which inserts into the clipboard > all the items in the list to translate separated by a "\ n". > > Regards > Done in commit https://gitlab.com/gambas/gambas/commit/b023f19ca12bc375cf0eaa836e416547d7f60fad. Regards, -- Beno?t Minisini From mb at code-it.com Sat Jun 16 19:17:19 2018 From: mb at code-it.com (mikeB) Date: Sat, 16 Jun 2018 11:17:19 -0600 Subject: [Gambas-user] TerminalView question Message-ID: eGreetings Gambas support list, I have placed a "TerminalView" control on a form. Is there any way to insert text (a command line) into it via code? i.e (ffmpeg -i source.avi target.mp4)then somehow automatically press the return key (to activate). I thought I read somewhere that you could but can't find much documentation on this control ;-( Thanking you in advance for any direction on how to do this, mikeB From kicking177 at gmail.com Sun Jun 17 11:29:03 2018 From: kicking177 at gmail.com (KKing) Date: Sun, 17 Jun 2018 10:29:03 +0100 Subject: [Gambas-user] Add Gambas to subject line of mailing list emails Message-ID: Any chance to add Gambas to the email subject lines? e.g. instead of "User Digest, Vol 9, Issue 78" it would read "Gambas User Digest, Vol 9, Issue 78" K. From charlie at cogier.com Sun Jun 17 12:53:01 2018 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 17 Jun 2018 11:53:01 +0100 Subject: [Gambas-user] TerminalView question In-Reply-To: References: Message-ID: <0134dcbd-e2b5-8bc7-d17e-48ea08a29baa@cogier.com> Hi Mike, You can use *Desktop.Sendkeys* to do this. If you download *EasyTerminal* from the Gambas Farm and have a look at the *Public Sub SendTheKeys* for an example. Charlie On 16/06/18 18:17, mikeB wrote: > eGreetings Gambas support list, > > I have placed a "TerminalView" control on a form. > > Is there any way to insert text (a command line) into > > it via code? i.e (ffmpeg -i source.avi target.mp4)then > > somehow automatically press the return key (to activate). > > > I thought I read somewhere that you could but can't find > > much documentation on this control ;-( > > > Thanking you in advance for any direction on how to do this, > > mikeB > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 17 13:16:04 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 17 Jun 2018 14:16:04 +0300 Subject: [Gambas-user] Arrays in Structures Message-ID: <2e12fe67-bf50-cc10-4730-f284443726ee@gmail.com> Hello, may i have an example of an Array in a Struct ? *PUBLIC* *STRUCT* _Identifier_ ... _Field /k/_ [ _Embedded array declaration_ ] *AS* [ _Datatype_ ] ... *END STRUCT* is the next one correct? Public Struct aioinit ? aio_threads As Integer ? aio_num As Integer ? aio_locks As Integer ? aio_usedba As Integer ? aio_debug As Integer ? aio_numusers As Integer ? aio_reserved[2] As Integer[] End Struct when i run it it does not complain for errors. Thanks Dim -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Jun 17 13:44:58 2018 From: taboege at gmail.com (Tobias Boege) Date: Sun, 17 Jun 2018 13:44:58 +0200 Subject: [Gambas-user] Arrays in Structures In-Reply-To: <2e12fe67-bf50-cc10-4730-f284443726ee@gmail.com> References: <2e12fe67-bf50-cc10-4730-f284443726ee@gmail.com> Message-ID: <20180617114458.GF1010@highrise.localdomain> On Sun, 17 Jun 2018, Demosthenes Koptsis wrote: > Hello, > > may i have an example of an Array in a Struct ? > > *PUBLIC* *STRUCT* _Identifier_ ... _Field /k/_ [ _Embedded array > declaration_ ] *AS* [ _Datatype_ ] ... *END STRUCT* > > > is the next one correct? > > Public Struct aioinit > ? aio_threads As Integer > ? aio_num As Integer > ? aio_locks As Integer > ? aio_usedba As Integer > ? aio_debug As Integer > ? aio_numusers As Integer > ? aio_reserved[2] As Integer[] > End Struct > > when i run it it does not complain for errors. > That of course depends on what you want to do. The above gives you an embedded array of size 2, whose elements are Integer[] objects. If you're interfacing with external libraries, you likely want it to be just two integers: aio_reserved[2] As Integer Also note that my local manual tells me that one of the reserved ints became used "already" in glibc 2.2 (that was around the beginning of the millennium): struct aioinit { int aio_threads; /* Maximum number of threads */ int aio_num; /* Number of expected simultaneous requests */ int aio_locks; /* Not used */ int aio_usedba; /* Not used */ int aio_debug; /* Not used */ int aio_numusers; /* Not used */ int aio_idle_time; /* Number of seconds before idle thread terminates (since glibc 2.2) */ int aio_reserved; }; Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mb at code-it.com Sun Jun 17 14:07:34 2018 From: mb at code-it.com (mikeB) Date: Sun, 17 Jun 2018 06:07:34 -0600 Subject: [Gambas-user] TerminalView question In-Reply-To: <0134dcbd-e2b5-8bc7-d17e-48ea08a29baa@cogier.com> References: <0134dcbd-e2b5-8bc7-d17e-48ea08a29baa@cogier.com> Message-ID: Thanks Mr.Ogler - that is exactly what I was looking for and got a very nice app to make it easy to learn the terminal commands to boot ;-) Have a GREAT day, mikeB On 06/17/2018 04:53 AM, Charlie Ogier wrote: > Hi Mike, > > You can use *Desktop.Sendkeys* to do this. If you download > *EasyTerminal* from the Gambas Farm and have a look at the *Public Sub > SendTheKeys* for an example. > > Charlie > > On 16/06/18 18:17, mikeB wrote: >> eGreetings Gambas support list, >> >> I have placed a "TerminalView" control on a form. >> >> Is there any way to insert text (a command line) into >> >> it via code? i.e (ffmpeg -i source.avi target.mp4)then >> >> somehow automatically press the return key (to activate). >> >> >> I thought I read somewhere that you could but can't find >> >> much documentation on this control ;-( >> >> >> Thanking you in advance for any direction on how to do this, >> >> mikeB >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Sun Jun 17 15:27:11 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 17 Jun 2018 16:27:11 +0300 Subject: [Gambas-user] Arrays in Structures In-Reply-To: <20180617114458.GF1010@highrise.localdomain> References: <2e12fe67-bf50-cc10-4730-f284443726ee@gmail.com> <20180617114458.GF1010@highrise.localdomain> Message-ID: Thanks Tobias! On 06/17/2018 02:44 PM, Tobias Boege wrote: > On Sun, 17 Jun 2018, Demosthenes Koptsis wrote: >> Hello, >> >> may i have an example of an Array in a Struct ? >> >> *PUBLIC* *STRUCT* _Identifier_ ... _Field /k/_ [ _Embedded array >> declaration_ ] *AS* [ _Datatype_ ] ... *END STRUCT* >> >> >> is the next one correct? >> >> Public Struct aioinit >> ? aio_threads As Integer >> ? aio_num As Integer >> ? aio_locks As Integer >> ? aio_usedba As Integer >> ? aio_debug As Integer >> ? aio_numusers As Integer >> ? aio_reserved[2] As Integer[] >> End Struct >> >> when i run it it does not complain for errors. >> > That of course depends on what you want to do. The above gives you > an embedded array of size 2, whose elements are Integer[] objects. > > If you're interfacing with external libraries, you likely want > it to be just two integers: > > aio_reserved[2] As Integer > > Also note that my local manual tells me that one of the reserved > ints became used "already" in glibc 2.2 (that was around the beginning > of the millennium): > > struct aioinit { > int aio_threads; /* Maximum number of threads */ > int aio_num; /* Number of expected simultaneous > requests */ > int aio_locks; /* Not used */ > int aio_usedba; /* Not used */ > int aio_debug; /* Not used */ > int aio_numusers; /* Not used */ > int aio_idle_time; /* Number of seconds before idle thread > terminates (since glibc 2.2) */ > int aio_reserved; > }; > > Regards, > Tobi > From demosthenesk at gmail.com Sun Jun 17 15:31:38 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Sun, 17 Jun 2018 16:31:38 +0300 Subject: [Gambas-user] datatype for time_t of C for external function Message-ID: Hello, i read about time_t datatype https://en.wikibooks.org/wiki/C_Programming/time.h/time_t and i have a question about which datatype is the best of gambas language. in c program the sizeof(time_t) gives me 8 bytes. So which gambas datatype is better, FLOAT or DATE ? Thanks! From vuott at tiscali.it Sun Jun 17 19:17:58 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sun, 17 Jun 2018 19:17:58 +0200 Subject: [Gambas-user] =?utf-8?q?datatype_for_time=5Ft_of_C_for_external_?= =?utf-8?q?function?= In-Reply-To: References: Message-ID: <951ff3b3c73cfa5f58438a7ae3975041@tiscali.it> Hello, ...from /usr/include/postgresql/9.5/server/utils/nabstime.h " Although time_t generally is a long int on 64 bit systems " So, I say in Gambas it's a "Long". bye vuott Il 17.06.2018 15:31 Demosthenes Koptsis ha scritto: > Hello, > > i read about time_t datatype > https://en.wikibooks.org/wiki/C_Programming/time.h/time_t [1] and i have a > question about which datatype is the best of gambas language. > > in c program the sizeof(time_t) gives me 8 bytes. > > So which gambas datatype is better, FLOAT or DATE ? > > Thanks! > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [2] ]---- 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 Sun Jun 17 19:20:23 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Sun, 17 Jun 2018 19:20:23 +0200 Subject: [Gambas-user] =?utf-8?q?datatype_for_time=5Ft_of_C_for_external_?= =?utf-8?q?function?= In-Reply-To: <951ff3b3c73cfa5f58438a7ae3975041@tiscali.it> References: <951ff3b3c73cfa5f58438a7ae3975041@tiscali.it> Message-ID: <2ca8f63b2c950c744c40767c9b47c7c1@tiscali.it> I want add this link: https://stackoverflow.com/questions/471248/what-is-ultimately-a-time-t-typedef-to Il 17.06.2018 19:17 vuott at tiscali.it ha scritto: > Hello, > ...from /usr/include/postgresql/9.5/server/utils/nabstime.h > " Although time_t generally is a long int on 64 bit systems " > So, I say in Gambas it's a "Long". > bye > vuott > > Il 17.06.2018 15:31 Demosthenes Koptsis ha scritto: > >> Hello, >> >> i read about time_t datatype >> https://en.wikibooks.org/wiki/C_Programming/time.h/time_t [1] and i have a >> question about which datatype is the best of gambas language. >> >> in c program the sizeof(time_t) gives me 8 bytes. >> >> So which gambas datatype is better, FLOAT or DATE ? >> >> Thanks! >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [2] ]---- > > 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 [3] 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 claude.dessere at orange.fr Sun Jun 17 21:35:55 2018 From: claude.dessere at orange.fr (CD) Date: Sun, 17 Jun 2018 21:35:55 +0200 Subject: [Gambas-user] TerminalView question In-Reply-To: References: Message-ID: <689ad119c8a45bc42e87bba0cfb8894c1b1bab63.camel@orange.fr> Hi, I read with great interest the user at lists.gambas-basic.org ... about "TerminalView", you write: "If you download EasyTerminal from the Gambas Farm" I searched everywhere, without success: http://gambasfarm.org/, http://www.gambasforge.org/, search engines Qwant, Google I did not find any EasyTerminal to download! What is and where is "Gambas Farm"? Thanks Le dimanche 17 juin 2018 ? 15:28 +0200, user-request at lists.gambas-basic.org a ?crit : > 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/useror, 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-b > asic.org > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..." > Today's Topics: > 1. Re: TerminalView question (Charlie Ogier) 2. Arrays in Structures > (Demosthenes Koptsis) 3. Re: Arrays in Structures (Tobias Boege) 4. Re: > TerminalView question (mikeB) 5. Re: Arrays in Structures (Demosthenes > Koptsis) > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Mon Jun 18 13:06:36 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 18 Jun 2018 13:06:36 +0200 Subject: [Gambas-user] TerminalView question In-Reply-To: <689ad119c8a45bc42e87bba0cfb8894c1b1bab63.camel@orange.fr> References: <689ad119c8a45bc42e87bba0cfb8894c1b1bab63.camel@orange.fr> Message-ID: Its in the gambas ide menu ? Le dim. 17 juin 2018 21:36, CD a ?crit : > Hi, > > I read with great interest the user at lists.gambas-basic.org ... > about "TerminalView", you write: > "If you download EasyTerminal from the Gambas Farm" > I searched everywhere, without success: > http://gambasfarm.org/, > http://www.gambasforge.org/, search engines Qwant, Google > I did not find any EasyTerminal to download! > > What is and where is "Gambas Farm"? > > Thanks > > > > Le dimanche 17 juin 2018 ? 15:28 +0200, > user-request at lists.gambas-basic.org a ?crit : > > 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. Re: TerminalView question (Charlie Ogier) > > 2. Arrays in Structures (Demosthenes Koptsis) > > 3. Re: Arrays in Structures (Tobias Boege) > > 4. Re: TerminalView question (mikeB) > > 5. Re: Arrays in Structures (Demosthenes Koptsis) > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 18 14:42:58 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 18 Jun 2018 08:42:58 -0400 Subject: [Gambas-user] Add Gambas to subject line of mailing list emails In-Reply-To: References: Message-ID: a note about it: the digest are not the best way to comunicate with gambas, only for reports of mail list activity and yes maybe add Gambas will be need! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-17 5:29 GMT-04:00 KKing : > Any chance to add Gambas to the email subject lines? > > e.g. instead of "User Digest, Vol 9, Issue 78" it would read "Gambas User > Digest, Vol 9, Issue 78" > > K. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon Jun 18 14:53:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 18 Jun 2018 08:53:57 -0400 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: herberth the only way its start to test comunications with dbus interface, i not thinking you will solve it in some weeks, maybe will take more than some weeks... i recommended firts experiment with dbus monitor https://dbus.freedesktop.org/doc/dbus-monitor.1.html and always use a external not-changing mecanish like qdbus or dbus-send, a good starting point for those commands are https://www.linuxjournal.com/article/10455 dbus are now very close to systemd (due systemd depends on) and dbus are too heavy (maybe another reason of high resources consuption of your project) , for those that wants to use more traditional but local only oriented see https://www.reddit.com/r/commandline/comments/13o581/dbus_vs_unix_sockets/ Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-16 10:02 GMT-04:00 herberth guzman : > How can i solve the problem with gb.qt5 > > I need my system tray for my project. > > Help please. > > El vie., 15 jun. 2018 2:05 p.m., PICCORO McKAY Lenz < > mckaygerhard at gmail.com> escribi?: > >> 2018-06-15 15:24 GMT-04:00 Fabien Bodard : >> >>> How can I create a DBus system tray? >>> >>>> Can you help me please. >>>> >>> >>> it's not so easy :-) >>> >> >> yeah, the dbus message format and interfaces are very inconsistent >> between versions and the freedesktop documents are very ambigous about it! >> also the qt5 >> >> >>> >>> >>>> >>>> >>Is it a problem with the icon tray or with the systrayarea ? >>>> t does not show any icon, example I want to show vlc or nm-applet, it >>>> does not show it. >>>> >>>> >>>> >>I have begin to wrote a systray area based on the dbus protocol.. >>>> there is some year . maybe it not take too much time to me to finish it. >>>> >>>> I can test your new system tray ...? >>>> >>> >>> it's too early :-) >>> >>> >>> >>> >>> >>>> >>>> 2018-06-15 8:57 GMT+02:00 Fabien Bodard : >>>> >>>>> Is it a problem with the icon tray or with the systrayarea ? >>>>> >>>>> I have begin to wrote a systray area based on the dbus protocol.. >>>>> there is some year . maybe it not take too much time to me to finish it. >>>>> >>>>> But the protocols are really not all standardized :-(. >>>>> >>>>> Le jeu. 14 juin 2018 23:55, herberth guzman >>>>> a ?crit : >>>>> >>>>>> I would like to improve, but I do not know how to do it ... >>>>>> >>>>>> 2018-06-14 23:53 GMT+02:00 herberth guzman >>>>>> : >>>>>> >>>>>>> >>>>>>> >>>>>>> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >>>>>>> >>>>>>>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>>>>>>> >>>>>>>>> >>>>>>>>> Innova and Gnome 3.26 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> Does this desktop have a DBus system tray? >>>>>>>> >>>>>>> >>>>>>> No >>>>>>> >>>>>>>> >>>>>>>> Does it have support for the old system tray protocol? >>>>>>> >>>>>>> >>>>>>> Yes >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Beno?t Minisini >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Mon Jun 18 16:10:19 2018 From: charlie at cogier.com (Charlie Ogier) Date: Mon, 18 Jun 2018 15:10:19 +0100 Subject: [Gambas-user] TerminalView question In-Reply-To: <689ad119c8a45bc42e87bba0cfb8894c1b1bab63.camel@orange.fr> References: <689ad119c8a45bc42e87bba0cfb8894c1b1bab63.camel@orange.fr> Message-ID: Hi Claude, Have a look here http://forum.gambas.one/viewtopic.php?f=4&t=606 (Half way down the page) Charlie On 17/06/18 20:35, CD wrote: > Hi, > > I read with great interest the user at lists.gambas-basic.org ... > about "TerminalView", you write: > "If you download EasyTerminal from the Gambas Farm" > I searched everywhere, without success: > http://gambasfarm.org/, > http://www.gambasforge.org/, search engines Qwant, Google > I did not find any EasyTerminal to download! > > What is and where is "Gambas Farm"? > > Thanks > > > > Le dimanche 17 juin 2018 ? 15:28 +0200, > user-request at lists.gambas-basic.org a ?crit?: >> 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. Re: TerminalView question (Charlie Ogier) >> 2. Arrays in Structures (Demosthenes Koptsis) >> 3. Re: Arrays in Structures (Tobias Boege) >> 4. Re: TerminalView question (mikeB) >> 5. Re: Arrays in Structures (Demosthenes Koptsis) >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From demosthenesk at gmail.com Tue Jun 19 19:55:26 2018 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Tue, 19 Jun 2018 20:55:26 +0300 Subject: [Gambas-user] gambas on x86 machine Message-ID: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> Hello, i have installed gambas on a amd64 machine. In order to make x86 executables from gambas i must install gambas3 on a virtual box x86 linux? From mckaygerhard at gmail.com Tue Jun 19 20:05:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 19 Jun 2018 14:05:01 -0400 Subject: [Gambas-user] gambas on x86 machine In-Reply-To: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> References: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> Message-ID: umm interesting. yeah i just tested and seems gambas only produces arch depend executables Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-19 13:55 GMT-04:00 Demosthenes Koptsis : > Hello, > > i have installed gambas on a amd64 machine. > > In order to make x86 executables from gambas i must install gambas3 on a > virtual box x86 linux? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 19 20:05:29 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 19 Jun 2018 14:05:29 -0400 Subject: [Gambas-user] gambas on x86 machine In-Reply-To: References: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> Message-ID: not! not need seems work Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-19 14:05 GMT-04:00 PICCORO McKAY Lenz : > umm interesting. yeah i just tested and seems gambas only produces arch > depend executables > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-19 13:55 GMT-04:00 Demosthenes Koptsis : > >> Hello, >> >> i have installed gambas on a amd64 machine. >> >> In order to make x86 executables from gambas i must install gambas3 on a >> virtual box x86 linux? >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue Jun 19 20:10:31 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 19 Jun 2018 20:10:31 +0200 Subject: [Gambas-user] gambas on x86 machine In-Reply-To: References: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> Message-ID: <52490052-5173-e481-0ddc-49820d001047@gmail.com> Le 19/06/2018 ? 20:05, PICCORO McKAY Lenz a ?crit?: > not! not need seems work > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > Could you please stop posting rubbish to the mailing-list and try to use readable english? This is elementary respect to the other members of the mailing-list. Thanks. -- Beno?t Minisini From mckaygerhard at gmail.com Tue Jun 19 20:53:38 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 19 Jun 2018 14:53:38 -0400 Subject: [Gambas-user] gambas on x86 machine In-Reply-To: <52490052-5173-e481-0ddc-49820d001047@gmail.com> References: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> <52490052-5173-e481-0ddc-49820d001047@gmail.com> Message-ID: Okay, i mean, it produces agnostic executable files, means regardless of the type of architecture a executable produces in arm will work in a x86 too! due the only dependency are the gambas-runtime. sorry . Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-19 14:10 GMT-04:00 Beno?t Minisini : > Le 19/06/2018 ? 20:05, PICCORO McKAY Lenz a ?crit : > >> not! not need seems work >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> > Could you please stop posting rubbish to the mailing-list and try to use > readable english? > > This is elementary respect to the other members of the mailing-list. > > Thanks. > > -- > Beno?t Minisini > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jun 19 20:58:22 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Jun 2018 21:58:22 +0300 Subject: [Gambas-user] gambas on x86 machine In-Reply-To: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> References: <7c3b6662-ee71-43fa-7910-a9e7b3340862@gmail.com> Message-ID: No, Gambas executables are always the same as it is not executed on CPU, but on the interpreter. So you only need to worry about the interpreter. If it works, all the Gambas programs work. Jussi On Tue, Jun 19, 2018 at 8:55 PM, Demosthenes Koptsis wrote: > Hello, > > i have installed gambas on a amd64 machine. > > In order to make x86 executables from gambas i must install gambas3 on a > virtual box x86 linux? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Jun 19 22:06:53 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Jun 2018 23:06:53 +0300 Subject: [Gambas-user] try if error Message-ID: <20180619195258.M36036@455.co.il> Hello How do I proceed to the next line If there is an error For example, if the date is not correct ' Gambas module file Public Sub Main() Try Print Date(2018, 13, 1) If Date(2018, 13, 1) Then Endif End Thank you From jussi.lahtinen at gmail.com Tue Jun 19 22:12:37 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Jun 2018 23:12:37 +0300 Subject: [Gambas-user] try if error In-Reply-To: <20180619195258.M36036@455.co.il> References: <20180619195258.M36036@455.co.il> Message-ID: If Error Then Jussi On Tue, Jun 19, 2018 at 11:06 PM, Mayost Sharon wrote: > Hello > > How do I proceed to the next line > If there is an error > > For example, if the date is not correct > > ' Gambas module file > > Public Sub Main() > > Try Print Date(2018, 13, 1) > > If Date(2018, 13, 1) Then > > Endif > > End > > Thank you > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 19 22:18:06 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 19 Jun 2018 16:18:06 -0400 Subject: [Gambas-user] try if error In-Reply-To: <20180619195258.M36036@455.co.il> References: <20180619195258.M36036@455.co.il> Message-ID: 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > Hello > > How do I proceed to the next line > If there is an error > for cases when it's error format or error of invalid date just: If Date(2018, 13, 1) Then for others error might be a good question unless compared using Comp() as strings! i dont know what other type of errors can be produced here! > > For example, if the date is not correct > > ' Gambas module file > > Public Sub Main() > > Try Print Date(2018, 13, 1) > > If Date(2018, 13, 1) Then > > Endif > > End > > Thank you > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Jun 19 22:19:46 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Jun 2018 23:19:46 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> Message-ID: <20180619201539.M89406@455.co.il> Sorry I did not explain well I want to skip the line of IF DATE () If there is an error ' Gambas module file Public Sub Main() If Date(2018, 13, 1) Then If Error Then Print "Date Error" Endif Endif End ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Tue, 19 Jun 2018 23:12:37 +0300 Subject: Re: [Gambas-user] try if error > If Error Then > > Jussi > > On Tue, Jun 19, 2018 at 11:06 PM, Mayost Sharon wrote: > > > Hello > > > > How do I proceed to the next line > > If there is an error > > > > For example, if the date is not correct > > > > ' Gambas module file > > > > Public Sub Main() > > > > Try Print Date(2018, 13, 1) > > > > If Date(2018, 13, 1) Then > > > > Endif > > > > End > > > > Thank you > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From sharon at 455.co.il Tue Jun 19 22:22:50 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Jun 2018 23:22:50 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> Message-ID: <20180619202123.M22634@455.co.il> In Visual Basic there is on error goto 0 ---------- Original Message ----------- From: PICCORO McKAY Lenz To: Gambas Mailing List Sent: Tue, 19 Jun 2018 16:18:06 -0400 Subject: Re: [Gambas-user] try if error > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > Hello > > > > How do I proceed to the next line > > If there is an error > > > for cases when it's error format or error of invalid date just: > > If Date(2018, 13, 1) Then > > for others error might be a good question unless compared using Comp() as > strings! > > i dont know what other type of errors can be produced here! > > > > > For example, if the date is not correct > > > > ' Gambas module file > > > > Public Sub Main() > > > > Try Print Date(2018, 13, 1) > > > > If Date(2018, 13, 1) Then > > > > Endif > > > > End > > > > Thank you > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From jussi.lahtinen at gmail.com Tue Jun 19 22:27:57 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Jun 2018 23:27:57 +0300 Subject: [Gambas-user] try if error In-Reply-To: <20180619202123.M22634@455.co.il> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> Message-ID: I don't understand the problem. If Error Then Goto ErrorHandling ... ErrorHandling: Print "Here is my error handling" Jussi On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon wrote: > In Visual Basic > there is > on error goto 0 > > ---------- Original Message ----------- > From: PICCORO McKAY Lenz > To: Gambas Mailing List > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > Subject: Re: [Gambas-user] try if error > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > Hello > > > > > > How do I proceed to the next line > > > If there is an error > > > > > for cases when it's error format or error of invalid date just: > > > > If Date(2018, 13, 1) Then > > > > for others error might be a good question unless compared using Comp() as > > strings! > > > > i dont know what other type of errors can be produced here! > > > > > > > > For example, if the date is not correct > > > > > > ' Gambas module file > > > > > > Public Sub Main() > > > > > > Try Print Date(2018, 13, 1) > > > > > > If Date(2018, 13, 1) Then > > > > > > Endif > > > > > > End > > > > > > Thank you > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jun 19 22:29:20 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Jun 2018 23:29:20 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> Message-ID: Oh, maybe you want to use Catch structure... http://gambaswiki.org/wiki/lang/catch Jussi On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen wrote: > I don't understand the problem. > > If Error Then Goto ErrorHandling > > ... > > ErrorHandling: > Print "Here is my error handling" > > > Jussi > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon wrote: > >> In Visual Basic >> there is >> on error goto 0 >> >> ---------- Original Message ----------- >> From: PICCORO McKAY Lenz >> To: Gambas Mailing List >> Sent: Tue, 19 Jun 2018 16:18:06 -0400 >> Subject: Re: [Gambas-user] try if error >> >> > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : >> > >> > > Hello >> > > >> > > How do I proceed to the next line >> > > If there is an error >> > > >> > for cases when it's error format or error of invalid date just: >> > >> > If Date(2018, 13, 1) Then >> > >> > for others error might be a good question unless compared using Comp() >> as >> > strings! >> > >> > i dont know what other type of errors can be produced here! >> > >> > > >> > > For example, if the date is not correct >> > > >> > > ' Gambas module file >> > > >> > > Public Sub Main() >> > > >> > > Try Print Date(2018, 13, 1) >> > > >> > > If Date(2018, 13, 1) Then >> > > >> > > Endif >> > > >> > > End >> > > >> > > Thank you >> > > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > > >> ------- End of Original Message ------- >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Jun 19 22:34:26 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 19 Jun 2018 22:34:26 +0200 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> Message-ID: On error goto 0 after an instruction is the same as just : Try Print Date(2018, 13, 1) The error is skiped Le mar. 19 juin 2018 ? 22:30, Jussi Lahtinen a ?crit : > Oh, maybe you want to use Catch structure... > http://gambaswiki.org/wiki/lang/catch > > > Jussi > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen > wrote: > >> I don't understand the problem. >> >> If Error Then Goto ErrorHandling >> >> ... >> >> ErrorHandling: >> Print "Here is my error handling" >> >> >> Jussi >> >> >> On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon wrote: >> >>> In Visual Basic >>> there is >>> on error goto 0 >>> >>> ---------- Original Message ----------- >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Sent: Tue, 19 Jun 2018 16:18:06 -0400 >>> Subject: Re: [Gambas-user] try if error >>> >>> > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : >>> > >>> > > Hello >>> > > >>> > > How do I proceed to the next line >>> > > If there is an error >>> > > >>> > for cases when it's error format or error of invalid date just: >>> > >>> > If Date(2018, 13, 1) Then >>> > >>> > for others error might be a good question unless compared using Comp() >>> as >>> > strings! >>> > >>> > i dont know what other type of errors can be produced here! >>> > >>> > > >>> > > For example, if the date is not correct >>> > > >>> > > ' Gambas module file >>> > > >>> > > Public Sub Main() >>> > > >>> > > Try Print Date(2018, 13, 1) >>> > > >>> > > If Date(2018, 13, 1) Then >>> > > >>> > > Endif >>> > > >>> > > End >>> > > >>> > > Thank you >>> > > >>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> > > >>> ------- End of Original Message ------- >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Tue Jun 19 22:35:33 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Tue, 19 Jun 2018 16:35:33 -0400 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> Message-ID: Better this form: Try Print Date(2018, 13, 1) IF Error Then ? ?Print "Wrong Date format" else ? ?? Do something whit your date?. End If Cordialement, ?? Olivier Cruilles Email: olivier.cruilles at yahoo.fr Le June 19, 2018 ? 16:30:03, Jussi Lahtinen (jussi.lahtinen at gmail.com) a ?crit: Oh, maybe you want to use Catch structure... http://gambaswiki.org/wiki/lang/catch Jussi On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen wrote: I don't understand the problem. If Error Then Goto ErrorHandling ... ErrorHandling: Print "Here is my error handling" Jussi On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon wrote: In Visual Basic there is on error goto 0 ---------- Original Message ----------- From: PICCORO McKAY Lenz To: Gambas Mailing List Sent: Tue, 19 Jun 2018 16:18:06 -0400 Subject: Re: [Gambas-user] try if error > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > Hello > > > > How do I proceed to the next line > > If there is an error > > > for cases when it's error format or error of invalid date just: > > If Date(2018, 13, 1) Then > > for others error might be a good question unless compared using Comp() as > strings! > > i dont know what other type of errors can be produced here! > > > > > For example, if the date is not correct > > > > ' Gambas module file > > > > Public Sub Main() > > > >? ?Try Print Date(2018, 13, 1) > > > >? ?If Date(2018, 13, 1) Then > > > >? ?Endif > > > > End > > > > Thank you > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Jun 19 22:41:50 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Jun 2018 23:41:50 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> Message-ID: <20180619204110.M73257@455.co.il> catch not good Because I want to continue on to the next line ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Tue, 19 Jun 2018 23:29:20 +0300 Subject: Re: [Gambas-user] try if error > Oh, maybe you want to use Catch structure... > http://gambaswiki.org/wiki/lang/catch > > Jussi > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen > wrote: > > > I don't understand the problem. > > > > If Error Then Goto ErrorHandling > > > > ... > > > > ErrorHandling: > > Print "Here is my error handling" > > > > > > Jussi > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon wrote: > > > >> In Visual Basic > >> there is > >> on error goto 0 > >> > >> ---------- Original Message ----------- > >> From: PICCORO McKAY Lenz > >> To: Gambas Mailing List > >> Sent: Tue, 19 Jun 2018 16:18:06 -0400 > >> Subject: Re: [Gambas-user] try if error > >> > >> > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > >> > > >> > > Hello > >> > > > >> > > How do I proceed to the next line > >> > > If there is an error > >> > > > >> > for cases when it's error format or error of invalid date just: > >> > > >> > If Date(2018, 13, 1) Then > >> > > >> > for others error might be a good question unless compared using Comp() > >> as > >> > strings! > >> > > >> > i dont know what other type of errors can be produced here! > >> > > >> > > > >> > > For example, if the date is not correct > >> > > > >> > > ' Gambas module file > >> > > > >> > > Public Sub Main() > >> > > > >> > > Try Print Date(2018, 13, 1) > >> > > > >> > > If Date(2018, 13, 1) Then > >> > > > >> > > Endif > >> > > > >> > > End > >> > > > >> > > Thank you > >> > > > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > >> ]---- > >> > > > >> ------- End of Original Message ------- > >> > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > >> > > > > ------- End of Original Message ------- From sharon at 455.co.il Tue Jun 19 22:43:51 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Jun 2018 23:43:51 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> Message-ID: <20180619204344.M24288@455.co.il> Yes you are right But I want to do Try if Date () The TRY option does not let you make an IF ---------- Original Message ----------- From: Fabien Bodard To: Gambas Mailing List Sent: Tue, 19 Jun 2018 22:34:26 +0200 Subject: Re: [Gambas-user] try if error > On error goto 0 > after an instruction > > is the same as just : > > Try Print Date(2018, 13, 1) > > The error is skiped > > Le mar. 19 juin 2018 ? 22:30, Jussi Lahtinen a > ?crit : > > > Oh, maybe you want to use Catch structure... > > http://gambaswiki.org/wiki/lang/catch > > > > > > Jussi > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen > > wrote: > > > >> I don't understand the problem. > >> > >> If Error Then Goto ErrorHandling > >> > >> ... > >> > >> ErrorHandling: > >> Print "Here is my error handling" > >> > >> > >> Jussi > >> > >> > >> On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon wrote: > >> > >>> In Visual Basic > >>> there is > >>> on error goto 0 > >>> > >>> ---------- Original Message ----------- > >>> From: PICCORO McKAY Lenz > >>> To: Gambas Mailing List > >>> Sent: Tue, 19 Jun 2018 16:18:06 -0400 > >>> Subject: Re: [Gambas-user] try if error > >>> > >>> > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > >>> > > >>> > > Hello > >>> > > > >>> > > How do I proceed to the next line > >>> > > If there is an error > >>> > > > >>> > for cases when it's error format or error of invalid date just: > >>> > > >>> > If Date(2018, 13, 1) Then > >>> > > >>> > for others error might be a good question unless compared using Comp() > >>> as > >>> > strings! > >>> > > >>> > i dont know what other type of errors can be produced here! > >>> > > >>> > > > >>> > > For example, if the date is not correct > >>> > > > >>> > > ' Gambas module file > >>> > > > >>> > > Public Sub Main() > >>> > > > >>> > > Try Print Date(2018, 13, 1) > >>> > > > >>> > > If Date(2018, 13, 1) Then > >>> > > > >>> > > Endif > >>> > > > >>> > > End > >>> > > > >>> > > Thank you > >>> > > > >>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > >>> ]---- > >>> > > > >>> ------- End of Original Message ------- > >>> > >>> > >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > >>> > >> > >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > -- > Fabien Bodard ------- End of Original Message ------- From jussi.lahtinen at gmail.com Tue Jun 19 22:44:23 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Jun 2018 23:44:23 +0300 Subject: [Gambas-user] try if error In-Reply-To: <20180619204110.M73257@455.co.il> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204110.M73257@455.co.il> Message-ID: Then you couldn't use "on error goto" anyway. Jussi On Tue, Jun 19, 2018 at 11:41 PM, Mayost Sharon wrote: > catch not good > Because I want to continue on to the next line > > ---------- Original Message ----------- > From: Jussi Lahtinen > To: Gambas Mailing List > Sent: Tue, 19 Jun 2018 23:29:20 +0300 > Subject: Re: [Gambas-user] try if error > > > Oh, maybe you want to use Catch structure... > > http://gambaswiki.org/wiki/lang/catch > > > > Jussi > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > jussi.lahtinen at gmail.com> > > wrote: > > > > > I don't understand the problem. > > > > > > If Error Then Goto ErrorHandling > > > > > > ... > > > > > > ErrorHandling: > > > Print "Here is my error handling" > > > > > > > > > Jussi > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon > wrote: > > > > > >> In Visual Basic > > >> there is > > >> on error goto 0 > > >> > > >> ---------- Original Message ----------- > > >> From: PICCORO McKAY Lenz > > >> To: Gambas Mailing List > > >> Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > >> Subject: Re: [Gambas-user] try if error > > >> > > >> > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > >> > > > >> > > Hello > > >> > > > > >> > > How do I proceed to the next line > > >> > > If there is an error > > >> > > > > >> > for cases when it's error format or error of invalid date just: > > >> > > > >> > If Date(2018, 13, 1) Then > > >> > > > >> > for others error might be a good question unless compared using > Comp() > > >> as > > >> > strings! > > >> > > > >> > i dont know what other type of errors can be produced here! > > >> > > > >> > > > > >> > > For example, if the date is not correct > > >> > > > > >> > > ' Gambas module file > > >> > > > > >> > > Public Sub Main() > > >> > > > > >> > > Try Print Date(2018, 13, 1) > > >> > > > > >> > > If Date(2018, 13, 1) Then > > >> > > > > >> > > Endif > > >> > > > > >> > > End > > >> > > > > >> > > Thank you > > >> > > > > >> > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > >> ]---- > > >> > > > > >> ------- End of Original Message ------- > > >> > > >> > > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > >> > > > > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Jun 19 22:46:36 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Jun 2018 23:46:36 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> Message-ID: <20180619204425.M49107@455.co.il> This is not a good option Because it will send a print every time If the date is correct ---------- Original Message ----------- From: Yahoo via User To: Gambas Mailing List , Jussi Lahtinen Cc: Yahoo Sent: Tue, 19 Jun 2018 16:35:33 -0400 Subject: Re: [Gambas-user] try if error > Better this form: > > Try Print Date(2018, 13, 1) > IF Error Then > ? ?Print "Wrong Date format" > else > ? ?? Do something whit your date?. > End If > > Cordialement, > ?? > Olivier Cruilles > Email: olivier.cruilles at yahoo.fr > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen (jussi.lahtinen at gmail.com) a ?crit: > > Oh, maybe you want to use Catch structure... > http://gambaswiki.org/wiki/lang/catch > > Jussi > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen wrote: > I don't understand the problem. > > If Error Then Goto ErrorHandling > > ... > > ErrorHandling: > Print "Here is my error handling" > > Jussi > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon wrote: > In Visual Basic > there is > on error goto 0 > > ---------- Original Message ----------- > From: PICCORO McKAY Lenz > To: Gambas Mailing List > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > Subject: Re: [Gambas-user] try if error > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > Hello > > > > > > How do I proceed to the next line > > > If there is an error > > > > > for cases when it's error format or error of invalid date just: > > > > If Date(2018, 13, 1) Then > > > > for others error might be a good question unless compared using Comp() as > > strings! > > > > i dont know what other type of errors can be produced here! > > > > > > > > For example, if the date is not correct > > > > > > ' Gambas module file > > > > > > Public Sub Main() > > > > > >? ?Try Print Date(2018, 13, 1) > > > > > >? ?If Date(2018, 13, 1) Then > > > > > >? ?Endif > > > > > > End > > > > > > Thank you > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ------- End of Original Message ------- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From jussi.lahtinen at gmail.com Tue Jun 19 22:49:33 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Jun 2018 23:49:33 +0300 Subject: [Gambas-user] try if error In-Reply-To: <20180619204425.M49107@455.co.il> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> Message-ID: Dim hDate As Date Try hDate =Date(2018, 13, 1) If Error Then Print "Date Error" Endif If hDate = something Then ... Jussi On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon wrote: > This is not a good option > Because it will send a print every time > If the date is correct > > ---------- Original Message ----------- > From: Yahoo via User > To: Gambas Mailing List , Jussi Lahtinen > > Cc: Yahoo > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > Subject: Re: [Gambas-user] try if error > > > Better this form: > > > > Try Print Date(2018, 13, 1) > > IF Error Then > > Print "Wrong Date format" > > else > > ? Do something whit your date?. > > End If > > > > Cordialement, > > ? > > Olivier Cruilles > > Email: olivier.cruilles at yahoo.fr > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen (jussi.lahtinen at gmail.com) > a ?crit: > > > > Oh, maybe you want to use Catch structure... > > http://gambaswiki.org/wiki/lang/catch > > > > Jussi > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > jussi.lahtinen at gmail.com> wrote: > > I don't understand the problem. > > > > If Error Then Goto ErrorHandling > > > > ... > > > > ErrorHandling: > > Print "Here is my error handling" > > > > Jussi > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon > wrote: > > In Visual Basic > > there is > > on error goto 0 > > > > ---------- Original Message ----------- > > From: PICCORO McKAY Lenz > > To: Gambas Mailing List > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > Subject: Re: [Gambas-user] try if error > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > Hello > > > > > > > > How do I proceed to the next line > > > > If there is an error > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > If Date(2018, 13, 1) Then > > > > > > for others error might be a good question unless compared using Comp() > as > > > strings! > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > For example, if the date is not correct > > > > > > > > ' Gambas module file > > > > > > > > Public Sub Main() > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > Endif > > > > > > > > End > > > > > > > > Thank you > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > ------- End of Original Message ------- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Jun 19 22:54:49 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 19 Jun 2018 23:54:49 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> Message-ID: <20180619205356.M85184@455.co.il> OK Many thanks ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Tue, 19 Jun 2018 23:49:33 +0300 Subject: Re: [Gambas-user] try if error > Dim hDate As Date > > Try hDate =Date(2018, 13, 1) > > If Error Then > Print "Date Error" > Endif > > If hDate = something Then > > ... > > Jussi > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon wrote: > > > This is not a good option > > Because it will send a print every time > > If the date is correct > > > > ---------- Original Message ----------- > > From: Yahoo via User > > To: Gambas Mailing List , Jussi Lahtinen > > > > Cc: Yahoo > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > Subject: Re: [Gambas-user] try if error > > > > > Better this form: > > > > > > Try Print Date(2018, 13, 1) > > > IF Error Then > > > Print "Wrong Date format" > > > else > > > ? Do something whit your date?. > > > End If > > > > > > Cordialement, > > > ? > > > Olivier Cruilles > > > Email: olivier.cruilles at yahoo.fr > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen (jussi.lahtinen at gmail.com) > > a ?crit: > > > > > > Oh, maybe you want to use Catch structure... > > > http://gambaswiki.org/wiki/lang/catch > > > > > > Jussi > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > jussi.lahtinen at gmail.com> wrote: > > > I don't understand the problem. > > > > > > If Error Then Goto ErrorHandling > > > > > > ... > > > > > > ErrorHandling: > > > Print "Here is my error handling" > > > > > > Jussi > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon > > wrote: > > > In Visual Basic > > > there is > > > on error goto 0 > > > > > > ---------- Original Message ----------- > > > From: PICCORO McKAY Lenz > > > To: Gambas Mailing List > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > Subject: Re: [Gambas-user] try if error > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > > > Hello > > > > > > > > > > How do I proceed to the next line > > > > > If there is an error > > > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > for others error might be a good question unless compared using Comp() > > as > > > > strings! > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > ' Gambas module file > > > > > > > > > > Public Sub Main() > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > Endif > > > > > > > > > > End > > > > > > > > > > Thank you > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From bagonergi at gmail.com Tue Jun 19 23:05:47 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 19 Jun 2018 23:05:47 +0200 Subject: [Gambas-user] try if error In-Reply-To: <20180619205356.M85184@455.co.il> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> Message-ID: For those who want to know what 'Goto 0' means in Vb: https://stackoverflow.com/questions/9983464/why-would-you-ever-use-on-error-goto-0 Regards Gianluigi 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > OK > > Many thanks > > ---------- Original Message ----------- > From: Jussi Lahtinen > To: Gambas Mailing List > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > Subject: Re: [Gambas-user] try if error > > > Dim hDate As Date > > > > Try hDate =Date(2018, 13, 1) > > > > If Error Then > > Print "Date Error" > > Endif > > > > If hDate = something Then > > > > ... > > > > Jussi > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon > wrote: > > > > > This is not a good option > > > Because it will send a print every time > > > If the date is correct > > > > > > ---------- Original Message ----------- > > > From: Yahoo via User > > > To: Gambas Mailing List , Jussi Lahtinen > > > > > > Cc: Yahoo > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > Subject: Re: [Gambas-user] try if error > > > > > > > Better this form: > > > > > > > > Try Print Date(2018, 13, 1) > > > > IF Error Then > > > > Print "Wrong Date format" > > > > else > > > > ? Do something whit your date?. > > > > End If > > > > > > > > Cordialement, > > > > ? > > > > Olivier Cruilles > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > jussi.lahtinen at gmail.com) > > > a ?crit: > > > > > > > > Oh, maybe you want to use Catch structure... > > > > http://gambaswiki.org/wiki/lang/catch > > > > > > > > Jussi > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > jussi.lahtinen at gmail.com> wrote: > > > > I don't understand the problem. > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > ... > > > > > > > > ErrorHandling: > > > > Print "Here is my error handling" > > > > > > > > Jussi > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon > > > wrote: > > > > In Visual Basic > > > > there is > > > > on error goto 0 > > > > > > > > ---------- Original Message ----------- > > > > From: PICCORO McKAY Lenz > > > > To: Gambas Mailing List > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > > > > > Hello > > > > > > > > > > > > How do I proceed to the next line > > > > > > If there is an error > > > > > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > for others error might be a good question unless compared using > Comp() > > > as > > > > > strings! > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > Endif > > > > > > > > > > > > End > > > > > > > > > > > > Thank you > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > > ]---- > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > ------- End of Original Message ------- > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue Jun 19 23:37:10 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 20 Jun 2018 00:37:10 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> Message-ID: <20180619213038.M55276@455.co.il> Sorry I meant in Visual Basic To skip to the next line There is the command On Error Resume Next In GAMBAS there is no possibility ---------- Original Message ----------- From: Gianluigi To: Gambas Mailing List Sent: Tue, 19 Jun 2018 23:05:47 +0200 Subject: Re: [Gambas-user] try if error > For those who want to know what 'Goto 0' means in Vb: > https://stackoverflow.com/questions/9983464/why-would-you-ever-use-on-error- > goto-0 > > Regards > Gianluigi > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > > > OK > > > > Many thanks > > > > ---------- Original Message ----------- > > From: Jussi Lahtinen > > To: Gambas Mailing List > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > > Subject: Re: [Gambas-user] try if error > > > > > Dim hDate As Date > > > > > > Try hDate =Date(2018, 13, 1) > > > > > > If Error Then > > > Print "Date Error" > > > Endif > > > > > > If hDate = something Then > > > > > > ... > > > > > > Jussi > > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon > > wrote: > > > > > > > This is not a good option > > > > Because it will send a print every time > > > > If the date is correct > > > > > > > > ---------- Original Message ----------- > > > > From: Yahoo via User > > > > To: Gambas Mailing List , Jussi Lahtinen > > > > > > > > Cc: Yahoo > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > Better this form: > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > IF Error Then > > > > > Print "Wrong Date format" > > > > > else > > > > > ? Do something whit your date?. > > > > > End If > > > > > > > > > > Cordialement, > > > > > ? > > > > > Olivier Cruilles > > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > > jussi.lahtinen at gmail.com) > > > > a ?crit: > > > > > > > > > > Oh, maybe you want to use Catch structure... > > > > > http://gambaswiki.org/wiki/lang/catch > > > > > > > > > > Jussi > > > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > > jussi.lahtinen at gmail.com> wrote: > > > > > I don't understand the problem. > > > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > > > ... > > > > > > > > > > ErrorHandling: > > > > > Print "Here is my error handling" > > > > > > > > > > Jussi > > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon > > > > wrote: > > > > > In Visual Basic > > > > > there is > > > > > on error goto 0 > > > > > > > > > > ---------- Original Message ----------- > > > > > From: PICCORO McKAY Lenz > > > > > To: Gambas Mailing List > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > > > > > > > Hello > > > > > > > > > > > > > > How do I proceed to the next line > > > > > > > If there is an error > > > > > > > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > for others error might be a good question unless compared using > > Comp() > > > > as > > > > > > strings! > > > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > Endif > > > > > > > > > > > > > > End > > > > > > > > > > > > > > Thank you > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net > > > > ]---- > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > ------- End of Original Message ------- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From bagonergi at gmail.com Tue Jun 19 23:52:14 2018 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 19 Jun 2018 23:52:14 +0200 Subject: [Gambas-user] try if error In-Reply-To: <20180619213038.M55276@455.co.il> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> Message-ID: Public Sub Main() Dim i As Integer Try i = "Mickey Mouse" Try i = "Pluto" Try i = "1" Print i End Regards Gianluigi 2018-06-19 23:37 GMT+02:00 Mayost Sharon : > Sorry > I meant in Visual Basic > To skip to the next line > There is the command > > On Error Resume Next > > In GAMBAS there is no possibility > > > ---------- Original Message ----------- > From: Gianluigi > To: Gambas Mailing List > Sent: Tue, 19 Jun 2018 23:05:47 +0200 > Subject: Re: [Gambas-user] try if error > > > For those who want to know what 'Goto 0' means in Vb: > > https://stackoverflow.com/questions/9983464/why-would- > you-ever-use-on-error- > > goto-0 > > > > Regards > > Gianluigi > > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > > > > > OK > > > > > > Many thanks > > > > > > ---------- Original Message ----------- > > > From: Jussi Lahtinen > > > To: Gambas Mailing List > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > > > Subject: Re: [Gambas-user] try if error > > > > > > > Dim hDate As Date > > > > > > > > Try hDate =Date(2018, 13, 1) > > > > > > > > If Error Then > > > > Print "Date Error" > > > > Endif > > > > > > > > If hDate = something Then > > > > > > > > ... > > > > > > > > Jussi > > > > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon > > > wrote: > > > > > > > > > This is not a good option > > > > > Because it will send a print every time > > > > > If the date is correct > > > > > > > > > > ---------- Original Message ----------- > > > > > From: Yahoo via User > > > > > To: Gambas Mailing List , Jussi > Lahtinen > > > > > > > > > > Cc: Yahoo > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > Better this form: > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > IF Error Then > > > > > > Print "Wrong Date format" > > > > > > else > > > > > > ? Do something whit your date?. > > > > > > End If > > > > > > > > > > > > Cordialement, > > > > > > ? > > > > > > Olivier Cruilles > > > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > > > jussi.lahtinen at gmail.com) > > > > > a ?crit: > > > > > > > > > > > > Oh, maybe you want to use Catch structure... > > > > > > http://gambaswiki.org/wiki/lang/catch > > > > > > > > > > > > Jussi > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > > > jussi.lahtinen at gmail.com> wrote: > > > > > > I don't understand the problem. > > > > > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > > > > > ... > > > > > > > > > > > > ErrorHandling: > > > > > > Print "Here is my error handling" > > > > > > > > > > > > Jussi > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < > sharon at 455.co.il> > > > > > wrote: > > > > > > In Visual Basic > > > > > > there is > > > > > > on error goto 0 > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: PICCORO McKAY Lenz > > > > > > To: Gambas Mailing List > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > > > > > > > > > Hello > > > > > > > > > > > > > > > > How do I proceed to the next line > > > > > > > > If there is an error > > > > > > > > > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > for others error might be a good question unless compared using > > > Comp() > > > > > as > > > > > > > strings! > > > > > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > Endif > > > > > > > > > > > > > > > > End > > > > > > > > > > > > > > > > Thank you > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net > > > > > ]---- > > > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > > ]---- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > > ]---- > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > > ]---- > > > > > > > > ------- End of Original Message ------- > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Wed Jun 20 00:18:51 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 20 Jun 2018 01:18:51 +0300 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> Message-ID: <20180619221618.M38734@455.co.il> OK BUT IS: Try If Date(2018,13,1) then stop ---------- Original Message ----------- From: Gianluigi To: Gambas Mailing List Sent: Tue, 19 Jun 2018 23:52:14 +0200 Subject: Re: [Gambas-user] try if error > Public Sub Main() > > Dim i As Integer > > Try i = "Mickey Mouse" > Try i = "Pluto" > Try i = "1" > Print i > > End > > Regards > Gianluigi > > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : > > > Sorry > > I meant in Visual Basic > > To skip to the next line > > There is the command > > > > On Error Resume Next > > > > In GAMBAS there is no possibility > > > > > > ---------- Original Message ----------- > > From: Gianluigi > > To: Gambas Mailing List > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 > > Subject: Re: [Gambas-user] try if error > > > > > For those who want to know what 'Goto 0' means in Vb: > > > https://stackoverflow.com/questions/9983464/why-would- > > you-ever-use-on-error- > > > goto-0 > > > > > > Regards > > > Gianluigi > > > > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > > > > > > > OK > > > > > > > > Many thanks > > > > > > > > ---------- Original Message ----------- > > > > From: Jussi Lahtinen > > > > To: Gambas Mailing List > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > Dim hDate As Date > > > > > > > > > > Try hDate =Date(2018, 13, 1) > > > > > > > > > > If Error Then > > > > > Print "Date Error" > > > > > Endif > > > > > > > > > > If hDate = something Then > > > > > > > > > > ... > > > > > > > > > > Jussi > > > > > > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon > > > > wrote: > > > > > > > > > > > This is not a good option > > > > > > Because it will send a print every time > > > > > > If the date is correct > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: Yahoo via User > > > > > > To: Gambas Mailing List , Jussi > > Lahtinen > > > > > > > > > > > > Cc: Yahoo > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > Better this form: > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > IF Error Then > > > > > > > Print "Wrong Date format" > > > > > > > else > > > > > > > ? Do something whit your date?. > > > > > > > End If > > > > > > > > > > > > > > Cordialement, > > > > > > > ? > > > > > > > Olivier Cruilles > > > > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > > > > jussi.lahtinen at gmail.com) > > > > > > a ?crit: > > > > > > > > > > > > > > Oh, maybe you want to use Catch structure... > > > > > > > http://gambaswiki.org/wiki/lang/catch > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > > > > jussi.lahtinen at gmail.com> wrote: > > > > > > > I don't understand the problem. > > > > > > > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > ErrorHandling: > > > > > > > Print "Here is my error handling" > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < > > sharon at 455.co.il> > > > > > > wrote: > > > > > > > In Visual Basic > > > > > > > there is > > > > > > > on error goto 0 > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: PICCORO McKAY Lenz > > > > > > > To: Gambas Mailing List > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > > > > > > > > > > > Hello > > > > > > > > > > > > > > > > > > How do I proceed to the next line > > > > > > > > > If there is an error > > > > > > > > > > > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > for others error might be a good question unless compared using > > > > Comp() > > > > > > as > > > > > > > > strings! > > > > > > > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > > > Endif > > > > > > > > > > > > > > > > > > End > > > > > > > > > > > > > > > > > > Thank you > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > > https://www.hostsharing.net > > > > > > ]---- > > > > > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net > > > > ]---- > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net > > > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > > > ]---- > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From chrisml at deganius.de Wed Jun 20 09:42:17 2018 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 20 Jun 2018 09:42:17 +0200 Subject: [Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs? In-Reply-To: References: <20180615183923.GC1010@highrise.localdomain> Message-ID: <2b7715ad-3566-b0d9-5ac6-88e14d802cd1@deganius.de> Am 15.06.2018 um 20:52 schrieb PICCORO McKAY Lenz: > umm i cannot avoid the "global." prefix! right? No, but you can give it another name. 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 Wed Jun 20 09:47:22 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 20 Jun 2018 09:47:22 +0200 Subject: [Gambas-user] try if error In-Reply-To: <20180619221618.M38734@455.co.il> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> <20180619221618.M38734@455.co.il> Message-ID: I can not understand what you want to get. Now also .net uses Try, Catch and Finally. If you want to continue after the error set just try: Try something Try something else if you want to stop set: Try something if error then return Otherwise read here: http://gambaswiki.org/wiki/comp/gb/error In particular: Public Sub Main() Dim x As Date Try x = Date(2018, 13, 1) If Error Then Print "Month max 12" Else Print "Exit" Return Endif End Regards Gianluigi 2018-06-20 0:18 GMT+02:00 Mayost Sharon : > OK > > BUT IS: > > Try If Date(2018,13,1) then stop > > ---------- Original Message ----------- > From: Gianluigi > To: Gambas Mailing List > Sent: Tue, 19 Jun 2018 23:52:14 +0200 > Subject: Re: [Gambas-user] try if error > > > Public Sub Main() > > > > Dim i As Integer > > > > Try i = "Mickey Mouse" > > Try i = "Pluto" > > Try i = "1" > > Print i > > > > End > > > > Regards > > Gianluigi > > > > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : > > > > > Sorry > > > I meant in Visual Basic > > > To skip to the next line > > > There is the command > > > > > > On Error Resume Next > > > > > > In GAMBAS there is no possibility > > > > > > > > > ---------- Original Message ----------- > > > From: Gianluigi > > > To: Gambas Mailing List > > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 > > > Subject: Re: [Gambas-user] try if error > > > > > > > For those who want to know what 'Goto 0' means in Vb: > > > > https://stackoverflow.com/questions/9983464/why-would- > > > you-ever-use-on-error- > > > > goto-0 > > > > > > > > Regards > > > > Gianluigi > > > > > > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > > > > > > > > > OK > > > > > > > > > > Many thanks > > > > > > > > > > ---------- Original Message ----------- > > > > > From: Jussi Lahtinen > > > > > To: Gambas Mailing List > > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > Dim hDate As Date > > > > > > > > > > > > Try hDate =Date(2018, 13, 1) > > > > > > > > > > > > If Error Then > > > > > > Print "Date Error" > > > > > > Endif > > > > > > > > > > > > If hDate = something Then > > > > > > > > > > > > ... > > > > > > > > > > > > Jussi > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon < > sharon at 455.co.il> > > > > > wrote: > > > > > > > > > > > > > This is not a good option > > > > > > > Because it will send a print every time > > > > > > > If the date is correct > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: Yahoo via User > > > > > > > To: Gambas Mailing List , Jussi > > > Lahtinen > > > > > > > > > > > > > > Cc: Yahoo > > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > > > Better this form: > > > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > IF Error Then > > > > > > > > Print "Wrong Date format" > > > > > > > > else > > > > > > > > ? Do something whit your date?. > > > > > > > > End If > > > > > > > > > > > > > > > > Cordialement, > > > > > > > > ? > > > > > > > > Olivier Cruilles > > > > > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > > > > > jussi.lahtinen at gmail.com) > > > > > > > a ?crit: > > > > > > > > > > > > > > > > Oh, maybe you want to use Catch structure... > > > > > > > > http://gambaswiki.org/wiki/lang/catch > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > > > > > jussi.lahtinen at gmail.com> wrote: > > > > > > > > I don't understand the problem. > > > > > > > > > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > ErrorHandling: > > > > > > > > Print "Here is my error handling" > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < > > > sharon at 455.co.il> > > > > > > > wrote: > > > > > > > > In Visual Basic > > > > > > > > there is > > > > > > > > on error goto 0 > > > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > > From: PICCORO McKAY Lenz > > > > > > > > To: Gambas Mailing List > > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon >: > > > > > > > > > > > > > > > > > > > Hello > > > > > > > > > > > > > > > > > > > > How do I proceed to the next line > > > > > > > > > > If there is an error > > > > > > > > > > > > > > > > > > > for cases when it's error format or error of invalid date > just: > > > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > > > for others error might be a good question unless compared > using > > > > > Comp() > > > > > > > as > > > > > > > > > strings! > > > > > > > > > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > > > > > Endif > > > > > > > > > > > > > > > > > > > > End > > > > > > > > > > > > > > > > > > > > Thank you > > > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > > > https://www.hostsharing.net > > > > > > > ]---- > > > > > > > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net > > > > > ]---- > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net > > > > > ]---- > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > > > > ]---- > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > > ]---- > > > > > > > > ------- End of Original Message ------- > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.crean at y7mail.com Wed Jun 20 10:09:04 2018 From: mike.crean at y7mail.com (Mike Crean) Date: Wed, 20 Jun 2018 08:09:04 +0000 (UTC) Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> <20180619221618.M38734@455.co.il> Message-ID: <415357014.177905.1529482144466@mail.yahoo.com> In VB.Net it is Try?? ? Date(2018,13,1) If Error Resume Next This will tell it to resume at the next error without taking any other action. RegardsMike? On Wednesday, 20 June 2018, 3:48:06 pm AWST, Gianluigi wrote: I can not understand what you want to get. Now also .net uses Try, Catch and Finally. If you want to continue after the error set just try: Try something Try something else if you want to stop set: Try something if error then return Otherwise read here: http://gambaswiki.org/wiki/comp/gb/error In particular: Public Sub Main() ? ? Dim x As Date ? ? Try x = Date(2018, 13, 1) ? If Error Then ??? Print "Month max 12" ? Else ??? Print "Exit" ??? Return ? Endif ? End RegardsGianluigi 2018-06-20 0:18 GMT+02:00 Mayost Sharon : OK BUT IS: Try If Date(2018,13,1) then stop ---------- Original Message ----------- From: Gianluigi To: Gambas Mailing List Sent: Tue, 19 Jun 2018 23:52:14 +0200 Subject: Re: [Gambas-user] try if error > Public Sub Main() > >? ?Dim i As Integer > >? ?Try i = "Mickey Mouse" >? ?Try i = "Pluto" >? ?Try i = "1" >? ?Print i > > End > > Regards > Gianluigi > > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : > > > Sorry > > I meant in Visual Basic > > To skip to the next line > > There is the command > > > > On Error Resume Next > > > > In GAMBAS there is no possibility > > > > > > ---------- Original Message ----------- > > From: Gianluigi > > To: Gambas Mailing List > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 > > Subject: Re: [Gambas-user] try if error > > > > > For those who want to know what 'Goto 0' means in Vb: > > > https://stackoverflow.com/ questions/9983464/why-would- > > you-ever-use-on-error- > > > goto-0 > > > > > > Regards > > > Gianluigi > > > > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > > > > > > > OK > > > > > > > > Many thanks > > > > > > > > ---------- Original Message ----------- > > > > From: Jussi Lahtinen > > > > To: Gambas Mailing List > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > Dim hDate As Date > > > > > > > > > > Try hDate =Date(2018, 13, 1) > > > > > > > > > >? ? ?If Error Then > > > > >? ? ? ?Print "Date Error" > > > > >? ? ?Endif > > > > > > > > > >? If hDate = something Then > > > > > > > > > > ... > > > > > > > > > > Jussi > > > > > > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon > > > > wrote: > > > > > > > > > > > This is not a good option > > > > > > Because it will send a print every time > > > > > > If the date is correct > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: Yahoo via User > > > > > > To: Gambas Mailing List , Jussi > > Lahtinen > > > > > > > > > > > > Cc: Yahoo > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > Better this form: > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > IF Error Then > > > > > > >? ? Print "Wrong Date format" > > > > > > > else > > > > > > >? ? ? Do something whit your date?. > > > > > > > End If > > > > > > > > > > > > > > Cordialement, > > > > > > > ? > > > > > > > Olivier Cruilles > > > > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > > > > jussi.lahtinen at gmail.com) > > > > > > a ?crit: > > > > > > > > > > > > > > Oh, maybe you want to use Catch structure... > > > > > > > http://gambaswiki.org/wiki/ lang/catch > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > > > > jussi.lahtinen at gmail.com> wrote: > > > > > > > I don't understand the problem. > > > > > > > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > ErrorHandling: > > > > > > > Print "Here is my error handling" > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < > > sharon at 455.co.il> > > > > > > wrote: > > > > > > > In Visual Basic > > > > > > > there is > > > > > > > on error goto 0 > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: PICCORO McKAY Lenz > > > > > > > To: Gambas Mailing List > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > > > > > > > > > > > Hello > > > > > > > > > > > > > > > > > > How do I proceed to the next line > > > > > > > > > If there is an error > > > > > > > > > > > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > for others error might be a good question unless compared using > > > > Comp() > > > > > > as > > > > > > > > strings! > > > > > > > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > > > > > > >? ?Try Print Date(2018, 13, 1) > > > > > > > > > > > > > > > > > >? ?If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > > >? ?Endif > > > > > > > > > > > > > > > > > > End > > > > > > > > > > > > > > > > > > Thank you > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > > https://www.hostsharing.net > > > > > > ]---- > > > > > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net > > > > ]---- > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net > > > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > > > ]---- > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.crean at y7mail.com Wed Jun 20 10:15:01 2018 From: mike.crean at y7mail.com (Mike Crean) Date: Wed, 20 Jun 2018 08:15:01 +0000 (UTC) Subject: [Gambas-user] try if error In-Reply-To: <415357014.177905.1529482144466@mail.yahoo.com> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> <20180619221618.M38734@455.co.il> <415357014.177905.1529482144466@mail.yahoo.com> Message-ID: <1805751089.186048.1529482501367@mail.yahoo.com> If it were available in Gambas I would think it would be something like Try?? ? Date(2018,13,1) If Error Then? ? Resume Next TegardsMike? On Wednesday, 20 June 2018, 4:10:05 pm AWST, Mike Crean via User wrote: In VB.Net it is Try?? ? Date(2018,13,1) If Error Resume Next This will tell it to resume at the next error without taking any other action. RegardsMike? On Wednesday, 20 June 2018, 3:48:06 pm AWST, Gianluigi wrote: I can not understand what you want to get. Now also .net uses Try, Catch and Finally. If you want to continue after the error set just try: Try something Try something else if you want to stop set: Try something if error then return Otherwise read here: http://gambaswiki.org/wiki/comp/gb/error In particular: Public Sub Main() ? ? Dim x As Date ? ? Try x = Date(2018, 13, 1) ? If Error Then ??? Print "Month max 12" ? Else ??? Print "Exit" ??? Return ? Endif ? End RegardsGianluigi 2018-06-20 0:18 GMT+02:00 Mayost Sharon : OK BUT IS: Try If Date(2018,13,1) then stop ---------- Original Message ----------- From: Gianluigi To: Gambas Mailing List Sent: Tue, 19 Jun 2018 23:52:14 +0200 Subject: Re: [Gambas-user] try if error > Public Sub Main() > >? ?Dim i As Integer > >? ?Try i = "Mickey Mouse" >? ?Try i = "Pluto" >? ?Try i = "1" >? ?Print i > > End > > Regards > Gianluigi > > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : > > > Sorry > > I meant in Visual Basic > > To skip to the next line > > There is the command > > > > On Error Resume Next > > > > In GAMBAS there is no possibility > > > > > > ---------- Original Message ----------- > > From: Gianluigi > > To: Gambas Mailing List > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 > > Subject: Re: [Gambas-user] try if error > > > > > For those who want to know what 'Goto 0' means in Vb: > > > https://stackoverflow.com/ questions/9983464/why-would- > > you-ever-use-on-error- > > > goto-0 > > > > > > Regards > > > Gianluigi > > > > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > > > > > > > OK > > > > > > > > Many thanks > > > > > > > > ---------- Original Message ----------- > > > > From: Jussi Lahtinen > > > > To: Gambas Mailing List > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > Dim hDate As Date > > > > > > > > > > Try hDate =Date(2018, 13, 1) > > > > > > > > > >? ? ?If Error Then > > > > >? ? ? ?Print "Date Error" > > > > >? ? ?Endif > > > > > > > > > >? If hDate = something Then > > > > > > > > > > ... > > > > > > > > > > Jussi > > > > > > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon > > > > wrote: > > > > > > > > > > > This is not a good option > > > > > > Because it will send a print every time > > > > > > If the date is correct > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: Yahoo via User > > > > > > To: Gambas Mailing List , Jussi > > Lahtinen > > > > > > > > > > > > Cc: Yahoo > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > Better this form: > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > IF Error Then > > > > > > >? ? Print "Wrong Date format" > > > > > > > else > > > > > > >? ? ? Do something whit your date?. > > > > > > > End If > > > > > > > > > > > > > > Cordialement, > > > > > > > ? > > > > > > > Olivier Cruilles > > > > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > > > > jussi.lahtinen at gmail.com) > > > > > > a ?crit: > > > > > > > > > > > > > > Oh, maybe you want to use Catch structure... > > > > > > > http://gambaswiki.org/wiki/ lang/catch > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > > > > jussi.lahtinen at gmail.com> wrote: > > > > > > > I don't understand the problem. > > > > > > > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > ErrorHandling: > > > > > > > Print "Here is my error handling" > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < > > sharon at 455.co.il> > > > > > > wrote: > > > > > > > In Visual Basic > > > > > > > there is > > > > > > > on error goto 0 > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: PICCORO McKAY Lenz > > > > > > > To: Gambas Mailing List > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon : > > > > > > > > > > > > > > > > > Hello > > > > > > > > > > > > > > > > > > How do I proceed to the next line > > > > > > > > > If there is an error > > > > > > > > > > > > > > > > > for cases when it's error format or error of invalid date just: > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > for others error might be a good question unless compared using > > > > Comp() > > > > > > as > > > > > > > > strings! > > > > > > > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > > > > > > >? ?Try Print Date(2018, 13, 1) > > > > > > > > > > > > > > > > > >? ?If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > > >? ?Endif > > > > > > > > > > > > > > > > > > End > > > > > > > > > > > > > > > > > > Thank you > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > > https://www.hostsharing.net > > > > > > ]---- > > > > > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net > > > > ]---- > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net > > > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > > > ]---- > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Jun 20 11:26:54 2018 From: adamnt42 at gmail.com (Adam Ant) Date: Wed, 20 Jun 2018 18:56:54 +0930 Subject: [Gambas-user] try if error In-Reply-To: <1805751089.186048.1529482501367@mail.yahoo.com> References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> <20180619221618.M38734@455.co.il> <415357014.177905.1529482144466@mail.yahoo.com> <1805751089.186048.1529482501367@mail.yahoo.com> Message-ID: You cannot use Try If because If will always return a value. The above posters are correct. Dim Trydate as Date Try Trydate=(gibberish) If Error then handle it else do whatever Endif On Wed, Jun 20, 2018 at 5:45 PM, Mike Crean via User < user at lists.gambas-basic.org> wrote: > If it were available in Gambas I would think it would be something like > > Try > Date(2018,13,1) > If Error Then > Resume Next > > Tegards > Mike > > > > On Wednesday, 20 June 2018, 4:10:05 pm AWST, Mike Crean via User < > user at lists.gambas-basic.org> wrote: > > > In VB.Net it is > > Try > Date(2018,13,1) > If Error Resume Next > > This will tell it to resume at the next error without taking any other > action. > > Regards > Mike > > On Wednesday, 20 June 2018, 3:48:06 pm AWST, Gianluigi < > bagonergi at gmail.com> wrote: > > > I can not understand what you want to get. > Now also .net uses Try, Catch and Finally. > If you want to continue after the error set just try: > Try something > Try something else > if you want to stop set: > Try something > if error then return > Otherwise read here: > http://gambaswiki.org/wiki/comp/gb/error > > In particular: > Public Sub Main() > > Dim x As Date > > Try x = Date(2018, 13, 1) > If Error Then > Print "Month max 12" > Else > Print "Exit" > Return > Endif > > End > > Regards > Gianluigi > > 2018-06-20 0:18 GMT+02:00 Mayost Sharon : > > OK > > BUT IS: > > Try If Date(2018,13,1) then stop > > ---------- Original Message ----------- > From: Gianluigi > To: Gambas Mailing List > Sent: Tue, 19 Jun 2018 23:52:14 +0200 > Subject: Re: [Gambas-user] try if error > > > Public Sub Main() > > > > Dim i As Integer > > > > Try i = "Mickey Mouse" > > Try i = "Pluto" > > Try i = "1" > > Print i > > > > End > > > > Regards > > Gianluigi > > > > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : > > > > > Sorry > > > I meant in Visual Basic > > > To skip to the next line > > > There is the command > > > > > > On Error Resume Next > > > > > > In GAMBAS there is no possibility > > > > > > > > > ---------- Original Message ----------- > > > From: Gianluigi > > > To: Gambas Mailing List > > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 > > > Subject: Re: [Gambas-user] try if error > > > > > > > For those who want to know what 'Goto 0' means in Vb: > > > > https://stackoverflow.com/ questions/9983464/why-would- > > > > you-ever-use-on-error- > > > > goto-0 > > > > > > > > Regards > > > > Gianluigi > > > > > > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : > > > > > > > > > OK > > > > > > > > > > Many thanks > > > > > > > > > > ---------- Original Message ----------- > > > > > From: Jussi Lahtinen > > > > > To: Gambas Mailing List > > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > Dim hDate As Date > > > > > > > > > > > > Try hDate =Date(2018, 13, 1) > > > > > > > > > > > > If Error Then > > > > > > Print "Date Error" > > > > > > Endif > > > > > > > > > > > > If hDate = something Then > > > > > > > > > > > > ... > > > > > > > > > > > > Jussi > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon < > sharon at 455.co.il> > > > > > wrote: > > > > > > > > > > > > > This is not a good option > > > > > > > Because it will send a print every time > > > > > > > If the date is correct > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: Yahoo via User > > > > > > > To: Gambas Mailing List , Jussi > > > Lahtinen > > > > > > > > > > > > > > Cc: Yahoo > > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 > > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > > > Better this form: > > > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > IF Error Then > > > > > > > > Print "Wrong Date format" > > > > > > > > else > > > > > > > > ? Do something whit your date?. > > > > > > > > End If > > > > > > > > > > > > > > > > Cordialement, > > > > > > > > ? > > > > > > > > Olivier Cruilles > > > > > > > > Email: olivier.cruilles at yahoo.fr > > > > > > > > > > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( > > > > > jussi.lahtinen at gmail.com) > > > > > > > a ?crit: > > > > > > > > > > > > > > > > Oh, maybe you want to use Catch structure... > > > > > > > > http://gambaswiki.org/wiki/ lang/catch > > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < > > > > > > > jussi.lahtinen at gmail.com> wrote: > > > > > > > > I don't understand the problem. > > > > > > > > > > > > > > > > If Error Then Goto ErrorHandling > > > > > > > > > > > > > > > > ... > > > > > > > > > > > > > > > > ErrorHandling: > > > > > > > > Print "Here is my error handling" > > > > > > > > > > > > > > > > Jussi > > > > > > > > > > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < > > > sharon at 455.co.il> > > > > > > > wrote: > > > > > > > > In Visual Basic > > > > > > > > there is > > > > > > > > on error goto 0 > > > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > > From: PICCORO McKAY Lenz > > > > > > > > To: Gambas Mailing List > > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 > > > > > > > > Subject: Re: [Gambas-user] try if error > > > > > > > > > > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon >: > > > > > > > > > > > > > > > > > > > Hello > > > > > > > > > > > > > > > > > > > > How do I proceed to the next line > > > > > > > > > > If there is an error > > > > > > > > > > > > > > > > > > > for cases when it's error format or error of invalid date > just: > > > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > > > for others error might be a good question unless compared > using > > > > > Comp() > > > > > > > as > > > > > > > > > strings! > > > > > > > > > > > > > > > > > > i dont know what other type of errors can be produced here! > > > > > > > > > > > > > > > > > > > > > > > > > > > > > For example, if the date is not correct > > > > > > > > > > > > > > > > > > > > ' Gambas module file > > > > > > > > > > > > > > > > > > > > Public Sub Main() > > > > > > > > > > > > > > > > > > > > Try Print Date(2018, 13, 1) > > > > > > > > > > > > > > > > > > > > If Date(2018, 13, 1) Then > > > > > > > > > > > > > > > > > > > > Endif > > > > > > > > > > > > > > > > > > > > End > > > > > > > > > > > > > > > > > > > > Thank you > > > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > > > https://www.hostsharing.net > > > > > > > ]---- > > > > > > > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net > > > > > ]---- > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > > > https://www.hostsharing.net > > > > > ]---- > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > > > > > ]---- > > > > > > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > > ]---- > > > > > > > > ------- End of Original Message ------- > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jun 20 12:36:38 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 20 Jun 2018 12:36:38 +0200 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> <20180619221618.M38734@455.co.il> <415357014.177905.1529482144466@mail.yahoo.com> <1805751089.186048.1529482501367@mail.yahoo.com> Message-ID: We are creating confusion. If we want to go to the next line in case of error, use only 'Try' you do not need to check if there is an error and tell Gambas to go to the next line, because it already does so in silence. Gambas is not .net or vb 2018-06-20 11:26 GMT+02:00 Adam Ant : > You cannot use Try If because If will always return a value. > The above posters are correct. > > Dim Trydate as Date > > Try Trydate=(gibberish) > If Error then > handle it > else > do whatever > Endif > > On Wed, Jun 20, 2018 at 5:45 PM, Mike Crean via User < > user at lists.gambas-basic.org> wrote: > >> If it were available in Gambas I would think it would be something like >> >> Try >> Date(2018,13,1) >> If Error Then >> Resume Next >> >> Tegards >> Mike >> >> >> >> On Wednesday, 20 June 2018, 4:10:05 pm AWST, Mike Crean via User < >> user at lists.gambas-basic.org> wrote: >> >> >> In VB.Net it is >> >> Try >> Date(2018,13,1) >> If Error Resume Next >> >> This will tell it to resume at the next error without taking any other >> action. >> >> Regards >> Mike >> >> On Wednesday, 20 June 2018, 3:48:06 pm AWST, Gianluigi < >> bagonergi at gmail.com> wrote: >> >> >> I can not understand what you want to get. >> Now also .net uses Try, Catch and Finally. >> If you want to continue after the error set just try: >> Try something >> Try something else >> if you want to stop set: >> Try something >> if error then return >> Otherwise read here: >> http://gambaswiki.org/wiki/comp/gb/error >> >> In particular: >> Public Sub Main() >> >> Dim x As Date >> >> Try x = Date(2018, 13, 1) >> If Error Then >> Print "Month max 12" >> Else >> Print "Exit" >> Return >> Endif >> >> End >> >> Regards >> Gianluigi >> >> 2018-06-20 0:18 GMT+02:00 Mayost Sharon : >> >> OK >> >> BUT IS: >> >> Try If Date(2018,13,1) then stop >> >> ---------- Original Message ----------- >> From: Gianluigi >> To: Gambas Mailing List >> Sent: Tue, 19 Jun 2018 23:52:14 +0200 >> Subject: Re: [Gambas-user] try if error >> >> > Public Sub Main() >> > >> > Dim i As Integer >> > >> > Try i = "Mickey Mouse" >> > Try i = "Pluto" >> > Try i = "1" >> > Print i >> > >> > End >> > >> > Regards >> > Gianluigi >> > >> > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : >> > >> > > Sorry >> > > I meant in Visual Basic >> > > To skip to the next line >> > > There is the command >> > > >> > > On Error Resume Next >> > > >> > > In GAMBAS there is no possibility >> > > >> > > >> > > ---------- Original Message ----------- >> > > From: Gianluigi >> > > To: Gambas Mailing List >> > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 >> > > Subject: Re: [Gambas-user] try if error >> > > >> > > > For those who want to know what 'Goto 0' means in Vb: >> > > > https://stackoverflow.com/ questions/9983464/why-would- >> >> > > you-ever-use-on-error- >> > > > goto-0 >> > > > >> > > > Regards >> > > > Gianluigi >> > > > >> > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : >> > > > >> > > > > OK >> > > > > >> > > > > Many thanks >> > > > > >> > > > > ---------- Original Message ----------- >> > > > > From: Jussi Lahtinen >> > > > > To: Gambas Mailing List >> > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 >> > > > > Subject: Re: [Gambas-user] try if error >> > > > > >> > > > > > Dim hDate As Date >> > > > > > >> > > > > > Try hDate =Date(2018, 13, 1) >> > > > > > >> > > > > > If Error Then >> > > > > > Print "Date Error" >> > > > > > Endif >> > > > > > >> > > > > > If hDate = something Then >> > > > > > >> > > > > > ... >> > > > > > >> > > > > > Jussi >> > > > > > >> > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon < >> sharon at 455.co.il> >> > > > > wrote: >> > > > > > >> > > > > > > This is not a good option >> > > > > > > Because it will send a print every time >> > > > > > > If the date is correct >> > > > > > > >> > > > > > > ---------- Original Message ----------- >> > > > > > > From: Yahoo via User >> > > > > > > To: Gambas Mailing List , Jussi >> > > Lahtinen >> > > > > > > >> > > > > > > Cc: Yahoo >> > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 >> > > > > > > Subject: Re: [Gambas-user] try if error >> > > > > > > >> > > > > > > > Better this form: >> > > > > > > > >> > > > > > > > Try Print Date(2018, 13, 1) >> > > > > > > > IF Error Then >> > > > > > > > Print "Wrong Date format" >> > > > > > > > else >> > > > > > > > ? Do something whit your date?. >> > > > > > > > End If >> > > > > > > > >> > > > > > > > Cordialement, >> > > > > > > > ? >> > > > > > > > Olivier Cruilles >> > > > > > > > Email: olivier.cruilles at yahoo.fr >> > > > > > > > >> > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( >> > > > > jussi.lahtinen at gmail.com) >> > > > > > > a ?crit: >> > > > > > > > >> > > > > > > > Oh, maybe you want to use Catch structure... >> > > > > > > > http://gambaswiki.org/wiki/ lang/catch >> >> > > > > > > > >> > > > > > > > Jussi >> > > > > > > > >> > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < >> > > > > > > jussi.lahtinen at gmail.com> wrote: >> > > > > > > > I don't understand the problem. >> > > > > > > > >> > > > > > > > If Error Then Goto ErrorHandling >> > > > > > > > >> > > > > > > > ... >> > > > > > > > >> > > > > > > > ErrorHandling: >> > > > > > > > Print "Here is my error handling" >> > > > > > > > >> > > > > > > > Jussi >> > > > > > > > >> > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < >> > > sharon at 455.co.il> >> > > > > > > wrote: >> > > > > > > > In Visual Basic >> > > > > > > > there is >> > > > > > > > on error goto 0 >> > > > > > > > >> > > > > > > > ---------- Original Message ----------- >> > > > > > > > From: PICCORO McKAY Lenz >> > > > > > > > To: Gambas Mailing List >> > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 >> > > > > > > > Subject: Re: [Gambas-user] try if error >> > > > > > > > >> > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon < >> sharon at 455.co.il>: >> > > > > > > > > >> > > > > > > > > > Hello >> > > > > > > > > > >> > > > > > > > > > How do I proceed to the next line >> > > > > > > > > > If there is an error >> > > > > > > > > > >> > > > > > > > > for cases when it's error format or error of invalid date >> just: >> > > > > > > > > >> > > > > > > > > If Date(2018, 13, 1) Then >> > > > > > > > > >> > > > > > > > > for others error might be a good question unless compared >> using >> > > > > Comp() >> > > > > > > as >> > > > > > > > > strings! >> > > > > > > > > >> > > > > > > > > i dont know what other type of errors can be produced >> here! >> > > > > > > > > >> > > > > > > > > > >> > > > > > > > > > For example, if the date is not correct >> > > > > > > > > > >> > > > > > > > > > ' Gambas module file >> > > > > > > > > > >> > > > > > > > > > Public Sub Main() >> > > > > > > > > > >> > > > > > > > > > Try Print Date(2018, 13, 1) >> > > > > > > > > > >> > > > > > > > > > If Date(2018, 13, 1) Then >> > > > > > > > > > >> > > > > > > > > > Endif >> > > > > > > > > > >> > > > > > > > > > End >> > > > > > > > > > >> > > > > > > > > > Thank you >> > > > > > > > > > >> > > > > > > > > > ----[ Gambas mailing-list is hosted by >> > > > > https://www.hostsharing.net >> > > > > > > ]---- >> > > > > > > > > > >> > > > > > > > ------- End of Original Message ------- >> > > > > > > > >> > > > > > > > ----[ Gambas mailing-list is hosted by >> > > https://www.hostsharing.net >> > > > > ]---- >> > > > > > > > >> > > > > > > > ----[ Gambas mailing-list is hosted by >> > > https://www.hostsharing.net >> > > > > ]---- >> > > > > > > ------- End of Original Message ------- >> > > > > > > >> > > > > > > >> > > > > > > ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net >> > > > > ]---- >> > > > > > > >> > > > > ------- End of Original Message ------- >> > > > > >> > > > > >> > > > > ----[ Gambas mailing-list is hosted by >> https://www.hostsharing.net >> > > ]---- >> > > > > >> > > ------- End of Original Message ------- >> > > >> > > >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > > >> ------- End of Original Message ------- >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 20 14:32:59 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 20 Jun 2018 08:32:59 -0400 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> <20180619221618.M38734@455.co.il> <415357014.177905.1529482144466@mail.yahoo.com> <1805751089.186048.1529482501367@mail.yahoo.com> Message-ID: 2018-06-20 6:36 GMT-04:00 Gianluigi : > If we want to go to the next line in case of error, use only 'Try' you do > not need to check if there is an error and tell Gambas to go to the next > line, because it already does so in silence. > Of course thank to point the no complicated things .. puff Gambas is not .net or vb > Thas the first sentence to "try" before so much confusion! XD XD XD > > 2018-06-20 11:26 GMT+02:00 Adam Ant : > >> You cannot use Try If because If will always return a value. >> The above posters are correct. >> >> Dim Trydate as Date >> >> Try Trydate=(gibberish) >> If Error then >> handle it >> else >> do whatever >> Endif >> >> On Wed, Jun 20, 2018 at 5:45 PM, Mike Crean via User < >> user at lists.gambas-basic.org> wrote: >> >>> If it were available in Gambas I would think it would be something like >>> >>> Try >>> Date(2018,13,1) >>> If Error Then >>> Resume Next >>> >>> Tegards >>> Mike >>> >>> >>> >>> On Wednesday, 20 June 2018, 4:10:05 pm AWST, Mike Crean via User < >>> user at lists.gambas-basic.org> wrote: >>> >>> >>> In VB.Net it is >>> >>> Try >>> Date(2018,13,1) >>> If Error Resume Next >>> >>> This will tell it to resume at the next error without taking any other >>> action. >>> >>> Regards >>> Mike >>> >>> On Wednesday, 20 June 2018, 3:48:06 pm AWST, Gianluigi < >>> bagonergi at gmail.com> wrote: >>> >>> >>> I can not understand what you want to get. >>> Now also .net uses Try, Catch and Finally. >>> If you want to continue after the error set just try: >>> Try something >>> Try something else >>> if you want to stop set: >>> Try something >>> if error then return >>> Otherwise read here: >>> http://gambaswiki.org/wiki/comp/gb/error >>> >>> In particular: >>> Public Sub Main() >>> >>> Dim x As Date >>> >>> Try x = Date(2018, 13, 1) >>> If Error Then >>> Print "Month max 12" >>> Else >>> Print "Exit" >>> Return >>> Endif >>> >>> End >>> >>> Regards >>> Gianluigi >>> >>> 2018-06-20 0:18 GMT+02:00 Mayost Sharon : >>> >>> OK >>> >>> BUT IS: >>> >>> Try If Date(2018,13,1) then stop >>> >>> ---------- Original Message ----------- >>> From: Gianluigi >>> To: Gambas Mailing List >>> Sent: Tue, 19 Jun 2018 23:52:14 +0200 >>> Subject: Re: [Gambas-user] try if error >>> >>> > Public Sub Main() >>> > >>> > Dim i As Integer >>> > >>> > Try i = "Mickey Mouse" >>> > Try i = "Pluto" >>> > Try i = "1" >>> > Print i >>> > >>> > End >>> > >>> > Regards >>> > Gianluigi >>> > >>> > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : >>> > >>> > > Sorry >>> > > I meant in Visual Basic >>> > > To skip to the next line >>> > > There is the command >>> > > >>> > > On Error Resume Next >>> > > >>> > > In GAMBAS there is no possibility >>> > > >>> > > >>> > > ---------- Original Message ----------- >>> > > From: Gianluigi >>> > > To: Gambas Mailing List >>> > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 >>> > > Subject: Re: [Gambas-user] try if error >>> > > >>> > > > For those who want to know what 'Goto 0' means in Vb: >>> > > > https://stackoverflow.com/ questions/9983464/why-would- >>> >>> > > you-ever-use-on-error- >>> > > > goto-0 >>> > > > >>> > > > Regards >>> > > > Gianluigi >>> > > > >>> > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : >>> > > > >>> > > > > OK >>> > > > > >>> > > > > Many thanks >>> > > > > >>> > > > > ---------- Original Message ----------- >>> > > > > From: Jussi Lahtinen >>> > > > > To: Gambas Mailing List >>> > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 >>> > > > > Subject: Re: [Gambas-user] try if error >>> > > > > >>> > > > > > Dim hDate As Date >>> > > > > > >>> > > > > > Try hDate =Date(2018, 13, 1) >>> > > > > > >>> > > > > > If Error Then >>> > > > > > Print "Date Error" >>> > > > > > Endif >>> > > > > > >>> > > > > > If hDate = something Then >>> > > > > > >>> > > > > > ... >>> > > > > > >>> > > > > > Jussi >>> > > > > > >>> > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon < >>> sharon at 455.co.il> >>> > > > > wrote: >>> > > > > > >>> > > > > > > This is not a good option >>> > > > > > > Because it will send a print every time >>> > > > > > > If the date is correct >>> > > > > > > >>> > > > > > > ---------- Original Message ----------- >>> > > > > > > From: Yahoo via User >>> > > > > > > To: Gambas Mailing List , Jussi >>> > > Lahtinen >>> > > > > > > >>> > > > > > > Cc: Yahoo >>> > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 >>> > > > > > > Subject: Re: [Gambas-user] try if error >>> > > > > > > >>> > > > > > > > Better this form: >>> > > > > > > > >>> > > > > > > > Try Print Date(2018, 13, 1) >>> > > > > > > > IF Error Then >>> > > > > > > > Print "Wrong Date format" >>> > > > > > > > else >>> > > > > > > > ? Do something whit your date?. >>> > > > > > > > End If >>> > > > > > > > >>> > > > > > > > Cordialement, >>> > > > > > > > ? >>> > > > > > > > Olivier Cruilles >>> > > > > > > > Email: olivier.cruilles at yahoo.fr >>> > > > > > > > >>> > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( >>> > > > > jussi.lahtinen at gmail.com) >>> > > > > > > a ?crit: >>> > > > > > > > >>> > > > > > > > Oh, maybe you want to use Catch structure... >>> > > > > > > > http://gambaswiki.org/wiki/ lang/catch >>> >>> > > > > > > > >>> > > > > > > > Jussi >>> > > > > > > > >>> > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < >>> > > > > > > jussi.lahtinen at gmail.com> wrote: >>> > > > > > > > I don't understand the problem. >>> > > > > > > > >>> > > > > > > > If Error Then Goto ErrorHandling >>> > > > > > > > >>> > > > > > > > ... >>> > > > > > > > >>> > > > > > > > ErrorHandling: >>> > > > > > > > Print "Here is my error handling" >>> > > > > > > > >>> > > > > > > > Jussi >>> > > > > > > > >>> > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < >>> > > sharon at 455.co.il> >>> > > > > > > wrote: >>> > > > > > > > In Visual Basic >>> > > > > > > > there is >>> > > > > > > > on error goto 0 >>> > > > > > > > >>> > > > > > > > ---------- Original Message ----------- >>> > > > > > > > From: PICCORO McKAY Lenz >>> > > > > > > > To: Gambas Mailing List >>> > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 >>> > > > > > > > Subject: Re: [Gambas-user] try if error >>> > > > > > > > >>> > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon < >>> sharon at 455.co.il>: >>> > > > > > > > > >>> > > > > > > > > > Hello >>> > > > > > > > > > >>> > > > > > > > > > How do I proceed to the next line >>> > > > > > > > > > If there is an error >>> > > > > > > > > > >>> > > > > > > > > for cases when it's error format or error of invalid >>> date just: >>> > > > > > > > > >>> > > > > > > > > If Date(2018, 13, 1) Then >>> > > > > > > > > >>> > > > > > > > > for others error might be a good question unless >>> compared using >>> > > > > Comp() >>> > > > > > > as >>> > > > > > > > > strings! >>> > > > > > > > > >>> > > > > > > > > i dont know what other type of errors can be produced >>> here! >>> > > > > > > > > >>> > > > > > > > > > >>> > > > > > > > > > For example, if the date is not correct >>> > > > > > > > > > >>> > > > > > > > > > ' Gambas module file >>> > > > > > > > > > >>> > > > > > > > > > Public Sub Main() >>> > > > > > > > > > >>> > > > > > > > > > Try Print Date(2018, 13, 1) >>> > > > > > > > > > >>> > > > > > > > > > If Date(2018, 13, 1) Then >>> > > > > > > > > > >>> > > > > > > > > > Endif >>> > > > > > > > > > >>> > > > > > > > > > End >>> > > > > > > > > > >>> > > > > > > > > > Thank you >>> > > > > > > > > > >>> > > > > > > > > > ----[ Gambas mailing-list is hosted by >>> > > > > https://www.hostsharing.net >>> > > > > > > ]---- >>> > > > > > > > > > >>> > > > > > > > ------- End of Original Message ------- >>> > > > > > > > >>> > > > > > > > ----[ Gambas mailing-list is hosted by >>> > > https://www.hostsharing.net >>> > > > > ]---- >>> > > > > > > > >>> > > > > > > > ----[ Gambas mailing-list is hosted by >>> > > https://www.hostsharing.net >>> > > > > ]---- >>> > > > > > > ------- End of Original Message ------- >>> > > > > > > >>> > > > > > > >>> > > > > > > ----[ Gambas mailing-list is hosted by >>> https://www.hostsharing.net >>> > > > > ]---- >>> > > > > > > >>> > > > > ------- End of Original Message ------- >>> > > > > >>> > > > > >>> > > > > ----[ Gambas mailing-list is hosted by >>> https://www.hostsharing.net >>> > > ]---- >>> > > > > >>> > > ------- End of Original Message ------- >>> > > >>> > > >>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>> ]---- >>> > > >>> ------- End of Original Message ------- >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 20 14:34:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 20 Jun 2018 08:34:00 -0400 Subject: [Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs? In-Reply-To: <2b7715ad-3566-b0d9-5ac6-88e14d802cd1@deganius.de> References: <20180615183923.GC1010@highrise.localdomain> <2b7715ad-3566-b0d9-5ac6-88e14d802cd1@deganius.de> Message-ID: 2018-06-20 3:42 GMT-04:00 Christof Thalhofer : > Am 15.06.2018 um 20:52 schrieb PICCORO McKAY Lenz: > > umm i cannot avoid the "global." prefix! right? > > No, but you can give it another name. > any way to create dinamically?? just like php does with $$ ? > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Wed Jun 20 17:00:52 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Wed, 20 Jun 2018 16:00:52 +0100 Subject: [Gambas-user] Button background and foreground Message-ID: Hi everyone, Any idea how to change the background and foreground of a button? No matter the color selected the button is always gray. Thank you. ?Regards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed Jun 20 17:17:33 2018 From: taboege at gmail.com (Tobias Boege) Date: Wed, 20 Jun 2018 17:17:33 +0200 Subject: [Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs? In-Reply-To: References: <20180615183923.GC1010@highrise.localdomain> <2b7715ad-3566-b0d9-5ac6-88e14d802cd1@deganius.de> Message-ID: <20180620151733.GG1010@highrise.localdomain> On Wed, 20 Jun 2018, PICCORO McKAY Lenz wrote: > 2018-06-20 3:42 GMT-04:00 Christof Thalhofer : > > > Am 15.06.2018 um 20:52 schrieb PICCORO McKAY Lenz: > > > umm i cannot avoid the "global." prefix! right? > > > > No, but you can give it another name. > > > any way to create dinamically?? > > just like php does with $$ ? > To store variables whose names you don't know at compile time, you normally use a Collection. The most syntactic sugar you're going to get is via the special methods _property and _unknown or _get and _put [1]. Forward accesses to your Global module through these interfaces to an internal Collection. Regards, Tobi [1] http://gambaswiki.org/wiki/cat/special -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From charlie at cogier.com Wed Jun 20 17:27:04 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 20 Jun 2018 16:27:04 +0100 Subject: [Gambas-user] Button background and foreground In-Reply-To: References: Message-ID: <2e304e4d-188f-39e9-4b46-4221556e9e37@cogier.com> Hi Ant?nio, This has tested me before. the problem seems to be with QT/GTK. I have just tried this again and found that GTK3 is the only way it will work. Go to menu *Debug>GUI Component* and select *GTK+3* and see if that works for you. Charlie On 20/06/18 16:00, Antonio Teixeira wrote: > Hi everyone, > > Any idea how to change the background and foreground of a button? No > matter the color selected the button is always gray. > Thank you. > > ?Regards > > > Ant?nio Teixeira > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GUITest_433.png Type: image/png Size: 105404 bytes Desc: not available URL: From mckaygerhard at gmail.com Wed Jun 20 17:37:05 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 20 Jun 2018 11:37:05 -0400 Subject: [Gambas-user] how can i emulate GLOBAL VARIABLES in gambas project/programs? In-Reply-To: <20180620151733.GG1010@highrise.localdomain> References: <20180615183923.GC1010@highrise.localdomain> <2b7715ad-3566-b0d9-5ac6-88e14d802cd1@deganius.de> <20180620151733.GG1010@highrise.localdomain> Message-ID: 2018-06-20 11:17 GMT-04:00 Tobias Boege : > To store variables whose names you don't know at compile time, you normally > use a Collection. It's precisely what I've been doing, BUT TOTALLY IMPRACTICALL AND UNFLEXIBLE > The most syntactic sugar you're going to get is via the > special methods _property and _unknown or _get and _put [1]. Forward > accesses > to your Global module through these interfaces to an internal Collection. > ...same as previous but with details.. so there's no support or a way to emulated!? without a collection case store? > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/cat/special > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From herberthguzman at gmail.com Wed Jun 20 18:36:22 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Wed, 20 Jun 2018 18:36:22 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: Hi Benoit I tried the system tray in ubuntu 18.04 in 32bits and 64 bits in 32 bits if it works, in ubuntu 64 bits it does not work. If it works in 32 bits, do you think it can get to work in 64 bits ...? Regards 2018-06-18 14:53 GMT+02:00 PICCORO McKAY Lenz : > herberth the only way its start to test comunications with dbus interface, > i not thinking you will solve it in some weeks, maybe will take more than > some weeks... > > i recommended firts experiment with dbus monitor > https://dbus.freedesktop.org/doc/dbus-monitor.1.html and always use a > external not-changing mecanish like qdbus or dbus-send, a good starting > point for those commands are https://www.linuxjournal.com/article/10455 > > dbus are now very close to systemd (due systemd depends on) and dbus are > too heavy (maybe another reason of high resources consuption of your > project) , for those that wants to use more traditional but local only > oriented see https://www.reddit.com/r/commandline/comments/13o581/ > dbus_vs_unix_sockets/ > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-16 10:02 GMT-04:00 herberth guzman : > >> How can i solve the problem with gb.qt5 >> >> I need my system tray for my project. >> >> Help please. >> >> El vie., 15 jun. 2018 2:05 p.m., PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> escribi?: >> >>> 2018-06-15 15:24 GMT-04:00 Fabien Bodard : >>> >>>> How can I create a DBus system tray? >>>> >>>>> Can you help me please. >>>>> >>>> >>>> it's not so easy :-) >>>> >>> >>> yeah, the dbus message format and interfaces are very inconsistent >>> between versions and the freedesktop documents are very ambigous about it! >>> also the qt5 >>> >>> >>>> >>>> >>>>> >>>>> >>Is it a problem with the icon tray or with the systrayarea ? >>>>> t does not show any icon, example I want to show vlc or nm-applet, it >>>>> does not show it. >>>>> >>>>> >>>>> >>I have begin to wrote a systray area based on the dbus protocol.. >>>>> there is some year . maybe it not take too much time to me to finish it. >>>>> >>>>> I can test your new system tray ...? >>>>> >>>> >>>> it's too early :-) >>>> >>>> >>>> >>>> >>>> >>>>> >>>>> 2018-06-15 8:57 GMT+02:00 Fabien Bodard : >>>>> >>>>>> Is it a problem with the icon tray or with the systrayarea ? >>>>>> >>>>>> I have begin to wrote a systray area based on the dbus protocol.. >>>>>> there is some year . maybe it not take too much time to me to finish it. >>>>>> >>>>>> But the protocols are really not all standardized :-(. >>>>>> >>>>>> Le jeu. 14 juin 2018 23:55, herberth guzman >>>>>> a ?crit : >>>>>> >>>>>>> I would like to improve, but I do not know how to do it ... >>>>>>> >>>>>>> 2018-06-14 23:53 GMT+02:00 herberth guzman >>>>>> >: >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >>>>>>>> >>>>>>>>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Innova and Gnome 3.26 >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> Does this desktop have a DBus system tray? >>>>>>>>> >>>>>>>> >>>>>>>> No >>>>>>>> >>>>>>>>> >>>>>>>>> Does it have support for the old system tray protocol? >>>>>>>> >>>>>>>> >>>>>>>> Yes >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Beno?t Minisini >>>>>>>>> >>>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>>> ]---- >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>>> -- >>>> Fabien Bodard >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 20 23:42:35 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 20 Jun 2018 17:42:35 -0400 Subject: [Gambas-user] how to detect run ide in macox or other os? in linux uses proc! Message-ID: i have this code to detect if gambas runs at ide the current project or the project are compiled and runs by own: strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") If Left(strProcess, 4) = "gbx3" Then Return -1 Else Return 0 Endif BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any OS/environment if my program runs at ide or not? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 21 00:03:46 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Jun 2018 00:03:46 +0200 Subject: [Gambas-user] how to detect run ide in macox or other os? in linux uses proc! In-Reply-To: References: Message-ID: <940b3f7c-a902-6527-a718-d1ce2226cb4b@gmail.com> Le 20/06/2018 ? 23:42, PICCORO McKAY Lenz a ?crit?: > i have this code to detect if gambas runs at ide the current project or > the project are compiled and runs by own: > > ??? strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") > ??? If Left(strProcess, 4) = "gbx3" Then > ??????? Return -1 > ??? Else > ??????? Return 0 > ??? Endif > > BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any > OS/environment if my program runs at ide or not? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > You should not need to know if you are running a project from the IDE or not. Even if it is not true, you should not see any difference between running from the IDE or not, and any program should not rely on any possible difference. -- Beno?t Minisini From mckaygerhard at gmail.com Thu Jun 21 14:39:57 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 21 Jun 2018 08:39:57 -0400 Subject: [Gambas-user] how to detect run ide in macox or other os? in linux uses proc! In-Reply-To: <940b3f7c-a902-6527-a718-d1ce2226cb4b@gmail.com> References: <940b3f7c-a902-6527-a718-d1ce2226cb4b@gmail.com> Message-ID: tyhe difference its that when run from ide are running from a user, i had been made a deamon manager in pieces.. i need to detect if are running from ide without any setup from developer, like java profiles does! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-20 18:03 GMT-04:00 Beno?t Minisini : > Le 20/06/2018 ? 23:42, PICCORO McKAY Lenz a ?crit : > >> i have this code to detect if gambas runs at ide the current project or >> the project are compiled and runs by own: >> >> strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") >> If Left(strProcess, 4) = "gbx3" Then >> Return -1 >> Else >> Return 0 >> Endif >> >> BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any >> OS/environment if my program runs at ide or not? >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > You should not need to know if you are running a project from the IDE or > not. > > Even if it is not true, you should not see any difference between running > from the IDE or not, and any program should not rely on any possible > difference. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Jun 21 20:01:22 2018 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 21 Jun 2018 20:01:22 +0200 Subject: [Gambas-user] try if error In-Reply-To: References: <20180619195258.M36036@455.co.il> <20180619202123.M22634@455.co.il> <20180619204425.M49107@455.co.il> <20180619205356.M85184@455.co.il> <20180619213038.M55276@455.co.il> <20180619221618.M38734@455.co.il> <415357014.177905.1529482144466@mail.yahoo.com> <1805751089.186048.1529482501367@mail.yahoo.com> Message-ID: As I say from the beginning... Just 'try' !!! Le mer. 20 juin 2018 14:34, PICCORO McKAY Lenz a ?crit : > 2018-06-20 6:36 GMT-04:00 Gianluigi : > >> If we want to go to the next line in case of error, use only 'Try' you do >> not need to check if there is an error and tell Gambas to go to the next >> line, because it already does so in silence. >> > Of course thank to point the no complicated things .. puff > > Gambas is not .net or vb >> > Thas the first sentence to "try" before so much confusion! XD XD XD > > > >> >> 2018-06-20 11:26 GMT+02:00 Adam Ant : >> >>> You cannot use Try If because If will always return a value. >>> The above posters are correct. >>> >>> Dim Trydate as Date >>> >>> Try Trydate=(gibberish) >>> If Error then >>> handle it >>> else >>> do whatever >>> Endif >>> >>> On Wed, Jun 20, 2018 at 5:45 PM, Mike Crean via User < >>> user at lists.gambas-basic.org> wrote: >>> >>>> If it were available in Gambas I would think it would be something like >>>> >>>> Try >>>> Date(2018,13,1) >>>> If Error Then >>>> Resume Next >>>> >>>> Tegards >>>> Mike >>>> >>>> >>>> >>>> On Wednesday, 20 June 2018, 4:10:05 pm AWST, Mike Crean via User < >>>> user at lists.gambas-basic.org> wrote: >>>> >>>> >>>> In VB.Net it is >>>> >>>> Try >>>> Date(2018,13,1) >>>> If Error Resume Next >>>> >>>> This will tell it to resume at the next error without taking any other >>>> action. >>>> >>>> Regards >>>> Mike >>>> >>>> On Wednesday, 20 June 2018, 3:48:06 pm AWST, Gianluigi < >>>> bagonergi at gmail.com> wrote: >>>> >>>> >>>> I can not understand what you want to get. >>>> Now also .net uses Try, Catch and Finally. >>>> If you want to continue after the error set just try: >>>> Try something >>>> Try something else >>>> if you want to stop set: >>>> Try something >>>> if error then return >>>> Otherwise read here: >>>> http://gambaswiki.org/wiki/comp/gb/error >>>> >>>> In particular: >>>> Public Sub Main() >>>> >>>> Dim x As Date >>>> >>>> Try x = Date(2018, 13, 1) >>>> If Error Then >>>> Print "Month max 12" >>>> Else >>>> Print "Exit" >>>> Return >>>> Endif >>>> >>>> End >>>> >>>> Regards >>>> Gianluigi >>>> >>>> 2018-06-20 0:18 GMT+02:00 Mayost Sharon : >>>> >>>> OK >>>> >>>> BUT IS: >>>> >>>> Try If Date(2018,13,1) then stop >>>> >>>> ---------- Original Message ----------- >>>> From: Gianluigi >>>> To: Gambas Mailing List >>>> Sent: Tue, 19 Jun 2018 23:52:14 +0200 >>>> Subject: Re: [Gambas-user] try if error >>>> >>>> > Public Sub Main() >>>> > >>>> > Dim i As Integer >>>> > >>>> > Try i = "Mickey Mouse" >>>> > Try i = "Pluto" >>>> > Try i = "1" >>>> > Print i >>>> > >>>> > End >>>> > >>>> > Regards >>>> > Gianluigi >>>> > >>>> > 2018-06-19 23:37 GMT+02:00 Mayost Sharon : >>>> > >>>> > > Sorry >>>> > > I meant in Visual Basic >>>> > > To skip to the next line >>>> > > There is the command >>>> > > >>>> > > On Error Resume Next >>>> > > >>>> > > In GAMBAS there is no possibility >>>> > > >>>> > > >>>> > > ---------- Original Message ----------- >>>> > > From: Gianluigi >>>> > > To: Gambas Mailing List >>>> > > Sent: Tue, 19 Jun 2018 23:05:47 +0200 >>>> > > Subject: Re: [Gambas-user] try if error >>>> > > >>>> > > > For those who want to know what 'Goto 0' means in Vb: >>>> > > > https://stackoverflow.com/ questions/9983464/why-would- >>>> >>>> > > you-ever-use-on-error- >>>> > > > goto-0 >>>> > > > >>>> > > > Regards >>>> > > > Gianluigi >>>> > > > >>>> > > > 2018-06-19 22:54 GMT+02:00 Mayost Sharon : >>>> > > > >>>> > > > > OK >>>> > > > > >>>> > > > > Many thanks >>>> > > > > >>>> > > > > ---------- Original Message ----------- >>>> > > > > From: Jussi Lahtinen >>>> > > > > To: Gambas Mailing List >>>> > > > > Sent: Tue, 19 Jun 2018 23:49:33 +0300 >>>> > > > > Subject: Re: [Gambas-user] try if error >>>> > > > > >>>> > > > > > Dim hDate As Date >>>> > > > > > >>>> > > > > > Try hDate =Date(2018, 13, 1) >>>> > > > > > >>>> > > > > > If Error Then >>>> > > > > > Print "Date Error" >>>> > > > > > Endif >>>> > > > > > >>>> > > > > > If hDate = something Then >>>> > > > > > >>>> > > > > > ... >>>> > > > > > >>>> > > > > > Jussi >>>> > > > > > >>>> > > > > > On Tue, Jun 19, 2018 at 11:46 PM, Mayost Sharon < >>>> sharon at 455.co.il> >>>> > > > > wrote: >>>> > > > > > >>>> > > > > > > This is not a good option >>>> > > > > > > Because it will send a print every time >>>> > > > > > > If the date is correct >>>> > > > > > > >>>> > > > > > > ---------- Original Message ----------- >>>> > > > > > > From: Yahoo via User >>>> > > > > > > To: Gambas Mailing List , >>>> Jussi >>>> > > Lahtinen >>>> > > > > > > >>>> > > > > > > Cc: Yahoo >>>> > > > > > > Sent: Tue, 19 Jun 2018 16:35:33 -0400 >>>> > > > > > > Subject: Re: [Gambas-user] try if error >>>> > > > > > > >>>> > > > > > > > Better this form: >>>> > > > > > > > >>>> > > > > > > > Try Print Date(2018, 13, 1) >>>> > > > > > > > IF Error Then >>>> > > > > > > > Print "Wrong Date format" >>>> > > > > > > > else >>>> > > > > > > > ? Do something whit your date?. >>>> > > > > > > > End If >>>> > > > > > > > >>>> > > > > > > > Cordialement, >>>> > > > > > > > ? >>>> > > > > > > > Olivier Cruilles >>>> > > > > > > > Email: olivier.cruilles at yahoo.fr >>>> > > > > > > > >>>> > > > > > > > Le June 19, 2018 ? 16:30:03, Jussi Lahtinen ( >>>> > > > > jussi.lahtinen at gmail.com) >>>> > > > > > > a ?crit: >>>> > > > > > > > >>>> > > > > > > > Oh, maybe you want to use Catch structure... >>>> > > > > > > > http://gambaswiki.org/wiki/ lang/catch >>>> >>>> > > > > > > > >>>> > > > > > > > Jussi >>>> > > > > > > > >>>> > > > > > > > On Tue, Jun 19, 2018 at 11:27 PM, Jussi Lahtinen < >>>> > > > > > > jussi.lahtinen at gmail.com> wrote: >>>> > > > > > > > I don't understand the problem. >>>> > > > > > > > >>>> > > > > > > > If Error Then Goto ErrorHandling >>>> > > > > > > > >>>> > > > > > > > ... >>>> > > > > > > > >>>> > > > > > > > ErrorHandling: >>>> > > > > > > > Print "Here is my error handling" >>>> > > > > > > > >>>> > > > > > > > Jussi >>>> > > > > > > > >>>> > > > > > > > On Tue, Jun 19, 2018 at 11:22 PM, Mayost Sharon < >>>> > > sharon at 455.co.il> >>>> > > > > > > wrote: >>>> > > > > > > > In Visual Basic >>>> > > > > > > > there is >>>> > > > > > > > on error goto 0 >>>> > > > > > > > >>>> > > > > > > > ---------- Original Message ----------- >>>> > > > > > > > From: PICCORO McKAY Lenz >>>> > > > > > > > To: Gambas Mailing List >>>> > > > > > > > Sent: Tue, 19 Jun 2018 16:18:06 -0400 >>>> > > > > > > > Subject: Re: [Gambas-user] try if error >>>> > > > > > > > >>>> > > > > > > > > 2018-06-19 16:06 GMT-04:00 Mayost Sharon < >>>> sharon at 455.co.il>: >>>> > > > > > > > > >>>> > > > > > > > > > Hello >>>> > > > > > > > > > >>>> > > > > > > > > > How do I proceed to the next line >>>> > > > > > > > > > If there is an error >>>> > > > > > > > > > >>>> > > > > > > > > for cases when it's error format or error of invalid >>>> date just: >>>> > > > > > > > > >>>> > > > > > > > > If Date(2018, 13, 1) Then >>>> > > > > > > > > >>>> > > > > > > > > for others error might be a good question unless >>>> compared using >>>> > > > > Comp() >>>> > > > > > > as >>>> > > > > > > > > strings! >>>> > > > > > > > > >>>> > > > > > > > > i dont know what other type of errors can be produced >>>> here! >>>> > > > > > > > > >>>> > > > > > > > > > >>>> > > > > > > > > > For example, if the date is not correct >>>> > > > > > > > > > >>>> > > > > > > > > > ' Gambas module file >>>> > > > > > > > > > >>>> > > > > > > > > > Public Sub Main() >>>> > > > > > > > > > >>>> > > > > > > > > > Try Print Date(2018, 13, 1) >>>> > > > > > > > > > >>>> > > > > > > > > > If Date(2018, 13, 1) Then >>>> > > > > > > > > > >>>> > > > > > > > > > Endif >>>> > > > > > > > > > >>>> > > > > > > > > > End >>>> > > > > > > > > > >>>> > > > > > > > > > Thank you >>>> > > > > > > > > > >>>> > > > > > > > > > ----[ Gambas mailing-list is hosted by >>>> > > > > https://www.hostsharing.net >>>> > > > > > > ]---- >>>> > > > > > > > > > >>>> > > > > > > > ------- End of Original Message ------- >>>> > > > > > > > >>>> > > > > > > > ----[ Gambas mailing-list is hosted by >>>> > > https://www.hostsharing.net >>>> > > > > ]---- >>>> > > > > > > > >>>> > > > > > > > ----[ Gambas mailing-list is hosted by >>>> > > https://www.hostsharing.net >>>> > > > > ]---- >>>> > > > > > > ------- End of Original Message ------- >>>> > > > > > > >>>> > > > > > > >>>> > > > > > > ----[ Gambas mailing-list is hosted by >>>> https://www.hostsharing.net >>>> > > > > ]---- >>>> > > > > > > >>>> > > > > ------- End of Original Message ------- >>>> > > > > >>>> > > > > >>>> > > > > ----[ Gambas mailing-list is hosted by >>>> https://www.hostsharing.net >>>> > > ]---- >>>> > > > > >>>> > > ------- End of Original Message ------- >>>> > > >>>> > > >>>> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> > > >>>> ------- End of Original Message ------- >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Sun Jun 24 18:53:01 2018 From: karl.reinl at fen-net.de (Karl Reinl) Date: Sun, 24 Jun 2018 18:53:01 +0200 Subject: [Gambas-user] problems to install master on a Q4OS Message-ID: <1529859181.4220.13.camel@Scenic.local> Salut, I'm testing to install master on Q4OS (which derives from debian stable). For the needed libs, I used the Liste from the Gambas Website. Everything run fine, and make_install.log said all OK. ... Installing the development environment... Compiling gambas3... OK Installing gambas3... Compiling gbs3... OK Installing gbs3... .... But I couldn't start the IDE. Started in a terminal, it said: .. at q4os:~/src/gambas/3$ gambas3 gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component ERROR: #2: Cannot load class 'HelpView': Cannot load parent class: Cannot load class 'WebView': Unable to load class file So I think the 'make_install.log' lies, that my problem. ;?) See attachment for logs. -- Amicalement Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: QtWebKit-Problems-on-Q4OS.tar.bz2 Type: application/x-bzip-compressed-tar Size: 30456 bytes Desc: not available URL: From r0bst7m at gmail.com Sun Jun 24 20:05:51 2018 From: r0bst7m at gmail.com (Roberto Estevam) Date: Sun, 24 Jun 2018 19:05:51 +0100 Subject: [Gambas-user] problems to install master on a Q4OS In-Reply-To: <1529859181.4220.13.camel@Scenic.local> References: <1529859181.4220.13.camel@Scenic.local> Message-ID: Hi "You can remove gambas3-qt-qt4 and gambas3-gb-qt4-ext, it should fix this bug." A domingo, 24/06/2018, 18:01, Karl Reinl escreveu: > Salut, > > I'm testing to install master on Q4OS (which derives from debian > stable). For the needed libs, I used the Liste from the Gambas Website. > Everything run fine, and make_install.log said all OK. > ... > Installing the development environment... > Compiling gambas3... > OK > Installing gambas3... > Compiling gbs3... > OK > Installing gbs3... > .... > But I couldn't start the IDE. > Started in a terminal, it said: > .. at q4os:~/src/gambas/3$ gambas3 > gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component > ERROR: #2: Cannot load class 'HelpView': Cannot load parent class: > Cannot load class 'WebView': Unable to load class file > > So I think the 'make_install.log' lies, that my problem. ;?) > > See attachment for logs. > -- > Amicalement > Charlie > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 14:44:58 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 08:44:58 -0400 Subject: [Gambas-user] problems to install master on a Q4OS In-Reply-To: References: <1529859181.4220.13.camel@Scenic.local> Message-ID: 2018-06-24 14:05 GMT-04:00 Roberto Estevam : > Hi > "You can remove gambas3-qt-qt4 and gambas3-gb-qt4-ext, it should fix this > bug." > NO! you must have any qt either qt4 or qt5, but the problem its that also need a webkit engine from qt, either qt4webkit or qt5webkit.. as debian unstable only have qt5 as primary qt environment, so in conclusion, seems you compiled gambas with qt5 only but without qt5webkit support if there's enought knowledge please use my focused repositories from VenenuX for debian 8, debian 9 and unstable: 3.11.3+git patches for debian 8 "deb https://download.opensuse.org/repositories/home:/vegnuli:/gambas/Debian_8.0/ ./" 3.11.3+git patches for debian 9 "deb https://download.opensuse.org/repositories/home:/vegnuli:/gambas/Debian_9.0/ ./" > > > A domingo, 24/06/2018, 18:01, Karl Reinl escreveu: > >> Salut, >> >> I'm testing to install master on Q4OS (which derives from debian >> stable). For the needed libs, I used the Liste from the Gambas Website. >> Everything run fine, and make_install.log said all OK. >> ... >> Installing the development environment... >> Compiling gambas3... >> OK >> Installing gambas3... >> Compiling gbs3... >> OK >> Installing gbs3... >> .... >> But I couldn't start the IDE. >> Started in a terminal, it said: >> .. at q4os:~/src/gambas/3$ gambas3 >> gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component >> ERROR: #2: Cannot load class 'HelpView': Cannot load parent class: >> Cannot load class 'WebView': Unable to load class file >> >> So I think the 'make_install.log' lies, that my problem. ;?) >> >> See attachment for logs. >> -- >> Amicalement >> Charlie >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From herberthguzman at gmail.com Tue Jun 26 15:36:59 2018 From: herberthguzman at gmail.com (herberth guzman) Date: Tue, 26 Jun 2018 07:36:59 -0600 Subject: [Gambas-user] gb.qt5 Gambas3 32 and 64 Message-ID: Hi Benoit Regards I tried the system tray with gb.qt5 in ubuntu 18.04 in 32bits and 64 bits in 32 bits if it works, in ubuntu 64 bits it does not work. If it works in 32 bits, do you think it can get to work in 64 bits ...? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 15:50:02 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 09:50:02 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? Message-ID: i recently see that commit: https://gitlab.com/gambas/gambas/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems there's no example to tests that change.. also noted removal of gmime 2.4 without any reason (and seems the code support it) i used in the past the gmime component.. but i not have the project right now and i do not find! there's any project and/or code usage? for tests the gmime? wiki does not have any example http://gambaswiki.org/wiki/comp/gb.mime ! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 16:05:25 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 10:05:25 -0400 Subject: [Gambas-user] gb.qt5 Gambas3 32 and 64 In-Reply-To: References: Message-ID: it's not gambas problem, seems upstream related, that's the problem of always use newer things: https://bugreports.qt.io/browse/QTBUG-28316 <--- still opened! quite acient! https://bugreports.qt.io/browse/QTBUG-30468 <--- the actual problem here! as i said, better older and working rather newer and not well tested! same code from qt4 does not works similar on qt5 unleas the qml behaviour are used? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-26 9:36 GMT-04:00 herberth guzman : > Hi Benoit > Regards > > I tried the system tray with gb.qt5 in ubuntu 18.04 in 32bits and 64 bits > > in 32 bits if it works, in ubuntu 64 bits it does not work. > > If it works in 32 bits, do you think it can get to work in 64 bits ...? > > > Thanks > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 16:08:55 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 10:08:55 -0400 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: currently there's some issues related to system tray in qt5, for linux a dbus based implementation it's on process: https://bugreports.qt.io/browse/QTBUG-28316 <--- still opened! quite acient! https://bugreports.qt.io/browse/QTBUG-30468 <--- the actual problem here! as i said, better older and working rather newer and not well tested! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-20 12:36 GMT-04:00 herberth guzman : > Hi Benoit > > I tried the system tray in ubuntu 18.04 in 32bits and 64 bits > > in 32 bits if it works, in ubuntu 64 bits it does not work. > > If it works in 32 bits, do you think it can get to work in 64 bits ...? > > > Regards > > > 2018-06-18 14:53 GMT+02:00 PICCORO McKAY Lenz : > >> herberth the only way its start to test comunications with dbus >> interface, i not thinking you will solve it in some weeks, maybe will take >> more than some weeks... >> >> i recommended firts experiment with dbus monitor >> https://dbus.freedesktop.org/doc/dbus-monitor.1.html and always use a >> external not-changing mecanish like qdbus or dbus-send, a good starting >> point for those commands are https://www.linuxjournal.com/article/10455 >> >> dbus are now very close to systemd (due systemd depends on) and dbus are >> too heavy (maybe another reason of high resources consuption of your >> project) , for those that wants to use more traditional but local only >> oriented see https://www.reddit.com/r/commandline/comments/13o581/dbus_ >> vs_unix_sockets/ >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-16 10:02 GMT-04:00 herberth guzman : >> >>> How can i solve the problem with gb.qt5 >>> >>> I need my system tray for my project. >>> >>> Help please. >>> >>> El vie., 15 jun. 2018 2:05 p.m., PICCORO McKAY Lenz < >>> mckaygerhard at gmail.com> escribi?: >>> >>>> 2018-06-15 15:24 GMT-04:00 Fabien Bodard : >>>> >>>>> How can I create a DBus system tray? >>>>> >>>>>> Can you help me please. >>>>>> >>>>> >>>>> it's not so easy :-) >>>>> >>>> >>>> yeah, the dbus message format and interfaces are very inconsistent >>>> between versions and the freedesktop documents are very ambigous about it! >>>> also the qt5 >>>> >>>> >>>>> >>>>> >>>>>> >>>>>> >>Is it a problem with the icon tray or with the systrayarea ? >>>>>> t does not show any icon, example I want to show vlc or nm-applet, it >>>>>> does not show it. >>>>>> >>>>>> >>>>>> >>I have begin to wrote a systray area based on the dbus protocol.. >>>>>> there is some year . maybe it not take too much time to me to finish it. >>>>>> >>>>>> I can test your new system tray ...? >>>>>> >>>>> >>>>> it's too early :-) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> >>>>>> 2018-06-15 8:57 GMT+02:00 Fabien Bodard : >>>>>> >>>>>>> Is it a problem with the icon tray or with the systrayarea ? >>>>>>> >>>>>>> I have begin to wrote a systray area based on the dbus protocol.. >>>>>>> there is some year . maybe it not take too much time to me to finish it. >>>>>>> >>>>>>> But the protocols are really not all standardized :-(. >>>>>>> >>>>>>> Le jeu. 14 juin 2018 23:55, herberth guzman < >>>>>>> herberthguzman at gmail.com> a ?crit : >>>>>>> >>>>>>>> I would like to improve, but I do not know how to do it ... >>>>>>>> >>>>>>>> 2018-06-14 23:53 GMT+02:00 herberth guzman < >>>>>>>> herberthguzman at gmail.com>: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> 2018-06-14 23:46 GMT+02:00 Beno?t Minisini : >>>>>>>>> >>>>>>>>>> Le 14/06/2018 ? 23:32, herberth guzman a ?crit : >>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Innova and Gnome 3.26 >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> Does this desktop have a DBus system tray? >>>>>>>>>> >>>>>>>>> >>>>>>>>> No >>>>>>>>> >>>>>>>>>> >>>>>>>>>> Does it have support for the old system tray protocol? >>>>>>>>> >>>>>>>>> >>>>>>>>> Yes >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Beno?t Minisini >>>>>>>>>> >>>>>>>>>> ----[ Gambas mailing-list is hosted by >>>>>>>>>> https://www.hostsharing.net ]---- >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>> >>>>> >>>>> -- >>>>> Fabien Bodard >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 16:21:49 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 10:21:49 -0400 Subject: [Gambas-user] better aproach for wiki offline In-Reply-To: References: Message-ID: there's a similar problem and request for debian here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858382 not all people have 24/7 internet conection and the offline wiki are crap if some pages are not documented! should i send a bug request! as a bug of course due specifics pages are not show if there's no translations! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-05-05 9:09 GMT-04:00 PICCORO McKAY Lenz : > 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... > > THIS ARE A GOOD QUESTION/AFIRMATION > > there's some possibility to build the wiki during build time and packages > with gambas? > > also the old examples behavior too? > > as some time was explained.. its important for those tih limited > connections.. > > in my case i cannot spend all the sync data of conection only just for > update one wiki page: > i explain better: > > 1. my wiki are out of date only by two pages of all > 2. to update that i must go onlune and then offline again > 3. this makes download the hole wiki again! nonsense > > the sense its ahta i upgrade 3.11 and again i must download the wiki, why > not just include it with tarball? > > if i update the gambas build from a vendor/distro just with download the > package are better (in debian case are compresed with xz format) > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Tue Jun 26 17:56:54 2018 From: taboege at gmail.com (Tobias Boege) Date: Tue, 26 Jun 2018 17:56:54 +0200 Subject: [Gambas-user] better aproach for wiki offline In-Reply-To: References: Message-ID: <20180626155654.GJ1010@highrise.localdomain> On Tue, 26 Jun 2018, PICCORO McKAY Lenz wrote: > there's a similar problem and request for debian here: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858382 > > not all people have 24/7 internet conection and the offline wiki are crap > if some pages are not documented! > > should i send a bug request! as a bug of course due specifics pages are not > show if there's no translations! > The Gambas wiki script is included in the repository. I downloaded the latest wiki snapshot and ran the script locally. It didn't work for me, so I patched it (which I wish you would have thought of in the past two months). Patch is attached. The only problem is that the latest wiki dump is apparently from 2016. Benoit should set up a cronjob on that server perhaps. For completeness, the wiki dump is at [1] and the generation date is [2]. You uncompress the archive to create `$HOME/wiki/gambas/data/...'. This is approximately what the IDE does, except that is uses a different path. But instead of using the apparently broken help viewer there, you run the app/src/gambas-wiki script, which uses a local gb.httpd, and your usual web browser. I just had to remove some "web server bug fix" which Benoit probably needs for the production server and which breaks language fallback (among other things) locally (the gist of it is that there was always the "wiki" component too much in the path). Another option is to fix the help browser in the IDE. I never use it and didn't care to look what, if anything, is broken. Might be the same error as above. And still, it might interest some people that you can host your own gambaswiki.org, as long as you have a fresh content dump. The gambas-wiki is also a neat example of a Gambas web application. Regards, Tobi [1] http://gambaswiki.org/gambas-wiki.tar.bz2 [2] http://gambaswiki.org/timestamp -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- >From 58e40d0e158f3a78683ecc1a2d93b9a4d6c0621e Mon Sep 17 00:00:00 2001 From: Tobias Boege Date: Tue, 26 Jun 2018 17:28:45 +0200 Subject: [PATCH] gambas-wiki: Remove "web server bug" fix for production server(?) There was an alleged 'web server bug' fix which adds a "wiki" component to all links. That extra component isn't present in the directory hierarchy of the wiki dump and the fix doesn't seem to be needed when running the wiki locally under gb.httpd. Removing it *does*, however, make the fallback to English work again when the requested page is not available in the chosen language. --- app/src/gambas-wiki/.src/Main.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/gambas-wiki/.src/Main.module b/app/src/gambas-wiki/.src/Main.module index 6b3ddc242..c7da54bc2 100644 --- a/app/src/gambas-wiki/.src/Main.module +++ b/app/src/gambas-wiki/.src/Main.module @@ -422,7 +422,7 @@ Public Sub Main() ' Return ' Endif - CGI["SCRIPT_NAME"] = "/wiki" ' Fix web server bug + 'CGI["SCRIPT_NAME"] = "/wiki" ' Fix web server bug Root = User.Home &/ "wiki/gambas" InfoDir = User.Home &/ "wiki/info" If Not Exist(InfoDir) Then InfoDir = "" @@ -1493,4 +1493,4 @@ Private Sub SearchWiki(sText As String) Response.Redirect("/wiki/search") Return -End \ No newline at end of file +End -- 2.17.1 From mckaygerhard at gmail.com Tue Jun 26 18:19:20 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 12:19:20 -0400 Subject: [Gambas-user] better aproach for wiki offline In-Reply-To: <20180626155654.GJ1010@highrise.localdomain> References: <20180626155654.GJ1010@highrise.localdomain> Message-ID: thanks for your quick reply tobias.. i have some cos about it: 2018-06-26 11:56 GMT-04:00 Tobias Boege : > The Gambas wiki script is included in the repository. I downloaded the > latest wiki snapshot and ran the script locally. It didn't work for me, > so I patched it (which I wish you would have thought of in the past two > months). Patch is attached. The only problem is that the latest wiki > dump is apparently from 2016. Benoit should set up a cronjob on that > server perhaps. > seems its the wiki just right after the new markdown based and just conversion from that dump.. > For completeness, the wiki dump is at [1] and the generation date is [2]. > You uncompress the archive to create `$HOME/wiki/gambas/data/...'. > This is approximately what the IDE does, except that is uses a different > path. maybe if at the ide we can specify the path where the help are stored? (and/or running) > But instead of using the apparently broken help viewer there, > you run the app/src/gambas-wiki script, which uses a local gb.httpd, > and your usual web browser. I just had to remove some "web server > bug fix" which Benoit probably needs for the production server and which > breaks language fallback (among other things) locally (the gist of it > is that there was always the "wiki" component too much in the path). > maybe those "fix" are "not happened" for offline mode case.. > Another option is to fix the help browser in the IDE. I never use it > that-s it's necessary! when i try to display some help, if are not translated in russian or spanish, does snot show any content and get an error, but corresponding english version are available.. > and didn't care to look what, if anything, is broken. Might be the same > error as above. And still, it might interest some people that you can > host your own gambaswiki.org, as long as you have a fresh content dump. > The gambas-wiki is also a neat example of a Gambas web application. > i see the code of the gambas wiki, very abstract and simplified! great but not easy to novices.. i still have pending study and explained to others.. but currently the gambas wiki example does not have any wiki content.. it's a empty example to start to fill pages inside it... > > Regards, > Tobi > > [1] http://gambaswiki.org/gambas-wiki.tar.bz2 > [2] http://gambaswiki.org/timestamp > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 21:02:17 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 15:02:17 -0400 Subject: [Gambas-user] special methods customized with "_" Message-ID: i reading http://gambaswiki.org/wiki/dev/api/cat/special due i try ti use the underscore to make some private methods like does in php.. the underscore are reserved to use by the compiler runtime? there are some limitations or conventions here for underscore usage? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 21:06:10 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 15:06:10 -0400 Subject: [Gambas-user] how to detect run ide in macox or other os? in linux uses proc! In-Reply-To: References: <940b3f7c-a902-6527-a718-d1ce2226cb4b@gmail.com> Message-ID: i dont know if are always correct and works for linux as for mac/freebsd ???? > strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") If Left(strProcess, 4) = "gbx3" Then print "running from ide, using own internal project files" Else print "running as standalone app, use files from system" Endif Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-21 8:39 GMT-04:00 PICCORO McKAY Lenz : > tyhe difference its that when run from ide are running from a user, i had > been made a deamon manager in pieces.. i need to detect if are running from > ide without any setup from developer, like java profiles does! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-20 18:03 GMT-04:00 Beno?t Minisini : > >> Le 20/06/2018 ? 23:42, PICCORO McKAY Lenz a ?crit : >> >>> i have this code to detect if gambas runs at ide the current project or >>> the project are compiled and runs by own: >>> >>> strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") >>> If Left(strProcess, 4) = "gbx3" Then >>> Return -1 >>> Else >>> Return 0 >>> Endif >>> >>> BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any >>> OS/environment if my program runs at ide or not? >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> You should not need to know if you are running a project from the IDE or >> not. >> >> Even if it is not true, you should not see any difference between running >> from the IDE or not, and any program should not rely on any possible >> difference. >> >> -- >> Beno?t Minisini >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Tue Jun 26 21:12:26 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 26 Jun 2018 22:12:26 +0300 Subject: [Gambas-user] how to detect run ide in macox or other os? in linux uses proc! In-Reply-To: References: <940b3f7c-a902-6527-a718-d1ce2226cb4b@gmail.com> Message-ID: See "exec". http://gambaswiki.org/wiki/lang/.if Jussi On Tue, Jun 26, 2018 at 10:06 PM, PICCORO McKAY Lenz wrote: > i dont know if are always correct and works for linux as for mac/freebsd > ???? > > > strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") > If Left(strProcess, 4) = "gbx3" Then > print "running from ide, using own internal project files" > Else > print "running as standalone app, use files from system" > Endif > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-21 8:39 GMT-04:00 PICCORO McKAY Lenz : > >> tyhe difference its that when run from ide are running from a user, i had >> been made a deamon manager in pieces.. i need to detect if are running from >> ide without any setup from developer, like java profiles does! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-20 18:03 GMT-04:00 Beno?t Minisini : >> >>> Le 20/06/2018 ? 23:42, PICCORO McKAY Lenz a ?crit : >>> >>>> i have this code to detect if gambas runs at ide the current project or >>>> the project are compiled and runs by own: >>>> >>>> strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") >>>> If Left(strProcess, 4) = "gbx3" Then >>>> Return -1 >>>> Else >>>> Return 0 >>>> Endif >>>> >>>> BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any >>>> OS/environment if my program runs at ide or not? >>>> >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> You should not need to know if you are running a project from the IDE or >>> not. >>> >>> Even if it is not true, you should not see any difference between >>> running from the IDE or not, and any program should not rely on any >>> possible difference. >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 21:23:17 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 15:23:17 -0400 Subject: [Gambas-user] how to detect run ide in macox or other os? in linux uses proc! In-Reply-To: References: <940b3f7c-a902-6527-a718-d1ce2226cb4b@gmail.com> Message-ID: umm but this makes my gambas application has an architecture dependency and not only runtime and components depends.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-26 15:12 GMT-04:00 Jussi Lahtinen : > See "exec". > http://gambaswiki.org/wiki/lang/.if > > > Jussi > > On Tue, Jun 26, 2018 at 10:06 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> i dont know if are always correct and works for linux as for mac/freebsd >> ???? > >> >> strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") >> If Left(strProcess, 4) = "gbx3" Then >> print "running from ide, using own internal project files" >> Else >> print "running as standalone app, use files from system" >> Endif >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-21 8:39 GMT-04:00 PICCORO McKAY Lenz : >> >>> tyhe difference its that when run from ide are running from a user, i >>> had been made a deamon manager in pieces.. i need to detect if are running >>> from ide without any setup from developer, like java profiles does! >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-20 18:03 GMT-04:00 Beno?t Minisini : >>> >>>> Le 20/06/2018 ? 23:42, PICCORO McKAY Lenz a ?crit : >>>> >>>>> i have this code to detect if gambas runs at ide the current project >>>>> or the project are compiled and runs by own: >>>>> >>>>> strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") >>>>> If Left(strProcess, 4) = "gbx3" Then >>>>> Return -1 >>>>> Else >>>>> Return 0 >>>>> Endif >>>>> >>>>> BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any >>>>> OS/environment if my program runs at ide or not? >>>>> >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> You should not need to know if you are running a project from the IDE >>>> or not. >>>> >>>> Even if it is not true, you should not see any difference between >>>> running from the IDE or not, and any program should not rely on any >>>> possible difference. >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 21:29:43 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 15:29:43 -0400 Subject: [Gambas-user] how to detect run ide in macox or other os? in linux uses proc! In-Reply-To: References: <940b3f7c-a902-6527-a718-d1ce2226cb4b@gmail.com> Message-ID: oh well with a exec works if are at les running from ide.. thanks, Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-26 15:12 GMT-04:00 Jussi Lahtinen : > See "exec". > http://gambaswiki.org/wiki/lang/.if > > > Jussi > > On Tue, Jun 26, 2018 at 10:06 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> i dont know if are always correct and works for linux as for mac/freebsd >> ???? > >> >> strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") >> If Left(strProcess, 4) = "gbx3" Then >> print "running from ide, using own internal project files" >> Else >> print "running as standalone app, use files from system" >> Endif >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-21 8:39 GMT-04:00 PICCORO McKAY Lenz : >> >>> tyhe difference its that when run from ide are running from a user, i >>> had been made a deamon manager in pieces.. i need to detect if are running >>> from ide without any setup from developer, like java profiles does! >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-20 18:03 GMT-04:00 Beno?t Minisini : >>> >>>> Le 20/06/2018 ? 23:42, PICCORO McKAY Lenz a ?crit : >>>> >>>>> i have this code to detect if gambas runs at ide the current project >>>>> or the project are compiled and runs by own: >>>>> >>>>> strProcess = File.Load("/proc" &/ CStr(Application.Id) &/ "comm") >>>>> If Left(strProcess, 4) = "gbx3" Then >>>>> Return -1 >>>>> Else >>>>> Return 0 >>>>> Endif >>>>> >>>>> BUT THIS WILL WORK AT THE MACOSX TOO? how can i detect in any >>>>> OS/environment if my program runs at ide or not? >>>>> >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> You should not need to know if you are running a project from the IDE >>>> or not. >>>> >>>> Even if it is not true, you should not see any difference between >>>> running from the IDE or not, and any program should not rely on any >>>> possible difference. >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 23:05:16 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 17:05:16 -0400 Subject: [Gambas-user] problems to install master on a Q4OS In-Reply-To: References: <1529859181.4220.13.camel@Scenic.local> Message-ID: 2018-06-26 16:57 GMT-04:00 Karl Reinl : > Salut, > > I switched off qt4, qt5 was still installed (also qt5webkit see > configure.log), and I started from scratch. > as i said,"NO" i mean, that was not the solution > But starting the IDE I get this. the gb.gui.qt.webkit claims > gb.qt4.webkit > > gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component > ERROR: #2: Cannot load class 'HelpView': Cannot load parent class: > Cannot load class 'WebView': Unable to load class file > the compilation process are too large and need detailed settings and if there-s no extended experience must first tray a well made packages.. i tried the gambas in debian 9 and debian 8 a i have not problems.. also you must unnintstall all previously ans suspect of any gambas in the system.. > > I think it's a bug in gb.gui > -- > Amicalement > Charlie > Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-26 8:44 GMT-04:00 PICCORO McKAY Lenz : > 2018-06-24 14:05 GMT-04:00 Roberto Estevam : > >> Hi >> "You can remove gambas3-qt-qt4 and gambas3-gb-qt4-ext, it should fix this >> bug." >> > NO! > > you must have any qt either qt4 or qt5, but the problem its that also need > a webkit engine from qt, either qt4webkit or qt5webkit.. as debian unstable > only have qt5 as primary qt environment, so in conclusion, seems you > compiled gambas with qt5 only but without qt5webkit support > > if there's enought knowledge please use my focused repositories from > VenenuX for debian 8, debian 9 and unstable: > > 3.11.3+git patches for debian 8 "deb https://download.opensuse.org/ > repositories/home:/vegnuli:/gambas/Debian_8.0/ ./" > 3.11.3+git patches for debian 9 "deb https://download.opensuse.org/ > repositories/home:/vegnuli:/gambas/Debian_9.0/ ./" > > > > >> >> >> A domingo, 24/06/2018, 18:01, Karl Reinl >> escreveu: >> >>> Salut, >>> >>> I'm testing to install master on Q4OS (which derives from debian >>> stable). For the needed libs, I used the Liste from the Gambas Website. >>> Everything run fine, and make_install.log said all OK. >>> ... >>> Installing the development environment... >>> Compiling gambas3... >>> OK >>> Installing gambas3... >>> Compiling gbs3... >>> OK >>> Installing gbs3... >>> .... >>> But I couldn't start the IDE. >>> Started in a terminal, it said: >>> .. at q4os:~/src/gambas/3$ gambas3 >>> gb.gui.qt.webkit: unable to load 'gb.qt4.webkit' component >>> ERROR: #2: Cannot load class 'HelpView': Cannot load parent class: >>> Cannot load class 'WebView': Unable to load class file >>> >>> So I think the 'make_install.log' lies, that my problem. ;?) >>> >>> See attachment for logs. >>> -- >>> Amicalement >>> Charlie >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Jun 26 23:18:07 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 26 Jun 2018 17:18:07 -0400 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? Message-ID: i can setup and store the connection object once opened in a collection of connection objects? i want to use a pool from configuration file! so can stored a OPENED connection object in a colletion? (urrently seems when i used me.add the conectuion object happened closed) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 27 00:49:26 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 27 Jun 2018 01:49:26 +0300 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: Collections have only reference to objects, they do not contain objects. Jussi On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz wrote: > > i can setup and store the connection object once opened in a collection of > connection objects? > > i want to use a pool from configuration file! > > so can stored a OPENED connection object in a colletion? (urrently seems > when i used me.add the conectuion object happened closed) > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Wed Jun 27 11:19:07 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Wed, 27 Jun 2018 10:19:07 +0100 Subject: [Gambas-user] User library Message-ID: Hi everyone, I am trying for the first time to make a library and then use her. I saw the wiki page about that but I cant to put the library to work. I build a library like that: *Export * *Public Sub Main()* * Print "Hello world"* *End* *Public Function test() As String* * Return "test"* *End * Defined as library, and version is 1.0.0 On my program I defined the library in the project/libraries and my code to access the function is: *Private Extern test() In "zzzzzzz.1.0"* *Public Sub _new()* * Dim a As String * * a = test()* *End* I think the "extern" definition isnt correct but I cant find any information about how she must be. Any help please? Thanks in advance. Antonio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Wed Jun 27 14:02:38 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Wed, 27 Jun 2018 14:02:38 +0200 Subject: [Gambas-user] User library In-Reply-To: References: Message-ID: Hello, "Extern" only for shared-library .so, not for gambas library ! bye vuott Il 27.06.2018 11:19 Antonio Teixeira ha scritto: > Hi everyone, > I am trying for the first time to make a library and then use her. > I saw the wiki page about that but I cant to put the library to work. > I build a library like that: > > _Export _ > _Public Sub Main()_ > _ Print "Hello world"_ > _End_ > _Public Function test() As String_ > _ Return "test"_ > _End _ > > Defined as library, and version is 1.0.0 > > On my program I defined the library in the project/libraries > and my code to access the function is: > > _Private Extern test() In "zzzzzzz.1.0"_ > > _Public Sub _new()_ > _ Dim a As String _ > > _ a = test()_ > _ _ > _End_ > I think the "extern" definition isnt correct but I cant find any information about how she must be. > Any help please? > Thanks in advance. > Antonio Teixeira Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio. http://tisca.li/myopenjun18 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 27 15:11:33 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 09:11:33 -0400 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: so if i made a collection of my 3 of 4 connections objects those can be opened globally! how can i emulated a stored object connection that must be opened always before running the query? of course without inherits, due if all my objects inherits from one that already have opened i can use it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : > Collections have only reference to objects, they do not contain objects. > > > Jussi > > On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> >> i can setup and store the connection object once opened in a collection >> of connection objects? >> >> i want to use a pool from configuration file! >> >> so can stored a OPENED connection object in a colletion? (urrently seems >> when i used me.add the conectuion object happened closed) >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 27 16:12:01 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 10:12:01 -0400 Subject: [Gambas-user] how to compare object type? Message-ID: i have a collection with one object! how could i compared and determine the type of if are a class object? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 27 17:22:57 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jun 2018 17:22:57 +0200 Subject: [Gambas-user] Request for accessing Gambas GitLab Message-ID: <3149bd32-0824-b073-5672-6513fd370d04@gmail.com> Hi, Several people requested a developer access to the Gambas GitLab. This is usually not needed if you are just a occasional developer: just make a merge request. If you really need a developer access, please explain me why. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Wed Jun 27 17:42:17 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 11:42:17 -0400 Subject: [Gambas-user] Request for accessing Gambas GitLab In-Reply-To: <3149bd32-0824-b073-5672-6513fd370d04@gmail.com> References: <3149bd32-0824-b073-5672-6513fd370d04@gmail.com> Message-ID: maybe the "Contribution" file must be simplified and put directly in the README.md i suggest put directly in the description of the gambas gitlab project Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-27 11:22 GMT-04:00 Beno?t Minisini : > Hi, > > Several people requested a developer access to the Gambas GitLab. > > This is usually not needed if you are just a occasional developer: just > make a merge request. > > If you really need a developer access, please explain me why. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Wed Jun 27 18:19:06 2018 From: claude.dessere at orange.fr (CD) Date: Wed, 27 Jun 2018 18:19:06 +0200 Subject: [Gambas-user] Gambas Farm Message-ID: <6a09bc5abce6241888203ab989d3889cb01a7a25.camel@orange.fr> Hello, in the IDE Gambas, in the tools menu there is an Item Logith?que (i think Farm in english) with many projects all very interesting. 1) I registered without difficulty. When I connect, I do not see anything to disconnect me, weird! 2) There is a topic with my login, obviously there is nothing in it, am a new kid, in Gambas. I do not see any button to download packages to a server. How to put a program there? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Wed Jun 27 18:30:05 2018 From: claude.dessere at orange.fr (CD) Date: Wed, 27 Jun 2018 18:30:05 +0200 Subject: [Gambas-user] po-header.txt Message-ID: Good evening, I went through the Gambas3 sources: https://gitlab.com/gambas/gambas/blob/master/app/src/gambas3/.src I found in the code of the class CTranslation.class a procedure: Private Sub LoadTranslation (sLang As String) ... / ... Header & = SubstHeader (File.Load ("po-header.txt"), sLang) ... / ... I found in the sources, the file po-header.txt https://gitlab.com/gambas/gambas/blob/master/app/src/gambas3/po-header.txt is this file installed with Gambas (I am in 3.11.2), and if yes where? regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 27 18:32:13 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 12:32:13 -0400 Subject: [Gambas-user] Gambas Farm In-Reply-To: <6a09bc5abce6241888203ab989d3889cb01a7a25.camel@orange.fr> References: <6a09bc5abce6241888203ab989d3889cb01a7a25.camel@orange.fr> Message-ID: when conected go to same menu get or pick on a category or section of the farm, when a list of the software in farm are listed, click on each and will show details and button for download those are stored at $home/.local/share/gambas// Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-27 12:19 GMT-04:00 CD : > Hello, > in the IDE Gambas, in the tools menu there is an Item Logith?que (i think > Farm in english) with many projects all very interesting. > 1) I registered without difficulty. When I connect, I do not see anything > to disconnect me, weird! > 2) There is a topic with my login, obviously there is nothing in it, am a > new kid, in Gambas. I do not see any button to download packages to a > server. How to put a program there? > > Regards > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 27 18:57:31 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 12:57:31 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? Message-ID: if my var are set to false and i do Print var outputs nothig.. does the print can be override to reimplement this? or inherits to provide once enhanced? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Jun 27 19:05:28 2018 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 27 Jun 2018 19:05:28 +0200 Subject: [Gambas-user] Gambas Farm In-Reply-To: References: <6a09bc5abce6241888203ab989d3889cb01a7a25.camel@orange.fr> Message-ID: With DeepL Translator [0] you can translate this page[1] Regards Gianluigi [0] https://www.deepl.com/Translator [1] http://www.gambas-it.org/smf/index.php?topic=6251.0 2018-06-27 18:32 GMT+02:00 PICCORO McKAY Lenz : > when conected go to same menu get or pick on a category or section of the > farm, when a list of the software in farm are listed, click on each and > will show details and button for download > > those are stored at $home/.local/share/gambas// > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-27 12:19 GMT-04:00 CD : > >> Hello, >> in the IDE Gambas, in the tools menu there is an Item Logith?que (i think >> Farm in english) with many projects all very interesting. >> 1) I registered without difficulty. When I connect, I do not see anything >> to disconnect me, weird! >> 2) There is a topic with my login, obviously there is nothing in it, am a >> new kid, in Gambas. I do not see any button to download packages to a >> server. How to put a program there? >> >> Regards >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 27 19:06:38 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jun 2018 19:06:38 +0200 Subject: [Gambas-user] po-header.txt In-Reply-To: References: Message-ID: Le 27/06/2018 ? 18:30, CD a ?crit?: > Good evening, > I went through the Gambas3 sources: > https://gitlab.com/gambas/gambas/blob/master/app/src/gambas3/.src > I found in the code of the class CTranslation.class a procedure: > Private Sub LoadTranslation (sLang As String) > ... / ... > Header & = SubstHeader (File.Load ("po-header.txt"), sLang) > ... / ... > I found in the sources, the file po-header.txt > https://gitlab.com/gambas/gambas/blob/master/app/src/gambas3/po-header.txt > > is this file installed with Gambas (I am in 3.11.2), and if yes where? > > regards > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Relative paths are located in the project. Look at: http://gambaswiki.org/wiki/cat/path Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Wed Jun 27 19:25:55 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 13:25:55 -0400 Subject: [Gambas-user] how to detect if a class has a .text property? Message-ID: in the following code i want to detect independent of the type if the ref obj has a input text field and are empty.. how can i do that? Public Function required(objinput As Variant) As Variant If TypeOf(objinput) = gb.String Then If Comp(objinput, "", gb.IgnoreCase) = 0 Then Return "is empty" Endif Endif If TypeOf(objinput) = gb.Class Then If Comp(objinput.Text, "", gb.IgnoreCase) = 0 Then ' <--- here the problem!!!! Return "is empty" Endif Endif Return "is not empty? could not detect any input text" end Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Wed Jun 27 18:47:17 2018 From: charlie at cogier.com (Charlie Ogier) Date: Wed, 27 Jun 2018 17:47:17 +0100 Subject: [Gambas-user] Gambas Farm In-Reply-To: <6a09bc5abce6241888203ab989d3889cb01a7a25.camel@orange.fr> References: <6a09bc5abce6241888203ab989d3889cb01a7a25.camel@orange.fr> Message-ID: <6e0b7dcf-0a16-43c7-dab4-a50b027bbe43@cogier.com> Hello Claude, "How to put a program there?"? You need to to click on the menu *Project>Publish* (Projet>Publier). Check out *15PuzzelGame* & *BarcodeCreator* that both have French Translations. Charlie --fr-- Bonjour Claude, "Comment y mettre un programme ?"? Vous devez cliquer sur le menu Projet>Publier. Regardez *15PuzzelGame* & *BarcodeCreator* qui ont tous les deux des traductions en fran?ais. Charlie On 27/06/18 17:19, CD wrote: > Hello, > in the IDE Gambas, in the tools menu there is an Item Logith?que (i > think ?Farm in english) ?with many projects all very interesting. > 1) I registered without difficulty. When I connect, I do not see > anything to disconnect me, weird! > 2) There is a topic with my login, obviously there is nothing in it, > am a new kid, in Gambas. I do not see any button to download packages > to a server. How to put a program there? > > Regards > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonio.j.teixeira at gmail.com Wed Jun 27 20:37:07 2018 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Wed, 27 Jun 2018 19:37:07 +0100 Subject: [Gambas-user] User library In-Reply-To: References: Message-ID: ?Thank you Vuott. Regards? Ant?nio Teixeira escreveu no dia quarta, 27/06/2018 ?(s) 17:22: > 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. Re: User library (vuott at tiscali.it) > 2. Re: can stored a OPENED connection object in a colletion? > (PICCORO McKAY Lenz) > 3. how to compare object type? (PICCORO McKAY Lenz) > 4. Request for accessing Gambas GitLab (Beno?t Minisini) > 5. Re: Request for accessing Gambas GitLab (PICCORO McKAY Lenz) > 6. Gambas Farm (CD) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 27 Jun 2018 14:02:38 +0200 > From: vuott at tiscali.it > To: Gambas Mailing List > Subject: Re: [Gambas-user] User library > Message-ID: > Content-Type: text/plain; charset="utf-8" > > > Hello, > "Extern" only for shared-library .so, not for gambas library > ! > bye > vuott > > Il 27.06.2018 11:19 Antonio Teixeira ha scritto: > > > Hi > everyone, > > I am trying for the first time to make a library and then > use her. > > I saw the wiki page about that but I cant to put the library > to work. > > I build a library like that: > > > > _Export _ > > _Public Sub > Main()_ > > _ Print "Hello world"_ > > _End_ > > _Public Function test() As > String_ > > _ Return "test"_ > > _End _ > > > > Defined as library, and > version is 1.0.0 > > > > On my program I defined the library in the > project/libraries > > and my code to access the function is: > > > > > _Private Extern test() In "zzzzzzz.1.0"_ > > > > _Public Sub _new()_ > > _ > Dim a As String _ > > > > _ a = test()_ > > _ _ > > _End_ > > I think the > "extern" definition isnt correct but I cant find any information about > how she must be. > > Any help please? > > Thanks in advance. > > Antonio > Teixeira > > > > Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. > Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio. > http://tisca.li/myopenjun18 > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20180627/bfffd941/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Wed, 27 Jun 2018 09:11:33 -0400 > From: PICCORO McKAY Lenz > To: Gambas Mailing List > Subject: Re: [Gambas-user] can stored a OPENED connection object in a > colletion? > Message-ID: > dhfQ9g at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > so if i made a collection of my 3 of 4 connections objects those can be > opened globally! > > how can i emulated a stored object connection that must be opened always > before running the query? > > of course without inherits, due if all my objects inherits from one that > already have opened i can use it! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : > > > Collections have only reference to objects, they do not contain objects. > > > > > > Jussi > > > > On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < > > mckaygerhard at gmail.com> wrote: > > > >> > >> i can setup and store the connection object once opened in a collection > >> of connection objects? > >> > >> i want to use a pool from configuration file! > >> > >> so can stored a OPENED connection object in a colletion? (urrently seems > >> when i used me.add the conectuion object happened closed) > >> > >> Lenz McKAY Gerardo (PICCORO) > >> http://qgqlochekone.blogspot.com > >> > >> > >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > >> > >> > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20180627/ee8ce699/attachment-0001.html > > > > ------------------------------ > > Message: 3 > Date: Wed, 27 Jun 2018 10:12:01 -0400 > From: PICCORO McKAY Lenz > To: Gambas Mailing List > Subject: [Gambas-user] how to compare object type? > Message-ID: > Aoq6Vz6iZL6FdB8bsYJ4pUg at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > i have a collection with one object! how could i compared and determine the > type of if are a class object? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20180627/a170ece0/attachment-0001.html > > > > ------------------------------ > > Message: 4 > Date: Wed, 27 Jun 2018 17:22:57 +0200 > From: Beno?t Minisini > To: user at lists.gambas-basic.org > Subject: [Gambas-user] Request for accessing Gambas GitLab > Message-ID: <3149bd32-0824-b073-5672-6513fd370d04 at gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Hi, > > Several people requested a developer access to the Gambas GitLab. > > This is usually not needed if you are just a occasional developer: just > make a merge request. > > If you really need a developer access, please explain me why. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------ > > Message: 5 > Date: Wed, 27 Jun 2018 11:42:17 -0400 > From: PICCORO McKAY Lenz > To: Gambas Mailing List > Subject: Re: [Gambas-user] Request for accessing Gambas GitLab > Message-ID: > aLeKZwQ7DXy4XQ at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > maybe the "Contribution" file must be simplified and put directly in the > README.md > > i suggest put directly in the description of the gambas gitlab project > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-27 11:22 GMT-04:00 Beno?t Minisini : > > > Hi, > > > > Several people requested a developer access to the Gambas GitLab. > > > > This is usually not needed if you are just a occasional developer: just > > make a merge request. > > > > If you really need a developer access, please explain me why. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20180627/9c52835f/attachment-0001.html > > > > ------------------------------ > > Message: 6 > Date: Wed, 27 Jun 2018 18:19:06 +0200 > From: CD > To: user at lists.gambas-basic.org > Subject: [Gambas-user] Gambas Farm > Message-ID: <6a09bc5abce6241888203ab989d3889cb01a7a25.camel at orange.fr> > Content-Type: text/plain; charset="utf-8" > > Hello, > in the IDE Gambas, in the tools menu there is an Item Logith?que (i think > Farm > in english) with many projects all very interesting. > 1) I registered without difficulty. When I connect, I do not see anything > to > disconnect me, weird! > 2) There is a topic with my login, obviously there is nothing in it, am a > new > kid, in Gambas. I do not see any button to download packages to a server. > How to > put a program there? > > Regards > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20180627/0d648d5e/attachment.html > > > > ------------------------------ > > Subject: Digest Footer > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ------------------------------ > > End of User Digest, Vol 9, Issue 106 > ************************************ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Wed Jun 27 20:51:23 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Wed, 27 Jun 2018 20:51:23 +0200 Subject: [Gambas-user] =?utf-8?q?how_to_detect_if_a_class_has_a_=2Etext_p?= =?utf-8?q?roperty=3F?= In-Reply-To: References: Message-ID: <54bc7e19ef8d550be7a36592df645e51@tiscali.it> ...by using ".Symbols" property of "Class" Class. Ad exemplum: Dim cl As Class Dim s As String cl = Class.Load("Button") For Each s In cl.Symbols Print s Next + + + + + + + + + vuott Il 27.06.2018 19:25 PICCORO McKAY Lenz ha scritto: > in the following code i want to detect independent of the type if the ref obj has a input text field and are empty.. > > how can i do that? > > Public Function required(objinput As Variant) As Variant > > If TypeOf(objinput) = gb.String Then > If Comp(objinput, "", gb.IgnoreCase) = 0 Then > Return "is empty" > Endif > Endif > > If TypeOf(objinput) = gb.Class Then > If Comp(objinput.Text, "", gb.IgnoreCase) = 0 Then ' Return "is empty" > Endif > Endif > > Return "is not empty? could not detect any input text" end > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com [1] Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! SCOPRI DI PIU? http://tisca.li/MailHPMobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jun 27 21:09:58 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Jun 2018 21:09:58 +0200 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> Message-ID: <5083ade1-a3bf-5e3b-6739-40d26d33dd22@gmail.com> Le 20/06/2018 ? 18:36, herberth guzman a ?crit?: > Hi Benoit > > I tried the system tray in ubuntu 18.04 in 32bits and 64 bits > > in 32 bits if it works, in ubuntu 64 bits it does not work. > > If it works in 32 bits, do you think it can get to work in 64 bits ...? > > > Regards > I guess "I tried the system tray" means that you tried to display an icon in the systray bar with a Gambas program? I'm using Ubuntu 18.04 64 bits, and it works perfectly with KDE, which use the DBus icon protocol, which, alas, is actually the DBus KDE icon protocol, as KDE, Gnome and Ubuntu are bad enough to not be able to agree on a standard Dbus Icon protocol! So how does it work? When you want to create a system tray icon, you have to use the 'gb.gui.trayicon" component. That component does the following: 1) It loads the 'gb.dbus' component. 2) It uses DBus to know if there is a DBus system tray running on your desktop. 3) If there is, then it loads the 'gb.dbus.trayicon' component, and uses it to implement the TrayIcon class. Beware that the component has to adapt to the current desktop, because they weren't able to agree to the same DBus protocol, as I said before! 4) Otherwise, it uses the old X11 system tray protocol implemented inside each GUI component; their Trayicon classes using the same interface so that it is transparent for you. So: You must first check if your desktop implements a DBus system tray. The test is the following: Try DBus["org.kde.StatusNotifierWatcher"]["/StatusNotifierWatcher", "org.kde.StatusNotifierWatcher"].IsStatusNotifierHostRegistered If the previous fails or returns FALSE, then we suppose that there is no DBus System tray. In that case, you have to check if your desktop implements an X11 system tray. The old desktops usually only use it, the new one using the Dbus protocol (and sometimes a X11 backward-compatible system tray) If you found a DBus system tray, then you have to check your desktop type, which is the contents of the XDG_CURRENT_DESKTOP environment variable. If that variable is not KDE, then we assume that the Ubuntu DBus system tray protocol is used (aka "indicators"). Otherwise we assume the KDE system tray protocol. They are not compatible. (Again, big thumbs up for that!) In all that mess, there is no distinction between 32 bits and 64 bits. Try to retrieve all the previously described information so that we can guess what exactly happens on your system. Regards, -- Beno?t Minisini From mckaygerhard at gmail.com Wed Jun 27 21:19:46 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 15:19:46 -0400 Subject: [Gambas-user] systray does NOT work with gb-qt5 ubuntu 18.04 In-Reply-To: <5083ade1-a3bf-5e3b-6739-40d26d33dd22@gmail.com> References: <034ac9ad-83be-8298-0496-2b9d186b273f@gmail.com> <2e9f3837-9f6c-36e0-2ce1-08a7100a7408@gmail.com> <5083ade1-a3bf-5e3b-6739-40d26d33dd22@gmail.com> Message-ID: 2018-06-27 15:09 GMT-04:00 Beno?t Minisini : You must first check if your desktop implements a DBus system tray. The > test is the following: > if i not have any desktop environment and not used dbus protocol a x11 old behaviour are used but: > In that case, you have to check if your desktop implements an X11 system > tray. The old desktops usually only use it, the new one using the Dbus > protocol (and sometimes a X11 backward-compatible system tray) > but there's no desktop! i mean we want to create a new systray area! how to do? > XDG_CURRENT_DESKTOP environment variable. > set to a custom openbox in my case! no panel or systray area was starte i want to start by myselft! *so seems the icon tray of gambas relies on a previously existing area?* -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 27 21:24:24 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 15:24:24 -0400 Subject: [Gambas-user] how to detect if a class has a .text property? In-Reply-To: <54bc7e19ef8d550be7a36592df645e51@tiscali.it> References: <54bc7e19ef8d550be7a36592df645e51@tiscali.it> Message-ID: 2018-06-27 14:51 GMT-04:00 : > cl = Class.Load("Button") > umm i assumed that cl it's equal to my already passed object a argument right? > > For Each s In cl.Symbols > Print s > Next > so then one of thos will print "Text" i guess? > + + + + + + + + + > vuott > > Il 27.06.2018 19:25 PICCORO McKAY Lenz ha scritto: > > in the following code i want to detect independent of the type if the ref > obj has a input text field and are empty.. > > how can i do that? > > Public Function required(objinput As Variant) As Variant > > If TypeOf(objinput) = gb.String Then > If Comp(objinput, "", gb.IgnoreCase) = 0 Then > Return "is empty" > Endif > Endif > > If TypeOf(objinput) = gb.Class Then > If Comp(objinput.Text, "", gb.IgnoreCase) = 0 Then ' > Return "is empty" > Endif > Endif > > Return "is not empty? could not detect any input text" > end > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > > > Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. > Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! > SCOPRI DI PIU? http://tisca.li/MailHPMobile > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jun 27 22:36:42 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 27 Jun 2018 16:36:42 -0400 Subject: [Gambas-user] gb.eval vs gb.pcre, ?? Message-ID: gb.eval and gb.pcre has too similar descriptions in some languajes specially in spanish, that can confuses the user... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 27 22:48:19 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 27 Jun 2018 23:48:19 +0300 Subject: [Gambas-user] User library In-Reply-To: References: Message-ID: Project properties --> Libraries --> Add Jussi On Wed, Jun 27, 2018 at 12:19 PM, Antonio Teixeira < antonio.j.teixeira at gmail.com> wrote: > Hi everyone, > > I am trying for the first time to make a library and then use her. > I saw the wiki page about that but I cant to put the library to work. > I build a library like that: > > *Export * > *Public Sub Main()* > * Print "Hello world"* > *End* > *Public Function test() As String* > * Return "test"* > *End * > > Defined as library, and version is 1.0.0 > > On my program I defined the library in the project/libraries > and my code to access the function is: > > *Private Extern test() In "zzzzzzz.1.0"* > > *Public Sub _new()* > * Dim a As String * > > * a = test()* > > *End* > > I think the "extern" definition isnt correct but I cant find any > information about how she must be. > > Any help please? > > Thanks in advance. > > > Antonio Teixeira > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 27 22:50:37 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 27 Jun 2018 23:50:37 +0300 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: Your English makes no sense. If you destroy object, you do nothing with the reference. So, they must have same scope. Jussi On Wed, Jun 27, 2018 at 4:11 PM, PICCORO McKAY Lenz wrote: > so if i made a collection of my 3 of 4 connections objects those can be > opened globally! > > how can i emulated a stored object connection that must be opened always > before running the query? > > of course without inherits, due if all my objects inherits from one that > already have opened i can use it! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : > >> Collections have only reference to objects, they do not contain objects. >> >> >> Jussi >> >> On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> >>> i can setup and store the connection object once opened in a collection >>> of connection objects? >>> >>> i want to use a pool from configuration file! >>> >>> so can stored a OPENED connection object in a colletion? (urrently seems >>> when i used me.add the conectuion object happened closed) >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 27 22:53:33 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 27 Jun 2018 23:53:33 +0300 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: Message-ID: Just? Print iif(bVar, "True", "False") Jussi On Wed, Jun 27, 2018 at 7:57 PM, PICCORO McKAY Lenz wrote: > > if my var are set to false and i do Print var outputs nothig.. > > does the print can be override to reimplement this? or inherits to provide > once enhanced? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Jun 27 23:06:42 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 28 Jun 2018 00:06:42 +0300 Subject: [Gambas-user] how to compare object type? In-Reply-To: References: Message-ID: Object.Class(hMyObject) ? Or maybe? If hMyObject Is MyClass Then ... Not sure what you mean. Jussi On Wed, Jun 27, 2018 at 5:12 PM, PICCORO McKAY Lenz wrote: > i have a collection with one object! how could i compared and determine > the type of if are a class object? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Thu Jun 28 01:09:37 2018 From: vuott at tiscali.it (vuott at tiscali.it) Date: Thu, 28 Jun 2018 01:09:37 +0200 Subject: [Gambas-user] =?utf-8?q?how_to_detect_if_a_class_has_a_=2Etext_p?= =?utf-8?q?roperty=3F?= In-Reply-To: References: <54bc7e19ef8d550be7a36592df645e51@tiscali.it> Message-ID: <7cb1f0d2364228d203a255a6c0504e1c@tiscali.it> Why do not you try them ? :-) Il 27.06.2018 21:24 PICCORO McKAY Lenz ha scritto: > 2018-06-27 14:51 GMT-04:00 : > >> cl = Class.Load("Button") > > umm i assumed that cl it's equal to my already passed object a argument right? > >> For Each s In cl.Symbols >> Print s >> Next > > so then one of thos will print "Text" i guess? > > + + + + + + + + + > vuott 0ff 2px solid; margin-left: 5px; width: 100%;"> >> >> in the following code i want to detect independent of the type if the ref obj has a input text field and are empty.. >> >> how can i do that? >> >> Public Function required(objinput As Variant) As Variant >> >> If TypeOf(objinput) = gb.String Then >> If Comp(objinput, "", gb.IgnoreCase) = 0 Then >> Return "is empty" >> Endif >> Endif >> >> If TypeOf(objinput) = gb.Class Then >> If Comp(objinput.Text, "", gb.IgnoreCase) = 0 Then ' Return "is empty" >> Endif >> Endif >> >> Return "is not empty? could not detect any input text" end >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com [1] >> >> Con MyOpen hai Giga, SMS e i minuti che vuoi da 3EUR al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10EUR di credito omaggio! >> SCOPRI DI PIU' http://tisca.li/MailHPMobile [2] >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net [3] ]---- Con MyOpen hai Giga, SMS e i minuti che vuoi da 3? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 10? di credito omaggio! SCOPRI DI PIU? http://tisca.li/MailHPMobile -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Jun 28 14:47:16 2018 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 28 Jun 2018 14:47:16 +0200 Subject: [Gambas-user] Bold and Italic fonts in LCDLabel, question Message-ID: I have never used LCDLabel, but it seems from the image that it is possible to have Bold and Italic fonts. If that's the case, it doesn't work for me. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 28 14:59:31 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 28 Jun 2018 08:59:31 -0400 Subject: [Gambas-user] how to compare object type? In-Reply-To: References: Message-ID: the Object.Class(hMyObject) got a warning but seems does not works at "if" instruction.. i'll try later others based on.. noted that the wiki need more (many more) examples... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-27 17:06 GMT-04:00 Jussi Lahtinen : > Object.Class(hMyObject) ? > > Or maybe? > > If hMyObject Is MyClass Then ... > > Not sure what you mean. > > > Jussi > > On Wed, Jun 27, 2018 at 5:12 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> i have a collection with one object! how could i compared and determine >> the type of if are a class object? >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 28 15:01:12 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 28 Jun 2018 09:01:12 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: Message-ID: 2018-06-27 16:53 GMT-04:00 Jussi Lahtinen : > Print iif(bVar, "True", "False") > the idea its a simple way just like php does with! > > > Jussi > > > > On Wed, Jun 27, 2018 at 7:57 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> >> if my var are set to false and i do Print var outputs nothig.. >> >> does the print can be override to reimplement this? or inherits to >> provide once enhanced? >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 28 15:04:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 28 Jun 2018 09:04:21 -0400 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: 2018-06-27 16:50 GMT-04:00 Jussi Lahtinen : > Your English makes no sense. > sorry last line was misctyped! > If you destroy object, you do nothing with the reference. So, they must > have same scope. > i not taking about destroyng object but if the created object are on the part that stored in the collection this makes sense.. so then how can avoid that behaviour? i want something like php does with arrays ... ver very flexible! > > > Jussi > > On Wed, Jun 27, 2018 at 4:11 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> so if i made a collection of my 3 of 4 connections objects those can be >> opened globally! >> >> how can i emulated a stored object connection that must be opened always >> before running the query? >> >> of course without inherits, due if all my objects inherits from one that >> already have opened i can use it! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : >> >>> Collections have only reference to objects, they do not contain objects. >>> >>> >>> Jussi >>> >>> On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < >>> mckaygerhard at gmail.com> wrote: >>> >>>> >>>> i can setup and store the connection object once opened in a collection >>>> of connection objects? >>>> >>>> i want to use a pool from configuration file! >>>> >>>> so can stored a OPENED connection object in a colletion? (urrently >>>> seems when i used me.add the conectuion object happened closed) >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Thu Jun 28 15:06:42 2018 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Thu, 28 Jun 2018 09:06:42 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: Message-ID: Hello, Just try this: Print Str(bVar) Olivier Cruilles > Le 28 juin 2018 ? 09:01, PICCORO McKAY Lenz a ?crit : > > 2018-06-27 16:53 GMT-04:00 Jussi Lahtinen : >> Print iif(bVar, "True", "False") > > the idea its a simple way just like php does with! > >> >> >> Jussi >> >> >> >>> On Wed, Jun 27, 2018 at 7:57 PM, PICCORO McKAY Lenz wrote: >>> >>> if my var are set to false and i do Print var outputs nothig.. >>> >>> does the print can be override to reimplement this? or inherits to provide once enhanced? >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu Jun 28 15:13:53 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 28 Jun 2018 15:13:53 +0200 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: Message-ID: <20180628131353.GM1010@highrise.localdomain> On Wed, 27 Jun 2018, PICCORO McKAY Lenz wrote: > if my var are set to false and i do Print var outputs nothig.. > Are you sure? I get $ cat false.gbs3 #!/usr/bin/env gbs3 Public Sub Main() Dim var As Boolean Print var End $ ./false.gbs3 False Print calls Str$() to convert values to strings and Str$(False) is the string "False", it's not empty. You or your Print seems to call CStr() for whatever reason which converts the Boolean False to the Null string, as that is the only falsy string in Gambas. Instead of Jussi's suggestion with IIf() you can also use Str$(), if you really just want "True" or "False" to be printed and not some other strings. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sharon at 455.co.il Thu Jun 28 16:35:31 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 28 Jun 2018 17:35:31 +0300 Subject: [Gambas-user] Watch inotify Message-ID: <20180628143336.M4230@455.co.il> Hello ' Gambas module file Public hWatch As Watch Public Sub Main() hWatch = New Watch("/home/sharon/", True, -1) As "sharon" End Public Sub sharon_Open() Print "open file" End How can I know the name of the file that caused the event From jussi.lahtinen at gmail.com Thu Jun 28 16:43:31 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 28 Jun 2018 17:43:31 +0300 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: I can't understand your English. Collection does not store object, it stores object reference. Thus if you are out of scope of the object, the collection contains useless reference. So, with correct scope, there shouldn't be any problems. Maybe you should show your code, that we could understand what you are trying to achieve. Jussi On Thu, Jun 28, 2018 at 4:04 PM, PICCORO McKAY Lenz wrote: > 2018-06-27 16:50 GMT-04:00 Jussi Lahtinen : > >> Your English makes no sense. >> > sorry last line was misctyped! > > > >> If you destroy object, you do nothing with the reference. So, they must >> have same scope. >> > i not taking about destroyng object but if the created object are on the > part that stored in the collection this makes sense.. > > so then how can avoid that behaviour? > > i want something like php does with arrays ... ver very flexible! > > > > >> >> >> Jussi >> >> On Wed, Jun 27, 2018 at 4:11 PM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> so if i made a collection of my 3 of 4 connections objects those can be >>> opened globally! >>> >>> how can i emulated a stored object connection that must be opened always >>> before running the query? >>> >>> of course without inherits, due if all my objects inherits from one that >>> already have opened i can use it! >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : >>> >>>> Collections have only reference to objects, they do not contain objects. >>>> >>>> >>>> Jussi >>>> >>>> On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < >>>> mckaygerhard at gmail.com> wrote: >>>> >>>>> >>>>> i can setup and store the connection object once opened in a >>>>> collection of connection objects? >>>>> >>>>> i want to use a pool from configuration file! >>>>> >>>>> so can stored a OPENED connection object in a colletion? (urrently >>>>> seems when i used me.add the conectuion object happened closed) >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Thu Jun 28 16:54:17 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 28 Jun 2018 16:54:17 +0200 Subject: [Gambas-user] Watch inotify In-Reply-To: <20180628143336.M4230@455.co.il> References: <20180628143336.M4230@455.co.il> Message-ID: <20180628145417.GN1010@highrise.localdomain> On Thu, 28 Jun 2018, Mayost Sharon wrote: > Hello > > > ' Gambas module file > > Public hWatch As Watch > > Public Sub Main() > > hWatch = New Watch("/home/sharon/", True, -1) As "sharon" > > End > > Public Sub sharon_Open() > > Print "open file" > End > > > How can I know the name of the file that caused the event > The Watch class has a bunch of static properties which, during events, are magically filled with the relevant information. To get the name of the file use Public Sub sharon_Open() Print "open file";; Watch.Name End This is also mentioned in the docs [1] (perhaps not clear enough?): The static properties are used to store data from the kernel during event management. Use them only in event handlers. [ I'm actually not sure why I did that. Static properties for event data are a common thing in Gambas (think Mouse.X or Highlight.Text in gb.qt4.ext) but I could as well have used dynamic properties of the Watch *object* which is stored Last, for better encapsulation. ] Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb.inotify/watch -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From sharon at 455.co.il Thu Jun 28 17:27:50 2018 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 28 Jun 2018 18:27:50 +0300 Subject: [Gambas-user] Watch inotify directories recursively Message-ID: <20180628152349.M92000@455.co.il> Hello Is there a possibility of directories recursively I see API documentation -r|--recursive Watch directories recursively. From claude.dessere at orange.fr Thu Jun 28 17:28:37 2018 From: claude.dessere at orange.fr (CD) Date: Thu, 28 Jun 2018 17:28:37 +0200 Subject: [Gambas-user] Gambas Farm Message-ID: <9e771da1d8f42f9403b4798cd6b10023fb74d854.camel@orange.fr> yes, you already explained this to me a few days ago. it was the Date: Mon, 18 Jun 2018 13:06:36 +0200 it was very clear, thanks 1 ?) you do not answer my first question: How do you log out of Gambas Farm after logging in? 2 ?) Maybe I should have said upload (in French it's the same word for up and down load) so how do I upload a program to the repository and make it available to other Gambas users? cordially -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Thu Jun 28 17:39:33 2018 From: claude.dessere at orange.fr (CD) Date: Thu, 28 Jun 2018 17:39:33 +0200 Subject: [Gambas-user] Gambas farm Message-ID: OK, i just find the answer of Charlie Ogier charlie at cogier.com Thanks Charlie it is understood : Project/Publish and how disconnect from the farm??? -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 28 17:41:43 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 28 Jun 2018 17:41:43 +0200 Subject: [Gambas-user] Gambas Farm In-Reply-To: <9e771da1d8f42f9403b4798cd6b10023fb74d854.camel@orange.fr> References: <9e771da1d8f42f9403b4798cd6b10023fb74d854.camel@orange.fr> Message-ID: Le 28/06/2018 ? 17:28, CD a ?crit?: > yes, you already explained this to me a few days ago. > it was the Date: Mon, 18 Jun 2018 13:06:36 +0200 > it was very clear, thanks > > 1 ?) you do not answer my first question: > How do you log out of Gambas Farm after logging in? You are not actually log in at all. It's just the IDE that remembers the identity (login + password) sent to the software farm server at each request. > > 2 ?) Maybe I should have said upload (in French it's the same word for > up and down load) so how do I upload a program to the repository and > make it available to other Gambas users? > > cordially > IDE menus -> Project -> Publish... -- Beno?t Minisini From taboege at gmail.com Thu Jun 28 17:44:26 2018 From: taboege at gmail.com (Tobias Boege) Date: Thu, 28 Jun 2018 17:44:26 +0200 Subject: [Gambas-user] Watch inotify directories recursively In-Reply-To: <20180628152349.M92000@455.co.il> References: <20180628152349.M92000@455.co.il> Message-ID: <20180628154425.GO1010@highrise.localdomain> On Thu, 28 Jun 2018, Mayost Sharon wrote: > Hello > > Is there a possibility of directories recursively > > I see API documentation > -r|--recursive Watch directories recursively. > Which documentation is that? Certainly not gb.inotify or the inotify manpage. To watch a directory recursively, you must create new watches for all its contents. And then you have to react to new files and directories being created inside the hierarchy, by adding further watches. Also note that notification is asynchronous and the kernel does not make any promises to notify you "quickly enough". It is entirely possible that the following happens: 1. you want to watch directory x/ recursively 2. user creates directory x/y 3. user creates file x/y/z 4. user deletes file x/y/z 5. user deletes directory x/y 6. kernel decides to notify you of the event in step 2 When you handle the event produced in step 6, you will get a Watch.Name which actually doesn't exist anymore (or might have been re-created in the meantime!). You will also not have a chance to see the creation of x/y/z because its containing directory was already deleted before you were able to install a watch for it. Everyone using gb.inotify should read the "Limitations and caveats" section of the manpage. (I'll add that note to the documentation in a minute.) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From claude.dessere at orange.fr Thu Jun 28 17:56:32 2018 From: claude.dessere at orange.fr (CD) Date: Thu, 28 Jun 2018 17:56:32 +0200 Subject: [Gambas-user] po-header.txt Message-ID: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> so Beno?t you mean I will not find the file po-header.txt on my hard drive because it is compiled with the program Gambas3 ? regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jun 28 19:17:04 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 28 Jun 2018 19:17:04 +0200 Subject: [Gambas-user] po-header.txt In-Reply-To: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> References: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> Message-ID: Le 28/06/2018 ? 17:56, CD a ?crit?: > so Beno?t you mean I will not find the file po-header.txt on my hard > drive because it is compiled with the program Gambas3 ? > > regards > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Yes. -- Beno?t Minisini From mckaygerhard at gmail.com Thu Jun 28 23:27:43 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 28 Jun 2018 17:27:43 -0400 Subject: [Gambas-user] po-header.txt In-Reply-To: References: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> Message-ID: 2018-06-28 13:17 GMT-04:00 Beno?t Minisini : > Le 28/06/2018 ? 17:56, CD a ?crit : > >> so Beno?t you mean I will not find the file po-header.txt on my hard >> drive because it is compiled with the program Gambas3 ? >> > err benoit who we can make that some files will be included into the binary product? i noted not all files are compiled into!! > >> regards >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > Yes. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 28 23:31:33 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 28 Jun 2018 17:31:33 -0400 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: 2018-06-28 10:43 GMT-04:00 Jussi Lahtinen : > I can't understand your English. > Collection does not store object, it stores object reference. Thus if you > are out of scope of the object, the collection contains useless reference. > So, with correct scope, there shouldn't be any problems. > well it's hard to explain, but in php i can "store" or "transport" and object using arrays.. > Maybe you should show your code, that we could understand what you are > trying to achieve. > well i must chage a little to release portion of code from the job.. > > > Jussi > > On Thu, Jun 28, 2018 at 4:04 PM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> 2018-06-27 16:50 GMT-04:00 Jussi Lahtinen : >> >>> Your English makes no sense. >>> >> sorry last line was misctyped! >> >> >> >>> If you destroy object, you do nothing with the reference. So, they must >>> have same scope. >>> >> i not taking about destroyng object but if the created object are on the >> part that stored in the collection this makes sense.. >> >> so then how can avoid that behaviour? >> >> i want something like php does with arrays ... ver very flexible! >> >> >> >> >>> >>> >>> Jussi >>> >>> On Wed, Jun 27, 2018 at 4:11 PM, PICCORO McKAY Lenz < >>> mckaygerhard at gmail.com> wrote: >>> >>>> so if i made a collection of my 3 of 4 connections objects those can be >>>> opened globally! >>>> >>>> how can i emulated a stored object connection that must be opened >>>> always before running the query? >>>> >>>> of course without inherits, due if all my objects inherits from one >>>> that already have opened i can use it! >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : >>>> >>>>> Collections have only reference to objects, they do not contain >>>>> objects. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < >>>>> mckaygerhard at gmail.com> wrote: >>>>> >>>>>> >>>>>> i can setup and store the connection object once opened in a >>>>>> collection of connection objects? >>>>>> >>>>>> i want to use a pool from configuration file! >>>>>> >>>>>> so can stored a OPENED connection object in a colletion? (urrently >>>>>> seems when i used me.add the conectuion object happened closed) >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jun 28 23:35:10 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 28 Jun 2018 17:35:10 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: <20180628131353.GM1010@highrise.localdomain> References: <20180628131353.GM1010@highrise.localdomain> Message-ID: 2018-06-28 9:13 GMT-04:00 Tobias Boege : > Are you sure? I get > > $ cat false.gbs3 > #!/usr/bin/env gbs3 > > Public Sub Main() > Dim var As Boolean > Print var > End > $ ./false.gbs3 > False > i get only no out! i'm using gambas 3.10 maybe a bug!? > Print calls Str$() to convert values to strings and Str$(False) is the > string "False", it's not empty. You or your Print seems to call CStr() > for whatever reason which converts the Boolean False to the Null string, > as that is the only falsy string in Gambas. > i still not override or changed the print ! i'm just use directly > Instead of Jussi's suggestion with IIf() you can also use Str$(), > if you really just want "True" or "False" to be printed and not some > other strings. > well seems to work, but i want something more direct, so them how to override the print rule/code/class ? > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 00:01:50 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 28 Jun 2018 18:01:50 -0400 Subject: [Gambas-user] Gambas Farm In-Reply-To: References: <9e771da1d8f42f9403b4798cd6b10023fb74d854.camel@orange.fr> Message-ID: 2018-06-28 11:41 GMT-04:00 Beno?t Minisini : You are not actually log in at all. It's just the IDE that remembers the > identity (login + password) sent to the software farm server at each > request. > interesting! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Jun 29 00:05:08 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 29 Jun 2018 01:05:08 +0300 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: If I understand you correctly, then there is bug in your code and the problem is not due using collection. If however you have scope problem you need object serialization. I don't think PHP does that automatically either. Jussi On Fri, Jun 29, 2018 at 12:31 AM, PICCORO McKAY Lenz wrote: > 2018-06-28 10:43 GMT-04:00 Jussi Lahtinen : > >> I can't understand your English. >> Collection does not store object, it stores object reference. Thus if you >> are out of scope of the object, the collection contains useless reference. >> So, with correct scope, there shouldn't be any problems. >> > well it's hard to explain, but in php i can "store" or "transport" and > object using arrays.. > > > >> Maybe you should show your code, that we could understand what you are >> trying to achieve. >> > well i must chage a little to release portion of code from the job.. > > > >> >> >> Jussi >> >> On Thu, Jun 28, 2018 at 4:04 PM, PICCORO McKAY Lenz < >> mckaygerhard at gmail.com> wrote: >> >>> 2018-06-27 16:50 GMT-04:00 Jussi Lahtinen : >>> >>>> Your English makes no sense. >>>> >>> sorry last line was misctyped! >>> >>> >>> >>>> If you destroy object, you do nothing with the reference. So, they must >>>> have same scope. >>>> >>> i not taking about destroyng object but if the created object are on the >>> part that stored in the collection this makes sense.. >>> >>> so then how can avoid that behaviour? >>> >>> i want something like php does with arrays ... ver very flexible! >>> >>> >>> >>> >>>> >>>> >>>> Jussi >>>> >>>> On Wed, Jun 27, 2018 at 4:11 PM, PICCORO McKAY Lenz < >>>> mckaygerhard at gmail.com> wrote: >>>> >>>>> so if i made a collection of my 3 of 4 connections objects those can >>>>> be opened globally! >>>>> >>>>> how can i emulated a stored object connection that must be opened >>>>> always before running the query? >>>>> >>>>> of course without inherits, due if all my objects inherits from one >>>>> that already have opened i can use it! >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : >>>>> >>>>>> Collections have only reference to objects, they do not contain >>>>>> objects. >>>>>> >>>>>> >>>>>> Jussi >>>>>> >>>>>> On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < >>>>>> mckaygerhard at gmail.com> wrote: >>>>>> >>>>>>> >>>>>>> i can setup and store the connection object once opened in a >>>>>>> collection of connection objects? >>>>>>> >>>>>>> i want to use a pool from configuration file! >>>>>>> >>>>>>> so can stored a OPENED connection object in a colletion? (urrently >>>>>>> seems when i used me.add the conectuion object happened closed) >>>>>>> >>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>> http://qgqlochekone.blogspot.com >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jun 29 00:09:18 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 29 Jun 2018 00:09:18 +0200 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: <20180628131353.GM1010@highrise.localdomain> Message-ID: <20180628220918.GP1010@highrise.localdomain> On Thu, 28 Jun 2018, PICCORO McKAY Lenz wrote: > > Instead of Jussi's suggestion with IIf() you can also use Str$(), > > if you really just want "True" or "False" to be printed and not some > > other strings. > > > well seems to work, but i want something more direct, > > so them how to override the print rule/code/class ? > I believe it's called SUBR_print [1]. It's deeply wired into the interpreter because it's a keyword in the Gambas language. It's not polymorphic and gives you nothing to hook into. It really just (locale-awarely) coerces its arguments to string using Str$(). I don't see how you could modify its implementation without having to ship your own Gambas to your users. I also think wanting to change the Print instruction is misguided. Just add a Print() method to your class, which formats it in whatever fancy way you need, and call that. Regards, Tobi [1] https://gitlab.com/gambas/gambas/blob/master/main/gbx/gbx_subr_file.c#L278 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From g4mba5 at gmail.com Fri Jun 29 00:41:49 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 29 Jun 2018 00:41:49 +0200 Subject: [Gambas-user] News about the new just-in-time compiler Message-ID: Hi, Here is a few news about the new just-in-compiler... 1) Almost everything is supported, and seem to work. Bigger test are needed now. 2) The following are not implemented, and may never be implemented for different reasons: - Functions with a variable number of arguments. - Arguments passed by reference with ByRef. - Functions used as extern callbacks. 3) Extern functions calls are optimized: they are directly called from the JIT code. But this has not been tested yet! 4) Not all mathematical functions are correctly implemented yet. 5) clang may be supported instead of gcc. This is something to test before finding a way to dynamically detect which compiler to use. 6) I introduced a new keyword, UNSAFE. You use it with the FAST keyword. When a function is declared "FAST UNSAFE", then it is just-in-time compiled, but all the safety checks are removed (null object, division by zero, out of array bounds...). It allows you to speed up the code a little bit, when you are sure it won't do illegal things. And if it does anyway, you will have memory corruption and/or segmentation fault. Of course, the keyword can be used at the class level. Enjoy! -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Jun 29 02:27:48 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 29 Jun 2018 03:27:48 +0300 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: References: Message-ID: What is opcode 0600? Byref? I'm thinking a way to test the JIT with my GambasTester. If only there were #define or even one user defined preprocessor variable... Jussi On Fri, Jun 29, 2018 at 1:41 AM, Beno?t Minisini wrote: > Hi, > > Here is a few news about the new just-in-compiler... > > 1) Almost everything is supported, and seem to work. Bigger test are > needed now. > > 2) The following are not implemented, and may never be implemented for > different reasons: > > - Functions with a variable number of arguments. > > - Arguments passed by reference with ByRef. > > - Functions used as extern callbacks. > > 3) Extern functions calls are optimized: they are directly called from the > JIT code. But this has not been tested yet! > > 4) Not all mathematical functions are correctly implemented yet. > > 5) clang may be supported instead of gcc. This is something to test before > finding a way to dynamically detect which compiler to use. > > 6) I introduced a new keyword, UNSAFE. You use it with the FAST keyword. > > When a function is declared "FAST UNSAFE", then it is just-in-time > compiled, but all the safety checks are removed (null object, division by > zero, out of array bounds...). > > It allows you to speed up the code a little bit, when you are sure it > won't do illegal things. > > And if it does anyway, you will have memory corruption and/or segmentation > fault. > > Of course, the keyword can be used at the class level. > > Enjoy! > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jun 29 02:35:26 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 29 Jun 2018 02:35:26 +0200 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: References: Message-ID: Le 29/06/2018 ? 02:27, Jussi Lahtinen a ?crit?: > What is opcode 0600? Byref? Yes. > I'm thinking a way to test the JIT with my GambasTester. If only there > were #define or even one user defined preprocessor variable... > > > Jussi > I plan to add flags to the interpreter to disable the JIT compiler. -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Jun 29 03:10:32 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 29 Jun 2018 04:10:32 +0300 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: References: Message-ID: If I comment out byref test, then JIT crashes leaving nothing to the gb.c. Not very helpful... anyway attached. Maybe you have some clever way to debug this. Jussi On Fri, Jun 29, 2018 at 3:35 AM, Beno?t Minisini wrote: > Le 29/06/2018 ? 02:27, Jussi Lahtinen a ?crit : > >> What is opcode 0600? Byref? >> > > Yes. > > I'm thinking a way to test the JIT with my GambasTester. If only there >> were #define or even one user defined preprocessor variable... >> >> >> Jussi >> >> > I plan to add flags to the interpreter to disable the JIT compiler. > > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.9.49.tar.gz Type: application/gzip Size: 25926 bytes Desc: not available URL: From g4mba5 at gmail.com Fri Jun 29 11:04:42 2018 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 29 Jun 2018 11:04:42 +0200 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: References: Message-ID: Le 29/06/2018 ? 03:10, Jussi Lahtinen a ?crit?: > If I comment out byref test, then JIT crashes leaving nothing to the > gb.c. Not very helpful... anyway attached. Maybe you have some clever > way to debug this. > The clever way is named 'gdb'. I forgot to say that structures and static arrays are not yet implemented too! It makes crash the JIT translator. -- Beno?t Minisini From claude.dessere at orange.fr Fri Jun 29 11:28:11 2018 From: claude.dessere at orange.fr (CD) Date: Fri, 29 Jun 2018 11:28:11 +0200 Subject: [Gambas-user] Additional files In-Reply-To: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> References: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> Message-ID: Hello, in the Installation Package generator, in step 8: Additional files, I do not understand this sentence: "The additional files must be located in the current Project folder, corresponding to the project's .hidden directory on the disk" does that mean "The additional files must be located in the current Project folder, at the same level as the .hidden directory" or something else? In any case what I see, through the tests that I have done is that 1) To make the packages the extra files must be in the .hidden directory 2) to debug the code and for the executable they must be in the project directory. notwithstanding the fact that "file copy -> source of errors ..." did I understand well? -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Fri Jun 29 11:40:29 2018 From: claude.dessere at orange.fr (CD) Date: Fri, 29 Jun 2018 11:40:29 +0200 Subject: [Gambas-user] Additional files for Reading/Writing In-Reply-To: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> References: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> Message-ID: <741989dd7a2c4185a1889103ba0f6d28458b4d86.camel@orange.fr> Hello, in an application, I have to read files on the disk, but I need the user to edit these files! I found a solution : Create a directory on behalf of the application /home/User/.config/gambas3/MonAppli and install there, the so-called files. Is there another solution, I would not have thought of? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jun 29 12:12:29 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 29 Jun 2018 12:12:29 +0200 Subject: [Gambas-user] Additional files for Reading/Writing In-Reply-To: <741989dd7a2c4185a1889103ba0f6d28458b4d86.camel@orange.fr> References: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> <741989dd7a2c4185a1889103ba0f6d28458b4d86.camel@orange.fr> Message-ID: 2018-06-29 11:40 GMT+02:00 CD : > Hello, > > in an application, I have to read files on the disk, > but I need the user to edit these files! > > I found a solution : > Create a directory on behalf of the application > /home/User/.config/gambas3/MonAppli > and install there, the so-called files. > > Is there another solution, I would not have thought of? > > I'm not sure I understood the question. But this is the general rule: If I have a read-only file, I can leave it in the project in the Data folder. If I need a read-write file, I can use an ini file with Temp$ which I will then save with Settings. See: http://gambaswiki.org/wiki/lang/temp http://gambaswiki.org/wiki/comp/gb.settings Gianluigi > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 14:32:51 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 08:32:51 -0400 Subject: [Gambas-user] can stored a OPENED connection object in a colletion? In-Reply-To: References: Message-ID: 2018-06-28 18:05 GMT-04:00 Jussi Lahtinen : > If I understand you correctly, then there is bug in your code and the > problem is not due using collection. > umm now thinking when i manage the configuration file got that: gb.settings: warning: unable to save settings: /home/remoto/Devel/libcomun/libmngr/exdatabase.conf: Settings .Save.204 Unable to save settings: Settings.WriteValue.563 Type mismatch: wanted Object, got Pointer instead > If however you have scope problem you need object serialization. I don't > think PHP does that automatically either. > yeah, the object must be serializated to proper identification and manage but in my case this are made automatically by the framework (a little modified by me for that) but.. in any case can be done.. more easy as i can see rather than gambas.. so ill revise your suggestions comments and post feedback here > > > Jussi > > On Fri, Jun 29, 2018 at 12:31 AM, PICCORO McKAY Lenz < > mckaygerhard at gmail.com> wrote: > >> 2018-06-28 10:43 GMT-04:00 Jussi Lahtinen : >> >>> I can't understand your English. >>> Collection does not store object, it stores object reference. Thus if >>> you are out of scope of the object, the collection contains useless >>> reference. >>> So, with correct scope, there shouldn't be any problems. >>> >> well it's hard to explain, but in php i can "store" or "transport" and >> object using arrays.. >> >> >> >>> Maybe you should show your code, that we could understand what you are >>> trying to achieve. >>> >> well i must chage a little to release portion of code from the job.. >> >> >> >>> >>> >>> Jussi >>> >>> On Thu, Jun 28, 2018 at 4:04 PM, PICCORO McKAY Lenz < >>> mckaygerhard at gmail.com> wrote: >>> >>>> 2018-06-27 16:50 GMT-04:00 Jussi Lahtinen : >>>> >>>>> Your English makes no sense. >>>>> >>>> sorry last line was misctyped! >>>> >>>> >>>> >>>>> If you destroy object, you do nothing with the reference. So, they >>>>> must have same scope. >>>>> >>>> i not taking about destroyng object but if the created object are on >>>> the part that stored in the collection this makes sense.. >>>> >>>> so then how can avoid that behaviour? >>>> >>>> i want something like php does with arrays ... ver very flexible! >>>> >>>> >>>> >>>> >>>>> >>>>> >>>>> Jussi >>>>> >>>>> On Wed, Jun 27, 2018 at 4:11 PM, PICCORO McKAY Lenz < >>>>> mckaygerhard at gmail.com> wrote: >>>>> >>>>>> so if i made a collection of my 3 of 4 connections objects those can >>>>>> be opened globally! >>>>>> >>>>>> how can i emulated a stored object connection that must be opened >>>>>> always before running the query? >>>>>> >>>>>> of course without inherits, due if all my objects inherits from one >>>>>> that already have opened i can use it! >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>>> 2018-06-26 18:49 GMT-04:00 Jussi Lahtinen : >>>>>> >>>>>>> Collections have only reference to objects, they do not contain >>>>>>> objects. >>>>>>> >>>>>>> >>>>>>> Jussi >>>>>>> >>>>>>> On Wed, Jun 27, 2018 at 12:18 AM, PICCORO McKAY Lenz < >>>>>>> mckaygerhard at gmail.com> wrote: >>>>>>> >>>>>>>> >>>>>>>> i can setup and store the connection object once opened in a >>>>>>>> collection of connection objects? >>>>>>>> >>>>>>>> i want to use a pool from configuration file! >>>>>>>> >>>>>>>> so can stored a OPENED connection object in a colletion? (urrently >>>>>>>> seems when i used me.add the conectuion object happened closed) >>>>>>>> >>>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>>> http://qgqlochekone.blogspot.com >>>>>>>> >>>>>>>> >>>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>>> ]---- >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 14:36:30 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 08:36:30 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: <20180628220918.GP1010@highrise.localdomain> References: <20180628131353.GM1010@highrise.localdomain> <20180628220918.GP1010@highrise.localdomain> Message-ID: 2018-06-28 18:09 GMT-04:00 Tobias Boege : > I believe it's called SUBR_print [1]. It's deeply wired into the > interpreter > ... > I don't see how you could modify its implementation without having to ship > your > own Gambas to your users. I also think wanting to change the Print > instruction > umm i reviewed the code and you have right! so then it's normal that the normal Print does output nothig when used the FAlse variable? > is misguided. Just add a Print() method to your class, which formats it in > whatever fancy way you need, and call that. > > Regards, > Tobi > > [1] https://gitlab.com/gambas/gambas/blob/master/main/gbx/ > gbx_subr_file.c#L278 > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 14:38:56 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 08:38:56 -0400 Subject: [Gambas-user] Additional files for Reading/Writing In-Reply-To: <741989dd7a2c4185a1889103ba0f6d28458b4d86.camel@orange.fr> References: <754594395d104cba4c57f60972a835d36758a888.camel@orange.fr> <741989dd7a2c4185a1889103ba0f6d28458b4d86.camel@orange.fr> Message-ID: if the files are user-aware those places are correct if the files are user-shareable must be in /var/spool/ Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-29 5:40 GMT-04:00 CD : > Hello, > > in an application, I have to read files on the disk, > but I need the user to edit these files! > > I found a solution : > Create a directory on behalf of the application > /home/User/.config/gambas3/MonAppli > and install there, the so-called files. > > Is there another solution, I would not have thought of? > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 14:40:12 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 08:40:12 -0400 Subject: [Gambas-user] Gambas farm In-Reply-To: References: Message-ID: Please CLAUDE! fix your mail settings or client to do not mix the threads.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-28 11:39 GMT-04:00 CD : > OK, i just find the answer of *Charlie Ogier* charlie at cogier.com > > > Thanks Charlie it is understood : Project/Publish > > and how disconnect from the farm??? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 14:49:38 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 08:49:38 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: any example of gmime component usage? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz : > i recently see that commit: https://gitlab.com/gambas/gambas/commit/ > 1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems there's no example to > tests that change.. also noted removal of gmime 2.4 without any reason (and > seems the code support it) > > i used in the past the gmime component.. but i not have the project right > now and i do not find! > > there's any project and/or code usage? for tests the gmime? > > wiki does not have any example http://gambaswiki.org/wiki/comp/gb.mime ! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jun 29 15:46:51 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 29 Jun 2018 15:46:51 +0200 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: In Gambas software farm > All software, check Show filter > Tags gb.mine, I see that shows some projects. But I do not know if it can help. I have seen that some activate components that they do not use, but I do not know if this is the case. Regards Gianluigi 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz : > any example of gmime component usage? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz : > >> i recently see that commit: https://gitlab.com/gambas/gamb >> as/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems there's no >> example to tests that change.. also noted removal of gmime 2.4 without any >> reason (and seems the code support it) >> >> i used in the past the gmime component.. but i not have the project right >> now and i do not find! >> >> there's any project and/or code usage? for tests the gmime? >> >> wiki does not have any example http://gambaswiki.org/wiki/comp/gb.mime ! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Fri Jun 29 16:16:56 2018 From: claude.dessere at orange.fr (CD) Date: Fri, 29 Jun 2018 16:16:56 +0200 Subject: [Gambas-user] User Digest, Vol 9, Issue 117 Additional files for Reading/Writing In-Reply-To: References: Message-ID: thank you, but I thought about the solution "settings", I think it does not fit well. This application is for Gambas developers, is a utility. in the app I want to do: sString = Split (File.load (sfile), "\ n") I get my file in a sString[] Array (a hundred) but I want the user of the app, a developer so, can access the file to modify it, according to certain rules, of course. I even wrote help for the operation if the Directory and/or file are not present, I create the directory, I copy the file, then the user can edit it, and after the app can read it again ... if the user refuses, I use the default file. The file is not temporary, once installed and modified, the app uses it every time. in fact I'm looking for the best location to do that.something like : /home/User/.config/gambas3/MonAppli/MonFichier.ext is not academic? regards Le vendredi 29 juin 2018 ? 14:37 +0200, user-request at lists.gambas-basic.org a ?crit : > 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/useror, 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-b > asic.org > When replying, please edit your Subject line so it is more specificthan "Re: > Contents of User digest..." > Today's Topics: > 1. Re: Additional files for Reading/Writing (Gianluigi) 2. Re: can stored > a OPENED connection object in a colletion? (PICCORO McKAY Lenz) 3. Re: > print does not output if the var is FALSE, how to override? (PICCORO > McKAY Lenz) > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 17:44:21 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 11:44:21 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: ah! so the dependences acts like tags in the software farm!? thanks for the hint about the gmime search Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-29 9:46 GMT-04:00 Gianluigi : > In Gambas software farm > All software, check Show filter > Tags gb.mine, > I see that shows some projects. > But I do not know if it can help. > I have seen that some activate components that they do not use, but I do > not know if this is the case. > > Regards > Gianluigi > > 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz : > >> any example of gmime component usage? >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz : >> >>> i recently see that commit: https://gitlab.com/gambas/gamb >>> as/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems there's no >>> example to tests that change.. also noted removal of gmime 2.4 without any >>> reason (and seems the code support it) >>> >>> i used in the past the gmime component.. but i not have the project >>> right now and i do not find! >>> >>> there's any project and/or code usage? for tests the gmime? >>> >>> wiki does not have any example http://gambaswiki.org/wiki/comp/gb.mime >>> ! >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 18:00:56 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 12:00:56 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: umm seems noone of the results project does use property the gb.mime component! and i reviewed the code and does not find any usage of.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-29 11:44 GMT-04:00 PICCORO McKAY Lenz : > ah! so the dependences acts like tags in the software farm!? > > thanks for the hint about the gmime search > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-29 9:46 GMT-04:00 Gianluigi : > >> In Gambas software farm > All software, check Show filter > Tags gb.mine, >> I see that shows some projects. >> But I do not know if it can help. >> I have seen that some activate components that they do not use, but I do >> not know if this is the case. >> >> Regards >> Gianluigi >> >> 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz : >> >>> any example of gmime component usage? >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz : >>> >>>> i recently see that commit: https://gitlab.com/gambas/gamb >>>> as/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems there's >>>> no example to tests that change.. also noted removal of gmime 2.4 without >>>> any reason (and seems the code support it) >>>> >>>> i used in the past the gmime component.. but i not have the project >>>> right now and i do not find! >>>> >>>> there's any project and/or code usage? for tests the gmime? >>>> >>>> wiki does not have any example http://gambaswiki.org/wiki/comp/gb.mime >>>> ! >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 18:23:44 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 12:23:44 -0400 Subject: [Gambas-user] can i specify a path to my modules or libs please how? In-Reply-To: <7868d2af-2068-c2bc-7f16-15d12cac9fee@gmail.com> References: <20180417162404.GG926@highrise.localdomain> <7868d2af-2068-c2bc-7f16-15d12cac9fee@gmail.com> Message-ID: well all the currently behaviours are inneficient for mixed development environment with java like profiles.. the path provided by Tobias have better possibilities combined with "Component.Load" .. due i can autodetects the current runing path and then set absolute from runtime! those path must be a option and must be included in gambas main.. the current options that need a valid home for loadin libraries or compoents are xtremedly unflexible for professional profile developments *the best its a dinamically loading of libraries/components using relative or absolute paths alongside the actual behaviour.. that's permit a better team development without hardcoded paths of home users!* Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-04-17 15:22 GMT-04:00 Beno?t Minisini : > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jun 29 18:40:08 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 29 Jun 2018 18:40:08 +0200 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: I get this, see image. Regards Gianluigi 2018-06-29 18:00 GMT+02:00 PICCORO McKAY Lenz : > umm seems noone of the results project does use property the gb.mime > component! and i reviewed the code and does not find any usage of.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-29 11:44 GMT-04:00 PICCORO McKAY Lenz : > >> ah! so the dependences acts like tags in the software farm!? >> >> thanks for the hint about the gmime search >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-29 9:46 GMT-04:00 Gianluigi : >> >>> In Gambas software farm > All software, check Show filter > Tags >>> gb.mine, I see that shows some projects. >>> But I do not know if it can help. >>> I have seen that some activate components that they do not use, but I do >>> not know if this is the case. >>> >>> Regards >>> Gianluigi >>> >>> 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz : >>> >>>> any example of gmime component usage? >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz : >>>> >>>>> i recently see that commit: https://gitlab.com/gambas/gamb >>>>> as/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems there's >>>>> no example to tests that change.. also noted removal of gmime 2.4 without >>>>> any reason (and seems the code support it) >>>>> >>>>> i used in the past the gmime component.. but i not have the project >>>>> right now and i do not find! >>>>> >>>>> there's any project and/or code usage? for tests the gmime? >>>>> >>>>> wiki does not have any example http://gambaswiki.org/wiki/comp/gb.mime >>>>> ! >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mime.png Type: image/png Size: 171046 bytes Desc: not available URL: From mckaygerhard at gmail.com Fri Jun 29 19:13:35 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 13:13:35 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: yeah same for me, download the picture soft and dlaucher, the rest need network access or something i not have, in any case reviewed the code of each one and no see any usage of gmime ! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2018-06-29 12:40 GMT-04:00 Gianluigi : > I get this, see image. > > Regards > Gianluigi > > 2018-06-29 18:00 GMT+02:00 PICCORO McKAY Lenz : > >> umm seems noone of the results project does use property the gb.mime >> component! and i reviewed the code and does not find any usage of.. >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-29 11:44 GMT-04:00 PICCORO McKAY Lenz : >> >>> ah! so the dependences acts like tags in the software farm!? >>> >>> thanks for the hint about the gmime search >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-29 9:46 GMT-04:00 Gianluigi : >>> >>>> In Gambas software farm > All software, check Show filter > Tags >>>> gb.mine, I see that shows some projects. >>>> But I do not know if it can help. >>>> I have seen that some activate components that they do not use, but I >>>> do not know if this is the case. >>>> >>>> Regards >>>> Gianluigi >>>> >>>> 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz : >>>> >>>>> any example of gmime component usage? >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz : >>>>> >>>>>> i recently see that commit: https://gitlab.com/gambas/gamb >>>>>> as/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems there's >>>>>> no example to tests that change.. also noted removal of gmime 2.4 without >>>>>> any reason (and seems the code support it) >>>>>> >>>>>> i used in the past the gmime component.. but i not have the project >>>>>> right now and i do not find! >>>>>> >>>>>> there's any project and/or code usage? for tests the gmime? >>>>>> >>>>>> wiki does not have any example http://gambaswiki.org/wiki/com >>>>>> p/gb.mime ! >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jun 29 19:21:13 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 29 Jun 2018 19:21:13 +0200 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: <20180628131353.GM1010@highrise.localdomain> <20180628220918.GP1010@highrise.localdomain> Message-ID: <20180629172112.GQ1010@highrise.localdomain> On Fri, 29 Jun 2018, PICCORO McKAY Lenz wrote: > > I don't see how you could modify its implementation without having to ship > > your > > own Gambas to your users. I also think wanting to change the Print > > instruction > > > umm i reviewed the code and you have right! > > so then it's normal that the normal Print does output nothig when used the > FAlse variable? > No, it's not normal, as I said two mails ago. It should print "False" as a string. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri Jun 29 19:44:00 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 13:44:00 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: <20180629172112.GQ1010@highrise.localdomain> References: <20180628131353.GM1010@highrise.localdomain> <20180628220918.GP1010@highrise.localdomain> <20180629172112.GQ1010@highrise.localdomain> Message-ID: 2018-06-29 13:21 GMT-04:00 Tobias Boege : > No, it's not normal, as I said two mails ago. It should print "False" > as a string. > in my main function i return as Variant.. that's may be the problem.. ok how can i force the type of result from variant to boolean my function : Public Function email(texto As Variant) As Variant Dim regex As New RegExp Dim strPattern As String = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,8}$" If regex.Match(texto, strPattern, regex.Caseless) = True Then Return texto Endif Return False End when i used as: Print exu.email("mpes") & " y este " & exu.email("email at mail.com") does not print "False" due the "Variant" implication i guess, so how can i emulated the php behaviour? > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jun 29 20:05:25 2018 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 29 Jun 2018 20:05:25 +0200 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: If those who enter the projects only activate the really useful components, the software farm would be more useful. Regards Gianluigi 2018-06-29 19:13 GMT+02:00 PICCORO McKAY Lenz : > yeah same for me, download the picture soft and dlaucher, the rest need > network access or something i not have, in any case reviewed the code of > each one and no see any usage of gmime ! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-29 12:40 GMT-04:00 Gianluigi : > >> I get this, see image. >> >> Regards >> Gianluigi >> >> 2018-06-29 18:00 GMT+02:00 PICCORO McKAY Lenz : >> >>> umm seems noone of the results project does use property the gb.mime >>> component! and i reviewed the code and does not find any usage of.. >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> 2018-06-29 11:44 GMT-04:00 PICCORO McKAY Lenz : >>> >>>> ah! so the dependences acts like tags in the software farm!? >>>> >>>> thanks for the hint about the gmime search >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-06-29 9:46 GMT-04:00 Gianluigi : >>>> >>>>> In Gambas software farm > All software, check Show filter > Tags >>>>> gb.mine, I see that shows some projects. >>>>> But I do not know if it can help. >>>>> I have seen that some activate components that they do not use, but I >>>>> do not know if this is the case. >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz >>>>> : >>>>> >>>>>> any example of gmime component usage? >>>>>> >>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>> http://qgqlochekone.blogspot.com >>>>>> >>>>>> 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz >>>>>> : >>>>>> >>>>>>> i recently see that commit: https://gitlab.com/gambas/gamb >>>>>>> as/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems >>>>>>> there's no example to tests that change.. also noted removal of gmime 2.4 >>>>>>> without any reason (and seems the code support it) >>>>>>> >>>>>>> i used in the past the gmime component.. but i not have the project >>>>>>> right now and i do not find! >>>>>>> >>>>>>> there's any project and/or code usage? for tests the gmime? >>>>>>> >>>>>>> wiki does not have any example http://gambaswiki.org/wiki/com >>>>>>> p/gb.mime ! >>>>>>> >>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>> http://qgqlochekone.blogspot.com >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 20:19:59 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 14:19:59 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: 2018-06-29 14:05 GMT-04:00 Gianluigi : > If those who enter the projects only activate the really useful > components, the software farm would be more useful. > ok but right now there's no example of the gmime the gambas ide seems use it for the files detection and open respectivelly, but it's load very slowly in my pc please can any provide a example for the wiki page documentation ?: http://gambaswiki.org/wiki/comp/gb.mime > > Regards > Gianluigi > > 2018-06-29 19:13 GMT+02:00 PICCORO McKAY Lenz : > >> yeah same for me, download the picture soft and dlaucher, the rest need >> network access or something i not have, in any case reviewed the code of >> each one and no see any usage of gmime ! >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2018-06-29 12:40 GMT-04:00 Gianluigi : >> >>> I get this, see image. >>> >>> Regards >>> Gianluigi >>> >>> 2018-06-29 18:00 GMT+02:00 PICCORO McKAY Lenz : >>> >>>> umm seems noone of the results project does use property the gb.mime >>>> component! and i reviewed the code and does not find any usage of.. >>>> >>>> Lenz McKAY Gerardo (PICCORO) >>>> http://qgqlochekone.blogspot.com >>>> >>>> 2018-06-29 11:44 GMT-04:00 PICCORO McKAY Lenz : >>>> >>>>> ah! so the dependences acts like tags in the software farm!? >>>>> >>>>> thanks for the hint about the gmime search >>>>> >>>>> Lenz McKAY Gerardo (PICCORO) >>>>> http://qgqlochekone.blogspot.com >>>>> >>>>> 2018-06-29 9:46 GMT-04:00 Gianluigi : >>>>> >>>>>> In Gambas software farm > All software, check Show filter > Tags >>>>>> gb.mine, I see that shows some projects. >>>>>> But I do not know if it can help. >>>>>> I have seen that some activate components that they do not use, but I >>>>>> do not know if this is the case. >>>>>> >>>>>> Regards >>>>>> Gianluigi >>>>>> >>>>>> 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz >>>>> >: >>>>>> >>>>>>> any example of gmime component usage? >>>>>>> >>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>> http://qgqlochekone.blogspot.com >>>>>>> >>>>>>> 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz >>>>>> >: >>>>>>> >>>>>>>> i recently see that commit: https://gitlab.com/gambas/gamb >>>>>>>> as/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa and seems >>>>>>>> there's no example to tests that change.. also noted removal of gmime 2.4 >>>>>>>> without any reason (and seems the code support it) >>>>>>>> >>>>>>>> i used in the past the gmime component.. but i not have the project >>>>>>>> right now and i do not find! >>>>>>>> >>>>>>>> there's any project and/or code usage? for tests the gmime? >>>>>>>> >>>>>>>> wiki does not have any example http://gambaswiki.org/wiki/com >>>>>>>> p/gb.mime ! >>>>>>>> >>>>>>>> Lenz McKAY Gerardo (PICCORO) >>>>>>>> http://qgqlochekone.blogspot.com >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>>> ]---- >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>>> ]---- >>>>>> >>>>>> >>>>> >>>> >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>>> >>> >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >>> >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jun 29 20:30:02 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 29 Jun 2018 20:30:02 +0200 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: <20180628131353.GM1010@highrise.localdomain> <20180628220918.GP1010@highrise.localdomain> <20180629172112.GQ1010@highrise.localdomain> Message-ID: <20180629183002.GR1010@highrise.localdomain> On Fri, 29 Jun 2018, PICCORO McKAY Lenz wrote: > 2018-06-29 13:21 GMT-04:00 Tobias Boege : > > > No, it's not normal, as I said two mails ago. It should print "False" > > as a string. > > > in my main function i return as Variant.. that's may be the problem.. > > ok how can i force the type of result from variant to boolean > This is not the problem. Despite being inside a Variant "container", False is still known to be a Boolean internally and will be printed correctly. Just try it: Dim a As Variant = False Print a > False > my function : > > Public Function email(texto As Variant) As Variant > > Dim regex As New RegExp > Dim strPattern As String = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,8}$" > > If regex.Match(texto, strPattern, regex.Caseless) = True Then > Return texto > Endif > > Return False > > End > > when i used as: > > Print exu.email("mpes") & " y este " & exu.email("email at mail.com") > > does not print "False" due the "Variant" implication i guess, so how can i > emulated the php behaviour? > Here, you are concatenating a Boolean to a string. This coerces the Boolean to a string, but it does so using CStr(), which prints False as Null, which is the empty string, as I explained earlier. It's not that you "Print", but that you "&". Either use Str$(exu.email(...)) or Print exu.email("mpes");; "y este";; exu.email("email at mail.com") and Print will take care of the human-friendly Boolean conversion. BTW, I personally wouldn't write the function like that in the first place. You only get in trouble because the returned datatype depends on the argument. I would write it like this: Public Function email(texto As Variant) As Boolean ' For performance: compile the pattern once and cache it Return texto Match "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,8}$" Endif and use it to actually branch in the code that wants to do something with texto. But if you really value the one-liner here, there's probably no other choice. Regards, Tobi PS: As always when someone posts a regex for email addresses, yours is not quite perfect. For starters, we have very long TLDs these days, like .christmas, .engineering or .cancerresearch [1], which your regex will reject. [1] https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at gmail.com Fri Jun 29 20:53:39 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 14:53:39 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: <20180629183002.GR1010@highrise.localdomain> References: <20180628131353.GM1010@highrise.localdomain> <20180628220918.GP1010@highrise.localdomain> <20180629172112.GQ1010@highrise.localdomain> <20180629183002.GR1010@highrise.localdomain> Message-ID: 2018-06-29 14:30 GMT-04:00 Tobias Boege : > > ok how can i force the type of result from variant to boolean > This is not the problem. Despite being inside a Variant "container", > False is still known to be a Boolean internally and will be printed > correctly. Just try it: > > Dim a As Variant = False > Print a > > False > works! so then following your mail we get some details that let me in same situation: > Here, you are concatenating a Boolean to a string. This coerces the Boolean > to a string, but it does so using CStr(), which prints False as Null, which > is the empty string, as I explained earlier. It's not that you "Print", but > i understant clear that you posted! please see that: but in any case inclusivelly usign your suggested funtion code does not return "False" so > that you "&". Either use Str$(exu.email(...)) or > Print exu.email("mpes");; "y este";; exu.email("email at mail.com") > and Print will take care of the human-friendly Boolean conversion. > this let me in same situation, normal print does not print the variable jajajajajaj XD XD BTW, I personally wouldn't write the function like that in the first place. > You only get in trouble because the returned datatype depends on the > argument. > yeah now i got "T" for match case but still "null" or empty for false! > I would write it like this: > > Public Function email(texto As Variant) As Boolean > ' For performance: compile the pattern once and cache it > Return texto Match "^[A-Za-z0-9._%+-]+@[A-Za-z0- > 9.-]+\\.[A-Za-z]{2,8}$" > Endif > > and use it to actually branch in the code that wants to do something > with texto. But if you really value the one-liner here, there's probably > no other choice. > that's horrible, i think its a bug now! as you can see in the previously code! i need a solution to mantain simple a keep compatibility, gambas becomes be too unflexible! currently the odbc in 3.11 are a crap and now details like this! > PS: As always when someone posts a regex for email addresses, yours is > not quite perfect. For starters, we have very long TLDs these days, > like .christmas, .engineering or .cancerresearch [1], which your regex > will reject. > > [1] https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains YES you have right but i not have enought experience in regex xpressions i send another mail to mantain this in context! > > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 21:04:11 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 15:04:11 -0400 Subject: [Gambas-user] registration at bugtracker are working? Message-ID: yesterday, i freind of my registered to wiki and cannot login.. registration are pending of approval? or currently its not working? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bm.530502 at gmail.com Fri Jun 29 21:11:29 2018 From: bm.530502 at gmail.com (Ingo) Date: Fri, 29 Jun 2018 21:11:29 +0200 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: <540c6cab-b741-a737-2acc-6209f3d3317c@gmail.com> Am 29.06.2018 um 18:00 schrieb PICCORO McKAY Lenz: > umm seems noone of the results project does use property the gb.mime > component! and i reviewed the code and does not find any usage of.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-29 11:44 GMT-04:00 PICCORO McKAY Lenz >: > > ah! so the dependences acts like tags in the software farm!? > > thanks for the hint about the gmime search > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2018-06-29 9:46 GMT-04:00 Gianluigi >: > > In Gambas software farm > All software, check Show filter > > Tags gb.mine, I see that shows some projects. > But I do not know if it can help. > I have seen that some activate components that they do not > use, but I do not know if this is the case. > > Regards > Gianluigi > > 2018-06-29 14:49 GMT+02:00 PICCORO McKAY Lenz > >: > > any example of gmime component usage? > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > 2018-06-26 9:50 GMT-04:00 PICCORO McKAY Lenz > >: > > i recently see that commit: > https://gitlab.com/gambas/gambas/commit/1a8b4cf6625df6cb326f627104c3d66f198fa0fa > > and seems there's no example to tests that change.. > also noted removal of gmime 2.4 without any reason > (and seems the code support it) > > i used in the past the gmime component.. but i not > have the project right now and i do not find! > > there's any project and/or code usage? for tests the > gmime? > > wiki does not have any example > http://gambaswiki.org/wiki/comp/gb.mime > ! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Hi, on the german gambas-buch you can find something about gb.mime (https://gambas-buch.de/dw/doku.php?id=k24:k24.3:start) and some examples. The english webpage is currently offline because of GDPR matters :-( Maybe that helps. Regards Ingo -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jun 29 21:35:37 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 29 Jun 2018 21:35:37 +0200 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: References: Message-ID: <20180629193537.GS1010@highrise.localdomain> On Fri, 29 Jun 2018, PICCORO McKAY Lenz wrote: > 2018-06-29 14:05 GMT-04:00 Gianluigi : > > > If those who enter the projects only activate the really useful > > components, the software farm would be more useful. > > > ok but right now there's no example of the gmime > > the gambas ide seems use it for the files detection and open respectivelly, > but it's load very slowly in my pc > > please can any provide a example for the wiki page documentation ?: > http://gambaswiki.org/wiki/comp/gb.mime > What's the difficulty here? If you know what an email is and look at the documentation, it should be fairly easy to produce an example. gb.mime just represents a MIME message as a tree of objects. The interface is only superficially more complicated than, say, JSON.Decode from gb.web. (Of course, the act of parsing MIME *is* more complicated.) Project attached; it uses gb.mime to destructure an email and then prints that as a tree. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: gmime-test-0.0.1.tar.gz Type: application/gzip Size: 15143 bytes Desc: not available URL: From mckaygerhard at gmail.com Fri Jun 29 21:37:29 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 15:37:29 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: <540c6cab-b741-a737-2acc-6209f3d3317c@gmail.com> References: <540c6cab-b741-a737-2acc-6209f3d3317c@gmail.com> Message-ID: 2018-06-29 15:11 GMT-04:00 Ingo : > on the german gambas-buch you can find something about gb.mime ( > https://gambas-buch.de/dw/doku.php?id=k24:k24.3:start) and some examples. > GREAT! thanks ingo! > The english webpage is currently offline because of GDPR matters :-( > wow! that law seems are too inflexible? if the server are not hosted in german or European, does not matter you know? > > > Maybe that helps. > > Regards > Ingo > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jun 29 21:38:54 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 15:38:54 -0400 Subject: [Gambas-user] recent gmime changes need tests, how to? In-Reply-To: <20180629193537.GS1010@highrise.localdomain> References: <20180629193537.GS1010@highrise.localdomain> Message-ID: 2018-06-29 15:35 GMT-04:00 Tobias Boege : > What's the difficulty here? If you know what an email is and look at the > documentation, it should be fairly easy to produce an example. gb.mime > just represents a MIME message as a tree of objects. The interface is > only superficially more complicated than, say, JSON.Decode from gb.web. > (Of course, the act of parsing MIME *is* more complicated.) > > Project attached; it uses gb.mime to destructure an email and then prints > that as a tree. > THANKS Tobias! always Tobias with LIFESAVERS! > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jun 29 21:59:58 2018 From: taboege at gmail.com (Tobias Boege) Date: Fri, 29 Jun 2018 21:59:58 +0200 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: References: <20180628131353.GM1010@highrise.localdomain> <20180628220918.GP1010@highrise.localdomain> <20180629172112.GQ1010@highrise.localdomain> <20180629183002.GR1010@highrise.localdomain> Message-ID: <20180629195958.GT1010@highrise.localdomain> On Fri, 29 Jun 2018, PICCORO McKAY Lenz wrote: > BTW, I personally wouldn't write the function like that in the first place. > > You only get in trouble because the returned datatype depends on the > > argument. > > > yeah now i got "T" for match case but still "null" or empty for false! > Then something is still using CStr() instead of Str$() to do the string comparison. > > I would write it like this: > > > > Public Function email(texto As Variant) As Boolean > > ' For performance: compile the pattern once and cache it > > Return texto Match "^[A-Za-z0-9._%+-]+@[A-Za-z0- > > 9.-]+\\.[A-Za-z]{2,8}$" > > Endif > > > > and use it to actually branch in the code that wants to do something > > with texto. But if you really value the one-liner here, there's probably > > no other choice. > > > that's horrible, i think its a bug now! as you can see in the previously > code! Please test the script I attach so we can see if the behaviour has changed between your Gambas and mine. I just did a `git log --grep print -i v3.9.0.. -- main` and couldn't find any mention of PRINT having changed. Also notice that the PRINT documentation says: The expressions are converted to strings by the Str$ function. That wiki page doesn't even have a "historic" button, so it wasn't changed in a very long time, at least since 2014 apparently [ because the Language Overview has historic records of 2014 ]. The expected output is this: $ ./false.gbs3 y este email at mail.com False y este email at mail.com y este T False y este True False y este True Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- #!/usr/bin/env gbs3 Use "gb.pcre" Public Function email(texto As Variant) As Variant Dim regex As New RegExp Dim strPattern As String = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,8}$" If regex.Match(texto, strPattern, regex.Caseless) = True Then Return texto Endif Return False End Public Function email2(texto As Variant) As Boolean ' For performance: compile the pattern once and cache it Return texto Match "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,8}$" End Public Sub Main() Print email("mpes") & " y este " & email("email at mail.com") Print email("mpes");; "y este";; email("email at mail.com") Print email2("mpes") & " y este " & email2("email at mail.com") Print Str$(email2("mpes")) & " y este " & Str$(email2("email at mail.com")) Print email2("mpes");; "y este";; email2("email at mail.com") End From mckaygerhard at gmail.com Fri Jun 29 22:24:22 2018 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 29 Jun 2018 16:24:22 -0400 Subject: [Gambas-user] print does not output if the var is FALSE, how to override? In-Reply-To: <20180629195958.GT1010@highrise.localdomain> References: <20180628131353.GM1010@highrise.localdomain> <20180628220918.GP1010@highrise.localdomain> <20180629172112.GQ1010@highrise.localdomain> <20180629183002.GR1010@highrise.localdomain> <20180629195958.GT1010@highrise.localdomain> Message-ID: 2018-06-29 15:59 GMT-04:00 Tobias Boege : > Please test the script I attach so we can see if the behaviour has changed > between your Gambas and mine. I just did a `git log --grep print -i > v3.9.0.. -- main` > and couldn't find any mention of PRINT having changed. Also notice that the > PRINT documentation says: > > The expressions are converted to strings by the Str$ function. > > That wiki page doesn't even have a "historic" button, so it wasn't changed > in a very long time, at least since 2014 apparently [ because the Language > Overview has historic records of 2014 ]. > > The expected output is this: > > $ ./false.gbs3 > y este email at mail.com > False y este email at mail.com > y este T > False y este True > False y este True > output said and seems as xpected! as can see, got "T" on second line, and empty not very usefully for me! of course i can use Print "aa" ;; var;; "bbb" but this make not portable between others coders! this are my output : remoto at sysanydesktop0:~/Descargas$ gbs3 false.gbs3 y este email at mail.com False y este email at mail.com y este T False y este True False y este True remoto at sysanydesktop0:~/Descargas$ > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat Jun 30 01:00:10 2018 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 30 Jun 2018 02:00:10 +0300 Subject: [Gambas-user] News about the new just-in-time compiler In-Reply-To: References: Message-ID: Lol, I guess I was bit too tired writing that! I'll make new test after 48h or so. Jussi On Friday, June 29, 2018, Beno?t Minisini wrote: > Le 29/06/2018 ? 03:10, Jussi Lahtinen a ?crit : > >> If I comment out byref test, then JIT crashes leaving nothing to the >> gb.c. Not very helpful... anyway attached. Maybe you have some clever way >> to debug this. >> >> > The clever way is named 'gdb'. > > I forgot to say that structures and static arrays are not yet implemented > too! It makes crash the JIT translator. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: