From chrisml at deganius.de Wed Jan 1 10:27:58 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 1 Jan 2020 10:27:58 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: <48933e2b-dfb5-872f-5ec2-ad89927a257c@gmail.com> References: <48933e2b-dfb5-872f-5ec2-ad89927a257c@gmail.com> Message-ID: <614af771-554a-981d-c025-21d0152e4bfc@deganius.de> Am 31.12.19 um 17:17 schrieb Beno?t Minisini: > Here is an updated project. It still does not work. It logs: > 12173 | START: test-new-webform > 12173 | EXEC /home/christof/programming/gambas/ideas/test-new-webform/test-new-webform.gambas > 12173 | **** Main.Main.86: File or directory does not exist Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From gambas.fr at gmail.com Wed Jan 1 13:21:10 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 1 Jan 2020 13:21:10 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: <614af771-554a-981d-c025-21d0152e4bfc@deganius.de> References: <48933e2b-dfb5-872f-5ec2-ad89927a257c@gmail.com> <614af771-554a-981d-c025-21d0152e4bfc@deganius.de> Message-ID: ok I had to generate an executable in the project path ... to get rid of the line 96 error . But now firefox wait for the server return ... 16646 | START: test-new-webform 16646 | EXEC /home/fabien/T?l?chargements/Gambas/test-new-webform/test-new-webform.gambas 16650 | Start: /home/fabien/T?l?chargements/Gambas/test-new-webform/test-new-webform.gambas | | EC8E9C97AEA9D3C6B87EC05C 16646 | COOKIE = EC8E9C97AEA9D3C6B87EC05C [NEW] 16646 | OPEN WRITE /tmp/gambas.1000/session/EC8E9C97AEA9D3C6B87EC05C.in 16646 | WRITE ENV 16651 | Open read /tmp/gambas.1000/session/EC8E9C97AEA9D3C6B87EC05C.in 16651 | Read env 16646 | OPEN READ /tmp/gambas.1000/session/EC8E9C97AEA9D3C6B87EC05C.out 16651 | Open write /tmp/gambas.1000/session/EC8E9C97AEA9D3C6B87EC05C.out 16646 | READ RESPONSE 16646 | READ RESPONSE = "Set-Cookie: GBSESSIONID=EC8E9C97AEA9D3C6B87EC05C;path=/;httponly\r\nContent-type: text/html;charset=utf-8\r\n\n\n\n\n" 16646 | READ RESPONSE = "\n\n\n\n
Requesthttp://localhost:8080/
Cookie" 16646 | READ RESPONSE = "EC8E9C97AEA9D3C6B87EC05C
Process16651
Count1
\n\n\n" 16651 | Close read 16651 | Close write 16602 | Timeout 16662 | START: test-new-webform 16662 | EXEC /home/fabien/T?l?chargements/Gambas/test-new-webform/test-new-webform.gambas 16664 | Start: /home/fabien/T?l?chargements/Gambas/test-new-webform/test-new-webform.gambas | | 26DE98CB32F22F04767E5041 16662 | COOKIE = 26DE98CB32F22F04767E5041 [NEW] 16662 | OPEN WRITE /tmp/gambas.1000/session/26DE98CB32F22F04767E5041.in 16662 | WRITE ENV 16665 | Open read /tmp/gambas.1000/session/26DE98CB32F22F04767E5041.in 16662 | OPEN READ /tmp/gambas.1000/session/26DE98CB32F22F04767E5041.out 16665 | Read env 16665 | Open write /tmp/gambas.1000/session/26DE98CB32F22F04767E5041.out 16662 | READ RESPONSE 16662 | READ RESPONSE = "Set-Cookie: GBSESSIONID=26DE98CB32F22F04767E5041;path=/;httponly\r\nContent-type: text/html;charset=utf-8\r\n\n\n\n\n" 16662 | READ RESPONSE = "\n" 16662 | READ RESPONSE = "\n\n\n
Requesthttp://localhost:8080/
Cookie26DE98CB32F22F04767E5041
Process16665
Count1
\n\n\n" 16665 | Close read 16665 | Close write Le mer. 1 janv. 2020 ? 10:28, Christof Thalhofer a ?crit : > > Am 31.12.19 um 17:17 schrieb Beno?t Minisini: > > > Here is an updated project. > > It still does not work. It logs: > > > 12173 | START: test-new-webform > > 12173 | EXEC /home/christof/programming/gambas/ideas/test-new-webform/test-new-webform.gambas > > 12173 | **** Main.Main.86: File or directory does not exist > > Alles Gute > > Christof Thalhofer > > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard Gambas Basic : http://gambas.sf.net GambasForge : http://www.gambasforge.org NEW discourse Gambas Forum : https://gambas.discourse.group/ From mckaygerhard at gmail.com Wed Jan 1 14:41:05 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Jan 2020 09:41:05 -0400 Subject: [Gambas-user] Future of webform component In-Reply-To: References: Message-ID: I have had to substantially alter the project to make it work, I have many doubts according to my poor understanding of the request vs. the response: If all the data is transferred with pipelines, this implementation is not scalable as such, I do not understand as for example, php that is interpreted is so fast and popular instead of gambas, which is what makes php faster, we know that php It does not run on threads. It has been a good point of discussion, also keep in mind that in gambas there is not a whole giant development team like in php or java, so let's compare against php4 that it was still somewhat scalable, my point is that other technologies work well so what is the fear that gambas are not like java (as you said, a cgi only request per each client only) and his "tomcat helper" (today more than one helper exists on the server side for java deploiments) As for the events, well in any web system the events actually occur in the client, although we fool ourselves with things like ajax, although I cannot give much opinion because I still do not handle the issue very well, but it is also related to the I said earlier. The idea has benef... El lun., 30 de dic. de 2019 a la(s) 14:31, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Hi everyone, > > Here is a test project for you. It implements what I want to do for web > development in Gambas. > > At the moment, the 'gb.web.form' component allows you to create web > application with a GUI-like interface, but it has many problems: > > 1) It's a CGI script. So the entire GUI object tree must be rebuild at > each request. > > 2) The only way to keep information between requests is the session, > which is stored in an external sqlite database. You have to write custom > code for handling that. > > 3) There is no event loop at the server level. I mean, when you open a > modal message box, it's modal on the client side only. You have to rely > on custom events to get the result on a modal message, and be careful > with the implied code logic. > > The joined little project implements a CGI script that replaces each > session by a process daemon. > > The process is created the first time a new session is created. > > All requests are sent to the session process through a pipe, and the > response is get from another pipe. > > If nothing is received by the session process during 20 seconds, the > process terminates automatically. > > The advantages of that method are: > > 1) The process is permanent. All information is kept between processes. > No need to rebuild the GUI object tree, to reopen the database > connections, and so on... > > 2) No need to store the session in a database or a file. The process > memory *is* the session. > > 3) It will be possible to implement a true event loop in the session > process. Modal dialogs will be modal on the server side too. Web GUI > programming will really look like standard GUI programming. > > 4) Having an event loop, you will be able to watch file, open sockets, > use timers... in the server process. For example, a WebTimer will run on > the client side, but a normal Timer will run on the server. > > It's really like a telnet or a ssh connection between a terminal and a > server. > > I see the following disadvantages: > > 1) If your application is big and if you have a lot of users, you will > need memory and swap. But I don't think it's a big deal against the > easyness you will get. > > 2) The data is copied between the CGI script and the session process. So > it *may* make things a bit slower if you want to handle a big download > or upload. > > 3) Beware that only the client can initiate a communication with the > server. It will behave the same way as the current 'gb.web.form'. > > Tell me what you think about that. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed Jan 1 15:23:44 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 1 Jan 2020 15:23:44 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: References: Message-ID: <518bd33b-95db-ba34-5194-4d1e8a3a51f2@gmail.com> Le 01/01/2020 ? 14:41, PICCORO McKAY Lenz a ?crit?: > I have had to substantially alter the project to make it work, I have > many doubts according to my poor understanding of the request vs. the > response: > > If all the data is transferred with pipelines, this implementation is > not scalable as such, I do not understand as for example, php that is > interpreted is so fast and popular instead of gambas, which is what > makes php faster, we know that php It does not run on threads. The idea is precisely not to do like php and others. I want to be able to make web applications that work like client / server applications communicating through a terminal. In that case, the browser is the terminal, it displays things and send events to the server. It's scalable with the number of processes your server can handle simultaneously. But each process runs only to handle a request. Otherwise it sleeps (so it does not use CPU at all, and it can be swapped if needed). What this little quick & dirty example does not show, is that some requests do not need to handle by the session process (which can handle one request once): all static ones, like css, images, and so on. I will try to publish a gb.web.form2 very early component soon, maybe it will make things clearer. -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 1 15:36:04 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 1 Jan 2020 15:36:04 +0100 Subject: [Gambas-user] Happy new year Message-ID: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Happy new year to every Gambas user! ...and happy circumcision for all christians. :-) It's 2020 now, so you must be careful and not write years on your official documents with two digits anymore. Otherwise some evil people may falsify them by adding two more digits after! Yeah, 2020 and still parano?d... Let that new year be full of peace and love for you and your family. And full of Gambas for you and eventually your family. :-) -- Beno?t Minisini From chrisml at deganius.de Wed Jan 1 15:54:59 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 1 Jan 2020 15:54:59 +0100 Subject: [Gambas-user] Happy new year In-Reply-To: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: <2ebbb8aa-81d9-f712-818e-0c33297846d0@deganius.de> Am 01.01.20 um 15:36 schrieb Beno?t Minisini: > Happy new year to every Gambas user! Thank you! Yes, and I wish you and everybody here also a happy new decade! :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From d4t4full at gmail.com Wed Jan 1 16:03:42 2020 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Wed, 01 Jan 2020 12:03:42 -0300 Subject: [Gambas-user] Happy new year In-Reply-To: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: Thanks a lot, and I wish the same to you, Beno?t. One can't be paranoid enough... Happy 20 ? (100 + 1) fer ye all. ZxMarce. On Jan 1, 2020, 11:37, at 11:37, "Beno?t Minisini" wrote: >Happy new year to every Gambas user! > >...and happy circumcision for all christians. :-) > >It's 2020 now, so you must be careful and not write years on your >official documents with two digits anymore. Otherwise some evil people >may falsify them by adding two more digits after! > >Yeah, 2020 and still parano?d... > >Let that new year be full of peace and love for you and your family. >And >full of Gambas for you and eventually your family. :-) > >-- >Beno?t Minisini > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jan 1 16:14:10 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Jan 2020 11:14:10 -0400 Subject: [Gambas-user] Future of webform component In-Reply-To: <3953a7c6-06ff-b35e-ea6d-cdb0a1a34ddc@gmail.com> References: <3953a7c6-06ff-b35e-ea6d-cdb0a1a34ddc@gmail.com> Message-ID: El mi?., 1 de ene. de 2020 a la(s) 10:23, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Le 01/01/2020 ? 14:41, PICCORO McKAY Lenz a ?crit : > > makes php faster, we know that php It does not run on threads. > > The idea is precisely not to do like php and others. > oh, don't get me wrong .. I was rather using the comparison to justify that even without being like java that today is already multi-threaded (group-threat mode) it is the most used in web systems, the next part if it is about that: I will try to publish a gb.web.form2 very early component soon, maybe it > will make things clearer. > as i told you! maybe we need more documentstiona rather than development, if you noted! users can generate more help that free the workload at the developer team like client/server applications communicating through a terminal. > In that case, the browser is the terminal, it displays things and send > events to the server. > It's scalable with the number of processes your server can handle > simultaneously. But each process runs only to handle a request. > Otherwise it sleeps (so it does not use CPU at all, and it can be > swapped if needed). > that sounds interesting.. so the example send was a "look" inside this behaviour.. we need more tutorials and how to's.. currently there's a mini ERP made in gambas.. https://github.com/Laurux/ but as i can see, we need to goin more deep and i have more "vision", as i think, gambas must be the main oficial languaje of linux environments... but.. welll as i said in previous mail.. in php there are many sponsors, but there are also many dominating their course ... well as i can see, we always will have a hobby languaje or a serious languaje? gambas it's a serious lang, but course and behaviour are similar as a hobby lang > What this little quick & dirty example does not show, is that some > requests do not need to handle by the session process (which can handle > one request once): all static ones, like css, images, and so on. > GREAT, thanks for that! we need it to understand and property make tutorials and examples... > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Wed Jan 1 16:44:28 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Wed, 1 Jan 2020 11:44:28 -0400 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: HAPPY NEW YEAR! El mi?., 1 de ene. de 2020 a la(s) 11:04, escribi?: > > Happy *20 ? (100 + 1)* fer ye all. > THAT's was funny! > > ZxMarce. > PLEASE still the odbc are not working in DB2 neither sybase databases!!!! benoit make changes that alter significativelly the behaviour and since 3.10 does not work! > On Jan 1, 2020, at 11:37, "Beno?t Minisini" wrote: >> >> Happy new year to every Gambas user! >> >> ...and happy circumcision for all christians. :-) >> >> It's 2020 now, so you must be careful and not write years on your >> official documents with two digits anymore. Otherwise some evil people >> may falsify them by adding two more digits after! >> >> Yeah, 2020 and still parano?d... >> >> Let that new year be full of peace and love for you and your family. And >> full of Gambas for you and eventually your family. :-) >> >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lapisdecor at gmail.com Wed Jan 1 17:01:47 2020 From: lapisdecor at gmail.com (Luis Louro) Date: Wed, 1 Jan 2020 16:01:47 +0000 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: Happy New Year to you all! A quarta, 1/01/2020, 15:45, PICCORO McKAY Lenz escreveu: > HAPPY NEW YEAR! > > El mi?., 1 de ene. de 2020 a la(s) 11:04, escribi?: > >> >> Happy *20 ? (100 + 1)* fer ye all. >> > THAT's was funny! > > >> >> ZxMarce. >> > > PLEASE still the odbc are not working in DB2 neither sybase databases!!!! > benoit make changes that alter significativelly the behaviour and since > 3.10 does not work! > > >> On Jan 1, 2020, at 11:37, "Beno?t Minisini" wrote: >>> >>> Happy new year to every Gambas user! >>> >>> ...and happy circumcision for all christians. :-) >>> >>> It's 2020 now, so you must be careful and not write years on your >>> official documents with two digits anymore. Otherwise some evil people >>> may falsify them by adding two more digits after! >>> >>> Yeah, 2020 and still parano?d... >>> >>> Let that new year be full of peace and love for you and your family. And >>> full of Gambas for you and eventually your family. :-) >>> >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier.cruilles at yahoo.fr Wed Jan 1 18:33:15 2020 From: olivier.cruilles at yahoo.fr (Linus) Date: Wed, 1 Jan 2020 12:33:15 -0500 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: Happy New Year to all Gambas users. Thank you again for your amazing language. Olivier Cruilles > Le 1 janv. 2020 ? 11:01, Luis Louro a ?crit : > > Happy New Year to you all! -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Jan 1 20:34:55 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 1 Jan 2020 20:34:55 +0100 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: HAppy New Year to all Gambas Users ! :-D HANYTAGU = ("Only" in indonesian) LOL From jussi.lahtinen at gmail.com Wed Jan 1 23:35:22 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 2 Jan 2020 00:35:22 +0200 Subject: [Gambas-user] Happy new year In-Reply-To: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: The same! But circumcision..!? Jussi On Wed, Jan 1, 2020 at 4:37 PM Beno?t Minisini wrote: > Happy new year to every Gambas user! > > ...and happy circumcision for all christians. :-) > > It's 2020 now, so you must be careful and not write years on your > official documents with two digits anymore. Otherwise some evil people > may falsify them by adding two more digits after! > > Yeah, 2020 and still parano?d... > > Let that new year be full of peace and love for you and your family. And > full of Gambas for you and eventually your family. :-) > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 2 00:03:19 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 2 Jan 2020 00:03:19 +0100 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> Message-ID: <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> Le 01/01/2020 ? 23:35, Jussi Lahtinen a ?crit?: > The same! > But circumcision..!? > > > Jussi https://en.wikipedia.org/wiki/Feast_of_the_Circumcision_of_Christ :-) -- Beno?t Minisini From jussi.lahtinen at gmail.com Thu Jan 2 00:44:03 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 2 Jan 2020 01:44:03 +0200 Subject: [Gambas-user] Happy new year In-Reply-To: <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> Message-ID: In Finland winter and summer solstice celebrations have historically nothing to do with Christianity and more I learn about the current way the less I like it... I don't even want to imagine how circumscisions are celebrated. Jussi On Thu, Jan 2, 2020 at 1:03 AM Beno?t Minisini wrote: > Le 01/01/2020 ? 23:35, Jussi Lahtinen a ?crit : > > The same! > > But circumcision..!? > > > > > > Jussi > > https://en.wikipedia.org/wiki/Feast_of_the_Circumcision_of_Christ > > :-) > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Jan 2 13:01:48 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 2 Jan 2020 13:01:48 +0100 Subject: [Gambas-user] Position of inherited classes in the IDE project view Message-ID: Hi, just searched a class in the IDE and did not find it where it really is. I had to go in the terminal and do a find | grep -i $xyz to find the place where it resides in the file system. Then vi .src/where/it/really/is/xyz.class to look in the code to see that it inherits abc.class. But abc class resides in .src/abc/deep/down/abc.class Oh boy! There it is! .src/abc/deep/down/abc->xyz Is there the possibility to switch of the behavior of the IDE to show classes under the class they inherit from but instead show the real position in the file system? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Thu Jan 2 13:28:01 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 2 Jan 2020 13:28:01 +0100 Subject: [Gambas-user] Position of inherited classes in the IDE project view In-Reply-To: References: Message-ID: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> Le 02/01/2020 ? 13:01, Christof Thalhofer a ?crit?: > Hi, > > just searched a class in the IDE and did not find it where it really is. > > I had to go in the terminal and do a > > find | grep -i $xyz > > to find the place where it resides in the file system. > > Then > > vi .src/where/it/really/is/xyz.class > > to look in the code to see that it inherits abc.class. > > But abc class resides in > .src/abc/deep/down/abc.class > > Oh boy! There it is! > .src/abc/deep/down/abc->xyz > > Is there the possibility to switch of the behavior of the IDE to show > classes under the class they inherit from but instead show the real > position in the file system? > > Alles Gute > > Christof Thalhofer > When a class is not displayed in the tree where it actually is, its icon has a black triangle on its bottom right. You just have to display the properties of the file to get its actual place. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Thu Jan 2 14:01:09 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 2 Jan 2020 23:31:09 +1030 Subject: [Gambas-user] Position of inherited classes in the IDE project view In-Reply-To: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> References: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> Message-ID: OK! This one has got me absolutely enthralled. I'll cut to the bottom for what intrigues me > When a class is not displayed in the tree where it actually is, its icon > has a black triangle on its bottom right. You just have to display the > properties of the file to get its actual place. I have never seen this, BUT from > When a class is not displayed in the tree where it actually is [1] I am inferring that when the item was added to the treeview, its' "parent" did not exist, for one reason or other, no matter. Anyway, to get around this you add it somewhere with the little black triangle. We do a similar thing when a node is added to a treeview when the parent does not exist by sticking it under an (created if necessary) "unknown" root branch. Now (again, I haven't seen this in the IDE so I am struggling a bit here) when you said > You just have to display the properties of the file to get its actual place. How does this to work? Does it update the treeview or does it just show a popup with the information? This problem of trying to add a child node before its' parent has irritated me for years and I've never found an adequate solution. regards bruce [1] Begorragh! That was some english that needed some serious digestion. :-) From g4mba5 at gmail.com Thu Jan 2 14:19:38 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 2 Jan 2020 14:19:38 +0100 Subject: [Gambas-user] Position of inherited classes in the IDE project view In-Reply-To: References: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> Message-ID: <52b741b1-5e8f-c249-756a-53c70cdceb8c@gmail.com> Le 02/01/2020 ? 14:01, Bruce a ?crit?: > OK! This one has got me absolutely enthralled. > > I'll cut to the bottom for what intrigues me > >> When a class is not displayed in the tree where it actually is, its >> icon has a black triangle on its bottom right. You just have to >> display the properties of the file to get its actual place. > > I have never seen this, BUT from > > > When a class is not displayed in the tree where it actually is [1] > > I am inferring that when the item was added to the treeview, its' > "parent" did not exist, for one reason or other, no matter. Anyway, to > get around this you add it somewhere with the little black triangle. We > do a similar thing when a node is added to a treeview when the parent > does not exist by sticking it under an (created if necessary) "unknown" > root branch. > ... Mmm... yes? no? It's just that when a class A inherits a class B, its tree item parent is the class B item, not its parent directory item. And the tree is filled in two passes. The second pass allows to insert child classes there were not inserted first because its parent was not yet inserted in the tree. Regards, -- Beno?t Minisini From chrisml at deganius.de Thu Jan 2 15:41:10 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 2 Jan 2020 15:41:10 +0100 Subject: [Gambas-user] Position of inherited classes in the IDE project view In-Reply-To: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> References: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> Message-ID: Am 02.01.20 um 13:28 schrieb Beno?t Minisini: >> Oh boy! There it is! >> .src/abc/deep/down/abc->xyz >> >> Is there the possibility to switch off the behavior of the IDE to show >> classes under the class they inherit from but instead show the real >> position in the file system? > > When a class is not displayed in the tree where it actually is, its icon > has a black triangle on its bottom right. You just have to display the > properties of the file to get its actual place. But: I don't see the class. It is not displayed at all. Let's have a look at the filesystem of a project of mine: > . > ??? Controller > ??? ??? Subnav > ??? ??? ??? CSubnav.class > . > . > ??? Views > ??? ??? Widgets > ??? ??? ??? CTabLeftStandard.class CTabLeftStandard is a Widget. Views->Widgets->CTabLeftStandard.class inherits CSubnav.class. In the IDE it is displayed under Subnav, with a small Triangle. But if Controller->Subnav is not expanded when I am currently working in Views->Widgets I do not see CTabLeftStandard. If the last time I worked with it was three months ago I remember that it exists but I don't know the name any more and I do not remember that it inherits CSubnav! I am lost! I have to click through the tree and search or I have to got into the terminal and search like: "find ./.src | grep -i left" For me it is illogical that a widget, which resides under widgets is not visible there. In earlier versions of the IDE the project view on the left side reflected the filesystem. That was way better for me. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: cannot-see-my-widget.png Type: image/png Size: 14601 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: oh-boy-there-it-is.png Type: image/png Size: 33265 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Thu Jan 2 15:48:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 2 Jan 2020 15:48:47 +0100 Subject: [Gambas-user] Position of inherited classes in the IDE project view In-Reply-To: References: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> Message-ID: <556fab16-fd02-10dc-a086-bfc4450a3f22@gmail.com> Le 02/01/2020 ? 15:41, Christof Thalhofer a ?crit?: > Am 02.01.20 um 13:28 schrieb Beno?t Minisini: > >>> Oh boy! There it is! >>> .src/abc/deep/down/abc->xyz >>> >>> Is there the possibility to switch off the behavior of the IDE to show >>> classes under the class they inherit from but instead show the real >>> position in the file system? >> >> When a class is not displayed in the tree where it actually is, its icon >> has a black triangle on its bottom right. You just have to display the >> properties of the file to get its actual place. > > But: I don't see the class. It is not displayed at all. Let's have a > look at the filesystem of a project of mine: > >> . >> ??? Controller >> ??? ??? Subnav >> ??? ??? ??? CSubnav.class >> . >> . >> ??? Views >> ??? ??? Widgets >> ??? ??? ??? CTabLeftStandard.class > > CTabLeftStandard is a Widget. > > Views->Widgets->CTabLeftStandard.class inherits CSubnav.class. > > In the IDE it is displayed under Subnav, with a small Triangle. > > But if Controller->Subnav is not expanded when I am currently working in > Views->Widgets I do not see CTabLeftStandard. > > If the last time I worked with it was three months ago I remember that > it exists but I don't know the name any more and I do not remember that > it inherits CSubnav! I am lost! I have to click through the tree and > search or I have to got into the terminal and search like: > > "find ./.src | grep -i left" > > For me it is illogical that a widget, which resides under widgets is not > visible there. > > In earlier versions of the IDE the project view on the left side > reflected the filesystem. That was way better for me. > > > Alles Gute > > Christof Thalhofer > I don't understand what you are talking about. I see the inherited classes even if their parent folder is not expanded. Please send your project so that I understand. By the way, I can make an option to not display inherited classes under their parent class. -- Beno?t Minisini From chrisml at deganius.de Thu Jan 2 16:00:34 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 2 Jan 2020 16:00:34 +0100 Subject: [Gambas-user] Position of inherited classes in the IDE project view In-Reply-To: <556fab16-fd02-10dc-a086-bfc4450a3f22@gmail.com> References: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> <556fab16-fd02-10dc-a086-bfc4450a3f22@gmail.com> Message-ID: Am 02.01.20 um 15:48 schrieb Beno?t Minisini: > I don't understand what you are talking about. I see the inherited > classes even if their parent folder is not expanded. What I am doing wrong, then? 1) Did you look at the images? > Please send your project so that I understand. I can do that if neccessary after 1). :-) But I have to send it private. > By the way, I can make an option to not display inherited classes under > their parent class. Yes, I would like that very much! Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From gambas.fr at gmail.com Thu Jan 2 16:55:21 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 2 Jan 2020 16:55:21 +0100 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> Message-ID: What is true is that I move away more and more from religion .... I am far too Cartesian to manage to follow. Finally Santa Claus on his sleigh suits me well, and we only talk about it once a year :-D. Please note that I am not a believer but I love to study religions. And the more I study ... well the less I believe From rwe-sse at osnanet.de Thu Jan 2 17:26:44 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 2 Jan 2020 17:26:44 +0100 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> Message-ID: <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> Am 02.01.20 um 16:55 schrieb Fabien Bodard: > Please note that I am not a believer but I love to study religions. > And the more I study ... well the less I believe > > That's the tragedy in religious studies... Rolf From gambas.fr at gmail.com Fri Jan 3 08:29:36 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 3 Jan 2020 08:29:36 +0100 Subject: [Gambas-user] Happy new year In-Reply-To: <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> Message-ID: In the past, a religious sister, taught me the word of the Lord: You are my sheep, I am your shepherd. I'm not a sheep and I know where the edge of the cliff is :-/ Le jeu. 2 janv. 2020 ? 17:34, Rolf-Werner Eilert a ?crit : > > Am 02.01.20 um 16:55 schrieb Fabien Bodard: > > > Please note that I am not a believer but I love to study religions. > > And the more I study ... well the less I believe > > > > > > That's the tragedy in religious studies... > > Rolf > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -- Fabien Bodard Gambas Basic : http://gambas.sf.net GambasForge : http://www.gambasforge.org NEW discourse Gambas Forum : https://gambas.discourse.group/ From gambas.fr at gmail.com Fri Jan 3 08:31:42 2020 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 3 Jan 2020 08:31:42 +0100 Subject: [Gambas-user] Wait Next Message-ID: Hi, Benoit Can you explain where to use the new KeyWord WAIT NEXT ? and how it need to be used ? -- Fabien Bodard Gambas Basic : http://gambas.sf.net GambasForge : http://www.gambasforge.org NEW discourse Gambas Forum : https://gambas.discourse.group/ From chrisml at deganius.de Fri Jan 3 08:34:20 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 3 Jan 2020 08:34:20 +0100 Subject: [Gambas-user] Position of inherited classes in the IDE project view In-Reply-To: <556fab16-fd02-10dc-a086-bfc4450a3f22@gmail.com> References: <69c19f74-fba9-085c-8eeb-217b43ca8ed3@gmail.com> <556fab16-fd02-10dc-a086-bfc4450a3f22@gmail.com> Message-ID: Am 02.01.20 um 15:48 schrieb Beno?t Minisini: > By the way, I can make an option to not display inherited classes under > their parent class. Should I write a bugtracker request for that? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Fri Jan 3 14:41:52 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 3 Jan 2020 14:41:52 +0100 Subject: [Gambas-user] Wait Next In-Reply-To: References: Message-ID: <01c299e1-0b5e-a557-3f5e-c100736c19e5@gmail.com> Le 03/01/2020 ? 08:31, Fabien Bodard a ?crit?: > Hi, Benoit > > > Can you explain where to use the new KeyWord WAIT NEXT ? > > and how it need to be used ? > 'WAIT NEXT' is an instruction that waits until at least one event is processed. It allows to implement an event loop. Noone should need it normally outside of a component. -- Beno?t Minisini From herberthguzman at gmail.com Fri Jan 3 23:19:17 2020 From: herberthguzman at gmail.com (herberth guzman) Date: Fri, 3 Jan 2020 16:19:17 -0600 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> Message-ID: Happy New Year! Regards El vie., 3 ene. 2020 1:30 a. m., Fabien Bodard escribi?: > In the past, a religious sister, taught me the word of the Lord: You > are my sheep, I am your shepherd. > > I'm not a sheep and I know where the edge of the cliff is :-/ > > Le jeu. 2 janv. 2020 ? 17:34, Rolf-Werner Eilert a > ?crit : > > > > Am 02.01.20 um 16:55 schrieb Fabien Bodard: > > > > > Please note that I am not a believer but I love to study religions. > > > And the more I study ... well the less I believe > > > > > > > > > > That's the tragedy in religious studies... > > > > Rolf > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > -- > Fabien Bodard > > Gambas Basic : http://gambas.sf.net > GambasForge : http://www.gambasforge.org > NEW discourse Gambas Forum : https://gambas.discourse.group/ > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mati86dl at gmail.com Sat Jan 4 00:46:14 2020 From: mati86dl at gmail.com (Matias De lellis) Date: Fri, 3 Jan 2020 20:46:14 -0300 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> Message-ID: Happy new year Beno?t, and everyone, =) In particular, I don't know what your current employment situation is, but I hope you have progressed and will allow you to continue with Gambas! :) My best wishes to all!. Regards, Matias. El vie., 3 ene. 2020 a las 19:20, herberth guzman () escribi?: > Happy New Year! > > Regards > > > El vie., 3 ene. 2020 1:30 a. m., Fabien Bodard > escribi?: > >> In the past, a religious sister, taught me the word of the Lord: You >> are my sheep, I am your shepherd. >> >> I'm not a sheep and I know where the edge of the cliff is :-/ >> >> Le jeu. 2 janv. 2020 ? 17:34, Rolf-Werner Eilert a >> ?crit : >> > >> > Am 02.01.20 um 16:55 schrieb Fabien Bodard: >> > >> > > Please note that I am not a believer but I love to study religions. >> > > And the more I study ... well the less I believe >> > > >> > > >> > >> > That's the tragedy in religious studies... >> > >> > Rolf >> > >> > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> >> -- >> Fabien Bodard >> >> Gambas Basic : http://gambas.sf.net >> GambasForge : http://www.gambasforge.org >> NEW discourse Gambas Forum : https://gambas.discourse.group/ >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Jan 4 00:49:32 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 4 Jan 2020 00:49:32 +0100 Subject: [Gambas-user] Happy new year In-Reply-To: References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> Message-ID: <02d0d700-a6a4-cdb3-f04a-ad7b28b3ede8@gmail.com> Le 04/01/2020 ? 00:46, Matias De lellis a ?crit?: > Happy new year Beno?t, and everyone, =) > In particular, I don't know what your current employment situation is, > but I hope you have progressed and will allow you to continue with > Gambas! :) > > My best wishes to all!. > Regards, > Matias. > I'm still working for my old boss as subcontractor, at least for three months. I'm now my own boss, so you can hire me if you want. :-) My best wishes. -- Beno?t Minisini From chrisml at deganius.de Sat Jan 4 10:03:04 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jan 2020 10:03:04 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <0e95c4da-cc54-bae6-ce89-3f75f72932a0@deganius.de> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <031053be-41f5-295e-c102-ab926bdbf6ad@gmail.com> <07c068f6-4869-4337-8d76-f2b4a35128a7@deganius.de> <1bf46820-6587-7910-1ee2-f449c0bf6f9f@deganius.de> <0e95c4da-cc54-bae6-ce89-3f75f72932a0@deganius.de> Message-ID: <6b9a7d8d-1cfc-4e75-db12-559819228ba9@deganius.de> There is a new merge request for gb.test: https://gitlab.com/gambas/gambas/merge_requests/122 It's just a small fix. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat Jan 4 11:40:57 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jan 2020 11:40:57 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> Message-ID: <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> Hi Beno?t. Thank you for the merge! One unresoved problem is: Testclasses (which inherit UnitTest) in any project have to be exported. The method Unittest.GetAllTestContainerNames() searches for Testclasses but does not find them if they are not exported and *as long as gb.test is a component*. Could you please have a look at the code and comment there? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Jan 4 11:59:55 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 4 Jan 2020 11:59:55 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> Message-ID: Le 04/01/2020 ? 11:40, Christof Thalhofer a ?crit?: > Hi Beno?t. Thank you for the merge! > > One unresoved problem is: Testclasses (which inherit UnitTest) in any > project have to be exported. > > The method Unittest.GetAllTestContainerNames() searches for Testclasses > but does not find them if they are not exported and *as long as gb.test > is a component*. Could you please have a look at the code and comment there? > > Alles Gute > > Christof Thalhofer > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Hi, Actually Class.Stat() can access any class, exported or not. To get the list of classes in the current running project, you have to browse the "..." directory. ("..." means the current project directory, or the current executable). That way, you should be able to find all classes that inherit UnitTest. -- Beno?t Minisini From adamnt42 at gmail.com Sat Jan 4 12:06:28 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 4 Jan 2020 21:36:28 +1030 Subject: [Gambas-user] Totally off topic. But ENGRISCH! Message-ID: I have been today, attempting to read the latest QT5 online technical documentation. Well, at least some of it. So far it is making as much sense as trying to compare an iceberg to a nomadic Chilean chopstick maker. Anyway, happy 2020 vision(s) to you all. b From chrisml at deganius.de Sat Jan 4 14:30:26 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jan 2020 14:30:26 +0100 Subject: [Gambas-user] gb.test In-Reply-To: References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> Message-ID: <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> Am 04.01.20 um 11:59 schrieb Beno?t Minisini: > Actually Class.Stat() can access any class, exported or not. > To get the list of classes in the current running project, you have to > browse the "..." directory. ("..." means the current project directory, > or the current executable). > > That way, you should be able to find all classes that inherit UnitTest. I changed Unittest to scan .../.gambas and have tested it out now. Please merge https://gitlab.com/gambas/gambas/merge_requests/123 If a project uses gb.test *as component* Unittest does not find a testclass inside the project except the testclass is exported. Please try it out. Steps to reproduce: Unpack comp/src/gb.test/unittesthelloworld-0.0.6.tar.gz Open that project and hit F5. See that the tests run and report in the console. Then edit the class _TestHello and comment out "Export". Hit F5. See that tests fail ("0..0") because Unittest did not find any testclass. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat Jan 4 14:52:50 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jan 2020 14:52:50 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> Message-ID: Am 04.01.20 um 14:30 schrieb Christof Thalhofer: > Please merge https://gitlab.com/gambas/gambas/merge_requests/123 Argh, this one was corrupted, fixed in: https://gitlab.com/gambas/gambas/merge_requests/124 Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat Jan 4 19:08:35 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jan 2020 19:08:35 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: References: Message-ID: Am 01.01.20 um 14:41 schrieb PICCORO McKAY Lenz: > If all the data is transferred with pipelines, this implementation is > not scalable as such, I do not understand as for example, php that is > interpreted is so fast and popular instead of gambas, which is what > makes php faster, we know that php It does not run on threads. I am on the way to rewrite a website originally written in PHP to Gambas. Now I am as far that I can compare the performance of both languages quite a bit by running Apache Benchmark against the old code and the new, written in Gambas (which nearly does the same). The code loads data from a Postgresql database (15 queries), loads and fills about 30 templates, also creates HTML from texts written in Markdown and sticks that all together. Also it loads the stats of 12 images to create HTML Image Tags with width and height. The sizes of both webpages differs a bit as I am not ready at the moment. At a glance I can report that Gambas (CGI) is not very far from PHP (mod_php) concerning performance. At best PHP is 1.5 or at maximum two times as fast as Gambas. This is PHP (PHP 7.0.33-14+0~20191218.25+debian9~1.gbpae1889) running on Apache as mod_php: > christof at tof-x230 ~/programming/webseiten/deganius.de ?master ? ab -n 100 -c 10 http://deglocal.com/ > This is ApacheBench, Version 2.3 <$Revision: 1807734 $> > Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ > Licensed to The Apache Software Foundation, http://www.apache.org/ > > Benchmarking deglocal.com (be patient).....done > > > Server Software: Apache/2.4.25 > Server Hostname: deglocal.com > Server Port: 80 > > Document Path: / > Document Length: 51803 bytes > > Concurrency Level: 10 > Time taken for tests: 3.556 seconds > Complete requests: 100 > Failed requests: 0 > Total transferred: 5206900 bytes > HTML transferred: 5180300 bytes > Requests per second: 28.12 [#/sec] (mean) > Time per request: 355.574 [ms] (mean) > Time per request: 35.557 [ms] (mean, across all concurrent requests) > Transfer rate: 1430.04 [Kbytes/sec] received > > Connection Times (ms) > min mean[+/-sd] median max > Connect: 0 0 0.1 0 0 > Processing: 138 349 54.6 358 474 > Waiting: 135 336 51.9 347 463 > Total: 138 349 54.6 358 474 > > Percentage of the requests served within a certain time (ms) > 50% 358 > 66% 376 > 75% 387 > 80% 392 > 90% 413 > 95% 421 > 98% 449 > 99% 474 > 100% 474 (longest request) Interestingly this result is achieved after some runs of PHP, the first one causes this: > Percentage of the requests served within a certain time (ms) > 50% 375 > 66% 406 > 75% 428 > 80% 451 > 90% 524 > 95% 605 > 98% 806 > 99% 962 > 100% 962 (longest request) And here is Gambas 3.9 on the same machine: > christof at tof-x230 ~/programming/webseiten/deganius.de ?develop? ? ab -n 100 -c 10 http://deglocal.com/ > This is ApacheBench, Version 2.3 <$Revision: 1807734 $> > Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ > Licensed to The Apache Software Foundation, http://www.apache.org/ > > Benchmarking deglocal.com (be patient).....done > > > Server Software: Apache/2.4.25 > Server Hostname: deglocal.com > Server Port: 80 > > Document Path: / > Document Length: 47307 bytes > > Concurrency Level: 10 > Time taken for tests: 5.114 seconds > Complete requests: 100 > Failed requests: 0 > Total transferred: 4755100 bytes > HTML transferred: 4730700 bytes > Requests per second: 19.55 [#/sec] (mean) > Time per request: 511.389 [ms] (mean) > Time per request: 51.139 [ms] (mean, across all concurrent requests) > Transfer rate: 908.05 [Kbytes/sec] received > > Connection Times (ms) > min mean[+/-sd] median max > Connect: 0 0 0.9 0 5 > Processing: 292 502 57.5 512 628 > Waiting: 287 438 51.4 449 563 > Total: 292 503 57.6 512 629 > > Percentage of the requests served within a certain time (ms) > 50% 512 > 66% 531 > 75% 544 > 80% 547 > 90% 575 > 95% 587 > 98% 609 > 99% 629 > 100% 629 (longest request) ---------------------------------------------------------------------- My conclusion: When I compare the pain to program in PHP with the joy of programming in Gambas, my opinion is clear: Gambas is way better than PHP. It lets me develop easier, faster and I can create better code which is more secure. And in the example Gambas is called by Apache via CGI! If I'm done with rewriting, I'd like to try to develop a FCGI-wrapper or test with a generic one. Also intelligent caching can speedup things a lot (which can be seen in the result of PHP on further runs). And so my answer to this: > php that is interpreted is so fast and popular instead of gambas Is: No Picco, you're not right here, concerning performance. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Jan 4 19:32:44 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 4 Jan 2020 19:32:44 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: References: Message-ID: <48ae85d6-9428-6759-f875-46d7092f0ee4@gmail.com> Le 04/01/2020 ? 19:08, Christof Thalhofer a ?crit?: > Am 01.01.20 um 14:41 schrieb PICCORO McKAY Lenz: > >> If all the data is transferred with pipelines, this implementation is >> not scalable as such, I do not understand as for example, php that is >> interpreted is so fast and popular instead of gambas, which is what >> makes php faster, we know that php It does not run on threads. > > I am on the way to rewrite a website originally written in PHP to Gambas. > > ... Did you reimplement your website with one Gambas executable as a CGI script? Have you used 'gb.web.form'? -- Beno?t Minisini From chrisml at deganius.de Sat Jan 4 19:41:52 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jan 2020 19:41:52 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: <48ae85d6-9428-6759-f875-46d7092f0ee4@gmail.com> References: <48ae85d6-9428-6759-f875-46d7092f0ee4@gmail.com> Message-ID: <61af2fcf-853d-971c-3a83-96d79409c418@deganius.de> Am 04.01.20 um 19:32 schrieb Beno?t Minisini: > Did you reimplement your website with one Gambas executable as a CGI > script? Yes. But it also loads a library. > Have you used 'gb.web.form'? No. I'm working with Gambas 3.9 as this is currently installed at the Hostsharing servers. gb.web.form came later. I will try out gb.web.form later, when Debain Buster is on the servers. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Jan 4 20:43:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 4 Jan 2020 20:43:43 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: <61af2fcf-853d-971c-3a83-96d79409c418@deganius.de> References: <48ae85d6-9428-6759-f875-46d7092f0ee4@gmail.com> <61af2fcf-853d-971c-3a83-96d79409c418@deganius.de> Message-ID: Le 04/01/2020 ? 19:41, Christof Thalhofer a ?crit?: > Am 04.01.20 um 19:32 schrieb Beno?t Minisini: > >> Did you reimplement your website with one Gambas executable as a CGI >> script? > > Yes. But it also loads a library. > >> Have you used 'gb.web.form'? > > No. I'm working with Gambas 3.9 as this is currently installed at the > Hostsharing servers. gb.web.form came later. > > I will try out gb.web.form later, when Debain Buster is on the servers. > > Alles Gute > > Christof Thalhofer > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Don't use 'gb.web.form' then. Wait for 'gb.web.form2'. :-) According to your stats, the Gambas version seems to be slower than the php one. It should not be very different, unless you have done something in your code that is slower in Gambas than in php, but then I'm curious to know what it is exactly. Regards, -- Beno?t Minisini From chrisml at deganius.de Sat Jan 4 22:52:22 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 4 Jan 2020 22:52:22 +0100 Subject: [Gambas-user] Future of webform component In-Reply-To: References: <48ae85d6-9428-6759-f875-46d7092f0ee4@gmail.com> <61af2fcf-853d-971c-3a83-96d79409c418@deganius.de> Message-ID: <503298bd-fcdb-1c56-fa6b-c973d2024bbe@deganius.de> Am 04.01.20 um 20:43 schrieb Beno?t Minisini: > Don't use 'gb.web.form' then. Wait for 'gb.web.form2'. :-) Ok, thank you! :-) > According to your stats, the Gambas version seems to be slower than the > php one. It should not be very different, unless you have done something > in your code that is slower in Gambas than in php, but then I'm curious > to know what it is exactly. Yes, that may be. I suspect my incarnation of Markdown Markup.class. It is called several times and there I did some things which are likely to be a waste of CPU. But I have to go on, profiling and searching for the last milliseconds can be done later. In the end I am glad that - as it looks like - there is no obstacle for me to use Gambas on the web server. I especially like the simplicity of debugging and the elegant IDE. When the job is done I will present it to the Hostsharing members and write a blog article for their website. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sun Jan 5 00:44:18 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 5 Jan 2020 00:44:18 +0100 Subject: [Gambas-user] gb.test In-Reply-To: References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> Message-ID: <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> Le 04/01/2020 ? 14:52, Christof Thalhofer a ?crit?: > Am 04.01.20 um 14:30 schrieb Christof Thalhofer: > >> Please merge https://gitlab.com/gambas/gambas/merge_requests/123 > > Argh, this one was corrupted, fixed in: > https://gitlab.com/gambas/gambas/merge_requests/124 > > > Alles Gute > > Christof Thalhofer > Class.Stat() is implemented in 'gb.util'. When you write a component project, the components checked in the "Components" tab are just the component loaded when you run the project. You must indicate that the component *depends* on 'gb.util' in the "Information" tab, by clicking on the "Require" button. Component dependencies are not necessarily the same thing as components needed to run the component project. For example a component may require any component that implements GUI, and its project will use the 'gb.qt5' component for testing purpose. These dependencies are used by the IDE to statically create the list of all components that will be loaded by the project at startup. Yes, the dependencies of a project are static, not dynamic. If the list created by the IDE is incorrect, you will usually get "unknown class" and/or "unknown symbol" errors at runtime. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sun Jan 5 00:45:36 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 5 Jan 2020 00:45:36 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> Message-ID: <077452aa-19fb-a022-5a59-cc1fe18e2e7b@gmail.com> Le 05/01/2020 ? 00:44, Beno?t Minisini a ?crit?: > Le 04/01/2020 ? 14:52, Christof Thalhofer a ?crit?: >> Am 04.01.20 um 14:30 schrieb Christof Thalhofer: >> >>> Please merge https://gitlab.com/gambas/gambas/merge_requests/123 >> >> Argh, this one was corrupted, fixed in: >> https://gitlab.com/gambas/gambas/merge_requests/124 >> >> >> Alles Gute >> >> Christof Thalhofer >> > > Class.Stat() is implemented in 'gb.util'. > > When you write a component project, the components checked in the > "Components" tab are just the component loaded when you run the project. > > You must indicate that the component *depends* on 'gb.util' in the > "Information" tab, by clicking on the "Require" button. > > Component dependencies are not necessarily the same thing as components > needed to run the component project. > > For example a component may require any component that implements GUI, > and its project will use the 'gb.qt5' component for testing purpose. > > These dependencies are used by the IDE to statically create the list of > all components that will be loaded by the project at startup. > > Yes, the dependencies of a project are static, not dynamic. If the list > created by the IDE is incorrect, you will usually get "unknown class" > and/or "unknown symbol" errors at runtime. > > Regards, > By the way, it seems that the notification mailing-list does not receive GitLab pushes anymore. No idea what is in fault. -- Beno?t Minisini From chrisml at deganius.de Sun Jan 5 11:20:08 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 5 Jan 2020 11:20:08 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> Message-ID: <23e2831f-b9af-9888-9950-59de89f8bdd6@deganius.de> Am 05.01.20 um 00:44 schrieb Beno?t Minisini: > Class.Stat() is implemented in 'gb.util'. > > When you write a component project, the components checked in the > "Components" tab are just the component loaded when you run the project. > > You must indicate that the component *depends* on 'gb.util' in the > "Information" tab, by clicking on the "Require" button. > > Component dependencies are not necessarily the same thing as components > needed to run the component project. > > For example a component may require any component that implements GUI, > and its project will use the 'gb.qt5' component for testing purpose. > > These dependencies are used by the IDE to statically create the list of > all components that will be loaded by the project at startup. > > Yes, the dependencies of a project are static, not dynamic. If the list > created by the IDE is incorrect, you will usually get "unknown class" > and/or "unknown symbol" errors at runtime. Ok thank you. I tried for a while. I wanted to use ClassStat to get nicer Classnames instead of just uppercase. Even if in .component of gb.test stands "Requires=gb.util" the testclasses cannot be found by ClassStat: ClassStat says: "Class not found" when Unittest is called from inside the project to be tested. *But this is not the main problem.* The main problem in my opinion is that Class.Load(sName) in GetAllTestContainerNames only works if the testclasses are exported and so these are visible and callable later on when the project is in production. I don't like that. There IMO we need a new form of class a la classname.test which is handled by the interpreter/compiler in a different way. My idea was, that not the IDE tests but the executable itself is able to test itself when compiled with debugging symbols and called in a special way. If you create and call unittesthelloworld.gambas you can see what I mean. It creates the testresults as TAP which can processed later for example with Tobi's harness in gb.test.tap and then displayed in different ways. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun Jan 5 14:26:22 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 5 Jan 2020 14:26:22 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <077452aa-19fb-a022-5a59-cc1fe18e2e7b@gmail.com> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> <077452aa-19fb-a022-5a59-cc1fe18e2e7b@gmail.com> Message-ID: <5fbafc31-add4-72e2-b5ba-00620cc09de6@deganius.de> Am 05.01.20 um 00:45 schrieb Beno?t Minisini: > By the way, it seems that the notification mailing-list does not receive > GitLab pushes anymore. No idea what is in fault. It seems to be a problem with GitLab. The ML works. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From mckaygerhard at gmail.com Thu Jan 9 13:42:49 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 9 Jan 2020 08:42:49 -0400 Subject: [Gambas-user] Future of webform component In-Reply-To: References: Message-ID: El s?b., 4 de ene. de 2020 a la(s) 14:09, Christof Thalhofer ( chrisml at deganius.de) escribi?: > And so my answer to this: > > php that is interpreted is so fast and popular instead of gambas > Is: No Picco, you're not right here, concerning performance. > Of course that was not using a framework, but .. yes, your mail was clear to me, BUT: your mail paste the overall analiltics and performance results.. (simple but enought) ... > And in the example Gambas is called by Apache via CGI! If I'm done with > rewriting, I'd like to try to develop a FCGI-wrapper or test with a > generic one. Also intelligent caching can speedup things a lot (which > can be seen in the result of PHP on further runs). > your tests (in the previous mail) are interesting to making an article.. must be integrated in the gambas wiki in some way!.. BUT: we need more diffusion of this issue, because if it is easy to program in shrimp but when we go to specific things and there is little time (scrum), finding problems is our rock in the shoe, is when we come to the mailing list but this means is say a little slow, so at the time of coding we need ... there our work stops until someone or ourselves appears the solution to the problem i make a wiki how to starting page for users BUT it's only theory and with minimal examples: http://gambaswiki.org/wiki/howto/getstartedwebgambas (WIP about that) that how to in the wiki pages was inspired in thos articles: 1) spanish only how to deploy (minimalilstic generic) http://qgqlochekone.blogspot.com/2017/03/gambas-como-publicar-web-how-to-deploy.html 2) staring and introductions: http://qgqlochekone.blogspot.com/2017/03/gambas-web-la-filosofia-web-vs-la.html others people here in the list that already speak spanish liked the article.. (in those days), of course there's some example uploaded by Benoit but not all the people are xpert to interprete the code.. and i try to make that more friendly to new developers.. yeah time are a issue when we are working and we have a problem with no quick solution at the eyes! > -- > Dies ist keine Signatur > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 9 13:47:10 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 9 Jan 2020 08:47:10 -0400 Subject: [Gambas-user] Totally off topic. But ENGRISCH! In-Reply-To: References: Message-ID: same behaviour happened with GTK3 when arrives! (that produces headaches to Benoit right?) the problem with QT now its that the north fo that framework seems are like the same as of .NET.. trying to overhead and cover all the things.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com El s?b., 4 de ene. de 2020 a la(s) 07:07, Bruce (adamnt42 at gmail.com) escribi?: > I have been today, attempting to read the latest QT5 online technical > documentation. > > Well, at least some of it. So far it is making as much sense as trying > to compare an iceberg to a nomadic Chilean chopstick maker. > > Anyway, happy 2020 vision(s) to you all. > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 9 13:49:43 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 9 Jan 2020 08:49:43 -0400 Subject: [Gambas-user] Happy new year In-Reply-To: <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> References: <706e726c-995e-a70c-b6d7-0688e36c98e3@gmail.com> <51712fe0-6dff-589b-22fa-678af97bc9d0@gmail.com> <13d209e3-fdda-b9d4-8384-f4f201856ce1@osnanet.de> Message-ID: El jue., 2 de ene. de 2020 a la(s) 12:34, Rolf-Werner Eilert ( rwe-sse at osnanet.de) escribi?: > Am 02.01.20 um 16:55 schrieb Fabien Bodard: > > And the more I study ... well the less I believe > ????????? > That's the tragedy in religious studies... > ????????? KAKAKAKAKAA CUACUACUACUAUC true reality! today! > > Rolf > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Thu Jan 9 13:50:56 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Thu, 9 Jan 2020 08:50:56 -0400 Subject: [Gambas-user] Wait Next In-Reply-To: <01c299e1-0b5e-a557-3f5e-c100736c19e5@gmail.com> References: <01c299e1-0b5e-a557-3f5e-c100736c19e5@gmail.com> Message-ID: i like that on every new lang feature.. could be a older equivalent code to implement.. El vie., 3 de ene. de 2020 a la(s) 09:42, Beno?t Minisini (g4mba5 at gmail.com) escribi?: > Le 03/01/2020 ? 08:31, Fabien Bodard a ?crit : > > Hi, Benoit > > > > > > Can you explain where to use the new KeyWord WAIT NEXT ? > > > > and how it need to be used ? > > > > 'WAIT NEXT' is an instruction that waits until at least one event is > processed. > > It allows to implement an event loop. Noone should need it normally > outside of a component. > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Jan 9 17:43:03 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 9 Jan 2020 17:43:03 +0100 Subject: [Gambas-user] How to Align.Justify Message-ID: I have a text which I want to print with Paint.DrawRichText(... Align.Justify) What I expect is text that has always a straight left and right border, i. e. it gets additional spaces between the words to justify it between the borders. Is that correct, or is it intended to do something else? In my program it always shows up simply leftbound. Rightbound and Center do run as expected. In the help, I find Align.Justify (gb.qt4) Const Justify As Integer = 4 Constant for justifying horizontally and centering vertically. Use it with TextEdit.Format.Alignment. And when I click on the link, I come to .texteditformat.alignment (gb.qt4)? This symbol does not exist. So what now? Thanks for your help! Rolf From bagonergi at gmail.com Thu Jan 9 19:05:44 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 9 Jan 2020 19:05:44 +0100 Subject: [Gambas-user] How to Align.Justify In-Reply-To: References: Message-ID: Il giorno gio 9 gen 2020 alle ore 17:44 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > I have a text which I want to print with > ... > Paint.DrawRichText(... Align.Justify) > ... > Thanks for your help! > I don't know if it can be useful, on the Software farm, in the Examples, there is the LoremReport program that prints justified. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 02:33:10 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Thu, 09 Jan 2020 16:33:10 -0900 Subject: [Gambas-user] New update has screwed everything up. In-Reply-To: References: Message-ID: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> Using Fedora 30 and 31. Whatever the new runtime update is that came in, it changed how Global variables are declared which is caused me a lot of grief. It is also changed printing Styles. Seems as though the font size is no longer accepted. So my printing of things like receipts for people, is horribly screwed up. Is there an easy fix to this so that it works like it did before? Or am I going to have to spend months rewriting print so that it works right again? ?Sent from TypeApp ? On Jan 9, 2020, 07:46, at 07:46, user-request at lists.gambas-basic.org wrote: >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: Future of webform component (PICCORO McKAY Lenz) > 2. Re: Totally off topic. But ENGRISCH! (PICCORO McKAY Lenz) > 3. Re: Happy new year (PICCORO McKAY Lenz) > 4. Re: Wait Next (PICCORO McKAY Lenz) > 5. How to Align.Justify (Rolf-Werner Eilert) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Thu, 9 Jan 2020 08:42:49 -0400 >From: PICCORO McKAY Lenz >To: Gambas Mailing List >Subject: Re: [Gambas-user] Future of webform component >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >El s?b., 4 de ene. de 2020 a la(s) 14:09, Christof Thalhofer ( >chrisml at deganius.de) escribi?: > >> And so my answer to this: >> > php that is interpreted is so fast and popular instead of gambas >> Is: No Picco, you're not right here, concerning performance. >> > >Of course that was not using a framework, but .. yes, your mail was >clear >to me, BUT: >your mail paste the overall analiltics and performance results.. >(simple >but enought) > >... > >> And in the example Gambas is called by Apache via CGI! If I'm done >with >> rewriting, I'd like to try to develop a FCGI-wrapper or test with a >> generic one. Also intelligent caching can speedup things a lot (which >> can be seen in the result of PHP on further runs). >> > >your tests (in the previous mail) are interesting to making an >article.. >must be integrated in the gambas wiki in some way!.. > >BUT: we need more diffusion of this issue, because if it is easy to >program >in shrimp but when we go to specific things and there is little time >(scrum), finding problems is our rock in the shoe, is when we come to >the >mailing list but this means is say a little slow, so at the time of >coding >we need ... there our work stops until someone or ourselves appears the >solution to the problem > >i make a wiki how to starting page for users BUT it's only theory and >with >minimal examples: > >http://gambaswiki.org/wiki/howto/getstartedwebgambas (WIP about that) > >that how to in the wiki pages was inspired in thos articles: > >1) spanish only how to deploy (minimalilstic generic) >http://qgqlochekone.blogspot.com/2017/03/gambas-como-publicar-web-how-to-deploy.html >2) staring and introductions: >http://qgqlochekone.blogspot.com/2017/03/gambas-web-la-filosofia-web-vs-la.html > >others people here in the list that already speak spanish liked the >article.. (in those days), of course there's some example uploaded by >Benoit but not all the people are xpert to interprete the code.. and i >try >to make that more friendly to new developers.. yeah time are a issue >when >we are working and we have a problem with no quick solution at the >eyes! > > >> -- >> Dies ist keine Signatur >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 2 >Date: Thu, 9 Jan 2020 08:47:10 -0400 >From: PICCORO McKAY Lenz >To: Gambas Mailing List >Subject: Re: [Gambas-user] Totally off topic. But ENGRISCH! >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >same behaviour happened with GTK3 when arrives! (that produces >headaches to >Benoit right?) > >the problem with QT now its that the north fo that framework seems are >like >the same as of .NET.. trying to overhead and cover all the things.. > > >Lenz McKAY Gerardo (PICCORO) >http://qgqlochekone.blogspot.com > > >El s?b., 4 de ene. de 2020 a la(s) 07:07, Bruce (adamnt42 at gmail.com) >escribi?: > >> I have been today, attempting to read the latest QT5 online technical >> documentation. >> >> Well, at least some of it. So far it is making as much sense as >trying >> to compare an iceberg to a nomadic Chilean chopstick maker. >> >> Anyway, happy 2020 vision(s) to you all. >> b >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 3 >Date: Thu, 9 Jan 2020 08:49:43 -0400 >From: PICCORO McKAY Lenz >To: Gambas Mailing List >Subject: Re: [Gambas-user] Happy new year >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >El jue., 2 de ene. de 2020 a la(s) 12:34, Rolf-Werner Eilert ( >rwe-sse at osnanet.de) escribi?: > >> Am 02.01.20 um 16:55 schrieb Fabien Bodard: >> > And the more I study ... well the less I believe >> >????????? > > >> That's the tragedy in religious studies... >> >????????? > >KAKAKAKAKAA CUACUACUACUAUC true reality! today! > > >> >> Rolf >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 4 >Date: Thu, 9 Jan 2020 08:50:56 -0400 >From: PICCORO McKAY Lenz >To: Gambas Mailing List >Subject: Re: [Gambas-user] Wait Next >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >i like that on every new lang feature.. could be a older equivalent >code to >implement.. > >El vie., 3 de ene. de 2020 a la(s) 09:42, Beno?t Minisini >(g4mba5 at gmail.com) >escribi?: > >> Le 03/01/2020 ? 08:31, Fabien Bodard a ?crit : >> > Hi, Benoit >> > >> > >> > Can you explain where to use the new KeyWord WAIT NEXT ? >> > >> > and how it need to be used ? >> > >> >> 'WAIT NEXT' is an instruction that waits until at least one event is >> processed. >> >> It allows to implement an event loop. Noone should need it normally >> outside of a component. >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 5 >Date: Thu, 9 Jan 2020 17:43:03 +0100 >From: Rolf-Werner Eilert >To: Gambas Mailing List >Subject: [Gambas-user] How to Align.Justify >Message-ID: >Content-Type: text/plain; charset=utf-8; format=flowed > >I have a text which I want to print with > >Paint.DrawRichText(... Align.Justify) > >What I expect is text that >has always a straight left >and right border, i. e. >it gets additional spaces >between the words to >justify it between the >borders. > >Is that correct, or is it intended to do something else? In my program >it always shows up simply leftbound. Rightbound and Center do run as >expected. In the help, I find > >Align.Justify (gb.qt4) > >Const Justify As Integer = 4 > >Constant for justifying horizontally and centering vertically. >Use it with TextEdit.Format.Alignment. > >And when I click on the link, I come to > >.texteditformat.alignment (gb.qt4)? >This symbol does not exist. > >So what now? > >Thanks for your help! > >Rolf > > > >------------------------------ > >Subject: Digest Footer > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- > > >------------------------------ > >End of User Digest, Vol 28, Issue 14 >************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 10 02:46:44 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 10 Jan 2020 02:46:44 +0100 Subject: [Gambas-user] New update has screwed everything up. In-Reply-To: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> References: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> Message-ID: <8f2001e5-8af9-0c7e-c514-3df7fe7e8934@gmail.com> Le 10/01/2020 ? 02:33, Steve G via User a ?crit?: > Using Fedora 30 and 31. Whatever the new runtime update is that came in, > it changed how Global variables are declared which is caused me a lot of > grief. It is also changed printing Styles. Seems as though the font size > is no longer accepted. So my printing of things like receipts for > people, is horribly screwed up. Is there an easy fix to this so that it > works like it did before? Or am I going to have to spend months > rewriting print so that it works right again? > Which version of Gambas do you have? Which version did you use before? What are you talking about? There is no change in "how Global variables are declared". No idea what you mean. Same thing for "the font size is no longer accepted". What does it mean? -- Beno?t Minisini From simonlebon54 at yahoo.com Fri Jan 10 03:09:57 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Thu, 09 Jan 2020 17:09:57 -0900 Subject: [Gambas-user] New update has screwed everything up. In-Reply-To: <8f2001e5-8af9-0c7e-c514-3df7fe7e8934@gmail.com> References: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> <8f2001e5-8af9-0c7e-c514-3df7fe7e8934@gmail.com> Message-ID: <359b7d58-02b5-4c2c-8d7b-654e6f21e8c9@yahoo.com> I don't have the version available right now but I will get that for you. The global variables the way they were being declared became read only so they had to be declared differently. As far as the print I have multiple problems with that. Font sizes have changed their either miniscule or huge. I am currently going through every single program that prints and adjusting the font size is down two to four points each. I also occasionally get blank prints. I do not recall what version I was using but I did a update for all software and this is when all these problems kicked in. I also recall seeing something about other people having problems with various aspects of the new updates. I'm very upset about this because it looks like nobody bothered testing it. Even though I know that could not be the case. Bottom line I'm having massive problems in print. Problems that were not there until after the update. Perhaps you thought you were cleaning something up not thinking that people might be using it that way. ?Sent from TypeApp ? On Jan 9, 2020, 16:46, at 16:46, "Beno?t Minisini" wrote: >Le 10/01/2020 ? 02:33, Steve G via User a ?crit?: >> Using Fedora 30 and 31. Whatever the new runtime update is that came >in, >> it changed how Global variables are declared which is caused me a lot >of >> grief. It is also changed printing Styles. Seems as though the font >size >> is no longer accepted. So my printing of things like receipts for >> people, is horribly screwed up. Is there an easy fix to this so that >it >> works like it did before? Or am I going to have to spend months >> rewriting print so that it works right again? >> > >Which version of Gambas do you have? > >Which version did you use before? > >What are you talking about? > >There is no change in "how Global variables are declared". No idea what > >you mean. > >Same thing for "the font size is no longer accepted". What does it >mean? > >-- >Beno?t Minisini -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 03:09:57 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Thu, 09 Jan 2020 17:09:57 -0900 Subject: [Gambas-user] New update has screwed everything up. In-Reply-To: <8f2001e5-8af9-0c7e-c514-3df7fe7e8934@gmail.com> References: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> <8f2001e5-8af9-0c7e-c514-3df7fe7e8934@gmail.com> Message-ID: <359b7d58-02b5-4c2c-8d7b-654e6f21e8c9@yahoo.com> I don't have the version available right now but I will get that for you. The global variables the way they were being declared became read only so they had to be declared differently. As far as the print I have multiple problems with that. Font sizes have changed their either miniscule or huge. I am currently going through every single program that prints and adjusting the font size is down two to four points each. I also occasionally get blank prints. I do not recall what version I was using but I did a update for all software and this is when all these problems kicked in. I also recall seeing something about other people having problems with various aspects of the new updates. I'm very upset about this because it looks like nobody bothered testing it. Even though I know that could not be the case. Bottom line I'm having massive problems in print. Problems that were not there until after the update. Perhaps you thought you were cleaning something up not thinking that people might be using it that way. ?Sent from TypeApp ? On Jan 9, 2020, 16:46, at 16:46, "Beno?t Minisini" wrote: >Le 10/01/2020 ? 02:33, Steve G via User a ?crit?: >> Using Fedora 30 and 31. Whatever the new runtime update is that came >in, >> it changed how Global variables are declared which is caused me a lot >of >> grief. It is also changed printing Styles. Seems as though the font >size >> is no longer accepted. So my printing of things like receipts for >> people, is horribly screwed up. Is there an easy fix to this so that >it >> works like it did before? Or am I going to have to spend months >> rewriting print so that it works right again? >> > >Which version of Gambas do you have? > >Which version did you use before? > >What are you talking about? > >There is no change in "how Global variables are declared". No idea what > >you mean. > >Same thing for "the font size is no longer accepted". What does it >mean? > >-- >Beno?t Minisini -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Fri Jan 10 06:07:09 2020 From: admin at allunix.ru (Admin) Date: Fri, 10 Jan 2020 12:07:09 +0700 Subject: [Gambas-user] Gambas on Windows Message-ID: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> I am using Gambas to write programs for Windows for quite some time now. It is excellent. Before I had to port everything to Visual Basic, then I used the way, which to this day is official - Cygwin. But for a long time now, since you don't even have to be a Windows Insider Preview member to install WSL on Windows 10, everybody can do it in one click using Windows Store, software just works. I just use simple kernel version detection like this: Dim kernel As String Dim isWindows As Boolean Shell "uname -a" To kernel If InStr(kernel, "Microsoft") Then isWindows = True Knowing I am in Windows I can call any exe file I want, for example Shell("notepad.exe") just opens Windows Notepad. I can also call any console Windows command like ping.exe and pipe it right away like ping.exe 10.10.10.1 | grep Destination - and it works perfectly. I use Xming started with Windows startup and create .lnk Desktop Shortcuts to my graphical software simply like this: C:\Windows\System32\wsl.exe DISPLAY=:0 LANG=ru_RU.UTF-8 myprogramm.gambas so my software written in Gambas just runs on Windows Desktop by simply double-clicking it. It's that simple So, my point is: isn't it time to officialy call it a way to run Gambas in Windows instead of Cygwin? I mean I know, that Cygwin is more universal, but it also is more complicated and Windows 10 became defacto standard for Windows machines already. It feels kinda lonely without any official documentation on this type of operation :-) Best regards Dmitry Bachilo. From rwe-sse at osnanet.de Fri Jan 10 08:49:58 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 10 Jan 2020 08:49:58 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> Message-ID: Am 10.01.20 um 06:07 schrieb Admin: > I am using Gambas to write programs for Windows for quite some time now. > It is excellent. Before I had to port everything to Visual Basic, then I > used the way, which to this day is official - Cygwin. But for a long > time now, since you don't even have to be a Windows Insider Preview > member to install WSL on Windows 10, everybody can do it in one click > using Windows Store, software just works. I just use simple kernel > version detection like this: > > Dim kernel As String > Dim isWindows As Boolean > Shell "uname -a" To kernel > If InStr(kernel, "Microsoft") Then isWindows = True > > Knowing I am in Windows I can call any exe file I want, for example > Shell("notepad.exe") just opens Windows Notepad. I can also call any > console Windows command like ping.exe and pipe it right away like > ping.exe 10.10.10.1 | grep Destination - and it works perfectly. > > I use Xming started with Windows startup and create .lnk Desktop > Shortcuts to my graphical software simply like this: > > C:\Windows\System32\wsl.exe DISPLAY=:0 LANG=ru_RU.UTF-8 myprogramm.gambas > > so my software written in Gambas just runs on Windows Desktop by simply > double-clicking it. It's that simple > > So, my point is: isn't it time to officialy call it a way to run Gambas > in Windows instead of Cygwin? I mean I know, that Cygwin is more > universal, but it also is more complicated and Windows 10 became defacto > standard for Windows machines already. > > It feels kinda lonely without any official documentation on this type of > operation :-) > > > Best regards > > Dmitry Bachilo. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > That sounds very interesting, Dmitry. Just a few questions: What is the graphical component you use for your programs, qt or gtk+? And do you use the automatical switcher? What about printing - is there a way of (at least) pushing pdf files into Windows' printing system? You write about "Windows Store". Does it mean, I need an account with Mickeysoft for it? We have one Win10 machine here for some of these indispensible programs every firm needs but which exist for Windows only. It would be great if I could run one or two of our Gambas programs there. Last idea: Could you describe the way of installing WSL, Xming and a Gambas application on a Win10 machine? As I have so few experience with Windows, I wouldn't even know where to start ;) Regards Rolf From admin at allunix.ru Fri Jan 10 09:49:31 2020 From: admin at allunix.ru (Admin) Date: Fri, 10 Jan 2020 15:49:31 +0700 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> Message-ID: 10.01.2020 14:49, Rolf-Werner Eilert ?????: > Am 10.01.20 um 06:07 schrieb Admin: >> I am using Gambas to write programs for Windows for quite some time >> now. It is excellent. Before I had to port everything to Visual >> Basic, then I used the way, which to this day is official - Cygwin. >> But for a long time now, since you don't even have to be a Windows >> Insider Preview member to install WSL on Windows 10, everybody can do >> it in one click using Windows Store, software just works. I just use >> simple kernel version detection like this: >> >> Dim kernel As String >> Dim isWindows As Boolean >> Shell "uname -a" To kernel >> If InStr(kernel, "Microsoft") Then isWindows = True >> >> Knowing I am in Windows I can call any exe file I want, for example >> Shell("notepad.exe") just opens Windows Notepad. I can also call any >> console Windows command like ping.exe and pipe it right away like >> ping.exe 10.10.10.1 | grep Destination - and it works perfectly. >> >> I use Xming started with Windows startup and create .lnk Desktop >> Shortcuts to my graphical software simply like this: >> >> C:\Windows\System32\wsl.exe DISPLAY=:0 LANG=ru_RU.UTF-8 >> myprogramm.gambas >> >> so my software written in Gambas just runs on Windows Desktop by >> simply double-clicking it. It's that simple >> >> So, my point is: isn't it time to officialy call it a way to run >> Gambas in Windows instead of Cygwin? I mean I know, that Cygwin is >> more universal, but it also is more complicated and Windows 10 became >> defacto standard for Windows machines already. >> >> It feels kinda lonely without any official documentation on this type >> of operation :-) >> >> >> Best regards >> >> Dmitry Bachilo. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > That sounds very interesting, Dmitry. Just a few questions: > > What is the graphical component you use for your programs, qt or gtk+? > And do you use the automatical switcher? > > What about printing - is there a way of (at least) pushing pdf files > into Windows' printing system? > > You write about "Windows Store". Does it mean, I need an account with > Mickeysoft for it? > > We have one Win10 machine here for some of these indispensible > programs every firm needs but which exist for Windows only. It would > be great if I could run one or two of our Gambas programs there. > > Last idea: Could you describe the way of installing WSL, Xming and a > Gambas application on a Win10 machine? As I have so few experience > with Windows, I wouldn't even know where to start ;) > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Ok, so what you basically do is go to Microsoft Store which is in a start menu under the letter M obviously. You probably already have an account if you got Windows installed, but if not, it will ask you to register, it's simple - just provide any email and password. There just type Ubuntu in search bar and install Ubuntu app in one (or maybe two) click(s) What will happen is you will have compact distribution of Ubuntu installed in Windows, it's a standard feature there nowadays. There's also Debian and it already has Gambas in repo, but it doesn't work, qt5 dependency is broken. Now, when Ubuntu is installed, you will have Ubuntu app icon in Start menu, wich is basically a bash shell chrooted to Programm Files directory where your Ubuntu infrastructure is installed. When it would be first run it'll ask you to enable Windows Subsystem For Linux (WSL) and tell you exactly how to do it, also one click more or less. Everything else is just installing Gambas (or anything else) in Ubuntu, so you add a PPA, then "apt-get update" then "apt install gambas3" and you are ready to go, console gambas apps will now work if you run them from this bash console or by typing "wls .gambas" in windows cmd or anywhere else in Windows, even from .bat or .cmd file, or another program capable of "shell" operator. Gambas in Ubuntu (at lease in Windows' repository) seems to be linked to QT4, and GTK3 is also there by default, so you can create and run those types of apps. And, as I've already said, you can run cli apps without any additional moves. To run any graphical linux program in Windows 10 you need an X server. Just google, download and install Xming, it's free and easy to install. There's also an X server in Microsoft Store but it's 50 bucks so no thanks. When XMing is installed what I do is run a configurator that creates an Xlaunch file. So I tell it to not create a root window, just to be ready to serve apps without aunthentication, and then i put this xlauch file in Autorun in Start menu So now you can either specify DISPLAY=:0 in bash cli and run any programm from now on, or just create a basic windows shortcut with a line that I already provided before. For example I have a app icon for Gambas on my desktop. The command it executes on double click is: C:\Windows\System32\wsl.exe DISPLAY=:0 LANG=ru_RU.UTF-8 gambas3 it sets DISPLAY environment to work with Xmin and it sets my native locale, so I can see Gambas IDE in my native language. That's it. Any software then written in gambas is run from such shortcuts with the same scheme: C:\Windows\System32\wsl.exe DISPLAY=:0 LANG=ru_RU.UTF-8 myprogramm.gambas BTW the very same way you can ran, say, Firefox, or Chrome, or any other linux version of graphical software that you install with apt in yout pseudo ubuntu. It works in Windows 10 just like that. RedHat's Cygwin did this for years, but now Windows 10 just officially supports Linux binaries through WSL, so no need for any additional software. If you want to, say, run Apache or any other Linux non-graphical software - you don't even need Xming? just install Ubuntu, apt install your app and you are good to go. Even sshd works, but you have to remember that Windows 10 also has it's own SSH, so you have to disable it first. Oh, and keep in mind that you can't mount anything and /dev is just empty, but your Windows drives are already in /mnt, so you still see all your Windows infrastructure and you can run Windows software from inside of this Linux chroot if you will From rwe-sse at osnanet.de Fri Jan 10 11:42:37 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 10 Jan 2020 11:42:37 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> Message-ID: <609d3e70-eb44-3529-b9d6-559aadb60d59@osnanet.de> Let me quickly add these: Looking around, I found that Xming might be too outdated to some of the guys, but there are pretty young alternatives. One of them is VcXsrv, and this description is quite handy: https://www.cs.odu.edu/~zeil/FAQs/Public/win10Bash/ Regards Rolf From admin at allunix.ru Fri Jan 10 11:52:34 2020 From: admin at allunix.ru (Admin) Date: Fri, 10 Jan 2020 17:52:34 +0700 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <609d3e70-eb44-3529-b9d6-559aadb60d59@osnanet.de> References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> <609d3e70-eb44-3529-b9d6-559aadb60d59@osnanet.de> Message-ID: <441d580e-5e21-2f2b-1f20-767e756b77f2@allunix.ru> I tried it a week ago, and it's exactly the same. I mean literally, it's the same exact programm with the different name, everything looks and feels the same. So I don't think there's any difference there, that's why I tried it and decided to stick to Xming which I use for many years now - there's zero difference. 10.01.2020 17:42, Rolf-Werner Eilert ?????: > Let me quickly add these: > > Looking around, I found that Xming might be too outdated to some of > the guys, but there are pretty young alternatives. One of them is > VcXsrv, and this description is quite handy: > > https://www.cs.odu.edu/~zeil/FAQs/Public/win10Bash/ > > Regards > Rolf > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From mckaygerhard at gmail.com Fri Jan 10 14:56:04 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Jan 2020 09:56:04 -0400 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> Message-ID: El vie., 10 de ene. de 2020 a la(s) 03:51, Rolf-Werner Eilert ( rwe-sse at osnanet.de) escribi?: > Mickeysoft for it? > X-D KA KA KA KA KA !!!! Mickeysoft! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jan 10 15:03:18 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Jan 2020 10:03:18 -0400 Subject: [Gambas-user] New update has screwed everything up. In-Reply-To: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> References: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> Message-ID: El jue., 9 de ene. de 2020 a la(s) 21:34, Steve G via User ( user at lists.gambas-basic.org) escribi?: > Using Fedora 30 and 31. Whatever the new runtime update is that came in, > it changed how Global variables are declared which is caused me a lot of > grief. It is also changed printing Styles. Seems as though the font size is > no longer accepted. So my printing of things like receipts for people, is > horribly screwed up. Is there an easy fix to this so that it works like it > did before? Or am I going to have to spend months rewriting print so that > it works right again? > dont use fedora! on every update.. new headhache right? so it's clear! > > Sent from TypeApp > On Jan 9, 2020, at 07:46, user-request at lists.gambas-basic.org wrote: >> >> 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: Future of webform component (PICCORO McKAY Lenz) >> 2. Re: Totally off topic. But ENGRISCH! (PICCORO McKAY Lenz) >> 3. Re: Happy new year (PICCORO McKAY Lenz) >> 4. Re: Wait Next (PICCORO McKAY Lenz) >> 5. How to Align.Justify (Rolf-Werner Eilert) >> >> >> ------------------------------ >> >> >> Message: 1 >> Date: Thu, 9 Jan 2020 08:42:49 -0400 >> From: PICCORO McKAY Lenz >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Future of webform component >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> El s?b., 4 de ene. de 2020 a la(s) 14:09, Christof Thalhofer ( >> chrisml at deganius.de) escribi?: >> >> And so my answer to this: >>> >>>> php that is interpreted is so fast and popular instead of gambas >>>> >>> Is: No Picco, you're not right here, concerning performance. >> >> >> >> Of course that was not using a framework, but .. yes, your mail was clear >> to me, BUT: >> your mail paste the overall analiltics and performance results.. (simple >> but enought) >> >> ... >> >> And in the example Gambas is called by Apache via CGI! If I'm done with >>> rewriting, I'd like to try to develop a FCGI-wrapper or test with a >>> generic one. Also intelligent caching can speedup things a lot (which >>> can be seen in the result of PHP on further runs). >> >> >> >> your tests (in the previous mail) are interesting to making an article.. >> must be integrated in the gambas wiki in some way!.. >> >> BUT: we need more diffusion of this issue, because if it is easy to program >> in shrimp but when we go to specific things and there is little time >> (scrum), finding problems is our rock in the shoe, is when we come to the >> mailing list but this means is say a little slow, so at the time of coding >> we need ... there our work stops until someone or ourselves appears the >> solution to the problem >> >> i make a wiki how to starting page for users BUT it's only theory and with >> minimal examples: >> >> http://gambaswiki.org/wiki/howto/getstartedwebgambas (WIP about that) >> >> that how to in the wiki pages was inspired in thos articles: >> >> 1) spanish only how to deploy (minimalilstic generic) >> http://qgqlochekone.blogspot.com/2017/03/gambas-como-publicar-web-how-to-deploy.html >> 2) staring and introductions: >> http://qgqlochekone.blogspot.com/2017/03/gambas-web-la-filosofia-web-vs-la.html >> >> others people here in the list that already speak spanish liked the >> article.. (in those days), of course there's some example uploaded by >> Benoit but not all the people are xpert to interprete the code.. and i try >> to make that more friendly to new developers.. yeah time are a issue when >> we are working and we have a problem with no quick solution at the eyes! >> >> >> -- >>> Dies ist keine Signatur >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> >> ------------------------------ >> >> >> Message: 2 >> Date: Thu, 9 Jan 2020 08:47:10 -0400 >> From: PICCORO McKAY Lenz >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Totally off topic. But ENGRISCH! >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> same behaviour happened with GTK3 when arrives! (that produces headaches to >> Benoit right?) >> >> the problem with QT now its that the north fo that framework seems are like >> the same as of .NET.. trying to overhead and cover all the things.. >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> >> El s?b., 4 de ene. de 2020 a la(s) 07:07, Bruce (adamnt42 at gmail.com) >> escribi?: >> >> I have been today, attempting to read the latest QT5 online technical >>> documentation. >>> >>> Well, at least some of it. So far it is making as much sense as trying >>> to compare an iceberg to a nomadic Chilean chopstick maker. >>> >>> Anyway, happy 2020 vision(s) to you all. >>> b >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> >> ------------------------------ >> >> >> Message: 3 >> Date: Thu, 9 Jan 2020 08:49:43 -0400 >> From: PICCORO McKAY Lenz >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Happy new year >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> El jue., 2 de ene. de 2020 a la(s) 12:34, Rolf-Werner Eilert ( >> rwe-sse at osnanet.de) escribi?: >> >> Am 02.01.20 um 16:55 schrieb Fabien Bodard: >>> >>>> And the more I study ... well the less I believe >>>> >>> >>> ????????? >> >> >> That's the tragedy in religious studies... >> >> >> ????????? >> >> KAKAKAKAKAA CUACUACUACUAUC true reality! today! >> >> >> >>> Rolf >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> >> ------------------------------ >> >> >> Message: 4 >> Date: Thu, 9 Jan 2020 08:50:56 -0400 >> From: PICCORO McKAY Lenz >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Wait Next >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> i like that on every new lang feature.. could be a older equivalent code to >> implement.. >> >> El vie., 3 de ene. de 2020 a la(s) 09:42, Beno?t Minisini (g4mba5 at gmail.com) >> escribi?: >> >> Le 03/01/2020 ? 08:31, Fabien Bodard a ?crit : >>> >>>> Hi, Benoit >>>> >>>> >>>> Can you explain where to use the new KeyWord WAIT NEXT ? >>>> >>>> and how it need to be used ? >>> >>> >>> >>> 'WAIT NEXT' is an instruction that waits until at least one event is >>> processed. >>> >>> It allows to implement an event loop. Noone should need it normally >>> outside of a component. >>> >>> -- >>> Beno?t Minisini >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> >> ------------------------------ >> >> >> Message: 5 >> Date: Thu, 9 Jan 2020 17:43:03 +0100 >> From: Rolf-Werner Eilert >> To: Gambas Mailing List >> Subject: [Gambas-user] How to Align.Justify >> Message-ID: >> Content-Type: text/plain; charset=utf-8; format=flowed >> >> I have a text which I want to print with >> >> Paint.DrawRichText(... Align.Justify) >> >> What I expect is text that >> has always a straight left >> and right border, i. e. >> it gets additional spaces >> between the words to >> justify it between the >> borders. >> >> Is that correct, or is it intended to do something else? In my program >> it always shows up simply leftbound. Rightbound and Center do run as >> expected. In the help, I find >> >> Align.Justify (gb.qt4) >> >> Const Justify As Integer = 4 >> >> Constant for justifying horizontally and centering vertically. >> Use it with TextEdit.Format.Alignment. >> >> And when I click on the link, I come to >> >> .texteditformat.alignment (gb.qt4)? >> This symbol does not exist. >> >> So what now? >> >> Thanks for your help! >> >> Rolf >> >> >> >> ------------------------------ >> >> >> Subject: Digest Footer >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ------------------------------ >> >> >> End of User Digest, Vol 28, Issue 14 >> ************************************ >> >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri Jan 10 15:04:35 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 10 Jan 2020 15:04:35 +0100 Subject: [Gambas-user] How to Align.Justify In-Reply-To: References: Message-ID: Am 09.01.20 um 19:05 schrieb Gianluigi: > > > Il giorno gio 9 gen 2020 alle ore 17:44 Rolf-Werner Eilert > > ha scritto: > > I have a text which I want to print with > ... > Paint.DrawRichText(... Align.Justify) > ... > Thanks for your help! > > > I don't know if it can be useful, > on the Software farm, in the Examples, there is the LoremReport program > that prints justified. > > Regards > Gianluigi > Hm, I downloaded it and had it installed - but where is it now? Cannot find it anywhere. Where are the examples saved? Regards Rolf From rwe-sse at osnanet.de Fri Jan 10 15:05:54 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 10 Jan 2020 15:05:54 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> Message-ID: <2fc30b45-1ea8-e702-4e29-6cfa109728f7@osnanet.de> Am 10.01.20 um 14:56 schrieb PICCORO McKAY Lenz: > El vie., 10 de ene. de 2020 a la(s) 03:51, Rolf-Werner Eilert > (rwe-sse at osnanet.de ) escribi?: > > Mickeysoft for it? > > > X-D?? KA KA KA KA KA !!!! Mickeysoft! > Yes, in Germany we say "Miniweich", as "weich" is German for soft" :)) From mckaygerhard at gmail.com Fri Jan 10 15:06:13 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Jan 2020 10:06:13 -0400 Subject: [Gambas-user] Shell In-Reply-To: <1354163341.3627637.1577328631961@mail.yahoo.com> References: <1425890496.3493782.1577276702762.ref@mail.yahoo.com> <1425890496.3493782.1577276702762@mail.yahoo.com> <168a7f52-d742-d849-9d4d-ef15b4dd7568@cogier.com> <1354163341.3627637.1577328631961@mail.yahoo.com> Message-ID: sounds interesting.. due program also crashed if i not have a camera but have a capture device.. but i try a scanner and opens (then got crash later when try to use it) El mi?., 25 de dic. de 2019 a la(s) 22:52, Mike Crean via User ( user at lists.gambas-basic.org) escribi?: > Hi Charlie, thanks for the test project. When I run it with my > usb-Microsoft_Microsoft?_LifeCam_HD-3000-video-index0 > Gambas crashes, See pics attached. If I run it with my > usb-fushicai_usbtv007_300000000002-video-index0 > it will not play and it throws an error when MediaPlayer1.Play() is > called. Any help would be appreciated. > > Regards > Mike > > > > > > > On Wednesday, 25 December 2019, 09:51:07 pm AWST, Charlie Ogier < > charlie at cogier.com> wrote: > > > Hi Mike, > > Have a look at my attached version, maybe that will help. > > Charlie > > On 25/12/2019 12:25, Mike Crean via User wrote: > > > I have a small problem with the Shell command and I hope someone can > point me in the right direction. > > project attached. > > Regards > Mike > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jan 10 15:43:25 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Jan 2020 10:43:25 -0400 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <2fc30b45-1ea8-e702-4e29-6cfa109728f7@osnanet.de> References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> <2fc30b45-1ea8-e702-4e29-6cfa109728f7@osnanet.de> Message-ID: El vie., 10 de ene. de 2020 a la(s) 10:08, Rolf-Werner Eilert ( rwe-sse at osnanet.de) escribi?: > Am 10.01.20 um 14:56 schrieb PICCORO McKAY Lenz: > > El vie., 10 de ene. de 2020 a la(s) 03:51, Rolf-Werner Eilert > > (rwe-sse at osnanet.de ) escribi?: > > Mickeysoft for it? > > X-D KA KA KA KA KA !!!! Mickeysoft! > Yes, in Germany we say "Miniweich", as "weich" is German for soft" :)) > X-D "miniweich" <--- X-D > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Jan 10 16:20:19 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 10 Jan 2020 16:20:19 +0100 Subject: [Gambas-user] How to Align.Justify In-Reply-To: References: Message-ID: Il giorno ven 10 gen 2020 alle ore 15:07 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > > Where are the examples saved? > In .local/share/gambas3/gianluigi of your home folder. See attached image. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: install-software.png Type: image/png Size: 29314 bytes Desc: not available URL: From bagonergi at gmail.com Fri Jan 10 16:24:57 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 10 Jan 2020 16:24:57 +0100 Subject: [Gambas-user] How to Align.Justify In-Reply-To: References: Message-ID: Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi ha scritto: > > In .local/share/gambas3/gianluigi of your home folder. > Edit: .local/share/gambas3/src/gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Fri Jan 10 17:38:17 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Jan 2020 12:38:17 -0400 Subject: [Gambas-user] exec also working as shell why? Message-ID: i have a code where i want to pass content to main.. but i never raised the content: cadena only are filled with content after main raises end, why .. if i not use shell? i attached the project i have a class and a module main, class are: Public cadena As String = "ver" Public linea As Collection Private lineas As String[] Public Sub Main() Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" End Public Sub Processo_Read() Dim sLine As String Dim llavevalor As String[] Dim a As Integer sLine = Read #Last, -256 cadena = cadena & sLine lineas = Split(sLine, gb.NewLine, "", True) For a = 0 To lineas.max If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 Then llavevalor = Split(lineas[a], "=", "\"", False, False) linea.Add(llavevalor[1], llavevalor[0]) Endif Next End SO in my Main modulo i have: Public Sub Main() Dim ver As New CourierConfigDetector ver.Main Print ver.cadena End cadena only are filled with content after main raises end, why .. if i not use shell? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: courierauthtest-0.0.1.tar.gz Type: application/gzip Size: 11777 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Fri Jan 10 18:59:07 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 10 Jan 2020 19:59:07 +0200 Subject: [Gambas-user] New update has screwed everything up. In-Reply-To: <359b7d58-02b5-4c2c-8d7b-654e6f21e8c9@yahoo.com> References: <67dffe2c-1884-4605-8baa-21dc497ce7c3@yahoo.com> <8f2001e5-8af9-0c7e-c514-3df7fe7e8934@gmail.com> <359b7d58-02b5-4c2c-8d7b-654e6f21e8c9@yahoo.com> Message-ID: There are no global variables in Gambas. Do you mean public variables? Can you give example code of what has changed? I don't see any changes in font sizes on Linux Mint. Jussi On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < user at lists.gambas-basic.org> wrote: > I don't have the version available right now but I will get that for you. > The global variables the way they were being declared became read only so > they had to be declared differently. As far as the print I have multiple > problems with that. Font sizes have changed their either miniscule or huge. > I am currently going through every single program that prints and adjusting > the font size is down two to four points each. I also occasionally get > blank prints. I do not recall what version I was using but I did a update > for all software and this is when all these problems kicked in. I also > recall seeing something about other people having problems with various > aspects of the new updates. I'm very upset about this because it looks like > nobody bothered testing it. Even though I know that could not be the case. > Bottom line I'm having massive problems in print. Problems that were not > there until after the update. Perhaps you thought you were cleaning > something up not thinking that people might be using it that way. > > Sent from TypeApp > On Jan 9, 2020, at 16:46, "Beno?t Minisini" wrote: >> >> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >> >>> Using Fedora 30 and 31. Whatever the new runtime update is that came in, >>> it changed how Global variables are declared which is caused me a lot of >>> grief. It is also changed printing Styles. Seems as though the font size >>> is no longer accepted. So my printing of things like receipts for >>> people, is horribly screwed up. Is there an easy fix to this so that it >>> works like it did before? Or am I going to have to spend months >>> rewriting print so that it works right again? >>> >>> >> Which version of Gambas do you have? >> >> Which version did you use before? >> >> What are you talking about? >> >> There is no change in "how Global variables are declared". No idea what >> you mean. >> >> Same thing for "the font size is no longer accepted". What does it mean? >> >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Jan 10 19:44:45 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 10 Jan 2020 13:44:45 -0500 Subject: [Gambas-user] exec also working as shell why? In-Reply-To: References: Message-ID: <6251a934-e789-8cd3-cc1c-64d5c70e9653@gmail.com> On 1/10/20 11:38 AM, PICCORO McKAY Lenz wrote: > i have a code where i want to pass content to main.. but i never raised the content: > cadena only are filled with content after main raises end, why .. if i not use shell? > i attached the project > > i have a class and a module main, class are: > > Public cadena As String = "ver" > Public linea As Collection > Private lineas As String[] > > Public Sub Main() > Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" > End Perhaps because you didn't tell the interpreter to "Wait" for the command to finish before continuing on? If you're simply trying to get the contents of "/etc/courier/authdaemonrc" for parsing, then why not just retrieve it into a string variable and then parse it without bothering with Process_Read()? For example: Exec ["cat", "/etc/courier/authdaemonrc"] to cadena lineas = Split(cadena, gb.NewLine, "", True) For a = 0 To lineas.max ... Next -- Lee From mckaygerhard at gmail.com Fri Jan 10 19:59:34 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 10 Jan 2020 14:59:34 -0400 Subject: [Gambas-user] exec also working as shell why? In-Reply-To: <6251a934-e789-8cd3-cc1c-64d5c70e9653@gmail.com> References: <6251a934-e789-8cd3-cc1c-64d5c70e9653@gmail.com> Message-ID: El vie., 10 de ene. de 2020 a la(s) 14:45, T Lee Davidson ( t.lee.davidson at gmail.com) escribi?: > Perhaps because you didn't tell the interpreter to "Wait" for the command > to finish before continuing on? > > If you're simply trying to get the contents of "/etc/courier/authdaemonrc" > for parsing, then why not just retrieve it into a > string variable and then parse it without bothering with Process_Read()? > yeah.. ?_?u i done inthat way! 6_6u > > For example: > Exec ["cat", "/etc/courier/authdaemonrc"] to cadena > lineas = Split(cadena, gb.NewLine, "", True) > For a = 0 To lineas.max > ... > Next > > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri Jan 10 20:41:53 2020 From: taboege at gmail.com (Tobias Boege) Date: Fri, 10 Jan 2020 20:41:53 +0100 Subject: [Gambas-user] exec also working as shell why? In-Reply-To: <6251a934-e789-8cd3-cc1c-64d5c70e9653@gmail.com> References: <6251a934-e789-8cd3-cc1c-64d5c70e9653@gmail.com> Message-ID: <20200110194153.GA2455325@highrise.localdomain> On Fri, 10 Jan 2020, T Lee Davidson wrote: > On 1/10/20 11:38 AM, PICCORO McKAY Lenz wrote: > > i have a code where i want to pass content to main.. but i never raised the content: > > cadena only are filled with content after main raises end, why .. if i not use shell? > > i attached the project > > > > i have a class and a module main, class are: > > > > Public cadena As String = "ver" > > Public linea As Collection > > Private lineas As String[] > > > > Public Sub Main() > > Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" > > End > > Perhaps because you didn't tell the interpreter to "Wait" for the command to finish before continuing on? > > If you're simply trying to get the contents of "/etc/courier/authdaemonrc" > for parsing, then why not just retrieve it into a string variable and then > parse it without bothering with Process_Read()? > > For example: > Exec ["cat", "/etc/courier/authdaemonrc"] to cadena > lineas = Split(cadena, gb.NewLine, "", True) > For a = 0 To lineas.max > ... > Next > `cat some-file` is also built into Gambas as `File.Load("some-file")`. -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From simonlebon54 at yahoo.com Fri Jan 10 20:51:58 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Fri, 10 Jan 2020 10:51:58 -0900 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: Message-ID: I used to use. Private a[300] as string Declared in top of module That now becomes read only. As for fonts it is in the paint.font.size while printing to paper. The 18 point becomes 22 when printed and a 8 becomes 4 when printed. It's just all over the place ?Sent from TypeApp ? On Jan 10, 2020, 09:02, at 09:02, user-request at lists.gambas-basic.org wrote: >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: How to Align.Justify (Gianluigi) > 2. exec also working as shell why? (PICCORO McKAY Lenz) > 3. Re: New update has screwed everything up. (Jussi Lahtinen) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Fri, 10 Jan 2020 16:24:57 +0100 >From: Gianluigi >To: Gambas Mailing List >Subject: Re: [Gambas-user] How to Align.Justify >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi > ha >scritto: > >> >> In .local/share/gambas3/gianluigi of your home folder. >> > >Edit: .local/share/gambas3/src/gianluigi >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 2 >Date: Fri, 10 Jan 2020 12:38:17 -0400 >From: PICCORO McKAY Lenz >To: Gambas Mailing List >Subject: [Gambas-user] exec also working as shell why? >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >i have a code where i want to pass content to main.. but i never raised >the >content: >cadena only are filled with content after main raises end, why .. if i >not >use shell? >i attached the project > >i have a class and a module main, class are: > >Public cadena As String = "ver" >Public linea As Collection >Private lineas As String[] > >Public Sub Main() >Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >End > > >Public Sub Processo_Read() >Dim sLine As String > Dim llavevalor As String[] > Dim a As Integer > sLine = Read #Last, -256 > cadena = cadena & sLine > lineas = Split(sLine, gb.NewLine, "", True) > For a = 0 To lineas.max > If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 Then > llavevalor = Split(lineas[a], "=", "\"", False, False) > linea.Add(llavevalor[1], llavevalor[0]) > Endif > Next >End > > >SO in my Main modulo i have: > >Public Sub Main() >Dim ver As New CourierConfigDetector >ver.Main >Print ver.cadena >End > >cadena only are filled with content after main raises end, why .. if i >not >use shell? >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > >-------------- next part -------------- >A non-text attachment was scrubbed... >Name: courierauthtest-0.0.1.tar.gz >Type: application/gzip >Size: 11777 bytes >Desc: not available >URL: > > >------------------------------ > >Message: 3 >Date: Fri, 10 Jan 2020 19:59:07 +0200 >From: Jussi Lahtinen >To: Gambas Mailing List >Cc: Beno?t Minisini , Steve G > >Subject: Re: [Gambas-user] New update has screwed everything up. >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >There are no global variables in Gambas. Do you mean public variables? >Can >you give example code of what has changed? >I don't see any changes in font sizes on Linux Mint. > > >Jussi > >On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >user at lists.gambas-basic.org> wrote: > >> I don't have the version available right now but I will get that for >you. >> The global variables the way they were being declared became read >only so >> they had to be declared differently. As far as the print I have >multiple >> problems with that. Font sizes have changed their either miniscule or >huge. >> I am currently going through every single program that prints and >adjusting >> the font size is down two to four points each. I also occasionally >get >> blank prints. I do not recall what version I was using but I did a >update >> for all software and this is when all these problems kicked in. I >also >> recall seeing something about other people having problems with >various >> aspects of the new updates. I'm very upset about this because it >looks like >> nobody bothered testing it. Even though I know that could not be the >case. >> Bottom line I'm having massive problems in print. Problems that were >not >> there until after the update. Perhaps you thought you were cleaning >> something up not thinking that people might be using it that way. >> >> Sent from TypeApp >> On Jan 9, 2020, at 16:46, "Beno?t Minisini" wrote: >>> >>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>> >>>> Using Fedora 30 and 31. Whatever the new runtime update is that >came in, >>>> it changed how Global variables are declared which is caused me a >lot of >>>> grief. It is also changed printing Styles. Seems as though the >font size >>>> is no longer accepted. So my printing of things like receipts for >>>> people, is horribly screwed up. Is there an easy fix to this so >that it >>>> works like it did before? Or am I going to have to spend months >>>> rewriting print so that it works right again? >>>> >>>> >>> Which version of Gambas do you have? >>> >>> Which version did you use before? >>> >>> What are you talking about? >>> >>> There is no change in "how Global variables are declared". No idea >what >>> you mean. >>> >>> Same thing for "the font size is no longer accepted". What does it >mean? >>> >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Subject: Digest Footer > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- > > >------------------------------ > >End of User Digest, Vol 28, Issue 20 >************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 20:53:21 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Fri, 10 Jan 2020 10:53:21 -0900 Subject: [Gambas-user] User Digest, Vol 28, Issue 18 In-Reply-To: References: Message-ID: <6fa59077-9a6b-4db4-b11e-bd746bf36978@yahoo.com> Actuallyfedora works great. Rarely an issue with update ?Sent from TypeApp ? On Jan 10, 2020, 05:06, at 05:06, user-request at lists.gambas-basic.org wrote: >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: Gambas on Windows (PICCORO McKAY Lenz) > 2. Re: New update has screwed everything up. (PICCORO McKAY Lenz) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Fri, 10 Jan 2020 09:56:04 -0400 >From: PICCORO McKAY Lenz >To: Gambas Mailing List >Subject: Re: [Gambas-user] Gambas on Windows >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >El vie., 10 de ene. de 2020 a la(s) 03:51, Rolf-Werner Eilert ( >rwe-sse at osnanet.de) escribi?: > >> Mickeysoft for it? >> > >X-D KA KA KA KA KA !!!! Mickeysoft! >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 2 >Date: Fri, 10 Jan 2020 10:03:18 -0400 >From: PICCORO McKAY Lenz >To: Gambas Mailing List >Cc: Steve G >Subject: Re: [Gambas-user] New update has screwed everything up. >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >El jue., 9 de ene. de 2020 a la(s) 21:34, Steve G via User ( >user at lists.gambas-basic.org) escribi?: > >> Using Fedora 30 and 31. Whatever the new runtime update is that came >in, >> it changed how Global variables are declared which is caused me a lot >of >> grief. It is also changed printing Styles. Seems as though the font >size is >> no longer accepted. So my printing of things like receipts for >people, is >> horribly screwed up. Is there an easy fix to this so that it works >like it >> did before? Or am I going to have to spend months rewriting print so >that >> it works right again? >> > >dont use fedora! on every update.. new headhache right? so it's clear! > > >> >> Sent from TypeApp >> On Jan 9, 2020, at 07:46, user-request at lists.gambas-basic.org wrote: >>> >>> 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: Future of webform component (PICCORO McKAY Lenz) >>> 2. Re: Totally off topic. But ENGRISCH! (PICCORO McKAY Lenz) >>> 3. Re: Happy new year (PICCORO McKAY Lenz) >>> 4. Re: Wait Next (PICCORO McKAY Lenz) >>> 5. How to Align.Justify (Rolf-Werner Eilert) >>> >>> >>> ------------------------------ >>> >>> >>> Message: 1 >>> Date: Thu, 9 Jan 2020 08:42:49 -0400 >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Subject: Re: [Gambas-user] Future of webform component >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> El s?b., 4 de ene. de 2020 a la(s) 14:09, Christof Thalhofer ( >>> chrisml at deganius.de) escribi?: >>> >>> And so my answer to this: >>>> >>>>> php that is interpreted is so fast and popular instead of gambas >>>>> >>>> Is: No Picco, you're not right here, concerning performance. >>> >>> >>> >>> Of course that was not using a framework, but .. yes, your mail was >clear >>> to me, BUT: >>> your mail paste the overall analiltics and performance results.. >(simple >>> but enought) >>> >>> ... >>> >>> And in the example Gambas is called by Apache via CGI! If I'm done >with >>>> rewriting, I'd like to try to develop a FCGI-wrapper or test with >a >>>> generic one. Also intelligent caching can speedup things a lot >(which >>>> can be seen in the result of PHP on further runs). >>> >>> >>> >>> your tests (in the previous mail) are interesting to making an >article.. >>> must be integrated in the gambas wiki in some way!.. >>> >>> BUT: we need more diffusion of this issue, because if it is easy to >program >>> in shrimp but when we go to specific things and there is little time >>> (scrum), finding problems is our rock in the shoe, is when we come >to the >>> mailing list but this means is say a little slow, so at the time of >coding >>> we need ... there our work stops until someone or ourselves appears >the >>> solution to the problem >>> >>> i make a wiki how to starting page for users BUT it's only theory >and with >>> minimal examples: >>> >>> http://gambaswiki.org/wiki/howto/getstartedwebgambas (WIP about >that) >>> >>> that how to in the wiki pages was inspired in thos articles: >>> >>> 1) spanish only how to deploy (minimalilstic generic) >>> >http://qgqlochekone.blogspot.com/2017/03/gambas-como-publicar-web-how-to-deploy.html >>> 2) staring and introductions: >>> >http://qgqlochekone.blogspot.com/2017/03/gambas-web-la-filosofia-web-vs-la.html >>> >>> others people here in the list that already speak spanish liked the >>> article.. (in those days), of course there's some example uploaded >by >>> Benoit but not all the people are xpert to interprete the code.. and >i try >>> to make that more friendly to new developers.. yeah time are a issue >when >>> we are working and we have a problem with no quick solution at the >eyes! >>> >>> >>> -- >>>> Dies ist keine Signatur >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 2 >>> Date: Thu, 9 Jan 2020 08:47:10 -0400 >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Subject: Re: [Gambas-user] Totally off topic. But ENGRISCH! >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> same behaviour happened with GTK3 when arrives! (that produces >headaches to >>> Benoit right?) >>> >>> the problem with QT now its that the north fo that framework seems >are like >>> the same as of .NET.. trying to overhead and cover all the things.. >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> >>> El s?b., 4 de ene. de 2020 a la(s) 07:07, Bruce (adamnt42 at gmail.com) >>> escribi?: >>> >>> I have been today, attempting to read the latest QT5 online >technical >>>> documentation. >>>> >>>> Well, at least some of it. So far it is making as much sense as >trying >>>> to compare an iceberg to a nomadic Chilean chopstick maker. >>>> >>>> Anyway, happy 2020 vision(s) to you all. >>>> b >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 3 >>> Date: Thu, 9 Jan 2020 08:49:43 -0400 >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Subject: Re: [Gambas-user] Happy new year >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> El jue., 2 de ene. de 2020 a la(s) 12:34, Rolf-Werner Eilert ( >>> rwe-sse at osnanet.de) escribi?: >>> >>> Am 02.01.20 um 16:55 schrieb Fabien Bodard: >>>> >>>>> And the more I study ... well the less I believe >>>>> >>>> >>>> ????????? >>> >>> >>> That's the tragedy in religious studies... >>> >>> >>> ????????? >>> >>> KAKAKAKAKAA CUACUACUACUAUC true reality! today! >>> >>> >>> >>>> Rolf >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 4 >>> Date: Thu, 9 Jan 2020 08:50:56 -0400 >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Subject: Re: [Gambas-user] Wait Next >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> i like that on every new lang feature.. could be a older equivalent >code to >>> implement.. >>> >>> El vie., 3 de ene. de 2020 a la(s) 09:42, Beno?t Minisini >(g4mba5 at gmail.com) >>> escribi?: >>> >>> Le 03/01/2020 ? 08:31, Fabien Bodard a ?crit : >>>> >>>>> Hi, Benoit >>>>> >>>>> >>>>> Can you explain where to use the new KeyWord WAIT NEXT ? >>>>> >>>>> and how it need to be used ? >>>> >>>> >>>> >>>> 'WAIT NEXT' is an instruction that waits until at least one event >is >>>> processed. >>>> >>>> It allows to implement an event loop. Noone should need it >normally >>>> outside of a component. >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 5 >>> Date: Thu, 9 Jan 2020 17:43:03 +0100 >>> From: Rolf-Werner Eilert >>> To: Gambas Mailing List >>> Subject: [Gambas-user] How to Align.Justify >>> Message-ID: >>> Content-Type: text/plain; charset=utf-8; format=flowed >>> >>> I have a text which I want to print with >>> >>> Paint.DrawRichText(... Align.Justify) >>> >>> What I expect is text that >>> has always a straight left >>> and right border, i. e. >>> it gets additional spaces >>> between the words to >>> justify it between the >>> borders. >>> >>> Is that correct, or is it intended to do something else? In my >program >>> it always shows up simply leftbound. Rightbound and Center do run as >>> expected. In the help, I find >>> >>> Align.Justify (gb.qt4) >>> >>> Const Justify As Integer = 4 >>> >>> Constant for justifying horizontally and centering vertically. >>> Use it with TextEdit.Format.Alignment. >>> >>> And when I click on the link, I come to >>> >>> .texteditformat.alignment (gb.qt4)? >>> This symbol does not exist. >>> >>> So what now? >>> >>> Thanks for your help! >>> >>> Rolf >>> >>> >>> >>> ------------------------------ >>> >>> >>> Subject: Digest Footer >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- >>> >>> >>> ------------------------------ >>> >>> >>> End of User Digest, Vol 28, Issue 14 >>> ************************************ >>> >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Subject: Digest Footer > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- > > >------------------------------ > >End of User Digest, Vol 28, Issue 18 >************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 10 21:00:53 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 10 Jan 2020 21:00:53 +0100 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: Message-ID: Le 10/01/2020 ? 20:51, Steve G via User a ?crit?: > I used to use. > > Private a[300] as string > > Declared in top of module > > That now becomes read only. > As for fonts it is in the paint.font.size while printing to paper. The > 18 point becomes 22 when printed and a 8 becomes 4 when printed. It's > just all over the place We are progressing... What do you mean exactly by "it becomes read-only"? Still you don't tell use which version of Gambas you have now against which one you had before the update... -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Jan 10 21:05:24 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 10 Jan 2020 22:05:24 +0200 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: Message-ID: For what reason you are using embedded arrays? Maybe you want; Private a as new string[300] They are faster and don't have restrictions. Jussi On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < user at lists.gambas-basic.org> wrote: > I used to use. > > Private a[300] as string > > Declared in top of module > > That now becomes read only. > As for fonts it is in the paint.font.size while printing to paper. The 18 > point becomes 22 when printed and a 8 becomes 4 when printed. It's just all > over the place > > Sent from TypeApp > On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org wrote: >> >> 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: How to Align.Justify (Gianluigi) >> 2. exec also working as shell why? (PICCORO McKAY Lenz) >> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >> >> >> ------------------------------ >> >> >> Message: 1 >> Date: Fri, 10 Jan 2020 16:24:57 +0100 >> From: Gianluigi >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] How to Align.Justify >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi ha >> scritto: >> >> >>> In .local/share/gambas3/gianluigi of your home folder. >> >> >> >> Edit: .local/share/gambas3/src/gianluigi >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> >> ------------------------------ >> >> >> Message: 2 >> Date: Fri, 10 Jan 2020 12:38:17 -0400 >> From: PICCORO McKAY Lenz >> To: Gambas Mailing List >> Subject: [Gambas-user] exec also working as shell why? >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> i have a code where i want to pass content to main.. but i never raised the >> content: >> cadena only are filled with content after main raises end, why .. if i not >> use shell? >> i attached the project >> >> i have a class and a module main, class are: >> >> Public cadena As String = "ver" >> Public linea As Collection >> Private lineas As String[] >> >> Public Sub Main() >> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >> End >> >> >> Public Sub Processo_Read() >> Dim sLine As String >> Dim llavevalor As String[] >> Dim a As Integer >> sLine = Read #Last, -256 >> cadena = cadena & sLine >> lineas = Split(sLine, gb.NewLine, "", True) >> For a = 0 To lineas.max >> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 Then >> llavevalor = Split(lineas[a], "=", "\"", False, False) >> linea.Add(llavevalor[1], llavevalor[0]) >> Endif >> Next >> End >> >> >> SO in my Main modulo i have: >> >> Public Sub Main() >> Dim ver As New CourierConfigDetector >> ver.Main >> Print ver.cadena >> End >> >> cadena only are filled with content after main raises end, why .. if i not >> use shell? >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: courierauthtest-0.0.1.tar.gz >> Type: application/gzip >> Size: 11777 bytes >> Desc: not available >> URL: >> >> ------------------------------ >> >> >> Message: 3 >> Date: Fri, 10 Jan 2020 19:59:07 +0200 >> From: Jussi Lahtinen >> To: Gambas Mailing List >> Cc: Beno?t Minisini , Steve G >> >> Subject: Re: [Gambas-user] New update has screwed everything up. >> Message-ID: >> >> Content-Type: text/plain; charset="utf-8" >> >> There are no global variables in Gambas. Do you mean public variables? Can >> you give example code of what has changed? >> I don't see any changes in font sizes on Linux Mint. >> >> >> Jussi >> >> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >> user at lists.gambas-basic.org> wrote: >> >> I don't have the version available right now but I will get that for you. >>> The global variables the way they were being declared became read only so >>> they had to be declared differently. As far as the print I have multiple >>> problems with that. Font sizes have changed their either miniscule or huge. >>> I am currently going through every single program that prints and adjusting >>> the font size is down two to four points each. I also occasionally get >>> blank prints. I do not recall what version I was using but I did a update >>> for all software and this is when all these problems kicked in. I also >>> recall seeing something about other people having problems with various >>> aspects of the new updates. I'm very upset about this because it looks like >>> nobody bothered testing it. Even though I know that could not be the case. >>> Bottom line I'm having massive problems in print. Problems that were not >>> there until after the update. Perhaps you thought you were cleaning >>> something up not thinking that people might be using it that way. >>> >>> Sent from TypeApp >>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" wrote: >>> >>>> >>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>> >>>> Using Fedora 30 and 31. Whatever the new runtime update is that came in, >>>>> it changed how Global variables are declared which is caused me a lot of >>>>> grief. It is also changed printing Styles. Seems as though the font size >>>>> is no longer accepted. So my printing of things like receipts for >>>>> people, is horribly screwed up. Is there an easy fix to this so that it >>>>> works like it did before? Or am I going to have to spend months >>>>> rewriting print so that it works right again? >>>> >>>> >>>> >>>> Which version of Gambas do you have? >>>> >>>> Which version did you use before? >>>> >>>> What are you talking about? >>>> >>>> There is no change in "how Global variables are declared". No idea what >>>> you mean. >>>> >>>> Same thing for "the font size is no longer accepted". What does it mean? >>> >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> >> ------------------------------ >> >> >> Subject: Digest Footer >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ------------------------------ >> >> >> End of User Digest, Vol 28, Issue 20 >> ************************************ >> >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 21:43:31 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Fri, 10 Jan 2020 11:43:31 -0900 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: Message-ID: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> That's exactly what I had to do. However the other method was working up until the update. The premise was that I read a file in stored it and then performed various acts on that file. Using different subroutines. This way there was only one read one write ?Sent from TypeApp ? On Jan 10, 2020, 11:05, at 11:05, Jussi Lahtinen wrote: >For what reason you are using embedded arrays? >Maybe you want; >Private a as new string[300] > >They are faster and don't have restrictions. > > >Jussi > >On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < >user at lists.gambas-basic.org> wrote: > >> I used to use. >> >> Private a[300] as string >> >> Declared in top of module >> >> That now becomes read only. >> As for fonts it is in the paint.font.size while printing to paper. >The 18 >> point becomes 22 when printed and a 8 becomes 4 when printed. It's >just all >> over the place >> >> Sent from TypeApp >> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org wrote: >>> >>> 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: How to Align.Justify (Gianluigi) >>> 2. exec also working as shell why? (PICCORO McKAY Lenz) >>> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >>> >>> >>> ------------------------------ >>> >>> >>> Message: 1 >>> Date: Fri, 10 Jan 2020 16:24:57 +0100 >>> From: Gianluigi >>> To: Gambas Mailing List >>> Subject: Re: [Gambas-user] How to Align.Justify >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi > ha >>> scritto: >>> >>> >>>> In .local/share/gambas3/gianluigi of your home folder. >>> >>> >>> >>> Edit: .local/share/gambas3/src/gianluigi >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 2 >>> Date: Fri, 10 Jan 2020 12:38:17 -0400 >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Subject: [Gambas-user] exec also working as shell why? >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> i have a code where i want to pass content to main.. but i never >raised the >>> content: >>> cadena only are filled with content after main raises end, why .. if >i not >>> use shell? >>> i attached the project >>> >>> i have a class and a module main, class are: >>> >>> Public cadena As String = "ver" >>> Public linea As Collection >>> Private lineas As String[] >>> >>> Public Sub Main() >>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >>> End >>> >>> >>> Public Sub Processo_Read() >>> Dim sLine As String >>> Dim llavevalor As String[] >>> Dim a As Integer >>> sLine = Read #Last, -256 >>> cadena = cadena & sLine >>> lineas = Split(sLine, gb.NewLine, "", True) >>> For a = 0 To lineas.max >>> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 >Then >>> llavevalor = Split(lineas[a], "=", "\"", False, False) >>> linea.Add(llavevalor[1], llavevalor[0]) >>> Endif >>> Next >>> End >>> >>> >>> SO in my Main modulo i have: >>> >>> Public Sub Main() >>> Dim ver As New CourierConfigDetector >>> ver.Main >>> Print ver.cadena >>> End >>> >>> cadena only are filled with content after main raises end, why .. if >i not >>> use shell? >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> -------------- next part -------------- >>> A non-text attachment was scrubbed... >>> Name: courierauthtest-0.0.1.tar.gz >>> Type: application/gzip >>> Size: 11777 bytes >>> Desc: not available >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 3 >>> Date: Fri, 10 Jan 2020 19:59:07 +0200 >>> From: Jussi Lahtinen >>> To: Gambas Mailing List >>> Cc: Beno?t Minisini , Steve G >>> >>> Subject: Re: [Gambas-user] New update has screwed everything up. >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> There are no global variables in Gambas. Do you mean public >variables? Can >>> you give example code of what has changed? >>> I don't see any changes in font sizes on Linux Mint. >>> >>> >>> Jussi >>> >>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >>> user at lists.gambas-basic.org> wrote: >>> >>> I don't have the version available right now but I will get that >for you. >>>> The global variables the way they were being declared became read >only so >>>> they had to be declared differently. As far as the print I have >multiple >>>> problems with that. Font sizes have changed their either miniscule >or huge. >>>> I am currently going through every single program that prints and >adjusting >>>> the font size is down two to four points each. I also occasionally >get >>>> blank prints. I do not recall what version I was using but I did a >update >>>> for all software and this is when all these problems kicked in. I >also >>>> recall seeing something about other people having problems with >various >>>> aspects of the new updates. I'm very upset about this because it >looks like >>>> nobody bothered testing it. Even though I know that could not be >the case. >>>> Bottom line I'm having massive problems in print. Problems that >were not >>>> there until after the update. Perhaps you thought you were >cleaning >>>> something up not thinking that people might be using it that way. >>>> >>>> Sent from TypeApp >>>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" >wrote: >>>> >>>>> >>>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>>> >>>>> Using Fedora 30 and 31. Whatever the new runtime update is that >came in, >>>>>> it changed how Global variables are declared which is caused me >a lot of >>>>>> grief. It is also changed printing Styles. Seems as though the >font size >>>>>> is no longer accepted. So my printing of things like receipts >for >>>>>> people, is horribly screwed up. Is there an easy fix to this so >that it >>>>>> works like it did before? Or am I going to have to spend months >>>>>> rewriting print so that it works right again? >>>>> >>>>> >>>>> >>>>> Which version of Gambas do you have? >>>>> >>>>> Which version did you use before? >>>>> >>>>> What are you talking about? >>>>> >>>>> There is no change in "how Global variables are declared". No >idea what >>>>> you mean. >>>>> >>>>> Same thing for "the font size is no longer accepted". What does >it mean? >>>> >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Subject: Digest Footer >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- >>> >>> >>> ------------------------------ >>> >>> >>> End of User Digest, Vol 28, Issue 20 >>> ************************************ >>> >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 21:43:31 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Fri, 10 Jan 2020 11:43:31 -0900 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: Message-ID: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> That's exactly what I had to do. However the other method was working up until the update. The premise was that I read a file in stored it and then performed various acts on that file. Using different subroutines. This way there was only one read one write ?Sent from TypeApp ? On Jan 10, 2020, 11:05, at 11:05, Jussi Lahtinen wrote: >For what reason you are using embedded arrays? >Maybe you want; >Private a as new string[300] > >They are faster and don't have restrictions. > > >Jussi > >On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < >user at lists.gambas-basic.org> wrote: > >> I used to use. >> >> Private a[300] as string >> >> Declared in top of module >> >> That now becomes read only. >> As for fonts it is in the paint.font.size while printing to paper. >The 18 >> point becomes 22 when printed and a 8 becomes 4 when printed. It's >just all >> over the place >> >> Sent from TypeApp >> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org wrote: >>> >>> 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: How to Align.Justify (Gianluigi) >>> 2. exec also working as shell why? (PICCORO McKAY Lenz) >>> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >>> >>> >>> ------------------------------ >>> >>> >>> Message: 1 >>> Date: Fri, 10 Jan 2020 16:24:57 +0100 >>> From: Gianluigi >>> To: Gambas Mailing List >>> Subject: Re: [Gambas-user] How to Align.Justify >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi > ha >>> scritto: >>> >>> >>>> In .local/share/gambas3/gianluigi of your home folder. >>> >>> >>> >>> Edit: .local/share/gambas3/src/gianluigi >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 2 >>> Date: Fri, 10 Jan 2020 12:38:17 -0400 >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Subject: [Gambas-user] exec also working as shell why? >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> i have a code where i want to pass content to main.. but i never >raised the >>> content: >>> cadena only are filled with content after main raises end, why .. if >i not >>> use shell? >>> i attached the project >>> >>> i have a class and a module main, class are: >>> >>> Public cadena As String = "ver" >>> Public linea As Collection >>> Private lineas As String[] >>> >>> Public Sub Main() >>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >>> End >>> >>> >>> Public Sub Processo_Read() >>> Dim sLine As String >>> Dim llavevalor As String[] >>> Dim a As Integer >>> sLine = Read #Last, -256 >>> cadena = cadena & sLine >>> lineas = Split(sLine, gb.NewLine, "", True) >>> For a = 0 To lineas.max >>> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 >Then >>> llavevalor = Split(lineas[a], "=", "\"", False, False) >>> linea.Add(llavevalor[1], llavevalor[0]) >>> Endif >>> Next >>> End >>> >>> >>> SO in my Main modulo i have: >>> >>> Public Sub Main() >>> Dim ver As New CourierConfigDetector >>> ver.Main >>> Print ver.cadena >>> End >>> >>> cadena only are filled with content after main raises end, why .. if >i not >>> use shell? >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> -------------- next part -------------- >>> A non-text attachment was scrubbed... >>> Name: courierauthtest-0.0.1.tar.gz >>> Type: application/gzip >>> Size: 11777 bytes >>> Desc: not available >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 3 >>> Date: Fri, 10 Jan 2020 19:59:07 +0200 >>> From: Jussi Lahtinen >>> To: Gambas Mailing List >>> Cc: Beno?t Minisini , Steve G >>> >>> Subject: Re: [Gambas-user] New update has screwed everything up. >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> There are no global variables in Gambas. Do you mean public >variables? Can >>> you give example code of what has changed? >>> I don't see any changes in font sizes on Linux Mint. >>> >>> >>> Jussi >>> >>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >>> user at lists.gambas-basic.org> wrote: >>> >>> I don't have the version available right now but I will get that >for you. >>>> The global variables the way they were being declared became read >only so >>>> they had to be declared differently. As far as the print I have >multiple >>>> problems with that. Font sizes have changed their either miniscule >or huge. >>>> I am currently going through every single program that prints and >adjusting >>>> the font size is down two to four points each. I also occasionally >get >>>> blank prints. I do not recall what version I was using but I did a >update >>>> for all software and this is when all these problems kicked in. I >also >>>> recall seeing something about other people having problems with >various >>>> aspects of the new updates. I'm very upset about this because it >looks like >>>> nobody bothered testing it. Even though I know that could not be >the case. >>>> Bottom line I'm having massive problems in print. Problems that >were not >>>> there until after the update. Perhaps you thought you were >cleaning >>>> something up not thinking that people might be using it that way. >>>> >>>> Sent from TypeApp >>>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" >wrote: >>>> >>>>> >>>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>>> >>>>> Using Fedora 30 and 31. Whatever the new runtime update is that >came in, >>>>>> it changed how Global variables are declared which is caused me >a lot of >>>>>> grief. It is also changed printing Styles. Seems as though the >font size >>>>>> is no longer accepted. So my printing of things like receipts >for >>>>>> people, is horribly screwed up. Is there an easy fix to this so >that it >>>>>> works like it did before? Or am I going to have to spend months >>>>>> rewriting print so that it works right again? >>>>> >>>>> >>>>> >>>>> Which version of Gambas do you have? >>>>> >>>>> Which version did you use before? >>>>> >>>>> What are you talking about? >>>>> >>>>> There is no change in "how Global variables are declared". No >idea what >>>>> you mean. >>>>> >>>>> Same thing for "the font size is no longer accepted". What does >it mean? >>>> >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Subject: Digest Footer >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- >>> >>> >>> ------------------------------ >>> >>> >>> End of User Digest, Vol 28, Issue 20 >>> ************************************ >>> >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 21:54:21 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Fri, 10 Jan 2020 11:54:21 -0900 Subject: [Gambas-user] User Digest, Vol 28, Issue 23 In-Reply-To: References: Message-ID: I have no idea what version I was using before. As far as what being used now it's whatever the latest one is available in the Fedora repos. What I mean by it becomes read only. Is that initially I could write to that array. I have to be update I get an error that the array is read-only. That is what I mean by it becomes read only. There's a change in The Interpreter somewhere that made that a read-only array where it used to be a read and write. However that's inconsequential that was annoying for the changes. The big issue is the font sizes. I have also noticed that sometimes when I print aside from the font size is being screwed up. Sometimes and I haven't figured out the pattern, it prints just some of the highlight colors and lines and absolutely no text whatsoever. And then when I reprint it immediately after everything comes out fine. Minus the font size issues. If I'm one of the few people having a problem like this I wonder if a flawed interpreter was released into the Fedora repos and the corrections have not come through yet. Fedora is notorious for taking time for updates to get into the public. ?Sent from TypeApp ? On Jan 10, 2020, 11:47, at 11:47, user-request at lists.gambas-basic.org wrote: >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 Digest, Vol 28, Issue 20 (Beno?t Minisini) > 2. Re: User Digest, Vol 28, Issue 20 (Jussi Lahtinen) > 3. Re: User Digest, Vol 28, Issue 20 (Steve G) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Fri, 10 Jan 2020 21:00:53 +0100 >From: Beno?t Minisini >To: user at lists.gambas-basic.org >Subject: Re: [Gambas-user] User Digest, Vol 28, Issue 20 >Message-ID: >Content-Type: text/plain; charset=utf-8; format=flowed > >Le 10/01/2020 ? 20:51, Steve G via User a ?crit?: >> I used to use. >> >> Private a[300] as string >> >> Declared in top of module >> >> That now becomes read only. >> As for fonts it is in the paint.font.size while printing to paper. >The >> 18 point becomes 22 when printed and a 8 becomes 4 when printed. It's > >> just all over the place > >We are progressing... > >What do you mean exactly by "it becomes read-only"? > >Still you don't tell use which version of Gambas you have now against >which one you had before the update... > >-- >Beno?t Minisini > > >------------------------------ > >Message: 2 >Date: Fri, 10 Jan 2020 22:05:24 +0200 >From: Jussi Lahtinen >To: Gambas Mailing List >Cc: Steve G >Subject: Re: [Gambas-user] User Digest, Vol 28, Issue 20 >Message-ID: > >Content-Type: text/plain; charset="utf-8" > >For what reason you are using embedded arrays? >Maybe you want; >Private a as new string[300] > >They are faster and don't have restrictions. > > >Jussi > >On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < >user at lists.gambas-basic.org> wrote: > >> I used to use. >> >> Private a[300] as string >> >> Declared in top of module >> >> That now becomes read only. >> As for fonts it is in the paint.font.size while printing to paper. >The 18 >> point becomes 22 when printed and a 8 becomes 4 when printed. It's >just all >> over the place >> >> Sent from TypeApp >> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org wrote: >>> >>> 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: How to Align.Justify (Gianluigi) >>> 2. exec also working as shell why? (PICCORO McKAY Lenz) >>> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >>> >>> >>> ------------------------------ >>> >>> >>> Message: 1 >>> Date: Fri, 10 Jan 2020 16:24:57 +0100 >>> From: Gianluigi >>> To: Gambas Mailing List >>> Subject: Re: [Gambas-user] How to Align.Justify >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi > ha >>> scritto: >>> >>> >>>> In .local/share/gambas3/gianluigi of your home folder. >>> >>> >>> >>> Edit: .local/share/gambas3/src/gianluigi >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 2 >>> Date: Fri, 10 Jan 2020 12:38:17 -0400 >>> From: PICCORO McKAY Lenz >>> To: Gambas Mailing List >>> Subject: [Gambas-user] exec also working as shell why? >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> i have a code where i want to pass content to main.. but i never >raised the >>> content: >>> cadena only are filled with content after main raises end, why .. if >i not >>> use shell? >>> i attached the project >>> >>> i have a class and a module main, class are: >>> >>> Public cadena As String = "ver" >>> Public linea As Collection >>> Private lineas As String[] >>> >>> Public Sub Main() >>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >>> End >>> >>> >>> Public Sub Processo_Read() >>> Dim sLine As String >>> Dim llavevalor As String[] >>> Dim a As Integer >>> sLine = Read #Last, -256 >>> cadena = cadena & sLine >>> lineas = Split(sLine, gb.NewLine, "", True) >>> For a = 0 To lineas.max >>> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 >Then >>> llavevalor = Split(lineas[a], "=", "\"", False, False) >>> linea.Add(llavevalor[1], llavevalor[0]) >>> Endif >>> Next >>> End >>> >>> >>> SO in my Main modulo i have: >>> >>> Public Sub Main() >>> Dim ver As New CourierConfigDetector >>> ver.Main >>> Print ver.cadena >>> End >>> >>> cadena only are filled with content after main raises end, why .. if >i not >>> use shell? >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> -------------- next part -------------- >>> A non-text attachment was scrubbed... >>> Name: courierauthtest-0.0.1.tar.gz >>> Type: application/gzip >>> Size: 11777 bytes >>> Desc: not available >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Message: 3 >>> Date: Fri, 10 Jan 2020 19:59:07 +0200 >>> From: Jussi Lahtinen >>> To: Gambas Mailing List >>> Cc: Beno?t Minisini , Steve G >>> >>> Subject: Re: [Gambas-user] New update has screwed everything up. >>> Message-ID: >>> > >>> Content-Type: text/plain; charset="utf-8" >>> >>> There are no global variables in Gambas. Do you mean public >variables? Can >>> you give example code of what has changed? >>> I don't see any changes in font sizes on Linux Mint. >>> >>> >>> Jussi >>> >>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >>> user at lists.gambas-basic.org> wrote: >>> >>> I don't have the version available right now but I will get that >for you. >>>> The global variables the way they were being declared became read >only so >>>> they had to be declared differently. As far as the print I have >multiple >>>> problems with that. Font sizes have changed their either miniscule >or huge. >>>> I am currently going through every single program that prints and >adjusting >>>> the font size is down two to four points each. I also occasionally >get >>>> blank prints. I do not recall what version I was using but I did a >update >>>> for all software and this is when all these problems kicked in. I >also >>>> recall seeing something about other people having problems with >various >>>> aspects of the new updates. I'm very upset about this because it >looks like >>>> nobody bothered testing it. Even though I know that could not be >the case. >>>> Bottom line I'm having massive problems in print. Problems that >were not >>>> there until after the update. Perhaps you thought you were >cleaning >>>> something up not thinking that people might be using it that way. >>>> >>>> Sent from TypeApp >>>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" >wrote: >>>> >>>>> >>>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>>> >>>>> Using Fedora 30 and 31. Whatever the new runtime update is that >came in, >>>>>> it changed how Global variables are declared which is caused me >a lot of >>>>>> grief. It is also changed printing Styles. Seems as though the >font size >>>>>> is no longer accepted. So my printing of things like receipts >for >>>>>> people, is horribly screwed up. Is there an easy fix to this so >that it >>>>>> works like it did before? Or am I going to have to spend months >>>>>> rewriting print so that it works right again? >>>>> >>>>> >>>>> >>>>> Which version of Gambas do you have? >>>>> >>>>> Which version did you use before? >>>>> >>>>> What are you talking about? >>>>> >>>>> There is no change in "how Global variables are declared". No >idea what >>>>> you mean. >>>>> >>>>> Same thing for "the font size is no longer accepted". What does >it mean? >>>> >>>> >>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >>> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: > >>> >>> ------------------------------ >>> >>> >>> Subject: Digest Footer >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- >>> >>> >>> ------------------------------ >>> >>> >>> End of User Digest, Vol 28, Issue 20 >>> ************************************ >>> >>> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 3 >Date: Fri, 10 Jan 2020 11:43:31 -0900 >From: Steve G >To: Jussi Lahtinen >Cc: Gambas Mailing List >Subject: Re: [Gambas-user] User Digest, Vol 28, Issue 20 >Message-ID: <85095b31-b5b7-47ed-82df-05ef319f643b at yahoo.com> >Content-Type: text/plain; charset="utf-8" > >That's exactly what I had to do. However the other method was working >up until the update. The premise was that I read a file in stored it >and then performed various acts on that file. Using different >subroutines. This way there was only one read one write > >?Sent from TypeApp ? > >On Jan 10, 2020, 11:05, at 11:05, Jussi Lahtinen > wrote: >>For what reason you are using embedded arrays? >>Maybe you want; >>Private a as new string[300] >> >>They are faster and don't have restrictions. >> >> >>Jussi >> >>On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < >>user at lists.gambas-basic.org> wrote: >> >>> I used to use. >>> >>> Private a[300] as string >>> >>> Declared in top of module >>> >>> That now becomes read only. >>> As for fonts it is in the paint.font.size while printing to paper. >>The 18 >>> point becomes 22 when printed and a 8 becomes 4 when printed. It's >>just all >>> over the place >>> >>> Sent from TypeApp >>> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org >wrote: >>>> >>>> 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: How to Align.Justify (Gianluigi) >>>> 2. exec also working as shell why? (PICCORO McKAY Lenz) >>>> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >>>> >>>> >>>> ------------------------------ >>>> >>>> >>>> Message: 1 >>>> Date: Fri, 10 Jan 2020 16:24:57 +0100 >>>> From: Gianluigi >>>> To: Gambas Mailing List >>>> Subject: Re: [Gambas-user] How to Align.Justify >>>> Message-ID: >>>> >> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi >> ha >>>> scritto: >>>> >>>> >>>>> In .local/share/gambas3/gianluigi of your home folder. >>>> >>>> >>>> >>>> Edit: .local/share/gambas3/src/gianluigi >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >> >>>> >>>> ------------------------------ >>>> >>>> >>>> Message: 2 >>>> Date: Fri, 10 Jan 2020 12:38:17 -0400 >>>> From: PICCORO McKAY Lenz >>>> To: Gambas Mailing List >>>> Subject: [Gambas-user] exec also working as shell why? >>>> Message-ID: >>>> >> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> i have a code where i want to pass content to main.. but i never >>raised the >>>> content: >>>> cadena only are filled with content after main raises end, why .. >if >>i not >>>> use shell? >>>> i attached the project >>>> >>>> i have a class and a module main, class are: >>>> >>>> Public cadena As String = "ver" >>>> Public linea As Collection >>>> Private lineas As String[] >>>> >>>> Public Sub Main() >>>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >>>> End >>>> >>>> >>>> Public Sub Processo_Read() >>>> Dim sLine As String >>>> Dim llavevalor As String[] >>>> Dim a As Integer >>>> sLine = Read #Last, -256 >>>> cadena = cadena & sLine >>>> lineas = Split(sLine, gb.NewLine, "", True) >>>> For a = 0 To lineas.max >>>> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 >>Then >>>> llavevalor = Split(lineas[a], "=", "\"", False, False) >>>> linea.Add(llavevalor[1], llavevalor[0]) >>>> Endif >>>> Next >>>> End >>>> >>>> >>>> SO in my Main modulo i have: >>>> >>>> Public Sub Main() >>>> Dim ver As New CourierConfigDetector >>>> ver.Main >>>> Print ver.cadena >>>> End >>>> >>>> cadena only are filled with content after main raises end, why .. >if >>i not >>>> use shell? >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >> >>>> -------------- next part -------------- >>>> A non-text attachment was scrubbed... >>>> Name: courierauthtest-0.0.1.tar.gz >>>> Type: application/gzip >>>> Size: 11777 bytes >>>> Desc: not available >>>> URL: >> >>>> >>>> ------------------------------ >>>> >>>> >>>> Message: 3 >>>> Date: Fri, 10 Jan 2020 19:59:07 +0200 >>>> From: Jussi Lahtinen >>>> To: Gambas Mailing List >>>> Cc: Beno?t Minisini , Steve G >>>> >>>> Subject: Re: [Gambas-user] New update has screwed everything up. >>>> Message-ID: >>>> >> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> There are no global variables in Gambas. Do you mean public >>variables? Can >>>> you give example code of what has changed? >>>> I don't see any changes in font sizes on Linux Mint. >>>> >>>> >>>> Jussi >>>> >>>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >>>> user at lists.gambas-basic.org> wrote: >>>> >>>> I don't have the version available right now but I will get that >>for you. >>>>> The global variables the way they were being declared became read >>only so >>>>> they had to be declared differently. As far as the print I have >>multiple >>>>> problems with that. Font sizes have changed their either >miniscule >>or huge. >>>>> I am currently going through every single program that prints and >>adjusting >>>>> the font size is down two to four points each. I also >occasionally >>get >>>>> blank prints. I do not recall what version I was using but I did >a >>update >>>>> for all software and this is when all these problems kicked in. I >>also >>>>> recall seeing something about other people having problems with >>various >>>>> aspects of the new updates. I'm very upset about this because it >>looks like >>>>> nobody bothered testing it. Even though I know that could not be >>the case. >>>>> Bottom line I'm having massive problems in print. Problems that >>were not >>>>> there until after the update. Perhaps you thought you were >>cleaning >>>>> something up not thinking that people might be using it that way. >>>>> >>>>> Sent from TypeApp >>>>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" >>wrote: >>>>> >>>>>> >>>>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>>>> >>>>>> Using Fedora 30 and 31. Whatever the new runtime update is that >>came in, >>>>>>> it changed how Global variables are declared which is caused >me >>a lot of >>>>>>> grief. It is also changed printing Styles. Seems as though the >>font size >>>>>>> is no longer accepted. So my printing of things like receipts >>for >>>>>>> people, is horribly screwed up. Is there an easy fix to this >so >>that it >>>>>>> works like it did before? Or am I going to have to spend >months >>>>>>> rewriting print so that it works right again? >>>>>> >>>>>> >>>>>> >>>>>> Which version of Gambas do you have? >>>>>> >>>>>> Which version did you use before? >>>>>> >>>>>> What are you talking about? >>>>>> >>>>>> There is no change in "how Global variables are declared". No >>idea what >>>>>> you mean. >>>>>> >>>>>> Same thing for "the font size is no longer accepted". What does >>it mean? >>>>> >>>>> >>>>> >>>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>>> >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >> >>>> >>>> ------------------------------ >>>> >>>> >>>> Subject: Digest Footer >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>]---- >>>> >>>> >>>> ------------------------------ >>>> >>>> >>>> End of User Digest, Vol 28, Issue 20 >>>> ************************************ >>>> >>>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Subject: Digest Footer > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- > > >------------------------------ > >End of User Digest, Vol 28, Issue 23 >************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Fri Jan 10 22:12:52 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 10 Jan 2020 16:12:52 -0500 Subject: [Gambas-user] User Digest, Vol 28, Issue 23 In-Reply-To: References: Message-ID: <08b53bf1-2d64-8cea-e17e-781041089900@gmail.com> On 1/10/20 3:54 PM, Steve G via User wrote: > I have no idea what version I was using before. As far as what being used now it's whatever the latest one is available in the > Fedora repos. When you launch the IDE, it displays the version number. -- Lee From jussi.lahtinen at gmail.com Fri Jan 10 22:44:35 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 10 Jan 2020 23:44:35 +0200 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> References: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> Message-ID: Dim a as string = File.Load(sFilename) or Dim a as string[] = Split(File.Load(sFilename), "something") Embedded arrays are good only for external libraries. They don't enable anything else, they only bring restrictions. Don't use them, if you don't need them. Jussi On Fri, Jan 10, 2020 at 10:43 PM Steve G wrote: > That's exactly what I had to do. However the other method was working up > until the update. The premise was that I read a file in stored it and then > performed various acts on that file. Using different subroutines. This way > there was only one read one write > > Sent from TypeApp > On Jan 10, 2020, at 11:05, Jussi Lahtinen > wrote: >> >> For what reason you are using embedded arrays? >> Maybe you want; >> Private a as new string[300] >> >> They are faster and don't have restrictions. >> >> >> Jussi >> >> On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < >> user at lists.gambas-basic.org> wrote: >> >>> I used to use. >>> >>> Private a[300] as string >>> >>> Declared in top of module >>> >>> That now becomes read only. >>> As for fonts it is in the paint.font.size while printing to paper. The >>> 18 point becomes 22 when printed and a 8 becomes 4 when printed. It's just >>> all over the place >>> >>> Sent from TypeApp >>> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org wrote: >>>> >>>> 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: How to Align.Justify (Gianluigi) >>>> 2. exec also working as shell why? (PICCORO McKAY Lenz) >>>> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >>>> >>>> >>>> >>>> ------------------------------ >>>> >>>> >>>> Message: 1 >>>> Date: Fri, 10 Jan 2020 16:24:57 +0100 >>>> From: Gianluigi >>>> To: Gambas Mailing List >>>> Subject: Re: [Gambas-user] How to Align.Justify >>>> Message-ID: >>>> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi ha >>>> scritto: >>>> >>>> >>>> >>>>> >>>>> In .local/share/gambas3/gianluigi of your home folder. >>>>> >>>> >>>> >>>> >>>> Edit: .local/share/gambas3/src/gianluigi >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >>>> >>>> >>>> ------------------------------ >>>> >>>> >>>> Message: 2 >>>> Date: Fri, 10 Jan 2020 12:38:17 -0400 >>>> From: PICCORO McKAY Lenz >>>> To: Gambas Mailing List >>>> Subject: [Gambas-user] exec also working as shell why? >>>> Message-ID: >>>> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> i have a code where i want to pass content to main.. but i never raised the >>>> content: >>>> cadena only are filled with content after main raises end, why .. if i not >>>> use shell? >>>> i attached the project >>>> >>>> i have a class and a module main, class are: >>>> >>>> Public cadena As String = "ver" >>>> Public linea As Collection >>>> Private lineas As String[] >>>> >>>> Public Sub Main() >>>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >>>> End >>>> >>>> >>>> Public Sub Processo_Read() >>>> Dim sLine As String >>>> Dim llavevalor As String[] >>>> Dim a As Integer >>>> sLine = Read #Last, -256 >>>> cadena = cadena & sLine >>>> lineas = Split(sLine, gb.NewLine, "", True) >>>> For a = 0 To lineas.max >>>> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 Then >>>> llavevalor = Split(lineas[a], "=", "\"", False, False) >>>> linea.Add(llavevalor[1], llavevalor[0]) >>>> Endif >>>> Next >>>> End >>>> >>>> >>>> SO in my Main modulo i have: >>>> >>>> Public Sub Main() >>>> Dim ver As New CourierConfigDetector >>>> ver.Main >>>> Print ver.cadena >>>> End >>>> >>>> cadena only are filled with content after main raises end, why .. if i not >>>> use shell? >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >>>> -------------- next part -------------- >>>> A non-text attachment was scrubbed... >>>> Name: courierauthtest-0.0.1.tar.gz >>>> Type: application/gzip >>>> Size: 11777 bytes >>>> Desc: not available >>>> URL: >>>> >>>> >>>> ------------------------------ >>>> >>>> >>>> Message: 3 >>>> Date: Fri, 10 Jan 2020 19:59:07 +0200 >>>> From: Jussi Lahtinen >>>> To: Gambas Mailing List >>>> Cc: Beno?t Minisini , Steve G >>>> >>>> Subject: Re: [Gambas-user] New update has screwed everything up. >>>> Message-ID: >>>> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> There are no global variables in Gambas. Do you mean public variables? Can >>>> you give example code of what has changed? >>>> I don't see any changes in font sizes on Linux Mint. >>>> >>>> >>>> Jussi >>>> >>>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >>>> user at lists.gambas-basic.org> wrote: >>>> >>>> >>>> >>>>> I don't have the version available right now but I will get that for you. >>>>> >>>>> The global variables the way they were being declared became read only so >>>>> >>>>> they had to be declared differently. As far as the print I have multiple >>>>> >>>>> problems with that. Font sizes have changed their either miniscule or huge. >>>>> >>>>> I am currently going through every single program that prints and adjusting >>>>> >>>>> the font size is down two to four points each. I also occasionally get >>>>> >>>>> blank prints. I do not recall what version I was using but I did a update >>>>> >>>>> for all software and this is when all these problems kicked in. I also >>>>> >>>>> recall seeing something about other people having problems with various >>>>> >>>>> aspects of the new updates. I'm very upset about this because it looks like >>>>> >>>>> nobody bothered testing it. Even though I know that could not be the case. >>>>> >>>>> Bottom line I'm having massive problems in print. Problems that were not >>>>> >>>>> there until after the update. Perhaps you thought you were cleaning >>>>> >>>>> something up not thinking that people might be using it that way. >>>>> >>>>> >>>>> >>>>> Sent from TypeApp < >>>>> http://www.typeapp.com/r?b=15723> >>>>> >>>>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" < >>>>> g4mba5 at gmail.com> wrote: >>>>> >>>>> >>>>> >>>>>> >>>>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Using Fedora 30 and 31. Whatever the new runtime update is that came in, >>>>>>> >>>>>>> it changed how Global variables are declared which is caused me a lot of >>>>>>> >>>>>>> grief. It is also changed printing Styles. Seems as though the font size >>>>>>> >>>>>>> is no longer accepted. So my printing of things like receipts for >>>>>>> >>>>>>> people, is horribly screwed up. Is there an easy fix to this so that it >>>>>>> >>>>>>> works like it did before? Or am I going to have to spend months >>>>>>> >>>>>>> rewriting print so that it works right again? >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> Which version of Gambas do you have? >>>>>> >>>>>> >>>>>> >>>>>> Which version did you use before? >>>>>> >>>>>> >>>>>> >>>>>> What are you talking about? >>>>>> >>>>>> >>>>>> >>>>>> There is no change in "how Global variables are declared". No idea what >>>>>> >>>>>> you mean. >>>>>> >>>>>> >>>>>> >>>>>> Same thing for "the font size is no longer accepted". What does it mean? >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> ----[ >>>>> http://gambaswiki.org/wiki/doc/netiquette ]---- >>>>> >>>> >>>> >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >>>> >>>> >>>> ------------------------------ >>>> >>>> >>>> Subject: Digest Footer >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>>> >>>> >>>> >>>> ------------------------------ >>>> >>>> >>>> End of User Digest, Vol 28, Issue 20 >>>> ************************************ >>>> >>>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 22:49:35 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Fri, 10 Jan 2020 12:49:35 -0900 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> Message-ID: <8d89ff28-7a03-45d0-8df0-e614931f36e3@yahoo.com> Never tried that method. I ported all this over from Windows so used same or similar. I used the array for each line in the file. I use it for configuration files. Settings is great I love that feature but if I need the config in another area I use my own. As far as I know using settings in gambas is limited to just that user. I mean as in the settings command. ?Sent from TypeApp ? On Jan 10, 2020, 12:44, at 12:44, Jussi Lahtinen wrote: >Dim a as string = File.Load(sFilename) >or >Dim a as string[] = Split(File.Load(sFilename), "something") > >Embedded arrays are good only for external libraries. They don't enable >anything else, they only bring restrictions. Don't use them, if you >don't >need them. > > >Jussi > >On Fri, Jan 10, 2020 at 10:43 PM Steve G >wrote: > >> That's exactly what I had to do. However the other method was working >up >> until the update. The premise was that I read a file in stored it and >then >> performed various acts on that file. Using different subroutines. >This way >> there was only one read one write >> >> Sent from TypeApp >> On Jan 10, 2020, at 11:05, Jussi Lahtinen >> wrote: >>> >>> For what reason you are using embedded arrays? >>> Maybe you want; >>> Private a as new string[300] >>> >>> They are faster and don't have restrictions. >>> >>> >>> Jussi >>> >>> On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < >>> user at lists.gambas-basic.org> wrote: >>> >>>> I used to use. >>>> >>>> Private a[300] as string >>>> >>>> Declared in top of module >>>> >>>> That now becomes read only. >>>> As for fonts it is in the paint.font.size while printing to paper. >The >>>> 18 point becomes 22 when printed and a 8 becomes 4 when printed. >It's just >>>> all over the place >>>> >>>> Sent from TypeApp >>>> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org >wrote: >>>>> >>>>> 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: How to Align.Justify (Gianluigi) >>>>> 2. exec also working as shell why? (PICCORO McKAY Lenz) >>>>> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >>>>> >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Message: 1 >>>>> Date: Fri, 10 Jan 2020 16:24:57 +0100 >>>>> From: Gianluigi >>>>> To: Gambas Mailing List >>>>> Subject: Re: [Gambas-user] How to Align.Justify >>>>> Message-ID: >>>>> > >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi > ha >>>>> scritto: >>>>> >>>>> >>>>> >>>>>> >>>>>> In .local/share/gambas3/gianluigi of your home folder. >>>>>> >>>>> >>>>> >>>>> >>>>> Edit: .local/share/gambas3/src/gianluigi >>>>> -------------- next part -------------- >>>>> An HTML attachment was scrubbed... >>>>> URL: > >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Message: 2 >>>>> Date: Fri, 10 Jan 2020 12:38:17 -0400 >>>>> From: PICCORO McKAY Lenz >>>>> To: Gambas Mailing List >>>>> Subject: [Gambas-user] exec also working as shell why? >>>>> Message-ID: >>>>> > >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> i have a code where i want to pass content to main.. but i never >raised the >>>>> content: >>>>> cadena only are filled with content after main raises end, why .. >if i not >>>>> use shell? >>>>> i attached the project >>>>> >>>>> i have a class and a module main, class are: >>>>> >>>>> Public cadena As String = "ver" >>>>> Public linea As Collection >>>>> Private lineas As String[] >>>>> >>>>> Public Sub Main() >>>>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >>>>> End >>>>> >>>>> >>>>> Public Sub Processo_Read() >>>>> Dim sLine As String >>>>> Dim llavevalor As String[] >>>>> Dim a As Integer >>>>> sLine = Read #Last, -256 >>>>> cadena = cadena & sLine >>>>> lineas = Split(sLine, gb.NewLine, "", True) >>>>> For a = 0 To lineas.max >>>>> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 >Then >>>>> llavevalor = Split(lineas[a], "=", "\"", False, False) >>>>> linea.Add(llavevalor[1], llavevalor[0]) >>>>> Endif >>>>> Next >>>>> End >>>>> >>>>> >>>>> SO in my Main modulo i have: >>>>> >>>>> Public Sub Main() >>>>> Dim ver As New CourierConfigDetector >>>>> ver.Main >>>>> Print ver.cadena >>>>> End >>>>> >>>>> cadena only are filled with content after main raises end, why .. >if i not >>>>> use shell? >>>>> -------------- next part -------------- >>>>> An HTML attachment was scrubbed... >>>>> URL: > >>>>> -------------- next part -------------- >>>>> A non-text attachment was scrubbed... >>>>> Name: courierauthtest-0.0.1.tar.gz >>>>> Type: application/gzip >>>>> Size: 11777 bytes >>>>> Desc: not available >>>>> URL: > >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Message: 3 >>>>> Date: Fri, 10 Jan 2020 19:59:07 +0200 >>>>> From: Jussi Lahtinen >>>>> To: Gambas Mailing List >>>>> Cc: Beno?t Minisini , Steve G >>>>> >>>>> Subject: Re: [Gambas-user] New update has screwed everything up. >>>>> Message-ID: >>>>> > >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> There are no global variables in Gambas. Do you mean public >variables? Can >>>>> you give example code of what has changed? >>>>> I don't see any changes in font sizes on Linux Mint. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >>>>> user at lists.gambas-basic.org> wrote: >>>>> >>>>> >>>>> >>>>>> I don't have the version available right now but I will >get that for you. >>>>>> >>>>>> The global variables the way they were being declared became >read only so >>>>>> >>>>>> they had to be declared differently. As far as the print I have >multiple >>>>>> >>>>>> problems with that. Font sizes have changed their either >miniscule or huge. >>>>>> >>>>>> I am currently going through every single program that prints >and adjusting >>>>>> >>>>>> the font size is down two to four points each. I also >occasionally get >>>>>> >>>>>> blank prints. I do not recall what version I was using but I did >a update >>>>>> >>>>>> for all software and this is when all these problems kicked in. >I also >>>>>> >>>>>> recall seeing something about other people having problems with >various >>>>>> >>>>>> aspects of the new updates. I'm very upset about this because it >looks like >>>>>> >>>>>> nobody bothered testing it. Even though I know that could not be >the case. >>>>>> >>>>>> Bottom line I'm having massive problems in print. Problems that >were not >>>>>> >>>>>> there until after the update. Perhaps you thought you were >cleaning >>>>>> >>>>>> something up not thinking that people might be using it that >way. >>>>>> >>>>>> >>>>>> >>>>>> Sent from TypeApp < >>>>>> http://www.typeapp.com/r?b=15723> >>>>>> >>>>>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" < >>>>>> g4mba5 at gmail.com> wrote: >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Using Fedora 30 and 31. Whatever the new runtime >update is that came in, >>>>>>>> >>>>>>>> it changed how Global variables are declared which is caused >me a lot of >>>>>>>> >>>>>>>> grief. It is also changed printing Styles. Seems as though the >font size >>>>>>>> >>>>>>>> is no longer accepted. So my printing of things like receipts >for >>>>>>>> >>>>>>>> people, is horribly screwed up. Is there an easy fix to this >so that it >>>>>>>> >>>>>>>> works like it did before? Or am I going to have to spend >months >>>>>>>> >>>>>>>> rewriting print so that it works right again? >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Which version of Gambas do you have? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Which version did you use before? >>>>>>> >>>>>>> >>>>>>> >>>>>>> What are you talking about? >>>>>>> >>>>>>> >>>>>>> >>>>>>> There is no change in "how Global variables are declared". No >idea what >>>>>>> >>>>>>> you mean. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Same thing for "the font size is no longer accepted". What does >it mean? >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ----[ >>>>>> http://gambaswiki.org/wiki/doc/netiquette ]---- >>>>>> >>>>> >>>>> >>>>> -------------- next part -------------- >>>>> An HTML attachment was scrubbed... >>>>> URL: > >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Subject: Digest Footer >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- >>>>> >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> End of User Digest, Vol 28, Issue 20 >>>>> ************************************ >>>>> >>>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Fri Jan 10 22:49:35 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Fri, 10 Jan 2020 12:49:35 -0900 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> Message-ID: <8d89ff28-7a03-45d0-8df0-e614931f36e3@yahoo.com> Never tried that method. I ported all this over from Windows so used same or similar. I used the array for each line in the file. I use it for configuration files. Settings is great I love that feature but if I need the config in another area I use my own. As far as I know using settings in gambas is limited to just that user. I mean as in the settings command. ?Sent from TypeApp ? On Jan 10, 2020, 12:44, at 12:44, Jussi Lahtinen wrote: >Dim a as string = File.Load(sFilename) >or >Dim a as string[] = Split(File.Load(sFilename), "something") > >Embedded arrays are good only for external libraries. They don't enable >anything else, they only bring restrictions. Don't use them, if you >don't >need them. > > >Jussi > >On Fri, Jan 10, 2020 at 10:43 PM Steve G >wrote: > >> That's exactly what I had to do. However the other method was working >up >> until the update. The premise was that I read a file in stored it and >then >> performed various acts on that file. Using different subroutines. >This way >> there was only one read one write >> >> Sent from TypeApp >> On Jan 10, 2020, at 11:05, Jussi Lahtinen >> wrote: >>> >>> For what reason you are using embedded arrays? >>> Maybe you want; >>> Private a as new string[300] >>> >>> They are faster and don't have restrictions. >>> >>> >>> Jussi >>> >>> On Fri, Jan 10, 2020 at 9:53 PM Steve G via User < >>> user at lists.gambas-basic.org> wrote: >>> >>>> I used to use. >>>> >>>> Private a[300] as string >>>> >>>> Declared in top of module >>>> >>>> That now becomes read only. >>>> As for fonts it is in the paint.font.size while printing to paper. >The >>>> 18 point becomes 22 when printed and a 8 becomes 4 when printed. >It's just >>>> all over the place >>>> >>>> Sent from TypeApp >>>> On Jan 10, 2020, at 09:02, user-request at lists.gambas-basic.org >wrote: >>>>> >>>>> 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: How to Align.Justify (Gianluigi) >>>>> 2. exec also working as shell why? (PICCORO McKAY Lenz) >>>>> 3. Re: New update has screwed everything up. (Jussi Lahtinen) >>>>> >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Message: 1 >>>>> Date: Fri, 10 Jan 2020 16:24:57 +0100 >>>>> From: Gianluigi >>>>> To: Gambas Mailing List >>>>> Subject: Re: [Gambas-user] How to Align.Justify >>>>> Message-ID: >>>>> > >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi > ha >>>>> scritto: >>>>> >>>>> >>>>> >>>>>> >>>>>> In .local/share/gambas3/gianluigi of your home folder. >>>>>> >>>>> >>>>> >>>>> >>>>> Edit: .local/share/gambas3/src/gianluigi >>>>> -------------- next part -------------- >>>>> An HTML attachment was scrubbed... >>>>> URL: > >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Message: 2 >>>>> Date: Fri, 10 Jan 2020 12:38:17 -0400 >>>>> From: PICCORO McKAY Lenz >>>>> To: Gambas Mailing List >>>>> Subject: [Gambas-user] exec also working as shell why? >>>>> Message-ID: >>>>> > >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> i have a code where i want to pass content to main.. but i never >raised the >>>>> content: >>>>> cadena only are filled with content after main raises end, why .. >if i not >>>>> use shell? >>>>> i attached the project >>>>> >>>>> i have a class and a module main, class are: >>>>> >>>>> Public cadena As String = "ver" >>>>> Public linea As Collection >>>>> Private lineas As String[] >>>>> >>>>> Public Sub Main() >>>>> Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" >>>>> End >>>>> >>>>> >>>>> Public Sub Processo_Read() >>>>> Dim sLine As String >>>>> Dim llavevalor As String[] >>>>> Dim a As Integer >>>>> sLine = Read #Last, -256 >>>>> cadena = cadena & sLine >>>>> lineas = Split(sLine, gb.NewLine, "", True) >>>>> For a = 0 To lineas.max >>>>> If RInStr(lineas[a], "=") > 0 And RInStr(lineas[a], "#") < 1 >Then >>>>> llavevalor = Split(lineas[a], "=", "\"", False, False) >>>>> linea.Add(llavevalor[1], llavevalor[0]) >>>>> Endif >>>>> Next >>>>> End >>>>> >>>>> >>>>> SO in my Main modulo i have: >>>>> >>>>> Public Sub Main() >>>>> Dim ver As New CourierConfigDetector >>>>> ver.Main >>>>> Print ver.cadena >>>>> End >>>>> >>>>> cadena only are filled with content after main raises end, why .. >if i not >>>>> use shell? >>>>> -------------- next part -------------- >>>>> An HTML attachment was scrubbed... >>>>> URL: > >>>>> -------------- next part -------------- >>>>> A non-text attachment was scrubbed... >>>>> Name: courierauthtest-0.0.1.tar.gz >>>>> Type: application/gzip >>>>> Size: 11777 bytes >>>>> Desc: not available >>>>> URL: > >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Message: 3 >>>>> Date: Fri, 10 Jan 2020 19:59:07 +0200 >>>>> From: Jussi Lahtinen >>>>> To: Gambas Mailing List >>>>> Cc: Beno?t Minisini , Steve G >>>>> >>>>> Subject: Re: [Gambas-user] New update has screwed everything up. >>>>> Message-ID: >>>>> > >>>>> Content-Type: text/plain; charset="utf-8" >>>>> >>>>> There are no global variables in Gambas. Do you mean public >variables? Can >>>>> you give example code of what has changed? >>>>> I don't see any changes in font sizes on Linux Mint. >>>>> >>>>> >>>>> Jussi >>>>> >>>>> On Fri, Jan 10, 2020 at 4:11 AM Steve G via User < >>>>> user at lists.gambas-basic.org> wrote: >>>>> >>>>> >>>>> >>>>>> I don't have the version available right now but I will >get that for you. >>>>>> >>>>>> The global variables the way they were being declared became >read only so >>>>>> >>>>>> they had to be declared differently. As far as the print I have >multiple >>>>>> >>>>>> problems with that. Font sizes have changed their either >miniscule or huge. >>>>>> >>>>>> I am currently going through every single program that prints >and adjusting >>>>>> >>>>>> the font size is down two to four points each. I also >occasionally get >>>>>> >>>>>> blank prints. I do not recall what version I was using but I did >a update >>>>>> >>>>>> for all software and this is when all these problems kicked in. >I also >>>>>> >>>>>> recall seeing something about other people having problems with >various >>>>>> >>>>>> aspects of the new updates. I'm very upset about this because it >looks like >>>>>> >>>>>> nobody bothered testing it. Even though I know that could not be >the case. >>>>>> >>>>>> Bottom line I'm having massive problems in print. Problems that >were not >>>>>> >>>>>> there until after the update. Perhaps you thought you were >cleaning >>>>>> >>>>>> something up not thinking that people might be using it that >way. >>>>>> >>>>>> >>>>>> >>>>>> Sent from TypeApp < >>>>>> http://www.typeapp.com/r?b=15723> >>>>>> >>>>>> On Jan 9, 2020, at 16:46, "Beno?t Minisini" < >>>>>> g4mba5 at gmail.com> wrote: >>>>>> >>>>>> >>>>>> >>>>>>> >>>>>>> Le 10/01/2020 ? 02:33, Steve G via User a ?crit : >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Using Fedora 30 and 31. Whatever the new runtime >update is that came in, >>>>>>>> >>>>>>>> it changed how Global variables are declared which is caused >me a lot of >>>>>>>> >>>>>>>> grief. It is also changed printing Styles. Seems as though the >font size >>>>>>>> >>>>>>>> is no longer accepted. So my printing of things like receipts >for >>>>>>>> >>>>>>>> people, is horribly screwed up. Is there an easy fix to this >so that it >>>>>>>> >>>>>>>> works like it did before? Or am I going to have to spend >months >>>>>>>> >>>>>>>> rewriting print so that it works right again? >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> Which version of Gambas do you have? >>>>>>> >>>>>>> >>>>>>> >>>>>>> Which version did you use before? >>>>>>> >>>>>>> >>>>>>> >>>>>>> What are you talking about? >>>>>>> >>>>>>> >>>>>>> >>>>>>> There is no change in "how Global variables are declared". No >idea what >>>>>>> >>>>>>> you mean. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Same thing for "the font size is no longer accepted". What does >it mean? >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ----[ >>>>>> http://gambaswiki.org/wiki/doc/netiquette ]---- >>>>>> >>>>> >>>>> >>>>> -------------- next part -------------- >>>>> An HTML attachment was scrubbed... >>>>> URL: > >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> Subject: Digest Footer >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- >>>>> >>>>> >>>>> >>>>> ------------------------------ >>>>> >>>>> >>>>> End of User Digest, Vol 28, Issue 20 >>>>> ************************************ >>>>> >>>>> >>>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Fri Jan 10 23:12:38 2020 From: genbraga1 at gmail.com (gen braga) Date: Fri, 10 Jan 2020 19:12:38 -0300 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: <8d89ff28-7a03-45d0-8df0-e614931f36e3@yahoo.com> References: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> <8d89ff28-7a03-45d0-8df0-e614931f36e3@yahoo.com> Message-ID: You can do that with Settings too. Check: http://gambaswiki.org/wiki/comp/gb.settings/settings?nh For the bottom example. You can do so to store separated settings with separated .conf files. Also check www.gambas-book.com for It. Gen. Em sex, 10 de jan de 2020 18:50, Steve G via User < user at lists.gambas-basic.org> escreveu: > Settings is great I love that feature but if I need the config in another > area I use my own. As far as I know using settings in gambas is limited to > just that user. > I mean as in the settings command. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Fri Jan 10 23:14:25 2020 From: genbraga1 at gmail.com (gen braga) Date: Fri, 10 Jan 2020 19:14:25 -0300 Subject: [Gambas-user] User Digest, Vol 28, Issue 20 In-Reply-To: References: <85095b31-b5b7-47ed-82df-05ef319f643b@yahoo.com> <8d89ff28-7a03-45d0-8df0-e614931f36e3@yahoo.com> Message-ID: http://www.gambas-book.net/ My bad. Gen. Em sex, 10 de jan de 2020 19:12, gen braga escreveu: > > Also check www.gambas-book.com for It. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat Jan 11 14:40:55 2020 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Sat, 11 Jan 2020 09:40:55 -0400 Subject: [Gambas-user] exec also working as shell why? In-Reply-To: <20200110194153.GA2455325@highrise.localdomain> References: <6251a934-e789-8cd3-cc1c-64d5c70e9653@gmail.com> <20200110194153.GA2455325@highrise.localdomain> Message-ID: originally i was to grep a configuration file..later due the complicated process changed to a cat .. an then due the inherent problems of make a complicated process use directo EXEC "commando" to Variable... now my code evoluted to "File.Load("somefile") HOLY SHIT! !!! that's not was that i want! X-D El vie., 10 de ene. de 2020 a la(s) 15:42, Tobias Boege (taboege at gmail.com) escribi?: > On Fri, 10 Jan 2020, T Lee Davidson wrote: > > On 1/10/20 11:38 AM, PICCORO McKAY Lenz wrote: > > > i have a code where i want to pass content to main.. but i never > raised the content: > > > cadena only are filled with content after main raises end, why .. if i > not use shell? > > > i attached the project > > > > > > i have a class and a module main, class are: > > > > > > Public cadena As String = "ver" > > > Public linea As Collection > > > Private lineas As String[] > > > > > > Public Sub Main() > > > Exec ["cat", "/etc/courier/authdaemonrc"] For Read As "Processo" > > > End > > > > Perhaps because you didn't tell the interpreter to "Wait" for the > command to finish before continuing on? > > > > If you're simply trying to get the contents of > "/etc/courier/authdaemonrc" > > for parsing, then why not just retrieve it into a string variable and > then > > parse it without bothering with Process_Read()? > > > > For example: > > Exec ["cat", "/etc/courier/authdaemonrc"] to cadena > > lineas = Split(cadena, gb.NewLine, "", True) > > For a = 0 To lineas.max > > ... > > Next > > > > `cat some-file` is also built into Gambas as `File.Load("some-file")`. > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From akrobaticone at gmail.com Sun Jan 12 09:28:20 2020 From: akrobaticone at gmail.com (Michele V.) Date: Sun, 12 Jan 2020 09:28:20 +0100 Subject: [Gambas-user] Gambas repository on DomotiGa project Message-ID: *The DomotiGa project is dead, no update in years, website is closed. The apt repo https://apt.domotiga.nl/ for Gambas on Raspberry Pi and Github page https://github.com/DomotiGa/DomotiGa are still online.* For the moment *repository *for gambas on Raspberry are available, but in future? Compilation of source code is possible but take long time Gambas on Raspberry could be highly appreciated, I think Gambas must be a predefinied application in Raspbian For this reason i think official gambas repository for Raspberry could be useful ------------------------------------------------------------------------------------------------------------------------------------------- Io scrivo da UBUNTU GNU/LINUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebikul at gmail.com Sun Jan 12 15:13:09 2020 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Sun, 12 Jan 2020 11:13:09 -0300 Subject: [Gambas-user] Gambas repository on DomotiGa project In-Reply-To: References: Message-ID: Hi! You can use the PPAs hosted in Launchpad, as they also compile Gambas for the ARM architecture. If you are using Ubuntu it is the same as if it were a desktop, you can follow the instructions in the wiki. If you are using Raspbian you must choose the corresponding Ubuntu release and manually add it to you sources.list. Hope it helps! Regards, Sebastian On Sun, Jan 12, 2020, 5:29 AM Michele V. wrote: > *The DomotiGa project is dead, no update in years, website is closed. The > apt repo https://apt.domotiga.nl/ for Gambas on > Raspberry Pi and Github page https://github.com/DomotiGa/DomotiGa > are still online.* > > For the moment *repository *for gambas on Raspberry are available, but in > future? > Compilation of source code is possible but take long time > Gambas on Raspberry could be highly appreciated, I think Gambas must be a > predefinied application in Raspbian > For this reason i think official gambas repository for Raspberry could be > useful > > > > ------------------------------------------------------------------------------------------------------------------------------------------- > Io scrivo da UBUNTU GNU/LINUX > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Mon Jan 13 12:09:23 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 Jan 2020 12:09:23 +0100 Subject: [Gambas-user] How to Align.Justify In-Reply-To: References: Message-ID: Am 10.01.20 um 16:24 schrieb Gianluigi: > > > Il giorno ven 10 gen 2020 alle ore 16:20 Gianluigi > ha scritto: > > > In .local/share/gambas3/gianluigi of your home folder. > > > Edit: .local/share/gambas3/src/gianluigi > Thank you for this hint, I found it. But it was by pure coincidence that I found the reason for the behaviour: in the code as it is right now, I send the text line-by-line, and a single line will - qua definitionem - never be justified. So for the algorithm of .Align.Justify, it was always the one and last line of a paragraph. When I send more than one line, everything works ok... Arrrgh! As I have to change the procedure anyway (for some other reason), I will care that whole paragraphs are sent, and that will hopefully change it to better. Regards Rolf From bagonergi at gmail.com Mon Jan 13 13:59:15 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 Jan 2020 13:59:15 +0100 Subject: [Gambas-user] How to Align.Justify In-Reply-To: References: Message-ID: Il giorno lun 13 gen 2020 alle ore 12:10 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > > > Thank you for this hint, I found it. > ... > ? If you want to use gb.report2 you have to be careful because it doesn't handle paragraphs longer than a page. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at servinfo.it Mon Jan 13 14:03:30 2020 From: gambas at servinfo.it (Marco Ancillotti) Date: Mon, 13 Jan 2020 14:03:30 +0100 Subject: [Gambas-user] Gambas error from 3.14 Message-ID: Hi all, I update my ubuntu 18.04 and now some programs raise an error , they works perfectly before latest update. The code is like: Private ctrl_dc[7] As Integer Public Sub _new() ? ctrl_dc[1] = 0 end when I open the form it stuck saying ctrl_dc is read only. Should I change somethink on variable declaration ? From jussi.lahtinen at gmail.com Mon Jan 13 14:16:11 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 13 Jan 2020 15:16:11 +0200 Subject: [Gambas-user] Gambas error from 3.14 In-Reply-To: References: Message-ID: It seems to be old bug. But you shouldn't use embedded arrays unless really necessary. This should work: Private ctrl_dc As new Integer[7] Public Sub _new() ctrl_dc[1] = 0 end Jussi On Mon, Jan 13, 2020 at 3:11 PM Marco Ancillotti wrote: > Hi all, > > I update my ubuntu 18.04 and now some programs raise an error , they > works perfectly before latest update. > > The code is like: > > Private ctrl_dc[7] As Integer > Public Sub _new() > ctrl_dc[1] = 0 > end > > when I open the form it stuck saying ctrl_dc is read only. > > Should I change somethink on variable declaration ? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jan 13 14:20:20 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 Jan 2020 14:20:20 +0100 Subject: [Gambas-user] Gambas error from 3.14 In-Reply-To: References: Message-ID: Le 13/01/2020 ? 14:03, Marco Ancillotti a ?crit?: > Hi all, > > I update my ubuntu 18.04 and now some programs raise an error , they > works perfectly before latest update. > > The code is like: > > Private ctrl_dc[7] As Integer > Public Sub _new() > ? ctrl_dc[1] = 0 > end > > when I open the form it stuck saying ctrl_dc is read only. > > Should I change somethink on variable declaration ? > Hi, It's normally fixed in Gambas 3.14.1. Regards, -- Beno?t Minisini From gambas at servinfo.it Mon Jan 13 16:25:54 2020 From: gambas at servinfo.it (Marco Ancillotti) Date: Mon, 13 Jan 2020 16:25:54 +0100 Subject: [Gambas-user] Gambas error from 3.14 In-Reply-To: References: Message-ID: Hi Lussi, thank you , that fix the problem. bye, marco. Il 13/01/20 14:16, Jussi Lahtinen ha scritto: > It seems to be old bug. But you shouldn't use embedded arrays unless > really necessary. > This should work: > > Private ctrl_dc As new Integer[7] > Public Sub _new() > ?? ctrl_dc[1] = 0 > end > > Jussi > > > On Mon, Jan 13, 2020 at 3:11 PM Marco Ancillotti > wrote: > > Hi all, > > I update my ubuntu 18.04 and now some programs raise an error , they > works perfectly before latest update. > > The code is like: > > Private ctrl_dc[7] As Integer > Public Sub _new() > ?? ctrl_dc[1] = 0 > end > > when I open the form it stuck saying ctrl_dc is read only. > > Should I change somethink on variable declaration ? > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at servinfo.it Mon Jan 13 16:29:52 2020 From: gambas at servinfo.it (Marco Ancillotti) Date: Mon, 13 Jan 2020 16:29:52 +0100 Subject: [Gambas-user] Gambas error from 3.14 In-Reply-To: References: Message-ID: <80d0e350-8719-7e11-f6ac-9f04e008759b@servinfo.it> Hi Beno?t, I have 3.14.2 on ubuntu 18.04 from gambas-team ppa (3.14.2+git5979.720e63c+build5.f4d819d.12.890837a~ubuntu18.04.1) and it don't work. Using new array instead solve the problem as jussi say. Bye, marco. Il 13/01/20 14:20, Beno?t Minisini ha scritto: > Hi, > > It's normally fixed in Gambas 3.14.1. > > Regards, > From g4mba5 at gmail.com Mon Jan 13 17:04:32 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 Jan 2020 17:04:32 +0100 Subject: [Gambas-user] Gambas error from 3.14 In-Reply-To: <80d0e350-8719-7e11-f6ac-9f04e008759b@servinfo.it> References: <80d0e350-8719-7e11-f6ac-9f04e008759b@servinfo.it> Message-ID: <6259d35e-5872-259e-fb37-4adae5cdac5f@gmail.com> Le 13/01/2020 ? 16:29, Marco Ancillotti a ?crit?: > > Hi Beno?t, > I have 3.14.2 on ubuntu 18.04 from gambas-team ppa > (3.14.2+git5979.720e63c+build5.f4d819d.12.890837a~ubuntu18.04.1) and it > don't work. > Using new array instead solve the problem as jussi say. > Bye, > marco. > > > Il 13/01/20 14:20, Beno?t Minisini ha scritto: >> Hi, >> >> It's normally fixed in Gambas 3.14.1. >> >> Regards, >> > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Sorry, you are right. That bug has been fixed later, and I must make a new release for it. I'm in a hurry... -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Jan 13 18:49:12 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 13 Jan 2020 19:49:12 +0200 Subject: [Gambas-user] QPainter::begin: Painter already active In-Reply-To: References: Message-ID: This is still issue with latest revision. Jussi On Tue, Dec 10, 2019 at 5:06 AM Jussi Lahtinen wrote: > If there is fix for this, can it be pushed to current dev version? > The messages are clogging the console. Sys info below. > > > Jussi > > [System] > Gambas=3.14.90 5e907c649 (master) > OperatingSystem=Linux > Kernel=4.15.0-72-generic > Architecture=x86_64 > Distribution=Linux Mint 19 Tara > Desktop=CINNAMON > Theme=Gtk > Language=en_US.UTF-8 > Memory=7977M > > [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.1405.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/cinnamon.default.path > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt4 > GB_PROFILE_MAX=1000 > GDMSESSION=cinnamon > GDM_LANG=en_US > GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop > GIO_LAUNCHED_DESKTOP_FILE_PID=7716 > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > INSIDE_NEMO_PYTHON= > LANG=en_US.UTF-8 > LANGUAGE=en_US.UTF-8 > LC_ADDRESS=fi_FI.UTF-8 > LC_IDENTIFICATION=fi_FI.UTF-8 > LC_MEASUREMENT=fi_FI.UTF-8 > LC_MONETARY=fi_FI.UTF-8 > LC_NAME=fi_FI.UTF-8 > LC_NUMERIC=fi_FI.UTF-8 > LC_PAPER=fi_FI.UTF-8 > LC_TELEPHONE=fi_FI.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > > PATH=/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD= > QT_ACCESSIBILITY=1 > QT_LOGGING_RULES=*.debug=false > QT_QPA_PLATFORMTHEME=qt5ct > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1139,unix/:/tmp/.ICE-unix/1139 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1203 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > On Thu, Nov 21, 2019 at 3:38 AM Jussi Lahtinen > wrote: > >> I have a lot of warnings: QPainter::begin: Painter already active >> Is that warning necessary? I'm not using draw.begin, inside of _draw >> event. >> >> >> Jussi >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Mon Jan 13 20:40:23 2020 From: karl.reinl at fen-net.de (Karl Reinl) Date: Mon, 13 Jan 2020 20:40:23 +0100 Subject: [Gambas-user] writing Path has changed!? Message-ID: <3ee99d3fbfbf65a30c294f7829f23126cec6c2ed.camel@fen-net.de> Salut, had problems after update two days ago. My program crashed. The reason was the way how I loaded pictures till now: o.picture = Picture["./img/table.png"] Nowadays gambas3 don't like this anymore, you have to write. o.picture = Picture["../img/table.png"] Somewhere happened between 16.Dec and 11. Jan, I think at 9512d2bf266907a44c8474a97071558d3152315d Class.Stat() now understands the ".../" syntax to look for classes in the current project. Hope that helps you if you lost your pictures on buttons etc. -- Amicalement Charlie From g4mba5 at gmail.com Mon Jan 13 21:59:17 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 Jan 2020 21:59:17 +0100 Subject: [Gambas-user] Update in fedora screwed up printing In-Reply-To: References: Message-ID: <5c52474b-8756-251b-9c11-75d7f374b6cc@gmail.com> Le 13/01/2020 ? 21:34, Steve a ?crit : > The print that I do is never going to be like on screen. It MUST be > done in mm always. The absolute values to move the Y value is > required because everything printing must be exact regardless of what > it is sent to. I understand now how to set the sizes. I had to set > the fontscale to 0.25 and now even the blank pages are fixed. > > To answer what you think is problems in my code, > > You can't do a print preview or select a printer for a receipt. Think > about it, do you want a cashier to always have to select a printer? > It just has to come out with a single button press and be consistent. > They are way too busy to worry about selecting printers or doing > previews. I try to remove the user as much as possible. so I need to > have this working like it was before which worked perfectly every > time. What you see as problems are necessity for the type of job > being done. All the variables you are mentioning are very static in > this application. The dynamics you added are wreaking havoc on this. Ha, ok! I didn't really understood what you printed exactly. English is really not my native language! Of course everything makes sense now. > > In other projects what you are saying would be true but not in a > specialized function like point of sale. user input is severely > restricted because cashiers are not typically the smartest people. > Sorry to say that. In this type of application there are never > changes to font styles or sizes. Paper size is also never changed. > > Thank you for the help. I am implementing that fix in all printing > projects which is point of sale only. That simple thing saved my > sanity which as you can tell was going away quickly. > > If I didn't say I love gambas it is simple to work with and powerful. > It has solved or helped me solve many problems. it is a tool I rely > heavily on and lost when there is a malfunction like this. So the > change was devastating to me. As I said, the change was made because the point size you set was not true points as it should. And of course fixing that implies breaking all code that don't use the actual size of the text (Paint.TextSize). Sorry for the inconvenience, but I don't see how I could have done differently. I was trusting the GUI toolkits and I was wrong. Another point: always read carefully the changelogs when you update, even if they are hundred of changes! And next time you have the problem, send all the details about the versions and the code so that we can guess which change broke what. Last point: as for the "global variable" thing, the bug will be fixed in the next stable release. Regards, -- Beno?t Minisini From gambas at servinfo.it Tue Jan 14 09:38:06 2020 From: gambas at servinfo.it (Marco Ancillotti) Date: Tue, 14 Jan 2020 09:38:06 +0100 Subject: [Gambas-user] Gambas error from 3.14 In-Reply-To: <6259d35e-5872-259e-fb37-4adae5cdac5f@gmail.com> References: <80d0e350-8719-7e11-f6ac-9f04e008759b@servinfo.it> <6259d35e-5872-259e-fb37-4adae5cdac5f@gmail.com> Message-ID: <416edd72-58cd-37bf-3394-24bdb5dcd9ac@servinfo.it> Il 13/01/20 17:04, Beno?t Minisini ha scritto: > > Sorry, you are right. That bug has been fixed later, and I must make a > new release for it. I'm in a hurry... No problem , I solved changing all the code to use NEW array. From g4mba5 at gmail.com Tue Jan 14 11:26:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 Jan 2020 11:26:43 +0100 Subject: [Gambas-user] writing Path has changed!? In-Reply-To: <3ee99d3fbfbf65a30c294f7829f23126cec6c2ed.camel@fen-net.de> References: <3ee99d3fbfbf65a30c294f7829f23126cec6c2ed.camel@fen-net.de> Message-ID: <1b9267ed-334f-b04d-abea-3721cd483b0d@gmail.com> Le 13/01/2020 ? 20:40, Karl Reinl a ?crit?: > Salut, > > had problems after update two days ago. > My program crashed. > The reason was the way how I loaded pictures till now: > o.picture = Picture["./img/table.png"] > Nowadays gambas3 don't like this anymore, you have to write. > o.picture = Picture["../img/table.png"] > > Somewhere happened between 16.Dec and 11. Jan, I think at > > 9512d2bf266907a44c8474a97071558d3152315d Class.Stat() now understands the ".../" syntax to look for classes in the current project. > > Hope that helps you if you lost your pictures on buttons etc. > Mmm, strange... Can you post a little project that shows the bug? -- Beno?t Minisini From g4mba5 at gmail.com Tue Jan 14 14:07:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 Jan 2020 14:07:58 +0100 Subject: [Gambas-user] writing Path has changed!? In-Reply-To: <1b9267ed-334f-b04d-abea-3721cd483b0d@gmail.com> References: <3ee99d3fbfbf65a30c294f7829f23126cec6c2ed.camel@fen-net.de> <1b9267ed-334f-b04d-abea-3721cd483b0d@gmail.com> Message-ID: <96fe0dcb-ebcc-4aac-1541-0ef6e39ad474@gmail.com> Le 14/01/2020 ? 11:26, Beno?t Minisini a ?crit?: > Le 13/01/2020 ? 20:40, Karl Reinl a ?crit?: >> Salut, >> >> had problems after update two days ago. >> My program crashed. >> The reason was the way how I loaded pictures till now: >> ????o.picture = Picture["./img/table.png"] >> Nowadays gambas3 don't like this anymore, you have to write. >> ????o.picture = Picture["../img/table.png"] >> >> Somewhere happened between 16.Dec and 11. Jan, I think at >> >> 9512d2bf266907a44c8474a97071558d3152315d Class.Stat() now understands >> the ".../" syntax to look for classes in the current project. >> >> Hope that helps you if you lost your pictures on buttons etc. >> > > Mmm, strange... > > Can you post a little project that shows the bug? > OK, that stupid bug has been introduced Jan, 2th. Not a good idea to push some code just after New Year's Eve. -- Beno?t Minisini From g4mba5 at gmail.com Tue Jan 14 14:21:39 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 Jan 2020 14:21:39 +0100 Subject: [Gambas-user] writing Path has changed!? In-Reply-To: <96fe0dcb-ebcc-4aac-1541-0ef6e39ad474@gmail.com> References: <3ee99d3fbfbf65a30c294f7829f23126cec6c2ed.camel@fen-net.de> <1b9267ed-334f-b04d-abea-3721cd483b0d@gmail.com> <96fe0dcb-ebcc-4aac-1541-0ef6e39ad474@gmail.com> Message-ID: <4c3e1807-36bd-7662-bf8c-4763d38a0a3b@gmail.com> Le 14/01/2020 ? 14:07, Beno?t Minisini a ?crit?: > Le 14/01/2020 ? 11:26, Beno?t Minisini a ?crit?: >> Le 13/01/2020 ? 20:40, Karl Reinl a ?crit?: >>> Salut, >>> >>> had problems after update two days ago. >>> My program crashed. >>> The reason was the way how I loaded pictures till now: >>> ????o.picture = Picture["./img/table.png"] >>> Nowadays gambas3 don't like this anymore, you have to write. >>> ????o.picture = Picture["../img/table.png"] >>> >>> Somewhere happened between 16.Dec and 11. Jan, I think at >>> >>> 9512d2bf266907a44c8474a97071558d3152315d Class.Stat() now understands >>> the ".../" syntax to look for classes in the current project. >>> >>> Hope that helps you if you lost your pictures on buttons etc. >>> >> >> Mmm, strange... >> >> Can you post a little project that shows the bug? >> > > OK, that stupid bug has been introduced Jan, 2th. Not a good idea to > push some code just after New Year's Eve. > It should be fixed with commit https://gitlab.com/gambas/gambas/commit/2deeab741021e2750d587316487680dc7835ccdc. Regards, -- Beno?t Minisini From chrisml at deganius.de Wed Jan 15 00:21:05 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 15 Jan 2020 00:21:05 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <23e2831f-b9af-9888-9950-59de89f8bdd6@deganius.de> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> <23e2831f-b9af-9888-9950-59de89f8bdd6@deganius.de> Message-ID: Hello Beno?t, Am 05.01.20 um 11:20 I wrote: > *But this is not the main problem.* > > The main problem in my opinion is that Class.Load(sName) in > GetAllTestContainerNames only works if the testclasses are exported and > so these are visible and callable later on when the project is in > production. I don't like that. > > There IMO we need a new form of class a la classname.test which is > handled by the interpreter/compiler in a different way. > > My idea was, that not the IDE tests but the executable itself is able to > test itself when compiled with debugging symbols and called in a special > way. > > If you create and call unittesthelloworld.gambas you can see what I mean. Or can we create something like a "gbt3" executable that finds all tests in a project and executes them? I need that in future for automatic testing of Gambas programs before deployment. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed Jan 15 02:11:45 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 15 Jan 2020 02:11:45 +0100 Subject: [Gambas-user] gb.test In-Reply-To: References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> <23e2831f-b9af-9888-9950-59de89f8bdd6@deganius.de> Message-ID: <7fdbe3ed-dd0b-fc7f-c0e0-b5f8a46872e5@gmail.com> Le 15/01/2020 ? 00:21, Christof Thalhofer a ?crit?: > Hello Beno?t, > > Am 05.01.20 um 11:20 I wrote: > >> *But this is not the main problem.* >> >> The main problem in my opinion is that Class.Load(sName) in >> GetAllTestContainerNames only works if the testclasses are exported and >> so these are visible and callable later on when the project is in >> production. I don't like that. >> >> There IMO we need a new form of class a la classname.test which is >> handled by the interpreter/compiler in a different way. >> >> My idea was, that not the IDE tests but the executable itself is able to >> test itself when compiled with debugging symbols and called in a special >> way. >> >> If you create and call unittesthelloworld.gambas you can see what I mean. > > Or can we create something like a "gbt3" executable that finds all tests > in a project and executes them? > > I need that in future for automatic testing of Gambas programs before > deployment. > > Alles Gute > > Christof Thalhofer > I'd prefer adding an option to the 'gbx3' interpreter that make it run all the tests through a static method somewhere in 'gb.test'. To recognize what are the test classes, is it mandatory to make them inherit a specific parent class? Because we can assume that a special directory (for example '.src/.test') in the project will store all the tests, and I can make special support for that directory in the IDE (The '.test' directory will become a special folder in the project tree). Then the compiler will be able to detect that directory, compile the files inside as normal classes, but at the end make a list of all test classes in a dedicated file in the project root directory ('.test' again?). That way, the 'gb.test' component will just have to open that text file to know the name of each test classes, and run what it should run in it. Another different idea would be creating a new source file extension ('*.test') that would represent a module whose code is the test for the real source file having the same name. In that case, a test has to be a module, not a class, a form, or anything else. I really like that idea because it makes the structure of the tests similar to the structure of the source code, and allows to check things like: is the source code newer that the test code? But maybe it is not flexible enough for special test cases, I dunno. What do you think about all that? -- Beno?t Minisini From chrisml at deganius.de Wed Jan 15 05:26:37 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 15 Jan 2020 05:26:37 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <7fdbe3ed-dd0b-fc7f-c0e0-b5f8a46872e5@gmail.com> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> <23e2831f-b9af-9888-9950-59de89f8bdd6@deganius.de> <7fdbe3ed-dd0b-fc7f-c0e0-b5f8a46872e5@gmail.com> Message-ID: <748d4c92-e116-3b0d-51eb-22a78a382215@deganius.de> Am 15.01.20 um 02:11 schrieb Beno?t Minisini: > I'd prefer adding an option to the 'gbx3' interpreter that make it run > all the tests through a static method somewhere in 'gb.test'. That sounds very good! That static method is Unittest.Main() in gb.test. It can either run all testclasses at all or only one testclass or even one testmethod in one testclass. So gbx3 should be able to be called like this: gbx3 -t project gbx3 -t textclass project gbx3 -t textclass testmethod project Would that be possible? > To recognize what are the test classes, is it mandatory to make them > inherit a specific parent class? In the current state of the project I did not find a way around this. I don't like it very much and i hate that the classes have to be exported. If there was a more elegant way I would appreciate that the most! I mainly used the inheritance to let Unittest.Main() determine the test classes, to create objects from these and execute their testmethods (all symbols whose names begin with "Test", "Setup", "Teardown"). But if the interpreter has its own way to determine and enumerate the testmethods and testclasses the inheritation is not needed any more as I think. The tests itself are done by Assert.module. > Because we can assume that a special directory (for example > '.src/.test') in the project will store all the tests, and I can make > special support for that directory in the IDE (The '.test' directory > will become a special folder in the project tree). > > Then the compiler will be able to detect that directory, compile the > files inside as normal classes, but at the end make a list of all test > classes in a dedicated file in the project root directory ('.test' again?). > > That way, the 'gb.test' component will just have to open that text file > to know the name of each test classes, and run what it should run in it. > > Another different idea would be creating a new source file extension > ('*.test') that would represent a module whose code is the test for the > real source file having the same name. > > In that case, a test has to be a module, not a class, a form, or > anything else. My instincts let me prefer modules very much if that would be possible. I would also prefer *.test classes instead of a special directory as they provide more flexibility to the developer. It lets the developer decide if he/she wants to place a testclass inside a directory named "Tests" (as I currently do it) or put it nearby the class to be tested or even both. > I really like that idea because it makes the structure of the tests > similar to the structure of the source code, and allows to check things > like: is the source code newer that the test code? But maybe it is not > flexible enough for special test cases, I dunno. The latter I think. IMO there should not be a hard-coded coincidence between a class and it's test. For instance if I have testclasses that test the interplay between several classes I would name them "TestClassXWithClassY". About the quality of testing: If one changes the source code the test code has not necessarily to be changed also. Normally it's the other way round: First I write the test and then the code has to fulfill what the test needs. And if later the code is changed (maybe because of a bug) the old(!) test code assures that things do not break by accident. So almost always the test code is older and that's not a bad sign. In professional software development there exists the concept of "code coverage" to determine the quality of the testing of a project. There, the lines of code executed by tests are counted and compared with the lines not executed. In some projects the aim is 100 % code coverage (needed for airplanes and pacemakers). This can only be done by the instance performing the tests and this would be a task we maybe could do later. But we should take care not do things now that prevent it later. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Fri Jan 17 01:48:21 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jan 2020 01:48:21 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 Message-ID: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Hi, Gambas 3.14.3 is now available. You can download it at: https://gitlab.com/gambas/gambas/-/archive/3.14.3/gambas-3.14.3.tar.bz2 For those who can, please download, compile and install it, and report any problem. This release includes most of the bug fixed since the 3.14.2 release, and especially it fixes the regression on static arrays that became incorrectly read-only. The full changelog is available on the wiki, and the web site will be updated soon. Best regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Fri Jan 17 20:03:12 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 17 Jan 2020 21:03:12 +0200 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: New version introduces new JIT bug. See attachment. Jussi On Fri, Jan 17, 2020 at 2:49 AM Beno?t Minisini wrote: > Hi, > > Gambas 3.14.3 is now available. You can download it at: > > https://gitlab.com/gambas/gambas/-/archive/3.14.3/gambas-3.14.3.tar.bz2 > > For those who can, please download, compile and install it, and report > any problem. > > This release includes most of the bug fixed since the 3.14.2 release, > and especially it fixes the regression on static arrays that became > incorrectly read-only. > > The full changelog is available on the wiki, and the web site will be > updated soon. > > Best regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.22.tar.gz Type: application/gzip Size: 30030 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Fri Jan 17 20:05:13 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 17 Jan 2020 21:05:13 +0200 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: Also it does *not* fix the "QPainter::begin: Painter already active" problem. Jussi On Fri, Jan 17, 2020 at 9:03 PM Jussi Lahtinen wrote: > New version introduces new JIT bug. See attachment. > > > Jussi > > On Fri, Jan 17, 2020 at 2:49 AM Beno?t Minisini wrote: > >> Hi, >> >> Gambas 3.14.3 is now available. You can download it at: >> >> https://gitlab.com/gambas/gambas/-/archive/3.14.3/gambas-3.14.3.tar.bz2 >> >> For those who can, please download, compile and install it, and report >> any problem. >> >> This release includes most of the bug fixed since the 3.14.2 release, >> and especially it fixes the regression on static arrays that became >> incorrectly read-only. >> >> The full changelog is available on the wiki, and the web site will be >> updated soon. >> >> Best regards, >> >> -- >> Beno?t Minisini >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Jan 17 23:47:31 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jan 2020 23:47:31 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: Le 17/01/2020 ? 20:03, Jussi Lahtinen a ?crit?: > New version introduces new JIT bug. See attachment. > > > Jussi > I think the bug was there since the beginning. -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 17 23:53:24 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jan 2020 23:53:24 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: <3b310345-0d84-4f37-42f2-64fe204f6267@gmail.com> Le 17/01/2020 ? 23:47, Beno?t Minisini a ?crit?: > Le 17/01/2020 ? 20:03, Jussi Lahtinen a ?crit?: >> New version introduces new JIT bug. See attachment. >> >> >> Jussi >> > > I think the bug was there since the beginning. > It's fixed in the last commit. -- Beno?t Minisini From g4mba5 at gmail.com Fri Jan 17 23:54:09 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 Jan 2020 23:54:09 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: <2d3eed36-da3a-cad8-5e88-25b0c67145b6@gmail.com> Le 17/01/2020 ? 20:05, Jussi Lahtinen a ?crit?: > Also it does *not* fix the "QPainter::begin: Painter already active" > problem. > > > Jussi > It does not. Do you have a project that reproduces the message? -- Beno?t Minisini From chrisml at deganius.de Sat Jan 18 00:23:16 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jan 2020 00:23:16 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: <5108cfea-67ee-df65-4dbb-d5dbf70fa1a5@deganius.de> Am 17.01.20 um 01:48 schrieb Beno?t Minisini: > Gambas 3.14.3 is now available. You can download it at: Thank you! Beautiful! :-) In my virtual machine, it is the first Gambas version that runs our tests natively. That's one small step for mankind, a giant leap for me. ;-) As soon as it is available at Launchpad I can test it on the rest of my machines. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: Gambas-3.14.3-gb.test-run.png Type: image/png Size: 18023 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at gmail.com Sat Jan 18 00:23:21 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 18 Jan 2020 01:23:21 +0200 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: <2d3eed36-da3a-cad8-5e88-25b0c67145b6@gmail.com> References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> <2d3eed36-da3a-cad8-5e88-25b0c67145b6@gmail.com> Message-ID: Here, see attachment. It seems the warning is not printed on all systems. Jussi On Sat, Jan 18, 2020 at 12:55 AM Beno?t Minisini wrote: > Le 17/01/2020 ? 20:05, Jussi Lahtinen a ?crit : > > Also it does *not* fix the "QPainter::begin: Painter already active" > > problem. > > > > > > Jussi > > > > It does not. Do you have a project that reproduces the message? > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- [System] Gambas=3.14.90 e4305f023 (master) OperatingSystem=Linux Kernel=4.15.0-74-generic Architecture=x86_64 Distribution=Linux Mint 19 Tara Desktop=CINNAMON Theme=Gtk Language=en_US.UTF-8 Memory=7976M [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.1405.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/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GB_PROFILE_MAX=1000 GDMSESSION=cinnamon GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=21062 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= INSIDE_NEMO_PYTHON= LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ADDRESS=fi_FI.UTF-8 LC_IDENTIFICATION=fi_FI.UTF-8 LC_MEASUREMENT=fi_FI.UTF-8 LC_MONETARY=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_NUMERIC=fi_FI.UTF-8 LC_PAPER=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/18421,unix/:/tmp/.ICE-unix/18421 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=18490 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c3 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- A non-text attachment was scrubbed... Name: PaintWarning-0.0.1.tar.gz Type: application/gzip Size: 11637 bytes Desc: not available URL: From g4mba5 at gmail.com Sat Jan 18 00:51:10 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Jan 2020 00:51:10 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: <7b93ab0b-1959-468d-313a-6cfccaa961df@gmail.com> Le 17/01/2020 ? 01:48, Beno?t Minisini a ?crit?: > Hi, > > Gambas 3.14.3 is now available. You can download it at: > > https://gitlab.com/gambas/gambas/-/archive/3.14.3/gambas-3.14.3.tar.bz2 > > For those who can, please download, compile and install it, and report > any problem. > > This release includes most of the bug fixed since the 3.14.2 release, > and especially it fixes the regression on static arrays that became > incorrectly read-only. > > The full changelog is available on the wiki, and the web site will be > updated soon. > > Best regards, > As Gambas 3.14.3 is not officialy released on the web site, I have update it with two more fixes: 1) JIT compilation of static arrays. 2) Compilation of 'gb.pdf' with recent poppler library. Regards, -- Beno?t Minisini From admin at allunix.ru Sat Jan 18 03:54:49 2020 From: admin at allunix.ru (Admin) Date: Sat, 18 Jan 2020 09:54:49 +0700 Subject: [Gambas-user] gambaswiki.org Message-ID: <15c23eb5-7811-ce63-fd7c-bd22c2e1e088@allunix.ru> What happened to subj? Connection refused for two days now. Very usefull site. From chrisml at deganius.de Sat Jan 18 03:58:36 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jan 2020 03:58:36 +0100 Subject: [Gambas-user] gambaswiki.org In-Reply-To: <15c23eb5-7811-ce63-fd7c-bd22c2e1e088@allunix.ru> References: <15c23eb5-7811-ce63-fd7c-bd22c2e1e088@allunix.ru> Message-ID: <47aa40fe-4013-0927-e2e3-f8b3eb0626fa@deganius.de> Am 18.01.20 um 03:54 schrieb Admin: > What happened to subj? Connection refused for two days now. Very usefull > site. Maybe you should blame your provider? gambaswiki.org is up and running. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From admin at allunix.ru Sat Jan 18 04:05:06 2020 From: admin at allunix.ru (Admin) Date: Sat, 18 Jan 2020 10:05:06 +0700 Subject: [Gambas-user] gambaswiki.org In-Reply-To: <47aa40fe-4013-0927-e2e3-f8b3eb0626fa@deganius.de> References: <15c23eb5-7811-ce63-fd7c-bd22c2e1e088@allunix.ru> <47aa40fe-4013-0927-e2e3-f8b3eb0626fa@deganius.de> Message-ID: <0d84e027-866b-9542-3da3-7175b7059d63@allunix.ru> Then I should probably blame all my providers in all countries I have proxies in. But I suspected that was the case. 18.01.2020 9:58, Christof Thalhofer ?????: > Am 18.01.20 um 03:54 schrieb Admin: > >> What happened to subj? Connection refused for two days now. Very usefull >> site. > Maybe you should blame your provider? > gambaswiki.org is up and running. > > Alles Gute > > Christof Thalhofer > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at allunix.ru Sat Jan 18 04:09:29 2020 From: admin at allunix.ru (Admin) Date: Sat, 18 Jan 2020 10:09:29 +0700 Subject: [Gambas-user] socket without form Message-ID: So I finally was able to compile gambas runtime on FreeBSD and I'm willing to write a server. But now I see there's no way using a socket without GUI, is that right? Best regards, Dmitry Bachilo From admin at allunix.ru Sat Jan 18 04:21:27 2020 From: admin at allunix.ru (Admin) Date: Sat, 18 Jan 2020 10:21:27 +0700 Subject: [Gambas-user] socket without form In-Reply-To: References: Message-ID: <2ac98a02-161b-1ce6-0465-6b4695d9557e@allunix.ru> Oh, nevermind, Srv = New ServerSocket As "Srv" does it. Sorry. 18.01.2020 10:09, Admin ?????: > So I finally was able to compile gambas runtime on FreeBSD and I'm > willing to write a server. But now I see there's no way using a socket > without GUI, is that right? > > > Best regards, > > Dmitry Bachilo > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From chrisml at deganius.de Sat Jan 18 11:19:53 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jan 2020 11:19:53 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: <7b93ab0b-1959-468d-313a-6cfccaa961df@gmail.com> References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> <7b93ab0b-1959-468d-313a-6cfccaa961df@gmail.com> Message-ID: Am 18.01.20 um 00:51 schrieb Beno?t Minisini: > As Gambas 3.14.3 is not officialy released on the web site In the last Gambas daily I've downloaded from Ubuntu Launchpad this morning the gb.test component is not there. Will 3.14.3 contain gb.test at all in the Ubuntu version? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sat Jan 18 11:43:35 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Jan 2020 11:43:35 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> <7b93ab0b-1959-468d-313a-6cfccaa961df@gmail.com> Message-ID: <3842f14d-5db6-d14b-8256-e0404a08e090@gmail.com> Le 18/01/2020 ? 11:19, Christof Thalhofer a ?crit?: > Am 18.01.20 um 00:51 schrieb Beno?t Minisini: > >> As Gambas 3.14.3 is not officialy released on the web site > > In the last Gambas daily I've downloaded from Ubuntu Launchpad this > morning the gb.test component is not there. > > Will 3.14.3 contain gb.test at all in the Ubuntu version? > > Alles Gute > > Christof Thalhofer > Of course not. 3.14.x are just bug fixes. New features will go in 3.15. But 'gb.test' should be in daily packages. Regards, -- Beno?t Minisini From chrisml at deganius.de Sat Jan 18 12:00:21 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jan 2020 12:00:21 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: <3842f14d-5db6-d14b-8256-e0404a08e090@gmail.com> References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> <7b93ab0b-1959-468d-313a-6cfccaa961df@gmail.com> <3842f14d-5db6-d14b-8256-e0404a08e090@gmail.com> Message-ID: Am 18.01.20 um 11:43 schrieb Beno?t Minisini: > But 'gb.test' should be in daily packages. It is not afaics. > https://launchpad.net/~gambas-team/+archive/ubuntu/gambas-daily/+packages If you open any version by click, there is no gb.test. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sat Jan 18 17:42:06 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 Jan 2020 17:42:06 +0100 Subject: [Gambas-user] gb.test In-Reply-To: <748d4c92-e116-3b0d-51eb-22a78a382215@deganius.de> References: <420ccdbf-e66e-d657-314a-de2d7a029ffd@deganius.de> <0630f88a-fe25-29ee-0a20-323a46ae26e8@deganius.de> <7ff1767a-1ab9-8b7e-7613-e8d73b1cfa4e@deganius.de> <70a0bde8-70f6-8815-d9d7-571182cf36c2@gmail.com> <23e2831f-b9af-9888-9950-59de89f8bdd6@deganius.de> <7fdbe3ed-dd0b-fc7f-c0e0-b5f8a46872e5@gmail.com> <748d4c92-e116-3b0d-51eb-22a78a382215@deganius.de> Message-ID: <03efbbdc-798b-de47-9755-0aee268440cf@deganius.de> A new merge request for gb.test contains small fixes: https://gitlab.com/gambas/gambas/merge_requests/127 Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Sun Jan 19 08:46:12 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 19 Jan 2020 08:46:12 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: I've downloaded the last version of Gambas daily and if I compile different projects the binaries crash on other computers with other Gambas versions with: "Bytecode too recent. Please upgrade Gambas" With Gambas 3.14.2 I could compile libs and projects to binaries which ran on computers with these Gambas versions: 3.9.2 (Debian Stretch) 3.11.3 (a Raspi) 3.14.2 without problems. Why does this happen? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Sun Jan 19 08:59:57 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 19 Jan 2020 08:59:57 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: Le 19/01/2020 ? 08:46, Christof Thalhofer a ?crit?: > I've downloaded the last version of Gambas daily and if I compile > different projects the binaries crash on other computers with other > Gambas versions with: > > "Bytecode too recent. Please upgrade Gambas" > > With Gambas 3.14.2 I could compile libs and projects to binaries which > ran on computers with these Gambas versions: > > 3.9.2 (Debian Stretch) > 3.11.3 (a Raspi) > 3.14.2 > > without problems. > > Why does this happen? > > > Alles Gute > > Christof Thalhofer > Because the bytecode version has changed in Gambas 3.15. The last time it happened was Gambas 3.8. So you can run bytecode 3.8 on Gambas 3.15, but you cannot run bytecode 3.15 on Gambas <= 3.14. Regards, -- Beno?t Minisini From chrisml at deganius.de Sun Jan 19 12:34:06 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 19 Jan 2020 12:34:06 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: Am 19.01.20 um 08:59 schrieb Beno?t Minisini: > Because the bytecode version has changed in Gambas 3.15. The last time > it happened was Gambas 3.8. > > So you can run bytecode 3.8 on Gambas 3.15, but you cannot run bytecode > 3.15 on Gambas <= 3.14. Thank you for the answer. Oh ... sh... As I program a lot for maintained Debian servers which run standard Gambas, that will nail me on version 3.14 for quite a while. Until Debian hat 3.15. Or I can find a way to deploy with different compilers. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sun Jan 19 18:39:05 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 19 Jan 2020 09:39:05 -0800 (PST) Subject: [Gambas-user] Adding Documentation to functions Message-ID: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> Can someone help me with how to add descriptions to methods, functions and variable such that they show up when browsing the class in the IDE? I can not seem to find a document describing any way to do that. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Jan 19 19:31:29 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 19 Jan 2020 19:31:29 +0100 Subject: [Gambas-user] Adding Documentation to functions In-Reply-To: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> References: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Il giorno dom 19 gen 2020 alle ore 19:06 Brian G ha scritto: > Can someone help me with how to add descriptions to methods, functions and > variable such that they show up when browsing the class in the IDE? > > I can not seem to find a document describing any way to do that. > This page can help: http://gambaswiki.org/wiki/doc/helpcomments Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Jan 19 19:47:04 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 19 Jan 2020 19:47:04 +0100 Subject: [Gambas-user] Adding Documentation to functions In-Reply-To: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> References: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Am 19.01.20 um 18:39 schrieb Brian G: > Can someone help me with how to add descriptions to methods, functions > and variable such that they show up when browsing the class? in the IDE? Document classes with three single quotes at the beginning of the class file. ''' This class does ... Document public methods, variables, properties, constants and so on with two single quotes above the declaration '' This method does Public Sub DoSth() If you want to write over several lines, use Shift-Return at the end of the line. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sun Jan 19 20:06:20 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 19 Jan 2020 11:06:20 -0800 (PST) Subject: [Gambas-user] Adding Documentation to functions In-Reply-To: References: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <804893165.956.1579460780633.JavaMail.zimbra@westwoodsvcs.com> Thamk you I really appreciate your response. Helps me a lot! Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Sunday, January 19, 2020 10:47:04 AM Subject: Re: [Gambas-user] Adding Documentation to functions Am 19.01.20 um 18:39 schrieb Brian G: > Can someone help me with how to add descriptions to methods, functions > and variable such that they show up when browsing the class? in the IDE? Document classes with three single quotes at the beginning of the class file. ''' This class does ... Document public methods, variables, properties, constants and so on with two single quotes above the declaration '' This method does Public Sub DoSth() If you want to write over several lines, use Shift-Return at the end of the line. Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From chrisml at deganius.de Sun Jan 19 20:22:36 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 19 Jan 2020 20:22:36 +0100 Subject: [Gambas-user] Release of Gambas 3.14.3 In-Reply-To: References: <7cc3cc62-cc45-f96f-c765-63fac5b77589@gmail.com> Message-ID: Am 19.01.20 um 08:59 schrieb Beno?t Minisini: > Because the bytecode version has changed in Gambas 3.15. What is the reason for that? Just for interest ... Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From brian at westwoodsvcs.com Sun Jan 19 21:09:11 2020 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 19 Jan 2020 12:09:11 -0800 (PST) Subject: [Gambas-user] Adding Documentation to functions In-Reply-To: <804893165.956.1579460780633.JavaMail.zimbra@westwoodsvcs.com> References: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> <804893165.956.1579460780633.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <441162727.1018.1579464551103.JavaMail.zimbra@westwoodsvcs.com> I have one more question about the documentation. How do I tell it to keep the format I enter? Thank You Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Subject: Re: [Gambas-user] Adding Documentation to functions From chrisml at deganius.de Sun Jan 19 21:52:08 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 19 Jan 2020 21:52:08 +0100 Subject: [Gambas-user] Adding Documentation to functions In-Reply-To: <441162727.1018.1579464551103.JavaMail.zimbra@westwoodsvcs.com> References: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> <804893165.956.1579460780633.JavaMail.zimbra@westwoodsvcs.com> <441162727.1018.1579464551103.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <07505056-511f-fd1f-e6c9-9bdec3e6a839@deganius.de> Am 19.01.20 um 21:09 schrieb Brian G: > I have one more question about the documentation. > > How do I tell it to keep the format I enter? Please read the page Gianluigi posted. To format the text you have to use Markdown. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From pinozollo at gmail.com Sun Jan 19 23:22:05 2020 From: pinozollo at gmail.com (Pino Zollo) Date: Sun, 19 Jan 2020 19:22:05 -0300 Subject: [Gambas-user] Gouges Message-ID: <2aa1120f-237e-8711-219b-5c4c0c16bb2f@gmail.com> How to use such a nice library into Gambas3 programs ? https://github.com/HanSolo/Medusa bye de Pino ZP4KFX From adamnt42 at gmail.com Sun Jan 19 23:34:33 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 20 Jan 2020 09:04:33 +1030 Subject: [Gambas-user] Adding Documentation to functions In-Reply-To: <07505056-511f-fd1f-e6c9-9bdec3e6a839@deganius.de> References: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> <804893165.956.1579460780633.JavaMail.zimbra@westwoodsvcs.com> <441162727.1018.1579464551103.JavaMail.zimbra@westwoodsvcs.com> <07505056-511f-fd1f-e6c9-9bdec3e6a839@deganius.de> Message-ID: <83a3f2c7-bb0f-dcdf-74c2-f3d5781f6e62@gmail.com> On 20/1/20 7:22 am, Christof Thalhofer wrote: > (Referred reader to http://gambaswiki.org/wiki/doc/helpcomments > I made a mistake in the second last line, it should read : Class level help comments do not appear or are not updated until the SOURCE FILE IS SAVED. Also, one thing that I never realised until recently is that you can add inline help comments to local variable declarations: Private Sub Thingo ( ahab as integer ) Dim iWhatsIt as Float '' The float of the *ahab* parameter ... Return fDooDah / iWha <---- and the completion popup shows the iWhatsIt help at this point. Not a biggy you might say, but ib in a long procedure revisited some months later it is amazingly useful! (IMHO) regards Bruce From g4mba5 at gmail.com Mon Jan 20 02:32:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 20 Jan 2020 02:32:43 +0100 Subject: [Gambas-user] Adding Documentation to functions In-Reply-To: <83a3f2c7-bb0f-dcdf-74c2-f3d5781f6e62@gmail.com> References: <1978252400.896.1579455545646.JavaMail.zimbra@westwoodsvcs.com> <804893165.956.1579460780633.JavaMail.zimbra@westwoodsvcs.com> <441162727.1018.1579464551103.JavaMail.zimbra@westwoodsvcs.com> <07505056-511f-fd1f-e6c9-9bdec3e6a839@deganius.de> <83a3f2c7-bb0f-dcdf-74c2-f3d5781f6e62@gmail.com> Message-ID: <22d8735e-f336-ba62-b126-a7b9cb9067c8@gmail.com> Le 19/01/2020 ? 23:34, Bruce a ?crit?: > > Also, one thing that I never realised until recently is that you can add > inline help comments to local variable declarations: > > Private Sub Thingo ( ahab as integer ) > > ? Dim iWhatsIt as Float?????????? '' The float of the *ahab* parameter > > ? ... > > ? Return fDooDah / iWha???????????????? <---- and the completion popup > shows the iWhatsIt help at this point. > > Not a biggy you might say, but ib in a long procedure revisited some > months later it is amazingly useful! (IMHO) > > regards > Bruce > I'm not sure that it was done on purpose. By the way, the commented help of exported classes is saved in an help file located in the project, and in the executable. That way, if your project is a library, the help is made available to the other projects using the library. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Mon Jan 20 08:17:42 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 20 Jan 2020 17:47:42 +1030 Subject: [Gambas-user] Gouges In-Reply-To: <2aa1120f-237e-8711-219b-5c4c0c16bb2f@gmail.com> References: <2aa1120f-237e-8711-219b-5c4c0c16bb2f@gmail.com> Message-ID: On 20/1/20 8:52 am, Pino Zollo wrote: > How to use such a nice library into Gambas3 programs ? > > https://github.com/HanSolo/Medusa Hmm, probably easier to build them yourself. Here's a very rudimentary one that took about an hour. You could probably get a background images from (oh I dunno, somewhere). Then all you'd have to do is draw the moving bit. regards Bruce -------------- next part -------------- A non-text attachment was scrubbed... Name: guage0-0.0.1.tar.gz Type: application/gzip Size: 13790 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Mon Jan 20 23:08:01 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 21 Jan 2020 00:08:01 +0200 Subject: [Gambas-user] ByRef and JIT Message-ID: Is there going to be support for byfer? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Jan 20 23:15:06 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 20 Jan 2020 23:15:06 +0100 Subject: [Gambas-user] ByRef and JIT In-Reply-To: References: Message-ID: <51f2288b-4cbd-9b81-868e-7dcc38ff4d6b@gmail.com> Le 20/01/2020 ? 23:08, Jussi Lahtinen a ?crit?: > Is there going to be support for byfer? > > Jussi 'ByRef' in Gambas is a mix of syntactic sugar (done by the compiler) and stack trick (done by the interpreter). Calling Func(ByRef A, ByRef B) does that: - Enter function Func - Run the function - Put the value of local A et B on the stack - Leave the function - Get from stack the new values of A and B. I don't know how to do it cleanly in C at the moment. This is not the same thing as pointers! -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Jan 20 23:37:10 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 21 Jan 2020 00:37:10 +0200 Subject: [Gambas-user] ByRef and JIT In-Reply-To: <51f2288b-4cbd-9b81-868e-7dcc38ff4d6b@gmail.com> References: <51f2288b-4cbd-9b81-868e-7dcc38ff4d6b@gmail.com> Message-ID: OK, thanks for the answer. Jussi On Tue, Jan 21, 2020 at 12:15 AM Beno?t Minisini wrote: > Le 20/01/2020 ? 23:08, Jussi Lahtinen a ?crit : > > Is there going to be support for byfer? > > > > Jussi > > 'ByRef' in Gambas is a mix of syntactic sugar (done by the compiler) and > stack trick (done by the interpreter). > > Calling Func(ByRef A, ByRef B) does that: > - Enter function Func > - Run the function > - Put the value of local A et B on the stack > - Leave the function > - Get from stack the new values of A and B. > > I don't know how to do it cleanly in C at the moment. This is not the > same thing as pointers! > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at lixce.com Tue Jan 21 19:35:11 2020 From: james at lixce.com (james at lixce.com) Date: Tue, 21 Jan 2020 18:35:11 GMT Subject: [Gambas-user] gb.pdf Segfaults Message-ID: Anyone else getting segfaults with gb.pdf? gambas 3.14.3 poppler 0.84.0-1 (appears to work for other uses) Arch Linux Code: Public hPdf As New PdfDocument hPdf.Open(fileToOpen) Thanks, -j From rwe-sse at osnanet.de Wed Jan 22 08:51:35 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 22 Jan 2020 08:51:35 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> References: <3ea98bd7-47fc-7419-348c-6b9ebb4615bb@allunix.ru> Message-ID: Am 10.01.20 um 06:07 schrieb Admin: > I am using Gambas to write programs for Windows for quite some time now. > It is excellent. Before I had to port everything to Visual Basic, then I > used the way, which to this day is official - Cygwin. But for a long > time now, since you don't even have to be a Windows Insider Preview > member to install WSL on Windows 10, everybody can do it in one click > using Windows Store, software just works. I just use simple kernel > version detection like this: > > Dim kernel As String > Dim isWindows As Boolean > Shell "uname -a" To kernel > If InStr(kernel, "Microsoft") Then isWindows = True > > Knowing I am in Windows I can call any exe file I want, for example > Shell("notepad.exe") just opens Windows Notepad. I can also call any > console Windows command like ping.exe and pipe it right away like > ping.exe 10.10.10.1 | grep Destination - and it works perfectly. > > I use Xming started with Windows startup and create .lnk Desktop > Shortcuts to my graphical software simply like this: > > C:\Windows\System32\wsl.exe DISPLAY=:0 LANG=ru_RU.UTF-8 myprogramm.gambas > > so my software written in Gambas just runs on Windows Desktop by simply > double-clicking it. It's that simple > > So, my point is: isn't it time to officialy call it a way to run Gambas > in Windows instead of Cygwin? I mean I know, that Cygwin is more > universal, but it also is more complicated and Windows 10 became defacto > standard for Windows machines already. > > It feels kinda lonely without any official documentation on this type of > operation :-) > > > Best regards > > Dmitry Bachilo. > > Hi Dmitry, Yesterday I found some time to try this. It was easy to install WSL on the machine. I chose Ubuntu 18.04 LTS as I am working with that version everyday and it runs on all the other machines here. As it shows a terminal window and takes the usual Linux commands, it seems to be running. Next step is getting Gambas. I plan to install Gambas via the way it is proposed here and on the website. Do you see any glitches? When I compare the docs for Xming and VcXsrv, my impression is that VcXsrv is much more up-to-date and offers some solutions for problems which still arise with Xming (Clipboard etc.). Do you agree that it's wiser to use VcXsrv from scratch? I wonder which graphical system is used. Ubuntu normally comes with either Qt or GTK+ as its main base, but they are both there. But here we have a terminal-only distro, so how will this run? Last step will be installing my Gambas applications. Where do I put the Gambas files to be run? (and how...) Thank you for your help! Regards Rolf From tercoide at hotmail.com Wed Jan 22 13:33:21 2020 From: tercoide at hotmail.com (Martin Cristia) Date: Wed, 22 Jan 2020 12:33:21 +0000 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: Message-ID: Hi Dmitry, I also tried is on a laptop with W10 installed. It was fairly easy to have an Ubuntu 19 running and the last Gambas via ppa. XMing seems out of date but works. Not a good experience, graphics , fonts are too small mostly. But the important part is that most of my program don?t work due to file?s path conflicts, JIT, components, ets. I made a new from wih some controls in it and that worked ffine, but with it keep freezing unexpectedly. So the conclusion is that it wont work for a serious project or it may take a huge adaptation for the new environment. Have a good day Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Wed Jan 22 15:53:03 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 22 Jan 2020 15:53:03 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: Message-ID: <4d566e2b-5b14-46d3-6853-b4c230439fd1@osnanet.de> Am 22.01.20 um 13:33 schrieb Martin Cristia: > Hi Dmitry, > I also tried is on a laptop with W10 installed. It was fairly easy to > have an Ubuntu 19 running and the last Gambas via ppa. XMing seems out > of date but works. Not a good experience, graphics , fonts are too small > mostly. But the important part is that most of my program don?t work due > to file?s path conflicts, JIT, components, ets.? I made a new from wih > some controls in it and? that worked ffine, but with it keep freezing > unexpectedly. So the conclusion is that it wont work for a serious > project or it may take a huge adaptation for the new environment. > > Have a good day > > Martin > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I haven't proceeded as far as you did, Martin, but at least I managed to install Gambas and VcXsrv. Everything runs fine, the only thing is that I can start WSL and all Xserver application under Admin rights only. If you happen to know how to fix this, please let me know. I am not so experienced with modern Windows. When installing Gambas, a whole bunch of libraries is installed with it, such as the core GTK and Qt libraries. The Gambas IDE can be started, and a simple first project runs. The whole appearence is somewhat... well, crude, like an old TclTK or GTK application, but alas, it runs. There is one thing I could not solve yet, i. e. mounting a drive which is a Samba drive on the windows host. I have mounted one Linux server's partition as drive Y: on the Windows to have access to student data otherwise managed by Linux software on the server itself. For my project, I would need access to this drive. So WSL would have to mount Y:. Any idea how to achieve this? Regards Rolf From t.lee.davidson at gmail.com Wed Jan 22 16:16:54 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 22 Jan 2020 10:16:54 -0500 Subject: [Gambas-user] gb.pdf Segfaults In-Reply-To: <20200122033802.516BE2038799@h08.hostsharing.net> References: <20200122033802.516BE2038799@h08.hostsharing.net> Message-ID: <357d124a-207c-da09-0ea5-43506dbbc65c@gmail.com> On 1/21/20 1:35 PM, james at lixce.com wrote: > Anyone else getting segfaults with gb.pdf? > > gambas 3.14.3 > poppler 0.84.0-1 (appears to work for other uses) > Arch Linux > > Code: > > Public hPdf As New PdfDocument > > > hPdf.Open(fileToOpen) > > Thanks, > -j It works fine here. Gambas=3.14.3 Distribution=openSUSE Leap 15.1 Poppler=libpoppler.so.73.0.0 -- Lee From g4mba5 at gmail.com Wed Jan 22 16:54:22 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 Jan 2020 16:54:22 +0100 Subject: [Gambas-user] gb.pdf Segfaults In-Reply-To: <357d124a-207c-da09-0ea5-43506dbbc65c@gmail.com> References: <20200122033802.516BE2038799@h08.hostsharing.net> <357d124a-207c-da09-0ea5-43506dbbc65c@gmail.com> Message-ID: <6ec967a5-47ab-534d-ba44-bbbd4c656ed4@gmail.com> Le 22/01/2020 ? 16:16, T Lee Davidson a ?crit?: > On 1/21/20 1:35 PM, james at lixce.com wrote: >> Anyone else getting segfaults with gb.pdf? >> >> ? gambas 3.14.3 >> ? poppler 0.84.0-1 (appears to work for other uses) >> ? Arch Linux >> >> ? Code: >> >> ? Public hPdf As New PdfDocument >> >> >> ? hPdf.Open(fileToOpen) >> Thanks, >> -j > > It works fine here. > > Gambas=3.14.3 > Distribution=openSUSE Leap 15.1 > Poppler=libpoppler.so.73.0.0 > > No problem here too. -- Beno?t Minisini From g4mba5 at gmail.com Wed Jan 22 16:55:00 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 Jan 2020 16:55:00 +0100 Subject: [Gambas-user] gb.pdf Segfaults In-Reply-To: <6ec967a5-47ab-534d-ba44-bbbd4c656ed4@gmail.com> References: <20200122033802.516BE2038799@h08.hostsharing.net> <357d124a-207c-da09-0ea5-43506dbbc65c@gmail.com> <6ec967a5-47ab-534d-ba44-bbbd4c656ed4@gmail.com> Message-ID: <60e1dadd-9f99-ee89-ec03-fad25d676010@gmail.com> Le 22/01/2020 ? 16:54, Beno?t Minisini a ?crit?: > Le 22/01/2020 ? 16:16, T Lee Davidson a ?crit?: >> On 1/21/20 1:35 PM, james at lixce.com wrote: >>> Anyone else getting segfaults with gb.pdf? >>> >>> ? gambas 3.14.3 >>> ? poppler 0.84.0-1 (appears to work for other uses) >>> ? Arch Linux >>> >>> ? Code: >>> >>> ? Public hPdf As New PdfDocument >>> >>> >>> ? hPdf.Open(fileToOpen) >>> Thanks, >>> -j >> >> It works fine here. >> >> Gambas=3.14.3 >> Distribution=openSUSE Leap 15.1 >> Poppler=libpoppler.so.73.0.0 >> >> > > No problem here too. > ...on Ubuntu 19.10. -- Beno?t Minisini From lordheavym at gmail.com Wed Jan 22 17:20:15 2020 From: lordheavym at gmail.com (Laurent Carlier) Date: Wed, 22 Jan 2020 17:20:15 +0100 Subject: [Gambas-user] gb.pdf Segfaults In-Reply-To: <60e1dadd-9f99-ee89-ec03-fad25d676010@gmail.com> References: <20200122033802.516BE2038799@h08.hostsharing.net> <6ec967a5-47ab-534d-ba44-bbbd4c656ed4@gmail.com> <60e1dadd-9f99-ee89-ec03-fad25d676010@gmail.com> Message-ID: <2513353.mvXUDI8C0e@lordh-pc> Le mercredi 22 janvier 2020, 16:55:00 CET Beno?t Minisini a ?crit : > Le 22/01/2020 ? 16:54, Beno?t Minisini a ?crit : > > Le 22/01/2020 ? 16:16, T Lee Davidson a ?crit : > >> On 1/21/20 1:35 PM, james at lixce.com wrote: > >>> Anyone else getting segfaults with gb.pdf? > >>> > >>> gambas 3.14.3 > >>> poppler 0.84.0-1 (appears to work for other uses) > >>> Arch Linux > >>> > >>> Code: > >>> > >>> Public hPdf As New PdfDocument > >>> > >>> > >>> hPdf.Open(fileToOpen) > >>> Thanks, > >>> -j > >> > >> It works fine here. > >> > >> Gambas=3.14.3 > >> Distribution=openSUSE Leap 15.1 > >> Poppler=libpoppler.so.73.0.0 > > > > No problem here too. > > ...on Ubuntu 19.10. I can reproduce the segfault. I will see what i can do ASAP. -------------- 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 simonlebon54 at yahoo.com Thu Jan 23 00:00:20 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Wed, 22 Jan 2020 14:00:20 -0900 Subject: [Gambas-user] Message command In-Reply-To: References: Message-ID: Hopefully this can get in before the new version comes out. I have a dual monitor setup, and I notice any time I use the message command to put out some kind of information and often the same with the input box command. What I find is that almost every time the dialog box shows up on the second monitor or split between the two monitors. Is there a way that this can be set to come up in the center of the form that calls it? I think that would be more proper than anything else ?Sent from TypeApp ? On Jan 22, 2020, 07:23, at 07:23, user-request at lists.gambas-basic.org wrote: >Send User mailing list submissions to > user at lists.gambas-basic.org > >To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user >or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > >You can reach the person managing the list at > user-owner at lists.gambas-basic.org > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of User digest..." > > >Today's Topics: > > 1. Gambas on Windows (Martin Cristia) > 2. Re: Gambas on Windows (Rolf-Werner Eilert) > 3. Re: gb.pdf Segfaults (T Lee Davidson) > 4. Re: gb.pdf Segfaults (Beno?t Minisini) > 5. Re: gb.pdf Segfaults (Beno?t Minisini) > 6. Re: gb.pdf Segfaults (Laurent Carlier) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Wed, 22 Jan 2020 12:33:21 +0000 >From: Martin Cristia >To: "user at lists.gambas-basic.org" >Subject: [Gambas-user] Gambas on Windows >Message-ID: > > >Content-Type: text/plain; charset="windows-1252" > >Hi Dmitry, >I also tried is on a laptop with W10 installed. It was fairly easy to >have an Ubuntu 19 running and the last Gambas via ppa. XMing seems out >of date but works. Not a good experience, graphics , fonts are too >small mostly. But the important part is that most of my program don?t >work due to file?s path conflicts, JIT, components, ets. I made a new >from wih some controls in it and that worked ffine, but with it keep >freezing unexpectedly. So the conclusion is that it wont work for a >serious project or it may take a huge adaptation for the new >environment. > >Have a good day > >Martin >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: > > >------------------------------ > >Message: 2 >Date: Wed, 22 Jan 2020 15:53:03 +0100 >From: Rolf-Werner Eilert >To: user at lists.gambas-basic.org >Subject: Re: [Gambas-user] Gambas on Windows >Message-ID: <4d566e2b-5b14-46d3-6853-b4c230439fd1 at osnanet.de> >Content-Type: text/plain; charset=windows-1252; format=flowed > >Am 22.01.20 um 13:33 schrieb Martin Cristia: >> Hi Dmitry, >> I also tried is on a laptop with W10 installed. It was fairly easy to > >> have an Ubuntu 19 running and the last Gambas via ppa. XMing seems >out >> of date but works. Not a good experience, graphics , fonts are too >small >> mostly. But the important part is that most of my program don?t work >due >> to file?s path conflicts, JIT, components, ets.? I made a new from >wih >> some controls in it and? that worked ffine, but with it keep freezing > >> unexpectedly. So the conclusion is that it wont work for a serious >> project or it may take a huge adaptation for the new environment. >> >> Have a good day >> >> Martin >> >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >I haven't proceeded as far as you did, Martin, but at least I managed >to >install Gambas and VcXsrv. Everything runs fine, the only thing is that > >I can start WSL and all Xserver application under Admin rights only. If > >you happen to know how to fix this, please let me know. I am not so >experienced with modern Windows. > >When installing Gambas, a whole bunch of libraries is installed with >it, >such as the core GTK and Qt libraries. The Gambas IDE can be started, >and a simple first project runs. The whole appearence is somewhat... >well, crude, like an old TclTK or GTK application, but alas, it runs. > >There is one thing I could not solve yet, i. e. mounting a drive which >is a Samba drive on the windows host. I have mounted one Linux server's > >partition as drive Y: on the Windows to have access to student data >otherwise managed by Linux software on the server itself. For my >project, I would need access to this drive. > >So WSL would have to mount Y:. Any idea how to achieve this? > >Regards >Rolf > > >------------------------------ > >Message: 3 >Date: Wed, 22 Jan 2020 10:16:54 -0500 >From: T Lee Davidson >To: user at lists.gambas-basic.org >Subject: Re: [Gambas-user] gb.pdf Segfaults >Message-ID: <357d124a-207c-da09-0ea5-43506dbbc65c at gmail.com> >Content-Type: text/plain; charset=utf-8; format=flowed > >On 1/21/20 1:35 PM, james at lixce.com wrote: >> Anyone else getting segfaults with gb.pdf? >> >> gambas 3.14.3 >> poppler 0.84.0-1 (appears to work for other uses) >> Arch Linux >> >> Code: >> >> Public hPdf As New PdfDocument >> >> >> hPdf.Open(fileToOpen) >> >> Thanks, >> -j > >It works fine here. > >Gambas=3.14.3 >Distribution=openSUSE Leap 15.1 >Poppler=libpoppler.so.73.0.0 > > >-- >Lee > > >------------------------------ > >Message: 4 >Date: Wed, 22 Jan 2020 16:54:22 +0100 >From: Beno?t Minisini >To: user at lists.gambas-basic.org >Subject: Re: [Gambas-user] gb.pdf Segfaults >Message-ID: <6ec967a5-47ab-534d-ba44-bbbd4c656ed4 at gmail.com> >Content-Type: text/plain; charset=utf-8; format=flowed > >Le 22/01/2020 ? 16:16, T Lee Davidson a ?crit?: >> On 1/21/20 1:35 PM, james at lixce.com wrote: >>> Anyone else getting segfaults with gb.pdf? >>> >>> ? gambas 3.14.3 >>> ? poppler 0.84.0-1 (appears to work for other uses) >>> ? Arch Linux >>> >>> ? Code: >>> >>> ? Public hPdf As New PdfDocument >>> >>> >>> ? hPdf.Open(fileToOpen) >>> Thanks, >>> -j >> >> It works fine here. >> >> Gambas=3.14.3 >> Distribution=openSUSE Leap 15.1 >> Poppler=libpoppler.so.73.0.0 >> >> > >No problem here too. > >-- >Beno?t Minisini > > >------------------------------ > >Message: 5 >Date: Wed, 22 Jan 2020 16:55:00 +0100 >From: Beno?t Minisini >To: user at lists.gambas-basic.org >Subject: Re: [Gambas-user] gb.pdf Segfaults >Message-ID: <60e1dadd-9f99-ee89-ec03-fad25d676010 at gmail.com> >Content-Type: text/plain; charset=utf-8; format=flowed > >Le 22/01/2020 ? 16:54, Beno?t Minisini a ?crit?: >> Le 22/01/2020 ? 16:16, T Lee Davidson a ?crit?: >>> On 1/21/20 1:35 PM, james at lixce.com wrote: >>>> Anyone else getting segfaults with gb.pdf? >>>> >>>> ? gambas 3.14.3 >>>> ? poppler 0.84.0-1 (appears to work for other uses) >>>> ? Arch Linux >>>> >>>> ? Code: >>>> >>>> ? Public hPdf As New PdfDocument >>>> >>>> >>>> ? hPdf.Open(fileToOpen) >>>> Thanks, >>>> -j >>> >>> It works fine here. >>> >>> Gambas=3.14.3 >>> Distribution=openSUSE Leap 15.1 >>> Poppler=libpoppler.so.73.0.0 >>> >>> >> >> No problem here too. >> > >...on Ubuntu 19.10. > >-- >Beno?t Minisini > > >------------------------------ > >Message: 6 >Date: Wed, 22 Jan 2020 17:20:15 +0100 >From: Laurent Carlier >To: user at lists.gambas-basic.org >Cc: Beno?t Minisini >Subject: Re: [Gambas-user] gb.pdf Segfaults >Message-ID: <2513353.mvXUDI8C0e at lordh-pc> >Content-Type: text/plain; charset="iso-8859-1" > >Le mercredi 22 janvier 2020, 16:55:00 CET Beno?t Minisini a ?crit : >> Le 22/01/2020 ? 16:54, Beno?t Minisini a ?crit : >> > Le 22/01/2020 ? 16:16, T Lee Davidson a ?crit : >> >> On 1/21/20 1:35 PM, james at lixce.com wrote: >> >>> Anyone else getting segfaults with gb.pdf? >> >>> >> >>> gambas 3.14.3 >> >>> poppler 0.84.0-1 (appears to work for other uses) >> >>> Arch Linux >> >>> >> >>> Code: >> >>> >> >>> Public hPdf As New PdfDocument >> >>> >> >>> >> >>> hPdf.Open(fileToOpen) >> >>> Thanks, >> >>> -j >> >> >> >> It works fine here. >> >> >> >> Gambas=3.14.3 >> >> Distribution=openSUSE Leap 15.1 >> >> Poppler=libpoppler.so.73.0.0 >> > >> > No problem here too. >> >> ...on Ubuntu 19.10. > > >I can reproduce the segfault. I will see what i can do ASAP. >-------------- 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: > > >------------------------------ > >Subject: Digest Footer > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- > > >------------------------------ > >End of User Digest, Vol 28, Issue 45 >************************************ -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 23 00:22:20 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 Jan 2020 00:22:20 +0100 Subject: [Gambas-user] Message command In-Reply-To: References: Message-ID: Le 23/01/2020 ? 00:00, Steve G via User a ?crit?: > Hopefully this can get in before the new version comes out. I have a > dual monitor setup, and I notice any time I use the message command to > put out some kind of information and often the same with the input box > command. What I find is that almost every time the dialog box shows up > on the second monitor or split between the two monitors. Is there a way > that this can be set to come up in the center of the form that calls it? > I think that would be more proper than anything else > Which version of Gambas do you use? With which GUI toolkit? At least in gb.qt4/gb.qt5, the modal dialogs are centered on the screen of their parent, which is the top-level active windows opened when the Message method is called. Regards, -- Beno?t Minisini From lapisdecor at gmail.com Thu Jan 23 01:11:44 2020 From: lapisdecor at gmail.com (Luis Louro) Date: Thu, 23 Jan 2020 00:11:44 +0000 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <4d566e2b-5b14-46d3-6853-b4c230439fd1@osnanet.de> References: <4d566e2b-5b14-46d3-6853-b4c230439fd1@osnanet.de> Message-ID: It would be nice if after your experience you guys put all this knowledge in a blog post. It could help people who might want to check gambas on Windows. Thanks in advance, Luis A quarta, 22/01/2020, 14:54, Rolf-Werner Eilert escreveu: > Am 22.01.20 um 13:33 schrieb Martin Cristia: > > Hi Dmitry, > > I also tried is on a laptop with W10 installed. It was fairly easy to > > have an Ubuntu 19 running and the last Gambas via ppa. XMing seems out > > of date but works. Not a good experience, graphics , fonts are too small > > mostly. But the important part is that most of my program don?t work due > > to file?s path conflicts, JIT, components, ets. I made a new from wih > > some controls in it and that worked ffine, but with it keep freezing > > unexpectedly. So the conclusion is that it wont work for a serious > > project or it may take a huge adaptation for the new environment. > > > > Have a good day > > > > Martin > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I haven't proceeded as far as you did, Martin, but at least I managed to > install Gambas and VcXsrv. Everything runs fine, the only thing is that > I can start WSL and all Xserver application under Admin rights only. If > you happen to know how to fix this, please let me know. I am not so > experienced with modern Windows. > > When installing Gambas, a whole bunch of libraries is installed with it, > such as the core GTK and Qt libraries. The Gambas IDE can be started, > and a simple first project runs. The whole appearence is somewhat... > well, crude, like an old TclTK or GTK application, but alas, it runs. > > There is one thing I could not solve yet, i. e. mounting a drive which > is a Samba drive on the windows host. I have mounted one Linux server's > partition as drive Y: on the Windows to have access to student data > otherwise managed by Linux software on the server itself. For my > project, I would need access to this drive. > > So WSL would have to mount Y:. Any idea how to achieve this? > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Thu Jan 23 01:22:38 2020 From: simonlebon54 at yahoo.com (Steve G) Date: Wed, 22 Jan 2020 15:22:38 -0900 Subject: [Gambas-user] Message and input box In-Reply-To: References: Message-ID: <7971a3ba-718e-4bd6-98d5-67af18b1953a@yahoo.com> I am using the default when you open up a project gtk. Gambas version is 3.14.2 ?Sent from TypeApp ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Jan 23 08:22:47 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 23 Jan 2020 08:22:47 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: <4d566e2b-5b14-46d3-6853-b4c230439fd1@osnanet.de> Message-ID: Yes, this is what I had in mind, Luis :) Or a page in the Gambas wiki. Regards Rolf Am 23.01.20 um 01:11 schrieb Luis Louro: > It would be nice if after your experience you guys put all this > knowledge in a blog post. It could help people who might want to check > gambas on Windows. Thanks in advance, > > Luis > > A quarta, 22/01/2020, 14:54, Rolf-Werner Eilert > escreveu: > > Am 22.01.20 um 13:33 schrieb Martin Cristia: > > Hi Dmitry, > > I also tried is on a laptop with W10 installed. It was fairly > easy to > > have an Ubuntu 19 running and the last Gambas via ppa. XMing > seems out > > of date but works. Not a good experience, graphics , fonts are > too small > > mostly. But the important part is that most of my program don?t > work due > > to file?s path conflicts, JIT, components, ets.? I made a new > from wih > > some controls in it and? that worked ffine, but with it keep > freezing > > unexpectedly. So the conclusion is that it wont work for a serious > > project or it may take a huge adaptation for the new environment. > > > > Have a good day > > > > Martin > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > I haven't proceeded as far as you did, Martin, but at least I > managed to > install Gambas and VcXsrv. Everything runs fine, the only thing is that > I can start WSL and all Xserver application under Admin rights only. If > you happen to know how to fix this, please let me know. I am not so > experienced with modern Windows. > > When installing Gambas, a whole bunch of libraries is installed with > it, > such as the core GTK and Qt libraries. The Gambas IDE can be started, > and a simple first project runs. The whole appearence is somewhat... > well, crude, like an old TclTK or GTK application, but alas, it runs. > > There is one thing I could not solve yet, i. e. mounting a drive which > is a Samba drive on the windows host. I have mounted one Linux server's > partition as drive Y: on the Windows to have access to student data > otherwise managed by Linux software on the server itself. For my > project, I would need access to this drive. > > So WSL would have to mount Y:. Any idea how to achieve this? > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From tercoide at hotmail.com Thu Jan 23 13:12:17 2020 From: tercoide at hotmail.com (Martin Cristia) Date: Thu, 23 Jan 2020 12:12:17 +0000 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: Message-ID: Will swich to VcXsrv and give it a second try. > I haven't proceeded as far as you did, Martin, but at least I > managed to > install Gambas and VcXsrv. Everything runs fine, the only thing is that > I can start WSL and all Xserver application under Admin rights only. If > you happen to know how to fix this, please let me know. I am not so > experienced with modern Windows. > > When installing Gambas, a whole bunch of libraries is installed with > it, > such as the core GTK and Qt libraries. The Gambas IDE can be started, > and a simple first project runs. The whole appearence is somewhat... > well, crude, like an old TclTK or GTK application, but alas, it runs. > > There is one thing I could not solve yet, i. e. mounting a drive which > is a Samba drive on the windows host. I have mounted one Linux server's > partition as drive Y: on the Windows to have access to student data > otherwise managed by Linux software on the server itself. For my > project, I would need access to this drive. > > So WSL would have to mount Y:. Any idea how to achieve this? > > Regards > Rolf -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Thu Jan 23 16:52:49 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 23 Jan 2020 16:52:49 +0100 Subject: [Gambas-user] Possibility to compile old bytecode Message-ID: <81c9fb76-e810-35c8-4aaf-3d1048809eec@deganius.de> Hi, as I do a lot programming of production code for computers with older Gambas versions (3.9, 3.11) I now have a big problem with "Bytecode too recent" errors, as soon as I use the current dev version and later version 3.15 and so on. Would it be possible to create a compiler flag to let gbc3 compile to older bytecode? This would help me a lot because otherwise I had to keep up an older Gambas version. If it is not possible or if it is a pain I would have to work with virtual machines. This is not a big problem, but a bigger one would be if I'd like to realize automatic deployment later on. Alles Gute Christof Thalhofer -- Dies ist keine Signatur From g4mba5 at gmail.com Thu Jan 23 17:16:40 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 Jan 2020 17:16:40 +0100 Subject: [Gambas-user] Possibility to compile old bytecode In-Reply-To: <81c9fb76-e810-35c8-4aaf-3d1048809eec@deganius.de> References: <81c9fb76-e810-35c8-4aaf-3d1048809eec@deganius.de> Message-ID: <1ef4673f-34b5-3199-d24a-df39cf562a38@gmail.com> Le 23/01/2020 ? 16:52, Christof Thalhofer a ?crit?: > Hi, > > as I do a lot programming of production code for computers with older > Gambas versions (3.9, 3.11) I now have a big problem with "Bytecode too > recent" errors, as soon as I use the current dev version and later > version 3.15 and so on. > > Would it be possible to create a compiler flag to let gbc3 compile to > older bytecode? > > This would help me a lot because otherwise I had to keep up an older > Gambas version. > > If it is not possible or if it is a pain I would have to work with > virtual machines. This is not a big problem, but a bigger one would be > if I'd like to realize automatic deployment later on. > > > Alles Gute > > Christof Thalhofer > If you know that you don't use new language feature, you can force the compiler to save a specific bytecode version with the GB_PCODE_VERSION environment variable. For example GB_PCODE_VERSION=3.8. Beware that it "does not compile to older bytecode". You need an older compiler for that. So if you use it incorrectly, the interpreter will segfault, abort or have an undefined behaviour. The better being not to use a development version for production code! -- Beno?t Minisini From brian at westwoodsvcs.com Thu Jan 23 17:09:53 2020 From: brian at westwoodsvcs.com (Brian G) Date: Thu, 23 Jan 2020 16:09:53 +0000 (UTC) Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: Message-ID: <605B1DED34848F44.07c2e087-fbc8-4ffb-b3d5-6e0ceed54477@mail.outlook.com> How would windows 10 Linux mode work with Gambas thank you brian On Thu, Jan 23, 2020 at 4:13 AM -0800, "Martin Cristia" wrote: Will swich to VcXsrv and give it a second try. >???? I haven't proceeded as far as you did, Martin, but at least I >???? managed to >???? install Gambas and VcXsrv. Everything runs fine, the only thing is that >???? I can start WSL and all Xserver application under Admin rights only. If >???? you happen to know how to fix this, please let me know. I am not so >???? experienced with modern Windows. > >???? When installing Gambas, a whole bunch of libraries is installed with >???? it, >???? such as the core GTK and Qt libraries. The Gambas IDE can be started, >???? and a simple first project runs. The whole appearence is somewhat... >???? well, crude, like an old TclTK or GTK application, but alas, it runs. > >???? There is one thing I could not solve yet, i. e. mounting a drive which >???? is a Samba drive on the windows host. I have mounted one Linux server's >???? partition as drive Y: on the Windows to have access to student data >???? otherwise managed by Linux software on the server itself. For my >???? project, I would need access to this drive. > >???? So WSL would have to mount Y:. Any idea how to achieve this? > >???? Regards >???? Rolf -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Jan 23 17:24:43 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 23 Jan 2020 17:24:43 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <605B1DED34848F44.07c2e087-fbc8-4ffb-b3d5-6e0ceed54477@mail.outlook.com> References: <605B1DED34848F44.07c2e087-fbc8-4ffb-b3d5-6e0ceed54477@mail.outlook.com> Message-ID: Today I got it to work, and I am about to write an answer to Martins post. Please read it there in a minute... Regards Rolf Am 23.01.20 um 17:09 schrieb Brian G: > How would windows 10 Linux mode work with Gambas > > thank you > brian > > > > > On Thu, Jan 23, 2020 at 4:13 AM -0800, "Martin Cristia" > > wrote: > > Will swich to VcXsrv and give it a second try. > > > >???? I haven't proceeded as far as you did, Martin, but at least I > >???? managed to > >???? install Gambas and VcXsrv. Everything runs fine, the only > thing is that > >???? I can start WSL and all Xserver application under Admin > rights only. If > >???? you happen to know how to fix this, please let me know. I am > not so > >???? experienced with modern Windows. > > > >???? When installing Gambas, a whole bunch of libraries is > installed with > >???? it, > >???? such as the core GTK and Qt libraries. The Gambas IDE can be > started, > >???? and a simple first project runs. The whole appearence is > somewhat... > >???? well, crude, like an old TclTK or GTK application, but alas, > it runs. > > > >???? There is one thing I could not solve yet, i. e. mounting a > drive which > >???? is a Samba drive on the windows host. I have mounted one > Linux server's > >???? partition as drive Y: on the Windows to have access to > student data > >???? otherwise managed by Linux software on the server itself. For my > >???? project, I would need access to this drive. > > > >???? So WSL would have to mount Y:. Any idea how to achieve this? > > > >???? Regards > >???? Rolf > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From rwe-sse at osnanet.de Thu Jan 23 17:46:12 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 23 Jan 2020 17:46:12 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: Message-ID: <082fe7be-f9b9-44b6-523a-9016aa367aad@osnanet.de> Martin, this is what I achieved up to now: - Installed WSL As I was asked to do it under Admin rights, I did so. Maybe it was no good idea, as up to now I can run the whole thing as Admin only. The easy point-and-click method Dmitry told us does not run yet / runs only under this limitation. - In the WSL Linux, I installed Gambas. That installed a whole mass of libraries with it, including GTK+ and Qt. - As Dmitry did, I created a link on the Windows Desktop to start the Gambas IDE directly. (But I have to right-click on it and say "Start as Admin", giving Admin's password.) - The Gambas IDE runs perfectly, hasn't crashed yet. - Now came the tricky part: Copying a project from my main working computer (Linux) to this one. Of course, one can easily copy it into Users\Username... and this was what I did first. It worked well, because C:\is mounted under /mnt/c automagically. But in Linux, everything is in /home/user/..., and I wanted my project to be there. So I had to copy it from there, and that was possible in a second step from within WSL. - A few times, Defender interfered and I had to tell him to leave me alone with my files. - The IDE loads the program, and the program runs flawlessly. - I still couldn't find a way to get access to our server's directory for the data needed by this program. On Windows, there is a network drive "Y:" which pretends to be a directory but is in fact a faked network address to the Samba on the server. Creating a link within Windows from this drive into a user directory doesn't help in Linux, as for Linux this is just a file containing some data it cannot make use of. - So I tried to setup sshfs, but I failed somewhere on the way... I setup Fuse, made a fuse group, put the main user into this group... I modprobed fuse... Don't really know if it was possible and I just missed something or if it wouldn't be possible at all. - In the end I simply copied some of the data from the server into the Gambas project directory and pointed the program to these data. - Then in the IDE I made a Gambas binary and in Windows I made a link from the desktop pointing to it to try. It runs like a charme from there, so I really hope I can solve the other problems. Regards Rolf Am 23.01.20 um 13:12 schrieb Martin Cristia: > Will swich to VcXsrv and give it a second try. > > > >???? I haven't proceeded as far as you did, Martin, but at least I > >???? managed to > >???? install Gambas and VcXsrv. Everything runs fine, the only thing > is that > >???? I can start WSL and all Xserver application under Admin rights > only. If > >???? you happen to know how to fix this, please let me know. I am not so > >???? experienced with modern Windows. > > > >???? When installing Gambas, a whole bunch of libraries is installed with > >???? it, > >???? such as the core GTK and Qt libraries. The Gambas IDE can be started, > >???? and a simple first project runs. The whole appearence is somewhat... > >???? well, crude, like an old TclTK or GTK application, but alas, it runs. > > > >???? There is one thing I could not solve yet, i. e. mounting a drive > which > >???? is a Samba drive on the windows host. I have mounted one Linux > server's > >???? partition as drive Y: on the Windows to have access to student data > >???? otherwise managed by Linux software on the server itself. For my > >???? project, I would need access to this drive. > > > >???? So WSL would have to mount Y:. Any idea how to achieve this? > > > >???? Regards > >???? Rolf > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From lordheavym at gmail.com Thu Jan 23 18:51:38 2020 From: lordheavym at gmail.com (Laurent Carlier) Date: Thu, 23 Jan 2020 18:51:38 +0100 Subject: [Gambas-user] gb.pdf Segfaults In-Reply-To: <20200122033802.516BE2038799@h08.hostsharing.net> References: <20200122033802.516BE2038799@h08.hostsharing.net> Message-ID: <5564573.lOV4Wx5bFT@lordh-pc> Le mardi 21 janvier 2020, 19:35:11 CET james at lixce.com a ?crit : > Anyone else getting segfaults with gb.pdf? > > gambas 3.14.3 > poppler 0.84.0-1 (appears to work for other uses) > Arch Linux > > Code: > > Public hPdf As New PdfDocument > > > hPdf.Open(fileToOpen) > > Thanks, > -j > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Ok, i pushed a fix and released a new Archlinux package with the fix included. ++ -------------- 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 taboege at gmail.com Thu Jan 23 19:00:43 2020 From: taboege at gmail.com (Tobias Boege) Date: Thu, 23 Jan 2020 19:00:43 +0100 Subject: [Gambas-user] Possibility to compile old bytecode In-Reply-To: <1ef4673f-34b5-3199-d24a-df39cf562a38@gmail.com> References: <81c9fb76-e810-35c8-4aaf-3d1048809eec@deganius.de> <1ef4673f-34b5-3199-d24a-df39cf562a38@gmail.com> Message-ID: <20200123180043.GB995314@highrise.localdomain> On Thu, 23 Jan 2020, Beno?t Minisini wrote: > Le 23/01/2020 ? 16:52, Christof Thalhofer a ?crit?: > > Hi, > > > > as I do a lot programming of production code for computers with older > > Gambas versions (3.9, 3.11) I now have a big problem with "Bytecode too > > recent" errors, as soon as I use the current dev version and later > > version 3.15 and so on. > > > > Would it be possible to create a compiler flag to let gbc3 compile to > > older bytecode? > > > > This would help me a lot because otherwise I had to keep up an older > > Gambas version. > > > > If it is not possible or if it is a pain I would have to work with > > virtual machines. This is not a big problem, but a bigger one would be > > if I'd like to realize automatic deployment later on. > > > > > > Alles Gute > > > > Christof Thalhofer > > > > If you know that you don't use new language feature, you can force the > compiler to save a specific bytecode version with the GB_PCODE_VERSION > environment variable. For example GB_PCODE_VERSION=3.8. > > Beware that it "does not compile to older bytecode". You need an older > compiler for that. So if you use it incorrectly, the interpreter will > segfault, abort or have an undefined behaviour. > > The better being not to use a development version for production code! > The easiest proper fix -- I'm not sure if you're aware of it -- is to upload the source archive of the project to the production machine, force a recompilation of it with the old compiler (`gbx3 -a`) there and then run it. This will politely tell you if your Gambas code uses features that are too new for the old runtime (no undefined behaviour), even if the bytecode version is compatible. There is only a problem if you must distribute a .gambas file without the source code to the target. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Thu Jan 23 20:01:56 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 23 Jan 2020 14:01:56 -0500 Subject: [Gambas-user] Settings[] cannot be used statically? Message-ID: <1dd5c3c1-da13-c919-df7e-911787bc0d22@gmail.com> The documentation[0] seems to indicate that Settings can be used statically. However, when I try to do that according to the examples, I get a "Null object" error. I created an application settings (.conf) file by hand so the settings could be restored on Form_Open with: txtUserName.Text = Settings["User/Name"] txtUserEmail.Text = Settings["User/Email"] That didn't work, so I tried to let the app save its own settings file on Form_Close with: Settings["User/Name"] = txtUserName.Text Settings["User/Email"] = txtUserEmail.Text Both attempts gave the "Null object" error. Is the documentation in error, or is this a bug? -- Lee Gambas v3.14.3 [0] http://gambaswiki.org/wiki/comp/gb.settings/settings From jussi.lahtinen at gmail.com Thu Jan 23 21:49:16 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 23 Jan 2020 22:49:16 +0200 Subject: [Gambas-user] Settings[] cannot be used statically? In-Reply-To: <1dd5c3c1-da13-c919-df7e-911787bc0d22@gmail.com> References: <1dd5c3c1-da13-c919-df7e-911787bc0d22@gmail.com> Message-ID: I currently use Settings statically without any errors. Jussi On Thu, Jan 23, 2020 at 9:03 PM T Lee Davidson wrote: > The documentation[0] seems to indicate that Settings can be used > statically. However, when I try to do that according to the > examples, I get a "Null object" error. > > I created an application settings (.conf) file by hand so the settings > could be restored on Form_Open with: > txtUserName.Text = Settings["User/Name"] > txtUserEmail.Text = Settings["User/Email"] > > That didn't work, so I tried to let the app save its own settings file on > Form_Close with: > Settings["User/Name"] = txtUserName.Text > Settings["User/Email"] = txtUserEmail.Text > > Both attempts gave the "Null object" error. > > Is the documentation in error, or is this a bug? > > > -- > Lee > > Gambas v3.14.3 > > [0] http://gambaswiki.org/wiki/comp/gb.settings/settings > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Jan 23 22:35:24 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 Jan 2020 22:35:24 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <082fe7be-f9b9-44b6-523a-9016aa367aad@osnanet.de> References: <082fe7be-f9b9-44b6-523a-9016aa367aad@osnanet.de> Message-ID: <145309f2-a363-9b0f-0c7b-05e04d27c735@gmail.com> Le 23/01/2020 ? 17:46, Rolf-Werner Eilert a ?crit?: > Martin, > > this is what I achieved up to now: > > - Installed WSL > As I was asked to do it under Admin rights, I did so. Maybe it was no > good idea, as up to now I can run the whole thing as Admin only. The > easy point-and-click method Dmitry told us does not run yet / runs only > under this limitation. > > ... Hi, Once you have a clean procedure of all that, it will be cool to create a page on the wiki: "How to install Gambas on Windows", "How to run a Gambas program on Windows"... Regards, -- Beno?t Minisini From bagonergi at gmail.com Thu Jan 23 22:56:10 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 23 Jan 2020 22:56:10 +0100 Subject: [Gambas-user] Settings[] cannot be used statically? In-Reply-To: References: <1dd5c3c1-da13-c919-df7e-911787bc0d22@gmail.com> Message-ID: Il giorno gio 23 gen 2020 alle ore 21:50 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > I currently use Settings statically without any errors. > > Jussi > > On Thu, Jan 23, 2020 at 9:03 PM T Lee Davidson > wrote: > >> The documentation[0] seems to indicate that Settings can be used >> statically. However, when I try to do that according to the >> examples, I get a "Null object" error. >> > Have you tried this ? : Public Sub Form_Open() txtUserName.Text = Settings["User/Name", Null] txtUserMail.Text = Settings["User/Email", Null] End Public Sub Form_Close() Settings["User/Name"] = txtUserName.Text Settings["User/Email"] = txtUserMail.Text End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Jan 23 23:07:05 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 24 Jan 2020 00:07:05 +0200 Subject: [Gambas-user] Settings[] cannot be used statically? In-Reply-To: References: <1dd5c3c1-da13-c919-df7e-911787bc0d22@gmail.com> Message-ID: The default is null already, if not defined. There is bug somewhere in his code or in his installation. Jussi On Thu, Jan 23, 2020 at 11:57 PM Gianluigi wrote: > > > Il giorno gio 23 gen 2020 alle ore 21:50 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> I currently use Settings statically without any errors. >> >> Jussi >> >> On Thu, Jan 23, 2020 at 9:03 PM T Lee Davidson >> wrote: >> >>> The documentation[0] seems to indicate that Settings can be used >>> statically. However, when I try to do that according to the >>> examples, I get a "Null object" error. >>> >> > Have you tried this ? : > > Public Sub Form_Open() > > txtUserName.Text = Settings["User/Name", Null] > txtUserMail.Text = Settings["User/Email", Null] > > End > > Public Sub Form_Close() > > Settings["User/Name"] = txtUserName.Text > Settings["User/Email"] = txtUserMail.Text > > End > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jan 23 23:34:22 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 23 Jan 2020 17:34:22 -0500 Subject: [Gambas-user] Settings[] cannot be used statically? In-Reply-To: References: <1dd5c3c1-da13-c919-df7e-911787bc0d22@gmail.com> Message-ID: On 1/23/20 5:07 PM, Jussi Lahtinen wrote: > The default is null already, if not defined. There is bug somewhere in his code or in his installation. > > Jussi Yep. They bug was in my code. The code I published was merely exemplary. I was actually trying to set the Text of the Current Item of a ComboBox ... which was empty. Since there is no Current Item in an empty ComboBox, that was the Null object not the Settings object. Thanks for setting me straight :-) -- Lee From chrisml at deganius.de Fri Jan 24 00:10:23 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 24 Jan 2020 00:10:23 +0100 Subject: [Gambas-user] Possibility to compile old bytecode In-Reply-To: <20200123180043.GB995314@highrise.localdomain> References: <81c9fb76-e810-35c8-4aaf-3d1048809eec@deganius.de> <1ef4673f-34b5-3199-d24a-df39cf562a38@gmail.com> <20200123180043.GB995314@highrise.localdomain> Message-ID: <6019afb5-6ec9-b55c-a1f3-5ecb1b918ea3@deganius.de> Am 23.01.20 um 19:00 schrieb Tobias Boege: > On Thu, 23 Jan 2020, Beno?t Minisini wrote: >> If you know that you don't use new language feature, you can force the >> compiler to save a specific bytecode version with the GB_PCODE_VERSION >> environment variable. For example GB_PCODE_VERSION=3.8. >> >> Beware that it "does not compile to older bytecode". You need an older >> compiler for that. So if you use it incorrectly, the interpreter will >> segfault, abort or have an undefined behaviour. >> >> The better being not to use a development version for production code! Yes, sure. I thought about the time when 3.15 is out and I still have to deploy to machines running 3.9 or 3.12. > The easiest proper fix -- I'm not sure if you're aware of it -- is to > upload the source archive of the project to the production machine, > force a recompilation of it with the old compiler (`gbx3 -a`) there > and then run it. This will politely tell you if your Gambas code uses > features that are too new for the old runtime (no undefined behaviour), > even if the bytecode version is compatible. I could do this as I deploy with Debian Apt and there I can control everything. The Gambas projects are compiled and packed in .deb files by make and shellscripts and then pushed to the Apt repository. The caveat is that I had to rewrite the whole process if it should deliver the sources, test and build on the target machines ... that costs time ... > There is only a problem if you must distribute a .gambas file without > the source code to the target. Great, thank you both for the answer! Now I have an idea what I can do, so I will find a solution later. Alles Gute Christof Thalhofer -- Dies ist keine Signatur From g4mba5 at gmail.com Fri Jan 24 00:59:48 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 24 Jan 2020 00:59:48 +0100 Subject: [Gambas-user] Fw: [CRASH REPORT] TrayItemTest In-Reply-To: References: Message-ID: Le 24/01/2020 ? 00:23, Gerry Buzolic a ?crit?: > PS > > The old executable, compiled under Kubuntu 18.10 or 19.04 I forget > which, works fine. I have attached it. > > I am in Papua New Guinea. I have British English installed. > > ------------------------------------------------------------------------ > *From:* Gerry Buzolic > *Sent:* Friday, 24 January 2020 8:57 AM > *To:* Beno?t Minisini > *Cc:* Gambas mailing list > *Subject:* [CRASH REPORT] TrayItemTest > Hello, > > > Damned, my program crashed Gambas this way : > > > Tried to run it. > > Used to work before Kubuntu 19.10 was installed > > Tried writing a simple one-button program and it worked fine. > > Console says > > -- -- -- > > gbx3: warning: cannot switch to language 'en_PG > .UTF-8': No such file or directory. Did you ins > dbus[3482]: arguments to dbus_bus_request_name() were incorrect, > assertion "_dbus_check_is_valid_bus_name (name)" failed in file > ../../../dbus/dbus-bus.c line 1122 > . > This is normally a bug in some application using the D-Bus library. > > ? D-Bus not built with -rdynamic so unable to print a backtrace > > > -- -- -- > Thanks, Beno?t and all > Love Gambas > Gerry Your executable runs fine on my computer. Next time, send the source code, because I am parano?d. :-) Regards, -- Beno?t Minisini From james at lixce.com Thu Jan 23 20:43:25 2020 From: james at lixce.com (james at lixce.com) Date: Thu, 23 Jan 2020 19:43:25 GMT Subject: [Gambas-user] gb.pdf FIXED Message-ID: Thanks all, especially `lordheavy` gb.pdf 3.14.3-3 fixed my segfaults on Arch. This was big one for me, I'm building a DE that uses PDF Portfolios as the primary file container. Guess that is what I get for using a rolling-release Linux distribution for a development platform. Thanks! -j `LiXCE` From g4mba5 at gmail.com Fri Jan 24 08:46:26 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 24 Jan 2020 08:46:26 +0100 Subject: [Gambas-user] Global layout save / restore in the IDE Message-ID: Hi, In the last commits, I added the ability to save and restore the global layout of the IDE GUI. Are saved the layout of each toolbar, and some GUI options. Highlight theme, icon themes, and font names are not saved. I provide two default layout configuration : a default one, and a compact one. Tell me what you think. If you have some interesting layouts, do not hesitate to send me the layout file (they are stored in '~/.local/share/gambas3/layout') so that I can add it to the list of default layouts. Enjoy. -- Beno?t Minisini From rwe-sse at osnanet.de Fri Jan 24 10:43:48 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 24 Jan 2020 10:43:48 +0100 Subject: [Gambas-user] Gambas on Windows In-Reply-To: <145309f2-a363-9b0f-0c7b-05e04d27c735@gmail.com> References: <082fe7be-f9b9-44b6-523a-9016aa367aad@osnanet.de> <145309f2-a363-9b0f-0c7b-05e04d27c735@gmail.com> Message-ID: <19b5fd34-778c-1c29-3bd9-ffab7024a7f1@osnanet.de> Am 23.01.20 um 22:35 schrieb Beno?t Minisini: > Le 23/01/2020 ? 17:46, Rolf-Werner Eilert a ?crit?: >> Martin, >> >> this is what I achieved up to now: >> >> - Installed WSL >> As I was asked to do it under Admin rights, I did so. Maybe it was no >> good idea, as up to now I can run the whole thing as Admin only. The >> easy point-and-click method Dmitry told us does not run yet / runs >> only under this limitation. >> >> ... > Hi, > > Once you have a clean procedure of all that, it will be cool to create a > page on the wiki: "How to install Gambas on Windows", "How to run a > Gambas program on Windows"... > > Regards, > This morning I found the explanation for the Admin-only problem: The whole WSL was installed under Admin's directory, so it's Admin's program. I guess I misunderstood "install as admin" and it should have been "install under admin rights". Maybe I find some time later this day to redo it under the ordinary user's account (with admin rights), or I must postpone it to next week. The other problem is more difficult - finding a network connection to our server (or: to the server's directory with the data). Using mount with the Windows resource (\\192.168.67.1) only yields "unknown filesystem type". So there there seems to be no abstraction layer that would translate the Windows network drive into a mountable Linux drive. My trials with sshfs failed yesterday - must find a quiet hour to dive into it somewhat deeper. Regards Rolf From tercoide at hotmail.com Fri Jan 24 12:55:23 2020 From: tercoide at hotmail.com (Martin Cristia) Date: Fri, 24 Jan 2020 11:55:23 +0000 Subject: [Gambas-user] Gambas on Windows In-Reply-To: References: Message-ID: Rolf >- The Gambas IDE runs perfectly, hasn't crashed yet. No luck with mine on that. >- Now came the tricky part: Copying a project from my main working computer (Linux) to this one. Of course, one can easily copy it into Users\Username... and this was what I did first. It worked well, because C:\is mounted under /mnt/c automagically. But in Linux, everything is in /home/user/..., and I wanted my project to be there. So I had to copy it from there, and that was possible in a second step from within WSL. * Be aware no to mess with the Linux filesystem from Windows (and vice-versa), this is a good read https://www.howtogeek.com/261383/how-to-access-your-ubuntu-bash-files-in-windows-and-your-windows-system-drive-in-bash/ >- The IDE loads the program, and the program runs flawlessly. great >- I still couldn't find a way to get access to our server's directory for the data needed by this program. On Windows, there is a network drive "Y:" which pretends to be a directory but is in fact a faked network address to the Samba on the server. Creating a link within Windows from this drive into a user directory doesn't help in Linux, as for Linux this is just a file containing some data it cannot make use of. No clue >Once you have a clean procedure of all that, it will be cool to create a page on the wiki: "How to install Gambas on Windows", "How to run a Gambas program on Windows"... Regards, -- Beno?t Minisini Sure, boss! -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Sat Jan 25 03:59:08 2020 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 24 Jan 2020 18:59:08 -0800 (PST) Subject: [Gambas-user] How to use a virtual class in gambas Message-ID: <1330227611.3554.1579921148896.JavaMail.zimbra@westwoodsvcs.com> Hi, I am trying to understand virtual classes for a component I am working on. Does anyone have a concrete short example written in gambas which would give a clear example of how to implement a virtual class returned from a class method. Which allows access to the underlying real object I have read all the examples I can find and getting no where fast... listview etc. I really would be very grateful! Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sat Jan 25 04:45:50 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 25 Jan 2020 04:45:50 +0100 Subject: [Gambas-user] How to use a virtual class in gambas In-Reply-To: <1330227611.3554.1579921148896.JavaMail.zimbra@westwoodsvcs.com> References: <1330227611.3554.1579921148896.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Am 25.01.20 um 03:59 schrieb Brian G: > Hi, I am trying to understand virtual classes for a component I am > working on. > > Does anyone have a concrete short example? written in gambas which would > give a clear example of how to implement a virtual class > returned from a class method. Which allows access to the underlying real > object > > I have read all the examples I can find and getting no where fast... > listview etc. You may have a look at this thread: https://lists.gambas-basic.org/pipermail/user/2018-September/065492.html (there click at "Messages sorted by: [ thread ]") Btw. Did you know our search engine? https://lists.gambas-basic.org/cgi-bin/search.cgi Alles Gute Christof Thalhofer -- Dies ist keine Signatur From brian at westwoodsvcs.com Sat Jan 25 05:11:33 2020 From: brian at westwoodsvcs.com (Brian G) Date: Fri, 24 Jan 2020 20:11:33 -0800 (PST) Subject: [Gambas-user] How to use a virtual class in gambas In-Reply-To: References: <1330227611.3554.1579921148896.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <1060341400.3611.1579925493569.JavaMail.zimbra@westwoodsvcs.com> Thanks for your reply Christof and no I did not know about our search engine! Ok After reading from the thread, and searching for other Ref. I see in my understanding that unless I am writing C++ there is in fact no real virtual class[interface] to underlying classes/Object. I looked into the ARRAY class and see that the .Array.Bounds class is used a GB_PROPERTY_SELF for that object . I am trying to create a class which inherits array cant seem to get the bounds working... Am I missing something.. or is there actually a way to use virtual gambas classes. Maybe I don't understand how to link the virtual object to the underlying real object. and return it from a call to a read property. I am trying to keep everything in Gambas itself. Thank You Brian G ----- Original Message ----- From: "Christof Thalhofer" To: "Gambas mailing list" Sent: Friday, January 24, 2020 7:45:50 PM Subject: Re: [Gambas-user] How to use a virtual class in gambas Am 25.01.20 um 03:59 schrieb Brian G: > Hi, I am trying to understand virtual classes for a component I am > working on. > > Does anyone have a concrete short example? written in gambas which would > give a clear example of how to implement a virtual class > returned from a class method. Which allows access to the underlying real > object > > I have read all the examples I can find and getting no where fast... > listview etc. You may have a look at this thread: https://lists.gambas-basic.org/pipermail/user/2018-September/065492.html (there click at "Messages sorted by: [ thread ]") Btw. Did you know our search engine? https://lists.gambas-basic.org/cgi-bin/search.cgi Alles Gute Christof Thalhofer -- Dies ist keine Signatur ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From taboege at gmail.com Sat Jan 25 12:56:26 2020 From: taboege at gmail.com (Tobias Boege) Date: Sat, 25 Jan 2020 12:56:26 +0100 Subject: [Gambas-user] How to use a virtual class in gambas In-Reply-To: <1060341400.3611.1579925493569.JavaMail.zimbra@westwoodsvcs.com> References: <1330227611.3554.1579921148896.JavaMail.zimbra@westwoodsvcs.com> <1060341400.3611.1579925493569.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <20200125115626.GD995314@highrise.localdomain> On Fri, 24 Jan 2020, Brian G wrote: > Thanks for your reply Christof and no I did not know about our search engine! > > Ok After reading from the thread, and searching for other Ref. I see in my understanding that > unless I am writing C++ there is in fact no real virtual class[interface] to underlying classes/Object. > > I looked into the ARRAY class and see that the .Array.Bounds class is used a > > GB_PROPERTY_SELF for that object . > > I am trying to create a class which inherits array cant seem to get the bounds working... > > Am I missing something.. or is there actually a way to use virtual gambas classes. > > Maybe I don't understand how to link the virtual object to the underlying real object. and return > it from a call to a read property. > It works like this in native components: using the interpreter API you can implement classes accessible to Gambas programs in C or C++. You just have to give the interpreter a certain binary blob describing the class interface, what names methods and properties have, which arguments they receive, which types they return, and then you say how much storage the object takes. When the Gambas program uses properties and methods, the interpreter runs the code you attached to them in that description, so far so good. A virtual property or method allows you to run some code in the property or method implementation, which usually just records some data in the object's storage, and then return the object itself via RETURN_SELF (GB_PROPERTY_SELF is a shorthand for just returning self and not doing anything else) *but* the interpreter treats the return value (still the same object) not as being of its true type but of the return type that is given in the property declaration. Suddenly, the same object has a completely different interface, new methods, new properties. But it's the same region in memory, so the implementations of these new properties and methods can access the original object. This is normally used to provide a specialized view on the object. All this implies, by the way, that you cannot store virtual objects in memory, because they are just temporary views on another object. And that using virtual object is inherently thread-unsafe because, depending on respective implementation, there may only be one virtual object for a given real object at any time in the process. > I am trying to keep everything in Gambas itself. > You can't implement virtual classes in Gambas. You can only do that using the native C/C++ API of the interpreter, which has the magic of switching one interface description blob for another. Everything you write in Gambas is a real class where you can't detach storage from interface. Virtual classes are really just a hack in the interpreter to "parametrically cast" an object to another class for the sake of not polluting the, say, Array class's direct interface with methods and properties related to its bounds, as those can be hidden in a virtual view on the array. Virtual classes allow to do this: (1) cheaply (because all that needs to be done is replace the pointer to the type of an object) and (2) without having to create new objects and hence making interfaces of the original class (semi-)public so that those new objects can access them. The usual way to emulate this in Gambas is to: - make real classes for the virtual views, like _Array_Bounds with a constructor of _new(RealObject As Array), - Array.Bounds returns a new instance of this _Array_Bounds and passes the Me reference to the constructor, - the Array class needs to make certain internals public so that _Array_Bounds can access them, being a different object now. Customarily these are prefixed by an underscore so that the IDE hides them from normal people's views. You'd be surprised how far into the internals of Gambas-written components like gb.gui.base you can go, because they all do the above, with slight variations. See for example the GridView and associated classes [1]. Regards, Tobi [1] https://gitlab.com/gambas/gambas/tree/master/comp/src/gb.gui.base/.src/GridView -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Sat Jan 25 13:23:21 2020 From: kicking177 at gmail.com (KKing) Date: Sat, 25 Jan 2020 12:23:21 +0000 Subject: [Gambas-user] get Return Code from program EXEC Message-ID: <78e7239a-7f9c-8c8f-0923-a6b7052f7b83@gmail.com> Is it possible to get the return code from a program that is run via the EXEC command? I currently have ?? myProcess As Process ?? myProcess = Exec ["/home/test01/myPgm", sParameter01] Wait K. From taboege at gmail.com Sat Jan 25 14:45:40 2020 From: taboege at gmail.com (Tobias Boege) Date: Sat, 25 Jan 2020 14:45:40 +0100 Subject: [Gambas-user] get Return Code from program EXEC In-Reply-To: <78e7239a-7f9c-8c8f-0923-a6b7052f7b83@gmail.com> References: <78e7239a-7f9c-8c8f-0923-a6b7052f7b83@gmail.com> Message-ID: <20200125134540.GE995314@highrise.localdomain> On Sat, 25 Jan 2020, KKing wrote: > Is it possible to get the return code from a program that is run via the > EXEC command? > > I currently have > > ?? myProcess As Process > ?? myProcess = Exec ["/home/test01/myPgm", sParameter01] Wait > Exec returns a Process object. The exit code is myProcess.Value, but do read the documentation of it. If the process is terminated by a signal (which you can check with myProcess.State), then you get the signal number there instead. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at gmail.com Mon Jan 27 07:15:42 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 27 Jan 2020 16:45:42 +1030 Subject: [Gambas-user] Paste into a textarea Message-ID: Hi folks, Is there any way to check or trap that a textarea has just been pasted into? It's OK for them to type into it, so the Change event doesn't solve my problem, which is I need to clean up the text that has just been pasted. Bruce From kicking177 at gmail.com Mon Jan 27 09:18:04 2020 From: kicking177 at gmail.com (KKing) Date: Mon, 27 Jan 2020 08:18:04 +0000 Subject: [Gambas-user] programmatically retrieve a Gambas project version number Message-ID: <9acc78fe-d92a-7209-7d81-45ba9d8c68a4@gmail.com> apologies if this is in wiki/doco somewhere but I didn't find. I want to print the project version number in a log file (along with date and time and error code and message) how do I programmatically retrieve a Gambas project version number? Also will this vary depending upon if the tick box "Get from 'VERSION' file" is ticked in? --> Project properties --> Version? K From adamnt42 at gmail.com Mon Jan 27 09:25:24 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 27 Jan 2020 18:55:24 +1030 Subject: [Gambas-user] programmatically retrieve a Gambas project version number In-Reply-To: <9acc78fe-d92a-7209-7d81-45ba9d8c68a4@gmail.com> References: <9acc78fe-d92a-7209-7d81-45ba9d8c68a4@gmail.com> Message-ID: On 27/1/20 6:48 pm, KKing wrote: > > apologies if this is in wiki/doco somewhere but I didn't find. > > I want to print the project version number in a log file (along with > date and time and error code and message) how do I programmatically > retrieve a Gambas project version number? > > Also will this vary depending upon if the tick box "Get from 'VERSION' > file" is ticked in? --> Project properties --> Version? > > K > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Application.Version is what you are after. As to what happens if Get from.. is checked I have no idea, but I'd doubt it would affect it. b From kicking177 at gmail.com Mon Jan 27 09:27:32 2020 From: kicking177 at gmail.com (KKing) Date: Mon, 27 Jan 2020 08:27:32 +0000 Subject: [Gambas-user] Worlds simplest Gambas Component example that implements integrating / calling a library or object. Message-ID: <6793f896-ad51-a5d0-f367-1fc866c280b6@gmail.com> I'm contemplating trying to create a Gambas component to integrate the libharu pdf generation library as I currently have to exec separate standalone libharu based programs to generate some PDF's. For the future it would be easier nicer to use a component. Is there a walk thru example of G component implementation? One that called a simple Hello World C program with only a few parameters would be ideal. Otherwise of the existing G components which would be the simplest to follow? K. From chrisml at deganius.de Mon Jan 27 09:44:40 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 27 Jan 2020 09:44:40 +0100 Subject: [Gambas-user] Worlds simplest Gambas Component example that implements integrating / calling a library or object. In-Reply-To: <6793f896-ad51-a5d0-f367-1fc866c280b6@gmail.com> References: <6793f896-ad51-a5d0-f367-1fc866c280b6@gmail.com> Message-ID: Am 27.01.20 um 09:27 schrieb KKing: > Is there a walk thru example of G component implementation? Did you see this? http://gambaswiki.org/wiki/dev/gambas Alles Gute Christof Thalhofer -- Dies ist keine Signatur From adamnt42 at gmail.com Mon Jan 27 09:54:30 2020 From: adamnt42 at gmail.com (Bruce) Date: Mon, 27 Jan 2020 19:24:30 +1030 Subject: [Gambas-user] Worlds simplest Gambas Component example that implements integrating / calling a library or object. In-Reply-To: References: <6793f896-ad51-a5d0-f367-1fc866c280b6@gmail.com> Message-ID: <737b016b-acba-74ac-934f-6092d0c079b0@gmail.com> On 27/1/20 7:14 pm, Christof Thalhofer wrote: > Am 27.01.20 um 09:27 schrieb KKing: > >> Is there a walk thru example of G component implementation? > > Did you see this? > > http://gambaswiki.org/wiki/dev/gambas > > Alles Gute > > Christof Thalhofer > And this http://gambaswiki.org/wiki/howto/extern and these http://gambaswiki.org/wiki/doc/extern http://gambaswiki.org/wiki/doc/byref b From genbraga1 at gmail.com Mon Jan 27 14:00:21 2020 From: genbraga1 at gmail.com (gen braga) Date: Mon, 27 Jan 2020 10:00:21 -0300 Subject: [Gambas-user] Redirect default output to terminalview Message-ID: Hi there, Is It possible to redirect the default output (or even debug) to a terminalview? I have tried some approaches but have not been successful. Maybe something like OUTPUT TO termTerminal.Text Or something like that? What I need to achieve is the same behavior as the IDE debug console. I tried the IDE sources but didnt got It. - Gen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Jan 27 18:39:57 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 27 Jan 2020 18:39:57 +0100 Subject: [Gambas-user] Paste into a textarea In-Reply-To: References: Message-ID: Il giorno lun 27 gen 2020 alle ore 07:16 Bruce ha scritto: > Hi folks, > > Is there any way to check or trap that a textarea has just been pasted > into? > It's OK for them to type into it, so the Change event doesn't solve my > problem, which is I need to clean up the text that has just been pasted. > > Bruce > I'm not sure I hit the point, see the following code of a TextArea to which you must have to adapted the paste popup menu: ------------------------------------------------------------------------------ Public Sub TextArea1_KeyPress() Dim s As String Dim ss As String[] Dim iStart, iMinus As Integer Dim bExternal As Boolean = True If Key.Code = Key["V"] And If Key.Control Then 'Stop Try s = Clipboard.Paste("text/plain;charset=utf-8") If Not s Then Try s = Clipboard.Paste() bExternal = False Endif Stop Event iStart = String.Len(TextArea1.Text) ss = Split(s, "\n") If bExternal Then iMinus = ss.Max Else iMinus = 0 Endif TextArea1.Text &= s TextArea1.Select(iStart, String.Len(s) - iMinus) Endif Catch Print Error.Text End ------------------------------------------------------------------------------- Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Jan 27 19:08:07 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 27 Jan 2020 13:08:07 -0500 Subject: [Gambas-user] Paste into a textarea In-Reply-To: References: Message-ID: <017cb377-1d45-4374-c937-0d46ec9108e8@gmail.com> On 1/27/20 1:15 AM, Bruce wrote: > Hi folks, > > Is there any way to check or trap that a textarea has just been pasted into? > It's OK for them to type into it, so the Change event doesn't solve my problem, which is I need to clean up the text that has > just been pasted. > > Bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- There are two ways that text can be pasted. By keyboard (Ctrl-V) and by mouse (right-click, paste). Trapping the Ctrl-V key event is rather trivial. The only way I can think of off hand to trap a right-click & paste is to track and test for a certain sequence of events. A mouse paste would consist of a MouseDown event followed by a Change event (there is no MouseUp event on a right-click). Both methods of pasting can be caught like so: ' Gambas class file Public bMouseRight As Boolean Public Sub TextArea1_Change() If bMouseRight Then Print "Mouse paste" Endif bMouseRight = False End Public Sub TextArea1_MouseDown() If Mouse.Right Then bMouseRight = True Else 'Perhaps user clicked to get rid of the right-click menu bMouseRight = False Endif End Public Sub TextArea1_KeyPress() If Key.Control And If Key.Code = Key["v"] Then Print "Key Paste" End ~~~ Now as far as cleaning up _only_ the text that has been pasted, perhaps you could also keep track of the Pos property in a separate variable so that you know the position of the text cursor prior to the paste. -- Lee From brian at westwoodsvcs.com Mon Jan 27 19:01:17 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 27 Jan 2020 10:01:17 -0800 (PST) Subject: [Gambas-user] How to use a virtual class in gambas In-Reply-To: <20200125115626.GD995314@highrise.localdomain> References: <1330227611.3554.1579921148896.JavaMail.zimbra@westwoodsvcs.com> <1060341400.3611.1579925493569.JavaMail.zimbra@westwoodsvcs.com> <20200125115626.GD995314@highrise.localdomain> Message-ID: <1426533183.3838.1580148077679.JavaMail.zimbra@westwoodsvcs.com> Thank you so much for your very clear description! I begin to see how this is done. I am grateful that you have taken the time to be so detailed! Thanks again Tobi! Brian G ----- Original Message ----- From: "Tobias Boege" To: "Gambas mailing list" Sent: Saturday, January 25, 2020 3:56:26 AM Subject: Re: [Gambas-user] How to use a virtual class in gambas On Fri, 24 Jan 2020, Brian G wrote: > Thanks for your reply Christof and no I did not know about our search engine! > > Ok After reading from the thread, and searching for other Ref. I see in my understanding that > unless I am writing C++ there is in fact no real virtual class[interface] to underlying classes/Object. > > I looked into the ARRAY class and see that the .Array.Bounds class is used a > > GB_PROPERTY_SELF for that object . > > I am trying to create a class which inherits array cant seem to get the bounds working... > > Am I missing something.. or is there actually a way to use virtual gambas classes. > > Maybe I don't understand how to link the virtual object to the underlying real object. and return > it from a call to a read property. > It works like this in native components: using the interpreter API you can implement classes accessible to Gambas programs in C or C++. You just have to give the interpreter a certain binary blob describing the class interface, what names methods and properties have, which arguments they receive, which types they return, and then you say how much storage the object takes. When the Gambas program uses properties and methods, the interpreter runs the code you attached to them in that description, so far so good. A virtual property or method allows you to run some code in the property or method implementation, which usually just records some data in the object's storage, and then return the object itself via RETURN_SELF (GB_PROPERTY_SELF is a shorthand for just returning self and not doing anything else) *but* the interpreter treats the return value (still the same object) not as being of its true type but of the return type that is given in the property declaration. Suddenly, the same object has a completely different interface, new methods, new properties. But it's the same region in memory, so the implementations of these new properties and methods can access the original object. This is normally used to provide a specialized view on the object. All this implies, by the way, that you cannot store virtual objects in memory, because they are just temporary views on another object. And that using virtual object is inherently thread-unsafe because, depending on respective implementation, there may only be one virtual object for a given real object at any time in the process. > I am trying to keep everything in Gambas itself. > You can't implement virtual classes in Gambas. You can only do that using the native C/C++ API of the interpreter, which has the magic of switching one interface description blob for another. Everything you write in Gambas is a real class where you can't detach storage from interface. Virtual classes are really just a hack in the interpreter to "parametrically cast" an object to another class for the sake of not polluting the, say, Array class's direct interface with methods and properties related to its bounds, as those can be hidden in a virtual view on the array. Virtual classes allow to do this: (1) cheaply (because all that needs to be done is replace the pointer to the type of an object) and (2) without having to create new objects and hence making interfaces of the original class (semi-)public so that those new objects can access them. The usual way to emulate this in Gambas is to: - make real classes for the virtual views, like _Array_Bounds with a constructor of _new(RealObject As Array), - Array.Bounds returns a new instance of this _Array_Bounds and passes the Me reference to the constructor, - the Array class needs to make certain internals public so that _Array_Bounds can access them, being a different object now. Customarily these are prefixed by an underscore so that the IDE hides them from normal people's views. You'd be surprised how far into the internals of Gambas-written components like gb.gui.base you can go, because they all do the above, with slight variations. See for example the GridView and associated classes [1]. Regards, Tobi [1] https://gitlab.com/gambas/gambas/tree/master/comp/src/gb.gui.base/.src/GridView -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From t.lee.davidson at gmail.com Mon Jan 27 19:56:26 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 27 Jan 2020 13:56:26 -0500 Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: References: Message-ID: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> On 1/27/20 8:00 AM, gen braga wrote: > Hi there, > > Is It possible to redirect the default output (or even debug) to a terminalview? The output of what? As far as I understand it, the output of any command executed in the TerminalView (.Shell or .Exec) will automatically be displayed in that view. > Maybe something like > > OUTPUT TO termTerminal.Text TerminalView.Text is read-only. Perhaps you could use the TerminalView.Print method? -- Lee P.S. Beno?t, http://gambaswiki.org/wiki/comp/gb.form.terminal/terminalview/connectto "Control.connectto (gb.qt4)? This symbol does not exist." From genbraga1 at gmail.com Mon Jan 27 20:20:37 2020 From: genbraga1 at gmail.com (gen braga) Date: Mon, 27 Jan 2020 16:20:37 -0300 Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> References: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> Message-ID: > > Is It possible to redirect the default output (or even debug) to a > terminalview? > > The output of what? As far as I understand it, the output of any command > executed in the TerminalView (.Shell or .Exec) will > automatically be displayed in that view. > As I said, the default (or debug) output. The one you get with Print "something" Or Debug "something" Instead of simply the output from .Shell or .Exec methods. The Print method can get the job done, but my goal was to redirect any "print". Like using the "OUTPUT TO" instruction. Anyway, thanks for your reply, I really missed the print method. - Gen > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Jan 27 21:11:59 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 27 Jan 2020 12:11:59 -0800 (PST) Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: References: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> Message-ID: <1888623978.3919.1580155919305.JavaMail.zimbra@westwoodsvcs.com> Hi I am attaching a project source which will redirect all standard output to the terminal view using pipes Let me know if you need any other information Thank You Brian G From: "gen braga" To: "Gambas mailing list" Sent: Monday, January 27, 2020 11:20:37 AM Subject: Re: [Gambas-user] Redirect default output to terminalview > Is It possible to redirect the default output (or even debug) to a terminalview? The output of what? As far as I understand it, the output of any command executed in the TerminalView (.Shell or .Exec) will automatically be displayed in that view. As I said, the default (or debug) output. The one you get with Print "something" Or Debug "something" Instead of simply the output from .Shell or .Exec methods. The Print method can get the job done, but my goal was to redirect any "print". Like using the "OUTPUT TO" instruction. Anyway, thanks for your reply, I really missed the print method. - Gen BQ_BEGIN BQ_END ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testterm-0.0.tar.gz Type: application/x-compressed-tar Size: 12175 bytes Desc: not available URL: From brian at westwoodsvcs.com Mon Jan 27 21:50:58 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 27 Jan 2020 12:50:58 -0800 (PST) Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: References: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> Message-ID: <1594792500.3959.1580158258198.JavaMail.zimbra@westwoodsvcs.com> You can also use the connectTo method as follows which will give you input as well from the terminal It seems to still work in this version Public $Pipeout As File Public $MyPipeIn As File Public $MyPipeOut As File Private $PipeIn As File Public Sub Form_Open() outputterm.Show() outputterm.tv1.Show() Wait End Public Sub Button1_Click() Dim reader As String Print "Hello world" $PipeOut = Pipe "/tmp/xx" For Write $MyPipeOut = Pipe "/tmp/yy" For Write $PipeIn = Pipe "/tmp/xx" For Read $MyPipeIn = Pipe "/tmp/yy" For Read Watch outputterm.tv1.ConnectTo($MyPipeOut, $PipeIn, Null) Output To $PipeOut Print "hello" outputterm.tv1.Print("this") Wait Print "this is a good time for happy thoughts" Wait Print "This is the time to run" Wait End Public Sub Button2_Click() Print TextEditor1.text End Public Sub file_read() Debug "Read Called" Dim Buffer As String Read #$MyPipeIn, Buffer, -256 Print Buffer Debug buffer End Thank You Brian G From: "gen braga" To: "Gambas mailing list" Sent: Monday, January 27, 2020 11:20:37 AM Subject: Re: [Gambas-user] Redirect default output to terminalview > Is It possible to redirect the default output (or even debug) to a terminalview? The output of what? As far as I understand it, the output of any command executed in the TerminalView (.Shell or .Exec) will automatically be displayed in that view. As I said, the default (or debug) output. The one you get with Print "something" Or Debug "something" Instead of simply the output from .Shell or .Exec methods. The Print method can get the job done, but my goal was to redirect any "print". Like using the "OUTPUT TO" instruction. Anyway, thanks for your reply, I really missed the print method. - Gen BQ_BEGIN BQ_END ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Jan 27 22:20:58 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 27 Jan 2020 13:20:58 -0800 (PST) Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: <1594792500.3959.1580158258198.JavaMail.zimbra@westwoodsvcs.com> References: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> <1594792500.3959.1580158258198.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <737524877.3985.1580160058073.JavaMail.zimbra@westwoodsvcs.com> Hi I am attaching a version that will also insert the \n\r that is required by the terminal not just \n as print will create Sorry to post so many. this is the final one. Cheers Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Subject: Re: [Gambas-user] Redirect default output to terminalview -------------- next part -------------- A non-text attachment was scrubbed... Name: testterm-0.0.1.tar.gz Type: application/x-compressed-tar Size: 12253 bytes Desc: not available URL: From genbraga1 at gmail.com Mon Jan 27 22:37:35 2020 From: genbraga1 at gmail.com (gen braga) Date: Mon, 27 Jan 2020 18:37:35 -0300 Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: <1594792500.3959.1580158258198.JavaMail.zimbra@westwoodsvcs.com> References: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> <1594792500.3959.1580158258198.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Hi Brian I was heading towards the same solution but thought it was too much work for what I'm needing. By the way, it's a nice piece of code. I kept so focused that I completely missed the Print method as Lee pointed. Not happy with it also. Maybe Benoit could point a better solution, or, who knows, it could be a new feature in the gb.form.terminal component... Just thinking. Thanks for your help. - Gen 2020-01-27 17:50 GMT-03:00, Brian G : > You can also use the connectTo method as follows which will give you input > as well from the terminal > It seems to still work in this version > > Public $Pipeout As File > Public $MyPipeIn As File > Public $MyPipeOut As File > Private $PipeIn As File > > > Public Sub Form_Open() > > outputterm.Show() > outputterm.tv1.Show() > Wait > > End > > > Public Sub Button1_Click() > > Dim reader As String > Print "Hello world" > > $PipeOut = Pipe "/tmp/xx" For Write > $MyPipeOut = Pipe "/tmp/yy" For Write > > $PipeIn = Pipe "/tmp/xx" For Read > $MyPipeIn = Pipe "/tmp/yy" For Read Watch > > outputterm.tv1.ConnectTo($MyPipeOut, $PipeIn, Null) > > Output To $PipeOut > > Print "hello" > outputterm.tv1.Print("this") > Wait > > Print "this is a good time for happy thoughts" > Wait > > Print "This is the time to run" > Wait > > End > > Public Sub Button2_Click() > > Print TextEditor1.text > > End > > Public Sub file_read() > > Debug "Read Called" > > Dim Buffer As String > Read #$MyPipeIn, Buffer, -256 > Print Buffer > Debug buffer > > End > > Thank You > Brian G > > > From: "gen braga" > To: "Gambas mailing list" > Sent: Monday, January 27, 2020 11:20:37 AM > Subject: Re: [Gambas-user] Redirect default output to terminalview > > > > >> Is It possible to redirect the default output (or even debug) to a >> terminalview? > > The output of what? As far as I understand it, the output of any command > executed in the TerminalView (.Shell or .Exec) will > automatically be displayed in that view. > > > > > As I said, the default (or debug) output. The one you get with > > Print "something" > > Or > > Debug "something" > > Instead of simply the output from .Shell or .Exec methods. > > The Print method can get the job done, but my goal was to redirect any > "print". Like using the "OUTPUT TO" instruction. > > Anyway, thanks for your reply, I really missed the print method. > > - > Gen > > BQ_BEGIN > > BQ_END > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From brian at westwoodsvcs.com Tue Jan 28 00:20:26 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 27 Jan 2020 23:20:26 +0000 (UTC) Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: References: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> <1594792500.3959.1580158258198.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <605B1DED34848F44.002e5123-7c55-4f1a-a954-9c930d827195@mail.outlook.com> I added those features quite a while ago in the form of the connect to, which is the last sution I sent thank you brian On Mon, Jan 27, 2020 at 1:38 PM -0800, "gen braga" wrote: Hi Brian I was heading towards the same solution but thought it was too much work for what I'm needing. By the way, it's a nice piece of code. I kept so focused that I completely missed the Print method as Lee pointed. Not happy with it also. Maybe Benoit could point a better solution, or, who knows, it could be a new feature in the gb.form.terminal component... Just thinking. Thanks for your help. - Gen 2020-01-27 17:50 GMT-03:00, Brian G : > You can also use the connectTo method as follows which will give you input > as well from the terminal > It seems to still work in this version > > Public $Pipeout As File > Public $MyPipeIn As File > Public $MyPipeOut As File > Private $PipeIn As File > > > Public Sub Form_Open() > > outputterm.Show() > outputterm.tv1.Show() > Wait > > End > > > Public Sub Button1_Click() > > Dim reader As String > Print "Hello world" > > $PipeOut = Pipe "/tmp/xx" For Write > $MyPipeOut = Pipe "/tmp/yy" For Write > > $PipeIn = Pipe "/tmp/xx" For Read > $MyPipeIn = Pipe "/tmp/yy" For Read Watch > > outputterm.tv1.ConnectTo($MyPipeOut, $PipeIn, Null) > > Output To $PipeOut > > Print "hello" > outputterm.tv1.Print("this") > Wait > > Print "this is a good time for happy thoughts" > Wait > > Print "This is the time to run" > Wait > > End > > Public Sub Button2_Click() > > Print TextEditor1.text > > End > > Public Sub file_read() > > Debug "Read Called" > > Dim Buffer As String > Read #$MyPipeIn, Buffer, -256 > Print Buffer > Debug buffer > > End > > Thank You > Brian G > > > From: "gen braga" > To: "Gambas mailing list" > Sent: Monday, January 27, 2020 11:20:37 AM > Subject: Re: [Gambas-user] Redirect default output to terminalview > > > > >> Is It possible to redirect the default output (or even debug) to a >> terminalview? > > The output of what? As far as I understand it, the output of any command > executed in the TerminalView (.Shell or .Exec) will > automatically be displayed in that view. > > > > > As I said, the default (or debug) output. The one you get with > > Print "something" > > Or > > Debug "something" > > Instead of simply the output from .Shell or .Exec methods. > > The Print method can get the job done, but my goal was to redirect any > "print". Like using the "OUTPUT TO" instruction. > > Anyway, thanks for your reply, I really missed the print method. > > - > Gen > > BQ_BEGIN > > BQ_END > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Jan 28 01:52:49 2020 From: brian at westwoodsvcs.com (Brian G) Date: Mon, 27 Jan 2020 16:52:49 -0800 (PST) Subject: [Gambas-user] Redirect default output to terminalview In-Reply-To: <605B1DED34848F44.002e5123-7c55-4f1a-a954-9c930d827195@mail.outlook.com> References: <4c5cd069-5beb-eec0-15ba-c3f6d88fa0bb@gmail.com> <1594792500.3959.1580158258198.JavaMail.zimbra@westwoodsvcs.com> <605B1DED34848F44.002e5123-7c55-4f1a-a954-9c930d827195@mail.outlook.com> Message-ID: <16464256.4025.1580172769015.JavaMail.zimbra@westwoodsvcs.com> Ok final example of using the terminal for display. This app demonstrates how to display both stdout and stderr ie debug messages to a terminalview Hope this is useful cheers Brian G ----- Original Message ----- From: "Brian" To: "Gambas mailing list" Subject: Re: [Gambas-user] Redirect default output to terminalview -------------- next part -------------- A non-text attachment was scrubbed... Name: testterm-1.0.1.tar.gz Type: application/x-compressed-tar Size: 13036 bytes Desc: not available URL: From adamnt42 at gmail.com Tue Jan 28 07:50:22 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 28 Jan 2020 17:20:22 +1030 Subject: [Gambas-user] Paste into a textarea In-Reply-To: <017cb377-1d45-4374-c937-0d46ec9108e8@gmail.com> References: <017cb377-1d45-4374-c937-0d46ec9108e8@gmail.com> Message-ID: On 28/1/20 4:38 am, T Lee Davidson wrote: > On 1/27/20 1:15 AM, Bruce wrote: >> Hi folks, >> >> Is there any way to check or trap that a textarea has just been pasted >> into? >> It's OK for them to type into it, so the Change event doesn't solve my >> problem, which is I need to clean up the text that has just been pasted. >> >> Bruce >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > There are two ways that text can be pasted. By keyboard (Ctrl-V) and by > mouse (right-click, paste). Trapping the Ctrl-V key event is rather > trivial. The only way I can think of off hand to trap a right-click & > paste is to track and test for a certain sequence of events. A mouse > paste would consist of a MouseDown event followed by a Change event > (there is no MouseUp event on a right-click). > > Both methods of pasting can be caught like so: > ' Gambas class file > > Public bMouseRight As Boolean > > Public Sub TextArea1_Change() > > ? If bMouseRight Then > ??? Print "Mouse paste" > ? Endif > ? bMouseRight = False > > End > > Public Sub TextArea1_MouseDown() > > ? If Mouse.Right Then > ??? bMouseRight = True > ? Else 'Perhaps user clicked to get rid of the right-click menu > ??? bMouseRight = False > ? Endif > > End > > Public Sub TextArea1_KeyPress() > > ? If Key.Control And If Key.Code = Key["v"] Then Print "Key Paste" > > End > ~~~ > > Now as far as cleaning up _only_ the text that has been pasted, perhaps > you could also keep track of the Pos property in a separate variable so > that you know the position of the text cursor prior to the paste. > > Thank you! That works good. b From bagonergi at gmail.com Tue Jan 28 09:20:23 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 28 Jan 2020 09:20:23 +0100 Subject: [Gambas-user] Paste into a textarea In-Reply-To: <017cb377-1d45-4374-c937-0d46ec9108e8@gmail.com> References: <017cb377-1d45-4374-c937-0d46ec9108e8@gmail.com> Message-ID: Il giorno lun 27 gen 2020 alle ore 19:09 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > There are two ways that text can be pasted. By keyboard (Ctrl-V) and by > mouse (right-click, paste). Trapping the Ctrl-V key > event is rather trivial. The only way I can think of off hand to trap a > right-click & paste is to track and test for a certain > sequence of events. A mouse paste would consist of a MouseDown event > followed by a Change event (there is no MouseUp event on a > right-click). > ... > Lee > I don't know why I tried to manage the paste event and my code is really bad. But here your right click management always works even when you don't paste (Undo, Select all). I think it would be better to overwrite the popup menu. Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Tue Jan 28 23:34:58 2020 From: brian at westwoodsvcs.com (Brian G) Date: Tue, 28 Jan 2020 14:34:58 -0800 (PST) Subject: [Gambas-user] Stdout, stderr redirection to TerminalView Message-ID: <1212363857.4381.1580250898472.JavaMail.zimbra@westwoodsvcs.com> I published to the farm a completed project call testterm, which contains a class which encapsulates the redirection and capture to the terminal. One could include this class and call the Redirect() method which will capture the stdout/stderr into the terminalview. It also has an event which can be observed for input entered in the terminalview. Event Name 'TermData' The Class is called outputterm It uses the TerminalView Method ConnectTo which was created to allow this kind of redirection. Cheers everyone Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Jan 29 06:42:07 2020 From: adamnt42 at gmail.com (Bruce) Date: Wed, 29 Jan 2020 16:12:07 +1030 Subject: [Gambas-user] Embedder??? Message-ID: <353a0f80-8188-420f-aec7-da8396a647d2@gmail.com> I can't find the embedder control in the IDE toolbox anymore? Has it been made "gorn"? project gui component is gb.gui.qt (I just want to stick a calculator in a form so the user can add up some stuff and calculate the postage.) b From brian at westwoodsvcs.com Thu Jan 30 01:06:52 2020 From: brian at westwoodsvcs.com (Brian G) Date: Wed, 29 Jan 2020 16:06:52 -0800 (PST) Subject: [Gambas-user] ScriptBuilder Updated V1.1 Message-ID: <60121528.4553.1580342812961.JavaMail.zimbra@westwoodsvcs.com> ScriptBuilder from the Software Farm now allows direct access to Gambas.one Playground examples. Plus a few other fixes. It is possible now to run, edit and save changed examples locally. They Look like open source and I have given credit the creator. Thank You Brian G -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Thu Jan 30 19:18:11 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 30 Jan 2020 13:18:11 -0500 Subject: [Gambas-user] Dragging to Webview?; HttpClient.Delete()?; & Embedder missing Message-ID: I know I probably shouldn't stack issues in the same thread. But, I'm doing it anyway because I think most will be dispatched relatively quickly. 1. I am unable to drag files to an active Webview. For instance, when viewing a page with a form that has a element, I should be able to drag and drop a file from the system file manager onto the file input element. I cannot. The mouse drag cursor remains red, never turns green, to indicate that the file cannot be dropped on the Webview control. I have Webview.Drop=True if that makes any difference. Is there something I need to do to get Webview to accept drops from the system? Or is this just the nature of the beast? 2. Is there a way to use HttpClient to send a DELETE command? I see Get, Head, Post, & Put, but no Delete method. Am I going to have to Shell to `curl` for this? 3. A few days ago, Bruce mentioned that the Embedder control seems to be missing. I cannot find it either. Qt4 is not available on my system, but I have switched from Qt5 to GTK3 to see if it shows up. I don't see it. Is it supposed to be on the Special tab? Where did it go? -- Lee