From t.lee.davidson at gmail.com Tue Sep 1 00:49:50 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 31 Aug 2020 18:49:50 -0400 Subject: [Gambas-user] Mailinglist was down for a few hours In-Reply-To: <8896a99a-6739-3dbb-af68-f9cf81e00bce@gmail.com> References: <74045ed8-ea72-2947-2c36-4d344a69992c@deganius.de> <8896a99a-6739-3dbb-af68-f9cf81e00bce@gmail.com> Message-ID: <8e99970b-1704-788c-a6e9-46020f66e27c@gmail.com> On 8/31/20 1:46 PM, T Lee Davidson wrote: >>> I?don't?care?for?the?interface?provided?by?mlmmj-webarchiver.?It >>> appears?to?be?browseable?only?by?date. >> It?can?also?display?a?threaded?view?like?so: >> http://www.libssh.org/archive/libssh/2020-07/ >> >> That's?not?much?more?than?what?we?have?now.?In?principle?we?don't?need >> more,?because?it?is?only?there?to?run?a?search?engine?on?it. > > To me, that looks like less than what we have now. Mailman provides for viewing by thread, subject, author, and date. And, I > like?being?able?to?browse?the?messages. Well it appears that Hypermail is essentially dead. Even mlmmj-webarchiver, though claiming to be neither finished nor complete, hasn't been updated in 3 years. That probably doesn't matter much for what we might need. mlmmj-webarchiver relies heavily on MHonArc [https://www.mhonarc.org/] and, IMO, unnecessarily complicates things trying to support Hypermail configurations (or for whatever reason). Even without custom configuration, a bare-bones MHonArc install will create a usable, browseable web archive with one simple command: mhonarc -outdir /srv/www/archive_dir /var/spool/mlmmj/list_name/archive The existing browseable archive can be updated just as easily: mhonarc -outdir /srv/www/archive_dir -add /var/spool/mlmmj/list_name/archive "NOTE: MHonArc skips any messages that already exist in the archive. Therefore, MHonArc can be used to rescan a mail folder to auto-find any new messages to add." If that works for everyone, I guess I'll just have to be happy with that. :-) -- Lee From rterry at internode.on.net Tue Sep 1 03:31:27 2020 From: rterry at internode.on.net (richard terry) Date: Tue, 1 Sep 2020 11:31:27 +1000 Subject: [Gambas-user] Holidays again In-Reply-To: References: <74e11bb2-bcf7-a921-6758-3badedf80f58@deganius.de> Message-ID: I think what a lot of people don't realise is that sudden deaths occur in covid due to embolic phenomena i.e stroke heart attack and pulmonary emboli. In New York early of this was noticed by interventional neurologists ,- nowadays they put up baskets and retract the acute clots. They had young people presenting with acute strokes and as fast as they sucked out the clot new ones formed before their eyes. If you are interested in the possible aetiology look up the Medcram YouTube videos - from memory they were Medcram 63 64 65. Bit as the covid series are up to 202ish now with my aging 68yr, memory I may be a digit out - watched them months ago. So... Quite possible your motor bike accident due to covid!!!! On Mon, 31 Aug 2020, 08:44 Beno?t Minisini, wrote: > Le 30/08/2020 ? 22:56, Jussi Lahtinen a ?crit : > > 800 000? How could we know? The COVID19 deaths and the influenza > deaths > > are not counted the same way. > > > > > > What do you mean? Majority of who die to influenza, die due indirect > > causes; co-infections and organ failures. > > I don't think there is any difference in how the deaths are counted. > > It should be, but apparently it isn't: there is almost no death of > influenza this year in France. Either COVID 19 kills only people that > would have died from flu, either people died for actually many reasons, > and they chose COVID19 most of the time. > > In US, NCHS told that for 100 people officially died from COVID19, six > died from COVID19 only. The other 94 had between 2 and 3 additional > death conditions. So why focusing on COVID only? Are deaths counted > several times in cases of comorbidities? Seems like a bug for me. > > > > > Moreover, a lot of deaths were first attributed to COVID19, and then > > attributed to something else a few > > months later. > > > > > > I think it is the other way around. Only when we have enough > > epidemiological data, we can say how many extra deaths were due to the > > corona. IE how many healthy people die unexpectedly post the recovery to > > the infection. > > Now we only know that corona causes complications like strokes etc, but > > we don't know the prevalence, because a lot of the cases are too much > > separated by time. > > Indeed. But I saw many newspaper articles in different countries telling > that death attributed to COVID were reattributed to something else (-121 > in Belgium, -5,300 in UK, -2,000 in Spain...). It's not telling us that > counting methods are very accurate. > > Anyway, living in the country having one of the worst result on the > planet if no the worst may make me not very objective. :-( > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Sep 1 09:11:41 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 1 Sep 2020 09:11:41 +0200 Subject: [Gambas-user] Mailinglist was down for a few hours In-Reply-To: <8e99970b-1704-788c-a6e9-46020f66e27c@gmail.com> References: <74045ed8-ea72-2947-2c36-4d344a69992c@deganius.de> <8896a99a-6739-3dbb-af68-f9cf81e00bce@gmail.com> <8e99970b-1704-788c-a6e9-46020f66e27c@gmail.com> Message-ID: <5be3f2d8-0d63-01da-e1a2-53144fe5310d@deganius.de> Hi, Am 01.09.20 um 00:49 schrieb T Lee Davidson: > The existing browseable archive can be updated just as easily: > mhonarc -outdir /srv/www/archive_dir -add /var/spool/mlmmj/list_name/archive Cool, this can easily be called by cron. > "NOTE: MHonArc skips any messages that already exist in the archive. Therefore, MHonArc can be used to rescan a mail folder to > auto-find any new messages to add." We must assure that all messages are backupped in parallel. Mailman does this with huge mbox files and so the whole installation can be easily transferred and the archive recreated whenever needed. > If that works for everyone, I guess I'll just have to be happy with that. :-) If you are happy we all are happy ;-) If you want, we can create a new user with webspace and an new subdomain on the host of lists.gambas.basic.org where we can play around. Just send me your public SSH key and I'll start 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 john.aaron.rose at mailbox.org Tue Sep 1 11:18:35 2020 From: john.aaron.rose at mailbox.org (John Rose) Date: Tue, 1 Sep 2020 10:18:35 +0100 Subject: [Gambas-user] User Digest, Vol 36, Issue 1 In-Reply-To: References: Message-ID: <3b7a2f23-34b3-8e4b-1c12-5bbcb38c3cd7@mailbox.org> On 01/09/2020 02:30, user-request at lists.gambas-basic.org wrote: > On 8/31/20 4:08 AM, John Rose wrote: >> Thanks Lee for the above. I've implemented the modifications from >> your diff file. Only problem is "Global variable hidden by local >> declaration : aEpisodeData" in ExtractEpisodes procedure. I guess >> that won't make any difference at runtime but it would be nice not to >> have it. I thought of using the idea (as per hData & hdataLocal in >> your diff file) of changing the Dim name from aEpisodeData to >> aEpisodeDataLocal in the procedure (together with its uses in the >> procedure) but that then causes changes to the definition & use in >> the SortEpisodeData procedure. Any better ideas to prevent the >> compilation message? > > Ah, yes, another of the issues with globals. It is difficult to change > individual procedures when they are dependent upon a global structure. > Keeping data structures, where possible, localized/compartmentalized > aids modularity and, therefore, debugging and future > maintenance/enhancement. > > The notice is not critical. It merely means that the global variable > is not accessible from within the subroutine since it is 'shadowed' by > the local variable. > > But if it bothers you (and it probably would me), the simplest way to > get rid of it would be to revert ExtractEpisodes, from effectively a > function, back to a procedure (in effective form) that receives no > argument nor returns any value, but instead works upon the global > variable. The less simple way is to convert SortEpisodeData into a > function that receives and returns a String[][] and, of course, > changing the local variable names eg. to aEpisodeDataLocal. I've actually changed all my global variables to start with a $ sign e.g. $asEpisode for an array of strings. Obviously this means that there is no confusion between global & local variables, as well as not having to append 'local' to a local name which has the same name as a global variable. It still allows me to use procedures as 'effectively' functions (using the Return command). -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.aaron.rose at mailbox.org Tue Sep 1 11:27:45 2020 From: john.aaron.rose at mailbox.org (John Rose) Date: Tue, 1 Sep 2020 10:27:45 +0100 Subject: [Gambas-user] Cannot initialize debug mode Message-ID: <909d17e5-dda6-7387-0095-e91296580d06@mailbox.org> When I try to Debug any Gambas app (after 'Compile->All' & 'Save Project', I now get (in Console): gb.debug: No such file or directory: /tmp/gambas.1000/6652.out ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Cannot initialize debug mode ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user ** I thought that was due to having my temporary files deleted by Ubuntu: option I have is to purge them every 7 days. But, interestingly there are still /tmp files but not /tmp/gambas.1000/6652.out: john at JohnPC:~$ ls /tmp/gambas.1000/* /tmp/gambas.1000/3891: /tmp/gambas.1000/6652: help How do I get round this? From t.lee.davidson at gmail.com Tue Sep 1 18:12:25 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 1 Sep 2020 12:12:25 -0400 Subject: [Gambas-user] User Digest, Vol 36, Issue 1 In-Reply-To: <3b7a2f23-34b3-8e4b-1c12-5bbcb38c3cd7@mailbox.org> References: <3b7a2f23-34b3-8e4b-1c12-5bbcb38c3cd7@mailbox.org> Message-ID: On 9/1/20 5:18 AM, John Rose wrote: > I've actually changed all my global variables to start with a $ sign e.g. $asEpisode for an array of strings. Obviously this > means that there is no confusion between global & local variables, as well as not having to append 'local' to a local name which > has the same name as a global variable. It still allows me to use procedures as 'effectively' functions (using the Return command). That sounds like a better solution than what I suggested. Good thinking. -- Lee From t.lee.davidson at gmail.com Tue Sep 1 18:39:54 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 1 Sep 2020 12:39:54 -0400 Subject: [Gambas-user] Cannot initialize debug mode In-Reply-To: <909d17e5-dda6-7387-0095-e91296580d06@mailbox.org> References: <909d17e5-dda6-7387-0095-e91296580d06@mailbox.org> Message-ID: <90b552a7-c502-d151-2e67-2aaaecf089e8@gmail.com> On 9/1/20 5:27 AM, John Rose wrote: > When I try to Debug any Gambas app (after 'Compile->All' & 'Save Project', I now get (in Console): > gb.debug: No such file or directory: /tmp/gambas.1000/6652.out > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Cannot initialize debug mode > ** > ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** > > I thought that was due to having my temporary files deleted by Ubuntu: option I have is to purge them every 7 days. But, > interestingly there are still /tmp files but not > /tmp/gambas.1000/6652.out: > > john at JohnPC:~$ ls /tmp/gambas.1000/* > /tmp/gambas.1000/3891: > > /tmp/gambas.1000/6652: > help > > How do I get round this? I don't have an answer for you, John. On my system, I get a different error. I set up a graphical app with four buttons; one each for Debug.Begin, Debug.Start, Debug.Stop, and Debug.End. Debug.Begin returns the appropriate PID and creates the two named pipes. But when I execute Debug.Start, I get: "Unable to open fifo". Perhaps I don't fully understand how gb.debug should work. -- Lee From john.aaron.rose at mailbox.org Wed Sep 2 19:39:56 2020 From: john.aaron.rose at mailbox.org (John Rose) Date: Wed, 2 Sep 2020 18:39:56 +0100 Subject: [Gambas-user] User Digest, Vol 35, Issue 58 In-Reply-To: References: Message-ID: On 27/08/2020 11:12, user-request at lists.gambas-basic.org wrote: > Il giorno mer 26 ago 2020 alle ore 14:36 Gianluigi > > ha scritto: > > > I am attaching something similar to what Fabien has suggested, > perhaps ... > > > Hi JoHn, > > it is not easy for me to explain classes and objects (assuming I > understand them) in a language other than mine. > In the last example I left Private $hGlobalObject As New Object[] and > Dim hObj As Object because when I wrote it, it had helped me in > understanding, in fact a class transforms into an object at the moment > of its instantiation (object = new class). > Rereading the code it seems to me that this can be confusing, Dim hObj > As Object in Sub Main, should be written as Dim hSeries As CSeries and > Private $hGlobalObject As New Object[] should be written Private > $aSeries As New CSeries[] > > Hope it helps > Gianluigi Gianluigi, Thanks for your app showing the use of class. I've amended your app for sorting corresponding arrays. I've amended it so that it sorts on a composite key (Series Name padded out to 15 characters with spaces & "|" & Episode Name padded out to 15 characters with spaces) which I require in my iRecorder app. This amended app (SortCorrespondingArrays) is attached. It compiles OK. But it gives a runtime error (Bad Argument in Main:42) on line: Print hEpisode.CompositeKey & Space(19 - Len(CStr(hEpisode.CompositeKey))); It must be obvious but I don't see the cause. Any ideas? Also, I would like to only have the option of sorting on CompositeKey. What do I need to remove/change to do that? -- John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SortCorrespondingArrays.tar.gz Type: application/gzip Size: 12950 bytes Desc: not available URL: From john.aaron.rose at mailbox.org Wed Sep 2 19:43:46 2020 From: john.aaron.rose at mailbox.org (John Rose) Date: Wed, 2 Sep 2020 18:43:46 +0100 Subject: [Gambas-user] Sorting 2D arrays Message-ID: On 27/08/2020 11:12, user-request at lists.gambas-basic.org wrote: > Il giorno mer 26 ago 2020 alle ore 14:36 Gianluigi > > ha scritto: > > > I am attaching something similar to what Fabien has suggested, > perhaps ... > > > Hi JoHn, > > it is not easy for me to explain classes and objects (assuming I > understand them) in a language other than mine. > In the last example I left Private $hGlobalObject As New Object[] and > Dim hObj As Object because when I wrote it, it had helped me in > understanding, in fact a class transforms into an object at the moment > of its instantiation (object = new class). > Rereading the code it seems to me that this can be confusing, Dim hObj > As Object in Sub Main, should be written as Dim hSeries As CSeries and > Private $hGlobalObject As New Object[] should be written Private > $aSeries As New CSeries[] > > Hope it helps > Gianluigi Gianluigi, Thanks for your app showing the use of class. I've amended your app for sorting corresponding arrays. I've amended it so that it sorts on a composite key (Series Name padded out to 15 characters with spaces & "|" & Episode Name padded out to 15 characters with spaces) which I require in my iRecorder app. This amended app (SortCorrespondingArrays) is attached. It compiles OK. But it gives a runtime error (Bad Argument in Main:42) on line: Print hEpisode.CompositeKey & Space(19 - Len(CStr(hEpisode.CompositeKey))); It must be obvious but I don't see the cause. Any ideas? Also, I would like to only have the option of sorting on CompositeKey. What do I need to remove/change to do that? -- John -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SortCorrespondingArrays.tar.gz Type: application/gzip Size: 12950 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Sep 2 20:09:44 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 2 Sep 2020 20:09:44 +0200 Subject: [Gambas-user] IDE 3.15 Editor : turning off some of the new features? In-Reply-To: <5b4d37c0-003b-5408-885d-f56ec475ff0b@gmail.com> References: <5b4d37c0-003b-5408-885d-f56ec475ff0b@gmail.com> Message-ID: <5c6bd592-ef11-de2f-c7c2-af07c0e58119@gmail.com> Le 14/08/2020 ? 11:13, Bruce a ?crit?: > Mainly I can't see the "current line" and the "errors" any more. > > I have mucked around with the IDE settings, qtconfig and a bunch of > other things for day snow but, with declining eyesight[2], I just cant > see the tiny little box around the current line[1] or the light red > error messages any more. > > Is there any way too turn th "new way" off and just the use the JDE > config values again? > > [1] I had to use a screen magnifier to find there even was one! > [2] Don't laugh, this may happen to you one day too! > > tia > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Commit https://gitlab.com/gambas/gambas/-/commit/dae8c3d271b74817ed34f14666251352368c9922 should make the error tooltips readable. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Wed Sep 2 20:10:43 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 2 Sep 2020 20:10:43 +0200 Subject: [Gambas-user] IDE 3.15 Editor : turning off some of the new features? In-Reply-To: <5c6bd592-ef11-de2f-c7c2-af07c0e58119@gmail.com> References: <5b4d37c0-003b-5408-885d-f56ec475ff0b@gmail.com> <5c6bd592-ef11-de2f-c7c2-af07c0e58119@gmail.com> Message-ID: Le 02/09/2020 ? 20:09, Beno?t Minisini a ?crit?: > Le 14/08/2020 ? 11:13, Bruce a ?crit?: >> Mainly I can't see the "current line" and the "errors" any more. >> >> I have mucked around with the IDE settings, qtconfig and a bunch of >> other things for day snow but, with declining eyesight[2], I just cant >> see the tiny little box around the current line[1] or the light red >> error messages any more. >> >> Is there any way too turn th "new way" off and just the use the JDE >> config values again? >> >> [1] I had to use a screen magnifier to find there even was one! >> [2] Don't laugh, this may happen to you one day too! >> >> tia >> bruce >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Commit > https://gitlab.com/gambas/gambas/-/commit/dae8c3d271b74817ed34f14666251352368c9922 > should make the error tooltips readable. > > Regards, > As for the visibility of the current line, what is the dimensions of your screen in pixels? -- Beno?t Minisini From pflora at libero.it Wed Sep 2 20:43:20 2020 From: pflora at libero.it (pflora at libero.it) Date: Wed, 2 Sep 2020 20:43:20 +0200 (CEST) Subject: [Gambas-user] not able to send UDP datagram on local host Message-ID: <1774932152.19049.1599072200544@mail1.libero.it> Hello, I am new to gambas and I am tring to send datagrams on port 50010 on localhost. In a form I put 2 UDPSocket listeners on port 50000 and 50001 and they work fine, they capture packets coming from 2 applications sending data on such ports. Then I put a third UDPSocket to send data on port 50010 to the above applications but I cannot get this working. I tried to configure the socket but nothing is coming out. I cannot find a way to send the data. TargetHost should be local host 127.0.0.1 and TargetPort 50010 I am very frustated after some days of testing, in C language it was very easy to do this. I attach my simple project. Any help is appreciated. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: shm-hmi.zip Type: application/x-zip-compressed Size: 14995 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed Sep 2 21:16:40 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 2 Sep 2020 15:16:40 -0400 Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: <1774932152.19049.1599072200544@mail1.libero.it> References: <1774932152.19049.1599072200544@mail1.libero.it> Message-ID: <3c067354-df92-1c86-e7f3-b7049a59a5c7@gmail.com> On 9/2/20 2:43 PM, pinglix via User wrote: > Then I put a third UDPSocket to send data on port 50010 to the above applications but I cannot get this working. You do not have the UDP socket, "UdpCmd", configured to send data *on* port 50010. You have it configured to send data *to* port 50010. -- Lee From t.lee.davidson at gmail.com Wed Sep 2 21:03:11 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 2 Sep 2020 15:03:11 -0400 Subject: [Gambas-user] Sorting 2D arrays In-Reply-To: References: Message-ID: On 9/2/20 1:43 PM, John Rose wrote: > Print hEpisode.CompositeKey & Space(19 - Len(CStr(hEpisode.CompositeKey))); The argument passed to Space() must be positive. BTW, the order of arguments you're passing to New CEpisode() at Main:16 does not match the order of parameters you have in _new() at CEpisode:15. -- Lee From g4mba5 at gmail.com Wed Sep 2 23:09:27 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 2 Sep 2020 23:09:27 +0200 Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: <1774932152.19049.1599072200544@mail1.libero.it> References: <1774932152.19049.1599072200544@mail1.libero.it> Message-ID: Le 02/09/2020 ? 20:43, pinglix via User a ?crit?: > Hello, > > I am new to gambas and I am tring to send datagrams on port 50010 on > localhost. > > In a form I put 2 UDPSocket listeners on port 50000 and 50001 and they > work fine, they capture packets coming from 2 applications sending data > on such ports. > > Then I put a third UDPSocket to send data on port 50010 to the above > applications but I cannot get this working. > > I tried to configure the socket but nothing is coming out. I cannot find > a way to send the data. > > TargetHost should be local host 127.0.0.1 and TargetPort 50010 > > I am very frustated after some days of testing, in C language it was > very easy to do this. > > I attach my simple project. > > Any help is appreciated. > > Thanks > I just set the TargetPort property of UdpCmd to 50000, and everything works as expected (I see "Test-1" in the left textarea). If you don't set the Broadcast property, then you have to set the TargetHost to 127.0.0.1. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Wed Sep 2 23:34:03 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 2 Sep 2020 17:34:03 -0400 Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: References: <1774932152.19049.1599072200544@mail1.libero.it> Message-ID: <0477c1b8-f385-e0b5-b1a2-be04fb840281@gmail.com> On 9/2/20 5:09 PM, Beno?t Minisini wrote: > I just set the TargetPort property of UdpCmd to 50000, and everything works?as?expected?(I?see?"Test-1"?in?the?left?textarea). > > If you don't set the Broadcast property, then you have to set the TargetHost?to?127.0.0.1. No matter how I've tried to configure the sockets, I keep getting a SegFault: QSocketNotifier: Invalid socket 14 and type 'Read', disabling... -- Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGraphical-0.0.38.tar.gz Type: application/gzip Size: 12699 bytes Desc: not available URL: From bagonergi at gmail.com Thu Sep 3 00:40:43 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 3 Sep 2020 00:40:43 +0200 Subject: [Gambas-user] Sorting 2D arrays In-Reply-To: References: Message-ID: Il giorno mer 2 set 2020 alle ore 21:28 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 9/2/20 1:43 PM, John Rose wrote: > > Print hEpisode.CompositeKey & Space(19 - > Len(CStr(hEpisode.CompositeKey))); > > The argument passed to Space() must be positive. > > BTW, the order of arguments you're passing to New CEpisode() at Main:16 > does not match the order of parameters you have in > _new() at CEpisode:15. > > Right, follow Lee's suggestions I am attaching a project that works. The Space is only used to column data in the console, so spaces must be greater than the characters to be subtracted. I don't understand the addition of composite key, here (*) you asked a specific question. I think I was wrong to suggest using code even if you don't understand it completely. You have to try hard to understand and if you don't understand something it's best to ask. Regards Gianluigi (*) https://lists.gambas-basic.org/pipermail/user/2020-August/069911.html -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: RoseTest-3.zip Type: application/zip Size: 14852 bytes Desc: not available URL: From cedron at exede.net Thu Sep 3 00:23:19 2020 From: cedron at exede.net (Cedron Dawg) Date: Wed, 2 Sep 2020 18:23:19 -0400 (EDT) Subject: [Gambas-user] Running on Raspbian Message-ID: <441682648.62499664.1599085399575.JavaMail.zimbra@exede.net> The Synaptic Package Manager has version 3.12.2-1 I'd like to install the latest version without having to do a huge compile or a lot of research. Surely, some one has a simple answer for this. I have it installed, but it doesn't work quite right. It won't start from the menu, I have to type 'gambas3' in a terminal window. Thanks, Ced From t.lee.davidson at gmail.com Thu Sep 3 02:19:31 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 2 Sep 2020 20:19:31 -0400 Subject: [Gambas-user] Sorting 2D arrays In-Reply-To: References: Message-ID: On 9/2/20 6:40 PM, Gianluigi wrote: > I don't understand the addition of composite key, here (*) you asked a specific question. John wants to sort the episodes by Series Name AND Episode Name. If we were dealing with a database table, we would create a composite index on those two columns. John has simply named the property CompositeKey. -- Lee From mike.crean at y7mail.com Thu Sep 3 03:54:48 2020 From: mike.crean at y7mail.com (Mike Crean) Date: Thu, 3 Sep 2020 01:54:48 +0000 (UTC) Subject: [Gambas-user] Running on Raspbian In-Reply-To: <441682648.62499664.1599085399575.JavaMail.zimbra@exede.net> References: <441682648.62499664.1599085399575.JavaMail.zimbra@exede.net> Message-ID: <563615587.2500279.1599098088761@mail.yahoo.com> I am running 3.12.2 installed from the repository. It seems to do everything I wanton a Rpi 4, 4gb. You could try a new desktop entry. [Desktop Entry] Name=Gambas3 Comment=Gambas3 Integrated Development Environment Keywords=Gambas3 Exec=gambas3 Type=Application Icon=gambas3 Categories=Development; RegardsMike On Thursday, 3 September 2020, 6:44:04 am AWST, Cedron Dawg wrote: The Synaptic Package Manager has version 3.12.2-1 I'd like to install the latest version without having to do a huge compile or a lot of research.? Surely, some one has a simple answer for this. I have it installed, but it doesn't work quite right.? It won't start from the menu, I have to type 'gambas3' in a terminal window.? Thanks, Ced ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Sep 3 09:34:44 2020 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 3 Sep 2020 09:34:44 +0200 Subject: [Gambas-user] Sorting 2D arrays In-Reply-To: References: Message-ID: Il giorno gio 3 set 2020 alle ore 02:28 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 9/2/20 6:40 PM, Gianluigi wrote: > > I don't understand the addition of composite key, here (*) you asked a > specific question. > > John wants to sort the episodes by Series Name AND Episode Name. If we > were dealing with a database table, we would create a > composite index on those two columns. John has simply named the property > CompositeKey. > > Now I understand, thanks. But this was already explained, there is no need to add a new array, composite keys are formed like this: Return Comp ($ sSeriesName & $ sEpisodeName, hSeries.SeriesName & hSeries.EpisodeName) And as has already been explained (demonstrated with the previous code) it is possible to sort in Ascending or Descending order. I enclose the last demonstration for John Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: RoseTest-4.zip Type: application/zip Size: 17291 bytes Desc: not available URL: From hans at gambas-buch.de Thu Sep 3 10:00:45 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 3 Sep 2020 10:00:45 +0200 Subject: [Gambas-user] UDPSocket.Broadcast property ... Message-ID: <3b2dac3b-4daf-6078-2e6f-9db58e1e2006@gambas-buch.de> Hello, I have problems understanding the UDPSocket.Broadcast property. In the net I found "UDP broadcasts can be used to allow client and server to find each other in a subnet without first knowing which hosts they are running on. For this purpose the server opens a socket that listens on a certain port. The client can then send a UDP broadcast on this port to all hosts in the subnet, to which the server can respond. " Now the exciting question: How do I implement this approach in Gambas with a UDP client? With kind regards Hans From g4mba5 at gmail.com Thu Sep 3 10:17:35 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Sep 2020 10:17:35 +0200 Subject: [Gambas-user] UDPSocket.Broadcast property ... In-Reply-To: <3b2dac3b-4daf-6078-2e6f-9db58e1e2006@gambas-buch.de> References: <3b2dac3b-4daf-6078-2e6f-9db58e1e2006@gambas-buch.de> Message-ID: <3de9e714-57e6-9e2d-89c5-aec3c0572d28@gmail.com> Le 03/09/2020 ? 10:00, Hans Lehmann a ?crit?: > Hello, > > I have problems understanding the UDPSocket.Broadcast property. In the > net I found "UDP broadcasts can be used to allow client and server to > find each other in a subnet without first knowing which hosts they are > running on. For this purpose the server opens a socket that listens on a > certain port. The client can then send a UDP broadcast on this port to > all hosts in the subnet, to which the server can respond. " > > Now the exciting question: How do I implement this approach in Gambas > with a UDP client? > > With kind regards > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > That property sets or clears the socket broadcast flag. The manpage says: ? SO_BROADCAST Set or get the broadcast flag. When enabled, datagram sockets are allowed to send packets to a broadcast address. This option has no effect on stream-oriented sockets. ? Regards, -- Beno?t Minisini From john.aaron.rose at mailbox.org Thu Sep 3 12:38:57 2020 From: john.aaron.rose at mailbox.org (John Rose) Date: Thu, 3 Sep 2020 11:38:57 +0100 Subject: [Gambas-user] Running on Raspbian Message-ID: On 03/09/2020 08:44, user-request at lists.gambas-basic.org wrote: > > I am running 3.12.2 installed from the repository. It seems to do > everything I want > on a Rpi 4, 4gb. > > You could try a new desktop entry. > > [Desktop Entry] > Name=Gambas3 > Comment=Gambas3 Integrated Development Environment > Keywords=Gambas3 > Exec=gambas3 > Type=Application > Icon=gambas3 > Categories=Development; > > Regards > Mike > On Thursday, 3 September 2020, 6:44:04 am AWST, Cedron Dawg > wrote: > > > The Synaptic Package Manager has version 3.12.2-1 > > I'd like to install the latest version without having to do a huge > compile or a lot of research.? Surely, some one has a simple answer > for this. > > I have it installed, but it doesn't work quite right.? It won't start > from the menu, I have to type 'gambas3' in a terminal window. > > Thanks, > Ced I have a Pi 3 running Raspbian Buster fully up to date. I also have Gambas 3.12.2 (with Synaptic showing it as latest stable version) installed as binary (i.e. without compiling). My Software Sources (though Software & Updates invoking from menus now displays nothing after a few seconds, though it used to work) are: pi at RaspberryPi:~ $ cat /etc/apt/sources.list deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi Gambas Wiki (http://gambaswiki.org/wiki/install/raspbian) says nothing about Buster. When I start Gambas from the menu it 'overflows' the available screen area (I usually do work on my Pi using VNC Viewer from my Ubuntu Xenial box to VNC Server on my Pi). Not able to attach screenshot as too large for list's posts. It did not used to do this: I guess that there must have been a Buster update which messed it up. PS if you want to see screenshot, please contact me on john.aaron.rose at mailbox.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Thu Sep 3 14:15:38 2020 From: cedron at exede.net (Cedron Dawg) Date: Thu, 3 Sep 2020 08:15:38 -0400 (EDT) Subject: [Gambas-user] Running on Raspbian In-Reply-To: References: Message-ID: <2002985097.62834729.1599135338920.JavaMail.zimbra@exede.net> Thanks Mike and John, I was able to get the menu to launch by tweaking the menu entry. The opening splash screen is also oversized on the display, and has been. When I copied a project over from 3.15 the form didn't show and the program didn't run. A new project will display the main form properly. There are some bug fixes between 3.12 and 3.13 that I also want. With my Mint distros, I can use a PPA to get a more recent version than the repository. I was hoping for something similar to exist. Ced From t.lee.davidson at gmail.com Thu Sep 3 19:58:31 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 3 Sep 2020 13:58:31 -0400 Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: <0477c1b8-f385-e0b5-b1a2-be04fb840281@gmail.com> References: <1774932152.19049.1599072200544@mail1.libero.it> <0477c1b8-f385-e0b5-b1a2-be04fb840281@gmail.com> Message-ID: <1f7a12d9-7105-38c5-34e2-6a89c0619441@gmail.com> On 9/2/20 5:34 PM, T Lee Davidson wrote: > On 9/2/20 5:09 PM, Beno?t Minisini wrote: >> I just set the TargetPort property of UdpCmd to 50000, and everything works?as?expected?(I?see?"Test-1"?in?the?left?textarea). >> >> If you don't set the Broadcast property, then you have to set the TargetHost?to?127.0.0.1. > > No matter how I've tried to configure the sockets, I keep getting a SegFault: > QSocketNotifier: Invalid socket 14 and type 'Read', disabling... > Correction: Whether or not the Broadcast property is set, if TargetHost is blank I get the SegFault. If I set TargetHost to 127.255.255.255, or to 0, it works as expected. Should the IDE prevent TargetHost and TargetPort from being blank if Broadcast is set? By the way, if I put any value in the UdpSocket's Group property, at Run I get: Unknown symbol 'Name' in class 'UdpSocket' -- Lee From pflora at libero.it Thu Sep 3 22:15:02 2020 From: pflora at libero.it (pflora at libero.it) Date: Thu, 3 Sep 2020 22:15:02 +0200 (CEST) Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: References: <1774932152.19049.1599072200544@mail1.libero.it> Message-ID: <203097625.979203.1599164102551@mail1.libero.it> Following your advice I got the UDPSocket sending data. Strange thing is that I was testing the output with the command sudo tcpdump -X port 50010 and nothing was on the screen. Then I put a node-red UDP listener and I receive the data but still no output from tcpdump. With 2 applications written in C sending to ports 50000 and 50001 I can trace UDP packets with tcpdump but not the ones sent with gambas on port 50010. I was tricked by this strange behaviour. > Il 02/09/2020 23:09 Beno?t Minisini ha scritto: > > > Le 02/09/2020 ? 20:43, pinglix via User a ?crit?: > > Hello, > > > > I am new to gambas and I am tring to send datagrams on port 50010 on > > localhost. > > > > In a form I put 2 UDPSocket listeners on port 50000 and 50001 and they > > work fine, they capture packets coming from 2 applications sending data > > on such ports. > > > > Then I put a third UDPSocket to send data on port 50010 to the above > > applications but I cannot get this working. > > > > I tried to configure the socket but nothing is coming out. I cannot find > > a way to send the data. > > > > TargetHost should be local host 127.0.0.1 and TargetPort 50010 > > > > I am very frustated after some days of testing, in C language it was > > very easy to do this. > > > > I attach my simple project. > > > > Any help is appreciated. > > > > Thanks > > > > I just set the TargetPort property of UdpCmd to 50000, and everything > works as expected (I see "Test-1" in the left textarea). > > If you don't set the Broadcast property, then you have to set the > TargetHost to 127.0.0.1. > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From genbraga1 at gmail.com Thu Sep 3 22:19:58 2020 From: genbraga1 at gmail.com (gen braga) Date: Thu, 3 Sep 2020 17:19:58 -0300 Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: <203097625.979203.1599164102551@mail1.libero.it> References: <1774932152.19049.1599072200544@mail1.libero.it> <203097625.979203.1599164102551@mail1.libero.it> Message-ID: Try with "-i lo" Em qui, 3 de set de 2020 17:16, pinglix via User < user at lists.gambas-basic.org> escreveu: > > sudo tcpdump -X port 50010 > > and nothing was on the screen. > Then I put a node-red UDP listener and I receive the data but still no > output from tcpdump. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Sep 3 23:39:38 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 3 Sep 2020 23:39:38 +0200 Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: <1f7a12d9-7105-38c5-34e2-6a89c0619441@gmail.com> References: <1774932152.19049.1599072200544@mail1.libero.it> <0477c1b8-f385-e0b5-b1a2-be04fb840281@gmail.com> <1f7a12d9-7105-38c5-34e2-6a89c0619441@gmail.com> Message-ID: Le 03/09/2020 ? 19:58, T Lee Davidson a ?crit?: > On 9/2/20 5:34 PM, T Lee Davidson wrote: >> On 9/2/20 5:09 PM, Beno?t Minisini wrote: >>> I just set the TargetPort property of UdpCmd to 50000, and everything >>> works?as?expected?(I?see?"Test-1"?in?the?left?textarea). >>> >>> If you don't set the Broadcast property, then you have to set the >>> TargetHost?to?127.0.0.1. >> >> No matter how I've tried to configure the sockets, I keep getting a >> SegFault: >> QSocketNotifier: Invalid socket 14 and type 'Read', disabling... >> > > Correction: Whether or not the Broadcast property is set, if TargetHost > is blank I get the SegFault. Do you use the latest development version? > > If I set TargetHost to 127.255.255.255, or to 0, it works as expected. > Should the IDE prevent TargetHost and TargetPort from being blank if > Broadcast is set? No. A void string means "any address". Maybe it should be replaced by 127.0.0.1 when Broadcast is *not* set. > > By the way, if I put any value in the UdpSocket's Group property, at Run > I get: > Unknown symbol 'Name' in class 'UdpSocket' This has been fixed in the last commit. You will have to modify the form and save it again to fix it. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Fri Sep 4 01:46:31 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 3 Sep 2020 19:46:31 -0400 Subject: [Gambas-user] not able to send UDP datagram on local host In-Reply-To: References: <1774932152.19049.1599072200544@mail1.libero.it> <0477c1b8-f385-e0b5-b1a2-be04fb840281@gmail.com> <1f7a12d9-7105-38c5-34e2-6a89c0619441@gmail.com> Message-ID: <6ad9d688-30cf-5d79-164d-2f2b8e565dbe@gmail.com> On 9/3/20 5:39 PM, Beno?t Minisini wrote: > Do?you?use?the?latest?development?version? Sorry for not providing that information. No, I am using v3.15.1 -- Lee From t.lee.davidson at gmail.com Fri Sep 4 03:19:13 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 3 Sep 2020 21:19:13 -0400 Subject: [Gambas-user] UDPSocket.Broadcast property ... In-Reply-To: <3b2dac3b-4daf-6078-2e6f-9db58e1e2006@gambas-buch.de> References: <3b2dac3b-4daf-6078-2e6f-9db58e1e2006@gambas-buch.de> Message-ID: <0a2880d3-4951-88b6-ceca-47cb3a4d952e@gmail.com> On 9/3/20 4:00 AM, Hans Lehmann wrote: > Hello, > > I have problems understanding the UDPSocket.Broadcast property. In the > net I found "UDP broadcasts can be used to allow client and server to > find each other in a subnet without first knowing which hosts they are > running on. For this purpose the server opens a socket that listens on a > certain port. The client can then send a UDP broadcast on this port to > all hosts in the subnet, to which the server can respond. " > > Now the exciting question: How do I implement this approach in Gambas > with a UDP client? > > With kind regards > > Hans Here's a project that might help you with some code examples. -- Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: udpbroadcast-0.0.1.tar.gz Type: application/gzip Size: 12992 bytes Desc: not available URL: From rwe-sse at osnanet.de Fri Sep 4 15:13:54 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 4 Sep 2020 15:13:54 +0200 Subject: [Gambas-user] Converting Number into Hex string Message-ID: Hi all, just stumbled over this one: Isn't there a ready-made conversion function that can put a number (int or so) into a hex string? Thanks for any hint! Rolf From d4t4full at gmail.com Fri Sep 4 15:24:21 2020 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Fri, 04 Sep 2020 10:24:21 -0300 Subject: [Gambas-user] Converting Number into Hex string In-Reply-To: References: Message-ID: <52ee6f3d-be90-42ca-aec1-bf93d646ce16@gmail.com> Hex$(number) ? On Sep 4, 2020, 10:22, at 10:22, Rolf-Werner Eilert wrote: >Hi all, > >just stumbled over this one: Isn't there a ready-made conversion >function that can put a number (int or so) into a hex string? > >Thanks for any hint! > >Rolf > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Fri Sep 4 15:43:27 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 4 Sep 2020 15:43:27 +0200 Subject: [Gambas-user] Converting Number into Hex string In-Reply-To: <52ee6f3d-be90-42ca-aec1-bf93d646ce16@gmail.com> References: <52ee6f3d-be90-42ca-aec1-bf93d646ce16@gmail.com> Message-ID: <4e7bd953-52a7-4fd4-0077-f3ab8e637d53@osnanet.de> Aaaarrgh - of course! Thanks so much... Rolf Am 04.09.20 um 15:24 schrieb d4t4full at gmail.com: > Hex$(number) ? > On Sep 4, 2020, at 10:22, Rolf-Werner Eilert > wrote: > > Hi all, > > just stumbled over this one: Isn't there a ready-made conversion > function that can put a number (int or so) into a hex string? > > Thanks for any hint! > > Rolf > > ----[http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From adamnt42 at gmail.com Sat Sep 5 21:25:57 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 6 Sep 2020 04:55:57 +0930 Subject: [Gambas-user] Control.Grab (gb.qt4) - The old way? In-Reply-To: References: Message-ID: <441c72b0-9661-9158-bf3a-4be58251f5ac@gmail.com> On 6/9/20 4:49 am, Bruce wrote: > Like the fine help says, back in the olden days Control.Grab used to > take a scrren shot of the control but that's gone away. Fine. But > weirdly enough I now find that I want to get an image or picture of a > control (or wondow) but primarily a specific control. > > So, is there a way to so that now? > Failing that, would anyone have the code of how it was done in Gambas2 > or any ideas of how it could be done? > > tia > bruce Woops, I should have said: Also the control concerned may not be actually visible at the time! b From adamnt42 at gmail.com Sat Sep 5 21:19:33 2020 From: adamnt42 at gmail.com (Bruce) Date: Sun, 6 Sep 2020 04:49:33 +0930 Subject: [Gambas-user] Control.Grab (gb.qt4) - The old way? Message-ID: Like the fine help says, back in the olden days Control.Grab used to take a scrren shot of the control but that's gone away. Fine. But weirdly enough I now find that I want to get an image or picture of a control (or wondow) but primarily a specific control. So, is there a way to so that now? Failing that, would anyone have the code of how it was done in Gambas2 or any ideas of how it could be done? tia bruce From pflora at libero.it Sun Sep 6 17:58:28 2020 From: pflora at libero.it (pflora at libero.it) Date: Sun, 6 Sep 2020 17:58:28 +0200 (CEST) Subject: [Gambas-user] how to write text in indexed list of labels Message-ID: <585740579.976157.1599407908680@mail1.libero.it> Hi, I have 200 Label components on a form with name Label1, Label2 .... Label200 and I need to change the Text property of one of them through an integer index. What is the best way to do it ? I cannot find a Find() method by name that returns a reference to the correct object. I can set them to the same Group but then what can I do with it ? Thanks, Paolo -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Sun Sep 6 18:21:38 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 6 Sep 2020 18:21:38 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <585740579.976157.1599407908680@mail1.libero.it> References: <585740579.976157.1599407908680@mail1.libero.it> Message-ID: Am 06.09.20 um 17:58 schrieb pinglix via User: > I have 200 Label components on a form with name Label1, Label2 .... > Label200 and I need to change the Text property of one of them through > an integer index. > > What is the best way to do it ? > > I cannot find a Find() method by name that returns a reference to the > correct object. > > I can set them to the same Group but then what can I do with it ? You can search for the program 'findfocus' in the software farm which iterates through all controls in a form to find the one which has the focus. The code in it does what you want if you adapt it to your task. 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 bagonergi at gmail.com Sun Sep 6 18:40:05 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 6 Sep 2020 18:40:05 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> Message-ID: Il giorno dom 6 set 2020 alle ore 18:22 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Am 06.09.20 um 17:58 schrieb pinglix via User: > > > I have 200 Label components on a form with name Label1, Label2 .... > > Label200 and I need to change the Text property of one of them through > > an integer index. > > > > What is the best way to do it ? > > > > I cannot find a Find() method by name that returns a reference to the > > correct object. > > > > I can set them to the same Group but then what can I do with it ? > > You can search for the program 'findfocus' in the software farm which > iterates through all controls in a form to find the one which has the > focus. > > The code in it does what you want if you adapt it to your task. > A simple thing? Public Sub Button1_Click() Dim obj As Object For Each obj In FMain.Controls If obj.Name = "Label123" Then obj.text = "Pippo" Next End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Sep 6 19:25:48 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 6 Sep 2020 19:25:48 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> Message-ID: Il giorno dom 6 set 2020 alle ore 18:40 Gianluigi ha scritto: > > > Il giorno dom 6 set 2020 alle ore 18:22 Christof Thalhofer < > chrisml at deganius.de> ha scritto: > >> Am 06.09.20 um 17:58 schrieb pinglix via User: >> >> > I have 200 Label components on a form with name Label1, Label2 .... >> > Label200 and I need to change the Text property of one of them through >> > an integer index. > > > Did you mean this? Private $iIndex As Integer Public Sub Form_Open() $iIndex = 123 End Public Sub Button1_Click() Dim obj As Object For Each obj In Me.Controls If obj.Name = "Label" & $iIndex Then obj.text = "Pippo" Next End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Sep 6 19:44:18 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 6 Sep 2020 19:44:18 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <585740579.976157.1599407908680@mail1.libero.it> References: <585740579.976157.1599407908680@mail1.libero.it> Message-ID: <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Le 06/09/2020 ? 17:58, pinglix via User a ?crit?: > Hi, > > I have 200 Label components on a form with name Label1, Label2 .... > Label200 and I need to change the Text property of one of them through > an integer index. > > > What is the best way to do it ? > > I cannot find a Find() method by name that returns a reference to the > correct object. > > I can set them to the same Group but then what can I do with it ? > > > Thanks, > > Paolo > Window (and so Form) objects can be used as a collection of its children controls indexed by name. I.e. : MyForm["Label" & Index] will return the Label control. But you should better create such many labels dynamically and store the references in your own array of Labels. Regards, -- Beno?t Minisini From bagonergi at gmail.com Sun Sep 6 20:00:11 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 6 Sep 2020 20:00:11 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: Il giorno dom 6 set 2020 alle ore 19:45 Beno?t Minisini ha scritto: > Le 06/09/2020 ? 17:58, pinglix via User a ?crit : > > Hi, > > > > I have 200 Label components on a form with name Label1, Label2 .... > > Label200 and I need to change the Text property of one of them through > > an integer index. > > Window (and so Form) objects can be used as a collection of its children > controls indexed by name. > > I.e. : MyForm["Label" & Index] will return the Label control. > > But you should better create such many labels dynamically and store the > references in your own array of Labels. > Yes, I apologize, mine is not good Gambas code, don't use it :-( Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Sep 6 23:11:12 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 6 Sep 2020 23:11:12 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: Il giorno dom 6 set 2020 alle ore 20:00 Gianluigi ha scritto: > > > Il giorno dom 6 set 2020 alle ore 19:45 Beno?t Minisini > ha scritto: > >> Le 06/09/2020 ? 17:58, pinglix via User a ?crit : >> > Hi, >> > >> > I have 200 Label components on a form with name Label1, Label2 .... >> > Label200 and I need to change the Text property of one of them through >> > an integer index. >> >> Window (and so Form) objects can be used as a collection of its children >> controls indexed by name. >> >> I.e. : MyForm["Label" & Index] will return the Label control. >> >> But you should better create such many labels dynamically and store the >> references in your own array of Labels. >> > > Yes, I apologize, mine is not good Gambas code, don't use it :-( > Hi Benoit, just one question, is this code acceptable or will I be burned at the stake for apostasy? Public Sub Button1_Click() Dim obj As Object = Me["Label" & $iIndex] obj.text = "Pippo" End Regards Gianluigi P.S. Naturally accompanied by the advice to study Last, Tag, Action and company -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Sep 7 01:14:25 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 Sep 2020 02:14:25 +0300 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: IF that is all you are going to do, then no reason to declare the obj. Jussi On Mon, Sep 7, 2020 at 12:12 AM Gianluigi wrote: > > > Il giorno dom 6 set 2020 alle ore 20:00 Gianluigi > ha scritto: > >> >> >> Il giorno dom 6 set 2020 alle ore 19:45 Beno?t Minisini >> ha scritto: >> >>> Le 06/09/2020 ? 17:58, pinglix via User a ?crit : >>> > Hi, >>> > >>> > I have 200 Label components on a form with name Label1, Label2 .... >>> > Label200 and I need to change the Text property of one of them through >>> > an integer index. >>> >>> Window (and so Form) objects can be used as a collection of its children >>> controls indexed by name. >>> >>> I.e. : MyForm["Label" & Index] will return the Label control. >>> >>> But you should better create such many labels dynamically and store the >>> references in your own array of Labels. >>> >> >> Yes, I apologize, mine is not good Gambas code, don't use it :-( >> > > Hi Benoit, > > just one question, is this code acceptable or will I be burned at the > stake for apostasy? > > Public Sub Button1_Click() > > Dim obj As Object = Me["Label" & $iIndex] > > obj.text = "Pippo" > > End > > Regards > Gianluigi > > P.S. Naturally accompanied by the advice to study Last, Tag, Action and > company > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 7 09:36:58 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 7 Sep 2020 09:36:58 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: Il giorno lun 7 set 2020 alle ore 01:20 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > IF that is all you are going to do, then no reason to declare the obj. > Hi Jussi, do you mean to suggest to write the code like this? Public Sub Button1_Click() Dim hLabel As Label = Me["Label" & $iIndex] hLabel.Text = "Pippo" End But that's not the same thing? We are always talking about an object. I feel it, I'll end up at the stake :-( Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Sep 7 14:44:30 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 Sep 2020 15:44:30 +0300 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: No, I meant: Me["Label" & $iIndex].Text = "Pippo" Jussi On Mon, Sep 7, 2020 at 10:38 AM Gianluigi wrote: > > > Il giorno lun 7 set 2020 alle ore 01:20 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> IF that is all you are going to do, then no reason to declare the obj. >> > > Hi Jussi, > > do you mean to suggest to write the code like this? > > Public Sub Button1_Click() > > Dim hLabel As Label = Me["Label" & $iIndex] > > hLabel.Text = "Pippo" > > End > > But that's not the same thing? We are always talking about an object. > > I feel it, I'll end up at the stake :-( > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 7 15:26:30 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 7 Sep 2020 15:26:30 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: Il giorno lun 7 set 2020 alle ore 14:45 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > No, I meant: > Me["Label" & $iIndex].Text = "Pippo" > mmmh, have you tried it, does it work? I get: Unknown symbol Text in class Control Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Sep 7 15:51:16 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 Sep 2020 16:51:16 +0300 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: That's weird... if you try it with simple form and a label, this prints: Print Object.Type(Me["Label1"]) Label But when you try to use it, it's control... I don't think there should be a cast to other types. Benoit? Jussi On Mon, Sep 7, 2020 at 4:27 PM Gianluigi wrote: > > > Il giorno lun 7 set 2020 alle ore 14:45 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> No, I meant: >> Me["Label" & $iIndex].Text = "Pippo" >> > > mmmh, have you tried it, does it work? > I get: Unknown symbol Text in class Control > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tmorehen at ajm-software.com Mon Sep 7 16:03:15 2020 From: tmorehen at ajm-software.com (Tony Morehen) Date: Mon, 7 Sep 2020 10:03:15 -0400 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <585740579.976157.1599407908680@mail1.libero.it> References: <585740579.976157.1599407908680@mail1.libero.it> Message-ID: <81c3ec8a-4f6f-ed3d-1eec-7fe28490af30@ajm-software.com> An alternative approach, which is particularly useful if the labels are dynamically placed on the form,? would be to use a global array of labels: In the globals area of the form class: ??? Private theArrayOfLabels as Collection In the form setup method (say form_open): ??? theArrayOfLabels = New Label[] ??? Dim lbl as Label ??? For each index as Integer = 0 to 199 ??????? lbl = new Label(parent)? 'parent could be Me or some other container ? ? ? ? 'code to setup the new label (initial text, font, foreground, width? etc) ??????? 'you don't need to set the name ??????? theArrayOfLabels.Add(lbl) ??? Next Finally where you reset the label text: ??? theArrayofLabels[index].Text = "new text" Instead of an array of labels, you could use a collection of labels, with the key being the individual label's name. On 2020-09-06 10:58 a.m., pinglix via User wrote: > > Hi, > > I have 200 Label components on a form with name Label1, Label2 .... > Label200 and I need to change the Text property of one of them through > an integer index. > > > What is the best way to do it ? > > I cannot find a Find() method by name that returns a reference to the > correct object. > > I can set them to the same Group but then what can I do with it ? > > > Thanks, > > Paolo > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From pflora at libero.it Mon Sep 7 17:18:19 2020 From: pflora at libero.it (pflora at libero.it) Date: Mon, 7 Sep 2020 17:18:19 +0200 (CEST) Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <81c3ec8a-4f6f-ed3d-1eec-7fe28490af30@ajm-software.com> References: <585740579.976157.1599407908680@mail1.libero.it> <81c3ec8a-4f6f-ed3d-1eec-7fe28490af30@ajm-software.com> Message-ID: <381986528.1020065.1599491899755@mail1.libero.it> Thank you to everybody. As I am not fond in gambas language I used the solution: Dim hlabel As Label Dim idName as String Dim idx as Integer idx = ..... some integer value idName = "Label" & idx hlabel = Me[idName] If hlabel <> Null Then hlabel.Text = " my string" The above works good, I write to all 200 labels some messages indexed from UDP datagrams. > Il 07/09/2020 16:03 Tony Morehen ha scritto: > > > > An alternative approach, which is particularly useful if the labels are dynamically placed on the form, would be to use a global array of labels: > > In the globals area of the form class: > > Private theArrayOfLabels as Collection > > In the form setup method (say form_open): > > theArrayOfLabels = New Label[] > Dim lbl as Label > > For each index as Integer = 0 to 199 > lbl = new Label(parent) 'parent could be Me or some other container > 'code to setup the new label (initial text, font, foreground, width etc) > 'you don't need to set the name > theArrayOfLabels.Add(lbl) > Next > > Finally where you reset the label text: > > theArrayofLabels[index].Text = "new text" > > Instead of an array of labels, you could use a collection of labels, with the key being the individual label's name. > > > > > On 2020-09-06 10:58 a.m., pinglix via User wrote: > > > > > > Hi, > > > > I have 200 Label components on a form with name Label1, Label2 .... Label200 and I need to change the Text property of one of them through an integer index. > > > > > > What is the best way to do it ? > > > > I cannot find a Find() method by name that returns a reference to the correct object. > > > > I can set them to the same Group but then what can I do with it ? > > > > > > Thanks, > > > > Paolo > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon Sep 7 18:48:57 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 7 Sep 2020 18:48:57 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <381986528.1020065.1599491899755@mail1.libero.it> References: <585740579.976157.1599407908680@mail1.libero.it> <81c3ec8a-4f6f-ed3d-1eec-7fe28490af30@ajm-software.com> <381986528.1020065.1599491899755@mail1.libero.it> Message-ID: Hi, I think Benoit wanted to suggest something like this, see attached project (zip to avoid problems with GMail) Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ArrayOfLabels.zip Type: application/zip Size: 15628 bytes Desc: not available URL: From bagonergi at gmail.com Mon Sep 7 18:59:09 2020 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 7 Sep 2020 18:59:09 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <81c3ec8a-4f6f-ed3d-1eec-7fe28490af30@ajm-software.com> <381986528.1020065.1599491899755@mail1.libero.it> Message-ID: Il giorno lun 7 set 2020 alle ore 18:48 Gianluigi ha scritto: > > Hi, > I think Benoit wanted to suggest something like this, see attached project > (zip to avoid problems with GMail) > Sorry there is an error I wrote: .Name = "Label " & Str(i + 1) Instead of: .Name = "Label" & Str(i + 1) Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Sep 7 19:02:47 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 8 Sep 2020 02:32:47 +0930 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: <308e2319-ae34-72d1-6546-17763707bd56@gmail.com> On 7/9/20 11:21 pm, Jussi Lahtinen wrote: > That's weird... if you try it with simple form and a label, this prints: > Print Object.Type(Me["Label1"]) > Label > > But when you try to use it, it's control... I don't think there should be a > cast to other types. > Benoit? > > > Jussi > > > > On Mon, Sep 7, 2020 at 4:27 PM Gianluigi wrote: > >> >> >> Il giorno lun 7 set 2020 alle ore 14:45 Jussi Lahtinen < >> jussi.lahtinen at gmail.com> ha scritto: >> >>> No, I meant: >>> Me["Label" & $iIndex].Text = "Pippo" >>> >> >> mmmh, have you tried it, does it work? >> I get: Unknown symbol Text in class Control >> >> Regards >> Gianluigi >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > This one I do know! I have fallen for the same trap many times. Me["somename"] returns an object that "looks" like a Control, but it's not its an Object, which doesn't have a "Text" property. You do have to assign it to a Control (or a specific control type) in order to get the properties expected. Dim hLbl As Label hLbl=Me["label" & $iIndex] hLbl.Text ="Pippo" BTW It is wonderful that this is so! As it enables us to write hundreds of custom controls which may have any number of weird properties unknown to Me[controlname As String] I will amend the help. cheers bruce From adamnt42 at gmail.com Mon Sep 7 19:28:15 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 8 Sep 2020 02:58:15 +0930 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> Message-ID: <72906cfe-fd7c-6b90-8e1e-6921f50e6342@gmail.com> On 7/9/20 11:21 pm, Jussi Lahtinen wrote: > That's weird... if you try it with simple form and a label, this prints: > Print Object.Type(Me["Label1"]) > Label > > But when you try to use it, it's control... I don't think there should be a > cast to other types. > Benoit? > > > Jussi > > > Look at it this way Print TypeOf(Me["Label1"]) 16 (=gb.Object) OK! It is an object so I can do Object "stuff" with it. Like looking at Object.Type BUT if you read every word of the help for Object.Type "Returns the class name of an object." Object.Type(Me["Label1"]) is just rerturning a string which is the Name of the class of which Me["Label1"] is an instance --- but it is still an object not a Label! :-) It's good fun isn't it! b From jussi.lahtinen at gmail.com Mon Sep 7 21:41:48 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 Sep 2020 22:41:48 +0300 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <72906cfe-fd7c-6b90-8e1e-6921f50e6342@gmail.com> References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> <72906cfe-fd7c-6b90-8e1e-6921f50e6342@gmail.com> Message-ID: > Look at it this way > Print TypeOf(Me["Label1"]) > 16 (=gb.Object) > OK! It is an object so I can do Object "stuff" with it. Like looking at > Object.Type > BUT if you read every word of the help for Object.Type > "Returns the class name of an object." > Object.Type(Me["Label1"]) is just rerturning a string which is the Name > of the class of which Me["Label1"] is an instance --- but it is still an > object not a Label! > I don't understand your point. That is exactly what I expect to see. TypeOf returns "object" for every possible instance of every possible class. So, instance of Label is object and TypeOf will return so as expected. The problem is that Me["Label1"] does not return an object, which is an instance of class label, but instance of class control. That is unexpected. Looks like a bug to me. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Sep 7 21:44:45 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 Sep 2020 22:44:45 +0300 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> <72906cfe-fd7c-6b90-8e1e-6921f50e6342@gmail.com> Message-ID: > I don't understand your point. That is exactly what I expect to see. > TypeOf returns "object" for every possible instance of every possible class. > So, instance of Label is object and TypeOf will return so as expected. > > The problem is that Me["Label1"] does not return an object, which is an > instance of class label, but instance of class control. > That is unexpected. Looks like a bug to me. > Or perhaps, the bug is in the Object.Type(), which returns "Label" instead of "Control". Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Sep 7 22:29:34 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 7 Sep 2020 22:29:34 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> <72906cfe-fd7c-6b90-8e1e-6921f50e6342@gmail.com> Message-ID: <09311426-957e-6d86-14e4-1dfe650a46a5@gmail.com> Le 07/09/2020 ? 21:41, Jussi Lahtinen a ?crit?: > > Look at it this way > Print TypeOf(Me["Label1"]) > 16? (=gb.Object) > OK! It is an object so I can do Object "stuff" with it. Like looking at > Object.Type > BUT if you read every word of the help for Object.Type > "Returns the class name of an object." > Object.Type(Me["Label1"]) is just rerturning a string which is the Name > of the class of which Me["Label1"] is an instance --- but it is > still an > object not a Label! > > > I don't understand your point. That is exactly what I expect to see. > TypeOf returns "object" for every possible instance of every possible class. > So, instance of Label is object and TypeOf will return so as expected. > > The problem is that Me["Label1"] does not return an object, which is an > instance of class label, but instance of class control. > That is unexpected. Looks like a bug to me. > > > Jussi > No, it's by design. ME[xxx] can return any subclass of the Control class, so it's logical that its datatype is Control. If you know that ME[xxx] is a Label, then you have to store it into a variable declared as Label. Otherwise you can't access the Label class properties or methods. Remember that the Object datatype is "anonymous". Each access to a property or a method through the Object datatype needs a search into the symbol table at each access, which is slow. As soon as the interpreter gets an actual datatype (like Control for Form[xxx]), then the symbol table search is done once, and every following access is immediate, which is fast. Regards, -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Sep 7 22:24:12 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 7 Sep 2020 23:24:12 +0300 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <308e2319-ae34-72d1-6546-17763707bd56@gmail.com> References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> <308e2319-ae34-72d1-6546-17763707bd56@gmail.com> Message-ID: > BTW It is wonderful that this is so! As it enables us to write hundreds > of custom controls which may have any number of weird properties unknown > to Me[controlname As String] > Me[] is just collection of objects (specifically controls). It does not "know" anything and it doesn't have to. It just returns the object, which does or does not have the asked property. I just find the cast really confusing: Dim obj As Object = Me["Label1"] Print Object.Type(obj) = Object.Type(Me["Label1"]) True Print obj = Me["Label1"] True Yet, obj is an instance of label and Me["Label1"] is an instance of control. Object.type() just cannot show it. But everything works OK if you trick Gambas to do the cast, example both work: ["a": Me["Label1"]]["a"].Text = "Pippo" [Me["Label1"], "a"][0].Text = "Pippo" Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Mon Sep 7 23:18:54 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 8 Sep 2020 00:18:54 +0300 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <09311426-957e-6d86-14e4-1dfe650a46a5@gmail.com> References: <585740579.976157.1599407908680@mail1.libero.it> <67e46fd2-28f8-c731-5e98-2ba4745535ad@gmail.com> <72906cfe-fd7c-6b90-8e1e-6921f50e6342@gmail.com> <09311426-957e-6d86-14e4-1dfe650a46a5@gmail.com> Message-ID: OK, so it is for performance reasons..? But if Me[xxx] would instead return anonymous objects, shouldn't this again make the instances of label: Dim hLabel as Label = Me[xxx] And thus no performance differences? Or are the gained performance differences somewhere else? It seems I have misunderstood what exactly the Object.Type() returns... I kind of expected Object.Scope(). Dim hParent As Parent = New Child Dim hChild As New Child Now they are a bit confusingly, both instances of Child class, just with different scope. A little break from programming and object models are gone from my head. Jussi On Mon, Sep 7, 2020 at 11:29 PM Beno?t Minisini wrote: > Le 07/09/2020 ? 21:41, Jussi Lahtinen a ?crit : > > > > Look at it this way > > Print TypeOf(Me["Label1"]) > > 16 (=gb.Object) > > OK! It is an object so I can do Object "stuff" with it. Like looking > at > > Object.Type > > BUT if you read every word of the help for Object.Type > > "Returns the class name of an object." > > Object.Type(Me["Label1"]) is just rerturning a string which is the > Name > > of the class of which Me["Label1"] is an instance --- but it is > > still an > > object not a Label! > > > > > > I don't understand your point. That is exactly what I expect to see. > > TypeOf returns "object" for every possible instance of every possible > class. > > So, instance of Label is object and TypeOf will return so as expected. > > > > The problem is that Me["Label1"] does not return an object, which is an > > instance of class label, but instance of class control. > > That is unexpected. Looks like a bug to me. > > > > > > Jussi > > > > No, it's by design. ME[xxx] can return any subclass of the Control > class, so it's logical that its datatype is Control. > > If you know that ME[xxx] is a Label, then you have to store it into a > variable declared as Label. Otherwise you can't access the Label class > properties or methods. > > Remember that the Object datatype is "anonymous". Each access to a > property or a method through the Object datatype needs a search into the > symbol table at each access, which is slow. > > As soon as the interpreter gets an actual datatype (like Control for > Form[xxx]), then the symbol table search is done once, and every > following access is immediate, which is fast. > > Regards, > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Tue Sep 8 16:32:56 2020 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 8 Sep 2020 15:32:56 +0100 Subject: [Gambas-user] Control.Grab (gb.qt4) - The old way? In-Reply-To: <441c72b0-9661-9158-bf3a-4be58251f5ac@gmail.com> References: <441c72b0-9661-9158-bf3a-4be58251f5ac@gmail.com> Message-ID: Hi Bruce, You can get a control image with: - PictureBox1.Picture = Desktop.Screenshot(Button1.ScreenX, Button1.ScreenY, Button1.Width, Button1.Height) You can change 'Button1' to any control. How you get an image of a control you can't see is beyond me. Charlie On 05/09/2020 20:25, Bruce wrote: > > > On 6/9/20 4:49 am, Bruce wrote: >> Like the fine help says, back in the olden days Control.Grab used to >> take a scrren shot of the control but that's gone away. Fine. But >> weirdly enough I now find that I want to get an image or picture of a >> control (or wondow) but primarily a specific control. >> >> So, is there a way to so that now? >> Failing that, would anyone have the code of how it was done in >> Gambas2 or any ideas of how it could be done? >> >> tia >> bruce > > Woops, I should have said: Also the control concerned may not be > actually visible at the time! > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From charlie at cogier.com Tue Sep 8 17:18:52 2020 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 8 Sep 2020 16:18:52 +0100 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <585740579.976157.1599407908680@mail1.libero.it> References: <585740579.976157.1599407908680@mail1.libero.it> Message-ID: <9de7728a-8545-dcaf-5b55-9c46af4b7336@cogier.com> Hi Paolo, Run the following code in a new Graphical Project. As Beno?t said put the labels in an array. I hope it helps, Charlie *********************************************** hLabel As Label Label1 As Label HSplit1 As HSplit VBox1 As VBox VBox2 As VBox ComboBox1 As ComboBox TextBox1 As TextBox Button1 As Button hAllLabels As New Label[] iList As New Integer[] Public Sub Button1_Click() ? hAllLabels[ComboBox1.Index].Text = TextBox1.Text End Public Sub Form_Open() ? Dim iLoop As Integer ? With Me ??? .Arrangement = Arrange.Vertical ??? .Padding = 5 ??? .W = 500 ??? .H = 500 ? End With ? With HSplit1 = New HSplit(Me) ??? .Expand = True ? End With ? With VBox1 = New VBox(HSplit1) ??? .Expand = True ? End With ? With VBox2 = New VBox(HSplit1) ??? .Expand = True ??? .Padding = 2 ? End With ? For iLoop = 0 To 20 ??? With hLabel = New Label(VBox1) As "TheLabels" ????? .Height = 21 ????? .Width = 200 ????? .Border = Border.Plain ????? .Alignment = Align.Center ????? .Text = Format(iLoop, "000") ??? End With ??? hAllLabels.Add(hLabel) ??? iList.Add(iLoop) ? Next ? With ComboBox1 = New ComboBox(VBox2) As "ComboBox1" ??? .List = iList ??? .Height = 28 ??? .Index = 0 ? End With ? With Label1 = New Label(VBox2) ??? .Height = 28 ??? .Text = "Enter new name for selected Label" ??? .Alignment = Align.Bottom ? End With ? With TextBox1 = New TextBox(VBox2) As "TextBox1" ??? .Height = 28 ? End With ? With Button1 = New Button(VBox2) As "Button1" ??? .Height = 28 ??? .Text = "Click to change" ? End With ? HSplit1.Layout = [10, 90] End *********************************************** On 06/09/2020 16:58, pinglix via User wrote: > > Hi, > > I have 200 Label components on a form with name Label1, Label2 .... > Label200 and I need to change the Text property of one of them through > an integer index. > > > What is the best way to do it ? > > I cannot find a Find() method by name that returns a reference to the > correct object. > > I can set them to the same Group but then what can I do with it ? > > > Thanks, > > Paolo > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mbelmonte at belmotek.net Tue Sep 8 20:23:53 2020 From: mbelmonte at belmotek.net (Martin Belmonte) Date: Tue, 8 Sep 2020 20:23:53 +0200 Subject: [Gambas-user] how to write text in indexed list of labels In-Reply-To: <585740579.976157.1599407908680@mail1.libero.it> References: <585740579.976157.1599407908680@mail1.libero.it> Message-ID: <13ce3312-a31d-deea-c7df-273eef4ac42a@belmotek.net> Hi Paolo. Were a form with 3 labels and 1 button stx[0] = control type, stx[1] =control name and finaly stx[2] =Text to put in text property I suggest this code Public Sub ControlStamp(stx As String[]) ? Dim ct As Object ? Dim i As Integer ? Dim colex As New Collection ? If stx.Count = 3 Then ??? Select stx[0] ????? Case "TextBox", "ComboBox", "Label" ??????? For Each ct In Me.Controls ????????? If Object.Type(ct) = stx[0] Then ??????????? colex.Add(ct, ct.Name) ????????? Endif ??????? Next ??????? If colex.Exist(stx[1]) Then ????????? colex[stx[1]].Text = stx[2] ??????? Endif ??? End Select ? Endif End Note: this form below can break the flow of the program if you give a non-existent control name. hlabel = Me[idName] Regards. El 6/9/20 a las 17:58, pinglix via User escribi?: > > Hi, > > I have 200 Label components on a form with name Label1, Label2 .... > Label200 and I need to change the Text property of one of them through > an integer index. > > > What is the best way to do it ? > > I cannot find a Find() method by name that returns a reference to the > correct object. > > I can set them to the same Group but then what can I do with it ? > > > Thanks, > > Paolo > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Wed Sep 9 20:01:00 2020 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 9 Sep 2020 20:01:00 +0200 Subject: [Gambas-user] Timeout in class socket (gb.net) Message-ID: Hello, i am still experimenting with the classes Socket and ServerSocket. I have the problem how to use the property Socket.Timeout in a meaningful way. For example I want to connect to a time server on port 37 to get the current timestamp. But there are time servers which are not always reachable. Now the question: How do I intercept the timeout if I use for example the following source code: Public Sub btnConnect_Click() ??? ??? TCP_Socket.Timeout = 1000 '-- TCP-Verbindung initialisieren (Host und Port) ??? TCP_Socket.Host = cmbHost.Text??? ??? If IsInteger(txbPort.Text) Then TCP_Socket.Port = Val(txbPort.Text) ?'-- Verbindung zum Server herstellen?? ??? TCP_Socket.Connect() ... End With kind regards Hans From g4mba5 at gmail.com Wed Sep 9 23:46:13 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 9 Sep 2020 23:46:13 +0200 Subject: [Gambas-user] Timeout in class socket (gb.net) In-Reply-To: References: Message-ID: Le 09/09/2020 ? 20:01, Hans Lehmann a ?crit?: > Hello, > > i am still experimenting with the classes Socket and ServerSocket. I > have the problem how to use the property Socket.Timeout in a meaningful > way. For example I want to connect to a time server on port 37 to get > the current timestamp. But there are time servers which are not always > reachable. Now the question: How do I intercept the timeout if I use for > example the following source code: > > Public Sub btnConnect_Click() > > ??? TCP_Socket.Timeout = 1000 > > '-- TCP-Verbindung initialisieren (Host und Port) > ??? TCP_Socket.Host = cmbHost.Text > ??? If IsInteger(txbPort.Text) Then TCP_Socket.Port = Val(txbPort.Text) > > ?'-- Verbindung zum Server herstellen > ??? TCP_Socket.Connect() > > ... > > End > > > With kind regards > > Hans > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Mmm... I'm afraid this has not been taken into account, and that the socket timeout is not used by connect(). I will try to implement an internal timer to handle connection timeout. As a workaround, you have to start your own timer and cancel the socket if the timer triggers before connection is established. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Thu Sep 10 09:48:29 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 10 Sep 2020 09:48:29 +0200 Subject: [Gambas-user] How to color a font when printing Message-ID: <7ca8c201-96d9-5a98-9742-dcae9ffc9d38@osnanet.de> Somehow I haven't quite understood how Paint.DrawText(...) can be made drawing a colored font. Actually, I figured out how to paint colored rectangles (Paint.FillRect()), but I failed to find a way for fonts. My last trial was Paint.Brush = Paint.Color(theFontColor) Paint.DrawText(...) But text remains black. Could you give me a short hint? Regards Rolf From rwe-sse at osnanet.de Thu Sep 10 11:08:00 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 10 Sep 2020 11:08:00 +0200 Subject: [Gambas-user] How to color a font when printing In-Reply-To: <7ca8c201-96d9-5a98-9742-dcae9ffc9d38@osnanet.de> References: <7ca8c201-96d9-5a98-9742-dcae9ffc9d38@osnanet.de> Message-ID: Am 10.09.20 um 09:48 schrieb Rolf-Werner Eilert: > Somehow I haven't quite understood how Paint.DrawText(...) can be made > drawing a colored font. > > Actually, I figured out how to paint colored rectangles > (Paint.FillRect()), but I failed to find a way for fonts. > > My last trial was > > Paint.Brush = Paint.Color(theFontColor) > Paint.DrawText(...) > > But text remains black. > > Could you give me a short hint? > > Regards > Rolf > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > I just found that this failed due to an error in coding, generally it does run as expected. Sorry for the noise! Rolf From jussi.lahtinen at gmail.com Fri Sep 11 01:55:30 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 11 Sep 2020 02:55:30 +0300 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? Message-ID: Hi! On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed anymore. Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? See the attachment. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TrayIconToolTip-0.0.1.tar.gz Type: application/gzip Size: 11970 bytes Desc: not available URL: From bagonergi at gmail.com Fri Sep 11 11:57:54 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 11 Sep 2020 11:57:54 +0200 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: Il giorno ven 11 set 2020 alle ore 01:56 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > Hi! > On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed > anymore. > Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? > In Ubuntu Gnome the tooltip shows itself as text. See attached image -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: trayicon.png Type: image/png Size: 7042 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Fri Sep 11 14:21:45 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 11 Sep 2020 15:21:45 +0300 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: Yes, that is what I expect to happen. Thanks! Benoit, is this fixable? Jussi On Fri, Sep 11, 2020 at 12:59 PM Gianluigi wrote: > > > Il giorno ven 11 set 2020 alle ore 01:56 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> Hi! >> On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed >> anymore. >> Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? >> > > In Ubuntu Gnome the tooltip shows itself as text. > See attached image > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Sep 11 14:32:59 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 11 Sep 2020 14:32:59 +0200 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: I'm afraid I haven't explained it well, it doesn't appear as a tooltip but as a fixed text. See this image attached Gianluigi Il giorno ven 11 set 2020 alle ore 14:22 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > Yes, that is what I expect to happen. Thanks! > Benoit, is this fixable? > > > Jussi > > On Fri, Sep 11, 2020 at 12:59 PM Gianluigi wrote: > >> >> >> Il giorno ven 11 set 2020 alle ore 01:56 Jussi Lahtinen < >> jussi.lahtinen at gmail.com> ha scritto: >> >>> Hi! >>> On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed >>> anymore. >>> Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? >>> >> >> In Ubuntu Gnome the tooltip shows itself as text. >> See attached image >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tray-icon-tooltip.png Type: image/png Size: 28929 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Fri Sep 11 15:05:49 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 11 Sep 2020 16:05:49 +0300 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: I don't quite understand... where the text appears? In a window border? Jussi On Fri, Sep 11, 2020 at 3:41 PM Gianluigi wrote: > I'm afraid I haven't explained it well, it doesn't appear as a tooltip but > as a fixed text. > See this image attached > > Gianluigi > > Il giorno ven 11 set 2020 alle ore 14:22 Jussi Lahtinen < > jussi.lahtinen at gmail.com> ha scritto: > >> Yes, that is what I expect to happen. Thanks! >> Benoit, is this fixable? >> >> >> Jussi >> >> On Fri, Sep 11, 2020 at 12:59 PM Gianluigi wrote: >> >>> >>> >>> Il giorno ven 11 set 2020 alle ore 01:56 Jussi Lahtinen < >>> jussi.lahtinen at gmail.com> ha scritto: >>> >>>> Hi! >>>> On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed >>>> anymore. >>>> Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? >>>> >>> >>> In Ubuntu Gnome the tooltip shows itself as text. >>> See attached image >>> >>> ----[ 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 bagonergi at gmail.com Fri Sep 11 16:29:35 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 11 Sep 2020 16:29:35 +0200 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: Il giorno ven 11 set 2020 alle ore 15:07 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > I don't quite understand... where the text appears? In a window border? > No, in the Ubuntu menu bar, but as fix text, not as toolti -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ubuntu-bar.png Type: image/png Size: 20218 bytes Desc: not available URL: From adamnt42 at gmail.com Fri Sep 11 16:53:18 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 12 Sep 2020 00:23:18 +0930 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: <8634aee9-4000-0705-2d65-2a64e5a6a735@gmail.com> On 11/9/20 9:25 am, Jussi Lahtinen wrote: > Hi! > On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed > anymore. > Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? > > See the attachment. > > > Jussi > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Confirmed~ Under MATE the original tooltip ("Test") appears OK but after the time event the tooltip does not change. It looks from first glances at the dbus monitor that the new tooltip is not ste. b From jussi.lahtinen at gmail.com Fri Sep 11 20:09:12 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 11 Sep 2020 21:09:12 +0300 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: <8634aee9-4000-0705-2d65-2a64e5a6a735@gmail.com> References: <8634aee9-4000-0705-2d65-2a64e5a6a735@gmail.com> Message-ID: What dbus monitor you use? It would be a good tool to have. Jussi On Fri, Sep 11, 2020 at 5:52 PM Bruce wrote: > On 11/9/20 9:25 am, Jussi Lahtinen wrote: > > Hi! > > On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed > > anymore. > > Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? > > > > See the attachment. > > > > > > Jussi > > > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > Confirmed~ > Under MATE the original tooltip ("Test") appears OK but after the time > event the tooltip does not change. > > It looks from first glances at the dbus monitor that the new tooltip is > not ste. > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Sep 12 00:37:15 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 12 Sep 2020 08:07:15 +0930 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: <8634aee9-4000-0705-2d65-2a64e5a6a735@gmail.com> Message-ID: <19b02725-674d-1999-30e0-01e42ae0ab0a@gmail.com> On 12/9/20 3:39 am, Jussi Lahtinen wrote: > What dbus monitor you use? It would be a good tool to have. > > > Jussi > Just the qdbusviewer from Qt Company b From angelnunez123 at gmail.com Sun Sep 13 07:06:15 2020 From: angelnunez123 at gmail.com (Angel) Date: Sun, 13 Sep 2020 07:06:15 +0200 Subject: [Gambas-user] possible bug in gb. loggig Message-ID: <1ee0bb0b-ded8-32b6-6d65-39a16f1d0528@gmail.com> The ComplexLogger object always returns "[ComplexLogger.Log.60]" as the file, method and line that invoked the object. A small example. ' Gambas module file Private milog As ComplexLogger Private salida_consola As ConsoleHandler Private contador As Integer Public Sub Main() ?? Dim a As Integer ?? salida_consola = New ConsoleHandler(ConsoleHandler.STDOUT, LogLevel.Debug) ?? milog = New ComplexLogger("", salida_consola) ?? milog.Begin() ?? milog("Creado el objeto milog y el objeto salida_consola") ?? For a = 0 To 10 ????? Inc contador ????? sub1 ????? sub2 ?? Next End Private Sub sub1() ?? milog("Estoy en sub1 y el valor de contador es: " & contador, LogLevel.Error) End Private Sub sub2() ?? milog("Estoy en sub2 CONTADOR = " & contador) End my system: [System] Gambas=3.15.1 OperatingSystem=Linux Kernel=4.19.0-10-amd64 Architecture=x86_64 Distribution=debian 10.5 Desktop=MATE Theme=fusion Language=es_ES.UTF-8 Memory=7966M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.13 GStreamer=libgstreamer-1.0.so.0.1404.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.1 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.82.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.11.3 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=mate DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=mate GIO_LAUNCHED_DESKTOP_FILE=/.local/share/applications/menulibre-gambas.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=2628 GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge:canberra-gtk-module GTK_OVERLAY_SCROLLING=0 HOME= LANG=es_ES.UTF-8 LOGNAME= MATE_DESKTOP_SESSION_ID=this-is-deprecated PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PWD= QT_ACCESSIBILITY=1 QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_LOGGING_RULES=*.debug=false QT_SCALE_FACTOR=1 SESSION_MANAGER=local/:@/tmp/.ICE-unix/1092,unix/:/tmp/.ICE-unix/1092 SHELL=/bin/bash SSH_AGENT_PID=1124 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/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_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 -------------- next part -------------- An HTML attachment was scrubbed... URL: From angelnunez123 at gmail.com Sun Sep 13 12:54:56 2020 From: angelnunez123 at gmail.com (Angel) Date: Sun, 13 Sep 2020 12:54:56 +0200 Subject: [Gambas-user] bug in function cstr()? Message-ID: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> in the cstr () function with dates it gives me the following results: Print now??? ??? ??? ?? 13/09/2020 12:36:21 Print str(now)??? ??? 13/09/2020 12:36:38 Print cstr(now) _09/13/2020 10:36:30.929_ Print date??? ??? ????? 13/09/2020 00:00:00 Print str(date)?????? 13/09/2020 00:00:00 Print cstr(date) _09/12/2020 22:00:00_ my time zone: Time zone: Europe/Madrid (CEST, +0200) my vesion of gambas:? 3.15.1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Sep 13 13:26:05 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 13 Sep 2020 13:26:05 +0200 Subject: [Gambas-user] bug in function cstr()? In-Reply-To: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> Message-ID: Il giorno dom 13 set 2020 alle ore 13:03 Angel ha scritto: > in the cstr () function with dates it gives me the following results: > > Print now 13/09/2020 12:36:21 > > Print str(now) 13/09/2020 12:36:38 > > Print cstr(now) *09/13/2020 10:36:30.929* > > Print date 13/09/2020 00:00:00 > > Print str(date) 13/09/2020 00:00:00 > > Print cstr(date) *09/12/2020 22:00:00* > > my time zone: Time zone: Europe/Madrid (CEST, +0200) > As you can read here: http://gambaswiki.org/wiki/lang/print "The expressions are converted to strings by the Str$ function." So everything is fine, read here for more information: http://gambaswiki.org/wiki/doc/date Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Sep 13 13:21:26 2020 From: taboege at gmail.com (Tobias Boege) Date: Sun, 13 Sep 2020 13:21:26 +0200 Subject: [Gambas-user] bug in function cstr()? In-Reply-To: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> Message-ID: <20200913111957.GA828550@highrise.localdomain> On Sun, 13 Sep 2020, Angel wrote: > in the cstr () function with dates it gives me the following results: > > Print now??? ??? ??? ?? 13/09/2020 12:36:21 > > Print str(now)??? ??? 13/09/2020 12:36:38 > > Print cstr(now) _09/13/2020 10:36:30.929_ > > Print date??? ??? ????? 13/09/2020 00:00:00 > > Print str(date)?????? 13/09/2020 00:00:00 > > Print cstr(date) _09/12/2020 22:00:00_ > > my time zone: Time zone: Europe/Madrid (CEST, +0200) > > my vesion of gambas:? 3.15.1 > It's not a bug. When you Print a value, it is internally converted to a string using Str() semantics, so `Print x` and `Print Str(x)` should always give you the same result. The (documented!) difference between Str and CStr is that Str uses localization information, like your timezone, and CStr doesn't. Gambas stores dates internally in UTC, so when you Print CStr(Now) you get the `Now` in UTC, which reads the same as two hours in the past for you in Madrid. But when you `Print Str(Now)`, the Date is treated as if it were relative to your current timezone instead of UTC, so you get the same information printed that your wallclock shows you. Also notice that the date format changes -- this is due to another part of your localization. Str picks it up, CStr doesn't. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Sep 13 14:32:37 2020 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 13 Sep 2020 14:32:37 +0200 Subject: [Gambas-user] bug in function cstr()? In-Reply-To: References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> Message-ID: Here it is well highlighted why I would prefer there was a forum instead of a mailing list. Here it seems that I want to add something to what Tobias explained well, however when I answered, no answer was still present. And luckily I haven't written anything opposite to hers ;-D Since I love Christof and appreciate his work, I ask, to avoid bad impressions to anyone, if it is possible to sort the answers by arrival and not by sending, leaving of course the sending date otherwise we would have the same problem but reversed. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Sun Sep 13 15:02:19 2020 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 13 Sep 2020 14:02:19 +0100 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: Hi Jussi, I have found a work around. If you change the following in your program it works: - Public Sub Timer1_Timer() ? hIcon.Hide ? hIcon.Text = "This should be visible, when mouse pointer is on the tray icon. Time is now: " & CStr(Now) ? hIcon.Show End I hope that helps. Charlie On 11/09/2020 00:55, Jussi Lahtinen wrote: > Hi! > On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not > refreshed anymore. > Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? > > See the attachment. > > > Jussi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Sep 13 16:42:07 2020 From: taboege at gmail.com (Tobias Boege) Date: Sun, 13 Sep 2020 16:42:07 +0200 Subject: [Gambas-user] bug in function cstr()? In-Reply-To: <1ce37e7b-fe9b-d275-775b-8f3e4a6d2f65@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <20200913111957.GA828550@highrise.localdomain> <1ce37e7b-fe9b-d275-775b-8f3e4a6d2f65@gmail.com> Message-ID: <20200913144207.GC828550@highrise.localdomain> On Sun, 13 Sep 2020, Angel wrote: > El 13/9/20 a las 13:21, Tobias Boege escribi?: > > It's not a bug. When you Print a value, it is internally converted to > > a string using Str() semantics, so `Print x` and `Print Str(x)` should > > always give you the same result. > > > > The (documented!) difference between Str and CStr is that Str uses > > localization information, like your timezone, and CStr doesn't. > > Gambas stores dates internally in UTC, so when you > > > > Print CStr(Now) > > > > you get the `Now` in UTC, which reads the same as two hours in the past > > for you in Madrid. But when you `Print Str(Now)`, the Date is treated > > as if it were relative to your current timezone instead of UTC, so you > > get the same information printed that your wallclock shows you. > > > > Also notice that the date format changes -- this is due to another part > > of your localization. Str picks it up, CStr doesn't. > > > I don't think I can explain it well, I imagine the time is UTC, but 1 day > remains. > And that's what strikes me as a bug. > > Sorry for my English > > Print cstr(date)? 09/12/2020 22:00:00 > Well, a Date without a time component (such as the one returned by the Date() function) is secretly a Date with the time component set to zero. So when you call Date on your spanish computer, what you get is the timestamp pointing at 2020-09-13 00:00:00 Madrid time, which is the same timestamp as 2020-09-12 22:00:00 in UTC. It is not a bug. It is by design and documented. It certainly can be considered a trap because over the years many people expressed confusion about this. But that is partly because we aren't confronted with time- zone arithmetic usually. Most often when we say "today", we don't say it to someone in another timezone and not with the intention of relaying a universal point in time that is precise to the millisecond, but Gambas still has to have a clear idea about this stuff somewhere right in its core. Regards, Tobias -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Sun Sep 13 19:30:50 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 13 Sep 2020 13:30:50 -0400 Subject: [Gambas-user] possible bug in gb. loggig In-Reply-To: <1ee0bb0b-ded8-32b6-6d65-39a16f1d0528@gmail.com> References: <1ee0bb0b-ded8-32b6-6d65-39a16f1d0528@gmail.com> Message-ID: On 9/13/20 1:06 AM, Angel wrote: > The ComplexLogger object always returns "[ComplexLogger.Log.60]" as the file, method and line that invoked the object. It does appear to be a bug. ComplexLogger.class relies on Formatter() to process the Format string. Formatter() is called on line 60 of ComplexLogger.class. -- Lee From jussi.lahtinen at gmail.com Mon Sep 14 01:45:46 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 14 Sep 2020 02:45:46 +0300 Subject: [Gambas-user] Trayicon tooltips are not refreshed anymore? In-Reply-To: References: Message-ID: I thought that, but I did not test it, because I expected it to cause troubles like moving icon position or flickering. But it seems to work. Thanks! Jussi On Sun, Sep 13, 2020 at 4:25 PM Charlie Ogier wrote: > Hi Jussi, > > I have found a work around. If you change the following in your program it > works: - > > Public Sub Timer1_Timer() > > hIcon.Hide > hIcon.Text = "This should be visible, when mouse pointer is on the tray > icon. Time is now: " & CStr(Now) > hIcon.Show > > End > > I hope that helps. > > Charlie > > On 11/09/2020 00:55, Jussi Lahtinen wrote: > > Hi! > On Linux Mint 20 Cinnamon, it seems trayicon tooltips are not refreshed > anymore. > Changes in Cinnamon or in Gambas? IE does this still work on Ubuntu etc? > > See the attachment. > > > Jussi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at lixce.com Mon Sep 14 01:23:30 2020 From: james at lixce.com (james at lixce.com) Date: Sun, 13 Sep 2020 23:23:30 GMT Subject: [Gambas-user] Gambas running on the PinePhone (1.2) Message-ID: Managed to get Gambas installed on the PinePhone under Manjaro Alpha 3 with Posh. Ran a very simple gtk3 test program with a label, picture and button. Worked as expected after exporting LANG=C. I don't use gtk so I have to get Qt working which segfaults at the moment. Installed Gambas from my packages compiled on a RockPro64, from the Arch Repos, there has been an update or two since I compiled them. IDE will not run, complains about the compiler and jit. This really opens up lots of possibilities. Regards, -j From angelnunez123 at gmail.com Mon Sep 14 09:51:25 2020 From: angelnunez123 at gmail.com (Angel) Date: Mon, 14 Sep 2020 09:51:25 +0200 Subject: [Gambas-user] possible bug in gb. loggig In-Reply-To: References: <1ee0bb0b-ded8-32b6-6d65-39a16f1d0528@gmail.com> Message-ID: It seems that the Formatter () function calls GetCallLocation () Private Function GetCallLocation () As String Dim iCount As Integer = 1 While System.Backtrace [iCount] Begins "Logger" Or System.Backtrace [iCount] Begins "Formatter" Inc iCount Wend Return System.Backtrace [iCount] End When the Formatter () function is called from the ComplexLogger class, when the GetCallLocation () function is reached at some point System.Backtrace [iCount] has a value of "ComplexLogger.Log.60" and exits before reaching the function used by the ComplexLogger class. I would also like (if possible) the author to change the calls in Formatter () from Cstr () to Str () since curious errors can occur if the format is $ (date) depending on the location. El 13/9/20 a las 19:30, T Lee Davidson escribi?: > On 9/13/20 1:06 AM, Angel wrote: >> The ComplexLogger object always returns "[ComplexLogger.Log.60]" as >> the file, method and line that invoked the object. > > It does appear to be a bug. > > ComplexLogger.class relies on Formatter() to process the Format > string. Formatter() is called on line 60 of ComplexLogger.class. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Mon Sep 14 11:23:53 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 14 Sep 2020 11:23:53 +0200 Subject: [Gambas-user] bug in function cstr()? In-Reply-To: <20200913144207.GC828550@highrise.localdomain> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <20200913111957.GA828550@highrise.localdomain> <1ce37e7b-fe9b-d275-775b-8f3e4a6d2f65@gmail.com> <20200913144207.GC828550@highrise.localdomain> Message-ID: <9dc271f9-0835-bb6f-69c0-52e54ab6d00d@osnanet.de> Am 13.09.20 um 16:42 schrieb Tobias Boege: > On Sun, 13 Sep 2020, Angel wrote: >> El 13/9/20 a las 13:21, Tobias Boege escribi?: >>> It's not a bug. When you Print a value, it is internally converted to >>> a string using Str() semantics, so `Print x` and `Print Str(x)` should >>> always give you the same result. >>> >>> The (documented!) difference between Str and CStr is that Str uses >>> localization information, like your timezone, and CStr doesn't. >>> Gambas stores dates internally in UTC, so when you >>> >>> Print CStr(Now) >>> >>> you get the `Now` in UTC, which reads the same as two hours in the past >>> for you in Madrid. But when you `Print Str(Now)`, the Date is treated >>> as if it were relative to your current timezone instead of UTC, so you >>> get the same information printed that your wallclock shows you. >>> >>> Also notice that the date format changes -- this is due to another part >>> of your localization. Str picks it up, CStr doesn't. >>> >> I don't think I can explain it well, I imagine the time is UTC, but 1 day >> remains. >> And that's what strikes me as a bug. >> >> Sorry for my English >> >> Print cstr(date)? 09/12/2020 22:00:00 >> > > Well, a Date without a time component (such as the one returned by the > Date() function) is secretly a Date with the time component set to zero. > > So when you call Date on your spanish computer, what you get is the > timestamp pointing at 2020-09-13 00:00:00 Madrid time, which is the > same timestamp as 2020-09-12 22:00:00 in UTC. > > It is not a bug. It is by design and documented. It certainly can be > considered a trap because over the years many people expressed confusion > about this. But that is partly because we aren't confronted with time- > zone arithmetic usually. Most often when we say "today", we don't say > it to someone in another timezone and not with the intention of relaying > a universal point in time that is precise to the millisecond, but Gambas > still has to have a clear idea about this stuff somewhere right in its > core. > > Regards, > Tobias > As far as I remember, especially this "time zero" thing wasn't there in older Gambas. When it was new, it did confuse me a lot and I had to rewrite a lot of code. Strange enough, in my calendar program, when I let it run on my laptop at home (old Suse Linux on it), it steps back a day. Don't know why, but in the office (Ubuntu 18) it runs well. Maybe it's because the Gambas version on it is older, too? And for communication with folks in other time zones, on other planets and in different spacetime continuums we still have star time... But I wouldn't dare trying to recalculate into that :) Regards Rolf From g4mba5 at gmail.com Mon Sep 14 11:30:32 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 Sep 2020 11:30:32 +0200 Subject: [Gambas-user] Gambas running on the PinePhone (1.2) In-Reply-To: <20200914072402.93C112022A6B@h08.hostsharing.net> References: <20200914072402.93C112022A6B@h08.hostsharing.net> Message-ID: <267807ef-c472-7c49-49fe-be6da7f0fff3@gmail.com> Le 14/09/2020 ? 01:23, james at lixce.com a ?crit : > > Managed to get Gambas installed on the PinePhone under Manjaro Alpha > 3 with Posh. > > Ran a very simple gtk3 test program with a label, picture and button. > Worked as expected after exporting LANG=C. I don't use gtk so I have > to get Qt working which segfaults at the moment. > > Installed Gambas from my packages compiled on a RockPro64, from the > Arch Repos, there has been an update or two since I compiled them. > > IDE will not run, complains about the compiler and jit. > > This really opens up lots of possibilities. > > Regards, -j > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Here is the picture you tried to post, reduced from 4 Mb to 90 K. Which complains do you get from the IDE? -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: IMG_20200914_114931.jpg Type: image/jpeg Size: 92408 bytes Desc: not available URL: From james at lixce.com Mon Sep 14 06:28:56 2020 From: james at lixce.com (james at lixce.com) Date: Mon, 14 Sep 2020 04:28:56 GMT Subject: [Gambas-user] gambas3 error on PinePhone Message-ID: The output when trying to start from a terminal on the phone is: CCompilation.Init.26: Compiler not found CCompilation.Init.26 CCompilation.Run.55 Jit._Compile.130 I haven't looked at the IDE code yet. I'm getting ready to move from Singapore back to California, things are a little hectic. Thanks for resizing the pic. Too many computers and phones on my desk right now. Regards, -j user-request at lists.gambas-basic.org 20200914-05:33---------------------------- Here is the picture you tried to post, reduced from 4 Mb to 90 K. Which complains do you get from the IDE? -- Beno?t Minisini From jussi.lahtinen at gmail.com Mon Sep 14 15:30:46 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 14 Sep 2020 16:30:46 +0300 Subject: [Gambas-user] gambas3 error on PinePhone In-Reply-To: <20200914122901.DFBBA2022A6B@h08.hostsharing.net> References: <20200914122901.DFBBA2022A6B@h08.hostsharing.net> Message-ID: I think you can just disable the JIT (run the IDE with env GB_NO_JIT=1) or install some C compiler. Jussi On Mon, Sep 14, 2020 at 3:29 PM wrote: > The output when trying to start from a terminal on the phone is: > > CCompilation.Init.26: Compiler not found > CCompilation.Init.26 CCompilation.Run.55 Jit._Compile.130 > > I haven't looked at the IDE code yet. > > I'm getting ready to move from Singapore back to California, things are a > little hectic. > > Thanks for resizing the pic. Too many computers and phones on my desk > right now. > > Regards, > -j > > > user-request at lists.gambas-basic.org > 20200914-05:33---------------------------- > > Here is the picture you tried to post, reduced from 4 Mb to 90 K. > > Which complains do you get from the IDE? > > -- > Beno?t Minisini > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Mon Sep 14 21:17:47 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 14 Sep 2020 21:17:47 +0200 Subject: [Gambas-user] gambas3 error on PinePhone In-Reply-To: References: <20200914122901.DFBBA2022A6B@h08.hostsharing.net> Message-ID: <2abb58af-4868-431e-787d-fb946419a199@gmail.com> Le 14/09/2020 ? 15:30, Jussi Lahtinen a ?crit?: > I think you can just disable the JIT (run the IDE with env GB_NO_JIT=1) > or install some C compiler. > > > Jussi > In the last commit, the interpreter does not stop anymore in no compiler is found. It just prints a warning message and automatically just-in-time compilation. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Tue Sep 15 00:48:42 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 14 Sep 2020 18:48:42 -0400 Subject: [Gambas-user] possible bug in gb. loggig In-Reply-To: References: <1ee0bb0b-ded8-32b6-6d65-39a16f1d0528@gmail.com> Message-ID: <0fd3e753-7f35-e3e4-081e-58746e1c5246@gmail.com> On 9/14/20 3:51 AM, Angel wrote: > It seems that the Formatter () function calls GetCallLocation () > > > Private Function GetCallLocation () As String > > Dim iCount As Integer = 1 > > While System.Backtrace [iCount] Begins "Logger" Or System.Backtrace [iCount] Begins "Formatter" > Inc iCount > Wend > > Return System.Backtrace [iCount] > > End > > When the Formatter () function is called from the ComplexLogger class, when the GetCallLocation () function is reached > at some point System.Backtrace [iCount] has a value of "ComplexLogger.Log.60" and exits before reaching the function used by the > ComplexLogger class. > > I would also like (if possible) the author to change the calls in Formatter () from Cstr () to Str () since curious errors can > occur if the format is $ (date) depending on the location. > I'm wondering if perhaps that function should be: Private Function GetCallLocation() As String Dim iCount As Integer = 1 While System.Backtrace[iCount] Begins "ComplexLogger" Or System.Backtrace[iCount] Begins "Logger" Or System.Backtrace[iCount] Begins "Formatter" Inc iCount Wend Return System.Backtrace[iCount] End -- Lee From adamnt42 at gmail.com Tue Sep 15 05:58:36 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 15 Sep 2020 13:28:36 +0930 Subject: [Gambas-user] possible bug in gb. loggig Message-ID: <5913a338-60e4-b8c1-5eaf-e46dd2adc915@gmail.com> Looks like this never got delivered. b On 14/9/20 11:26 pm, Bruce wrote: > Inline, and from dim memory of when I was involved in writing the > original Logger. > > On 14/9/20 5:21 pm, Angel wrote: >> It seems that the Formatter () function calls GetCallLocation () >> >> >> Private Function GetCallLocation () As String >> >> Dim iCount As Integer = 1 >> >> While System.Backtrace [iCount] Begins "Logger" Or System.Backtrace >> [iCount] Begins "Formatter" >> Inc iCount >> Wend >> >> Return System.Backtrace [iCount] >> >> End >> >> When the Formatter () function is called from the ComplexLogger class, >> when the GetCallLocation () function is reached >> at some point System.Backtrace [iCount] has a value of >> "ComplexLogger.Log.60" and exits before reaching the function used by >> the ComplexLogger class. >> > > It looks like the Formater also needs to detect ComplexLogger as well as > the other two unwraps. i.e. > While System.Backtrace [iCount] Begins "Logger" Or > "Formatter" Or System.Backtrace[iCount] Begins "ComplexLogger" > > ( The comlexLogger was addad after I last has access to the source.) > >> I would also like (if possible) the author to change the calls in >> Formatter () from Cstr () to Str () since curious errors can occur if >> the format is $ (date) depending on the location. >> > > From very dim meory there was a reason for doing that at the time. > Perhaps it had to do with logging across time zones onto a server > running the application using the logger. Actually IIRC it was in our > Auction system that used a client program in one timezone (actually > several clients in different timezones) and logged events all had to be > co-ordinated into a single reference "field" so we used a UTC stamp. > Maybe not, it was simply that long ago. > > But anyway and if the code is wrong with the newer date handling regime > then consider the issue of logging across timezones anyway. Somehow the > logging time must be co-ordinated to a single frame of reference. > > If a program running in UTC+10 writes a message to a centralised log > file somewhere and this is followed by another system running in UTC+6 > and they bith write messages in their local time then the log will be > "out if order". To surmount that I think we decided to only write times > in UTC. That way the messages should appear "in order" regardless of the > time on the system that logs the message. > > Of course that means the anything (people included) trying to interpret > the log have to be aware of what the timestamp really means. If you > think about it this way even if you are composing in a single time > frame, the log file still must register timestamps within a single > defined frame. What would happen at daylight savings changeover..... > > regards > Bruce From adamnt42 at gmail.com Tue Sep 15 15:39:03 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 15 Sep 2020 23:09:03 +0930 Subject: [Gambas-user] [CRASH REPORT] Intranet Browser Message-ID: <92654ae2-406d-2e5a-d79b-cd1567e2f15a@gmail.com> Hello, Damned, my program crashed Gambas that way : Setting or even trying to view the Placholder property value crashes the running program -------------- next part -------------- A non-text attachment was scrubbed... Name: inbrowser-0.0.1-crash-200915-230410.tar.bz2 Type: application/x-bzip Size: 2070 bytes Desc: not available URL: From adamnt42 at gmail.com Tue Sep 15 15:46:29 2020 From: adamnt42 at gmail.com (Bruce) Date: Tue, 15 Sep 2020 23:16:29 +0930 Subject: [Gambas-user] [CRASH REPORT] Intranet Browser In-Reply-To: <92654ae2-406d-2e5a-d79b-cd1567e2f15a@gmail.com> References: <92654ae2-406d-2e5a-d79b-cd1567e2f15a@gmail.com> Message-ID: <7cbd4048-04b7-ec6d-baf3-874522524ea1@gmail.com> On 15/9/20 11:09 pm, Bruce wrote: > Hello, > > Damned, my program crashed Gambas that way : > > Setting or even trying to view the Placholder property value crashes the > running program (stupid machine sent the message before I had finished typing.) A plain ordinary combobox with 6-7 entries. When I open the combobox properties in debug mode in the IDE and scroll down to where this Placeholder property would be visible, the running program segfaults. Similarly trying to Print cboXyz.Placeholder or setting it in code causes the segfault. This is off a recent commit, maybe arounf c921f82d08. regards bruce From james at lixce.com Tue Sep 15 20:36:48 2020 From: james at lixce.com (james at lixce.com) Date: Tue, 15 Sep 2020 18:36:48 GMT Subject: [Gambas-user] Gambas 3.15.1-1 on PinePhone Message-ID: Hmm... my emails are getting bounced as spam I compiled from the Arch repos Installing gcc on the PinePhone removed the compiler and jit errors but I get a segfault instead. Simple Qt5 gambas program = segfault Simple GTK3 gambas program = works complex GTK3 gambas program = segfault Thanks all, -j From adamnt42 at gmail.com Wed Sep 16 21:25:33 2020 From: adamnt42 at gmail.com (Bruce) Date: Thu, 17 Sep 2020 04:55:33 +0930 Subject: [Gambas-user] (Quicky) Separators in combobox lists Message-ID: <4604ea47-7dc0-e0fc-a596-0c6f8a1be080@gmail.com> (Don't think too hard on this one it's just an idea) We have one (exactly one) combo box that has a list that is basically a set of "group wide document" items followed by a set of "personal shared document" items. Like Project x Project y Project z bb Notes fj Notes jd notes I'd like to get a separation line between the two sets. I've tried dashes and equals signes but they just look awful. Anyway, just a quicky, anyone got any ideas? tia bruce From jussi.lahtinen at gmail.com Wed Sep 16 21:34:55 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 16 Sep 2020 22:34:55 +0300 Subject: [Gambas-user] Gambas 3.15.1-1 on PinePhone In-Reply-To: <20200916184902.0045E2023D09@h08.hostsharing.net> References: <20200916184902.0045E2023D09@h08.hostsharing.net> Message-ID: > > I compiled from the Arch repos > Source code repos? Please use git to get the official sources. > Simple Qt5 gambas program = segfault > Simple GTK3 gambas program = works > complex GTK3 gambas program = segfault > Please see this: http://gambaswiki.org/wiki/doc/report?nh&l=en#t5 Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Sep 16 23:42:11 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 16 Sep 2020 17:42:11 -0400 Subject: [Gambas-user] (Quicky) Separators in combobox lists In-Reply-To: <4604ea47-7dc0-e0fc-a596-0c6f8a1be080@gmail.com> References: <4604ea47-7dc0-e0fc-a596-0c6f8a1be080@gmail.com> Message-ID: <24dac51f-8e33-8576-9be8-f2bd0537d8eb@gmail.com> On 9/16/20 3:25 PM, Bruce wrote: > (Don't think too hard on this one it's just an idea) > > We have one (exactly one) combo box that has a list that is basically a set of "group wide document" items followed by a set of > "personal shared document" items. Like > ????Project x > ????Project y > ????Project z > ????bb Notes > ????fj Notes > ????jd notes > I'd like to get a separation line between the two sets. > I've tried dashes and equals signes but they just look awful. > > Anyway, just a quicky, anyone got any ideas? > > tia > bruce Space$(10) em-dash (U+2014) two-em dash (U+2E3A) three-em dash (U+2E3B) -- Lee From g4mba5 at gmail.com Thu Sep 17 15:37:38 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 Sep 2020 15:37:38 +0200 Subject: [Gambas-user] Release of Gambas 3.15.2 Message-ID: <2a715ed3-7263-a1cf-568f-c2f88c27bcd6@gmail.com> Hi, I have just released Gambas 3.15.2. It includes the backport of all bug fixed since 3.15.1. Download it at: https://gitlab.com/gambas/gambas/-/archive/3.15.2/gambas-3.15.2.tar.bz2 And read the release notes at: https://gambaswiki.org/wiki/doc/release/3.15.2 Stable Ubuntu PPA will be updated in a few days. Enjoy! -- Beno?t Minisini From isafiur at gmail.com Thu Sep 17 18:55:49 2020 From: isafiur at gmail.com (Safiur Rahman) Date: Thu, 17 Sep 2020 22:40:49 +0545 Subject: [Gambas-user] Adding meta tag in gb.web.gui Message-ID: How can I add meta tag in gb.web.gui project. Is there any way to add without altering Header in source code From adamnt42 at gmail.com Thu Sep 17 20:09:06 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 18 Sep 2020 03:39:06 +0930 Subject: [Gambas-user] 3.15.2 error Message-ID: [bb at bluecow2 gambas3 (master)]$ gambas3 ** ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( ** Cannot found method 'Jit.&1' in 'gb.jit' component ** ** ERROR: Unable to find method _Search in class Jit. Symbol not found ** ** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2]. ** [1] http://gambaswiki.org/bugtracker ** [2] https://lists.gambas-basic.org/listinfo/user ** Next steps? tia bruce From jussi.lahtinen at gmail.com Thu Sep 17 23:42:30 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 18 Sep 2020 00:42:30 +0300 Subject: [Gambas-user] 3.15.2 error In-Reply-To: References: Message-ID: What is the Gambas version? Can you send a project, which can reproduce the problem? Jussi On Thu, Sep 17, 2020 at 9:08 PM Bruce wrote: > [bb at bluecow2 gambas3 (master)]$ gambas3 > > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Cannot found method 'Jit.&1' in 'gb.jit' component > ** > ** ERROR: Unable to find method _Search in class Jit. Symbol not found > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** > > Next steps? > > tia > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Sep 17 23:45:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 17 Sep 2020 23:45:58 +0200 Subject: [Gambas-user] 3.15.2 error In-Reply-To: References: Message-ID: Le 17/09/2020 ? 20:09, Bruce a ?crit?: > [bb at bluecow2 gambas3 (master)]$ gambas3 > > ** > ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( > ** Cannot found method 'Jit.&1' in 'gb.jit' component > ** > ** ERROR: Unable to find method _Search in class Jit. Symbol not found > ** > ** Please send a bug report to the gambas bugtracker [1] or to the > gambas mailing-list [2]. > ** [1] http://gambaswiki.org/bugtracker > ** [2] https://lists.gambas-basic.org/listinfo/user > ** > > Next steps? > > tia > bruce > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Are you sure that everything were correctly compiled and installed? -- Beno?t Minisini From adamnt42 at gmail.com Fri Sep 18 01:18:11 2020 From: adamnt42 at gmail.com (Bruce) Date: Fri, 18 Sep 2020 08:48:11 +0930 Subject: [Gambas-user] 3.15.2 error In-Reply-To: References: Message-ID: On 18/9/20 7:15 am, Beno?t Minisini wrote: > Le 17/09/2020 ? 20:09, Bruce a ?crit?: >> [bb at bluecow2 gambas3 (master)]$ gambas3 >> >> ** >> ** OOPS! INTERNAL ERROR. Program aborting, sorry! :-( >> ** Cannot found method 'Jit.&1' in 'gb.jit' component >> ** >> ** ERROR: Unable to find method _Search in class Jit. Symbol not found >> ** >> ** Please send a bug report to the gambas bugtracker [1] or to the >> gambas mailing-list [2]. >> ** [1] http://gambaswiki.org/bugtracker >> ** [2] https://lists.gambas-basic.org/listinfo/user >> ** >> >> Next steps? >> >> tia >> bruce >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Are you sure that everything were correctly compiled and installed? > Found it. I somehow ended up with a corrupt version of llvm links on this machine. redid the make install and now it works. SFTN bruce From bagonergi at gmail.com Fri Sep 18 16:02:39 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 18 Sep 2020 16:02:39 +0200 Subject: [Gambas-user] (Quicky) Separators in combobox lists In-Reply-To: <24dac51f-8e33-8576-9be8-f2bd0537d8eb@gmail.com> References: <4604ea47-7dc0-e0fc-a596-0c6f8a1be080@gmail.com> <24dac51f-8e33-8576-9be8-f2bd0537d8eb@gmail.com> Message-ID: Il giorno mer 16 set 2020 alle ore 23:43 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 9/16/20 3:25 PM, Bruce wrote: > > (Don't think too hard on this one it's just an idea) > > > Anyway, just a quicky, anyone got any ideas? > > > > Space$(10) > .. > I enclose a minimal combobox type component which shows a list with the desired number of lines (max 20), and separators of different style, color and thickness. As mentioned it is minimal, if you like and want the same things as the original you can add them. Attached as a zip to avoid problems with GMail. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ComboRowsSeparator.zip Type: application/zip Size: 30130 bytes Desc: not available URL: From bagonergi at gmail.com Fri Sep 18 20:02:55 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 18 Sep 2020 20:02:55 +0200 Subject: [Gambas-user] (Quicky) Separators in combobox lists In-Reply-To: References: <4604ea47-7dc0-e0fc-a596-0c6f8a1be080@gmail.com> <24dac51f-8e33-8576-9be8-f2bd0537d8eb@gmail.com> Message-ID: Il giorno ven 18 set 2020 alle ore 16:02 Gianluigi ha scritto: > > > Il giorno mer 16 set 2020 alle ore 23:43 T Lee Davidson < > t.lee.davidson at gmail.com> ha scritto: > >> On 9/16/20 3:25 PM, Bruce wrote: >> > (Don't think too hard on this one it's just an idea) >> >> > Anyway, just a quicky, anyone got any ideas? >> > >> >> Space$(10) >> .. >> > > I enclose a minimal combobox type component which shows a list with the > desired number of lines (max 20), and separators of different style, color > and thickness. > ... > Attached as a zip to avoid problems with GMail. > Who explains to me how I could have inserted an enumeration instead of an integer property in the constant _properties (SeparatorStyle {Solid; Dotted; Dashed; Double} = Solid)? I had to use a string but it doesn't work well if I have to set the style from code. Or do I have to do something different, like inherit from another class? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Fri Sep 18 20:30:50 2020 From: adamnt42 at gmail.com (Bruce) Date: Sat, 19 Sep 2020 04:00:50 +0930 Subject: [Gambas-user] (Quicky) Separators in combobox lists In-Reply-To: References: <4604ea47-7dc0-e0fc-a596-0c6f8a1be080@gmail.com> <24dac51f-8e33-8576-9be8-f2bd0537d8eb@gmail.com> Message-ID: On 19/9/20 3:32 am, Gianluigi wrote: > Il giorno ven 18 set 2020 alle ore 16:02 Gianluigi ha > scritto: > >> >> >> Il giorno mer 16 set 2020 alle ore 23:43 T Lee Davidson < >> t.lee.davidson at gmail.com> ha scritto: >> >>> On 9/16/20 3:25 PM, Bruce wrote: >>>> (Don't think too hard on this one it's just an idea) >>> >>>> Anyway, just a quicky, anyone got any ideas? >>>> >>> >>> Space$(10) >>> .. >>> >> >> I enclose a minimal combobox type component which shows a list with the >> desired number of lines (max 20), and separators of different style, color >> and thickness. >> ... >> Attached as a zip to avoid problems with GMail. >> > > Who explains to me how I could have inserted an enumeration instead of an > integer property in the constant _properties (SeparatorStyle {Solid; > Dotted; Dashed; Double} = Solid)? > I had to use a string but it doesn't work well if I have to set the style > from code. > > Or do I have to do something different, like inherit from another class? > > Regards > Gianluigi > AFAIK and according to the help, you cant use an enum. But you can use a (public) constant list, so create a class, say "septype" that just exposes the constants and use _properties ... ,septype {*} = septype.Solid ..... and you can use the same constants in your code. b (swnt from phone, exguse typos) From bagonergi at gmail.com Fri Sep 18 23:04:39 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 18 Sep 2020 23:04:39 +0200 Subject: [Gambas-user] (Quicky) Separators in combobox lists In-Reply-To: References: <4604ea47-7dc0-e0fc-a596-0c6f8a1be080@gmail.com> <24dac51f-8e33-8576-9be8-f2bd0537d8eb@gmail.com> Message-ID: Il giorno ven 18 set 2020 alle ore 20:37 Bruce ha scritto: > On 19/9/20 3:32 am, Gianluigi wrote: > > Il giorno ven 18 set 2020 alle ore 16:02 Gianluigi > ha > > scritto: > > > >> > >> > >> Il giorno mer 16 set 2020 alle ore 23:43 T Lee Davidson < > >> t.lee.davidson at gmail.com> ha scritto: > >> > >>> On 9/16/20 3:25 PM, Bruce wrote: > >>>> (Don't think too hard on this one it's just an idea) > >>> > >>>> Anyway, just a quicky, anyone got any ideas? > >>>> > >>> > >>> Space$(10) > >>> .. > >>> > >> > >> I enclose a minimal combobox type component which shows a list with the > >> desired number of lines (max 20), and separators of different style, > color > >> and thickness. > >> ... > >> Attached as a zip to avoid problems with GMail. > >> > > > > Who explains to me how I could have inserted an enumeration instead of an > >... > > AFAIK and according to the help, you cant use an enum. > But you can use a (public) constant list, so > create a class, say "septype" that just exposes the constants > and use > _properties ... ,septype {*} = septype.Solid ..... > > and you can use the same constants in your code. > I followed your advice even though I would have preferred to act differently to have everything in only one class. I added you to the authors :-P Project 3 attached Ciao Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ComboRowsSeparator-3.zip Type: application/zip Size: 31848 bytes Desc: not available URL: From jean-yvon.renaut at wanadoo.fr Tue Sep 22 10:39:38 2020 From: jean-yvon.renaut at wanadoo.fr (Jean-Yvon) Date: Tue, 22 Sep 2020 10:39:38 +0200 Subject: [Gambas-user] installation of the 3.15.2 Message-ID: hi everybody Nothing works when the prerequisites are not installed. (Yes, i'm the best) However, the PPA version contains a bug. The packages are broken and require version 3.15.1. If we use "git" everything is fine. I?m on kubuntu 20.04LTS. From jean-yvon.renaut at wanadoo.fr Tue Sep 22 11:19:38 2020 From: jean-yvon.renaut at wanadoo.fr (Jean-Yvon) Date: Tue, 22 Sep 2020 11:19:38 +0200 Subject: [Gambas-user] installation of the 3.15.2 In-Reply-To: References: Message-ID: <2519c628-6952-7e1a-b1f1-1bd0eacea381@wanadoo.fr> I just lied. Muon (package manager) just gave a completely installable version and everything fits in order. Thank you Le 22/09/2020 ? 10:39, Jean-Yvon a ?crit?: > hi everybody > > Nothing works when the prerequisites are not installed. (Yes, i'm the > best) > However, the PPA version contains a bug. The packages are broken and > require version 3.15.1. > If we use "git" everything is fine. > I?m on kubuntu 20.04LTS. > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Sep 24 16:53:38 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 24 Sep 2020 16:53:38 +0200 Subject: [Gambas-user] Release of Gambas 3.15.2 In-Reply-To: <2a715ed3-7263-a1cf-568f-c2f88c27bcd6@gmail.com> References: <2a715ed3-7263-a1cf-568f-c2f88c27bcd6@gmail.com> Message-ID: <445b83e9-8a41-763d-7bb5-30c9e21b08ae@osnanet.de> Am 17.09.20 um 15:37 schrieb Beno?t Minisini: > Hi, > > I have just released Gambas 3.15.2. > > It includes the backport of all bug fixed since 3.15.1. > > Download it at: > https://gitlab.com/gambas/gambas/-/archive/3.15.2/gambas-3.15.2.tar.bz2 > > And read the release notes at: > https://gambaswiki.org/wiki/doc/release/3.15.2 > > Stable Ubuntu PPA will be updated in a few days. > > Enjoy! > Benoit, just a question. When a new release is out, is it necessary to compile all projects with the new version to benefit from the changes/advances, or is it ok just to run them with the new version? Regards Rolf From g4mba5 at gmail.com Thu Sep 24 17:35:30 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 Sep 2020 17:35:30 +0200 Subject: [Gambas-user] Release of Gambas 3.15.2 In-Reply-To: <445b83e9-8a41-763d-7bb5-30c9e21b08ae@osnanet.de> References: <2a715ed3-7263-a1cf-568f-c2f88c27bcd6@gmail.com> <445b83e9-8a41-763d-7bb5-30c9e21b08ae@osnanet.de> Message-ID: <9c2198b0-183d-f111-ee5f-236211ba9cd7@gmail.com> Le 24/09/2020 ? 16:53, Rolf-Werner Eilert a ?crit?: > Am 17.09.20 um 15:37 schrieb Beno?t Minisini: >> Hi, >> >> I have just released Gambas 3.15.2. >> >> It includes the backport of all bug fixed since 3.15.1. >> >> Download it at: >> https://gitlab.com/gambas/gambas/-/archive/3.15.2/gambas-3.15.2.tar.bz2 >> >> And read the release notes at: >> https://gambaswiki.org/wiki/doc/release/3.15.2 >> >> Stable Ubuntu PPA will be updated in a few days. >> >> Enjoy! >> > > Benoit, just a question. > > When a new release is out, is it necessary to compile all projects with > the new version to benefit from the changes/advances, or is it ok just > to run them with the new version? > > Regards > Rolf > Hopefully not! If the bytecode version changes (the two latest being 3.15 and 3.8), the previous versions of the bytecode are always compatible, provided that the major version number does not change. You have to recompile only if there is an incompatible change in the syntax, which should be claimed with a big warning, and should not occur in the same major version. Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Thu Sep 24 18:09:26 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 24 Sep 2020 18:09:26 +0200 Subject: [Gambas-user] Release of Gambas 3.15.2 In-Reply-To: <9c2198b0-183d-f111-ee5f-236211ba9cd7@gmail.com> References: <2a715ed3-7263-a1cf-568f-c2f88c27bcd6@gmail.com> <445b83e9-8a41-763d-7bb5-30c9e21b08ae@osnanet.de> <9c2198b0-183d-f111-ee5f-236211ba9cd7@gmail.com> Message-ID: Am 24.09.20 um 17:35 schrieb Beno?t Minisini: > Le 24/09/2020 ? 16:53, Rolf-Werner Eilert a ?crit?: >> Am 17.09.20 um 15:37 schrieb Beno?t Minisini: >>> Hi, >>> >>> I have just released Gambas 3.15.2. >>> >>> It includes the backport of all bug fixed since 3.15.1. >>> >>> Download it at: >>> https://gitlab.com/gambas/gambas/-/archive/3.15.2/gambas-3.15.2.tar.bz2 >>> >>> And read the release notes at: >>> https://gambaswiki.org/wiki/doc/release/3.15.2 >>> >>> Stable Ubuntu PPA will be updated in a few days. >>> >>> Enjoy! >>> >> >> Benoit, just a question. >> >> When a new release is out, is it necessary to compile all projects >> with the new version to benefit from the changes/advances, or is it ok >> just to run them with the new version? >> >> Regards >> Rolf >> > > Hopefully not! If the bytecode version changes (the two latest being > 3.15 and 3.8), the previous versions of the bytecode are always > compatible, provided that the major version number does not change. > > You have to recompile only if there is an incompatible change in the > syntax, which should be claimed with a big warning, and should not occur > in the same major version. > > Regards, > Ah ok, that's good to know, thank you very much Regards Rolf From g4mba5 at gmail.com Thu Sep 24 18:18:58 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 24 Sep 2020 18:18:58 +0200 Subject: [Gambas-user] Release of Gambas 3.15.2 In-Reply-To: References: <2a715ed3-7263-a1cf-568f-c2f88c27bcd6@gmail.com> <445b83e9-8a41-763d-7bb5-30c9e21b08ae@osnanet.de> <9c2198b0-183d-f111-ee5f-236211ba9cd7@gmail.com> Message-ID: Le 24/09/2020 ? 18:09, Rolf-Werner Eilert a ?crit?: > Am 24.09.20 um 17:35 schrieb Beno?t Minisini: >> Le 24/09/2020 ? 16:53, Rolf-Werner Eilert a ?crit?: >>> Am 17.09.20 um 15:37 schrieb Beno?t Minisini: >>>> Hi, >>>> >>>> I have just released Gambas 3.15.2. >>>> >>>> It includes the backport of all bug fixed since 3.15.1. >>>> >>>> Download it at: >>>> https://gitlab.com/gambas/gambas/-/archive/3.15.2/gambas-3.15.2.tar.bz2 >>>> >>>> And read the release notes at: >>>> https://gambaswiki.org/wiki/doc/release/3.15.2 >>>> >>>> Stable Ubuntu PPA will be updated in a few days. >>>> >>>> Enjoy! >>>> >>> >>> Benoit, just a question. >>> >>> When a new release is out, is it necessary to compile all projects >>> with the new version to benefit from the changes/advances, or is it >>> ok just to run them with the new version? >>> >>> Regards >>> Rolf >>> >> >> Hopefully not! If the bytecode version changes (the two latest being >> 3.15 and 3.8), the previous versions of the bytecode are always >> compatible, provided that the major version number does not change. >> >> You have to recompile only if there is an incompatible change in the >> syntax, which should be claimed with a big warning, and should not >> occur in the same major version. >> >> Regards, >> > > Ah ok, that's good to know, thank you very much > > Regards > Rolf > To be more accurate: You don't *have to* recompile, but for 3.15 you may recompile anymore, because there is an optimization for the "&=" operator that can make your code faster (depending how much you use that operator in your project). Regards, -- Beno?t Minisini From rwe-sse at osnanet.de Thu Sep 24 18:27:24 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 24 Sep 2020 18:27:24 +0200 Subject: [Gambas-user] Release of Gambas 3.15.2 In-Reply-To: References: <2a715ed3-7263-a1cf-568f-c2f88c27bcd6@gmail.com> <445b83e9-8a41-763d-7bb5-30c9e21b08ae@osnanet.de> <9c2198b0-183d-f111-ee5f-236211ba9cd7@gmail.com> Message-ID: Am 24.09.20 um 18:18 schrieb Beno?t Minisini: > Le 24/09/2020 ? 18:09, Rolf-Werner Eilert a ?crit?: >> Am 24.09.20 um 17:35 schrieb Beno?t Minisini: >>> Le 24/09/2020 ? 16:53, Rolf-Werner Eilert a ?crit?: >>>> Am 17.09.20 um 15:37 schrieb Beno?t Minisini: >>>>> Hi, >>>>> >>>>> I have just released Gambas 3.15.2. >>>>> >>>>> It includes the backport of all bug fixed since 3.15.1. >>>>> >>>>> Download it at: >>>>> https://gitlab.com/gambas/gambas/-/archive/3.15.2/gambas-3.15.2.tar.bz2 >>>>> >>>>> >>>>> And read the release notes at: >>>>> https://gambaswiki.org/wiki/doc/release/3.15.2 >>>>> >>>>> Stable Ubuntu PPA will be updated in a few days. >>>>> >>>>> Enjoy! >>>>> >>>> >>>> Benoit, just a question. >>>> >>>> When a new release is out, is it necessary to compile all projects >>>> with the new version to benefit from the changes/advances, or is it >>>> ok just to run them with the new version? >>>> >>>> Regards >>>> Rolf >>>> >>> >>> Hopefully not! If the bytecode version changes (the two latest being >>> 3.15 and 3.8), the previous versions of the bytecode are always >>> compatible, provided that the major version number does not change. >>> >>> You have to recompile only if there is an incompatible change in the >>> syntax, which should be claimed with a big warning, and should not >>> occur in the same major version. >>> >>> Regards, >>> >> >> Ah ok, that's good to know, thank you very much >> >> Regards >> Rolf >> > > To be more accurate: You don't *have to* recompile, but for 3.15 you may > recompile anymore, because there is an optimization for the "&=" > operator that can make your code faster (depending how much you use that > operator in your project). > > Regards, > Ah ok, I use it quite often, but I couldn't say precisely in which project it plays a major role. All programs run fast enough. But I tweak them quite regularly anyway, so I will compile each one within a few weeks. Thanks for the advice! Rolf From bagonergi at gmail.com Fri Sep 25 10:18:28 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 25 Sep 2020 10:18:28 +0200 Subject: [Gambas-user] Errors when compiling Gambas Message-ID: Hi Benoit, compiling Gambas, between Installing gb. ... and Compiling in another gb. ... I get these errors: /usr/bin/gbi3: symbol lookup error: /usr/lib/gambas3/gb.gtk3.webview.so: undefined symbol: WebViewSettingsDesc Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared object file: No such file or directory Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Fri Sep 25 10:21:50 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 25 Sep 2020 10:21:50 +0200 Subject: [Gambas-user] Errors when compiling Gambas In-Reply-To: References: Message-ID: Il giorno ven 25 set 2020 alle ore 10:18 Gianluigi ha scritto: > Hi Benoit, > compiling Gambas, between Installing gb. ... and Compiling in another gb. > ... I get these errors: > > /usr/bin/gbi3: symbol lookup error: /usr/lib/gambas3/gb.gtk3.webview.so: > undefined symbol: WebViewSettingsDesc > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open shared > object file: No such file or directory > Sorry I forgot to mention that the compilation is successful. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Sep 25 11:43:35 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 25 Sep 2020 11:43:35 +0200 Subject: [Gambas-user] Errors when compiling Gambas In-Reply-To: References: Message-ID: Le 25/09/2020 ? 10:21, Gianluigi a ?crit?: > > > Il giorno ven 25 set 2020 alle ore 10:18 Gianluigi > ha scritto: > > Hi Benoit, > compiling Gambas, between Installing gb. ... and Compiling in > another gb. ... I get these errors: > > /usr/bin/gbi3: symbol lookup error: > /usr/lib/gambas3/gb.gtk3.webview.so : > undefined symbol: WebViewSettingsDesc > Error loading libfluidsynth.so.1: libfluidsynth.so.1: cannot open > shared object file: No such file or directory > > > Sorry I forgot to mention that the compilation is successful. > > Regards > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > It's fixed now. -- Beno?t Minisini From bagonergi at gmail.com Fri Sep 25 13:04:35 2020 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 25 Sep 2020 13:04:35 +0200 Subject: [Gambas-user] Errors when compiling Gambas In-Reply-To: References: Message-ID: Il giorno ven 25 set 2020 alle ore 11:44 Beno?t Minisini ha scritto: > > It's fixed now. > > Thank you, regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Sat Sep 26 13:01:53 2020 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Sat, 26 Sep 2020 13:01:53 +0200 Subject: [Gambas-user] Upd 3.15.2, a) Val("15911.23046875") fails in Xub16.04LTS only b) \t not working (anymore) Message-ID: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> Dear Gambas Cracks a) Val("15911.23046875") fails in Xub16.04LTS: After Update 3.15.2 below given example fails in Xubuntu 16.04LTS but not in 18.04LTS. Both with same localization (i believe). Did something change with Val("15911.23046875") in 3.15.2 ? Some hints how to make Val() more robust ? b) No \t in Messages: \t does not work in Messages (anymore or never before)? Sb out there having the same problem ? Any feedback would be welcome. Thanks ub2 --------------------------------------------------------------------- example: Dim $RamInst_str$, $RamInUse_str$, $RamAvail_str$, $MsgTxt$ As String Stop 'Fail in Xub1604LTS after Upd Gambas 3.15.2 'Fail in Val("15911.23046875") <<<<==== $RamInst_str$ = "15911.23046875" $RamInUse_str$ = "12345.0" Stop 'Fail: Val($RamInst_str$) $RamAvail_str$ = Val($RamInst_str$) - Val($RamInUse_str$) 'ok with Xub16.04LTS + Gambas 3.15.1, 'FAIL* with Xub16.04 LTS + 3.15.2 'ok with Xub18.04LTS + Gambas 3.15.1 'ok with Xub18.04 LTS + 3.15.2 '*Fail 1: Typenunvertr?glichkeit: ' Erwartet Number, statt dessen Null erhalten $MsgTxt$ = "Check RAM:\n" "+ Installed: " & "\t+ " & CStr($RamInst_str$) & "\n" "- In use : " & " \t- " & CStr($RamInUse_str$) & "\n" "= available : " & "\t= " & CStr($RamAvail_str$) & "\n" Message.info($MsgTxt$) '"Fail" 2: \t not working inside MessageBox (anymore? since Ver?) $MsgTxt$ = "
" & $MsgTxt$ & "
" Message.info($MsgTxt$) '\t ok [System] Gambas=3.15.2 OperatingSystem=Linux Kernel=4.4.0-190-generic Architecture=x86_64 Distribution=Ubuntu 16.04.7 LTS Desktop=XFCE Theme=gtk Language=de_DE.UTF-8 Memory=15911M From ub2 at gmx.ch Sat Sep 26 15:10:41 2020 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Sat, 26 Sep 2020 15:10:41 +0200 Subject: [Gambas-user] a) Val("15911.23046875") fails in Xub16.04 only, b) no tabstop in messages In-Reply-To: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> References: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> Message-ID: <265a8e24-d9d5-a1fe-196f-d8e1a118f362@gmx.ch> Dear Gambas Cracks (2nd try, seems that 1st mail was not sent within the list) a) Val("15911.23046875") fails in Xub16.04LTS: After Update 3.15.2 below given example fails in Xubuntu 16.04LTS but not in 18.04LTS. Both with same localization (I believe). Did something change with Val("15911.23046875") in 3.15.2 ? Some hints how to use Val() more robust? (eg: Is there a way to force string-convertion to a certain type? Let's say: Always convert to a float, never to a date.) b) No tabstop in Messages: \t does not work in Messages (anymore or never before)? Sb out there having the same problem ? Any feedback would be welcome. Thanks and have a good WE ub2 --------------------------------------------------------------------- example: Dim $RamInst_str$, $RamInUse_str$, $RamAvail_str$, $MsgTxt$ As String Stop 'Fail in Xub1604LTS after Upd Gambas 3.15.2 'Fail in Val("15911.23046875") <<<<==== $RamInst_str$ = "15911.23046875" $RamInUse_str$ = "12345.0" Stop 'Fail: Val($RamInst_str$) $RamAvail_str$ = Val($RamInst_str$) - Val($RamInUse_str$) 'ok with Xub16.04LTS + Gambas 3.15.1, 'FAIL* with Xub16.04 LTS + 3.15.2 'ok with Xub18.04LTS + Gambas 3.15.1 'ok with Xub18.04 LTS + 3.15.2 '*Fail 1: Typenunvertr?glichkeit: ' Erwartet Number, statt dessen Null erhalten $MsgTxt$ = "Check RAM:\n" "+ Installed: " & "\t+ " & CStr($RamInst_str$) & "\n" "- In use : " & " \t- " & CStr($RamInUse_str$) & "\n" "= available : " & "\t= " & CStr($RamAvail_str$) & "\n" Message.info($MsgTxt$) '"Fail" 2: \t not working inside MessageBox (anymore? since Ver?) $MsgTxt$ = "
" & $MsgTxt$ & "
" Message.info($MsgTxt$) '\t ok [System] Gambas=3.15.2 OperatingSystem=Linux Kernel=4.4.0-190-generic Architecture=x86_64 Distribution=Ubuntu 16.04.7 LTS Desktop=XFCE Theme=gtk Language=de_DE.UTF-8 Memory=15911M From cedron at exede.net Sat Sep 26 16:58:26 2020 From: cedron at exede.net (Cedron Dawg) Date: Sat, 26 Sep 2020 10:58:26 -0400 (EDT) Subject: [Gambas-user] a) Val("15911.23046875") fails in Xub16.04 only, b) no tabstop in messages In-Reply-To: <793701659.77419237.1601131660019.JavaMail.zimbra@exede.net> References: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> <265a8e24-d9d5-a1fe-196f-d8e1a118f362@gmx.ch> <793701659.77419237.1601131660019.JavaMail.zimbra@exede.net> Message-ID: <1271260265.77423477.1601132306954.JavaMail.zimbra@exede.net> Sorry, forgot the tabs. Print "*"; Val("15911.23046875"); "*\t*\t*" *15911.23046875* * * forum.gambas.one/viewtopic.php?p=1500#p1500 I'm having a great weekend. From cedron at exede.net Sat Sep 26 16:47:40 2020 From: cedron at exede.net (Cedron Dawg) Date: Sat, 26 Sep 2020 10:47:40 -0400 (EDT) Subject: [Gambas-user] a) Val("15911.23046875") fails in Xub16.04 only, b) no tabstop in messages In-Reply-To: <265a8e24-d9d5-a1fe-196f-d8e1a118f362@gmx.ch> References: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> <265a8e24-d9d5-a1fe-196f-d8e1a118f362@gmx.ch> Message-ID: <793701659.77419237.1601131660019.JavaMail.zimbra@exede.net> Does this help? Print "*"; Val("15911.23046875"); "***" Dim x As Float = Val("15911.23046875") Print x Dim y As Float = CFloat("15911.23046875") Print y *15911.23046875*** 15911.23046875 15911.23046875 Gambas 13.3.0, Linux Mint 17 Ced ----- Original Message ----- From: ub2 at gmx.ch To: "user" Sent: Saturday, September 26, 2020 9:10:41 AM Subject: [Gambas-user] a) Val("15911.23046875") fails in Xub16.04 only, b) no tabstop in messages Dear Gambas Cracks (2nd try, seems that 1st mail was not sent within the list) a) Val("15911.23046875") fails in Xub16.04LTS: After Update 3.15.2 below given example fails in Xubuntu 16.04LTS but not in 18.04LTS. Both with same localization (I believe). Did something change with Val("15911.23046875") in 3.15.2 ? From t.lee.davidson at gmail.com Sat Sep 26 20:15:04 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 26 Sep 2020 14:15:04 -0400 Subject: [Gambas-user] a) Val("15911.23046875") fails in Xub16.04 only, b) no tabstop in messages In-Reply-To: <265a8e24-d9d5-a1fe-196f-d8e1a118f362@gmx.ch> References: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> <265a8e24-d9d5-a1fe-196f-d8e1a118f362@gmx.ch> Message-ID: On 9/26/20 9:10 AM, ub2 at gmx.ch wrote: > (2nd try, seems that 1st mail was not sent within the list) I received the first one. > b) No tabstop in Messages: > \t does not work in Messages (anymore or never before)? The message displayed in a Message dialog is rendered using a TextLabel. Simple (a subset of) HTML can be used, but the tab character ('\t') does not work as one might expect. The newline character ('\n') works only because it is replaced with '
' prior to setting the TextLabel.Text with the message text. -- Lee From jussi.lahtinen at gmail.com Sat Sep 26 20:17:34 2020 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 26 Sep 2020 21:17:34 +0300 Subject: [Gambas-user] Upd 3.15.2, a) Val("15911.23046875") fails in Xub16.04LTS only b) \t not working (anymore) In-Reply-To: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> References: <8da4e6fb-68c0-9c46-5101-139e294457a1@gmx.ch> Message-ID: Do Val("15911,23046875") work (IE instead of "." use ",")? Jussi On Sat, Sep 26, 2020 at 2:02 PM ub2 at gmx.ch wrote: > Dear Gambas Cracks > > > a) Val("15911.23046875") fails in Xub16.04LTS: > After Update 3.15.2 below given example fails in Xubuntu 16.04LTS but > not in 18.04LTS. Both with same localization (i believe). > > Did something change with Val("15911.23046875") in 3.15.2 ? > Some hints how to make Val() more robust ? > > > b) No \t in Messages: > \t does not work in Messages (anymore or never before)? > > > Sb out there having the same problem ? > Any feedback would be welcome. > > > Thanks ub2 > > --------------------------------------------------------------------- > example: > Dim $RamInst_str$, $RamInUse_str$, $RamAvail_str$, $MsgTxt$ As String > > Stop 'Fail in Xub1604LTS after Upd Gambas 3.15.2 > 'Fail in Val("15911.23046875") <<<<==== > > $RamInst_str$ = "15911.23046875" > $RamInUse_str$ = "12345.0" > > Stop 'Fail: Val($RamInst_str$) > $RamAvail_str$ = Val($RamInst_str$) - Val($RamInUse_str$) > 'ok with Xub16.04LTS + Gambas 3.15.1, > 'FAIL* with Xub16.04 LTS + 3.15.2 > 'ok with Xub18.04LTS + Gambas 3.15.1 > 'ok with Xub18.04 LTS + 3.15.2 > > '*Fail 1: Typenunvertr?glichkeit: > ' Erwartet Number, statt dessen Null erhalten > > $MsgTxt$ = "Check RAM:\n" > "+ Installed: " & "\t+ " & CStr($RamInst_str$) & "\n" > "- In use : " & " \t- " & CStr($RamInUse_str$) & "\n" > "= available : " & "\t= " & CStr($RamAvail_str$) & "\n" > > Message.info($MsgTxt$) > '"Fail" 2: \t not working inside MessageBox (anymore? since Ver?) > > $MsgTxt$ = "
" & $MsgTxt$ & "
" > Message.info($MsgTxt$) '\t ok > > > [System] > Gambas=3.15.2 > OperatingSystem=Linux > Kernel=4.4.0-190-generic > Architecture=x86_64 > Distribution=Ubuntu 16.04.7 LTS > Desktop=XFCE > Theme=gtk > Language=de_DE.UTF-8 > Memory=15911M > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Sun Sep 27 19:09:35 2020 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Sun, 27 Sep 2020 19:09:35 +0200 Subject: [Gambas-user] Upd 3.15.2 with Xub16.04: Replacing Val() by CFloat(), [Solved] Message-ID: <0b6bb050-d1e1-c84d-d6c1-a5384181bdfd@gmx.ch> Hi Cedron, Lee and Jussi Thanks a lot for your answers and sorry for my late response. Since I did no receive none of my own emails through the list, I believed that the list was not working at all. I therefore planned to ask and check next week again. But obviously you got it (but not me!), so sorry for that. Now answering your questions: @ Cedron: Your code: => Output Print "*"; Val("15911.23046875"); "***" => **** Dim x As Float = Val("15911.23046875") => Fails, same error Print x Dim y As Float = CFloat("15911.23046875") Print y => 15911,23046875 Print "*"; Val("15911.23046875"); "*\t*\t*" => ** * * @ Lee: Thanks for your explanation why \t is not working in messages. @ Jussi Do Val("15911,23046875") work (IE instead of "." use ",")? Yes it does! Seems that with 3.15.2 something changed in reading the localization in Xubuntu16.04LTS. But not in Xub18.04. Strange! => Workaround: However, replacing Val() by CFloat() in all my code seems to solve the issue. I'll do either that in the next days, or skip Xub16.04 support. Again, thanks a lot for your help. ub2 PS: Monday I'm out off office. (so, in case you have comments, risk of late response again ... ;-)) From g4mba5 at gmail.com Sun Sep 27 19:19:10 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 27 Sep 2020 19:19:10 +0200 Subject: [Gambas-user] Upd 3.15.2 with Xub16.04: Replacing Val() by CFloat(), [Solved] In-Reply-To: <0b6bb050-d1e1-c84d-d6c1-a5384181bdfd@gmx.ch> References: <0b6bb050-d1e1-c84d-d6c1-a5384181bdfd@gmx.ch> Message-ID: <190c232a-9f00-2cd1-23ad-773c27e823bf@gmail.com> Le 27/09/2020 ? 19:09, ub2 at gmx.ch a ?crit?: > Hi Cedron, Lee and Jussi > > > Thanks a lot for your answers and sorry for my late response. > Since I did no receive none of my own emails through the list, I > believed that the list was not working at all. > I therefore planned to ask and check next week again. > But obviously you got it (but not me!), so sorry for that. > > > Now answering your questions: > > @ Cedron: > Your code: => Output > > Print "*"; Val("15911.23046875"); "***" => **** > > Dim x As Float = Val("15911.23046875") => Fails, same error > Print x > > Dim y As Float = CFloat("15911.23046875") > Print y => 15911,23046875 > > Print "*"; Val("15911.23046875"); "*\t*\t*" => ** * * > > > @ Lee: > Thanks for your explanation why \t is not working in messages. > > > @ Jussi > Do Val("15911,23046875") work (IE instead of "." use ",")? > > Yes it does! Seems that with 3.15.2 something changed in reading > the localization in Xubuntu16.04LTS. But not in Xub18.04. Strange! Yes, something changed in localization support in 3.15.2, but it was (normally) just bug fixes. Can you send us the list of all environment variables of your two systems used when running your tests? (Xubuntu 16.04 LTS and Xubuntu 18.04). I need the localization variables (all LC_*, LANG and LANGUAGES). Thanks. -- Beno?t Minisini From chrisml at deganius.de Sun Sep 27 22:31:30 2020 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 27 Sep 2020 22:31:30 +0200 Subject: [Gambas-user] Upd 3.15.2 with Xub16.04: Replacing Val() by CFloat(), [Solved] In-Reply-To: <0b6bb050-d1e1-c84d-d6c1-a5384181bdfd@gmx.ch> References: <0b6bb050-d1e1-c84d-d6c1-a5384181bdfd@gmx.ch> Message-ID: <09635aaa-2958-0397-4f3f-e1368340cdc6@deganius.de> Am 27.09.20 um 19:09 schrieb ub2 at gmx.ch: > Since I did no receive none of my own emails through the list, I > believed that the list was not working at all. Please try to set "Avoid duplicate copies of messages?" to "No" in the user options here: https://lists.gambas-basic.org/listinfo/user 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 ian.roper at iinet.net.au Mon Sep 28 03:07:11 2020 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 28 Sep 2020 09:07:11 +0800 Subject: [Gambas-user] DrawingArea.text is not a property - Error Message-ID: <6e42bf30-6af5-a18e-e0a2-eda2fc318da7@iinet.net.au> When I try to use a new Text Editor control on a form, I get the following error. [17]'DrawingArea.Text' is not a property CControl.UpdateName.969 When you click 'cancel' on the error, Gambas freezes and you have to force-quit to kill it. [System] Gambas=3.15.90 OperatingSystem=Linux Kernel=5.4.0-48-generic Architecture=x86_64 Distribution=Linux Mint 20 Ulyana Desktop=CINNAMON Theme=qt5ctproxy Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.6.0 DBus=libdbus-1.so.3.19.11 GDK2=libgdk-x11-2.0.so.0.2400.32 GDK3=libgdk-3.so.0.2404.16 GStreamer=libgstreamer-1.0.so.0.1602.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2404.16 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.97.0.0 QT5=libQt5Core.so.5.12.8 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=4.6.7 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.qt5 GDMSESSION=cinnamon GDM_LANG=en_AU GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=6376 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG 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= LANG=en_AU.UTF-8 LANGUAGE=en_AU.UTF-8 LC_ALL=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT_ACCESSIBILITY=1 QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1326,unix/:/tmp/.ICE-unix/1326 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1401 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_CLASS=user XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From rwe-sse at osnanet.de Tue Sep 29 13:17:28 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 29 Sep 2020 13:17:28 +0200 Subject: [Gambas-user] Cipher doesn't read ciphered text Message-ID: <8282ff63-dda3-bc47-564e-a410a5f190e5@osnanet.de> I played around with Cipher, extending it by loading a small ASCII text file (2016 Bytes) with File.Load. The string is crypted and when I want it decrypted, Gambas says "Decryption failed". A short string like "hello world" is ok, it does even accept umlauts. So, where's the problem? Too long? Unfortunately, the documentation isn't complete and the error message doesn't say why. Regards Rolf From t.lee.davidson at gmail.com Tue Sep 29 15:18:08 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 29 Sep 2020 09:18:08 -0400 Subject: [Gambas-user] Cipher doesn't read ciphered text In-Reply-To: <8282ff63-dda3-bc47-564e-a410a5f190e5@osnanet.de> References: <8282ff63-dda3-bc47-564e-a410a5f190e5@osnanet.de> Message-ID: <8e6bc574-db0d-50bb-b273-f5295a7a23ec@gmail.com> On 9/29/20 7:17 AM, Rolf-Werner Eilert wrote: > I played around with Cipher, extending it by loading a small ASCII text file (2016 Bytes) with File.Load. The string is crypted > and when I want it decrypted, Gambas says "Decryption failed". > > A short string like "hello world" is ok, it does even accept umlauts. So, where's the problem? Too long? Unfortunately, the > documentation isn't complete and the error message doesn't say why. > > Regards > Rolf Does decryption fail if you explicitly set a string variable to the encrypted text instead of loading from a file? How was the ASCII text file created? I ask because some text editors can be set to add a newline at the end of a file if there is not one. Perhaps examine the text file with a hex editor, or try something like: sEncryptedText = Trim(File.Load("encrypted.txt")) If it's not that, can you provide an example project? -- Lee From rwe-sse at osnanet.de Tue Sep 29 15:57:23 2020 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Tue, 29 Sep 2020 15:57:23 +0200 Subject: [Gambas-user] Cipher doesn't read ciphered text In-Reply-To: <8e6bc574-db0d-50bb-b273-f5295a7a23ec@gmail.com> References: <8282ff63-dda3-bc47-564e-a410a5f190e5@osnanet.de> <8e6bc574-db0d-50bb-b273-f5295a7a23ec@gmail.com> Message-ID: Am 29.09.20 um 15:18 schrieb T Lee Davidson: > On 9/29/20 7:17 AM, Rolf-Werner Eilert wrote: >> I played around with Cipher, extending it by loading a small ASCII >> text file (2016 Bytes) with File.Load. The string is crypted and when >> I want it decrypted, Gambas says "Decryption failed". >> >> A short string like "hello world" is ok, it does even accept umlauts. >> So, where's the problem? Too long? Unfortunately, the documentation >> isn't complete and the error message doesn't say why. >> >> Regards >> Rolf > > Does decryption fail if you explicitly set a string variable to the > encrypted text instead of loading from a file? > How was the ASCII text file created? > > I ask because some text editors can be set to add a newline at the end > of a file if there is not one. Perhaps examine the text file with a hex > editor, or try something like: > sEncryptedText = Trim(File.Load("encrypted.txt")) > > If it's not that, can you provide an example project? > > This is the code, it's from the example and slightly altered. I used a TextEdit to show the results, then saved the crypted text to investigate with a hex editor. (I use My.File here, as the original one contains a name.) t$ = File.Load("/klein/kartei/T18/My.File") 't$ = "Hallo ????" sCipher = Cipher["AES-256-CBC"].EncryptSalted(t$, "secret") TextEdit1.Text = "Cipher text (base64): " & Base64$(sCipher) & Chr$(10) sData = Cipher["AES-256-CBC"].DecryptSalted(sCipher, "secret") TextEdit1.Text &= "Decrypted: " & sData & Chr$(10) File.Save("~/Gambas3/testEditor/test.cipher", sCipher) It fails in the line "sDate = Cipher...", so it cannot decrypt the string it crypted before. I tried another, even longer file, and it ran flawlessly. So I cannot make out what caused the error. Both files are made up the same way, they contain a CR+LF pair after each line to make the files compatible to an older Windows program that reads them. But that doesn't seem to be the reason. Regards Rolf From bagonergi at gmail.com Tue Sep 29 18:21:08 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 29 Sep 2020 18:21:08 +0200 Subject: [Gambas-user] Cipher doesn't read ciphered text In-Reply-To: References: <8282ff63-dda3-bc47-564e-a410a5f190e5@osnanet.de> <8e6bc574-db0d-50bb-b273-f5295a7a23ec@gmail.com> Message-ID: Il giorno mar 29 set 2020 alle ore 15:58 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Am 29.09.20 um 15:18 schrieb T Lee Davidson: > > On 9/29/20 7:17 AM, Rolf-Werner Eilert wrote: > >> I played around with Cipher, extending it by loading a small ASCII > >>... > > Does decryption fail if you explicitly set a string variable to the > >... > > This is the code, it's from the example and slightly altered. I used a > ... > I enclose an example that may be useful to you, sorry if I haven't looked at your code. If you really want to read the crypted file uncomment the code for TextArea1 in the attached project. If I do it, I get this message on the console: OpenType support missing for "Ubuntu", script 66 Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: CryptDecryptFile.zip Type: application/zip Size: 19097 bytes Desc: not available URL: From bagonergi at gmail.com Tue Sep 29 19:14:05 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 29 Sep 2020 19:14:05 +0200 Subject: [Gambas-user] Cipher doesn't read ciphered text In-Reply-To: References: <8282ff63-dda3-bc47-564e-a410a5f190e5@osnanet.de> <8e6bc574-db0d-50bb-b273-f5295a7a23ec@gmail.com> Message-ID: Il giorno mar 29 set 2020 alle ore 18:21 Gianluigi ha scritto: > I enclose an example that may be useful to you, sorry if I haven't looked > at your code. > If you really want to read the crypted file uncomment the code for > TextArea1 in the attached project. > Sorry, I forgot 'Private $sPath As String = "/tmp/mypasses"', initially I saved in a file instead of settings. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From angelnunez123 at gmail.com Tue Sep 29 21:43:55 2020 From: angelnunez123 at gmail.com (Angel) Date: Tue, 29 Sep 2020 21:43:55 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> Message-ID: <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> Hi. I can cancel the popup menu in a textbox to change it to a popup menu made by me. I'm making a class based on textbox and in the MouseDown event I see my menu, but after executing it, the textbox popup menu is displayed. 2 popup menus are launched, mine and then the textbox one Regards Angel -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Sep 29 23:45:18 2020 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 29 Sep 2020 23:45:18 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> Message-ID: Il giorno mar 29 set 2020 alle ore 21:44 Angel ha scritto: > Hi. > I can cancel the popup menu in a textbox to change it to a popup menu made > by me. > Do you mean that the attached project doesn't work for you? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TextBoxPopup.zip Type: application/zip Size: 16373 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed Sep 30 05:47:45 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 29 Sep 2020 23:47:45 -0400 Subject: [Gambas-user] Cipher doesn't read ciphered text In-Reply-To: References: <8282ff63-dda3-bc47-564e-a410a5f190e5@osnanet.de> <8e6bc574-db0d-50bb-b273-f5295a7a23ec@gmail.com> Message-ID: <3989d3c9-0415-50af-b802-129666ebc549@gmail.com> On 9/29/20 9:57 AM, Rolf-Werner Eilert wrote: > This is the code, it's from the example and slightly altered. I used a TextEdit to show the results, then saved the crypted text > to investigate with a hex editor. (I use My.File here, as the original one contains a name.) > > ??t$?=?File.Load("/klein/kartei/T18/My.File") > ??'t$?=?"Hallo?????" > ??sCipher?=?Cipher["AES-256-CBC"].EncryptSalted(t$,?"secret") > ??TextEdit1.Text?=?"Cipher?text?(base64):?"?&?Base64$(sCipher)?&?Chr$(10) > ??sData?=?Cipher["AES-256-CBC"].DecryptSalted(sCipher,?"secret") > ??TextEdit1.Text?&=?"Decrypted:?"?&?sData?&?Chr$(10) > > ??File.Save("~/Gambas3/testEditor/test.cipher",?sCipher) > > > > It fails in the line "sDate = Cipher...", so it cannot decrypt the string it crypted before. I tried another, even longer file, > and it ran flawlessly.?So?I?cannot?make?out?what?caused?the?error. > > Both files are made up the same way, they contain a CR+LF pair after each line to make the files compatible to an older Windows > program that reads?them.?But?that?doesn't?seem?to?be?the?reason. Well I En/Decrypted a couple of text files using that example code. I even changed the line endings to CR+LF and just CR, though, now that I think about it, it really shouldn't matter. No problems; it decrypted flawlessly. -- Lee From angelnunez123 at gmail.com Wed Sep 30 13:28:50 2020 From: angelnunez123 at gmail.com (Angel) Date: Wed, 30 Sep 2020 13:28:50 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> Message-ID: <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> Hi. Your example does work for me, the one that doesn't work for me is my example, if I ting the popup menu with $hText.PopupMenu ? "mnuTextbox" event CajaTexto_MouseDown(). The first object that launches the menu receives all events, even if you are on another object. If I ting the popup menu with a variable of type Menu, If it works but once my popup menu is closed, the textbox menu is launched, the two menus come out. I don't know if I've explained myself well, my English is very bad. El 29/9/20 a las 23:45, Gianluigi escribi?: > > > Il giorno mar 29 set 2020 alle ore 21:44 Angel > > ha scritto: > > Hi. > I can cancel the popup menu in a textbox to change it to a popup > menu made by me. > > > Do you mean that the attached project doesn't work for you? > > Regards > Gianluigi > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: texboxclass.zip Type: application/zip Size: 22074 bytes Desc: not available URL: From t.lee.davidson at gmail.com Wed Sep 30 19:29:19 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 30 Sep 2020 13:29:19 -0400 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> Message-ID: <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> On 9/30/20 7:28 AM, Angel wrote: > Hi. > Your example does work for me, the one that doesn't work for me is my example, if I ting the popup menu with > $hText.PopupMenu ? "mnuTextbox" > event CajaTexto_MouseDown(). > The first object that launches the menu receives all events, even if you are on another object. > If I ting the popup menu with a variable of type Menu, > If it works but once my popup menu is closed, the textbox menu is launched, the two menus come out. > > I don't know if I've explained myself well, my English is very bad. With the project you attached, I get only one popup menu; and it is your custom menu. However, you are correct that the first TextBox created receives all the events. That is because each one is given the same event name (with: As "CajaTexto"), and each popup menu is also given the same event name (with: As "mnuTextbox") making all the textboxes use the first textbox's event handler and menu. The first one defined obviously takes precedence. I have attached a modified project in which: 1) The popup menu definition has been moved to the _new subroutine since it does not need to be defined per each event. 2) Each TextBox gets its event name from its name, ie. As Me.Name. 3) Each popup menu gets its event name from its TextBox name, ie. As "mnu" & Me.Name. As long as the popup menu property of the TextBox is properly set, the MouseDown event is not needed. And by the way, changing the value of iBackground appears to have no effect. -- Lee From t.lee.davidson at gmail.com Wed Sep 30 19:31:03 2020 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 30 Sep 2020 13:31:03 -0400 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> Message-ID: <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> On 9/30/20 1:29 PM, T Lee Davidson wrote: > I have attached a modified project in which: Oops!! Attached. -- Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: pruebas_textbox-0.0.1.tar.gz Type: application/gzip Size: 14780 bytes Desc: not available URL: From angelnunez123 at gmail.com Wed Sep 30 21:14:04 2020 From: angelnunez123 at gmail.com (Angel) Date: Wed, 30 Sep 2020 21:14:04 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> Message-ID: <77fbaffa-dabd-1da8-46a5-73013faa7809@gmail.com> Thank you very much, with the modifications you have made works well. I'd been stuck with that for several days. I thought an object's code was as isolated from another object. I haven't put all the code missing more code, the Background property is missing El 30/9/20 a las 19:29, T Lee Davidson escribi?: > On 9/30/20 7:28 AM, Angel wrote: >> Hi. >> Your example does work for me, the one that doesn't work for me is my >> example, if I ting the popup menu with >> $hText.PopupMenu ? "mnuTextbox" >> event CajaTexto_MouseDown(). >> The first object that launches the menu receives all events, even if >> you are on another object. >> If I ting the popup menu with a variable of type Menu, >> If it works but once my popup menu is closed, the textbox menu is >> launched, the two menus come out. >> >> I don't know if I've explained myself well, my English is very bad. > > With the project you attached, I get only one popup menu; and it is > your custom menu. > > However, you are correct that the first TextBox created receives all > the events. That is because each one is given the same event name > (with: As "CajaTexto"), and each popup menu is also given the same > event name (with: As "mnuTextbox") making all the textboxes use the > first textbox's event handler and menu. The first one defined > obviously takes precedence. > > I have attached a modified project in which: > 1) The popup menu definition has been moved to the _new subroutine > since it does not need to be defined per each event. > 2) Each TextBox gets its event name from its name, ie. As Me.Name. > 3) Each popup menu gets its event name from its TextBox name, ie. As > "mnu" & Me.Name. > > As long as the popup menu property of the TextBox is properly set, the > MouseDown event is not needed. > > And by the way, changing the value of iBackground appears to have no > effect. > > From g4mba5 at gmail.com Wed Sep 30 21:18:32 2020 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 30 Sep 2020 21:18:32 +0200 Subject: [Gambas-user] Work in progress... Message-ID: Hi, I have now a web browser component for GTK+3, QT4 and QT5 with the same interface. So I could create a 'gb.gui.webview' component that loads the web browser component according to the current desktop is use. Here is a screenshot of the Gambas IDE running with GTK+3. You will notice that there are still a lot of bugs in the gb.gtk3 component... Regards, -- Beno?t Minisini -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 259118 bytes Desc: not available URL: From mati86dl at gmail.com Wed Sep 30 22:51:06 2020 From: mati86dl at gmail.com (Matias De lellis) Date: Wed, 30 Sep 2020 17:51:06 -0300 Subject: [Gambas-user] Work in progress... In-Reply-To: References: Message-ID: Wow, Great news. =) Thank you very much for all the work!. El mi?., 30 sept. 2020 a las 16:28, Beno?t Minisini () escribi?: > Hi, > > I have now a web browser component for GTK+3, QT4 and QT5 with the same > interface. > > So I could create a 'gb.gui.webview' component that loads the web > browser component according to the current desktop is use. > > Here is a screenshot of the Gambas IDE running with GTK+3. > > You will notice that there are still a lot of bugs in the gb.gtk3 > component... > > Regards, > > -- > Beno?t Minisini > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed Sep 30 23:27:25 2020 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 30 Sep 2020 23:27:25 +0200 Subject: [Gambas-user] Disable right click popup menu of textbox In-Reply-To: <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> References: <1ef3a864-d888-5d13-4511-1c2709b5781f@gmail.com> <4814422f-80d2-e196-88b1-ebc2c755e30f@gmail.com> <03f358f8-4971-d29e-0b4c-be9badac3e3d@gmail.com> <68f533ab-a8d4-9443-efb8-da887d6ebe5f@gmail.com> <8c3d003c-643a-4d27-176b-c6ad4a4848be@gmail.com> Message-ID: Il giorno mer 30 set 2020 alle ore 19:32 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > On 9/30/20 1:29 PM, T Lee Davidson wrote: > > I have attached a modified project in which: > Hi Lee, in your solution: $hText = New TextBox($hContenedor) As Me.Name instead of $hText = New TextBox($hContenedor) As "CajaTexto" there is something that does not convince me, how do you raise the Change event? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: