From t.lee.davidson at gmail.com Sat Apr 1 05:56:08 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 31 Mar 2023 23:56:08 -0400 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> Message-ID: On 3/31/23 16:04, Benoit Minisini wrote: > Now that there is an index on the left of the wiki, you can see there are?many?problems?in?the?page?hierarchy. > > I guess I should find a way to move a page and its children easily so that?we?can?reorganize?it... If you are talking about the many orphan items, for example, directly underneath gb.qt4, I agree. Some of those items perhaps should be hidden altogether (like "_split"?). The index does look nice though. Could we make it collapsible? If yes, I can work on that in some free time since I'm sure the index item issue is more pressing. BTW, in the source code there are many closing UL tags none of which have a matching opening tag. While we're on the subject of the Wiki, I think it would be good if we could consolidate the three or four different pages we have for "Naming Conventions". I thought we did that a while ago, but number four (or three) just got added and no others removed. -- Lee From adamnt42 at gmail.com Sat Apr 1 07:11:40 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 1 Apr 2023 15:41:40 +1030 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> Message-ID: <0b72fa7e-0227-ff88-3616-a12c08abd0df@gmail.com> On 31/3/23 10:08 pm, Benoit Minisini wrote: > Hi, > > I'm currently updating the wiki with the latest changes on 'gb.markdown'. > > So until tomorrow, you may see badly formatted pages. > > After tomorrow, please report if you see a wiki page that displays > incorrectly. > > Regards, > Not having much joy here. Firefox? b -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pkomgdmejjgnkjlk.png Type: image/png Size: 264942 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Sat Apr 1 11:32:31 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 1 Apr 2023 11:32:31 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <0b72fa7e-0227-ff88-3616-a12c08abd0df@gmail.com> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <0b72fa7e-0227-ff88-3616-a12c08abd0df@gmail.com> Message-ID: <69de8cbe-bb4c-92f9-0b0b-36db749aa89e@gambas-basic.org> Le 01/04/2023 ? 07:11, BB a ?crit?: > > On 31/3/23 10:08 pm, Benoit Minisini wrote: >> Hi, >> >> I'm currently updating the wiki with the latest changes on 'gb.markdown'. >> >> So until tomorrow, you may see badly formatted pages. >> >> After tomorrow, please report if you see a wiki page that displays >> incorrectly. >> >> Regards, >> > Not having much joy here. Firefox? > > b > I think you have to refresh the page with SHIFT to clear the cache. Regards, -- Beno?t Minisini. From adamnt42 at gmail.com Sat Apr 1 11:57:20 2023 From: adamnt42 at gmail.com (BB) Date: Sat, 1 Apr 2023 20:27:20 +1030 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <69de8cbe-bb4c-92f9-0b0b-36db749aa89e@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <0b72fa7e-0227-ff88-3616-a12c08abd0df@gmail.com> <69de8cbe-bb4c-92f9-0b0b-36db749aa89e@gambas-basic.org> Message-ID: <5b70c3fb-37a3-17ca-880b-79a633fd6251@gmail.com> On 1/4/23 8:02 pm, Benoit Minisini wrote: > Le 01/04/2023 ? 07:11, BB a ?crit?: >> >> On 31/3/23 10:08 pm, Benoit Minisini wrote: >>> Hi, >>> >>> I'm currently updating the wiki with the latest changes on >>> 'gb.markdown'. >>> >>> So until tomorrow, you may see badly formatted pages. >>> >>> After tomorrow, please report if you see a wiki page that displays >>> incorrectly. >>> >>> Regards, >>> >> Not having much joy here. Firefox? >> >> b >> > > I think you have to refresh the page with SHIFT to clear the cache. > > Regards, > Woof, poof, gadang! And it all works again. Gee you _are_ a magician. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sat Apr 1 12:08:39 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 1 Apr 2023 12:08:39 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> Message-ID: <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> Le 01/04/2023 ? 05:56, T Lee Davidson a ?crit : > On 3/31/23 16:04, Benoit Minisini wrote: >> Now that there is an index on the left of the wiki, you can see >> there are many problems in the page hierarchy. >> >> I guess I should find a way to move a page and its children easily >> so that we can reorganize it... > > If you are talking about the many orphan items, for example, directly > underneath gb.qt4, I agree. Some of those items perhaps should be > hidden altogether (like "_split"?). > > The index does look nice though. Could we make it collapsible? Perhaps. > If yes, I can work on that in some free time since I'm sure the index > item issue is more pressing. You are welcome. > > BTW, in the source code there are many closing UL tags none of which > have a matching opening tag. Where? -- Beno?t Minisini. From chrisml at deganius.de Sat Apr 1 13:09:15 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 1 Apr 2023 13:09:15 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> Message-ID: Am 01.04.23 um 12:08 schrieb Benoit Minisini: >> BTW, in the source code there are many closing UL tags none of which >> have a matching opening tag. > > Where? http://gambaswiki.org/wiki/ Just look at the source code at line 70. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Sat Apr 1 13:26:08 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 1 Apr 2023 13:26:08 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> Message-ID: Le 01/04/2023 ? 13:09, Christof Thalhofer a ?crit?: > Am 01.04.23 um 12:08 schrieb Benoit Minisini: > >>> BTW, in the source code there are many closing UL tags none of which >>> ? have a matching opening tag. >> >> Where? > > http://gambaswiki.org/wiki/ > > Just look at the source code at line 70. > > Alles Gute > > Christof Thalhofer > Oops! Indeed. -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sat Apr 1 13:29:56 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 1 Apr 2023 13:29:56 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> Message-ID: <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> Le 01/04/2023 ? 13:26, Benoit Minisini a ?crit?: > Le 01/04/2023 ? 13:09, Christof Thalhofer a ?crit?: >> Am 01.04.23 um 12:08 schrieb Benoit Minisini: >> >>>> BTW, in the source code there are many closing UL tags none of which >>>> ? have a matching opening tag. >>> >>> Where? >> >> http://gambaswiki.org/wiki/ >> >> Just look at the source code at line 70. >> >> Alles Gute >> >> Christof Thalhofer >> > > Oops! Indeed. > I have no idea where they come from, there is no list in the main page... -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sat Apr 1 13:45:23 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 1 Apr 2023 13:45:23 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> Message-ID: Le 01/04/2023 ? 13:29, Benoit Minisini a ?crit?: > Le 01/04/2023 ? 13:26, Benoit Minisini a ?crit?: >> Le 01/04/2023 ? 13:09, Christof Thalhofer a ?crit?: >>> Am 01.04.23 um 12:08 schrieb Benoit Minisini: >>> >>>>> BTW, in the source code there are many closing UL tags none of which >>>>> ? have a matching opening tag. >>>> >>>> Where? >>> >>> http://gambaswiki.org/wiki/ >>> >>> Just look at the source code at line 70. >>> >>> Alles Gute >>> >>> Christof Thalhofer >>> >> >> Oops! Indeed. >> > > I have no idea where they come from, there is no list in the main page... > Found. Forgot to remove a line of code... -- Beno?t Minisini. From sharon at 455.co.il Sun Apr 2 00:31:39 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 2 Apr 2023 00:31:39 +0200 Subject: [Gambas-user] GridView right to left direction In-Reply-To: <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> Message-ID: <20230401223139.M98215@455.co.il> Hello The GridView doesn't always work well in right-to-left orientation 1. An example attached When I change the direction from right to left You don't see the text that was in the grid 2. If in the IDE you change the direction property from right to left It works well Many thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: GridView_RTL.zip Type: application/zip Size: 15746 bytes Desc: not available URL: From brian at westwoodsvcs.com Sun Apr 2 00:06:53 2023 From: brian at westwoodsvcs.com (Brian G) Date: Sat, 1 Apr 2023 15:06:53 -0700 (PDT) Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> Message-ID: <114772855.27334.1680386813472.JavaMail.zimbra@westwoodsvcs.com> I really like this new interface! Thanks Beno?t. P.S. It would be nice if the selected entry closed when clicked while open. This new format makes it very easy to explore Gambas documentation. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 1, 2023, at 4:45 AM, Benoit Minisini benoit.minisini at gambas-basic.org wrote: > Le 01/04/2023 ? 13:29, Benoit Minisini a ?crit?: >> Le 01/04/2023 ? 13:26, Benoit Minisini a ?crit?: >>> Le 01/04/2023 ? 13:09, Christof Thalhofer a ?crit?: >>>> Am 01.04.23 um 12:08 schrieb Benoit Minisini: >>>> >>>>>> BTW, in the source code there are many closing UL tags none of which >>>>>> ? have a matching opening tag. >>>>> >>>>> Where? >>>> >>>> http://gambaswiki.org/wiki/ >>>> >>>> Just look at the source code at line 70. >>>> >>>> Alles Gute >>>> >>>> Christof Thalhofer >>>> >>> >>> Oops! Indeed. >>> >> >> I have no idea where they come from, there is no list in the main page... >> > > Found. Forgot to remove a line of code... > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From t.lee.davidson at gmail.com Sun Apr 2 05:42:51 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 1 Apr 2023 23:42:51 -0400 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <114772855.27334.1680386813472.JavaMail.zimbra@westwoodsvcs.com> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> <114772855.27334.1680386813472.JavaMail.zimbra@westwoodsvcs.com> Message-ID: On 4/1/23 18:06, Brian G wrote: > It would be nice if the selected entry closed when clicked while open. What exactly do you mean by that? Do you mean the entry, that is expanded to show its children, should then collapse when clicked a second time? I think I must be misunderstanding because, they do. -- Lee From brian at westwoodsvcs.com Sun Apr 2 16:45:43 2023 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 2 Apr 2023 07:45:43 -0700 (PDT) Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> <114772855.27334.1680386813472.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <866274221.27367.1680446743746.JavaMail.zimbra@westwoodsvcs.com> Yes you are correct, I just needed to clear my cache! "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 1, 2023, at 8:42 PM, T Lee Davidson t.lee.davidson at gmail.com wrote: > On 4/1/23 18:06, Brian G wrote: >> It would be nice if the selected entry closed when clicked while open. > > What exactly do you mean by that? Do you mean the entry, that is expanded to > show its children, should then collapse when > clicked a second time? I think I must be misunderstanding because, they do. > > > -- > Lee > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From brian at westwoodsvcs.com Sun Apr 2 17:33:18 2023 From: brian at westwoodsvcs.com (Brian G) Date: Sun, 2 Apr 2023 08:33:18 -0700 (PDT) Subject: [Gambas-user] Gambas wiki update In-Reply-To: <866274221.27367.1680446743746.JavaMail.zimbra@westwoodsvcs.com> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> <114772855.27334.1680386813472.JavaMail.zimbra@westwoodsvcs.com> <866274221.27367.1680446743746.JavaMail.zimbra@westwoodsvcs.com> Message-ID: <76412293.27372.1680449598595.JavaMail.zimbra@westwoodsvcs.com> Question, Would it be possible to display the last update date for the documents/pages we are reading to more easily identify those that may be out of date and require some update? Like the top right corner maybe. "Failure is the key to success; each mistake teaches us something" .. Morihei Ueshiba Brian G ----- On Apr 2, 2023, at 7:45 AM, Brian G brian at westwoodsvcs.com wrote: > Yes you are correct, I just needed to clear my cache! > > "Failure is the key to success; > each mistake teaches us something" .. Morihei Ueshiba > Brian G > > ----- On Apr 1, 2023, at 8:42 PM, T Lee Davidson t.lee.davidson at gmail.com wrote: > >> On 4/1/23 18:06, Brian G wrote: >>> It would be nice if the selected entry closed when clicked while open. >> >> What exactly do you mean by that? Do you mean the entry, that is expanded to >> show its children, should then collapse when >> clicked a second time? I think I must be misunderstanding because, they do. >> >> >> -- >> Lee >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- From benoit.minisini at gambas-basic.org Sun Apr 2 23:20:39 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 2 Apr 2023 23:20:39 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <76412293.27372.1680449598595.JavaMail.zimbra@westwoodsvcs.com> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <46a1d3aa-5dcb-2605-04aa-6ce9d85d69bd@gambas-basic.org> <114772855.27334.1680386813472.JavaMail.zimbra@westwoodsvcs.com> <866274221.27367.1680446743746.JavaMail.zimbra@westwoodsvcs.com> <76412293.27372.1680449598595.JavaMail.zimbra@westwoodsvcs.com> Message-ID: Le 02/04/2023 ? 17:33, Brian G a ?crit?: > Question, > > Would it be possible to display the last update date for the documents/pages we are reading to more easily identify those that may be out of date and require some update? > > Like the top right corner maybe. > Yep, it's done. But only if you are logged. -- Beno?t Minisini. From claus.dietrich at freenet.de Mon Apr 3 13:04:34 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Mon, 3 Apr 2023 13:04:34 +0200 Subject: [Gambas-user] Theme Colors under QT5 Message-ID: <805d346f-e640-faff-adf5-fffc9e79be7d@freenet.de> Hi One motive to develop an own custom Control button was the unpredictable rendering of the background color of the native Gambas button under QT5. In order to obtain a default coloring which depends on the current theme, I use Color.ButtonBackground as background color for the new button. But to my surprise this color looks totally different than the background color of the native Gambas button. Must this also be seen as a problem of the themes (as claimed for the unpredictable background rendering at QT5)? Can a theme resp. QT provide a different (wrong?) color than the one its is actually using? How reliable are the other theme-dependent colors provided by the color-class? When I changed to gb.gtk3 the button background color of the native button and my custom control button look identical. Best regards Claus From benoit.minisini at gambas-basic.org Mon Apr 3 13:35:57 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 3 Apr 2023 13:35:57 +0200 Subject: [Gambas-user] Theme Colors under QT5 In-Reply-To: <805d346f-e640-faff-adf5-fffc9e79be7d@freenet.de> References: <805d346f-e640-faff-adf5-fffc9e79be7d@freenet.de> Message-ID: Le 03/04/2023 ? 13:04, Claus Dietrich a ?crit?: > Hi > > One motive to develop an own custom Control button was the unpredictable > rendering of the background color of the native Gambas button under QT5. > In order to obtain a default coloring which depends on the current > theme, I use Color.ButtonBackground as background color for the new > button. But to my surprise this color looks totally different than the > background color of the native Gambas button. Must this also be seen as > a problem of the themes (as claimed for the unpredictable background > rendering at QT5)? Can a theme resp. QT provide a different (wrong?) > color than the one its is actually using? How reliable are the other > theme-dependent colors provided by the color-class? > > When I changed to gb.gtk3 the button background color of the native > button and my custom control button look identical. > > Best regards > > Claus > Which theme gives you this result? -- Beno?t Minisini. From t.lee.davidson at gmail.com Mon Apr 3 16:06:39 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 3 Apr 2023 10:06:39 -0400 Subject: [Gambas-user] Theme Colors under QT5 In-Reply-To: <805d346f-e640-faff-adf5-fffc9e79be7d@freenet.de> References: <805d346f-e640-faff-adf5-fffc9e79be7d@freenet.de> Message-ID: <4ca0a38d-fd03-b5b9-9086-7b9ef5e636c5@gmail.com> On 4/3/23 07:04, Claus Dietrich wrote: > Hi > > One motive to develop an own custom Control button was the unpredictable rendering of the background color of the native Gambas > button under QT5. In order to obtain a default coloring which depends on the current theme, I use Color.ButtonBackground as > background color for the new button. But to my surprise this color looks totally different than the background color of the > native Gambas button. Must this also be seen as a problem of the themes (as claimed for the unpredictable background rendering > at QT5)? Can a theme resp. QT provide a different (wrong?) color than the one its is actually using? How reliable are the other > theme-dependent colors provided by the color-class? > > When I changed to gb.gtk3 the button background color of the native button and my custom control button look identical. > > Best regards > > Claus Just FYI, Color.ButtonBackground looks identical to the background color of the native Gambas button on my system with the Qt5 Breeze widget theme. -- Lee From bsteers4 at gmail.com Tue Apr 4 07:46:07 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 4 Apr 2023 06:46:07 +0100 Subject: [Gambas-user] wiki no scroll Message-ID: if i load a page like https://gambaswiki.org/wiki/comp/gb.qt4 I cannot get to the bottom of the page as i cannot scroll BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Tue Apr 4 07:49:29 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 4 Apr 2023 06:49:29 +0100 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: Message-ID: On Tue, 4 Apr 2023 at 06:46, Bruce Steers wrote: > if i load a page like > https://gambaswiki.org/wiki/comp/gb.qt4 > > I cannot get to the bottom of the page as i cannot scroll > > Bruce > Aah sorry , i think a cache refresh fixed it. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Apr 4 15:59:36 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 4 Apr 2023 15:59:36 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: Message-ID: Am 04.04.23 um 07:49 schrieb Bruce Steers: > On Tue, 4 Apr 2023 at 06:46, Bruce Steers wrote: > >> if i load a page like >> https://gambaswiki.org/wiki/comp/gb.qt4 >> >> I cannot get to the bottom of the page as i cannot scroll >> >> Bruce >> > > Aah sorry , i think a cache refresh fixed it. Not really. I can only scroll with the mousewheel, not by Up/Down or Pgup/Pgdown. For example look at this: https://docs.python.org/3/reference/index.html It can also be used with the keyboard. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From jose.rodriguez at cenpalab.cu Tue Apr 4 16:03:19 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Tue, 04 Apr 2023 10:03:19 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: Message-ID: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> On 2023-04-04 09:59, Christof Thalhofer wrote: > Am 04.04.23 um 07:49 schrieb Bruce Steers: > >> On Tue, 4 Apr 2023 at 06:46, Bruce Steers wrote: >> >>> if i load a page like >>> https://gambaswiki.org/wiki/comp/gb.qt4 >>> >>> I cannot get to the bottom of the page as i cannot scroll >>> >>> Bruce >>> >> >> Aah sorry , i think a cache refresh fixed it. > > Not really. I can only scroll with the mousewheel, not by Up/Down or > Pgup/Pgdown. > You can, once you click on the content pane. However, it does not work on the left index pane. Regards, Joe1962 From claus.dietrich at freenet.de Tue Apr 4 17:02:38 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Tue, 4 Apr 2023 17:02:38 +0200 Subject: [Gambas-user] Theme Colors under QT5 In-Reply-To: References: <805d346f-e640-faff-adf5-fffc9e79be7d@freenet.de> Message-ID: <89416a68-d21a-2596-8254-84bbf1d4ace2@freenet.de> Am 03.04.23 um 13:35 schrieb Benoit Minisini: > Le 03/04/2023 ? 13:04, Claus Dietrich a ?crit?: >> Hi >> >> One motive to develop an own custom Control button was the >> unpredictable rendering of the background color of the native Gambas >> button under QT5. In order to obtain a default coloring which depends >> on the current theme, I use Color.ButtonBackground as background >> color for the new button. But to my surprise this color looks totally >> different than the background color of the native Gambas button. Must >> this also be seen as a problem of the themes (as claimed for the >> unpredictable background rendering at QT5)? Can a theme resp. QT >> provide a different (wrong?) color than the one its is actually >> using? How reliable are the other theme-dependent colors provided by >> the color-class? >> >> When I changed to gb.gtk3 the button background color of the native >> button and my custom control button look identical. >> >> Best regards >> >> Claus >> > > Which theme gives you this result? > It is the default Mint-y theme on Mint 20.3 Cinnamon. It provides &H00F0F0F0 as ButtonBackground. I attached a screenshot which shows the difference between a very basic self-made button with backcolor $H00F0F0F0 and a native button under QT5. Regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_qt5.png Type: image/png Size: 3037 bytes Desc: not available URL: From t.lee.davidson at gmail.com Tue Apr 4 17:23:22 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 11:23:22 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> Message-ID: <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> On 4/4/23 10:03, jose.rodriguez at cenpalab.cu wrote: > On 2023-04-04 09:59, Christof Thalhofer wrote: >> Am 04.04.23 um 07:49 schrieb Bruce Steers: >> >>> On Tue, 4 Apr 2023 at 06:46, Bruce Steers wrote: >>> >>>> if i load a page like >>>> https://gambaswiki.org/wiki/comp/gb.qt4 >>>> >>>> I cannot get to the bottom of the page as i cannot scroll >>>> >>>> Bruce >>>> >>> >>> Aah sorry , i think a cache refresh fixed it. >> >> Not really. I can only scroll with the mousewheel, not by Up/Down or Pgup/Pgdown. >> > > You can, once you click on the content pane. However, it does not work on the left index pane. > > Regards, > Joe1962 Yes, it does. You have to click there to activate it just like with the content pane. -- Lee From jose.rodriguez at cenpalab.cu Tue Apr 4 17:32:57 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Tue, 04 Apr 2023 11:32:57 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> Message-ID: On 2023-04-04 11:23, T Lee Davidson wrote: > On 4/4/23 10:03, jose.rodriguez at cenpalab.cu wrote: >> On 2023-04-04 09:59, Christof Thalhofer wrote: >>> Am 04.04.23 um 07:49 schrieb Bruce Steers: >>> >>>> On Tue, 4 Apr 2023 at 06:46, Bruce Steers >>>> wrote: >>>> >>>>> if i load a page like >>>>> https://gambaswiki.org/wiki/comp/gb.qt4 >>>>> >>>>> I cannot get to the bottom of the page as i cannot scroll >>>>> >>>>> Bruce >>>>> >>>> >>>> Aah sorry , i think a cache refresh fixed it. >>> >>> Not really. I can only scroll with the mousewheel, not by Up/Down or >>> Pgup/Pgdown. >>> >> >> You can, once you click on the content pane. However, it does not work >> on the left index pane. >> >> Regards, >> Joe1962 > > Yes, it does. You have to click there to activate it just like with the > content pane. Not for me on Vivaldi, all it does on clicking is change the index item. Regards, Joe1962 From t.lee.davidson at gmail.com Tue Apr 4 17:36:35 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 11:36:35 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> Message-ID: On 4/4/23 11:32, jose.rodriguez at cenpalab.cu wrote: > On 2023-04-04 11:23, T Lee Davidson wrote: >> On 4/4/23 10:03, jose.rodriguez at cenpalab.cu wrote: >>> On 2023-04-04 09:59, Christof Thalhofer wrote: >>>> Am 04.04.23 um 07:49 schrieb Bruce Steers: >>>> >>>>> On Tue, 4 Apr 2023 at 06:46, Bruce Steers wrote: >>>>> >>>>>> if i load a page like >>>>>> https://gambaswiki.org/wiki/comp/gb.qt4 >>>>>> >>>>>> I cannot get to the bottom of the page as i cannot scroll >>>>>> >>>>>> Bruce >>>>>> >>>>> >>>>> Aah sorry , i think a cache refresh fixed it. >>>> >>>> Not really. I can only scroll with the mousewheel, not by Up/Down or Pgup/Pgdown. >>>> >>> >>> You can, once you click on the content pane. However, it does not work on the left index pane. >>> >>> Regards, >>> Joe1962 >> >> Yes, it does. You have to click there to activate it just like with the content pane. > > Not for me on Vivaldi, all it does on clicking is change the index item. > > Regards, > Joe1962 You have to click other than on a link, like way to the left margin. Using Firefox here. -- Lee From jose.rodriguez at cenpalab.cu Tue Apr 4 17:40:39 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Tue, 04 Apr 2023 11:40:39 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> Message-ID: <5d834ebda455c3d98734fa7111da5eec@cenpalab.cu> On 2023-04-04 11:36, T Lee Davidson wrote: > On 4/4/23 11:32, jose.rodriguez at cenpalab.cu wrote: >> On 2023-04-04 11:23, T Lee Davidson wrote: >>> On 4/4/23 10:03, jose.rodriguez at cenpalab.cu wrote: >>>> On 2023-04-04 09:59, Christof Thalhofer wrote: >>>>> Am 04.04.23 um 07:49 schrieb Bruce Steers: >>>>> >>>>>> On Tue, 4 Apr 2023 at 06:46, Bruce Steers >>>>>> wrote: >>>>>> >>>>>>> if i load a page like >>>>>>> https://gambaswiki.org/wiki/comp/gb.qt4 >>>>>>> >>>>>>> I cannot get to the bottom of the page as i cannot scroll >>>>>>> >>>>>>> Bruce >>>>>>> >>>>>> >>>>>> Aah sorry , i think a cache refresh fixed it. >>>>> >>>>> Not really. I can only scroll with the mousewheel, not by Up/Down >>>>> or Pgup/Pgdown. >>>>> >>>> >>>> You can, once you click on the content pane. However, it does not >>>> work on the left index pane. >>>> >>>> Regards, >>>> Joe1962 >>> >>> Yes, it does. You have to click there to activate it just like with >>> the content pane. >> >> Not for me on Vivaldi, all it does on clicking is change the index >> item. >> >> Regards, >> Joe1962 > > You have to click other than on a link, like way to the left margin. > Using Firefox here. Ah, ok. Clicking on the left does it, I was actually clicking towards the right margin, hehe. Regards, Joe1962 From chrisml at deganius.de Tue Apr 4 17:51:04 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 4 Apr 2023 17:51:04 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> Message-ID: Am 04.04.23 um 17:36 schrieb T Lee Davidson: > You have to click other than on a link, like way to the left margin. > Using Firefox here. I would prefer that the elements are fixed like in the old Sphinx themes, and everything can be moved up and down at once with keys, without having to set the focus to a specific element with a mouse click. IMO there is no advantage in usability by making the elements moveable independently. Rather the opposite. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From jose.rodriguez at cenpalab.cu Tue Apr 4 17:55:55 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Tue, 04 Apr 2023 11:55:55 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> Message-ID: <9cedc1857c5ca13ba981fa4769d0e49f@cenpalab.cu> On 2023-04-04 11:51, Christof Thalhofer wrote: > Am 04.04.23 um 17:36 schrieb T Lee Davidson: > >> You have to click other than on a link, like way to the left margin. >> Using Firefox here. > > I would prefer that the elements are fixed like in the old Sphinx > themes, and everything can be moved up and down at once with keys, > without having to set the focus to a specific element with a mouse > click. IMO there is no advantage in usability by making the elements > moveable independently. Rather the opposite. > It would be good if you could tab between the panes, but that does not seem to work. Regards, Joe1962 From t.lee.davidson at gmail.com Tue Apr 4 17:56:27 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 11:56:27 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> Message-ID: On 4/4/23 11:51, Christof Thalhofer wrote: > I would prefer that the elements are fixed like in the old Sphinx themes, and everything can be moved up and down at once with > keys, without having to set the focus to a specific element with a mouse click. IMO there is no advantage in usability by making > the elements moveable?independently.?Rather?the?opposite. > > Alles?Gute > > Christof?Thalhofer So, then, you think the page should behave as the Python doc page behaves, ie. scroll both panes until one or the other hits the bottom, then scroll only the other. Yes? -- Lee From chrisml at deganius.de Tue Apr 4 18:37:07 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 4 Apr 2023 18:37:07 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <340a566c7a1112f42d09f8156e416bfa@cenpalab.cu> <8fcbd55d-f00d-ea66-c9de-434065caa5dd@gmail.com> Message-ID: <0fe5ce94-2052-1d01-cbd6-599d7d66407b@deganius.de> Am 04.04.23 um 17:56 schrieb T Lee Davidson: > On 4/4/23 11:51, Christof Thalhofer wrote: >> I would prefer that the elements are fixed like in the old Sphinx >> themes, and everything can be moved up and down at once with keys, >> without having to set the focus to a specific element with a mouse >> click. IMO there is no advantage in usability by making the >> elements moveable independently. Rather the opposite. > > So, then, you think the page should behave as the Python doc page > behaves, ie. scroll both panes until one or the other hits the > bottom, then scroll only the other. Yes? The new ones behave like that. As I remember the old ones were just one block, like a HTML table. IMO that would be enough ... no chichi. :-) But the new Python doc pages are quite good, relatively easy to navigate with the keyboard. I think these keys should work at the first visit of the page without having to touch the mouse: Up/Down PgUp/PgDown Home/End Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Tue Apr 4 19:33:21 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 4 Apr 2023 19:33:21 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: Message-ID: Le 04/04/2023 ? 15:59, Christof Thalhofer a ?crit?: > Am 04.04.23 um 07:49 schrieb Bruce Steers: > >> On Tue, 4 Apr 2023 at 06:46, Bruce Steers wrote: >> >>> if i load a page like >>> https://gambaswiki.org/wiki/comp/gb.qt4 >>> >>> I cannot get to the bottom of the page as i cannot scroll >>> >>> Bruce >>> >> >> Aah sorry , i think a cache refresh fixed it. > > Not really. I can only scroll with the mousewheel, not by Up/Down or > Pgup/Pgdown. > > For example look at this: > https://docs.python.org/3/reference/index.html > > It can also be used with the keyboard. > > Alles Gute > > Christof Thalhofer > Things should behave better now. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Tue Apr 4 19:39:16 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 13:39:16 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: Message-ID: On 4/4/23 13:33, Benoit Minisini wrote: >> Not really. I can only scroll with the mousewheel, not by Up/Down or Pgup/Pgdown. >> >> For?example?look?at?this: >> https://docs.python.org/3/reference/index.html >> >> It?can?also?be?used?with?the?keyboard. >> >> Alles?Gute >> >> Christof?Thalhofer >> > > Things?should?behave?better?now. > > Regards, > > -- > Beno?t?Minisini. It seems to behave the same as it did before. The content (page-frame) has the default focus and scrolls with the arrow keys. But, the index (index-frame) has to receive focus with a mouse click to scroll with the keys. (Yes, I refreshed with SHIFT.) -- Lee From benoit.minisini at gambas-basic.org Tue Apr 4 20:05:21 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 4 Apr 2023 20:05:21 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: Message-ID: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> Le 04/04/2023 ? 19:39, T Lee Davidson a ?crit?: > It seems to behave the same as it did before. No, before nothing had the focus, so you had to click on the page to be able to scroll it with the keyboard. > The content (page-frame) > has the default focus and scrolls with the arrow keys. But, the index > (index-frame) has to receive focus with a mouse click to scroll with the > keys. (Yes, I refreshed with SHIFT.) > This is what is expected. What did you think? -- Beno?t Minisini. From t.lee.davidson at gmail.com Tue Apr 4 20:07:55 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 14:07:55 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> References: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> Message-ID: <1ce8ab0c-1442-b91c-199a-677f01f31bc6@gmail.com> On 4/4/23 14:05, Benoit Minisini wrote: > No, before nothing had the focus, so you had to click on the page to be able?to?scroll?it?with?the?keyboard. Okay, I missed that particular behavior before. -- Lee From angelnunez123 at gmail.com Tue Apr 4 20:51:14 2023 From: angelnunez123 at gmail.com (Angel) Date: Tue, 4 Apr 2023 20:51:14 +0200 Subject: [Gambas-user] create custom user functions in SQLITE3 from Gambas Message-ID: <9d55a78b-a10b-1f71-0e99-1e471dc9c1de@gmail.com> hello I am trying to create custom user functions in SQLITE3 from Gambas but given my ignorance of C it is impossible. Has anyone tried?The function in C is: int sqlite3_create_function( ? sqlite3 *db, ? const char *zFunctionName, ? int nArg, ? int eTextRep, ? void *pApp, ? void (*xFunc)(sqlite3_context*,int,sqlite3_value**), ? void (*xStep)(sqlite3_context*,int,sqlite3_value**), ? void (*xFinal)(sqlite3_context*) ); The explanation at: https://www.sqlite.org/c3ref/create_function.html I've done: ' Gambas module file Library "libsqlite3" Private Extern sqlite3_create_function(db As Pointer, name As String, arg As Integer, eTextRep As Integer, pApp As Pointer, xFun As Pointer, xStep As Pointer, xFinal As Pointer) Private BD As Connection Public Sub Main() ??? '#define SQLITE_UTF8???? 1 ??? Dim punt1 As Pointer ??? Dim punt2 As Pointer ??? Dim ia As Integer ??? BD = New Connection ??? With BD ??????? .Type = "sqlite3" ??????? .Host = Application.Path ??????? 'verificating if db exist ??????? .Name = "" ??????? .Open ??? End With ??? punt1 = VarPtr(BD) ??? Debug sepTelef("666777888") ??? Debug punt1 ??? ia = sqlite3_create_function(punt1, "sepTelef", 1, 1, Null, sepTelef, Null, Null) End Function sepTelef(telefono As String) As String ??? Dim scad As String ??? scad = Mid(telefono, 1, 3) & "-" & Mid(telefono, 4, 3) & "-" & Mid(telefono, 7, 3) ??? Return scad End result Segment violation 11 -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Tue Apr 4 21:29:14 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 4 Apr 2023 21:29:14 +0200 Subject: [Gambas-user] create custom user functions in SQLITE3 from Gambas In-Reply-To: <9d55a78b-a10b-1f71-0e99-1e471dc9c1de@gmail.com> References: <9d55a78b-a10b-1f71-0e99-1e471dc9c1de@gmail.com> Message-ID: Le 04/04/2023 ? 20:51, Angel a ?crit?: > hello > > I am trying to create custom user functions in SQLITE3 from Gambas but > given my ignorance of C it is impossible. > > Has anyone tried?The function in C is: > > int sqlite3_create_function( > ? sqlite3 *db, > ? const char *zFunctionName, > ? int nArg, > ? int eTextRep, > ? void *pApp, > ? void (*xFunc)(sqlite3_context*,int,sqlite3_value**), > ? void (*xStep)(sqlite3_context*,int,sqlite3_value**), > ? void (*xFinal)(sqlite3_context*) > ); > > The explanation at: https://www.sqlite.org/c3ref/create_function.html > > I've done: > > > ' Gambas module file > > Library "libsqlite3" > Private Extern sqlite3_create_function(db As Pointer, name As String, > arg As Integer, eTextRep As Integer, pApp As Pointer, xFun As Pointer, > xStep As Pointer, xFinal As Pointer) > Private BD As Connection > > Public Sub Main() > > ??? '#define SQLITE_UTF8???? 1 > > ??? Dim punt1 As Pointer > ??? Dim punt2 As Pointer > ??? Dim ia As Integer > > ??? BD = New Connection > ??? With BD > ??????? .Type = "sqlite3" > ??????? .Host = Application.Path > ??????? 'verificating if db exist > ??????? .Name = "" > ??????? .Open > ??? End With > > ??? punt1 = VarPtr(BD) > ??? Debug sepTelef("666777888") > ??? Debug punt1 > > ??? ia = sqlite3_create_function(punt1, "sepTelef", 1, 1, Null, > sepTelef, Null, Null) > > End > > Function sepTelef(telefono As String) As String > > ??? Dim scad As String > > ??? scad = Mid(telefono, 1, 3) & "-" & Mid(telefono, 4, 3) & "-" & > Mid(telefono, 7, 3) > ??? Return scad > > End > > > result > > Segment violation 11 > 'VarPtr(BD)' is the memory address where a pointer to a Gambas object (BD) is stored. It has nothing to do with the "sqlite3 *" pointer of the underlying connection. So It cannot work. The Handle property of BD returns a pointer that points at a structure that represents a SQLite database to Gambas. But it's still not the "sqlite3 *" pointer you need. Fortunately, this pointer is stored at the beginning of that structure. (you can know that by reading the source code of the 'gb.db.sqlite3' component). So Try 'Pointer@(BD.Handle)' instead of 'VarPtr(BD)'. And try a bit to understand how C works otherwise you won't really understand how external function management works in Gambas! Regards, -- Beno?t Minisini. From chrisml at deganius.de Tue Apr 4 22:06:54 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 4 Apr 2023 22:06:54 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> References: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> Message-ID: Am 04.04.23 um 20:05 schrieb Benoit Minisini: > Le 04/04/2023 ? 19:39, T Lee Davidson a ?crit?: >> It seems to behave the same as it did before. > > No, before nothing had the focus, so you had to click on the page to be > able to scroll it with the keyboard. > >> The content (page-frame) >> has the default focus and scrolls with the arrow keys. But, the index >> (index-frame) has to receive focus with a mouse click to scroll with the >> keys. (Yes, I refreshed with SHIFT.) >> > > This is what is expected. What did you think? Please look at the example of the Python docs. There you can see that the index also scrolls down if one presses or . IMO it would be better if index and content would be tied together and one can scroll down or up both with one key. This page is a good example: http://gambaswiki.org/edit/comp Why does only the content scroll down with and why do I have to grab the mouse to click on a free space on the index on the left side to scroll it down with a key if I want? Yes I know, I can grab the mouse and use the mouse wheel. But thinking about it I can't see any deeper sense in why the index and content can be scrolled independently. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From jose.rodriguez at cenpalab.cu Tue Apr 4 23:10:44 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Tue, 04 Apr 2023 17:10:44 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> Message-ID: On 2023-04-04 16:06, Christof Thalhofer wrote: > > Why does only the content scroll down with and why do I have to > grab the mouse to click on a free space on the index on the left side > to scroll it down with a key if I want? > > But thinking about it I can't see any deeper sense in why the index and > content can be scrolled independently. > Well, I actually prefer the selected index item to stay put so it remains visible. Right now, the focus starts on the content pane, but the tab key cycles focus through the top right login button and language dropdown, then back to the content pane. The fix might be to include the index pane in the focus cycle, if possible. Regards, Joe1962 From benoit.minisini at gambas-basic.org Tue Apr 4 23:15:51 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 4 Apr 2023 23:15:51 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> Message-ID: Le 04/04/2023 ? 22:06, Christof Thalhofer a ?crit?: > Am 04.04.23 um 20:05 schrieb Benoit Minisini: >> Le 04/04/2023 ? 19:39, T Lee Davidson a ?crit?: >>> It seems to behave the same as it did before. >> >> No, before nothing had the focus, so you had to click on the page to be >> able to scroll it with the keyboard. >> >>> The content (page-frame) >>> has the default focus and scrolls with the arrow keys. But, the index >>> (index-frame) has to receive focus with a mouse click to scroll with the >>> keys. (Yes, I refreshed with SHIFT.) >>> >> >> This is what is expected. What did you think? > > Please look at the example of the Python docs. Wow. Never done that in my life. > There you can see that > the index also scrolls down if one presses or . Yes. But I'm not sure this is intended. The python doc page behaves like that because the index panel is included in the page panel that has the scrollbar, and has been maded sticky. This behaviour is weird too for my tastes! > > IMO it would be better if index and content would be tied together and > one can scroll down or up both with one key. > > This page is a good example: > > http://gambaswiki.org/edit/comp > > Why does only the content scroll down with and why do I have to > grab the mouse to click on a free space on the index on the left side to > scroll it down with a key if I want? The index panel is actually completely independent of the page panel. This is why they scroll independently. I'm not sure I want the index panel to be inside the page panel. I will see what can I do... -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Tue Apr 4 23:17:29 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 4 Apr 2023 23:17:29 +0200 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> Message-ID: <53712df3-383b-acc8-bdb3-38d5d6e6172e@gambas-basic.org> Le 04/04/2023 ? 23:10, jose.rodriguez at cenpalab.cu a ?crit?: > On 2023-04-04 16:06, Christof Thalhofer wrote: >> >> Why does only the content scroll down with and why do I have to >> grab the mouse to click on a free space on the index on the left side >> to scroll it down with a key if I want? >> >> But thinking about it I can't see any deeper sense in why the index >> and content can be scrolled independently. >> > > Well, I actually prefer the selected index item to stay put so it > remains visible. > > Right now, the focus starts on the content pane, but the tab key cycles > focus through the top right login button and language dropdown, then > back to the content pane. The fix might be to include the index pane in > the focus cycle, if possible. > > Regards, > Joe1962 > Yes, it's possible, with the 'tabindex' attribute. The HTML rules seems to be that this attribute must be explicitly set on non-input elements so that it can be focused by code and be part of the focus chain. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Tue Apr 4 23:40:45 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 17:40:45 -0400 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> Message-ID: <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> On 4/1/23 06:08, Benoit Minisini wrote: > >> If?yes,?I?can?work?on?that?in?some?free?time?since?I'm?sure?the?index >> item?issue?is?more?pressing. > > You?are?welcome. Okay, I think I have it. I've tested it on a static, local copy so the live behavior may have a glitch or two. Since you're still making changes to the index page, I'm not attaching a diff file for that. Other than including the javascript and additional styles, it involves only adding "
«
" at the bottom of, and within, the index-frame DIV. I am attaching style.css.diff, indexbar.js, and indexbar.css. I hope this mail doesn't get bounced. Update: Gmail obviously doesn't like the code attachments. So, find them here: https://www.dropbox.com/s/gpqtdtt50hpnv3n/collapsible-index.tar.gz?dl=0 -- Lee From t.lee.davidson at gmail.com Tue Apr 4 23:55:16 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 17:55:16 -0400 Subject: [Gambas-user] wiki no scroll In-Reply-To: References: <8897960e-27c1-7f42-38de-0c295488a435@gambas-basic.org> Message-ID: <272f2b6b-62f6-765e-6c13-78292ebb9c99@gmail.com> On 4/4/23 17:15, Benoit Minisini wrote: > >> >> IMO it would be better if index and content would be tied together and one?can?scroll?down?or?up?both?with?one?key. >> >> This?page?is?a?good?example: >> >> http://gambaswiki.org/edit/comp >> >> Why does only the content scroll down with and why do I have to grab the mouse to click on a free space on the index on >> the left side to scroll?it?down?with?a?key?if?I?want? > > The index panel is actually completely independent of the page panel. This?is?why?they?scroll?independently. > > I'm not sure I want the index panel to be inside the page panel. I will see?what?can?I?do... I'm with Joe on this. I would actually prefer that they scroll independently so that the index scrolls *only* if I explicitly scroll it. I wouldn't want to have to scroll (way) back up just to find my place in the index. -- Lee From benoit.minisini at gambas-basic.org Wed Apr 5 00:18:10 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 00:18:10 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> Message-ID: <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> Le 04/04/2023 ? 23:40, T Lee Davidson a ?crit?: > On 4/1/23 06:08, Benoit Minisini wrote: >> >>> If?yes,?I?can?work?on?that?in?some?free?time?since?I'm?sure?the?index >>> item?issue?is?more?pressing. >> >> You?are?welcome. > > Okay, I think I have it. I've tested it on a static, local copy so the > live behavior may have a glitch or two. > > Since you're still making changes to the index page, I'm not attaching a > diff file for that. Other than including the javascript and additional > styles, it involves only adding "
«
" at the bottom of, and within, the > index-frame DIV. > > I am attaching style.css.diff, indexbar.js, and indexbar.css. I hope > this mail doesn't get bounced. > > Update: Gmail obviously doesn't like the code attachments. So, find them > here: > https://www.dropbox.com/s/gpqtdtt50hpnv3n/collapsible-index.tar.gz?dl=0 > > Apparently I can't download them without subscribing to dropbox. Can you use wetransfer? Or anything else that does not require a subscription. -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Wed Apr 5 00:19:06 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 00:19:06 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> Message-ID: Le 05/04/2023 ? 00:18, Benoit Minisini a ?crit?: > Le 04/04/2023 ? 23:40, T Lee Davidson a ?crit?: >> On 4/1/23 06:08, Benoit Minisini wrote: >>> >>>> If?yes,?I?can?work?on?that?in?some?free?time?since?I'm?sure?the?index >>>> item?issue?is?more?pressing. >>> >>> You?are?welcome. >> >> Okay, I think I have it. I've tested it on a static, local copy so the >> live behavior may have a glitch or two. >> >> Since you're still making changes to the index page, I'm not attaching >> a diff file for that. Other than including the javascript and >> additional styles, it involves only adding "
> title="Hide index">«
" at the bottom of, and >> within, the index-frame DIV. >> >> I am attaching style.css.diff, indexbar.js, and indexbar.css. I hope >> this mail doesn't get bounced. >> >> Update: Gmail obviously doesn't like the code attachments. So, find >> them here: >> https://www.dropbox.com/s/gpqtdtt50hpnv3n/collapsible-index.tar.gz?dl=0 >> >> > > Apparently I can't download them without subscribing to dropbox. > > Can you use wetransfer? Or anything else that does not require a > subscription. > Mmm... Sorry now it does not ask anymore to subscribe, I can download the files. Strange! -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Wed Apr 5 00:20:35 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 00:20:35 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> Message-ID: <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> Le 05/04/2023 ? 00:19, Benoit Minisini a ?crit?: > Le 05/04/2023 ? 00:18, Benoit Minisini a ?crit?: >> Le 04/04/2023 ? 23:40, T Lee Davidson a ?crit?: >>> On 4/1/23 06:08, Benoit Minisini wrote: >>>> >>>>> If?yes,?I?can?work?on?that?in?some?free?time?since?I'm?sure?the?index >>>>> item?issue?is?more?pressing. >>>> >>>> You?are?welcome. >>> >>> Okay, I think I have it. I've tested it on a static, local copy so >>> the live behavior may have a glitch or two. >>> >>> Since you're still making changes to the index page, I'm not >>> attaching a diff file for that. Other than including the javascript >>> and additional styles, it involves only adding "
>> title="Hide index">«
" at the bottom of, and >>> within, the index-frame DIV. >>> >>> I am attaching style.css.diff, indexbar.js, and indexbar.css. I hope >>> this mail doesn't get bounced. >>> >>> Update: Gmail obviously doesn't like the code attachments. So, find >>> them here: >>> https://www.dropbox.com/s/gpqtdtt50hpnv3n/collapsible-index.tar.gz?dl=0 >>> Note: the simplest for me would have been you making a merge request with the changes on gitlab. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Wed Apr 5 00:22:50 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 00:22:50 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> Message-ID: Le 05/04/2023 ? 00:20, Benoit Minisini a ?crit?: > > Note: the simplest for me would have been you making a merge request > with the changes on gitlab. > > Regards, > I have just committed all the changes of the 'gambas-wiki' project. -- Beno?t Minisini. From t.lee.davidson at gmail.com Wed Apr 5 00:43:38 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 18:43:38 -0400 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> Message-ID: On 4/4/23 18:20, Benoit Minisini wrote: > Note: the simplest for me would have been you making a merge request with?the?changes?on?gitlab. Oh. Okay. I thought it was quite simple; just two changes to style.css, and three to the index page. Before I can issue a pull request, I'll have to analyze the Wiki system and get a Gitlab account set up. It will be quite a few days, at least, before I can get to that. -- Lee From benoit.minisini at gambas-basic.org Wed Apr 5 00:43:59 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 00:43:59 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> Message-ID: <93191a8a-a666-2872-6ffb-c359645c50f0@gambas-basic.org> Le 04/04/2023 ? 23:40, T Lee Davidson a ?crit?: > On 4/1/23 06:08, Benoit Minisini wrote: >> >>> If?yes,?I?can?work?on?that?in?some?free?time?since?I'm?sure?the?index >>> item?issue?is?more?pressing. >> >> You?are?welcome. > > Okay, I think I have it. I've tested it on a static, local copy so the > live behavior may have a glitch or two. > > Since you're still making changes to the index page, I'm not attaching a > diff file for that. Other than including the javascript and additional > styles, it involves only adding "
«
" at the bottom of, and within, the > index-frame DIV. > > I am attaching style.css.diff, indexbar.js, and indexbar.css. I hope > this mail doesn't get bounced. > > Update: Gmail obviously doesn't like the code attachments. So, find them > here: > https://www.dropbox.com/s/gpqtdtt50hpnv3n/collapsible-index.tar.gz?dl=0 > > There is something I don't like: you must store the state of the panel in the user session, not in the cookie store of the browser. I even think we don't have to store the state at all. Just a button that toggles the index should be enough, shouldn't it? -- Beno?t Minisini. From t.lee.davidson at gmail.com Wed Apr 5 03:23:14 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 4 Apr 2023 21:23:14 -0400 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <93191a8a-a666-2872-6ffb-c359645c50f0@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <93191a8a-a666-2872-6ffb-c359645c50f0@gambas-basic.org> Message-ID: <791dad82-6fc4-3efe-2f2c-218a2fb60d04@gmail.com> On 4/4/23 18:43, Benoit Minisini wrote: > There is something I don't like: you must store the state of the panel in?the?user?session,?not?in?the?cookie?store?of?the?browser. Okay, I've changed that. > I even think we don't have to store the state at all. Just a button that toggles?the?index?should?be?enough,?shouldn't?it? I thought it was nice to preserve the user's preference between page loads. But, it also may make sense to show the index for a newly fetched page so the hierarchical location is readily apparent. If you don't like it and want to disable the feature, simply comment out line 48: set_indexbar_from_session(); Let's see if the G-overlord allows this attachment. -- Lee -------------- next part -------------- window.onload = (event) => { function get_first_class(_class) { return document.getElementsByClassName(_class)[0]; } var indexframe = get_first_class('index-frame'); var pageindex = get_first_class('page-index'); var indexbutton = document.getElementById('indexbutton'); function index_is_hidden() { return (pageindex.offsetParent === null) } function toggle_index() { if (index_is_hidden()) show_index(); else hide_index(); } function hide_index() { pageindex.style.display = 'none'; indexframe.style.width = '12px'; indexbutton.querySelector(":scope > span").innerText = '?'; indexbutton.title = "Show index"; sessionStorage.setItem('index', 'hidden'); } function show_index() { pageindex.style.display = 'block'; indexframe.style.width = '25%'; indexbutton.querySelector(":scope > span").innerText = '?'; indexbutton.title = "Hide index"; sessionStorage.setItem('index', 'visible'); } function set_indexbar_from_session() { let index_panel = sessionStorage.getItem('index') if (!index_panel) return; if ((index_panel == 'hidden') && (!index_is_hidden())) hide_index(); else if ((index_panel == 'visible') && (index_is_hidden())) show_index(); } set_indexbar_from_session(); indexbutton.addEventListener("click", toggle_index); }; From benoit.minisini at gambas-basic.org Wed Apr 5 05:55:18 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 05:55:18 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> Message-ID: <0caa5d2c-d988-b633-6466-a6163b837fc4@gambas-basic.org> Le 05/04/2023 ? 00:43, T Lee Davidson a ?crit?: > On 4/4/23 18:20, Benoit Minisini wrote: >> Note: the simplest for me would have been you making a merge request >> with?the?changes?on?gitlab. > > Oh. Okay. I thought it was quite simple; just two changes to style.css, > and three to the index page. > Yes, but if you store the panel state in the session, you have to touch to the gambas wiki code. > Before I can issue a pull request, I'll have to analyze the Wiki system > and get a Gitlab account set up. It will be quite a few days, at least, > before I can get to that. > The first time it's a bit of work, but then all your future changes will be easier to process. At least for me! :-) -- Beno?t Minisini. From sharon at 455.co.il Wed Apr 5 14:39:51 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 5 Apr 2023 14:39:51 +0200 Subject: [Gambas-user] Struct with Array Field In-Reply-To: <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> Message-ID: <20230405123951.M13089@455.co.il> Hello How to add a Field that is an array inside a Struct i tried public struct ami_response string As String event_list As String[] End Struct Private v_response_temp As New Ami_response But when: v_response_temp.event_list.Add("Test") Returns error: Null Object Thank you From vuott at tutanota.com Wed Apr 5 14:54:52 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Wed, 5 Apr 2023 14:54:52 +0200 (CEST) Subject: [Gambas-user] Struct with Array Field In-Reply-To: <20230405123951.M13089@455.co.il> References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> <20230405123951.M13089@455.co.il> Message-ID: Solution: Public Struct ami_response ? string As String ? event_list As String[] End Struct Private v_response_temp As New Ami_response Public Sub Main() ? v_response_temp.event_list = New String[] ? v_response_temp.event_list.Add("Test") ?? ? Print v_response_temp.event_list[0] End ----- 5 apr 2023, 13:26 da sharon at 455.co.il: > Hello > > How to add a Field that is an array inside a Struct > > i tried > > public struct ami_response > string As String > event_list As String[] > End Struct > > Private v_response_temp As New Ami_response > > But when: > v_response_temp.event_list.Add("Test") > Returns error: Null Object > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Wed Apr 5 16:57:57 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 5 Apr 2023 16:57:57 +0200 Subject: [Gambas-user] Struct with Array Field In-Reply-To: References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> <20230405123951.M13089@455.co.il> Message-ID: <20230405145211.M42975@455.co.il> first thanks Is it supposed to be like this? For each field that is an array I will have to say NEW separately The fields are inside a Struct I thought that if I do NEW to Struct This will do it on all fields Thanks ---------- Original Message ----------- From: vuott--- via User To: Gambas Mailing List Cc: vuott at tutanota.com Sent: Wed, 5 Apr 2023 14:54:52 +0200 (CEST) Subject: Re: [Gambas-user] Struct with Array Field > Solution: > > Public Struct ami_response > ? string As String > ? event_list As String[] > End Struct > > Private v_response_temp As New Ami_response > > Public Sub Main() > > ? v_response_temp.event_list = New String[] > > ? v_response_temp.event_list.Add("Test") > ?? > ? Print v_response_temp.event_list[0] > > End > > ----- > 5 apr 2023, 13:26 da sharon at 455.co.il: > > > Hello > > > > How to add a Field that is an array inside a Struct > > > > i tried > > > > public struct ami_response > > string As String > > event_list As String[] > > End Struct > > > > Private v_response_temp As New Ami_response > > > > But when: > > v_response_temp.event_list.Add("Test") > > Returns error: Null Object > > > > Thank you > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > ------- End of Original Message ------- From vuott at tutanota.com Wed Apr 5 15:52:25 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Wed, 5 Apr 2023 15:52:25 +0200 (CEST) Subject: [Gambas-user] Struct with Array Field In-Reply-To: <20230405145211.M42975@455.co.il> References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> <20230405123951.M13089@455.co.il> <20230405145211.M42975@455.co.il> Message-ID: With NEW to Struct you create a mere "Object" of that declared Structure. For each array member, you must create the respective "Object", except for "nested" arrays. 5 apr 2023, 15:43 da sharon at 455.co.il: > first thanks > > Is it supposed to be like this? > For each field that is an array I will have to say NEW separately > > The fields are inside a Struct > I thought that if I do NEW to Struct > This will do it on all fields > > Thanks > > > ---------- Original Message ----------- > From: vuott--- via User > To: Gambas Mailing List > Cc: vuott at tutanota.com > Sent: Wed, 5 Apr 2023 14:54:52 +0200 (CEST) > Subject: Re: [Gambas-user] Struct with Array Field > >> Solution: >> >> Public Struct ami_response >> ? string As String >> ? event_list As String[] >> End Struct >> >> Private v_response_temp As New Ami_response >> >> Public Sub Main() >> >> ? v_response_temp.event_list = New String[] >> >> ? v_response_temp.event_list.Add("Test") >> ?? >> ? Print v_response_temp.event_list[0] >> >> End >> >> ----- >> 5 apr 2023, 13:26 da sharon at 455.co.il: >> >> > Hello >> > >> > How to add a Field that is an array inside a Struct >> > >> > i tried >> > >> > public struct ami_response >> > string As String >> > event_list As String[] >> > End Struct >> > >> > Private v_response_temp As New Ami_response >> > >> > But when: >> > v_response_temp.event_list.Add("Test") >> > Returns error: Null Object >> > >> > Thank you >> > >> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > >> > ------- End of Original Message ------- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Apr 5 16:54:17 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 5 Apr 2023 10:54:17 -0400 Subject: [Gambas-user] Struct with Array Field In-Reply-To: <20230405145211.M42975@455.co.il> References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> <20230405123951.M13089@455.co.il> <20230405145211.M42975@455.co.il> Message-ID: <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> On 4/5/23 10:57, Mayost Sharon wrote: > first thanks > > Is it supposed to be like this? > For each field that is an array I will have to say NEW separately > > The fields are inside a Struct > I thought that if I do NEW to Struct > This will do it on all fields > > Thanks Simple native datatypes (such as String, Integer, Boolean) will be automatically initialized. But, objects (such as String[], Integer[], Boolean[]), which are objects of classes and have properties and methods, must be initialized with the NEW keyword. -- Lee From t.lee.davidson at gmail.com Wed Apr 5 17:02:27 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 5 Apr 2023 11:02:27 -0400 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <0caa5d2c-d988-b633-6466-a6163b837fc4@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> <0caa5d2c-d988-b633-6466-a6163b837fc4@gambas-basic.org> Message-ID: On 4/4/23 23:55, Benoit Minisini wrote: > Le 05/04/2023 ? 00:43, T Lee Davidson a ?crit?: >> On 4/4/23 18:20, Benoit Minisini wrote: >>> Note: the simplest for me would have been you making a merge request with?the?changes?on?gitlab. >> >> Oh. Okay. I thought it was quite simple; just two changes to style.css, and three to the index page. >> > > Yes, but if you store the panel state in the session, you have to touch to the gambas wiki code. I don't understand why that would be. The panel state is stored just fine in the session via the Window.sessionStorage API. >> Before I can issue a pull request, I'll have to analyze the Wiki system and get a Gitlab account set up. It will be quite a >> few days, at least, before I can get to that. >> > > The first time it's a bit of work, but then all your future changes will be easier to process. At least for me! :-) Okay. Well, I'll look to get that done. -- Lee From benoit.minisini at gambas-basic.org Wed Apr 5 17:08:25 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 17:08:25 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> <0caa5d2c-d988-b633-6466-a6163b837fc4@gambas-basic.org> Message-ID: <29b0ca1c-b772-3f8e-9848-7441f4f442a1@gambas-basic.org> Le 05/04/2023 ? 17:02, T Lee Davidson a ?crit?: > On 4/4/23 23:55, Benoit Minisini wrote: >> Le 05/04/2023 ? 00:43, T Lee Davidson a ?crit?: >>> On 4/4/23 18:20, Benoit Minisini wrote: >>>> Note: the simplest for me would have been you making a merge request >>>> with?the?changes?on?gitlab. >>> >>> Oh. Okay. I thought it was quite simple; just two changes to >>> style.css, and three to the index page. >>> >> >> Yes, but if you store the panel state in the session, you have to >> touch to the gambas wiki code. > > I don't understand why that would be. The panel state is stored just > fine in the session via the Window.sessionStorage API. > Not that "session". I'm talking about the real session, which is stored on the server. It's managed by the Session class of the 'gb.web' component. Generally, I'm against storing temporary things on the client browser as much as possible. Regards, -- Beno?t Minisini. From t.lee.davidson at gmail.com Wed Apr 5 17:12:41 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 5 Apr 2023 11:12:41 -0400 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <29b0ca1c-b772-3f8e-9848-7441f4f442a1@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> <0caa5d2c-d988-b633-6466-a6163b837fc4@gambas-basic.org> <29b0ca1c-b772-3f8e-9848-7441f4f442a1@gambas-basic.org> Message-ID: <8995bb1d-3392-2c74-0e03-7648fca2aed2@gmail.com> On 4/5/23 11:08, Benoit Minisini wrote: > Generally, I'm against storing temporary things on the client browser as much?as?possible. Okay, I'll remove it. Just so I know how to proceed, would you like the indexbar CSS merged into style.css or kept separate? -- Lee From benoit.minisini at gambas-basic.org Wed Apr 5 17:18:28 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 5 Apr 2023 17:18:28 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <8995bb1d-3392-2c74-0e03-7648fca2aed2@gmail.com> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> <80e83b5d-f044-ffa2-066c-2c49515715f8@gambas-basic.org> <90df2671-94a2-1927-9b4b-5c2d47588f90@gambas-basic.org> <180e06ad-4f40-3198-407a-f868691b5450@gmail.com> <41ae9e8d-d93e-fc1b-6cdf-4b0c5f1f9560@gambas-basic.org> <90dbd9bc-4522-16de-6957-4863f7cf9a47@gambas-basic.org> <0caa5d2c-d988-b633-6466-a6163b837fc4@gambas-basic.org> <29b0ca1c-b772-3f8e-9848-7441f4f442a1@gambas-basic.org> <8995bb1d-3392-2c74-0e03-7648fca2aed2@gmail.com> Message-ID: <0617008c-b6e9-ee0b-4d75-90e4d43b59c2@gambas-basic.org> Le 05/04/2023 ? 17:12, T Lee Davidson a ?crit?: > On 4/5/23 11:08, Benoit Minisini wrote: >> Generally, I'm against storing temporary things on the client browser >> as much?as?possible. > > Okay, I'll remove it. > > Just so I know how to proceed, would you like the indexbar CSS merged > into style.css or kept separate? > As you like. Maybe you should just name your css classes the same way as in 'style.css'. -- Beno?t Minisini. From vuott at tutanota.com Wed Apr 5 18:04:38 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Wed, 5 Apr 2023 18:04:38 +0200 (CEST) Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" Message-ID: On this thread ?? https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html Brian G asked, if it were possible to know if an Object is a Structure. In Gambas source file ?? /home/[USER]/gambasdevel/main/share/gambas.h the numbers of datatypes identifiers are listed. Therefore, by knowing which number a declared variable belongs to, it is possible to know its data type. I found a way to know, from the memory address of the variable it is necessary to go back 8 units. Deferencing the Pointer will give the identifier number of the data type of the variable, which consequently will have to be compared with the list above. This is my simply code: [code] Public Struct Struttura ? b As Byte ? c As Short End Struct Private id As Struct Struttura Public Sub Main() Dim p As Pointer p = VarPtr(id) Print "Gambas datatype identifier: "; Byte@(p - 8) End [/code] It should be noted that in the list of data-type identifier numbers, in particular, the data type Structure is NOT present. It will be located and reported by my code as an "Object" (number: 16) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Apr 5 23:20:59 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 6 Apr 2023 00:20:59 +0300 Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: References: Message-ID: There is already TypeOf() function. And you can get the class with Object.Type(). Jussi On Wed, Apr 5, 2023 at 7:05?PM vuott--- via User < user at lists.gambas-basic.org> wrote: > On this thread > https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html > Brian G asked, if it were possible to know if an Object is a Structure. > In Gambas source file > /home/[USER]/gambasdevel/main/share/gambas.h > the numbers of datatypes identifiers are listed. > Therefore, by knowing which number a declared variable belongs to, it is > possible to know its data type. > I found a way to know, from the memory address of the variable it is > necessary to go back 8 units. Deferencing the Pointer will give the > identifier number of the data type of the variable, which consequently will > have to be compared with the list above. > > This is my simply code: > > [code] > Public Struct Struttura > b As Byte > c As Short > End Struct > > Private id As Struct Struttura > > > Public Sub Main() > > Dim p As Pointer > > p = VarPtr(id) > > Print "Gambas datatype identifier: "; Byte@(p - 8) > > End > [/code] > > It should be noted that in the list of data-type identifier numbers, in > particular, the data type Structure is NOT present. > It will be located and reported by my code as an "Object" (number: 16) > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Thu Apr 6 06:08:36 2023 From: adamnt42 at gmail.com (BB) Date: Thu, 6 Apr 2023 13:38:36 +0930 Subject: [Gambas-user] How to generate a format string Message-ID: Hi folks, I am looking for a good idea. How to assemble a formatting string from a reasonable sample of a string. For example, suppose I have a string "13-Jul-23", I want to build "dd-mm-yy" as the result. Not limited to dates though, if the string is "$123.45" then I need to recognise it as currency and generate that string accordingly. Has anyone done such a thing before? tia bruce From adamnt42 at gmail.com Thu Apr 6 06:09:25 2023 From: adamnt42 at gmail.com (BB) Date: Thu, 6 Apr 2023 13:39:25 +0930 Subject: [Gambas-user] How to generate a format string Message-ID: Hi folks, I am looking for a good idea. How to assemble a formatting string from a reasonable sample of a string. For example, suppose I have a string "13-Jul-23", I want to build "dd-mm-yy" as the result. Not limited to dates though, if the string is "$123.45" then I need to recognise it as currency and generate that string accordingly. Has anyone done such a thing before? tia bruce From brian at westwoodsvcs.com Thu Apr 6 08:26:07 2023 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 06 Apr 2023 09:26:07 +0300 Subject: [Gambas-user] =?utf-8?q?Answer_to=3A_=22Way_to_tell_if_an_object?= =?utf-8?q?_is_a_struct=22?= In-Reply-To: References: Message-ID: <1680762366.300815328@f24.my.com> Yes but this does not differentiate a structure from a normal object -- Thanks Brian G Wednesday, 05 April 2023, 02:22PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com : >There is already TypeOf() function. And you can get the class with Object.Type(). > >Jussi > >On Wed, Apr 5, 2023 at 7:05PM vuott--- via User < user at lists.gambas-basic.org> wrote: >>On this thread >>?? https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html >>Brian G asked, if it were possible to know if an Object is a Structure. >>In Gambas source file >>?? /home/[USER]/gambasdevel/main/share/gambas.h >>the numbers of datatypes identifiers are listed. >>Therefore, by knowing which number a declared variable belongs to, it is possible to know its data type. >>I found a way to know, from the memory address of the variable it is necessary to go back 8 units. Deferencing the Pointer will give the identifier number of the data type of the variable, which consequently will have to be compared with the list above. >> >>This is my simply code: >> >>[code] >>Public Struct Struttura >>? b As Byte >>? c As Short >>End Struct >> >>Private id As Struct Struttura >> >> >>Public Sub Main() >> >>Dim p As Pointer >> >>p = VarPtr(id) >> >>Print "Gambas datatype identifier: "; Byte@(p - 8) >> >>End >>[/code] >> >>It should be noted that in the list of data-type identifier numbers, in particular, the data type Structure is NOT present. >>It will be located and reported by my code as an "Object" (number: 16) >> >>----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Thu Apr 6 08:35:40 2023 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Thu, 06 Apr 2023 09:35:40 +0300 Subject: [Gambas-user] =?utf-8?q?Struct_with_Array_Field?= In-Reply-To: <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> Message-ID: <1680762940.282533794@f41.my.com> In c terms which structure are interface for, strings and arrays are just pointer that are not initialized to a value until something is assigned to them. When you do a? mstrct = new mystruct it creates the structure with null pointers for those fields. -- Thanks Brian G Wednesday, 05 April 2023, 07:55AM -07:00 from T Lee Davidson t.lee.davidson at gmail.com : >On 4/5/23 10:57, Mayost Sharon wrote: > first thanks > > Is it supposed to be like this? > For each field that is an array I will have to say NEW separately > > The fields are inside a Struct > I thought that if I do NEW to Struct > This will do it on all fields > > Thanks > >Simple native datatypes (such as String, Integer, Boolean) will be automatically initialized. But, objects (such as String[], >Integer[], Boolean[]), which are objects of classes and have properties and methods, must be initialized with the NEW keyword. > > >-- >Lee > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Thu Apr 6 09:12:35 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Thu, 6 Apr 2023 09:12:35 +0200 (CEST) Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: <1680762366.300815328@f24.my.com> References: <1680762366.300815328@f24.my.com> Message-ID: In my opinion TypeOf() function also refers to the constant values present in the list of datatypes identifier numbers, contained in the source file "gambas.h", in which, however, there is no specific identifer number for the Structure. 6 apr 2023, 08:33 da brian at westwoodsvcs.com: > > Yes but this does not differentiate a structure from a normal object > > > > -- > Thanks > Brian G > > > Wednesday, 05 April 2023, 02:22PM -07:00 from Jussi Lahtinen > jussi.lahtinen at gmail.com> : > > >> There is already TypeOf() function. And you can get the class with Object.Type(). >> >> Jussi >> >> On Wed, Apr 5, 2023 at 7:05PM vuott--- via User <>> user at lists.gambas-basic.org>> > wrote: >> >>> On this thread >>> ?? >>> https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html >>> Brian G asked, if it were possible to know if an Object is a Structure. >>> In Gambas source file >>> ?? /home/[USER]/gambasdevel/main/share/gambas.h >>> the numbers of datatypes identifiers are listed. >>> Therefore, by knowing which number a declared variable belongs to, it is possible to know its data type. >>> I found a way to know, from the memory address of the variable it is necessary to go back 8 units. Deferencing the Pointer will give the identifier number of the data type of the variable, which consequently will have to be compared with the list above. >>> >>> This is my simply code: >>> >>> [code] >>> Public Struct Struttura >>> ? b As Byte >>> ? c As Short >>> End Struct >>> >>> Private id As Struct Struttura >>> >>> >>> Public Sub Main() >>> >>> Dim p As Pointer >>> >>> p = VarPtr(id) >>> >>> Print "Gambas datatype identifier: "; Byte@(p - 8) >>> >>> End >>> [/code] >>> >>> It should be noted that in the list of data-type identifier numbers, in particular, the data type Structure is NOT present. >>> It will be located and reported by my code as an "Object" (number: 16) >>> >>> ----[ >>> http://gambaswiki.org/wiki/doc/netiquette>>> ]---- >>> >> >> ----[ >> http://gambaswiki.org/wiki/doc/netiquette>> ]---- >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Thu Apr 6 11:47:21 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 6 Apr 2023 11:47:21 +0200 Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: References: Message-ID: <39d8a10c-24d9-6175-d415-441c208d33b5@gambas-basic.org> Le 05/04/2023 ? 18:04, vuott--- via User a ?crit?: > On this thread > https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html > > Brian G asked, if it were possible to know if an Object is a Structure. > In Gambas source file > ?? /home/[USER]/gambasdevel/main/share/gambas.h > the numbers of datatypes identifiers are listed. > Therefore, by knowing which number a declared variable belongs to, it is > possible to know its data type. > I found a way to know, from the memory address of the variable it is > necessary to go back 8 units. Deferencing the Pointer will give the > identifier number of the data type of the variable, which consequently > will have to be compared with the list above. > > This is my simply code: > > [code] > Public Struct Struttura > ? b As Byte > ? c As Short > End Struct > > Private id As Struct Struttura > > > Public Sub Main() > > Dim p As Pointer > > p = VarPtr(id) > > Print "Gambas datatype identifier: "; Byte@(p - 8) > > End > [/code] > > It should be noted that in the list of data-type identifier numbers, in > particular, the data type Structure is NOT present. > It will be located and reported by my code as an "Object" (number: 16) > Of course, don't do that! It might bite you at any time. TypeOf() gives you the datatype of a value. Why do you need to know if an object reference points at a structure? -- Beno?t Minisini. From vuott at tutanota.com Thu Apr 6 13:23:16 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Thu, 6 Apr 2023 13:23:16 +0200 (CEST) Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: <39d8a10c-24d9-6175-d415-441c208d33b5@gambas-basic.org> References: <39d8a10c-24d9-6175-d415-441c208d33b5@gambas-basic.org> Message-ID: ...Benoit, obviously your question is directed to Brian G. 6 apr 2023, 11:48 da benoit.minisini at gambas-basic.org: > Le 05/04/2023 ? 18:04, vuott--- via User a ?crit?: > >> On this thread >> https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html >> Brian G asked, if it were possible to know if an Object is a Structure. >> In Gambas source file >> ?? /home/[USER]/gambasdevel/main/share/gambas.h >> the numbers of datatypes identifiers are listed. >> Therefore, by knowing which number a declared variable belongs to, it is possible to know its data type. >> I found a way to know, from the memory address of the variable it is necessary to go back 8 units. Deferencing the Pointer will give the identifier number of the data type of the variable, which consequently will have to be compared with the list above. >> >> This is my simply code: >> >> [code] >> Public Struct Struttura >> ? b As Byte >> ? c As Short >> End Struct >> >> Private id As Struct Struttura >> >> >> Public Sub Main() >> >> Dim p As Pointer >> >> p = VarPtr(id) >> >> Print "Gambas datatype identifier: "; Byte@(p - 8) >> >> End >> [/code] >> >> It should be noted that in the list of data-type identifier numbers, in particular, the data type Structure is NOT present. >> It will be located and reported by my code as an "Object" (number: 16) >> > > Of course, don't do that! It might bite you at any time. TypeOf() gives you the datatype of a value. > > Why do you need to know if an object reference points at a structure? > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Thu Apr 6 13:28:42 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 6 Apr 2023 13:28:42 +0200 Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: References: <39d8a10c-24d9-6175-d415-441c208d33b5@gambas-basic.org> Message-ID: Le 06/04/2023 ? 13:23, vuott--- via User a ?crit?: > ...Benoit, obviously your question is directed to Brian G. > Ah ok. lol. -- Beno?t Minisini. From t.lee.davidson at gmail.com Thu Apr 6 19:08:01 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 6 Apr 2023 13:08:01 -0400 Subject: [Gambas-user] Struct with Array Field In-Reply-To: <1680762940.282533794@f41.my.com> References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> <1680762940.282533794@f41.my.com> Message-ID: On 4/6/23 02:35, Brian G wrote: > In c terms which structure are interface for, strings and arrays are just pointer that are not initialized to a value until > something is assigned to them. > > When you do a? mstrct = new mystruct it creates the structure with null pointers for those fields. To my knowledge C does not have a "new" expression/statement. So, you must be talking about Gambas behavior, and therfore your statement is incorrect. Try it for yourself and see what it prints: [code] Public Struct elevation a As Short b As Long c As Float d As String End Struct Public Sub main() Dim a As New Elevation Print a.a, a.b, a.c, a.d End [/code] BTW, top-posting leads to messy threads. ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > -- > Thanks > Brian G > > Wednesday, 05 April 2023, 07:55AM -07:00 from T Lee Davidson t.lee.davidson at gmail.com : > > On 4/5/23 10:57, Mayost Sharon wrote: > > first thanks > > > > Is it supposed to be like this? > > For each field that is an array I will have to say NEW separately > > > > The fields are inside a Struct > > I thought that if I do NEW to Struct > > This will do it on all fields > > > > Thanks > > Simple native datatypes (such as String, Integer, Boolean) will be automatically initialized. But, objects (such as String[], > Integer[], Boolean[]), which are objects of classes and have properties and methods, must be initialized with the NEW keyword. > > > -- > Lee -- Lee From t.lee.davidson at gmail.com Thu Apr 6 20:33:04 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 6 Apr 2023 14:33:04 -0400 Subject: [Gambas-user] How to generate a format string In-Reply-To: References: Message-ID: <86800cd2-3d7d-a170-5cfc-bf046f7a2f5a@gmail.com> On 4/6/23 00:09, BB wrote: > Hi folks, > > I am looking for a good idea. How to assemble a formatting string from a reasonable sample of a string. For example, suppose I > have a string "13-Jul-23", I want to build "dd-mm-yy" as the result. Not limited to dates though, if the string is "$123.45" > then I need to recognise it as currency and generate that string accordingly. Has anyone done such a thing before? > > tia > > bruce I have not done that before. The only idea I can come up with ATM is to use RegExp and loop through various potential patterns until a Match is found that indicates the type of string it is (ie. date, currency, etc). Then, Split the string into tokens and build the formatting string from their format. Analyzing a currency string might be relatively easy, so ... [code] Public Sub main() ' Let's assume we've already determined it's a date Dim sInput As String = "13-Jul-23" Dim sFormatChars As String[] = ["d", "m", "y"] Dim asTokens As String[] Dim sDateSeparator As String Dim iTokenLen As Integer Dim sFormatString As String = "" If InStr(sInput, "/") Then sDateSeparator = "/" Else If InStr(sInput, "-") Then sDateSeparator = "-" Endif asTokens = Split(sInput, sDateSeparator) For x As Integer = 0 To asTokens.Max iTokenLen = Len(asTokens[x]) If iTokenLen > 3 Then iTokenLen = 4 sFormatString &= String$(iTokenLen, sFormatChars[x]) & sDateSeparator Next sFormatString = Left(sFormatString, -1) Print sFormatString End [/code] -- Lee From sharon at 455.co.il Fri Apr 7 00:33:57 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 7 Apr 2023 00:33:57 +0200 Subject: [Gambas-user] Gambas wiki update In-Reply-To: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> References: <6c7c8e8f-9bd5-1775-b9e0-1036fc228a6a@gambas-basic.org> Message-ID: <20230406222347.M8169@455.co.il> Hello First of all thanks a lot for the new WIKI When I get to a section of the WIKI I don't know where I am. Is it possible to have a navigation header at the top? For example: on Asterisk's WIKI https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Configuration_res_mwi_external Thanks ---------- Original Message ----------- From: Benoit Minisini To: Gambas Mailing List Sent: Fri, 31 Mar 2023 13:38:00 +0200 Subject: [Gambas-user] Gambas wiki update > Hi, > > I'm currently updating the wiki with the latest changes on 'gb.markdown'. > > So until tomorrow, you may see badly formatted pages. > > After tomorrow, please report if you see a wiki page that displays > incorrectly. > > Regards, > > -- > Beno?t Minisini. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- From jussi.lahtinen at gmail.com Thu Apr 6 23:38:47 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 7 Apr 2023 00:38:47 +0300 Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: <1680762366.300815328@f24.my.com> References: <1680762366.300815328@f24.my.com> Message-ID: But if TypeOf() tells it is an object, then can't you get the structure name with Object.Type()? Jussi On Thu, Apr 6, 2023 at 9:33?AM Brian G wrote: > Yes but this does not differentiate a structure from a normal object > > -- > Thanks > Brian G > Wednesday, 05 April 2023, 02:22PM -07:00 from Jussi Lahtinen > jussi.lahtinen at gmail.com: > > There is already TypeOf() function. And you can get the class with > Object.Type(). > > Jussi > > On Wed, Apr 5, 2023 at 7:05PM vuott--- via User < > user at lists.gambas-basic.org> wrote: > > On this thread > https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html > Brian G asked, if it were possible to know if an Object is a Structure. > In Gambas source file > /home/[USER]/gambasdevel/main/share/gambas.h > the numbers of datatypes identifiers are listed. > Therefore, by knowing which number a declared variable belongs to, it is > possible to know its data type. > I found a way to know, from the memory address of the variable it is > necessary to go back 8 units. Deferencing the Pointer will give the > identifier number of the data type of the variable, which consequently will > have to be compared with the list above. > > This is my simply code: > > [code] > Public Struct Struttura > b As Byte > c As Short > End Struct > > Private id As Struct Struttura > > > Public Sub Main() > > Dim p As Pointer > > p = VarPtr(id) > > Print "Gambas datatype identifier: "; Byte@(p - 8) > > End > [/code] > > It should be noted that in the list of data-type identifier numbers, in > particular, the data type Structure is NOT present. > It will be located and reported by my code as an "Object" (number: 16) > > ----[ 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 jussi.lahtinen at gmail.com Thu Apr 6 23:45:59 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 7 Apr 2023 00:45:59 +0300 Subject: [Gambas-user] Struct with Array Field In-Reply-To: References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> <1680762940.282533794@f41.my.com> Message-ID: > > In c terms which structure are interface for, strings and arrays are > just pointer that are not initialized to a value until > > something is assigned to them. > > > > When you do a mstrct = new mystruct it creates the structure with null > pointers for those fields. > > To my knowledge C does not have a "new" expression/statement. So, you must > be talking about Gambas behavior, and therfore your > statement is incorrect. Try it for yourself and see what it prints: > [code] > Public Struct elevation > a As Short > b As Long > c As Float > d As String > End Struct > > Public Sub main() > Dim a As New Elevation > Print a.a, a.b, a.c, a.d > End > [/code] > > The topic was *objects *inside structure. They have only null pointers. Variables are valid without further actions. C does not have "new", but he was referring to the similar things that need to be done in C. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Fri Apr 7 00:14:40 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Fri, 7 Apr 2023 00:14:40 +0200 (CEST) Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: References: <1680762366.300815328@f24.my.com> Message-ID: Hi Jussi, it seems to me that Brian G was not interested in knowing the name (label) of the Structure, but that the instance of the Structure was a "Structure" Object . 6 apr 2023, 23:39 da jussi.lahtinen at gmail.com: > But if TypeOf() tells it is an object, then can't you get the structure name with Object.Type()? > > Jussi > > On Thu, Apr 6, 2023 at 9:33?AM Brian G <> brian at westwoodsvcs.com> > wrote: > >> >> Yes but this does not differentiate a structure from a normal object >> >> >> >> -- >> Thanks >> Brian G >> >> >> Wednesday, 05 April 2023, 02:22PM -07:00 from Jussi Lahtinen >> jussi.lahtinen at gmail.com>> : >> >> >>> There is already TypeOf() function. And you can get the class with Object.Type(). >>> >>> Jussi >>> >>> On Wed, Apr 5, 2023 at 7:05PM vuott--- via User <>>> user at lists.gambas-basic.org>>> > wrote: >>> >>>> On this thread >>>> ?? >>>> https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html >>>> Brian G asked, if it were possible to know if an Object is a Structure. >>>> In Gambas source file >>>> ?? /home/[USER]/gambasdevel/main/share/gambas.h >>>> the numbers of datatypes identifiers are listed. >>>> Therefore, by knowing which number a declared variable belongs to, it is possible to know its data type. >>>> I found a way to know, from the memory address of the variable it is necessary to go back 8 units. Deferencing the Pointer will give the identifier number of the data type of the variable, which consequently will have to be compared with the list above. >>>> >>>> This is my simply code: >>>> >>>> [code] >>>> Public Struct Struttura >>>> ? b As Byte >>>> ? c As Short >>>> End Struct >>>> >>>> Private id As Struct Struttura >>>> >>>> >>>> Public Sub Main() >>>> >>>> Dim p As Pointer >>>> >>>> p = VarPtr(id) >>>> >>>> Print "Gambas datatype identifier: "; Byte@(p - 8) >>>> >>>> End >>>> [/code] >>>> >>>> It should be noted that in the list of data-type identifier numbers, in particular, the data type Structure is NOT present. >>>> It will be located and reported by my code as an "Object" (number: 16) >>>> >>>> ----[ >>>> 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 jussi.lahtinen at gmail.com Fri Apr 7 01:11:32 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 7 Apr 2023 02:11:32 +0300 Subject: [Gambas-user] Answer to: "Way to tell if an object is a struct" In-Reply-To: References: <1680762366.300815328@f24.my.com> Message-ID: I understand that, but knowing the name allows you to write a function that gives you what you want. Jussi On Fri, Apr 7, 2023 at 1:15?AM vuott--- via User < user at lists.gambas-basic.org> wrote: > Hi Jussi, > it seems to me that Brian G was *not* interested in knowing the *name* > (label) of the Structure, but that the instance of the Structure was a " > *Structure*" Object . > > > > 6 apr 2023, 23:39 da jussi.lahtinen at gmail.com: > > But if TypeOf() tells it is an object, then can't you get the structure > name with Object.Type()? > > Jussi > > On Thu, Apr 6, 2023 at 9:33?AM Brian G wrote: > > Yes but this does not differentiate a structure from a normal object > > -- > Thanks > Brian G > > Wednesday, 05 April 2023, 02:22PM -07:00 from Jussi Lahtinen > jussi.lahtinen at gmail.com: > > There is already TypeOf() function. And you can get the class with > Object.Type(). > > Jussi > > On Wed, Apr 5, 2023 at 7:05PM vuott--- via User < > user at lists.gambas-basic.org> wrote: > > On this thread > https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html > Brian G asked, if it were possible to know if an Object is a Structure. > In Gambas source file > /home/[USER]/gambasdevel/main/share/gambas.h > the numbers of datatypes identifiers are listed. > Therefore, by knowing which number a declared variable belongs to, it is > possible to know its data type. > I found a way to know, from the memory address of the variable it is > necessary to go back 8 units. Deferencing the Pointer will give the > identifier number of the data type of the variable, which consequently will > have to be compared with the list above. > > This is my simply code: > > [code] > Public Struct Struttura > b As Byte > c As Short > End Struct > > Private id As Struct Struttura > > > Public Sub Main() > > Dim p As Pointer > > p = VarPtr(id) > > Print "Gambas datatype identifier: "; Byte@(p - 8) > > End > [/code] > > It should be noted that in the list of data-type identifier numbers, in > particular, the data type Structure is NOT present. > It will be located and reported by my code as an "Object" (number: 16) > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > ----[ 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 angelnunez123 at gmail.com Fri Apr 7 11:09:39 2023 From: angelnunez123 at gmail.com (Angel) Date: Fri, 7 Apr 2023 11:09:39 +0200 Subject: [Gambas-user] create custom user functions in SQLITE3 from Gambas In-Reply-To: References: <9d55a78b-a10b-1f71-0e99-1e471dc9c1de@gmail.com> Message-ID: <8c9e18c7-fc7e-8102-327d-3b1f5597fedb@gmail.com> El 4/4/23 a las 21:29, Benoit Minisini escribi?: > Le 04/04/2023 ? 20:51, Angel a ?crit?: >> hello >> >> I am trying to create custom user functions in SQLITE3 from Gambas >> but given my ignorance of C it is impossible. >> >> Has anyone tried?The function in C is: >> >> int sqlite3_create_function( >> ?? sqlite3 *db, >> ?? const char *zFunctionName, >> ?? int nArg, >> ?? int eTextRep, >> ?? void *pApp, >> ?? void (*xFunc)(sqlite3_context*,int,sqlite3_value**), >> ?? void (*xStep)(sqlite3_context*,int,sqlite3_value**), >> ?? void (*xFinal)(sqlite3_context*) >> ); >> >> The explanation at: https://www.sqlite.org/c3ref/create_function.html >> >> I've done: >> >> >> ' Gambas module file >> >> Library "libsqlite3" >> Private Extern sqlite3_create_function(db As Pointer, name As String, >> arg As Integer, eTextRep As Integer, pApp As Pointer, xFun As >> Pointer, xStep As Pointer, xFinal As Pointer) >> Private BD As Connection >> >> Public Sub Main() >> >> ???? '#define SQLITE_UTF8???? 1 >> >> ???? Dim punt1 As Pointer >> ???? Dim punt2 As Pointer >> ???? Dim ia As Integer >> >> ???? BD = New Connection >> ???? With BD >> ???????? .Type = "sqlite3" >> ???????? .Host = Application.Path >> ???????? 'verificating if db exist >> ???????? .Name = "" >> ???????? .Open >> ???? End With >> >> ???? punt1 = VarPtr(BD) >> ???? Debug sepTelef("666777888") >> ???? Debug punt1 >> >> ???? ia = sqlite3_create_function(punt1, "sepTelef", 1, 1, Null, >> sepTelef, Null, Null) >> >> End >> >> Function sepTelef(telefono As String) As String >> >> ???? Dim scad As String >> >> ???? scad = Mid(telefono, 1, 3) & "-" & Mid(telefono, 4, 3) & "-" & >> Mid(telefono, 7, 3) >> ???? Return scad >> >> End >> >> >> result >> >> Segment violation 11 >> > > 'VarPtr(BD)' is the memory address where a pointer to a Gambas object > (BD) is stored. It has nothing to do with the "sqlite3 *" pointer of > the underlying connection. So It cannot work. > > The Handle property of BD returns a pointer that points at a structure > that represents a SQLite database to Gambas. But it's still not the > "sqlite3 *" pointer you need. > > Fortunately, this pointer is stored at the beginning of that > structure. (you can know that by reading the source code of the > 'gb.db.sqlite3' component). > > So Try 'Pointer@(BD.Handle)' instead of 'VarPtr(BD)'. > > And try a bit to understand how C works otherwise you won't really > understand how external function management works in Gambas! > > Regards, > Thanks to Benoit for giving me the track of 'Pointer@(Bd.handle)' I thought that creating a user function in SQLite3 would be something similar to declare external function, creating a function in Gambas3 and SQLite3 would use the value returned by the function. But it seems that SQLite3 uses calling functions, and is more complicated. I leave an example in case someone may be interested. ' Gambas module file ' codigo sacado de https://stackoverflow.com/questions/7867099/how-can-i-create-a-user-defined-function-in-sqlite ' codigo en java 'Static void firstchar(sqlite3_context * context, int argc, sqlite3_value * * argv) '{ '??? If (argc == 1) { '??????? char * text = sqlite3_value_text(argv[0]); '??????? If (text & & text[0]) { '????????? char result[2]; '????????? result[0] = text[0]; result[1] = '\0'; '????????? sqlite3_result_text(context, result, -1, SQLITE_TRANSIENT); '????????? Return ; '??????? } '??? } '??? sqlite3_result_null(context); '} Library "libsqlite3" 'declaracion de la libreria 'int sqlite3_create_function(sqlite3 * db, Const char * zFunctionName, int nArg, int eTextRep, void * pApp, void( * xFunc)(sqlite3_context *, int, sqlite3_value * * ), void( * xStep)(sqlite3_context *, int, sqlite3_value * * ), void( * xFinal)(sqlite3_context * ) ); Private Extern sqlite3_create_function(db As Pointer, name As String, Argc As Integer, numParam As Integer, pApp As Pointer, xFun As Pointer, xStep As Pointer, xFinal As Pointer) ' void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*)); Private Extern sqlite3_result_text(sqlite3_context As Pointer, cadena As String, numParam As Integer, valorsqlite As Pointer) ' void sqlite3_result_null(sqlite3_context*); Private Extern sqlite3_result_null(sqlite3_context As Pointer) ' const unsigned char *sqlite3_value_text(sqlite3_value*); Private Extern sqlite3_value_text(sqlite3_value As Pointer) As String Private BD As Connection Public Sub Main() ??? '#define SQLITE_UTF8???? 1 ??? Dim punt1 As Pointer ??? Dim ia As Integer ??? Dim rsFun As Result ??? Dim tb As Table ??? Dim rsCli As Result ??? Dim snombre, stel As String ??? BD = New Connection ??? With BD ' creamos Bd en memoria ??????? .Type = "sqlite3" ??????? .Host = Application.Path ??????? .Name = "" ??????? .Open ??? End With ??? ' creamos una tabla con dos campos en la conexion ??? bd.Tables.Add("cli") ??? tb = bd.Tables["cli"] ??? tb.Fields.Add("nombre", gb.String, 9) ??? tb.Fields.Add("telf", gb.String, 9) ??? tb.Update ??? rsCli = bd.Create("cli") ??? For i As Integer = 0 To 20 ' llenamos la tabla ??????? Randomize ??????? ia = Rand(100000000, 999999999) ??????? rsCli!nombre = "nombre_" & Str(i) ??????? rsCli!telf = Str(ia) ??????? rsCli.Update ??? Next ??? punt1 = Pointer@(BD.Handle) ' obtencion del puntero de la conexion ??? Debug punt1 ??? ' declaracion de user function ??? sqlite3_create_function(punt1, "sepTelef", 1, 1, Null, sepTelef, Null, Null) ??? rsFun = BD.Exec("Select nombre, telf, sepTelef(telf) as funTelf From cli") ' Result con la llamada a la funcion ??? rsFun.MoveFirst ??? For i As Integer = 0 To rsFun.Max ??????? Debug rsFun!nombre, rsFun!telf, rsFun!funTelf ??????? rsFun.MoveNext ??? Next End Sub sepTelef(sqlite3_context As Pointer, Argc As Integer, sqlite_val As Pointer) ??? ' void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*)); ??? ' const unsigned char *sqlite3_value_text(sqlite3_value*); ??? '#define SQLITE_STATIC????? ((sqlite3_destructor_type)0) ??? '#define SQLITE_TRANSIENT?? ((sqlite3_destructor_type)-1) ??? Dim scad, tel As String ??? Dim punt1 As Pointer ??? If Argc = 1 Then ??????? punt1 = Pointer@(sqlite_val) ??????? tel = sqlite3_value_text(punt1) ??????? scad = Mid(tel, 1, 3) & "-" & Mid(tel, 4, 3) & "-" & Mid(tel, 7, 3) ??????? sqlite3_result_text(sqlite3_context, scad, -1, -1) ??????? Return ??? Endif ??? sqlite3_result_null(sqlite3_context) End From brian at westwoodsvcs.com Fri Apr 7 15:29:22 2023 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Fri, 07 Apr 2023 16:29:22 +0300 Subject: [Gambas-user] =?utf-8?q?Answer_to=3A_=22Way_to_tell_if_an_object?= =?utf-8?q?_is_a_struct=22?= In-Reply-To: References: Message-ID: <1680874162.492463914@f36.my.com> It relates to how an object is written by the write instruction. And knowing what will be written into a stream. Gambas objects and gambas structures have very different formats when written to a stream. Sometimes one needs to know which it is. -- Thanks Brian G Thursday, 06 April 2023, 04:12PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com : >I understand that, but knowing the name allows you to write a function that gives you what you want. > >Jussi > >On Fri, Apr 7, 2023 at 1:15AM vuott--- via User < user at lists.gambas-basic.org> wrote: >>Hi Jussi, >>it seems to me that Brian G was not interested in knowing the name (label) of the Structure, but that the instance of the Structure was a " Structure " Object . >> >> >> >>6 apr 2023, 23:39 da jussi.lahtinen at gmail.com : >>>But if TypeOf() tells it is an object, then can't you get the structure name with Object.Type()? >>> >>>Jussi >>> >>>On Thu, Apr 6, 2023 at 9:33AM Brian G < brian at westwoodsvcs.com> wrote: >>>>Yes but this does not differentiate a structure from a normal object >>>>-- >>>>Thanks >>>>Brian G >>>>Wednesday, 05 April 2023, 02:22PM -07:00 from Jussi Lahtinen jussi.lahtinen at gmail.com : >>>> >>>>>There is already TypeOf() function. And you can get the class with Object.Type(). >>>>> >>>>>Jussi >>>>> >>>>>On Wed, Apr 5, 2023 at 7:05PM vuott--- via User < user at lists.gambas-basic.org> wrote: >>>>>>On this thread >>>>>>?? https://lists.gambas-basic.org/pipermail/user/2023-March/078862.html >>>>>>Brian G asked, if it were possible to know if an Object is a Structure. >>>>>>In Gambas source file >>>>>>?? /home/[USER]/gambasdevel/main/share/gambas.h >>>>>>the numbers of datatypes identifiers are listed. >>>>>>Therefore, by knowing which number a declared variable belongs to, it is possible to know its data type. >>>>>>I found a way to know, from the memory address of the variable it is necessary to go back 8 units. Deferencing the Pointer will give the identifier number of the data type of the variable, which consequently will have to be compared with the list above. >>>>>> >>>>>>This is my simply code: >>>>>> >>>>>>[code] >>>>>>Public Struct Struttura >>>>>>? b As Byte >>>>>>? c As Short >>>>>>End Struct >>>>>> >>>>>>Private id As Struct Struttura >>>>>> >>>>>> >>>>>>Public Sub Main() >>>>>> >>>>>>Dim p As Pointer >>>>>> >>>>>>p = VarPtr(id) >>>>>> >>>>>>Print "Gambas datatype identifier: "; Byte@(p - 8) >>>>>> >>>>>>End >>>>>>[/code] >>>>>> >>>>>>It should be noted that in the list of data-type identifier numbers, in particular, the data type Structure is NOT present. >>>>>>It will be located and reported by my code as an "Object" (number: 16) >>>>>> >>>>>>----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>>> >>>>>----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >>>> >>>>----[ 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 t.lee.davidson at gmail.com Fri Apr 7 19:08:35 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 7 Apr 2023 13:08:35 -0400 Subject: [Gambas-user] Struct with Array Field In-Reply-To: References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> <1680762940.282533794@f41.my.com> Message-ID: <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> On 4/6/23 17:45, Jussi Lahtinen wrote: > > > In c terms which structure are interface for, strings and arrays are just pointer that are not initialized to a value until > > something is assigned to them. > > > > When you do a? mstrct = new mystruct it creates the structure with null pointers for those fields. > [snip] > > The topic was *objects *inside structure. They have only null pointers. Variables are valid without further actions. > C does not have "new", but he was referring to the similar things that need to be done in C. > > Jussi Yes, the original topic was arrays (objects) in a structure. To help clarify for the OP, I gave examples of what did or did not need to be explicitly initialized in a structure. Brian's response was to make a false statement which, to help prevent confusion, needed to be corrected. The statement, "When you do a mstrct = new mystruct it creates the structure with null pointers for those fields," does not refer to what happens in C. And, "those fields," obviously refers to "strings and arrays". As I explained, the strings would be automatically initialized, but the arrays would not. Is there anything incorrect about the following statement? Simple native datatypes (such as String, Integer, Boolean) will be automatically initialized. But, objects (such as String[], Integer[], Boolean[]), which are objects of classes and have properties and methods, must be initialized with the NEW keyword. -- Lee From sharon at 455.co.il Sat Apr 8 22:04:15 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 8 Apr 2023 22:04:15 +0200 Subject: [Gambas-user] Struct with Array Field In-Reply-To: <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> <1680762940.282533794@f41.my.com> <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> Message-ID: <20230408200014.M91407@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Fri, 7 Apr 2023 13:08:35 -0400 Subject: Re: [Gambas-user] Struct with Array Field > On 4/6/23 17:45, Jussi Lahtinen wrote: > > > > > In c terms which structure are interface for, strings and arrays are just pointer that are not initialized to a value until > > > something is assigned to them. > > > > > > When you do a? mstrct = new mystruct it creates the structure with null pointers for those fields. > > > [snip] > > > > The topic was *objects *inside structure. They have only null pointers. Variables are valid without further actions. > > C does not have "new", but he was referring to the similar things that need to be done in C. > > > > Jussi > > Yes, the original topic was arrays (objects) in a structure. To help clarify > for the OP, I gave examples of what did or did not need to be explicitly > initialized in a structure. Brian's response was to make a false statement > which, to help prevent confusion, needed to be corrected. > > The statement, "When you do a mstrct = new mystruct it creates the structure > with null pointers for those fields," does not refer to what happens in C. And, > "those fields," obviously refers to "strings and arrays". As I explained, the > strings would be automatically initialized, but the arrays would not. > > Is there anything incorrect about the following statement? > Simple native datatypes (such as String, Integer, Boolean) will be > automatically initialized. But, objects (such as String[], Integer[], > Boolean[]), which are objects of classes and have properties and methods, > must be initialized with the NEW keyword. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- If I have a structure that contains many array variables, etc. If I need to do NEW on every variable that is an array Why do I need it inside the structure? Is there a way in NEW once to execute on all variables? Thanks From sharon at 455.co.il Sat Apr 8 22:31:29 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 8 Apr 2023 22:31:29 +0200 Subject: [Gambas-user] Struct with Array Field In-Reply-To: <20230408200014.M91407@455.co.il> References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> <1680762940.282533794@f41.my.com> <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> <20230408200014.M91407@455.co.il> Message-ID: <20230408203116.M7371@455.co.il> ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Sat, 8 Apr 2023 22:04:15 +0200 Subject: Re: [Gambas-user] Struct with Array Field > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Fri, 7 Apr 2023 13:08:35 -0400 > Subject: Re: [Gambas-user] Struct with Array Field > > > On 4/6/23 17:45, Jussi Lahtinen wrote: > > > > > > > In c terms which structure are interface for, strings and arrays are just pointer that are not initialized to a value until > > > > something is assigned to them. > > > > > > > > When you do a? mstrct = new mystruct it creates the structure with null pointers for those fields. > > > > > [snip] > > > > > > The topic was *objects *inside structure. They have only null pointers. Variables are valid without further actions. > > > C does not have "new", but he was referring to the similar things that need to be done in C. > > > > > > Jussi > > > > Yes, the original topic was arrays (objects) in a structure. To help clarify > > for the OP, I gave examples of what did or did not need to be explicitly > > initialized in a structure. Brian's response was to make a false statement > > which, to help prevent confusion, needed to be corrected. > > > > The statement, "When you do a mstrct = new mystruct it creates the structure > > with null pointers for those fields," does not refer to what happens in C. And, > > "those fields," obviously refers to "strings and arrays". As I explained, the > > strings would be automatically initialized, but the arrays would not. > > > > Is there anything incorrect about the following statement? > > Simple native datatypes (such as String, Integer, Boolean) will be > > automatically initialized. But, objects (such as String[], Integer[], > > Boolean[]), which are objects of classes and have properties and methods, > > must be initialized with the NEW keyword. > > > > -- > > Lee > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ------- End of Original Message ------- > > If I have a structure that contains many array variables, etc. > If I need to do NEW on every variable that is an array > Why do I need it inside the structure? > Is there a way in NEW once to execute on all variables? > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Hello Maybe on purpose as long as you don't set NEW to the array then it remains empty For example: Public var_01 AS String[] As long as I don't make NEW is NULL But there is an option to make a statement Public var_01 AS New String[] In the structure he does not allow to do public struct ami_response string As String event_list As New String[] End Struct Thank you From jussi.lahtinen at gmail.com Sun Apr 9 01:02:56 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 9 Apr 2023 02:02:56 +0300 Subject: [Gambas-user] Struct with Array Field In-Reply-To: <20230408200014.M91407@455.co.il> References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> <1680762940.282533794@f41.my.com> <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> <20230408200014.M91407@455.co.il> Message-ID: Only reason to use structure is when you need to pass it to an external function not written in Gambas. Otherwise, don't use it. I'm quite sure you can write a function that automates the "someArray = New someClass" task with static methods of the Class & Object classes, but honestly I don't think there is much use for it. The problem is in somewhere else. Jussi On Sat, Apr 8, 2023 at 9:12?PM Mayost Sharon wrote: > > ---------- Original Message ----------- > From: T Lee Davidson > To: user at lists.gambas-basic.org > Sent: Fri, 7 Apr 2023 13:08:35 -0400 > Subject: Re: [Gambas-user] Struct with Array Field > > > On 4/6/23 17:45, Jussi Lahtinen wrote: > > > > > > > In c terms which structure are interface for, strings and > arrays are just pointer that are not initialized to a value until > > > > something is assigned to them. > > > > > > > > When you do a mstrct = new mystruct it creates the structure > with null pointers for those fields. > > > > > [snip] > > > > > > The topic was *objects *inside structure. They have only null > pointers. Variables are valid without further actions. > > > C does not have "new", but he was referring to the similar things that > need to be done in C. > > > > > > Jussi > > > > Yes, the original topic was arrays (objects) in a structure. To help > clarify > > for the OP, I gave examples of what did or did not need to be explicitly > > initialized in a structure. Brian's response was to make a false > statement > > which, to help prevent confusion, needed to be corrected. > > > > The statement, "When you do a mstrct = new mystruct it creates the > structure > > with null pointers for those fields," does not refer to what happens in > C. And, > > "those fields," obviously refers to "strings and arrays". As I > explained, the > > strings would be automatically initialized, but the arrays would not. > > > > Is there anything incorrect about the following statement? > > Simple native datatypes (such as String, Integer, Boolean) will be > > automatically initialized. But, objects (such as String[], Integer[], > > Boolean[]), which are objects of classes and have properties and > methods, > > must be initialized with the NEW keyword. > > > > -- > > Lee > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ------- End of Original Message ------- > > If I have a structure that contains many array variables, etc. > If I need to do NEW on every variable that is an array > Why do I need it inside the structure? > Is there a way in NEW once to execute on all variables? > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at westwoodsvcs.com Mon Apr 10 07:26:47 2023 From: brian at westwoodsvcs.com (=?UTF-8?B?QnJpYW4gRw==?=) Date: Mon, 10 Apr 2023 08:26:47 +0300 Subject: [Gambas-user] =?utf-8?q?Struct_with_Array_Field?= In-Reply-To: <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> References: <20230327222100.M74392@455.co.il> <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> Message-ID: <1681104407.925551881@f6.my.com> As a point here strings are empty no initialized. If you actually look at the structure after creation a string is in fact a null pointer till a value is assigned to it. Look for your self -- Thanks Brian G Friday, 07 April 2023, 10:09AM -07:00 from T Lee Davidson t.lee.davidson at gmail.com : >On 4/6/23 17:45, Jussi Lahtinen wrote: > >> In c terms which structure are interface for, strings and arrays are just pointer that are not initialized to a value until >> something is assigned to them. >> >> When you do a? mstrct = new mystruct it creates the structure with null pointers for those fields. > >[snip] > > The topic was *objects *inside structure. They have only null pointers. Variables are valid without further actions. > C does not have "new", but he was referring to the similar things that need to be done in C. > > Jussi > >Yes, the original topic was arrays (objects) in a structure. To help clarify for the OP, I gave examples of what did or did not >need to be explicitly initialized in a structure. Brian's response was to make a false statement which, to help prevent >confusion, needed to be corrected. > >The statement, "When you do a mstrct = new mystruct it creates the structure with null pointers for those fields," does not >refer to what happens in C. And, "those fields," obviously refers to "strings and arrays". As I explained, the strings would be >automatically initialized, but the arrays would not. > >Is there anything incorrect about the following statement? >Simple native datatypes (such as String, Integer, Boolean) will be automatically initialized. But, objects (such as String[], >Integer[], Boolean[]), which are objects of classes and have properties and methods, must be initialized with the NEW keyword. > > >-- >Lee > > >----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon Apr 10 09:32:43 2023 From: adamnt42 at gmail.com (BB) Date: Mon, 10 Apr 2023 17:02:43 +0930 Subject: [Gambas-user] Struct with Array Field In-Reply-To: <20230408200014.M91407@455.co.il> References: <20230327222100.M74392@455.co.il> <20230405145211.M42975@455.co.il> <7e2b7b7d-43a3-9db0-ab27-6e8393f0600b@gmail.com> <1680762940.282533794@f41.my.com> <2dd5dfc3-78e5-9c9e-0a2f-0d5a452d54f1@gmail.com> <20230408200014.M91407@455.co.il> Message-ID: <51442dff-c443-bc8f-4f3f-e6f60e6e5027@gmail.com> I am only going to address the following. On 9/4/23 5:34 am, Mayost Sharon wrote: > If I have a structure that contains many array variables, etc. > If I need to do NEW on every variable that is an array > Why do I need it inside the structure? > Is there a way in NEW once to execute on all variables? > > Thanks Object initialisation is expensive. Object declaration is cheap. In the latter all that is needed is that the pointer be established. In the former, the pointer and the target need to be established. If the object is not needed then automatic initialisation could be extremely expensive depending on the complexity of the object. I realize that you are only talking about arrays but then again if you have "many array variables" inside the structure do you really want to incur the expense of creating them? Are they always going to be needed "immediately"? I quite like the fact that object initialisation in Gambas is definite and "on demand" as our complex data objects that only use certain bits rarely do not incur the initialisation expense until they are needed. To give a finite example, one has properties that are both complex and "large" objects in themselves and are needed once a month. I certainly don't want to incur the expense of initialising them hundreds of times a day when the containing class is used in normal "daily processing". hth bruce From gradobag at gradobag.it Wed Apr 12 22:18:31 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 12 Apr 2023 22:18:31 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible Message-ID: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> As per the subject Good night Gianluigi From t.lee.davidson at gmail.com Thu Apr 13 03:09:48 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 12 Apr 2023 21:09:48 -0400 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> Message-ID: <7acabf33-409d-e477-e2e1-a956b9df7c0c@gmail.com> On 4/12/23 16:18, Gianluigi wrote: > As per the subject > > Good night > > Gianluigi Confirmed. For an instant, I got a Gateway Timeout page, then, almost immediately, this in Chromium: This page isn?t working gambaswiki.org redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS -- Lee From chrisml at deganius.de Thu Apr 13 08:02:08 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 13 Apr 2023 08:02:08 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> Message-ID: Am 12.04.23 um 22:18 schrieb Gianluigi: > As per the subject > > Good night Still offline :( Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From adamnt42 at gmail.com Thu Apr 13 08:54:20 2023 From: adamnt42 at gmail.com (BB) Date: Thu, 13 Apr 2023 16:24:20 +0930 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: <7acabf33-409d-e477-e2e1-a956b9df7c0c@gmail.com> References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> <7acabf33-409d-e477-e2e1-a956b9df7c0c@gmail.com> Message-ID: <4c4624ed-68f3-1844-178e-c774ad8b21bf@gmail.com> On 13/4/23 10:39 am, T Lee Davidson wrote: > On 4/12/23 16:18, Gianluigi wrote: >> As per the subject >> >> Good night >> >> Gianluigi > > Confirmed. > > For an instant, I got a Gateway Timeout page, then, almost > immediately, this in Chromium: > This page isn?t working > gambaswiki.org redirected you too many times. > Try clearing your cookies. > ERR_TOO_MANY_REDIRECTS > > The true error appears to be the gateway timeout (504). The servers as far as I can trace them upwards (nmap etc) appear to be up, so...? From benoit.minisini at gambas-basic.org Thu Apr 13 09:55:24 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 13 Apr 2023 09:55:24 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> Message-ID: Le 13/04/2023 ? 08:02, Christof Thalhofer a ?crit?: > Am 12.04.23 um 22:18 schrieb Gianluigi: > >> As per the subject >> >> Good night > > Still offline :( > > Alles Gute > > Christof Thalhofer > It should be ok now. The server crashed yesterday evening, it has been restarted. -- Beno?t Minisini. From chrisml at deganius.de Thu Apr 13 10:02:05 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 13 Apr 2023 10:02:05 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> Message-ID: <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> Am 13.04.23 um 09:55 schrieb Benoit Minisini: > It should be ok now. The server crashed yesterday evening, it has been > restarted. Yes, it works, thank you! Isn't the server monitored? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From gradobag at gradobag.it Thu Apr 13 10:09:02 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 13 Apr 2023 10:09:02 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> Message-ID: <9f453869-8daf-8a77-d72a-232c0250687c@gradobag.it> Il 13/04/23 10:02, Christof Thalhofer ha scritto: > Am 13.04.23 um 09:55 schrieb Benoit Minisini: > >> It should be ok now. The server crashed yesterday evening, it has been >> restarted. > > Yes, it works, thank you! Isn't the server monitored? > > Alles Gute > > Christof Thalhofer > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Yes, it works well now, thank you Greetings Gianluigi From benoit.minisini at gambas-basic.org Thu Apr 13 10:34:18 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 13 Apr 2023 10:34:18 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> Message-ID: <402e7f6c-0caf-2074-7004-6851500f8988@gambas-basic.org> Le 13/04/2023 ? 10:02, Christof Thalhofer a ?crit?: > Am 13.04.23 um 09:55 schrieb Benoit Minisini: > >> It should be ok now. The server crashed yesterday evening, it has been >> restarted. > > Yes, it works, thank you! Isn't the server monitored? > I thought so, apparently no! -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Thu Apr 13 12:25:08 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 13 Apr 2023 12:25:08 +0200 Subject: [Gambas-user] GridView right to left direction In-Reply-To: <20230401223139.M98215@455.co.il> References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> <20230401223139.M98215@455.co.il> Message-ID: <330333b8-862a-295c-fa03-68b959f04f4e@gambas-basic.org> Le 02/04/2023 ? 00:31, Mayost Sharon a ?crit?: > Hello > > The GridView doesn't always work well in right-to-left orientation > > 1. An example attached > When I change the direction from right to left > You don't see the text that was in the grid > > 2. If in the IDE you change the direction property from right to left > It works well > > Many thanks > It's fixed since commit https://gitlab.com/gambas/gambas/-/commit/cd79ffb4a2a9324565f17876343b652e7904d304. P.S. Please do not hijack mailing-list threads. When you want to talk about something new, don't answer an existing mail. Create a new one. Thanks. -- Beno?t Minisini. From sharon at 455.co.il Thu Apr 13 18:29:12 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 13 Apr 2023 18:29:12 +0200 Subject: [Gambas-user] GridView right to left direction In-Reply-To: <330333b8-862a-295c-fa03-68b959f04f4e@gambas-basic.org> References: <20230327222100.M74392@455.co.il> <7a7fd749-a7c8-24da-a256-e9338235bcc6@gambas-basic.org> <20230401223139.M98215@455.co.il> <330333b8-862a-295c-fa03-68b959f04f4e@gambas-basic.org> Message-ID: <20230413162302.M75257@455.co.il> > Le 02/04/2023 ? 00:31, Mayost Sharon a ?crit?: > > Hello > > > > The GridView doesn't always work well in right-to-left orientation > > > > 1. An example attached > > When I change the direction from right to left > > You don't see the text that was in the grid > > > > 2. If in the IDE you change the direction property from right to left > > It works well > > > > Many thanks > > > > It's fixed since commit > https://gitlab.com/gambas/gambas/-/commit/cd79ffb4a2a9324565f17876343b652e7904d304. > > P.S. Please do not hijack mailing-list threads. When you want to talk > about something new, don't answer an existing mail. Create a new one. > > Thanks. > > -- > Beno?t Minisini. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- First, thanks for fixed. sorry I did not understand I created a new mail with a new subject Thanks From benoit.minisini at gambas-basic.org Fri Apr 14 11:00:19 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 14 Apr 2023 11:00:19 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 Message-ID: Hi, I have just released Gambas 3.18.2 officially. Release notes are at: https://gambaswiki.org/wiki/doc/release/3.18.2. Source code is at: https://gitlab.com/gambas/gambas/-/archive/3.18.2/gambas-3.18.2.tar.bz2 The Gambas stable PPA has been updated with new packages. This release provides important bug fixes, especially in the interpreter and in the 'gb.media' component. Read the release notes carefully! Enjoy it! -- Beno?t Minisini. From chrisml at deganius.de Fri Apr 14 13:19:54 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 14 Apr 2023 13:19:54 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: References: Message-ID: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> Am 14.04.23 um 11:00 schrieb Benoit Minisini: > Hi, > > I have just released Gambas 3.18.2 officially. > > Release notes are at: > https://gambaswiki.org/wiki/doc/release/3.18.2. > > Source code is at: > https://gitlab.com/gambas/gambas/-/archive/3.18.2/gambas-3.18.2.tar.bz2 > > The Gambas stable PPA has been updated with new packages. > > This release provides important bug fixes, especially in the interpreter > and in the 'gb.media' component. Read the release notes carefully! > > Enjoy it! Thank you very much. But here it crashes when I hit , the same happens when I open the 'Project' dialog from the menu: "This application has raised an unexpected error and must abort. Bad index. [gb.form].IconPanel.Index_Write.184" Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Fri Apr 14 14:07:14 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 14 Apr 2023 14:07:14 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> Message-ID: Le 14/04/2023 ? 13:19, Christof Thalhofer a ?crit?: > Am 14.04.23 um 11:00 schrieb Benoit Minisini: >> Hi, >> >> I have just released Gambas 3.18.2 officially. >> >> Release notes are at: >> https://gambaswiki.org/wiki/doc/release/3.18.2. >> >> Source code is at: >> https://gitlab.com/gambas/gambas/-/archive/3.18.2/gambas-3.18.2.tar.bz2 >> >> The Gambas stable PPA has been updated with new packages. >> >> This release provides important bug fixes, especially in the interpreter >> and in the 'gb.media' component. Read the release notes carefully! >> >> Enjoy it! > > Thank you very much. > > But here it crashes when I hit , the same happens when I open > the 'Project' dialog from the menu: > > "This application has raised an unexpected > error and must abort. > > Bad index. > > [gb.form].IconPanel.Index_Write.184" > > > Alles Gute > > Christof Thalhofer > Can you give me the stack backtrace? It should be printed on the error output of the terminal. -- Beno?t Minisini. From claus.dietrich at freenet.de Fri Apr 14 14:38:14 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 14 Apr 2023 14:38:14 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> Message-ID: Am 14.04.23 um 14:07 schrieb Benoit Minisini: >> But here it crashes when I hit , the same happens when I open >> the 'Project' dialog from the menu: >> >> "This application has raised an unexpected >> error and must abort. >> >> Bad index. >> >> [gb.form].IconPanel.Index_Write.184" >> >> >> Alles Gute >> >> Christof Thalhofer >> > > Can you give me the stack backtrace? It should be printed on the error > output of the terminal. Same here. I get following output in the console when it crashes at selection of Project/Properties (Ctrl-i): [gb.form].IconPanel.Index_Write.184: Bad index [gb.form].IconPanel.Index_Write.184 FProjectProperty.FProjectProperty.0 FProjectProperty. at new.0 FProjectProperty.Run.31 FMain.Action_Activate.1687 [gb.gui.base].^Action.Raise.238 ? The IDE crashes at any application. Regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Apr 14 17:56:02 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 14 Apr 2023 17:56:02 +0200 Subject: [Gambas-user] class within a class with a key Message-ID: <20230414155454.M78798@455.co.il> Hello I need help on how to make a class within a class Attached is an example that gives me an error because I'm missing something that I can't figure out what to do I want to reach a state of: Print gb_Class1.students["key_01"].student_01 Print gb_Class1.students["key_01"].student_02 Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: class_01.zip Type: application/zip Size: 17172 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Fri Apr 14 14:55:23 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 14 Apr 2023 14:55:23 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> Message-ID: <415897b4-ef45-2593-514e-e1e87abd1fb4@gambas-basic.org> Le 14/04/2023 ? 14:38, Claus Dietrich a ?crit?: > Am 14.04.23 um 14:07 schrieb Benoit Minisini: >>> But here it crashes when I hit , the same happens when I open >>> the 'Project' dialog from the menu: >>> >>> "This application has raised an unexpected >>> error and must abort. >>> >>> Bad index. >>> >>> [gb.form].IconPanel.Index_Write.184" >>> >>> >>> Alles Gute >>> >>> Christof Thalhofer >>> >> >> Can you give me the stack backtrace? It should be printed on the error >> output of the terminal. > > Same here. I get following output in the console when it crashes at > selection of Project/Properties (Ctrl-i): > > [gb.form].IconPanel.Index_Write.184: Bad index > [gb.form].IconPanel.Index_Write.184 FProjectProperty.FProjectProperty.0 > FProjectProperty. at new.0 FProjectProperty.Run.31 > FMain.Action_Activate.1687 [gb.gui.base].^Action.Raise.238 ? > > The IDE crashes at any application. > > Regards > > Claus > OK, I found the problem. 3.18.2 source archive has been fixed, and PPA packages will be rebuild soon. Regards, -- Beno?t Minisini. From bsteers4 at gmail.com Fri Apr 14 15:56:09 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 14 Apr 2023 14:56:09 +0100 Subject: [Gambas-user] class within a class with a key In-Reply-To: <20230414155454.M78798@455.co.il> References: <20230414155454.M78798@455.co.il> Message-ID: On Fri, 14 Apr 2023 at 13:55, Mayost Sharon wrote: > Hello > I need help on how to make a class within a class > Attached is an example that gives me an error because I'm missing > something that I can't figure out what to do > > I want to reach a state of: > Print gb_Class1.students["key_01"].student_01 > Print gb_Class1.students["key_01"].student_02 > > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > to use Keys like a collection you need to use Collection datatype. Your Class2.class is not coded to work like a collection with Keys so it does not work as you expect. I got your code working by making the Class1.class $students a collection of Class2 objects. Class2.class has no functions just the student_01 student_02 properties. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: class_01-0.0.1.tar.gz Type: application/gzip Size: 12158 bytes Desc: not available URL: From sharon at 455.co.il Fri Apr 14 17:18:15 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 14 Apr 2023 18:18:15 +0300 Subject: [Gambas-user] class within a class with a key In-Reply-To: References: <20230414155454.M78798@455.co.il> Message-ID: <20230414150258.M40754@455.co.il> ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Fri, 14 Apr 2023 14:56:09 +0100 Subject: Re: [Gambas-user] class within a class with a key > On Fri, 14 Apr 2023 at 13:55, Mayost Sharon wrote: > > > Hello > > I need help on how to make a class within a class > > Attached is an example that gives me an error because I'm missing > > something that I can't figure out what to do > > > > I want to reach a state of: > > Print gb_Class1.students["key_01"].student_01 > > Print gb_Class1.students["key_01"].student_02 > > > > > > Thank you > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > to use Keys like a collection you need to use Collection datatype. > Your Class2.class is not coded to work like a collection with Keys so it > does not work as you expect. > > I got your code working by making the Class1.class $students a collection > of Class2 objects. > Class2.class has no functions just the student_01 student_02 properties. > > BruceS ------- End of Original Message ------- First of all thank you very much 1. When I type "." In the end so that it completes gb_Class1.students. This completes a collection list I wanted it to complement only what is in class 1 .Add .students 2. When I type "." In the end so that it completes gb_Class1.students["key_01"]. It does not complete anything Because it understands that it is a Variant variable I wanted it to complement only what is in class 2 .student_01 .student_02 From bsteers4 at gmail.com Fri Apr 14 18:26:31 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 14 Apr 2023 17:26:31 +0100 Subject: [Gambas-user] class within a class with a key In-Reply-To: <20230414150258.M40754@455.co.il> References: <20230414155454.M78798@455.co.il> <20230414150258.M40754@455.co.il> Message-ID: use Export to expose functions. I added the _get command to Class1.class now something like this works... Print gb_Class1["key_01"].student_01 Print gb_Class1["key_01"].student_02 Print gb_Class1["key_02"].student_01 Print gb_Class1["key_02"].student_02 On Fri, 14 Apr 2023, 16:18 Mayost Sharon, wrote: > ---------- Original Message ----------- > From: Bruce Steers > To: Gambas Mailing List > Sent: Fri, 14 Apr 2023 14:56:09 +0100 > Subject: Re: [Gambas-user] class within a class with a key > > > On Fri, 14 Apr 2023 at 13:55, Mayost Sharon wrote: > > > > > Hello > > > I need help on how to make a class within a class > > > Attached is an example that gives me an error because I'm missing > > > something that I can't figure out what to do > > > > > > I want to reach a state of: > > > Print gb_Class1.students["key_01"].student_01 > > > Print gb_Class1.students["key_01"].student_02 > > > > > > > > > Thank you > > > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > > > > to use Keys like a collection you need to use Collection datatype. > > Your Class2.class is not coded to work like a collection with Keys so it > > does not work as you expect. > > > > I got your code working by making the Class1.class $students a > collection > > of Class2 objects. > > Class2.class has no functions just the student_01 student_02 properties. > > > > BruceS > ------- End of Original Message ------- > > First of all thank you very much > > 1. > When I type "." In the end so that it completes > gb_Class1.students. > This completes a collection list > I wanted it to complement only what is in class 1 > .Add > .students > > 2. > When I type "." In the end so that it completes > gb_Class1.students["key_01"]. > It does not complete anything > Because it understands that it is a Variant variable > I wanted it to complement only what is in class 2 > .student_01 > .student_02 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: class_01-0.0.1.tar.gz Type: application/gzip Size: 12156 bytes Desc: not available URL: From bsteers4 at gmail.com Fri Apr 14 18:35:57 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 14 Apr 2023 17:35:57 +0100 Subject: [Gambas-user] class within a class with a key In-Reply-To: References: <20230414155454.M78798@455.co.il> <20230414150258.M40754@455.co.il> Message-ID: On Fri, 14 Apr 2023 at 17:26, Bruce Steers wrote: > use Export to expose functions. > > I added the _get command to Class1.class > > now something like this works... > > Print gb_Class1["key_01"].student_01 > Print gb_Class1["key_01"].student_02 > Print gb_Class1["key_02"].student_01 > Print gb_Class1["key_02"].student_02 > > I also added a Keys String[] array to store the array positions. So each time it adds an item to the Class2[] Array it also adds the key to the Keys list. If you plan to remove items from the students[] array then you must remove the item from the Keys list too. Something like this in Class1.class .... Public Sub Remove(Key As String) Dim iPos As Integer = Keys.Find(Key) If iPos = -1 Then Error.Raise("Key not found, " & Key) $students.Remove(iPos) Keys.Remove(iPos) End BruceS > On Fri, 14 Apr 2023, 16:18 Mayost Sharon, wrote: > >> ---------- Original Message ----------- >> From: Bruce Steers >> To: Gambas Mailing List >> Sent: Fri, 14 Apr 2023 14:56:09 +0100 >> Subject: Re: [Gambas-user] class within a class with a key >> >> > On Fri, 14 Apr 2023 at 13:55, Mayost Sharon wrote: >> > >> > > Hello >> > > I need help on how to make a class within a class >> > > Attached is an example that gives me an error because I'm missing >> > > something that I can't figure out what to do >> > > >> > > I want to reach a state of: >> > > Print gb_Class1.students["key_01"].student_01 >> > > Print gb_Class1.students["key_01"].student_02 >> > > >> > > >> > > Thank you >> > > >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > > >> > >> > to use Keys like a collection you need to use Collection datatype. >> > Your Class2.class is not coded to work like a collection with Keys so it >> > does not work as you expect. >> > >> > I got your code working by making the Class1.class $students a >> collection >> > of Class2 objects. >> > Class2.class has no functions just the student_01 student_02 properties. >> > >> > BruceS >> ------- End of Original Message ------- >> >> First of all thank you very much >> >> 1. >> When I type "." In the end so that it completes >> gb_Class1.students. >> This completes a collection list >> I wanted it to complement only what is in class 1 >> .Add >> .students >> >> 2. >> When I type "." In the end so that it completes >> gb_Class1.students["key_01"]. >> It does not complete anything >> Because it understands that it is a Variant variable >> I wanted it to complement only what is in class 2 >> .student_01 >> .student_02 >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Fri Apr 14 18:52:50 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 14 Apr 2023 18:52:50 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: <415897b4-ef45-2593-514e-e1e87abd1fb4@gambas-basic.org> References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> <415897b4-ef45-2593-514e-e1e87abd1fb4@gambas-basic.org> Message-ID: Le 14/04/2023 ? 14:55, Benoit Minisini a ?crit?: > > OK, I found the problem. 3.18.2 source archive has been fixed, and PPA > packages will be rebuild soon. > > Regards, > Tell me if it is fixed for you. -- Beno?t Minisini. From claus.dietrich at freenet.de Fri Apr 14 19:21:11 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 14 Apr 2023 19:21:11 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> <415897b4-ef45-2593-514e-e1e87abd1fb4@gambas-basic.org> Message-ID: <01f3a4fa-660f-9027-71cc-c959670bafb8@freenet.de> An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Fri Apr 14 19:54:15 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Fri, 14 Apr 2023 13:54:15 -0400 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: <01f3a4fa-660f-9027-71cc-c959670bafb8@freenet.de> References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> <415897b4-ef45-2593-514e-e1e87abd1fb4@gambas-basic.org> <01f3a4fa-660f-9027-71cc-c959670bafb8@freenet.de> Message-ID: On 2023-04-14 13:21, Claus Dietrich wrote: > Am 14.04.23 um 18:52 schrieb Benoit Minisini: > >> Le 14/04/2023 ? 14:55, Benoit Minisini a ?crit : >> >>> OK, I found the problem. 3.18.2 source archive has been fixed, and >>> PPA packages will be rebuild soon. >>> >>> Regards, >> >> Tell me if it is fixed for you. > > I just upgraded to 3.18.2 (build 18, ppa time stamp today 12:50) on > another PC ... works well. > Build 18? So I guess the one showing up on my Mint upgrade manager is the affected one?: 3.18.2+git202304141250.0690384b6+build13 Regards, Joe1962 From benoit.minisini at gambas-basic.org Fri Apr 14 21:23:27 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 14 Apr 2023 21:23:27 +0200 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> <415897b4-ef45-2593-514e-e1e87abd1fb4@gambas-basic.org> <01f3a4fa-660f-9027-71cc-c959670bafb8@freenet.de> Message-ID: <7605b293-a330-bb3d-0c18-dc2e848f819f@gambas-basic.org> Le 14/04/2023 ? 19:54, jose.rodriguez at cenpalab.cu a ?crit?: > On 2023-04-14 13:21, Claus Dietrich wrote: >> Am 14.04.23 um 18:52 schrieb Benoit Minisini: >> >>> Le 14/04/2023 ? 14:55, Benoit Minisini a ?crit : >>> >>>> OK, I found the problem. 3.18.2 source archive has been fixed, and >>>> PPA packages will be rebuild soon. >>>> >>>> Regards, >>> >>> Tell me if it is fixed for you. >> >> I just upgraded to 3.18.2 (build 18, ppa time stamp today 12:50) on >> another PC ... works well. >> > > Build 18? So I guess the one showing up on my Mint upgrade manager is > the affected one?: > > 3.18.2+git202304141250.0690384b6+build13 > > Regards, > Joe1962 > The build number depend on the Ubuntu version. The important is the date after "git": "202304141250", i.e. Apr 14, 2023 at 12:50. Regards, -- Beno?t Minisini. From claus.dietrich at freenet.de Fri Apr 14 21:59:40 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Fri, 14 Apr 2023 21:59:40 +0200 Subject: [Gambas-user] Problem with MediaPipeline Message-ID: Hi I am trying to record audio from the pulse monitor device. The GStreamer pipe $ gst-launch-1.0 -v pulsesrc device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3" works, but I failed to setup an equivalent as Gambas MediaPipeline. The following code is causing an error in line enc["target"] = bitrate and when I uncomment the line I get an error "Cannot set status" at pl.play. ' Gambas class file Private pl As MediaPipeline Private src As MediaControl Private fmt As MediaControl Private enc As MediaControl Private met As MediaControl Private snk As MediaControl Public Sub Form_Open() ? pl = New MediaPipeline ? src = New MediaControl(pl, "pulsesrc") ? src["device"] = "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ? fmt = New MediaControl(pl, "audio/x-raw,rate=44100,channels=2") ? enc = New MediaControl(pl, "lamemp3enc") ? enc["quality"] = 0 ? 'enc["target"] = bitrate ? enc["bitrate"] = 192 ? enc["cbr"] = True ? met = New MediaControl(pl, "id3v2mux") ? snk = New MediaControl(pl, "filesink") ? snk["location"] = "/home/$USER/output.mp3" ? src.LinkTo(fmt) ? fmt.LinkTo(enc) ? enc.LinkTo(met) ? met.LinkTo(snk) End Public Sub Button1_Click() ? pl.play End Can someone help? Best regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.rodriguez at cenpalab.cu Fri Apr 14 22:14:42 2023 From: jose.rodriguez at cenpalab.cu (jose.rodriguez at cenpalab.cu) Date: Fri, 14 Apr 2023 16:14:42 -0400 Subject: [Gambas-user] Release of Gambas 3.18.2 In-Reply-To: <7605b293-a330-bb3d-0c18-dc2e848f819f@gambas-basic.org> References: <0e228a52-f07a-bb47-5050-0fddf10ac73b@deganius.de> <415897b4-ef45-2593-514e-e1e87abd1fb4@gambas-basic.org> <01f3a4fa-660f-9027-71cc-c959670bafb8@freenet.de> <7605b293-a330-bb3d-0c18-dc2e848f819f@gambas-basic.org> Message-ID: <72984335bc90f358fdb172f6e742e1da@cenpalab.cu> On 2023-04-14 15:23, Benoit Minisini wrote: > Le 14/04/2023 ? 19:54, jose.rodriguez at cenpalab.cu a ?crit?: >> On 2023-04-14 13:21, Claus Dietrich wrote: >>> Am 14.04.23 um 18:52 schrieb Benoit Minisini: >>> >>>> Le 14/04/2023 ? 14:55, Benoit Minisini a ?crit : >>>> >>>>> OK, I found the problem. 3.18.2 source archive has been fixed, and >>>>> PPA packages will be rebuild soon. >>>>> >>>>> Regards, >>>> >>>> Tell me if it is fixed for you. >>> >>> I just upgraded to 3.18.2 (build 18, ppa time stamp today 12:50) on >>> another PC ... works well. >>> >> >> Build 18? So I guess the one showing up on my Mint upgrade manager is >> the affected one?: >> >> 3.18.2+git202304141250.0690384b6+build13 >> >> Regards, >> Joe1962 >> > > The build number depend on the Ubuntu version. > > The important is the date after "git": "202304141250", i.e. Apr 14, > 2023 at 12:50. > Ah, that figures, thanks! Regards, Joe1962 From vuott at tutanota.com Fri Apr 14 23:22:47 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Fri, 14 Apr 2023 23:22:47 +0200 (CEST) Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: Message-ID: Hello, using in terminal pipe with gst-launch-1.0, reported by you, it does "not" work for me. 14 apr 2023, 22:00 da claus.dietrich at freenet.de: > > Hi > > > I am trying to record audio from the pulse monitor device. The GStreamer pipe > > > $ gst-launch-1.0 -v pulsesrc device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3" > > > works, but I failed to setup an equivalent as Gambas MediaPipeline. The following code is causing an error in line enc["target"] = bitrate and when I uncomment the line I get an error "Cannot set status" at pl.play. > > > > > ' Gambas class file > Private pl As MediaPipeline > Private src As MediaControl > Private fmt As MediaControl > Private enc As MediaControl > Private met As MediaControl > Private snk As MediaControl > > Public Sub Form_Open() > > ? pl = New MediaPipeline > ? src = New MediaControl(pl, "pulsesrc") > ? src["device"] = "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" > ? fmt = New MediaControl(pl, "audio/x-raw,rate=44100,channels=2") > ? enc = New MediaControl(pl, "lamemp3enc") > ? enc["quality"] = 0 > ? 'enc["target"] = bitrate > ? enc["bitrate"] = 192 > ? enc["cbr"] = True > ? met = New MediaControl(pl, "id3v2mux") > ? snk = New MediaControl(pl, "filesink") > ? snk["location"] = "/home/$USER/output.mp3" > ? > ? src.LinkTo(fmt) > ? fmt.LinkTo(enc) > ? enc.LinkTo(met) > ? met.LinkTo(snk) > ? > End > > Public Sub Button1_Click() > > ? pl.play > > End > > > > > Can someone help? > > > Best regards > > > Claus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Fri Apr 14 23:31:14 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Fri, 14 Apr 2023 23:31:14 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: Message-ID: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> Le 14/04/2023 ? 21:59, Claus Dietrich a ?crit?: > Hi > > I am trying to record audio from the pulse monitor device. The GStreamer > pipe > > $ gst-launch-1.0 -v pulsesrc > device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! > audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate > bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3" > > works, but I failed to setup an equivalent as Gambas MediaPipeline. The > following code is causing an error in line enc["target"] = bitrate and > when I uncomment the line I get an error "Cannot set status" at pl.play. > > ' Gambas class file > Private pl As MediaPipeline > Private src As MediaControl > ... Please provide a full gambas project. Regards, -- Beno?t Minisini. From vuott at tutanota.com Sat Apr 15 00:21:02 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sat, 15 Apr 2023 00:21:02 +0200 (CEST) Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: Message-ID: Well, that command line in terminal didn't work, because my audio source name was wrong. So I ran this command: ???? ~$ pactl list sinksSearching between the lines, returned in the terminal, I found this information: ????? Source monitor: alsa_output.pci-0000_00_14.2.analog-stereo.monitor Entering that correct source name of my audio device in the line: ???? src["device"] = "alsa_output.pci-0000_00_14.2.analog-stereo.monitor"your Gambas code worked for me. 14 apr 2023, 23:23 da user at lists.gambas-basic.org: > Hello, > using in terminal pipe with gst-launch-1.0, reported by you, it does "not" work for me. > > > > > 14 apr 2023, 22:00 da claus.dietrich at freenet.de: > >> >> Hi >> >> >> I am trying to record audio from the pulse monitor device. The GStreamer pipe >> >> >> $ gst-launch-1.0 -v pulsesrc device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3" >> >> >> works, but I failed to setup an equivalent as Gambas MediaPipeline. The following code is causing an error in line enc["target"] = bitrate and when I uncomment the line I get an error "Cannot set status" at pl.play. >> >> >> >> >> ' Gambas class file >> Private pl As MediaPipeline >> Private src As MediaControl >> Private fmt As MediaControl >> Private enc As MediaControl >> Private met As MediaControl >> Private snk As MediaControl >> >> Public Sub Form_Open() >> >> ? pl = New MediaPipeline >> ? src = New MediaControl(pl, "pulsesrc") >> ? src["device"] = "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" >> ? fmt = New MediaControl(pl, "audio/x-raw,rate=44100,channels=2") >> ? enc = New MediaControl(pl, "lamemp3enc") >> ? enc["quality"] = 0 >> ? 'enc["target"] = bitrate >> ? enc["bitrate"] = 192 >> ? enc["cbr"] = True >> ? met = New MediaControl(pl, "id3v2mux") >> ? snk = New MediaControl(pl, "filesink") >> ? snk["location"] = "/home/$USER/output.mp3" >> ? >> ? src.LinkTo(fmt) >> ? fmt.LinkTo(enc) >> ? enc.LinkTo(met) >> ? met.LinkTo(snk) >> ? >> End >> >> Public Sub Button1_Click() >> >> ? pl.play >> >> End >> >> >> >> >> Can someone help? >> >> >> Best regards >> >> >> Claus >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Sat Apr 15 00:25:21 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sat, 15 Apr 2023 00:25:21 +0200 (CEST) Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: Message-ID: Opss... I repeat the command line: ???? ~$ pactl list sinks ?? 15 apr 2023, 00:22 da user at lists.gambas-basic.org: > Well, > that command line in terminal didn't work, because my audio source name was wrong. > So I ran this command: > ???? ~$ pactl list sinks > Searching between the lines, returned in the terminal, I found this information: > ????? Source monitor: alsa_output.pci-0000_00_14.2.analog-stereo.monitor > > Entering that correct source name of my audio device in the line: > ???? src["device"] = "alsa_output.pci-0000_00_14.2.analog-stereo.monitor" > your Gambas code worked for me. > > > > > 14 apr 2023, 23:23 da user at lists.gambas-basic.org: > >> Hello, >> using in terminal pipe with gst-launch-1.0, reported by you, it does "not" work for me. >> >> >> >> >> 14 apr 2023, 22:00 da claus.dietrich at freenet.de: >> >>> >>> Hi >>> >>> >>> I am trying to record audio from the pulse monitor device. The GStreamer pipe >>> >>> >>> $ gst-launch-1.0 -v pulsesrc device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3" >>> >>> >>> works, but I failed to setup an equivalent as Gambas MediaPipeline. The following code is causing an error in line enc["target"] = bitrate and when I uncomment the line I get an error "Cannot set status" at pl.play. >>> >>> >>> >>> >>> ' Gambas class file >>> Private pl As MediaPipeline >>> Private src As MediaControl >>> Private fmt As MediaControl >>> Private enc As MediaControl >>> Private met As MediaControl >>> Private snk As MediaControl >>> >>> Public Sub Form_Open() >>> >>> ? pl = New MediaPipeline >>> ? src = New MediaControl(pl, "pulsesrc") >>> ? src["device"] = "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" >>> ? fmt = New MediaControl(pl, "audio/x-raw,rate=44100,channels=2") >>> ? enc = New MediaControl(pl, "lamemp3enc") >>> ? enc["quality"] = 0 >>> ? 'enc["target"] = bitrate >>> ? enc["bitrate"] = 192 >>> ? enc["cbr"] = True >>> ? met = New MediaControl(pl, "id3v2mux") >>> ? snk = New MediaControl(pl, "filesink") >>> ? snk["location"] = "/home/$USER/output.mp3" >>> ? >>> ? src.LinkTo(fmt) >>> ? fmt.LinkTo(enc) >>> ? enc.LinkTo(met) >>> ? met.LinkTo(snk) >>> ? >>> End >>> >>> Public Sub Button1_Click() >>> >>> ? pl.play >>> >>> End >>> >>> >>> >>> >>> Can someone help? >>> >>> >>> Best regards >>> >>> >>> Claus >>> >>> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Sat Apr 15 01:08:52 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sat, 15 Apr 2023 01:08:52 +0200 (CEST) Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: Message-ID: For me this line works too: ???? src["device"] = "alsa_input.pci-0000_00_14.2.analog-stereo" TO NOTICE here:? ???? "alsa_input......analog-stereo"?????????????????? (from INPUT) Instead in the previous information: ???? "alsa_output........monitor"???????????????????????? (from OUTPUT) 15 apr 2023, 00:22 da user at lists.gambas-basic.org: > Well, > that command line in terminal didn't work, because my audio source name was wrong. > So I ran this command: > ???? ~$ pactl list sinks > Searching between the lines, returned in the terminal, I found this information: > ????? Source monitor: alsa_output.pci-0000_00_14.2.analog-stereo.monitor > > Entering that correct source name of my audio device in the line: > ???? src["device"] = "alsa_output.pci-0000_00_14.2.analog-stereo.monitor" > your Gambas code worked for me. > > > > > 14 apr 2023, 23:23 da user at lists.gambas-basic.org: > >> Hello, >> using in terminal pipe with gst-launch-1.0, reported by you, it does "not" work for me. >> >> >> >> >> 14 apr 2023, 22:00 da claus.dietrich at freenet.de: >> >>> >>> Hi >>> >>> >>> I am trying to record audio from the pulse monitor device. The GStreamer pipe >>> >>> >>> $ gst-launch-1.0 -v pulsesrc device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3" >>> >>> >>> works, but I failed to setup an equivalent as Gambas MediaPipeline. The following code is causing an error in line enc["target"] = bitrate and when I uncomment the line I get an error "Cannot set status" at pl.play. >>> >>> >>> >>> >>> ' Gambas class file >>> Private pl As MediaPipeline >>> Private src As MediaControl >>> Private fmt As MediaControl >>> Private enc As MediaControl >>> Private met As MediaControl >>> Private snk As MediaControl >>> >>> Public Sub Form_Open() >>> >>> ? pl = New MediaPipeline >>> ? src = New MediaControl(pl, "pulsesrc") >>> ? src["device"] = "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" >>> ? fmt = New MediaControl(pl, "audio/x-raw,rate=44100,channels=2") >>> ? enc = New MediaControl(pl, "lamemp3enc") >>> ? enc["quality"] = 0 >>> ? 'enc["target"] = bitrate >>> ? enc["bitrate"] = 192 >>> ? enc["cbr"] = True >>> ? met = New MediaControl(pl, "id3v2mux") >>> ? snk = New MediaControl(pl, "filesink") >>> ? snk["location"] = "/home/$USER/output.mp3" >>> ? >>> ? src.LinkTo(fmt) >>> ? fmt.LinkTo(enc) >>> ? enc.LinkTo(met) >>> ? met.LinkTo(snk) >>> ? >>> End >>> >>> Public Sub Button1_Click() >>> >>> ? pl.play >>> >>> End >>> >>> >>> >>> >>> Can someone help? >>> >>> >>> Best regards >>> >>> >>> Claus >>> >>> >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Sat Apr 15 01:26:11 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sat, 15 Apr 2023 01:26:11 +0200 (CEST) Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: Message-ID: ? is causing an error in line enc["target"] = bitrate ? Try with this line: ??? Private Enum Quality = 0, bitrate 14 apr 2023, 22:00 da claus.dietrich at freenet.de: > > Hi > > > I am trying to record audio from the pulse monitor device. The GStreamer pipe > > > $ gst-launch-1.0 -v pulsesrc device="alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" ! audio/x-raw,rate=44100,channels=2 ! lamemp3enc quality=0 target=bitrate bitrate=192 cbr=true ! id3v2mux ! filesink location="/home/$USER/output.mp3" > > > works, but I failed to setup an equivalent as Gambas MediaPipeline. The following code is causing an error in line enc["target"] = bitrate and when I uncomment the line I get an error "Cannot set status" at pl.play. > > > > > ' Gambas class file > Private pl As MediaPipeline > Private src As MediaControl > Private fmt As MediaControl > Private enc As MediaControl > Private met As MediaControl > Private snk As MediaControl > > Public Sub Form_Open() > > ? pl = New MediaPipeline > ? src = New MediaControl(pl, "pulsesrc") > ? src["device"] = "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" > ? fmt = New MediaControl(pl, "audio/x-raw,rate=44100,channels=2") > ? enc = New MediaControl(pl, "lamemp3enc") > ? enc["quality"] = 0 > ? 'enc["target"] = bitrate > ? enc["bitrate"] = 192 > ? enc["cbr"] = True > ? met = New MediaControl(pl, "id3v2mux") > ? snk = New MediaControl(pl, "filesink") > ? snk["location"] = "/home/$USER/output.mp3" > ? > ? src.LinkTo(fmt) > ? fmt.LinkTo(enc) > ? enc.LinkTo(met) > ? met.LinkTo(snk) > ? > End > > Public Sub Button1_Click() > > ? pl.play > > End > > > > > Can someone help? > > > Best regards > > > Claus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From claus.dietrich at freenet.de Sat Apr 15 13:29:23 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 15 Apr 2023 13:29:23 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> Message-ID: <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> Am 14.04.23 um 23:31 schrieb Benoit Minisini: > Please provide a full gambas project. That is the full pilot project (finally supposed to become a class). It was a first attempt to check, whether I can replace my working audio recording class based on FFMPEG. Am 15.04.23 um 01:08 schrieb vuott--- via User: > For me this line works too: > ???? src["device"] = "alsa_input.pci-0000_00_14.2.analog-stereo" Yes, of course it requires the correct device. Am 15.04.23 um 01:08 schrieb vuott--- via User: > TO NOTICE here: > "alsa_input......analog-stereo"?????????????????? (from INPUT) > > Instead in the previous information: > "alsa_output........monitor"???????????????????????? (from OUTPUT) An interesting hint, thanks. Am 15.04.23 um 01:26 schrieb vuott--- via User: > Try with this line: > ??? Private Enum Quality = 0, bitrate Done, but I still get the the error "Cannot set status" at pl.play. Best regards Claus From benoit.minisini at gambas-basic.org Sat Apr 15 13:59:30 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 15 Apr 2023 13:59:30 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> Message-ID: <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> Le 15/04/2023 ? 13:29, Claus Dietrich a ?crit?: > Am 14.04.23 um 23:31 schrieb Benoit Minisini: >> Please provide a full gambas project. > > That is the full pilot project (finally supposed to become a class). It > was a first attempt to check, whether I can replace my working audio > recording class based on FFMPEG. Your code works perfectly, as soon as the source device is correct. So, no idea why it does not work on your computer without more details. Maybe a GStreamer version problem, a missing GStreamer library... -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sat Apr 15 14:34:32 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 15 Apr 2023 14:34:32 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> Message-ID: <1fe63981-81db-2a21-25ba-61ddd6e98f60@gambas-basic.org> Le 15/04/2023 ? 13:59, Benoit Minisini a ?crit?: > Le 15/04/2023 ? 13:29, Claus Dietrich a ?crit?: >> Am 14.04.23 um 23:31 schrieb Benoit Minisini: >>> Please provide a full gambas project. >> >> That is the full pilot project (finally supposed to become a class). >> It was a first attempt to check, whether I can replace my working >> audio recording class based on FFMPEG. > > Your code works perfectly, as soon as the source device is correct. > > So, no idea why it does not work on your computer without more details. > Maybe a GStreamer version problem, a missing GStreamer library... > In the last commit, I fixed enumeration properties setting. Now you can set an enumeration property using the enumeration value as a string: enc["target"] = "bitrate" Regards, -- Beno?t Minisini. From mtitouinfo at yahoo.fr Sat Apr 15 14:46:28 2023 From: mtitouinfo at yahoo.fr (Manu) Date: Sat, 15 Apr 2023 14:46:28 +0200 Subject: [Gambas-user] console References: Message-ID: Hello Unable to resize console window. How to reset this window if the mouse goes below. F11 makes nothing. thanks gambas 3.18.2 From bsteers4 at gmail.com Sat Apr 15 14:52:53 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sat, 15 Apr 2023 13:52:53 +0100 Subject: [Gambas-user] console In-Reply-To: References: Message-ID: Does this help? https://forum.gambas.one/viewtopic.php?t=1472 On Sat, 15 Apr 2023 at 13:47, Manu via User wrote: > Hello > Unable to resize console window. > How to reset this window if the mouse goes below. > F11 makes nothing. > thanks > gambas 3.18.2 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtitouinfo at yahoo.fr Sat Apr 15 16:00:01 2023 From: mtitouinfo at yahoo.fr (Manu) Date: Sat, 15 Apr 2023 16:00:01 +0200 Subject: [Gambas-user] console In-Reply-To: References: Message-ID: yes it's a good anwswer. thank you. In my case, the error is the same if the console height is almost 0 (second parameter). console.height MUST >> 0 panDebug=[True,350,False,False] Le 15/04/2023 ? 14:52, Bruce Steers a ?crit?: > Does this help? > https://forum.gambas.one/viewtopic.php?t=1472 > > > On Sat, 15 Apr 2023 at 13:47, Manu via User > wrote: > > Hello > Unable to resize console window. > How to reset this window if the mouse goes below. > F11 makes nothing. > thanks > gambas 3.18.2 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > From claus.dietrich at freenet.de Sat Apr 15 16:08:51 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 15 Apr 2023 16:08:51 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> Message-ID: <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> Am 15.04.23 um 13:59 schrieb Benoit Minisini: > Your code works perfectly, as soon as the source device is correct. > > So, no idea why it does not work on your computer without more > details. Maybe a GStreamer version problem, a missing GStreamer library... MediaControl is based on GStreamer. So why does a GStreamer console command work and MediaControl code doesn't on the same platform? I am using MediaControls on my target app already and they work perfectly. I tested the pilot snippet on another distro with the same bad result. I also used "gst-inspect-1.0" but found nothing suspicious. Am 15.04.23 um 14:34 schrieb Benoit Minisini: > In the last commit, I fixed enumeration properties setting. > Now you can set an enumeration property using the enumeration value as > a string: > enc["target"] = "bitrate" That is what I thought and hoped. Thanks a lot! However, I am assuming that it will not solve my "Cannot set status" problem at pl.play, because the console command also works without "target=bitrate". Best regards Claus From benoit.minisini at gambas-basic.org Sat Apr 15 17:25:04 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 15 Apr 2023 17:25:04 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> Message-ID: Le 15/04/2023 ? 16:08, Claus Dietrich a ?crit?: > Am 15.04.23 um 13:59 schrieb Benoit Minisini: >> Your code works perfectly, as soon as the source device is correct. >> >> So, no idea why it does not work on your computer without more >> details. Maybe a GStreamer version problem, a missing GStreamer >> library... > > MediaControl is based on GStreamer. So why does a GStreamer console > command work and MediaControl code doesn't on the same platform? I am > using MediaControls on my target app already and they work perfectly. I > tested the pilot snippet on another distro with the same bad result. > > I also used "gst-inspect-1.0" but found nothing suspicious. > Again no idea. But maybe you should give full information on your system, the distribution you use, and the Gambas version you are using? Maybe it will help? -- Beno?t Minisini. From sharon at 455.co.il Sat Apr 15 20:58:10 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 15 Apr 2023 21:58:10 +0300 Subject: [Gambas-user] class within a class with a key In-Reply-To: References: <20230414155454.M78798@455.co.il> <20230414150258.M40754@455.co.il> Message-ID: <20230415185522.M21481@455.co.il> ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Fri, 14 Apr 2023 17:35:57 +0100 Subject: Re: [Gambas-user] class within a class with a key > On Fri, 14 Apr 2023 at 17:26, Bruce Steers wrote: > > > use Export to expose functions. > > > > I added the _get command to Class1.class > > > > now something like this works... > > > > Print gb_Class1["key_01"].student_01 > > Print gb_Class1["key_01"].student_02 > > Print gb_Class1["key_02"].student_01 > > Print gb_Class1["key_02"].student_02 > > > > > > I also added a Keys String[] array to store the array positions. > So each time it adds an item to the Class2[] Array it also adds the key to > the Keys list. > > If you plan to remove items from the students[] array then you must remove > the item from the Keys list too. > Something like this in Class1.class .... > > Public Sub Remove(Key As String) > > Dim iPos As Integer = Keys.Find(Key) > If iPos = -1 Then Error.Raise("Key not found, " & Key) > $students.Remove(iPos) > Keys.Remove(iPos) > > End > > BruceS > > > On Fri, 14 Apr 2023, 16:18 Mayost Sharon, wrote: > > > >> ---------- Original Message ----------- > >> From: Bruce Steers > >> To: Gambas Mailing List > >> Sent: Fri, 14 Apr 2023 14:56:09 +0100 > >> Subject: Re: [Gambas-user] class within a class with a key > >> > >> > On Fri, 14 Apr 2023 at 13:55, Mayost Sharon wrote: > >> > > >> > > Hello > >> > > I need help on how to make a class within a class > >> > > Attached is an example that gives me an error because I'm missing > >> > > something that I can't figure out what to do > >> > > > >> > > I want to reach a state of: > >> > > Print gb_Class1.students["key_01"].student_01 > >> > > Print gb_Class1.students["key_01"].student_02 > >> > > > >> > > > >> > > Thank you > >> > > > >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > > > >> > > >> > to use Keys like a collection you need to use Collection datatype. > >> > Your Class2.class is not coded to work like a collection with Keys so it > >> > does not work as you expect. > >> > > >> > I got your code working by making the Class1.class $students a > >> collection > >> > of Class2 objects. > >> > Class2.class has no functions just the student_01 student_02 properties. > >> > > >> > BruceS > >> ------- End of Original Message ------- > >> > >> First of all thank you very much > >> > >> 1. > >> When I type "." In the end so that it completes > >> gb_Class1.students. > >> This completes a collection list > >> I wanted it to complement only what is in class 1 > >> .Add > >> .students > >> > >> 2. > >> When I type "." In the end so that it completes > >> gb_Class1.students["key_01"]. > >> It does not complete anything > >> Because it understands that it is a Variant variable > >> I wanted it to complement only what is in class 2 > >> .student_01 > >> .student_02 > >> > >> ------- End of Original Message ------- Many thanks again on the attached code I'm trying to understand I will report questions if I have any From claus.dietrich at freenet.de Sat Apr 15 21:24:26 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sat, 15 Apr 2023 21:24:26 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> Message-ID: Am 15.04.23 um 17:25 schrieb Benoit Minisini: > > Again no idea. But maybe you should give full information on your > system, the distribution you use, and the Gambas version you are > using? Maybe it will help? I am using a standard Mint 20.3 Cinnamon distro and Gambas 3.18.2. The problem occurs on all my Mint distros including my VMs with the master version. The installed gstreamer packages are version 1.16.3-Ubuntu1.1. As I found, Synaptic displays all gstreamer packages as "damaged". If this would be a problem, why do other application work with MediaControls? When I try to list "defect" packages in Synaptic, nothing shows up. I installed all packages as suggested here for Ubuntu without any positive effect: https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c Please refer to the attached screenshot for all installed gstreamer packages on a Mint 20.3 Cinnamon with an up-to-date Gambas master. Any further idea? Are you sure you are running the same code as I do? With best regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bildschirmfoto vom 2023-04-15 21-17-12.png Type: image/png Size: 152458 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Sun Apr 16 00:10:37 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 16 Apr 2023 00:10:37 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> Message-ID: Le 15/04/2023 ? 21:24, Claus Dietrich a ?crit?: > Am 15.04.23 um 17:25 schrieb Benoit Minisini: >> >> Again no idea. But maybe you should give full information on your >> system, the distribution you use, and the Gambas version you are >> using? Maybe it will help? > > I am using a standard Mint 20.3 Cinnamon distro and Gambas 3.18.2. The > problem occurs on all my Mint distros including my VMs with the master > version. The installed gstreamer packages are version 1.16.3-Ubuntu1.1. > > As I found, Synaptic displays all gstreamer packages as "damaged". If > this would be a problem, why do other application work with > MediaControls? When I try to list "defect" packages in Synaptic, nothing > shows up. > > I installed all packages as suggested here for Ubuntu without any > positive effect: > https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c > > Please refer to the attached screenshot for all installed gstreamer > packages on a Mint 20.3 Cinnamon with an up-to-date Gambas master. > > Any further idea? Are you sure you are running the same code as I do? This is why I ask you to send a full project and not a piece of code. Regards, -- Beno?t Minisini. From sharon at 455.co.il Sun Apr 16 09:08:54 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 16 Apr 2023 10:08:54 +0300 Subject: [Gambas-user] class within a class with a key In-Reply-To: <20230415185522.M21481@455.co.il> References: <20230414155454.M78798@455.co.il> <20230414150258.M40754@455.co.il> <20230415185522.M21481@455.co.il> Message-ID: <20230416063505.M44988@455.co.il> ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Sat, 15 Apr 2023 21:58:10 +0300 Subject: Re: [Gambas-user] class within a class with a key > ---------- Original Message ----------- > From: Bruce Steers > To: Gambas Mailing List > Sent: Fri, 14 Apr 2023 17:35:57 +0100 > Subject: Re: [Gambas-user] class within a class with a key > > > On Fri, 14 Apr 2023 at 17:26, Bruce Steers wrote: > > > > > use Export to expose functions. > > > > > > I added the _get command to Class1.class > > > > > > now something like this works... > > > > > > Print gb_Class1["key_01"].student_01 > > > Print gb_Class1["key_01"].student_02 > > > Print gb_Class1["key_02"].student_01 > > > Print gb_Class1["key_02"].student_02 > > > > > > > > > > I also added a Keys String[] array to store the array positions. > > So each time it adds an item to the Class2[] Array it also adds the key to > > the Keys list. > > > > If you plan to remove items from the students[] array then you must remove > > the item from the Keys list too. > > Something like this in Class1.class .... > > > > Public Sub Remove(Key As String) > > > > Dim iPos As Integer = Keys.Find(Key) > > If iPos = -1 Then Error.Raise("Key not found, " & Key) > > $students.Remove(iPos) > > Keys.Remove(iPos) > > > > End > > > > BruceS > > > > > On Fri, 14 Apr 2023, 16:18 Mayost Sharon, wrote: > > > > > >> ---------- Original Message ----------- > > >> From: Bruce Steers > > >> To: Gambas Mailing List > > >> Sent: Fri, 14 Apr 2023 14:56:09 +0100 > > >> Subject: Re: [Gambas-user] class within a class with a key > > >> > > >> > On Fri, 14 Apr 2023 at 13:55, Mayost Sharon wrote: > > >> > > > >> > > Hello > > >> > > I need help on how to make a class within a class > > >> > > Attached is an example that gives me an error because I'm missing > > >> > > something that I can't figure out what to do > > >> > > > > >> > > I want to reach a state of: > > >> > > Print gb_Class1.students["key_01"].student_01 > > >> > > Print gb_Class1.students["key_01"].student_02 > > >> > > > > >> > > > > >> > > Thank you > > >> > > > > >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > >> > > > > >> > > > >> > to use Keys like a collection you need to use Collection datatype. > > >> > Your Class2.class is not coded to work like a collection with Keys so it > > >> > does not work as you expect. > > >> > > > >> > I got your code working by making the Class1.class $students a > > >> collection > > >> > of Class2 objects. > > >> > Class2.class has no functions just the student_01 student_02 properties. > > >> > > > >> > BruceS > > >> ------- End of Original Message ------- > > >> > > >> First of all thank you very much > > >> > > >> 1. > > >> When I type "." In the end so that it completes > > >> gb_Class1.students. > > >> This completes a collection list > > >> I wanted it to complement only what is in class 1 > > >> .Add > > >> .students > > >> > > >> 2. > > >> When I type "." In the end so that it completes > > >> gb_Class1.students["key_01"]. > > >> It does not complete anything > > >> Because it understands that it is a Variant variable > > >> I wanted it to complement only what is in class 2 > > >> .student_01 > > >> .student_02 > > >> > > >> > ------- End of Original Message ------- > > Many thanks again > on the attached code > > I'm trying to understand > I will report questions if I have any > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- I checked your code 1. I wanted to get to: gb_Class1.students.Add.Add("key_01", "Gambas", "Visual Basic") not to gb_Class1.Add("key_01", "Gambas", "Visual Basic") It means that the KEY will be in CLASS2 which is students In gb_Class1 there will be only: gb_Class1.students In gb_Class1.students there will be only: gb_Class1.students.Add In gb_Class1.students[Key] there will be only: gb_Class1.students[Key].student_01 gb_Class1.students[Key].student_02 in Gambas documentation writes that the best example is: gb.settings he does a "virtual class" I tried changing your code: (new code attached) But it gives me an error I tried to understand and could not understand why Many thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: class_02.zip Type: application/zip Size: 19093 bytes Desc: not available URL: From sharon at 455.co.il Sun Apr 16 11:48:30 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 16 Apr 2023 12:48:30 +0300 Subject: [Gambas-user] class within a class with a key In-Reply-To: <20230416063505.M44988@455.co.il> References: <20230414155454.M78798@455.co.il> <20230414150258.M40754@455.co.il> <20230415185522.M21481@455.co.il> <20230416063505.M44988@455.co.il> Message-ID: <20230416093833.M61849@455.co.il> ---------- Original Message ----------- From: "Mayost Sharon" To: Gambas Mailing List Sent: Sun, 16 Apr 2023 10:08:54 +0300 Subject: Re: [Gambas-user] class within a class with a key > ---------- Original Message ----------- > From: "Mayost Sharon" > To: Gambas Mailing List > Sent: Sat, 15 Apr 2023 21:58:10 +0300 > Subject: Re: [Gambas-user] class within a class with a key > > > ---------- Original Message ----------- > > From: Bruce Steers > > To: Gambas Mailing List > > Sent: Fri, 14 Apr 2023 17:35:57 +0100 > > Subject: Re: [Gambas-user] class within a class with a key > > > > > On Fri, 14 Apr 2023 at 17:26, Bruce Steers wrote: > > > > > > > use Export to expose functions. > > > > > > > > I added the _get command to Class1.class > > > > > > > > now something like this works... > > > > > > > > Print gb_Class1["key_01"].student_01 > > > > Print gb_Class1["key_01"].student_02 > > > > Print gb_Class1["key_02"].student_01 > > > > Print gb_Class1["key_02"].student_02 > > > > > > > > > > > > > > I also added a Keys String[] array to store the array positions. > > > So each time it adds an item to the Class2[] Array it also adds the key to > > > the Keys list. > > > > > > If you plan to remove items from the students[] array then you must remove > > > the item from the Keys list too. > > > Something like this in Class1.class .... > > > > > > Public Sub Remove(Key As String) > > > > > > Dim iPos As Integer = Keys.Find(Key) > > > If iPos = -1 Then Error.Raise("Key not found, " & Key) > > > $students.Remove(iPos) > > > Keys.Remove(iPos) > > > > > > End > > > > > > BruceS > > > > > > > On Fri, 14 Apr 2023, 16:18 Mayost Sharon, wrote: > > > > > > > >> ---------- Original Message ----------- > > > >> From: Bruce Steers > > > >> To: Gambas Mailing List > > > >> Sent: Fri, 14 Apr 2023 14:56:09 +0100 > > > >> Subject: Re: [Gambas-user] class within a class with a key > > > >> > > > >> > On Fri, 14 Apr 2023 at 13:55, Mayost Sharon wrote: > > > >> > > > > >> > > Hello > > > >> > > I need help on how to make a class within a class > > > >> > > Attached is an example that gives me an error because I'm missing > > > >> > > something that I can't figure out what to do > > > >> > > > > > >> > > I want to reach a state of: > > > >> > > Print gb_Class1.students["key_01"].student_01 > > > >> > > Print gb_Class1.students["key_01"].student_02 > > > >> > > > > > >> > > > > > >> > > Thank you > > > >> > > > > > >> > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > >> > > > > > >> > > > > >> > to use Keys like a collection you need to use Collection datatype. > > > >> > Your Class2.class is not coded to work like a collection with Keys so it > > > >> > does not work as you expect. > > > >> > > > > >> > I got your code working by making the Class1.class $students a > > > >> collection > > > >> > of Class2 objects. > > > >> > Class2.class has no functions just the student_01 student_02 properties. > > > >> > > > > >> > BruceS > > > >> ------- End of Original Message ------- > > > >> > > > >> First of all thank you very much > > > >> > > > >> 1. > > > >> When I type "." In the end so that it completes > > > >> gb_Class1.students. > > > >> This completes a collection list > > > >> I wanted it to complement only what is in class 1 > > > >> .Add > > > >> .students > > > >> > > > >> 2. > > > >> When I type "." In the end so that it completes > > > >> gb_Class1.students["key_01"]. > > > >> It does not complete anything > > > >> Because it understands that it is a Variant variable > > > >> I wanted it to complement only what is in class 2 > > > >> .student_01 > > > >> .student_02 > > > >> > > > >> > > ------- End of Original Message ------- > > > > Many thanks again > > on the attached code > > > > I'm trying to understand > > I will report questions if I have any > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > ------- End of Original Message ------- > > I checked your code > > 1. I wanted to get to: > gb_Class1.students.Add.Add("key_01", "Gambas", "Visual Basic") > not to > gb_Class1.Add("key_01", "Gambas", "Visual Basic") > It means that the KEY > will be in CLASS2 which is students > > In gb_Class1 there will be only: > gb_Class1.students > > In gb_Class1.students there will be only: > gb_Class1.students.Add > > In gb_Class1.students[Key] there will be only: > gb_Class1.students[Key].student_01 > gb_Class1.students[Key].student_02 > > in Gambas documentation writes that the best example is: > gb.settings > > he does a "virtual class" > > I tried changing your code: > (new code attached) > But it gives me an error > I tried to understand and could not understand why > > Many thanks ------- End of Original Message ------- Hello Sorry in the previous file There was a problem with the code because I did double ADD Attached is a new example file that seems to work well I mean I understood the subject of the CLASS correctly I would love to know if there are any comments on the code Many thanks for your help -------------- next part -------------- A non-text attachment was scrubbed... Name: class_03.zip Type: application/zip Size: 19065 bytes Desc: not available URL: From bsteers4 at gmail.com Sun Apr 16 14:50:47 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 16 Apr 2023 13:50:47 +0100 Subject: [Gambas-user] class within a class with a key In-Reply-To: <20230416093833.M61849@455.co.il> References: <20230414155454.M78798@455.co.il> <20230414150258.M40754@455.co.il> <20230415185522.M21481@455.co.il> <20230416063505.M44988@455.co.il> <20230416093833.M61849@455.co.il> Message-ID: On Sun, 16 Apr 2023 at 10:27, Mayost Sharon wrote: > ---------- Original Message ----------- > From: "Mayost Sharon" > To: Gambas Mailing List > Sent: Sun, 16 Apr 2023 10:08:54 +0300 > Subject: Re: [Gambas-user] class within a class with a key > > Snip out exessive past messages > Hello > > Sorry > in the previous file > There was a problem with the code because I did double ADD > > Attached is a new example file that seems to work well > I mean I understood the subject of the CLASS correctly > I would love to know if there are any comments on the code > > Many thanks for your help > The code looks great, better than mine and working exactly how you wanted it to :) Glad you figured it out :) Happy coding BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sun Apr 16 16:47:13 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 16 Apr 2023 17:47:13 +0300 Subject: [Gambas-user] Changing the value of a variable or object outside the class Message-ID: <20230416143058.M96507@455.co.il> Hello, I hope the title is correct Further to the discussion: https://lists.gambas-basic.org/pipermail/user/2023-April/079118.html which ended successfully I have a new question related to classes I am trying to change a property of an object that is in class1 but I am inside class2 Attached is the code I am trying and it does not allow access from class2 to class1 Class 1 has an h_timer object I want in class 2 to change the value of h_timer.Delay Thanks -------------- next part -------------- A non-text attachment was scrubbed... Name: class_05.zip Type: application/zip Size: 18881 bytes Desc: not available URL: From claus.dietrich at freenet.de Sun Apr 16 16:25:01 2023 From: claus.dietrich at freenet.de (Claus Dietrich) Date: Sun, 16 Apr 2023 16:25:01 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> Message-ID: <48b7286b-c4bf-e955-c7d5-f6c9d516318d@freenet.de> Am 16.04.23 um 00:10 schrieb Benoit Minisini: > This is why I ask you to send a full project and not a piece of code. As said, it was the full project - see attached program. Best regards Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Audio_Recording_MediaControl-0.0.1.tar.gz Type: application/gzip Size: 12322 bytes Desc: not available URL: From bsteers4 at gmail.com Sun Apr 16 17:57:38 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 16 Apr 2023 16:57:38 +0100 Subject: [Gambas-user] Propriety software security Message-ID: Got someone on the forum asking about security of his programs (typical .net VB coder coming from the closed source world) I was wanting to explain how secure the .gambas exe's are. It's my understanding that a compiled exe will contain the .gambas folder binaries but not the .src folder source code. and decompiling those binaries is probably possible but so is decompiling most binaries of any language. Wasn't sure if there's any info on exactly what's included in the exe and code security already? Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Sun Apr 16 19:57:42 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 16 Apr 2023 19:57:42 +0200 (CEST) Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: <48b7286b-c4bf-e955-c7d5-f6c9d516318d@freenet.de> References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> <48b7286b-c4bf-e955-c7d5-f6c9d516318d@freenet.de> Message-ID: I tried your code, obviously changing the name of the audio device, as I detected, and replacing the word "$USER". Your code works for me ! I also enabled this line, taking into account Benoit's last modification in this regard: ?? enc["target"] = "bitrate" and it works just the same. regards 16 apr 2023, 16:27 da claus.dietrich at freenet.de: > Am 16.04.23 um 00:10 schrieb Benoit Minisini: > >> This is why I ask you to send a full project and not a piece of code. >> > > As said, it was the full project - see attached program. > > > Best regards > > > Claus > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sun Apr 16 20:29:12 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 16 Apr 2023 20:29:12 +0200 Subject: [Gambas-user] Propriety software security In-Reply-To: References: Message-ID: Le 16/04/2023 ? 17:57, Bruce Steers a ?crit?: > Got someone on the forum asking about security of his programs (typical > .net VB coder coming from the closed source world) > > I was wanting to explain how secure the .gambas exe's are. > > It's my understanding that a compiled exe will contain the .gambas > folder binaries but not the .src folder source code. > > and decompiling those binaries is probably possible but so is > decompiling most binaries of any language. > > Wasn't sure if there's any info on exactly what's included in the exe > and code security already? > > Respects > BruceS > If you run `gba3 -l xxxx.gambas`, you will get a list of all files included in the `xxxx.gambas` file. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Sun Apr 16 20:44:19 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 16 Apr 2023 20:44:19 +0200 Subject: [Gambas-user] Problem with MediaPipeline In-Reply-To: <48b7286b-c4bf-e955-c7d5-f6c9d516318d@freenet.de> References: <72c7cf6c-a3d6-ab02-63c4-357adb87f5b8@gambas-basic.org> <27c25c9b-9814-c8b2-a01f-cea98ce70fd8@freenet.de> <4dc6be45-5bda-51b5-ce1d-c89bc5dbb3d7@gambas-basic.org> <4e673a0f-e00b-e239-e757-655ec1c35b56@freenet.de> <48b7286b-c4bf-e955-c7d5-f6c9d516318d@freenet.de> Message-ID: <5fc10c8e-d30d-450e-c671-7e3533697008@gambas-basic.org> Le 16/04/2023 ? 16:25, Claus Dietrich a ?crit?: > Am 16.04.23 um 00:10 schrieb Benoit Minisini: >> This is why I ask you to send a full project and not a piece of code. > > As said, it was the full project - see attached program. > > Best regards > > Claus > It still works here, but... The 'output.mp3' will be kept void if I close the window. But it will be (partly) written if I stop the program with the debugger stop button! So, as you can see, the fact that you are using 'gb.qt5' has an impact on the behaviour of the media pipeline. This is the reason why I always ask a full project: to have the exact same context for running the code. Now there is a difference between using 'gst-launch' and creating the same pipeline with Gambas. 'gst-launch' will try to connect the elements "intelligently" (I don't know exactly how), whereas you have to be explicit with Gambas. In other words, there are two way of connecting elements in Gambas: the 'LinkTo' method, which is immediate, and the 'LinkLaterTo' method, that must be used when the connectors of an element are available later after the creation of the element. Alas, to know if you have to use 'LinkLaterTo', you have to read the documentation of the element. And it may not be explicitely explained! I suggest you try different combinations of 'LinkLaterTo' (instead of 'LinkTo') on your machine, to see if the beahviour changes. Maybe the GStreamer elements do not behave the same on my machine because the GStreamer version is different? I don't think it will change anything, but you must try, as I don't see something else that could explain the different behaviour at the moment. Regards, -- Beno?t Minisini. From bsteers4 at gmail.com Sun Apr 16 21:01:56 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 16 Apr 2023 20:01:56 +0100 Subject: [Gambas-user] Propriety software security In-Reply-To: References: Message-ID: On Sun, 16 Apr 2023 at 19:30, Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 16/04/2023 ? 17:57, Bruce Steers a ?crit : > > Got someone on the forum asking about security of his programs (typical > > .net VB coder coming from the closed source world) > > > > I was wanting to explain how secure the .gambas exe's are. > > > > It's my understanding that a compiled exe will contain the .gambas > > folder binaries but not the .src folder source code. > > > > and decompiling those binaries is probably possible but so is > > decompiling most binaries of any language. > > > > Wasn't sure if there's any info on exactly what's included in the exe > > and code security already? > > > > Respects > > BruceS > > > > If you run `gba3 -l xxxx.gambas`, you will get a list of all files > included in the `xxxx.gambas` file. > > Regards, > > -- > Beno?t Minisini. > Many thanks Ben , good to know. Respects BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Apr 17 03:06:44 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 16 Apr 2023 21:06:44 -0400 Subject: [Gambas-user] Changing the value of a variable or object outside the class In-Reply-To: <20230416143058.M96507@455.co.il> References: <20230416143058.M96507@455.co.il> Message-ID: <610777c8-bd77-3f22-e719-ada0f33b8d3e@gmail.com> On 4/16/23 10:47, Mayost Sharon wrote: > Hello, I hope the title is correct > > Further to the discussion: > https://lists.gambas-basic.org/pipermail/user/2023-April/079118.html > which ended successfully > > I have a new question related to classes > > I am trying to change a property of an object that is in class1 but I am inside class2 > > Attached is the code I am trying and it does not allow access from class2 to class1 > > Class 1 has an h_timer object > I want in class 2 to change the value of h_timer.Delay > > Thanks You could make the declaration of your Timer STATIC PUBLIC, but you may not want the Class1 timer delay to be shared among all the Class2 objects. It is quite difficult to ascertain what it is you are trying to accomplish with the project as a whole. You may need to give each class2.key object its own timer. -- Lee From adamnt42 at gmail.com Mon Apr 17 04:53:41 2023 From: adamnt42 at gmail.com (BB) Date: Mon, 17 Apr 2023 12:23:41 +0930 Subject: [Gambas-user] Changing the value of a variable or object outside the class In-Reply-To: <20230416143058.M96507@455.co.il> References: <20230416143058.M96507@455.co.il> Message-ID: <72261cae-4cf7-59d2-7676-32b6ea830796@gmail.com> On 17/4/23 12:17 am, Mayost Sharon wrote: > Hello, I hope the title is correct > > Further to the discussion: > https://lists.gambas-basic.org/pipermail/user/2023-April/079118.html > which ended successfully > > I have a new question related to classes > > I am trying to change a property of an object that is in class1 but I am inside class2 > > Attached is the code I am trying and it does not allow access from class2 to class1 > > Class 1 has an h_timer object > I want in class 2 to change the value of h_timer.Delay > > Thanks > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Create a Public Sub in Class 1 thus Public Sub SetDelay(newDelay as Integer) ??? h_timer.Delay = newDelay End Then you can somehow call the method on the Class1 _object_ from any Class2 object. I too am unsure it is that you are really trying to achieve here. Your questions seem quite illogical. b -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon Apr 17 07:26:54 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 17 Apr 2023 08:26:54 +0300 Subject: [Gambas-user] Changing the value of a variable or object outside the class In-Reply-To: <610777c8-bd77-3f22-e719-ada0f33b8d3e@gmail.com> References: <20230416143058.M96507@455.co.il> <610777c8-bd77-3f22-e719-ada0f33b8d3e@gmail.com> Message-ID: <20230417051710.M83764@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Sun, 16 Apr 2023 21:06:44 -0400 Subject: Re: [Gambas-user] Changing the value of a variable or object outside the class > On 4/16/23 10:47, Mayost Sharon wrote: > > Hello, I hope the title is correct > > > > Further to the discussion: > > https://lists.gambas-basic.org/pipermail/user/2023-April/079118.html > > which ended successfully > > > > I have a new question related to classes > > > > I am trying to change a property of an object that is in class1 but I am inside class2 > > > > Attached is the code I am trying and it does not allow access from class2 to class1 > > > > Class 1 has an h_timer object > > I want in class 2 to change the value of h_timer.Delay > > > > Thanks > > You could make the declaration of your Timer STATIC PUBLIC, but you may not > want the Class1 timer delay to be shared among all the Class2 objects. > > It is quite difficult to ascertain what it is you are trying to accomplish > with the project as a whole. You may need to give each class2.key object its > own timer. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Thank you It works well with a STATIC statement As you said the problem now is that it is public to everyone I am trying to learn the work with classes The timer is just an example for understanding From sharon at 455.co.il Mon Apr 17 07:41:30 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 17 Apr 2023 08:41:30 +0300 Subject: [Gambas-user] Changing the value of a variable or object outside the class In-Reply-To: <72261cae-4cf7-59d2-7676-32b6ea830796@gmail.com> References: <20230416143058.M96507@455.co.il> <72261cae-4cf7-59d2-7676-32b6ea830796@gmail.com> Message-ID: <20230417054118.M90139@455.co.il> ---------- Original Message ----------- From: BB To: user at lists.gambas-basic.org Sent: Mon, 17 Apr 2023 12:23:41 +0930 Subject: Re: [Gambas-user] Changing the value of a variable or object outside the class > On 17/4/23 12:17 am, Mayost Sharon wrote: > > Hello, I hope the title is correct > > > > Further to the discussion: > > https://lists.gambas-basic.org/pipermail/user/2023-April/079118.html > > which ended successfully > > > > I have a new question related to classes > > > > I am trying to change a property of an object that is in class1 but I am inside class2 > > > > Attached is the code I am trying and it does not allow access from class2 to class1 > > > > Class 1 has an h_timer object > > I want in class 2 to change the value of h_timer.Delay > > > > Thanks > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Create a Public Sub in Class 1 thus > > Public Sub SetDelay(newDelay as Integer) > ??? h_timer.Delay = newDelay > End > > Then you can somehow call the method on the Class1 _object_ from any > Class2 object. > > I too am unsure it is that you are really trying to achieve here. Your > questions seem quite illogical. > > b ------- End of Original Message ------- Thank you I checked it doesn't work It seems that as T Lee Davidson said a STATIC statement should be added With a timer, you're right that it doesn't make sense But let's say it will be h_connection that you open it once in CLASS1 And in the rest of the CLASSS you want to perform operations on the h_connction such as inserting a record, deleting a record, etc. And I want to do it through CLASS2 or CLASS3 From adamnt42 at gmail.com Mon Apr 17 09:19:24 2023 From: adamnt42 at gmail.com (BB) Date: Mon, 17 Apr 2023 16:49:24 +0930 Subject: [Gambas-user] Changing the value of a variable or object outside the class In-Reply-To: <20230417054118.M90139@455.co.il> References: <20230416143058.M96507@455.co.il> <72261cae-4cf7-59d2-7676-32b6ea830796@gmail.com> <20230417054118.M90139@455.co.il> Message-ID: <4b8d80ba-67bf-e562-717b-e6adb8eb60dc@gmail.com> On 17/4/23 3:11 pm, Mayost Sharon wrote: > I checked it doesn't work > It seems that as T Lee Davidson said a STATIC statement should be added > > With a timer, you're right that it doesn't make sense > But let's say it will be h_connection > that you open it once in CLASS1 > And in the rest of the CLASSS you want to perform operations on the h_connction > such as inserting a record, deleting a record, etc. > And I want to do it through CLASS2 or CLASS3 > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- It doesn't work because you are trying to access a _class_ as if it were an _object_! For your class2 to access anything in the _Class1 object_ that is its owner it needs a reference to that object, not the class itself. As for your Connection example, what you are trying to do is code what is known as "business objects".? CLASS1 is the base object that interacts with the database. CLASS2 and CLASS3 are "business objects" that interact with the database via the base object. The simplest and cleanest way to do this is to make CLASS2 and CLASS3 children of the base class, i.e. they _inherit_ from it. Then they can use anything in the base class that it exposes. Try and follow the following. _Class1 (which I will call the "BaseBO"_ ' Gambas class file ''' This class is the parent of every Business Object class in the library.

''' It provides the common methods and infrastructure that allow the child classes to operate. Export Property Read _rowcount As Integer??????????????????????????? '' Returns the number of records in the current cursor (_$result). Property Read _index As Integer?????????????????????????????? '' Returns the index of the current row in the cursor. Public _$boname As String???????????????????????????????????? '' R/W! The name of the BO class Public _$data As Collection?????????????????????????????????? '' R/W! The collection contains all the BOData items for the current object NOTE this is the proper way to provide a Collection, Gambas provides all the stuff you need. No need to write your own handlers. Public _$result As Result???????????????????????????????????? '' R/W! This should be invisible to the BO classes but they need it. Public _$MetaConn As Connection = Connections["Meta"] Public _$MainConn As Connection = Connections["Main"] ... thereafter follows about 1200 lines of code to support the child objects, handle security etc. Probably the interesting one is '' Returns the Value of the *pn* property where pn is the Property name. Public Function _get(pn As String) As Variant ? Dim an As String ? Try an = $meta.Properties[pn].ColumnName ??? ??? ??? ??? ??? ' Don't worry about this, it maps the Property name to a database column ? If Error Then Return Null ? Return _$data[an].Value End _ _ _ _ _Class2 (here "Seasons")_ ' Gambas class file Export *Inherits BaseBO* Property Month As Integer?? 'month Property Season As String??? 'season Public Function Load(mth As Integer) As Boolean *Me._$result* = *Me._$MainConn.Find*("seasons", "month = &1", mth) ? If *Me._$result.Available* Then *Me.Unmarshall()* ? Endif ? Return *Me._rowcount* End Private Function Month_Read() As Integer ? Return *Me!Month* End Private Sub Month_Write(Value As Integer) *Me!Month* = Value End Private Function Season_Read() As String ? Return *Me!Season* End Private Sub Season_Write(Value As String) *Me!Season* = Value End I have made bold all the places in the Seasons class where it is referring to the parent class methods and data. __ -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas at servinfo.it Mon Apr 17 09:48:17 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Mon, 17 Apr 2023 09:48:17 +0200 Subject: [Gambas-user] Usage of session on web.gui Message-ID: Hi all , I have a web.gui app that have a login screen. I have a main form called login that ask for user and password , then if they are correct I do: ?WebForm.Current = MAIN ?LOGIN.Reload() (MAIN is the real app form that load if you insert right user and password) Everything works but after some time it refresh to login window ( LOGIN FORM ). That can be correct but I want to manage timeout's by users names so I search and found session api. On the login form after authentication I do: ? Session["username"] = "admin" ? Session.Timeout = 36000 ? Session.Save() And when a user click on a logoff button I do: ? Session.Abandon() ? Session.Save() ? WebForm.Current = LOGIN ? MAIN.Reload() All work's as expected but timeout is always the same , ignoring what I put on session.timeout. Anyone know what I do wrong ? Thanks in advance, Marco. From benoit.minisini at gambas-basic.org Mon Apr 17 13:12:29 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 17 Apr 2023 13:12:29 +0200 Subject: [Gambas-user] Usage of session on web.gui In-Reply-To: References: Message-ID: <5bcfc9b0-7a46-fb37-6389-1d32402eecee@gambas-basic.org> Le 17/04/2023 ? 09:48, Marco Ancillotti a ?crit?: > Hi all , > > I have a web.gui app that have a login screen. > > I have a main form called login that ask for user and password , then if > they are correct I do: > > ?WebForm.Current = MAIN > ?LOGIN.Reload() > > (MAIN is the real app form that load if you insert right user and password) > > Everything works but after some time it refresh to login window ( LOGIN > FORM ). > That can be correct but I want to manage timeout's by users names so I > search and found session api. > > On the login form after authentication I do: > > ? Session["username"] = "admin" > ? Session.Timeout = 36000 > ? Session.Save() > > And when a user click on a logoff button I do: > > ? Session.Abandon() > ? Session.Save() > ? WebForm.Current = LOGIN > ? MAIN.Reload() > > All work's as expected but timeout is always the same , ignoring what I > put on session.timeout. > > Anyone know what I do wrong ? > > Thanks in advance, > Marco. > You must define the value of Session.Timeout earlier, before the session is actually created. For example in the "_init" method of your first form (the login form). I will see if 'gb.web.gui' can take changes of this property into account, once the session has been created. Regards, -- Beno?t Minisini. From sharon at 455.co.il Mon Apr 17 17:20:30 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 17 Apr 2023 18:20:30 +0300 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) Message-ID: <20230417151047.M17244@455.co.il> Hello I am trying to create a class within a class that the second class inherits from the first class when i run The GAMBAS IDE comes out with an error OUT OF BOUNDS (#22) Is it my mistake? Attached is the code I tried to run Thank you -------------- next part -------------- A non-text attachment was scrubbed... Name: class_06.zip Type: application/zip Size: 16467 bytes Desc: not available URL: From bsteers4 at gmail.com Tue Apr 18 01:31:18 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 Apr 2023 00:31:18 +0100 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <20230417151047.M17244@455.co.il> References: <20230417151047.M17244@455.co.il> Message-ID: On Mon, 17 Apr 2023 at 15:45, Mayost Sharon wrote: > Hello > > I am trying to create a class within a class that the second class > inherits from the first class > > when i run > The GAMBAS IDE comes out > with an error > OUT OF BOUNDS (#22) > > Is it my mistake? > Yep your inherited class makes a New object of itself recursively because of the inheritance. Class2 inherits class1 and class1 has Private $prop2 As New Class2 and Class2 inherits class1 and class1 has Private $prop2 As New Class2 and Class2 inherits class1 and class1 has Private $prop2 As New Class2 See where that's going. > Attached is the code I tried to run What exactly are you trying to do? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Apr 18 06:45:38 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 18 Apr 2023 00:45:38 -0400 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <20230417151047.M17244@455.co.il> References: <20230417151047.M17244@455.co.il> Message-ID: <680077c7-2b69-7217-a403-851100326fc7@gmail.com> On 4/17/23 11:20, Mayost Sharon wrote: > Hello > > I am trying to create a class within a class that the second class inherits from the first class > > when i run > The GAMBAS IDE comes out > with an error > OUT OF BOUNDS (#22) > > Is it my mistake? > > Attached is the code I tried to run > > Thank you I took your code as a starting point and changed it significantly. It is now an example of having a custom class inheriting from another custom class that works but does, basically, nothing useful. Attached. -- Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: class_06a-0.0.1.tar.gz Type: application/gzip Size: 12621 bytes Desc: not available URL: From sharon at 455.co.il Tue Apr 18 08:22:30 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 18 Apr 2023 09:22:30 +0300 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: References: <20230417151047.M17244@455.co.il> Message-ID: <20230418062218.M9671@455.co.il> ---------- Original Message ----------- From: Bruce Steers To: Gambas Mailing List Sent: Tue, 18 Apr 2023 00:31:18 +0100 Subject: Re: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) > On Mon, 17 Apr 2023 at 15:45, Mayost Sharon wrote: > > > Hello > > > > I am trying to create a class within a class that the second class > > inherits from the first class > > > > when i run > > The GAMBAS IDE comes out > > with an error > > OUT OF BOUNDS (#22) > > > > Is it my mistake? > > > > Yep > your inherited class makes a New object of itself recursively because of > the inheritance. > Class2 inherits class1 > and class1 has > Private $prop2 As New Class2 > and Class2 inherits class1 > and class1 has > Private $prop2 As New Class2 > and Class2 inherits class1 > and class1 has > Private $prop2 As New Class2 > See where that's going. > > > Attached is the code I tried to run > > What exactly are you trying to do? > > Thank you ------- End of Original Message ------- Thanks I'm just trying to learn what can be done with classes I wanted to get to class1.class2.test() And through class2 I want to change a variable that is in class1 So in this discussion: https://lists.gambas-basic.org/pipermail/user/2023-April/079119.html They said there are two possibilities: 1. Make the variable found in class1 with a static declaration But the problem is that when I register class1. It will also show me this variable that I don't want it to be public 2. Make class2 inherit from class1 and then I can access from class2 to class1 And when I try it gives the error of: OUT OF BOUNDS From adamnt42 at gmail.com Tue Apr 18 08:34:19 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 18 Apr 2023 16:04:19 +0930 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <20230418062218.M9671@455.co.il> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> Message-ID: <177a28b8-6349-e2a1-35ca-494c061e224a@gmail.com> On 18/4/23 3:52 pm, Mayost Sharon wrote: > 8< > 2. Make class2 inherit from class1 and then I can access from class2 to class1 > And when I try it gives the error of: OUT OF BOUNDS > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- As BruceS says, you are trying to create circular dependencies, not good. You may benefit by thinking about your classes in terms of "real world" things which may make things clearer. Try the attached (if you cant extract it see https://gambaswiki.org/wiki/howto/opengmailtxt) -------------- next part -------------- H4sIAAAAAAAAA+xaCzyUWf9/BkmTJCRdlofKUExzcyvjljCRe26J5vLEMOZhZqQpmdFld1NuyaYk baKLomwXuiyVKCoipXY3IilWrcGGxbzPDGrrff/b7v+z9Nn39f3weT7Oc85zfr/zO9/v+Z3jUNnM MCqLuwQYQ+AQmBgZSZ54EyPc75+jAPAkEt6ERCQZGZEAHB5HIBkBoNFYGjWKSC6PygFBgEb743qf ev8PBXUk/tggahiNOjbz4K/En4DDI/HHG5EIE/EfD7yLP4vKDhojFfgL8ccZE40l8SeQ8BPxHw+8 i384Bw6B6Lyx6EMSYGMS6f+MP94Y/5H+403wCP9xY2HMx/gfj/980F4q/KDrcPxBOyYLAolYHNqT yWNBZFsoDAaZ7GCIw+RR2XQIpLIZIAdaD3EgNp3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fTB4Zl6riUaC+BNYuHF+qk1f2a046zR6HZgnEpY3i6N82FR BBQor3y6tNuzlEN3fGym9D6jJXvdQWzCpGgP+uFXg8snCCLlNOhor3aXTjMADs5pXyk/NgnwXgjL Tc13u8KbFD/CANNHIPp1+HnsecjXa/CqxlsZYVTFjQAZOxjWvIZk6ajyVq4ORdLPaSQCx8d8ERho eXsizf9znCfW9p9zv/8c3yFMuWOpjpshGIRpmm8DELYRmwVE1IrdZjl+9l8HnP+frqey+BKPqJEz Sckcakuix9eSb2gZXCvRsIv4b7sXfYITnOAEJzjBCU5wghOc4AQnOMEJTnCCE5zgBCc4wf9k/C+l ZRkxAHgAAA== From denisc at exemail.com.au Tue Apr 18 08:22:42 2023 From: denisc at exemail.com.au (Denis Crowther) Date: Tue, 18 Apr 2023 16:22:42 +1000 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <20230418062218.M9671@455.co.il> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> Message-ID: <423b3cab-d288-cafb-3221-24f6e4ee5612@exemail.com.au> On 4/18/23 16:22, Mayost Sharon wrote: > > 2. Make class2 inherit from class1 and then I can access from class2 to class1 > And when I try it gives the error of: OUT OF BOUNDS > If you inherit then there is no "class1", the variable that you wanted in class1 is in the class2. -- Regards Denis From sharon at 455.co.il Tue Apr 18 09:43:48 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 18 Apr 2023 10:43:48 +0300 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <423b3cab-d288-cafb-3221-24f6e4ee5612@exemail.com.au> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> <423b3cab-d288-cafb-3221-24f6e4ee5612@exemail.com.au> Message-ID: <20230418074148.M17216@455.co.il> ---------- Original Message ----------- From: Denis Crowther To: user at lists.gambas-basic.org Sent: Tue, 18 Apr 2023 16:22:42 +1000 Subject: Re: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) > On 4/18/23 16:22, Mayost Sharon wrote: > > > > > 2. Make class2 inherit from class1 and then I can access from class2 to class1 > > And when I try it gives the error of: OUT OF BOUNDS > > > > If you inherit then there is no "class1", the variable that you wanted > in class1 is in the class2. > > -- > Regards > Denis > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Thanks OK According to this, the possibility of inheritance will not suit what I want? From adamnt42 at gmail.com Tue Apr 18 09:04:36 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 18 Apr 2023 16:34:36 +0930 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <20230418074148.M17216@455.co.il> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> <423b3cab-d288-cafb-3221-24f6e4ee5612@exemail.com.au> <20230418074148.M17216@455.co.il> Message-ID: <29f91d0d-91cd-2f3f-881d-1e3caea36bab@gmail.com> On 18/4/23 5:13 pm, Mayost Sharon wrote: > 8< > According to this, the possibility of inheritance will not suit what I want? > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Read this https://gambaswiki.org/wiki/doc/object-model until your eyes bleed. From sharon at 455.co.il Tue Apr 18 09:38:31 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 18 Apr 2023 10:38:31 +0300 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <177a28b8-6349-e2a1-35ca-494c061e224a@gmail.com> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> <177a28b8-6349-e2a1-35ca-494c061e224a@gmail.com> Message-ID: <20230418075530.M18475@455.co.il> ---------- Original Message ----------- From: BB To: user at lists.gambas-basic.org Sent: Tue, 18 Apr 2023 16:04:19 +0930 Subject: Re: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) > On 18/4/23 3:52 pm, Mayost Sharon wrote: > > 8< > > 2. Make class2 inherit from class1 and then I can access from class2 to class1 > > And when I try it gives the error of: OUT OF BOUNDS > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > As BruceS says, you are trying to create circular dependencies, not > good. You may benefit by thinking about your classes in terms of "real > world" things which may make things clearer. > > Try the attached (if you cant extract it see > https://gambaswiki.org/wiki/howto/opengmailtxt) ------- End of Original Message ------- Thank you I learned another new thing from your example, thanks But I want to reach something like this: pet.cat.name pet.Dog.name And through a Cat class want to change a variable that is in ANIMAL I will try to make a more logical sample code from TIMER so that they know what I want From gambas at servinfo.it Tue Apr 18 09:51:25 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Tue, 18 Apr 2023 09:51:25 +0200 Subject: [Gambas-user] Usage of session on web.gui In-Reply-To: <5bcfc9b0-7a46-fb37-6389-1d32402eecee@gambas-basic.org> References: <5bcfc9b0-7a46-fb37-6389-1d32402eecee@gambas-basic.org> Message-ID: <8b962eac-c09b-eb56-dc4d-d7fcdfca0a79@servinfo.it> Ok , putting session.timeout on _init set global timeout. Il 17/04/23 13:12, Benoit Minisini ha scritto: > Le 17/04/2023 ? 09:48, Marco Ancillotti a ?crit?: >> Hi all , >> >> I have a web.gui app that have a login screen. >> >> I have a main form called login that ask for user and password , then >> if they are correct I do: >> >> ??WebForm.Current = MAIN >> ??LOGIN.Reload() >> >> (MAIN is the real app form that load if you insert right user and >> password) >> >> Everything works but after some time it refresh to login window ( >> LOGIN FORM ). >> That can be correct but I want to manage timeout's by users names so >> I search and found session api. >> >> On the login form after authentication I do: >> >> ?? Session["username"] = "admin" >> ?? Session.Timeout = 36000 >> ?? Session.Save() >> >> And when a user click on a logoff button I do: >> >> ?? Session.Abandon() >> ?? Session.Save() >> ?? WebForm.Current = LOGIN >> ?? MAIN.Reload() >> >> All work's as expected but timeout is always the same , ignoring what >> I put on session.timeout. >> >> Anyone know what I do wrong ? >> >> Thanks in advance, >> Marco. >> > > You must define the value of Session.Timeout earlier, before the > session is actually created. For example in the "_init" method of your > first form (the login form). > > I will see if 'gb.web.gui' can take changes of this property into > account, once the session has been created. > > Regards, > From adamnt42 at gmail.com Tue Apr 18 09:59:13 2023 From: adamnt42 at gmail.com (BB) Date: Tue, 18 Apr 2023 17:29:13 +0930 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <20230418075530.M18475@455.co.il> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> <177a28b8-6349-e2a1-35ca-494c061e224a@gmail.com> <20230418075530.M18475@455.co.il> Message-ID: <98e84301-63cc-3732-7f88-df4a414f7444@gmail.com> Inine! On 18/4/23 5:08 pm, Mayost Sharon wrote: > ---------- Original Message ----------- > From: BB > To: user at lists.gambas-basic.org > Sent: Tue, 18 Apr 2023 16:04:19 +0930 > Subject: Re: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) > > > Thank you > I learned another new thing from your example, thanks > > But I want to reach something like this: > pet.cat.name > pet.Dog.name A class is a blueprint for an object. "Pet" is an object built say, from the Dog class. You can't reference a Cat from a Dog. "Pet".name here is "Fido" you reference Pet.Name, not Pet.Dog.Name! Try thinking like this. A blueprint for YourHouse is used by a builder to construct your house. If you want to go to the kitchen you go to YourHouse.Kitchen not YourHouse.blueprint.Kitchen - if you try that you will be standing on a piece of paper. Get the drift? > And through a Cat class want to change a variable that is in ANIMAL When the Pet object is the cat,? the Main routine sets properties in the Animal class e.g. Pet.Name="Tiddles". There is no need to access Pet.animal.Name because Pet(Cat) _is_ an animal! However, if you want to set an animal property inside a cat object then it can be done by using the Me construct. Again read https://gambaswiki.org/wiki/doc/object-model this until your eyes bleed, especially 3.1 > > I will try to make a more logical sample code from TIMER so that they know what I want > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Tue Apr 18 12:40:10 2023 From: kicking177 at gmail.com (KKing) Date: Tue, 18 Apr 2023 11:40:10 +0100 Subject: [Gambas-user] gb.chart pre-reqs? Message-ID: <5f2d26e5-1b1b-a5f9-85f0-040e2725829e@gmail.com> I'm using Gambas from the Debian 11 Bullseye repository which is at version 3.15.2 The "gambas3-gb-chart" package is present and installed, but if I start a new gambas project and go to Project properties gb.chart is greyed out? I've tried standard "Graphical Application", GTK and QT it's always greyed out? Is some other package/component need to be installed or selected before gb.chart becomes available? K. From gradobag at gradobag.it Tue Apr 18 15:34:06 2023 From: gradobag at gradobag.it (Gianluigi) Date: Tue, 18 Apr 2023 15:34:06 +0200 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: <5f2d26e5-1b1b-a5f9-85f0-040e2725829e@gmail.com> References: <5f2d26e5-1b1b-a5f9-85f0-040e2725829e@gmail.com> Message-ID: Il 18/04/23 12:40, KKing ha scritto: > I'm using Gambas from the Debian 11 Bullseye repository which is at > version 3.15.2 > > The "gambas3-gb-chart" package is present and installed, but if I > start a new gambas project and go to Project properties gb.chart is > greyed out? > > I've tried standard "Graphical Application", GTK and QT it's always > greyed out? > > Is some other package/component need to be installed or selected > before gb.chart becomes available? > > K. Hi, you might try the latest stable version of the component found at this address: https://gitlab.com/gambas/gambas/-/tree/stable/comp/src/gb.chart download the component as a compressed file by clicking on an extension under Download this directory if instead you do it from Download source code you download all the source code of Gambas3 stable latest version. Once you have downloaded the component you unzip it in the traditional way (it is too complex to be unzipped directly from the IDE). Open the Gambas IDE and navigate to the folder where you saved gambas-stable-comp-src-gb.chart > comp > src > gb.chart and Open it. Now all you have to do is run FTest as usual, if it works it means that the version of Gambas3 found on Debian 11 by default is buggy. Regards Gianluigi From bsteers4 at gmail.com Tue Apr 18 16:19:40 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 Apr 2023 15:19:40 +0100 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: <5f2d26e5-1b1b-a5f9-85f0-040e2725829e@gmail.com> References: <5f2d26e5-1b1b-a5f9-85f0-040e2725829e@gmail.com> Message-ID: On Tue, 18 Apr 2023 at 11:41, KKing wrote: > I'm using Gambas from the Debian 11 Bullseye repository which is at > version 3.15.2 > > The "gambas3-gb-chart" package is present and installed, but if I start > a new gambas project and go to Project properties gb.chart is greyed out? > > I've tried standard "Graphical Application", GTK and QT it's always > greyed out? > > Is some other package/component need to be installed or selected before > gb.chart becomes available? > No , a greyed out item just means it it not at the stable (finished) state, it is unfinished but working. You can still select and use it okay. BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Apr 18 17:16:54 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 18 Apr 2023 11:16:54 -0400 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <680077c7-2b69-7217-a403-851100326fc7@gmail.com> References: <20230417151047.M17244@455.co.il> <680077c7-2b69-7217-a403-851100326fc7@gmail.com> Message-ID: <88c35cb8-d815-69ab-0b23-668be6de095c@gmail.com> On 4/18/23 00:45, T Lee Davidson wrote: > On 4/17/23 11:20, Mayost Sharon wrote: >> Hello >> >> I am trying to create a class within a class that the second class inherits from the first class >> >> when i run >> The GAMBAS IDE comes out >> with an error >> OUT OF BOUNDS (#22) >> >> Is it my mistake? >> >> Attached is the code I tried to run >> >> Thank you > > I took your code as a starting point and changed it significantly. It is now an example of having a custom class inheriting from > another custom class that works but does, basically, nothing useful. Attached. Did this, my previous message, make it to the list, or did it bounce due to the attachment? -- Lee From bsteers4 at gmail.com Tue Apr 18 17:26:03 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Tue, 18 Apr 2023 16:26:03 +0100 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <88c35cb8-d815-69ab-0b23-668be6de095c@gmail.com> References: <20230417151047.M17244@455.co.il> <680077c7-2b69-7217-a403-851100326fc7@gmail.com> <88c35cb8-d815-69ab-0b23-668be6de095c@gmail.com> Message-ID: On Tue, 18 Apr 2023 at 16:17, T Lee Davidson wrote: > On 4/18/23 00:45, T Lee Davidson wrote: > > On 4/17/23 11:20, Mayost Sharon wrote: > >> Hello > >> > >> I am trying to create a class within a class that the second class > inherits from the first class > >> > >> when i run > >> The GAMBAS IDE comes out > >> with an error > >> OUT OF BOUNDS (#22) > >> > >> Is it my mistake? > >> > >> Attached is the code I tried to run > >> > >> Thank you > > > > I took your code as a starting point and changed it significantly. It is > now an example of having a custom class inheriting from > > another custom class that works but does, basically, nothing useful. > Attached. > > Did this, my previous message, make it to the list, or did it bounce due > to the attachment? > yes it attached okay. class06a-0.0.1.tar.gz BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Tue Apr 18 17:27:15 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 18 Apr 2023 11:27:15 -0400 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <20230418062218.M9671@455.co.il> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> Message-ID: <0924f2fc-a5fe-a7e5-98da-142d4d80ad70@gmail.com> On 4/18/23 02:22, Mayost Sharon wrote: > They said there are two possibilities: > 1. Make the variable found in class1 with a static declaration > But the problem is that when I register class1. It will also show me this variable that I don't want it to be public > > 2. Make class2 inherit from class1 and then I can access from class2 to class1 > And when I try it gives the error of: OUT OF BOUNDS There is another option: Do /not/ make class2 inherit from class1. In your class_06 project, comment out "Inherits Class1" in class2, and you will see that it runs with no error. -- Lee From t.lee.davidson at gmail.com Tue Apr 18 17:39:40 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 18 Apr 2023 11:39:40 -0400 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <177a28b8-6349-e2a1-35ca-494c061e224a@gmail.com> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> <177a28b8-6349-e2a1-35ca-494c061e224a@gmail.com> Message-ID: <1731304b-ca77-3a3d-7143-f003cb166f6b@gmail.com> On 4/18/23 02:34, BB wrote: > As BruceS says, you are trying to create circular dependencies, not good. You may benefit by thinking about your classes in > terms of "real world"?things?which?may?make?things?clearer. > > Try the attached (if you cant extract it see https://gambaswiki.org/wiki/howto/opengmailtxt) That is a very good example, Bruce. But, I have a question. Exactly what kind of fish do you have down there?? -- Lee From adamnt42 at gmail.com Tue Apr 18 19:49:01 2023 From: adamnt42 at gmail.com (BB) Date: Wed, 19 Apr 2023 03:19:01 +0930 Subject: [Gambas-user] CLASS inherits from CLASS causes OUT OF BOUNDS (#22) In-Reply-To: <1731304b-ca77-3a3d-7143-f003cb166f6b@gmail.com> References: <20230417151047.M17244@455.co.il> <20230418062218.M9671@455.co.il> <177a28b8-6349-e2a1-35ca-494c061e224a@gmail.com> <1731304b-ca77-3a3d-7143-f003cb166f6b@gmail.com> Message-ID: On 19/4/23 1:09 am, T Lee Davidson wrote: > On 4/18/23 02:34, BB wrote: >> As BruceS says, you are trying to create circular dependencies, not >> good. You may benefit by thinking about your classes in terms of >> "real world"?things?which?may?make?things?clearer. >> >> Try the attached (if you cant extract it see >> https://gambaswiki.org/wiki/howto/opengmailtxt) > > That is a very good example, Bruce. But, I have a question. > > Exactly what kind of fish do you have down there?? > > ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: nledlehilenihenk.png Type: image/png Size: 133236 bytes Desc: not available URL: From mbelmonte at belmotek.net Tue Apr 18 23:17:41 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Tue, 18 Apr 2023 23:17:41 +0200 Subject: [Gambas-user] If x <> +Inf Then [Error] Message-ID: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> Hi, There maybe are an error in the evaluation of expression: If x <> +Inf Then ... To reproduce the error you can use this code (it occurs in 3.18.2 & 3.18.90 but not in 3.18.0) Public Sub Form_Open() ? Dim i As Integer ? 'Dim inFinito As Integer = (2 ^ 31) - 1 ? Dim inFinito As Integer = +Inf ? Dim a As New Integer[] ? For i = 0 To 9 ??? a.Add(Rand(0, inFinito)) ? Next ? For i = 0 To 9 ??? 'If a[i] <> +Inf Then ' it doesn't works ??? If a[i] <> inFinito Then ' it works ????? Print "Continua jugando" ??? Else ????? Print "Fin del juego" ??? Endif ? Next End Best regards Martin. From jussi.lahtinen at gmail.com Wed Apr 19 00:43:18 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 19 Apr 2023 01:43:18 +0300 Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> Message-ID: I can confirm. The error is "THEN expected". IE the code is not parsed properly. Jussi On Wed, Apr 19, 2023 at 12:48?AM Mart?n wrote: > Hi, > > There maybe are an error in the evaluation of expression: > > If x <> +Inf Then ... > > To reproduce the error you can use this code (it occurs in 3.18.2 & > 3.18.90 but not in 3.18.0) > > Public Sub Form_Open() > > Dim i As Integer > 'Dim inFinito As Integer = (2 ^ 31) - 1 > Dim inFinito As Integer = +Inf > Dim a As New Integer[] > > For i = 0 To 9 > a.Add(Rand(0, inFinito)) > Next > > For i = 0 To 9 > 'If a[i] <> +Inf Then ' it doesn't works > If a[i] <> inFinito Then ' it works > > Print "Continua jugando" > Else > Print "Fin del juego" > Endif > Next > > End > > > Best regards > > Martin. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Apr 19 01:04:17 2023 From: adamnt42 at gmail.com (BB) Date: Wed, 19 Apr 2023 08:34:17 +0930 Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> Message-ID: <677c7eb1-8509-b6ed-118c-a25608eef11c@gmail.com> I think, from memory you need to use If (x <> +Inf) then bruce On 19/4/23 8:13 am, Jussi Lahtinen wrote: > I can confirm. The error is "THEN expected". IE the code is not parsed > properly. > > Jussi > > > On Wed, Apr 19, 2023 at 12:48?AM Mart?n > wrote: > > Hi, > > There maybe are an error in the evaluation of expression: > > If x <> +Inf Then ... > > To reproduce the error you can use this code (it occurs in 3.18.2 & > 3.18.90 but not in 3.18.0) > > Public Sub Form_Open() > > ?? Dim i As Integer > ?? 'Dim inFinito As Integer = (2 ^ 31) - 1 > ?? Dim inFinito As Integer = +Inf > ?? Dim a As New Integer[] > > ?? For i = 0 To 9 > ???? a.Add(Rand(0, inFinito)) > ?? Next > > ?? For i = 0 To 9 > ???? 'If a[i] <> +Inf Then ' it doesn't works > ???? If a[i] <> inFinito Then ' it works > > ?????? Print "Continua jugando" > ???? Else > ?????? Print "Fin del juego" > ???? Endif > ?? Next > > End > > > Best regards > > Martin. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette > ]---- > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed Apr 19 01:28:17 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 19 Apr 2023 02:28:17 +0300 Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: <677c7eb1-8509-b6ed-118c-a25608eef11c@gmail.com> References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> <677c7eb1-8509-b6ed-118c-a25608eef11c@gmail.com> Message-ID: Yes, that works, but it is still inconsistency. Jussi On Wed, Apr 19, 2023 at 2:05?AM BB wrote: > I think, from memory you need to use > > If (x <> +Inf) then > > bruce > On 19/4/23 8:13 am, Jussi Lahtinen wrote: > > I can confirm. The error is "THEN expected". IE the code is not parsed > properly. > > Jussi > > > On Wed, Apr 19, 2023 at 12:48?AM Mart?n wrote: > >> Hi, >> >> There maybe are an error in the evaluation of expression: >> >> If x <> +Inf Then ... >> >> To reproduce the error you can use this code (it occurs in 3.18.2 & >> 3.18.90 but not in 3.18.0) >> >> Public Sub Form_Open() >> >> Dim i As Integer >> 'Dim inFinito As Integer = (2 ^ 31) - 1 >> Dim inFinito As Integer = +Inf >> Dim a As New Integer[] >> >> For i = 0 To 9 >> a.Add(Rand(0, inFinito)) >> Next >> >> For i = 0 To 9 >> 'If a[i] <> +Inf Then ' it doesn't works >> If a[i] <> inFinito Then ' it works >> >> Print "Continua jugando" >> Else >> Print "Fin del juego" >> Endif >> Next >> >> End >> >> >> Best regards >> >> Martin. >> >> >> ----[ 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 adamnt42 at gmail.com Wed Apr 19 01:52:46 2023 From: adamnt42 at gmail.com (BB) Date: Wed, 19 Apr 2023 09:22:46 +0930 Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> <677c7eb1-8509-b6ed-118c-a25608eef11c@gmail.com> Message-ID: I can't disagree with you there but there are other constructs where you need to "force" the evaluation before the test, not just this case. I am away from my machine so I cant give a confirmed example, could be something like: ??? If hObjectA.StringVar And hObjectB.StringVar Then needs to be parenthesized ??? If (hObjectA.StringVar And hObjectB.StringVar) Then otherwise it evaluates the string lengths before the test, i.e. it "sees" the first as ??? If (Len(hObjectA.StringVar)>0) And (Len(hObjectB.StringVar)>0) Then ??? i.e. If ((1) And (1)) or something like that anyway. What I'm trying to say is that +/-Inf isn't the single root cause of the error, other things can do it too and sometimes it is hard to think the same way as the lexer and force the evaluation. bruce On 19/4/23 8:58 am, Jussi Lahtinen wrote: > Yes, that works, but it is still inconsistency. > > Jussi > > On Wed, Apr 19, 2023 at 2:05?AM BB > wrote: > > I think, from memory you need to use > > If (x <> +Inf) then > > bruce > > On 19/4/23 8:13 am, Jussi Lahtinen wrote: >> I can confirm. The error is "THEN expected". IE the code is not >> parsed properly. >> >> Jussi >> >> >> On Wed, Apr 19, 2023 at 12:48?AM Mart?n > > wrote: >> >> Hi, >> >> There maybe are an error in the evaluation of expression: >> >> If x <> +Inf Then ... >> >> To reproduce the error you can use this code (it occurs in >> 3.18.2 & >> 3.18.90 but not in 3.18.0) >> >> Public Sub Form_Open() >> >> ?? Dim i As Integer >> ?? 'Dim inFinito As Integer = (2 ^ 31) - 1 >> ?? Dim inFinito As Integer = +Inf >> ?? Dim a As New Integer[] >> >> ?? For i = 0 To 9 >> ???? a.Add(Rand(0, inFinito)) >> ?? Next >> >> ?? For i = 0 To 9 >> ???? 'If a[i] <> +Inf Then ' it doesn't works >> ???? If a[i] <> inFinito Then ' it works >> >> ?????? Print "Continua jugando" >> ???? Else >> ?????? Print "Fin del juego" >> ???? Endif >> ?? Next >> >> End >> >> >> Best regards >> >> Martin. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette >> ]---- >> >> >> ----[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 jussi.lahtinen at gmail.com Wed Apr 19 02:49:06 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 19 Apr 2023 03:49:06 +0300 Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> <677c7eb1-8509-b6ed-118c-a25608eef11c@gmail.com> Message-ID: > > I am away from my machine so I cant give a confirmed example, could be > something like: > > If hObjectA.StringVar And hObjectB.StringVar Then > > needs to be parenthesized > > If (hObjectA.StringVar And hObjectB.StringVar) Then > > otherwise it evaluates the string lengths before the test, i.e. it "sees" > the first as > > If (Len(hObjectA.StringVar)>0) And (Len(hObjectB.StringVar)>0) Then > i.e. If ((1) And (1)) > > or something like that anyway. > Here in both cases string lengths are tested to be non-zero. The condition is true, if both of the strings are not null. But parentheses can make a difference when mixing bitwise operations, example these two are logically different: If x = (y And z) Then If x = y And z Then > What I'm trying to say is that +/-Inf isn't the single root cause of the > error, other things can do it too and sometimes it is hard to think the > same way as the lexer and force the evaluation.' > The root cause is in the parser as the code cannot be compiled (it raises false error). It's not about ambiguity. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Wed Apr 19 03:24:21 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 19 Apr 2023 03:24:21 +0200 Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> Message-ID: <22491cbb-e18c-60f0-33fb-8c2573a25980@gambas-basic.org> Le 18/04/2023 ? 23:17, Mart?n a ?crit?: > Hi, > > There maybe are an error in the evaluation of expression: > > If x <> +Inf Then ... > > To reproduce the error you can use this code (it occurs in 3.18.2 & > 3.18.90 but not in 3.18.0) > > Public Sub Form_Open() > > ? Dim i As Integer > ? 'Dim inFinito As Integer = (2 ^ 31) - 1 > ? Dim inFinito As Integer = +Inf > ? Dim a As New Integer[] > > ? For i = 0 To 9 > ??? a.Add(Rand(0, inFinito)) > ? Next > > ? For i = 0 To 9 > ??? 'If a[i] <> +Inf Then ' it doesn't works > ??? If a[i] <> inFinito Then ' it works > > ????? Print "Continua jugando" > ??? Else > ????? Print "Fin del juego" > ??? Endif > ? Next > > End > > > Best regards > > Martin. > It should be fixed by last commit. Anyway, it makes no sense for me to compare an integer to '+Inf', which is a floating point constant that represents positive infinity. Regards, -- Beno?t Minisini. From jussi.lahtinen at gmail.com Wed Apr 19 03:31:24 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 19 Apr 2023 04:31:24 +0300 Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: <22491cbb-e18c-60f0-33fb-8c2573a25980@gambas-basic.org> References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> <22491cbb-e18c-60f0-33fb-8c2573a25980@gambas-basic.org> Message-ID: Yes, good point I completely forgot to address. I guess he meant something like "If x <> ((2 ^ 31) - 1) Then". Jussi On Wed, Apr 19, 2023 at 4:25?AM Benoit Minisini < benoit.minisini at gambas-basic.org> wrote: > Le 18/04/2023 ? 23:17, Mart?n a ?crit : > > Hi, > > > > There maybe are an error in the evaluation of expression: > > > > If x <> +Inf Then ... > > > > To reproduce the error you can use this code (it occurs in 3.18.2 & > > 3.18.90 but not in 3.18.0) > > > > Public Sub Form_Open() > > > > Dim i As Integer > > 'Dim inFinito As Integer = (2 ^ 31) - 1 > > Dim inFinito As Integer = +Inf > > Dim a As New Integer[] > > > > For i = 0 To 9 > > a.Add(Rand(0, inFinito)) > > Next > > > > For i = 0 To 9 > > 'If a[i] <> +Inf Then ' it doesn't works > > If a[i] <> inFinito Then ' it works > > > > Print "Continua jugando" > > Else > > Print "Fin del juego" > > Endif > > Next > > > > End > > > > > > Best regards > > > > Martin. > > > > It should be fixed by last commit. > > Anyway, it makes no sense for me to compare an integer to '+Inf', which > is a floating point constant that represents positive infinity. > > Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tutanota.com Wed Apr 19 12:47:04 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Wed, 19 Apr 2023 12:47:04 +0200 (CEST) Subject: [Gambas-user] If x <> +Inf Then [Error] In-Reply-To: <677c7eb1-8509-b6ed-118c-a25608eef11c@gmail.com> References: <88e5fb21-16be-1797-7f56-a0cae5febd9c@belmotek.net> <677c7eb1-8509-b6ed-118c-a25608eef11c@gmail.com> Message-ID: ...even so: ?? If a[i] <> (+Inf) Then 19 apr 2023, 01:05 da adamnt42 at gmail.com: > > I think, from memory you need to use > > > If (x <> +Inf) then > > > bruce > > On 19/4/23 8:13 am, Jussi Lahtinen wrote: > >> I can confirm. The error is "THEN expected". IE the code is not parsed properly. >> >> Jussi >> >> >> On Wed, Apr 19, 2023 at 12:48?AM Mart?n <>> mbelmonte at belmotek.net>> > wrote: >> >>> Hi, >>> >>> There maybe are an error in the evaluation of expression: >>> >>> If x <> +Inf Then ... >>> >>> To reproduce the error you can use this code (it occurs in 3.18.2 & >>> 3.18.90 but not in 3.18.0) >>> >>> Public Sub Form_Open() >>> >>> ?? Dim i As Integer >>> ?? 'Dim inFinito As Integer = (2 ^ 31) - 1 >>> ?? Dim inFinito As Integer = +Inf >>> ?? Dim a As New Integer[] >>> >>> ?? For i = 0 To 9 >>> ???? a.Add(Rand(0, inFinito)) >>> ?? Next >>> >>> ?? For i = 0 To 9 >>> ???? 'If a[i] <> +Inf Then ' it doesn't works >>> ???? If a[i] <> inFinito Then ' it works >>> >>> ?????? Print "Continua jugando" >>> ???? Else >>> ?????? Print "Fin del juego" >>> ???? Endif >>> ?? Next >>> >>> End >>> >>> >>> Best regards >>> >>> Martin. >>> >>> >>> ----[ >>> http://gambaswiki.org/wiki/doc/netiquette>>> ]---- >>> >> >> ----[ >> http://gambaswiki.org/wiki/doc/netiquette>> ]---- >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From gbWilly at protonmail.com Wed Apr 19 16:50:18 2023 From: gbWilly at protonmail.com (gbWilly) Date: Wed, 19 Apr 2023 14:50:18 +0000 Subject: [Gambas-user] Wiki Message-ID: Hi all, Did something change on the wiki page? Today I wanted to add some minor improvements to the installation guides for Debian/Raspian and Ubuntu. I manage to log in but when clicking the Edit button for the page I get logged out again! gbWilly Sent with [Proton Mail](https://proton.me/) secure email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Wed Apr 19 17:37:43 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 19 Apr 2023 17:37:43 +0200 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: Le 19/04/2023 ? 16:50, gbWilly via User a ?crit?: > Hi all, > > Did something change on the wiki page? > Today I wanted to add some minor improvements to the installation guides > for Debian/Raspian and Ubuntu. > > I manage to log in but when clicking the Edit button for the page I get > logged out again! > > gbWilly > I have just tried to login at the front page, and edit it. It worked as expected. On which page did you try to login? -- Beno?t Minisini. From gbWilly at protonmail.com Wed Apr 19 20:49:25 2023 From: gbWilly at protonmail.com (gbWilly) Date: Wed, 19 Apr 2023 18:49:25 +0000 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: > Le 19/04/2023 ? 16:50, gbWilly via User a ?crit : > > > Hi all, > > > > Did something change on the wiki page? > > Today I wanted to add some minor improvements to the installation guides > > for Debian/Raspian and Ubuntu. > > > > I manage to log in but when clicking the Edit button for the page I get > > logged out again! > > > > gbWilly > > > I have just tried to login at the front page, and edit it. It worked as > expected. > > On which page did you try to login? > > -- > Beno?t Minisini. > Hi Beno?t, I logged in on the 'Install and compilation -> Debian' page. I just tried again and as soon as I click Edit I'm logged out. User is gbWilly and I have done some of the instructions on the installation on Debian and Ubuntu in the past. Using Firefox as a webbrowser (in case that matters) gbWilly From t.lee.davidson at gmail.com Wed Apr 19 21:06:28 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 19 Apr 2023 15:06:28 -0400 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: On 4/19/23 14:49, gbWilly via User wrote: > Hi Beno?t, > > I logged in on the 'Install and compilation -> Debian' page. > > I just tried again and as soon as I click Edit I'm logged out. > User is gbWilly and I have done some of the instructions on the installation on Debian and Ubuntu in the past. > Using Firefox as a webbrowser (in case that matters) > > gbWilly I was able to enter edit mode on https://gambaswiki.org/wiki/install/debian without getting kicked out on both Chromium and Firefox. -- Lee From benoit.minisini at gambas-basic.org Wed Apr 19 21:33:25 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 19 Apr 2023 21:33:25 +0200 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: Le 19/04/2023 ? 20:49, gbWilly via User a ?crit?: >> Le 19/04/2023 ? 16:50, gbWilly via User a ?crit : >> >>> Hi all, >>> >>> Did something change on the wiki page? >>> Today I wanted to add some minor improvements to the installation guides >>> for Debian/Raspian and Ubuntu. >>> >>> I manage to log in but when clicking the Edit button for the page I get >>> logged out again! >>> >>> gbWilly >> >> >> I have just tried to login at the front page, and edit it. It worked as >> expected. >> >> On which page did you try to login? >> >> -- >> Beno?t Minisini. >> > Hi Beno?t, > > I logged in on the 'Install and compilation -> Debian' page. > > I just tried again and as soon as I click Edit I'm logged out. > User is gbWilly and I have done some of the instructions on the installation on Debian and Ubuntu in the past. > Using Firefox as a webbrowser (in case that matters) > > gbWilly > Do you have some error or strange messages in the Firefox console? -- Beno?t Minisini. From gbWilly at protonmail.com Wed Apr 19 22:14:22 2023 From: gbWilly at protonmail.com (gbWilly) Date: Wed, 19 Apr 2023 20:14:22 +0000 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: > Le 19/04/2023 ? 20:49, gbWilly via User a ?crit : > > > > Le 19/04/2023 ? 16:50, gbWilly via User a ?crit : > > > > > > > Hi all, > > > > > > > > Did something change on the wiki page? > > > > Today I wanted to add some minor improvements to the installation guides > > > > for Debian/Raspian and Ubuntu. > > > > > > > > I manage to log in but when clicking the Edit button for the page I get > > > > logged out again! > > > > > > > > gbWilly > > > > > > I have just tried to login at the front page, and edit it. It worked as > > > expected. > > > > > > On which page did you try to login? > > > > > > -- > > > Beno?t Minisini. > > > > Hi Beno?t, > > > > I logged in on the 'Install and compilation -> Debian' page. > > > > I just tried again and as soon as I click Edit I'm logged out. > > User is gbWilly and I have done some of the instructions on the installation on Debian and Ubuntu in the past. > > Using Firefox as a webbrowser (in case that matters) > > > > gbWilly > > > Do you have some error or strange messages in the Firefox console? > Hello, I clicked Lee's link and logged in. This time the edit did work and I was able to edit a few pages. Last time it didn't and there was no error, just being logged of again. I have no explanation as of what has happened there. gbWilly From gbWilly at protonmail.com Wed Apr 19 22:17:46 2023 From: gbWilly at protonmail.com (gbWilly) Date: Wed, 19 Apr 2023 20:17:46 +0000 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: > > Le 19/04/2023 ? 20:49, gbWilly via User a ?crit : > > > > > > Le 19/04/2023 ? 16:50, gbWilly via User a ?crit : > > > > > > > > > Hi all, > > > > > > > > > > Did something change on the wiki page? > > > > > Today I wanted to add some minor improvements to the installation guides > > > > > for Debian/Raspian and Ubuntu. > > > > > > > > > > I manage to log in but when clicking the Edit button for the page I get > > > > > logged out again! > > > > > > > > > > gbWilly > > > > > > > > I have just tried to login at the front page, and edit it. It worked as > > > > expected. > > > > > > > > On which page did you try to login? > > > > > > > > -- > > > > Beno?t Minisini. > > > > > > Hi Beno?t, > > > > > > I logged in on the 'Install and compilation -> Debian' page. > > > > > > I just tried again and as soon as I click Edit I'm logged out. > > > User is gbWilly and I have done some of the instructions on the installation on Debian and Ubuntu in the past. > > > Using Firefox as a webbrowser (in case that matters) > > > > > > gbWilly > > > > Do you have some error or strange messages in the Firefox console? > > Hello, > > I clicked Lee's link and logged in. > This time the edit did work and I was able to edit a few pages. > Last time it didn't and there was no error, just being logged of again. > I have no explanation as of what has happened there. > > gbWilly I now see that the edits I did and saved are no longer visible, as if they never happened. Something is off with the wiki here at my side. gbWilly From benoit.minisini at gambas-basic.org Wed Apr 19 22:47:35 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 19 Apr 2023 22:47:35 +0200 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: <4beddb17-4034-d5a4-4257-62b5ca5e00b3@gambas-basic.org> Le 19/04/2023 ? 22:17, gbWilly via User a ?crit : > > I now see that the edits I did and saved are no longer visible, as if > they never happened. Something is off with the wiki here at my side. > > gbWilly > No, that is normal. It's because of Cloudflare. In edit mode, Cloudflare is bypassed, and so you see your changes immediately. Cloudflare will refresh its cache 24 hours later. It allows you to fix an error before it is seen publicly. I will add a warning on the wiki about that. Regards, -- Beno?t Minisini. From bsteers4 at gmail.com Wed Apr 19 23:01:36 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 19 Apr 2023 22:01:36 +0100 Subject: [Gambas-user] Wiki In-Reply-To: <4beddb17-4034-d5a4-4257-62b5ca5e00b3@gambas-basic.org> References: <4beddb17-4034-d5a4-4257-62b5ca5e00b3@gambas-basic.org> Message-ID: On Wed, 19 Apr 2023, 21:48 Benoit Minisini, < benoit.minisini at gambas-basic.org> wrote: > Le 19/04/2023 ? 22:17, gbWilly via User a ?crit : > > > > I now see that the edits I did and saved are no longer visible, as if > > they never happened. Something is off with the wiki here at my side. > > > > gbWilly > > > > > No, that is normal. It's because of Cloudflare. > > In edit mode, Cloudflare is bypassed, and so you see your changes > immediately. > > Cloudflare will refresh its cache 24 hours later. > > It allows you to fix an error before it is seen publicly. > > I will add a warning on the wiki about that. > > Regards, > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > Not wanting to hijack here but could you look at the preview/cancel method? Ie. When making an edit usually I press preview and if I'm not happy with the format or want to further edit I press cancel like it instructs in the "this is a preview, press cancel to go back to edit" message. My Firefox now has issues with that. It gives the "need to resend data" dialog where it did not before. Many thanks BruceS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Wed Apr 19 23:09:45 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 19 Apr 2023 23:09:45 +0200 Subject: [Gambas-user] Wiki In-Reply-To: References: <4beddb17-4034-d5a4-4257-62b5ca5e00b3@gambas-basic.org> Message-ID: Le 19/04/2023 ? 23:01, Bruce Steers a ?crit?: > Not wanting to hijack here but could you look at the preview/cancel method? > > Ie. > When making an edit usually I press preview and if I'm not happy with > the format or want to further edit I press cancel like it instructs in > the "this is a preview, press cancel to go back to edit" message. > > My Firefox now has issues with that. > It gives the "need to resend data" dialog where it did not before. > > Many thanks > BruceS > I know, but I didn't find why it does that now, whereas it didn't before. -- Beno?t Minisini. From gbWilly at protonmail.com Wed Apr 19 23:25:43 2023 From: gbWilly at protonmail.com (gbWilly) Date: Wed, 19 Apr 2023 21:25:43 +0000 Subject: [Gambas-user] Wiki In-Reply-To: <4beddb17-4034-d5a4-4257-62b5ca5e00b3@gambas-basic.org> References: <4beddb17-4034-d5a4-4257-62b5ca5e00b3@gambas-basic.org> Message-ID: > Le 19/04/2023 ? 22:17, gbWilly via User a ?crit : > > > I now see that the edits I did and saved are no longer visible, as if > > they never happened. Something is off with the wiki here at my side. > > > > gbWilly > > > > No, that is normal. It's because of Cloudflare. > > In edit mode, Cloudflare is bypassed, and so you see your changes > immediately. > > Cloudflare will refresh its cache 24 hours later. > > It allows you to fix an error before it is seen publicly. > > I will add a warning on the wiki about that. > > Regards, > > -- > Beno?t Minisini. > Thanks for clarifying. gbWilly From kicking177 at gmail.com Thu Apr 20 09:58:53 2023 From: kicking177 at gmail.com (KKing) Date: Thu, 20 Apr 2023 08:58:53 +0100 Subject: [Gambas-user] gb.chart pre-reqs? Message-ID: re > No , a greyed out item just means it it not at the stable (finished) > state, it is unfinished but working. > > You can still select and use it okay. doh, too long in the grey means disabled world. more questions, trying to the example in https://gambaswiki.org/wiki/howto/makechart With std graphical application, GTK and QT, in all of them the Y axis legend is obscured, you only see a very small part of the right hand side of last digit And I cannot see an X legend. Is there some margin width type adjustment I need to make? Also only in the QT version does the "My Legend" box appear, it is to the right of chart, but it is not evident in Std graphic or GTK ? I also want to add further values so I added a button to test with ? Chart[0].Values.Add(2.0) ? DrawingArea1.Refresh But I don't see a change, something else needed? K. From gradobag at gradobag.it Thu Apr 20 10:26:16 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 20 Apr 2023 10:26:16 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: <402e7f6c-0caf-2074-7004-6851500f8988@gambas-basic.org> References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> <402e7f6c-0caf-2074-7004-6851500f8988@gambas-basic.org> Message-ID: <5d408fd2-8404-dce0-4353-f7952e2aeab5@gradobag.it> Il 13/04/23 10:34, Benoit Minisini ha scritto: > Le 13/04/2023 ? 10:02, Christof Thalhofer a ?crit?: >> Am 13.04.23 um 09:55 schrieb Benoit Minisini: >> >>> It should be ok now. The server crashed yesterday evening, it has been >>> restarted. >> >> Yes, it works, thank you! Isn't the server monitored? >> > > I thought so, apparently no! > once again inaccessible :-( Regards Gianluigi From gradobag at gradobag.it Thu Apr 20 10:37:38 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 20 Apr 2023 10:37:38 +0200 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: References: Message-ID: Il 20/04/23 09:58, KKing ha scritto: > re >> No , a greyed out item just means it it not at the stable (finished) >> state,? it is unfinished but working. >> >> You can still select and use it okay. > doh, too long in the grey means disabled world. > > > more questions, trying to the example in > https://gambaswiki.org/wiki/howto/makechart > > With std graphical application, GTK and QT, in all of them the Y axis > legend is obscured, you only see a very small part of the right hand > side of last digit > And I cannot see an X legend. > Is there some margin width type adjustment I need to make? > > Also only in the QT version does the "My Legend" box appear, it is to > the right of chart, but it is not evident in Std graphic or GTK ? > > I also want to add further values so I added a button to test with > ? Chart[0].Values.Add(2.0) > ? DrawingArea1.Refresh > But I don't see a change, something else needed? > > K. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Maybe if you also followed my suggestion, you would avoid this question :-) Regards Gianluigi From gradobag at gradobag.it Thu Apr 20 11:45:38 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 20 Apr 2023 11:45:38 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: <5d408fd2-8404-dce0-4353-f7952e2aeab5@gradobag.it> References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> <402e7f6c-0caf-2074-7004-6851500f8988@gambas-basic.org> <5d408fd2-8404-dce0-4353-f7952e2aeab5@gradobag.it> Message-ID: Il 20/04/23 10:26, Gianluigi ha scritto: > Il 13/04/23 10:34, Benoit Minisini ha scritto: >> Le 13/04/2023 ? 10:02, Christof Thalhofer a ?crit?: >>> Am 13.04.23 um 09:55 schrieb Benoit Minisini: >>> >>>> It should be ok now. The server crashed yesterday evening, it has been >>>> restarted. >>> >>> Yes, it works, thank you! Isn't the server monitored? >>> >> >> I thought so, apparently no! >> > once again inaccessible :-( > > Regards > > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Well, it has become accessible again, thank you Regards Gianluigi From benoit.minisini at gambas-basic.org Thu Apr 20 11:55:10 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 20 Apr 2023 11:55:10 +0200 Subject: [Gambas-user] Warning Wiki and Bugtracker are inaccessible In-Reply-To: References: <0766feb6-8bd2-5f27-95cc-981e8fbd9184@gradobag.it> <1d408058-e5ea-b34b-498c-d9c2e53e04cd@deganius.de> <402e7f6c-0caf-2074-7004-6851500f8988@gambas-basic.org> <5d408fd2-8404-dce0-4353-f7952e2aeab5@gradobag.it> Message-ID: <027b94f4-4258-c1d2-0036-9fadc4bdffec@gambas-basic.org> Le 20/04/2023 ? 11:45, Gianluigi a ?crit?: > Il 20/04/23 10:26, Gianluigi ha scritto: >> Il 13/04/23 10:34, Benoit Minisini ha scritto: >>> Le 13/04/2023 ? 10:02, Christof Thalhofer a ?crit?: >>>> Am 13.04.23 um 09:55 schrieb Benoit Minisini: >>>> >>>>> It should be ok now. The server crashed yesterday evening, it has been >>>>> restarted. >>>> >>>> Yes, it works, thank you! Isn't the server monitored? >>>> >>> >>> I thought so, apparently no! >>> >> once again inaccessible :-( >> >> Regards >> >> Gianluigi >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Well, it has become accessible again, thank you > > Regards > > Gianluigi > Yes. I have a crash, apparently during a web crawling on opengl pages. It's strange, because the server should not see these requests, because of Cloudflare. The oom killer is really the most stupid thing of Linux. -- Beno?t Minisini. From gambas at servinfo.it Thu Apr 20 15:02:40 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Thu, 20 Apr 2023 15:02:40 +0200 Subject: [Gambas-user] gambas daily for raspberry Message-ID: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> Hi all , is there a daily ppa for raspbian ? the stock gambas on unstable crash if I use tabstrip on a project , I've try the stock ppa:gambas-team/gambas-daily but it say: "no distribution template for Raspbian/bookworm". thank's in advance, Marco. From benoit.minisini at gambas-basic.org Thu Apr 20 15:24:55 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 20 Apr 2023 15:24:55 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> Message-ID: Le 20/04/2023 ? 15:02, Marco Ancillotti a ?crit?: > Hi all , > > is there a daily ppa for raspbian ? > > the stock gambas on unstable crash if I use tabstrip on a project , I've > try the stock ppa:gambas-team/gambas-daily but it > say: "no distribution template for Raspbian/bookworm". > > thank's in advance, > Marco. > PPA are for Ubuntu, and there are ARM packages depending on the Ubuntu version. I don't know if you can use them in Raspbian. Regards, -- Beno?t Minisini. From gradobag at gradobag.it Thu Apr 20 15:28:59 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 20 Apr 2023 15:28:59 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> Message-ID: Il 20/04/23 15:24, Benoit Minisini ha scritto: > Le 20/04/2023 ? 15:02, Marco Ancillotti a ?crit?: >> Hi all , >> >> is there a daily ppa for raspbian ? >> >> the stock gambas on unstable crash if I use tabstrip on a project , >> I've try the stock ppa:gambas-team/gambas-daily but it >> say: "no distribution template for Raspbian/bookworm". >> >> thank's in advance, >> Marco. >> > > PPA are for Ubuntu, and there are ARM packages depending on the Ubuntu > version. I don't know if you can use them in Raspbian. > > Regards, > You can read what danielozma writes here: https://www.gambas-it.org/smf/index.php?topic=9376.0 Sounds like a good suggestion Regards Gianluigi From gambas at servinfo.it Thu Apr 20 16:10:44 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Thu, 20 Apr 2023 16:10:44 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> Message-ID: <2b1112ea-a9b7-3891-cac3-a62659b92fc6@servinfo.it> I'm trying to use the ubuntu packages as raspbian is debian/ubuntu derived. After some work I've install all that I need and console apps works. But for some reason I don't have a usable db.form.htmlview , I get the x86_64 .so library so it won't work. I check the ppa and see that the package is marked _all , so not architecture specific but it contain x86_64 code. This is the package: https://launchpad.net/~gambas-team/+archive/ubuntu/gambas-daily/+files/gambas3-gb-form-htmlview_3.18.90+git202304192051.c316a6827+build27~ubuntu22.04.1_all.deb It's an error or i'm doing somethink wrong ? Thank's Il 20/04/23 15:24, Benoit Minisini ha scritto: > Le 20/04/2023 ? 15:02, Marco Ancillotti a ?crit?: >> Hi all , >> >> is there a daily ppa for raspbian ? >> >> the stock gambas on unstable crash if I use tabstrip on a project , >> I've try the stock ppa:gambas-team/gambas-daily but it >> say: "no distribution template for Raspbian/bookworm". >> >> thank's in advance, >> Marco. >> > > PPA are for Ubuntu, and there are ARM packages depending on the Ubuntu > version. I don't know if you can use them in Raspbian. > > Regards, > From gbWilly at protonmail.com Thu Apr 20 16:12:39 2023 From: gbWilly at protonmail.com (gbWilly) Date: Thu, 20 Apr 2023 14:12:39 +0000 Subject: [Gambas-user] Wiki In-Reply-To: References: Message-ID: > Le 19/04/2023 ? 16:50, gbWilly via User a ?crit : > > > Hi all, > > > > Did something change on the wiki page? > > Today I wanted to add some minor improvements to the installation guides > > for Debian/Raspian and Ubuntu. > > > > I manage to log in but when clicking the Edit button for the page I get > > logged out again! > > > > gbWilly > > > I have just tried to login at the front page, and edit it. It worked as > expected. > > On which page did you try to login? > Hi Beno?t, I figured out what happened. If I log in at https://gambaswiki.org/wiki all works as expected. If I go to https://gambas.sourceforge.net/en/main.html and next click on Wiki and log in from there things don't work as expected. You can log in but Edit and other functions result in getting logged out again. I presume that embedding the wiki in the Gambas main page is causing this. Hope this will clarify the problem. gbWilly From sharon at 455.co.il Thu Apr 20 16:12:11 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 20 Apr 2023 17:12:11 +0300 Subject: [Gambas-user] accessing a variable from another class Message-ID: <20230420135207.M94501@455.co.il> Hello In previous discussions on this topic I was told that what I was trying to do did not make sense After thought and examination In Gambas it is possible to access and change variables that are in another class By STATIC PUBLIC It also exists in other languages, for example: https://www.w3docs.com/snippets/java/accessing-a-variable-from-another-class.html So it makes sense to do such a thing The question is if I create several classes for example class1 class2 class3 Is there a possibility that only class2 or class3 can read from class1 That is, when I am in class2 it will be possible to read: class1.var1 But when I compile all 3 classes It will not be possible from the outside to read the variable: dim cl1 as class1 cl1. After the DOT it will not show me the variable var1 Thank you very much everyone From gbWilly at protonmail.com Thu Apr 20 16:22:39 2023 From: gbWilly at protonmail.com (gbWilly) Date: Thu, 20 Apr 2023 14:22:39 +0000 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> Message-ID: > Le 20/04/2023 ? 15:02, Marco Ancillotti a ?crit : > > > Hi all , > > > > is there a daily ppa for raspbian ? > > > > the stock gambas on unstable crash if I use tabstrip on a project , I've > > try the stock ppa:gambas-team/gambas-daily but it > > say: "no distribution template for Raspbian/bookworm". > > > > thank's in advance, > > Marco. > > > PPA are for Ubuntu, and there are ARM packages depending on the Ubuntu > version. I don't know if you can use them in Raspbian. > Why not try ARM packages from Debian since Raspbian is Debian instead of Ubuntu based. Debian has Gambas 3.15.2 in stable and 3.18.0 in stable backports. For Bookworm Gambas is on 3.18.0 on Debian. gbWilly From gambas at servinfo.it Thu Apr 20 16:31:04 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Thu, 20 Apr 2023 16:31:04 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> Message-ID: Il 20/04/23 16:22, gbWilly via User ha scritto: > Why not try ARM packages from Debian since Raspbian is Debian instead of Ubuntu based. Debian has Gambas 3.15.2 in stable and 3.18.0 in stable backports. For Bookworm Gambas is on 3.18.0 on Debian. > > gbWilly > I need daily ppa as I'm doing long term devel and have daily ppa on main x86_64 desktop. If I use stable I need any time to recompile source , using same version I can script scp of pseudo-bynary and test my app on no time. Also some time I use feature not available on stable so after recompile I need to adjust code , this is a lot of time lost , My app is full screen on dual monitor raspberry pi so I never run on my devel platform , I made a modify to some form and test on local then to check how everythink works I upload and launch to raspberry. Previously I was using a raspbian unstable without update ( system of about a year ago ) now I'm moving to last since need to test latest package and discovery that gambas stock have some so I want to update to latest devel. Bye, marco. From benoit.minisini at gambas-basic.org Thu Apr 20 16:35:04 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 20 Apr 2023 16:35:04 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: <2b1112ea-a9b7-3891-cac3-a62659b92fc6@servinfo.it> References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> <2b1112ea-a9b7-3891-cac3-a62659b92fc6@servinfo.it> Message-ID: Le 20/04/2023 ? 16:10, Marco Ancillotti a ?crit?: > > I'm trying to use the ubuntu packages as raspbian is debian/ubuntu derived. > > After some work I've install all that I need and console apps works. > > But for some reason I don't have a usable db.form.htmlview , I get the > x86_64 .so library so it won't work. > > I check the ppa and see that the package is marked _all , so not > architecture specific but it contain x86_64 code. > > This is the package: > https://launchpad.net/~gambas-team/+archive/ubuntu/gambas-daily/+files/gambas3-gb-form-htmlview_3.18.90+git202304192051.c316a6827+build27~ubuntu22.04.1_all.deb > > It's an error or i'm doing somethink wrong ? > > Thank's > It seems to be an error, but I don't know why it is marked 'all'... -- Beno?t Minisini. From gambas at servinfo.it Thu Apr 20 16:39:57 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Thu, 20 Apr 2023 16:39:57 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> <2b1112ea-a9b7-3891-cac3-a62659b92fc6@servinfo.it> Message-ID: Il 20/04/23 16:35, Benoit Minisini ha scritto: > > It seems to be an error, but I don't know why it is marked 'all'... > Ok , while waiting the correction can you send me the armf .so file ? I think I only need that to make it work and it probably is on you last compile. Thank if U can :-D From gambas at servinfo.it Thu Apr 20 17:53:32 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Thu, 20 Apr 2023 17:53:32 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> <2b1112ea-a9b7-3891-cac3-a62659b92fc6@servinfo.it> Message-ID: <238e5460-7039-4ea8-85e2-fb9a0aba01ef@servinfo.it> Il 20/04/23 16:39, Marco Ancillotti ha scritto: > > Il 20/04/23 16:35, Benoit Minisini ha scritto: >> >> It seems to be an error, but I don't know why it is marked 'all'... >> > Ok , while waiting the correction can you send me the armf .so file ? > > I think I only need that to make it work and it probably is on you > last compile. > > Thank if U can :-D OK , I solved removing library and using directly qt4/5 without the component switcher. it works, thank's for support. ? From jussi.lahtinen at gmail.com Thu Apr 20 20:36:10 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 20 Apr 2023 21:36:10 +0300 Subject: [Gambas-user] accessing a variable from another class In-Reply-To: <20230420135207.M94501@455.co.il> References: <20230420135207.M94501@455.co.il> Message-ID: There seems to be a lot of confusion. Compilation does not change the scope of variables (or objects) within the project. But if you want to use the executable as a component/library, then you must expose the public variables of the desired classes with "export". Otherwise, it is not needed. "Dim" declares a local variable, whose scope is within the function/sub. "Private" declares a variable, whose scope is within the class. "Public" declares a variable, whose scope is the whole project. And also other projects when "export" is used. "Static" just means the sub/function is shared with all instances of this class, and that you do not need to instantiate this class to use the function/sub. IE it is not needed for the scope at all. So. You can create class2 which inherits class1 as its base class, and thus "own" private and public variables of class1 as its own variables. Thus you can example write within function/sub of class2: thisIsPrivateVariableFromClass1 = 100 Outside of the class1 or class2 the private variables are not visible. IE class1.thisIsPrivateVariableFromClass1 and class2.thisIsPrivateVariableFromClass1 yields an error. Jussi On Thu, Apr 20, 2023 at 5:22?PM Mayost Sharon wrote: > Hello > > In previous discussions on this topic > I was told that what I was trying to do did not make sense > > After thought and examination > > In Gambas it is possible to access and change variables that are in > another class > By > STATIC PUBLIC > > It also exists in other languages, for example: > > https://www.w3docs.com/snippets/java/accessing-a-variable-from-another-class.html > > So it makes sense to do such a thing > > The question is if I create several classes for example > class1 class2 class3 > Is there a possibility that only class2 or class3 can read from class1 > That is, when I am in class2 it will be possible to read: > class1.var1 > > But when I compile all 3 classes > It will not be possible from the outside to read the variable: > > dim cl1 as class1 > cl1. > After the DOT it will not show me the variable var1 > > Thank you very much everyone > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Thu Apr 20 21:23:23 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 20 Apr 2023 22:23:23 +0300 Subject: [Gambas-user] protected for a variable inherited from a class Message-ID: <20230420191243.M49171@455.co.il> Hello Is there a way to access a variable inherited from class1 but that it will not be visible to other non-inherited classes something like this: https://www.w3schools.com/cpp/cpp_inheritance_access.asp I tried to think maybe with: STATIC PRIVATE But it's not working Many thanks to everyone From jussi.lahtinen at gmail.com Thu Apr 20 22:36:16 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 20 Apr 2023 23:36:16 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: <20230420191243.M49171@455.co.il> References: <20230420191243.M49171@455.co.il> Message-ID: No, sorry I messed up. Inherent private variables/subs/functions can only be overridden, not accessed. If class1 is merely a base class, then you can prevent its usage with "create private". But not just a single variable/method. Jussi On Thu, Apr 20, 2023 at 10:25?PM Mayost Sharon wrote: > Hello > > Is there a way to access a variable inherited from class1 > but > that it will not be visible to other non-inherited classes > > something like this: > https://www.w3schools.com/cpp/cpp_inheritance_access.asp > > I tried to think maybe with: STATIC PRIVATE > But it's not working > > > Many thanks to everyone > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Thu Apr 20 22:52:06 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Thu, 20 Apr 2023 22:52:06 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> <2b1112ea-a9b7-3891-cac3-a62659b92fc6@servinfo.it> Message-ID: <64c69bb4-18c4-a771-94b0-c08f1802ee29@gambas-basic.org> Le 20/04/2023 ? 16:35, Benoit Minisini a ?crit?: > Le 20/04/2023 ? 16:10, Marco Ancillotti a ?crit?: >> >> I'm trying to use the ubuntu packages as raspbian is debian/ubuntu >> derived. >> >> After some work I've install all that I need and console apps works. >> >> But for some reason I don't have a usable db.form.htmlview , I get the >> x86_64 .so library so it won't work. >> >> I check the ppa and see that the package is marked _all , so not >> architecture specific but it contain x86_64 code. >> >> This is the package: >> https://launchpad.net/~gambas-team/+archive/ubuntu/gambas-daily/+files/gambas3-gb-form-htmlview_3.18.90+git202304192051.c316a6827+build27~ubuntu22.04.1_all.deb >> >> It's an error or i'm doing somethink wrong ? >> >> Thank's >> > > It seems to be an error, but I don't know why it is marked 'all'... > OK I fixed the packaging problem. Packages will be available in an hour for the stable PPA, and tomorrow for the daily PPA. Regards, -- Beno?t Minisini. From jussi.lahtinen at gmail.com Thu Apr 20 23:57:52 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 21 Apr 2023 00:57:52 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: References: <20230420191243.M49171@455.co.il> Message-ID: Here is a way to do what you want, but I don't really like it. See the attachment. Jussi On Thu, Apr 20, 2023 at 11:36?PM Jussi Lahtinen wrote: > No, sorry I messed up. Inherent private variables/subs/functions can only > be overridden, not accessed. > If class1 is merely a base class, then you can prevent its usage with > "create private". But not just a single variable/method. > > > Jussi > > On Thu, Apr 20, 2023 at 10:25?PM Mayost Sharon wrote: > >> Hello >> >> Is there a way to access a variable inherited from class1 >> but >> that it will not be visible to other non-inherited classes >> >> something like this: >> https://www.w3schools.com/cpp/cpp_inheritance_access.asp >> >> I tried to think maybe with: STATIC PRIVATE >> But it's not working >> >> >> Many thanks to everyone >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ScopeDemo.tar.gz Type: application/gzip Size: 11981 bytes Desc: not available URL: From adamnt42 at gmail.com Fri Apr 21 03:14:06 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 21 Apr 2023 10:44:06 +0930 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: References: <20230420191243.M49171@455.co.il> Message-ID: <66bc36f5-0b85-2b40-8782-4e4138f184fb@gmail.com> @Jussi On 21/4/23 7:27 am, Jussi Lahtinen wrote: > Here is a way to do what you want, but I don't really like it. See the > attachment. > > Jussi > 8< > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- No, I don't think that achieves the goal. See attached. b -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ScopeDemo.tar-6-0.0.1.tar.gz Type: application/gzip Size: 12092 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Fri Apr 21 03:55:08 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 21 Apr 2023 04:55:08 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: <66bc36f5-0b85-2b40-8782-4e4138f184fb@gmail.com> References: <20230420191243.M49171@455.co.il> <66bc36f5-0b85-2b40-8782-4e4138f184fb@gmail.com> Message-ID: Works fine here..? All your declared classes are descendants of class1, so they should get access to the value of iVar. If you want to count out descendants (IE grant access only to class2 [this is not what was asked for]), then you must replace this: "If Me Is Class2 Then" by this: "If Object.Class(Me).Name = "Class2" Then" Jussi On Fri, Apr 21, 2023 at 4:15?AM BB wrote: > @Jussi > On 21/4/23 7:27 am, Jussi Lahtinen wrote: > > Here is a way to do what you want, but I don't really like it. See the > attachment. > > Jussi > > > 8< > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > No, I don't think that achieves the goal. See attached. > > b > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Apr 21 05:53:16 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 21 Apr 2023 06:53:16 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: References: <20230420191243.M49171@455.co.il> Message-ID: <20230421034514.M14136@455.co.il> ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Fri, 21 Apr 2023 00:57:52 +0300 Subject: Re: [Gambas-user] protected for a variable inherited from a class > Here is a way to do what you want, but I don't really like it. See the > attachment. > > Jussi > > On Thu, Apr 20, 2023 at 11:36?PM Jussi Lahtinen > wrote: > > > No, sorry I messed up. Inherent private variables/subs/functions can only > > be overridden, not accessed. > > If class1 is merely a base class, then you can prevent its usage with > > "create private". But not just a single variable/method. > > > > > > Jussi > > > > On Thu, Apr 20, 2023 at 10:25?PM Mayost Sharon wrote: > > > >> Hello > >> > >> Is there a way to access a variable inherited from class1 > >> but > >> that it will not be visible to other non-inherited classes > >> > >> something like this: > >> https://www.w3schools.com/cpp/cpp_inheritance_access.asp > >> > >> I tried to think maybe with: STATIC PRIVATE > >> But it's not working > >> > >> > >> Many thanks to everyone > >> > >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > >> > > ------- End of Original Message ------- Hello Thank you I learned another new thing from your example, thanks but 1. You seem to be what you were seemingly to achieve through: Static Public Function GetPrivate() As Integer (that doesn't work either) 2. In your example, still when I register hObj1 and a period in the IDE, it completes me and shows me that there is a GetPrivate method. I'm looking for a way that it won't show it to me when I create an instance of CLASS1 but when I'm in CLASS2 which is an inheritance of CLASS1 so Inside it will be possible to access CLASS1.GetPrivate Many thanks From adamnt42 at gmail.com Fri Apr 21 06:00:21 2023 From: adamnt42 at gmail.com (BB) Date: Fri, 21 Apr 2023 13:30:21 +0930 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: <20230421034514.M14136@455.co.il> References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> Message-ID: <30cd259a-9acd-e30b-afe4-ecff824f7dfa@gmail.com> On 21/4/23 1:23 pm, Mayost Sharon wrote: > 2. In your example, still when I register hObj1 and a period in the IDE, it completes me and shows me that there is a GetPrivate method. I'm looking for a way that it won't show it to me when I create an instance of CLASS1 but when I'm in CLASS2 which is an inheritance of CLASS1 so Inside it will be possible to access CLASS1.GetPrivate Can't be done. From t.lee.davidson at gmail.com Fri Apr 21 16:57:40 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Fri, 21 Apr 2023 10:57:40 -0400 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: <20230421034514.M14136@455.co.il> References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> Message-ID: On 4/20/23 23:53, Mayost Sharon wrote: > 1. You seem to be what you were seemingly to achieve through: > Static Public Function GetPrivate() As Integer > (that doesn't work either) Of course it doesn't work. The value that function returns is dynamic not static. Static and dynamic methods and variables cannot be mixed. > 2. In your example, still when I register hObj1 and a period in the IDE, it completes me and shows me that there is a GetPrivate method. I'm looking for a way that it won't show it to me when I create an instance of CLASS1 but when I'm in CLASS2 which is an inheritance of CLASS1 so Inside it will be possible to access CLASS1.GetPrivate If CLASS2 has inherited CLASS1, then it has also inherited the GetPrivate method and, therefore, it then makes no sense to attempt to access that method with a syntax of CLASS1.GetPrivate. If you wish to access it with that syntax, then don't inherit CLASS1 in CLASS2. Now why does it matter to you what the IDE auto-completion function shows you? -- Lee From gambas at servinfo.it Fri Apr 21 18:39:57 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Fri, 21 Apr 2023 18:39:57 +0200 Subject: [Gambas-user] gambas daily for raspberry In-Reply-To: <64c69bb4-18c4-a771-94b0-c08f1802ee29@gambas-basic.org> References: <4014531c-ffe0-bb61-c510-c848b0f53f0f@servinfo.it> <2b1112ea-a9b7-3891-cac3-a62659b92fc6@servinfo.it> <64c69bb4-18c4-a771-94b0-c08f1802ee29@gambas-basic.org> Message-ID: <01b7b7ad-dfff-1bc9-2a0a-335ca0d87fef@servinfo.it> Il 20/04/23 22:52, Benoit Minisini ha scritto: > > OK I fixed the packaging problem. Packages will be available in an > hour for the stable PPA, and tomorrow for the daily PPA. > Perfectly working thank's. From gambas at servinfo.it Fri Apr 21 18:48:17 2023 From: gambas at servinfo.it (Marco Ancillotti) Date: Fri, 21 Apr 2023 18:48:17 +0200 Subject: [Gambas-user] file time stamp Message-ID: <4c9d6242-98dd-ca10-7e86-d8ca5a03a9e6@servinfo.it> Hi all , is there a way to update file/dir timestamp like shell command touch do ? I simply need to touch a directory to update timestamp , I can do a shell "touch

" but there's a gambas way to do that ? thank's, marco. From jussi.lahtinen at gmail.com Fri Apr 21 20:32:30 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 21 Apr 2023 21:32:30 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: <20230421034514.M14136@455.co.il> References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> Message-ID: > > 1. You seem to be what you were seemingly to achieve through: > Static Public Function GetPrivate() As Integer > (that doesn't work either) > Like Lee said, change the iVar declaration to static and then it is possible. 2. In your example, still when I register hObj1 and a period in the IDE, it > completes me and shows me that there is a GetPrivate method. I'm looking > for a way that it won't show it to me when I create an instance of CLASS1 > but when I'm in CLASS2 which is an inheritance of CLASS1 so Inside it will > be possible to access CLASS1.GetPrivate > I guess there is some language barrier issue. I don't really understand what you are trying to achieve. If you have static access to class1 function (class1.GetPrivate), then you will have dynamic access also (hObj.GetPrivate, where hObj is an instance of class1). There doesn't seem to be a way to detect this in Gambas. If you don't want a function of class1 to be accessed, then why is the function in class1? Why not in class2? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri Apr 21 20:33:17 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 21 Apr 2023 21:33:17 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> Message-ID: > > Now why does it matter to you what the IDE auto-completion function shows > you? > I guess the issue is detecting the problem in compile time vs runtime. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Sat Apr 22 20:24:55 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 22 Apr 2023 21:24:55 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> Message-ID: <20230422182159.M14555@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Fri, 21 Apr 2023 10:57:40 -0400 Subject: Re: [Gambas-user] protected for a variable inherited from a class > On 4/20/23 23:53, Mayost Sharon wrote: > > 1. You seem to be what you were seemingly to achieve through: > > Static Public Function GetPrivate() As Integer > > (that doesn't work either) > > Of course it doesn't work. The value that function returns is dynamic not > static. Static and dynamic methods and variables cannot be mixed. > > > 2. In your example, still when I register hObj1 and a period in the IDE, it completes me and shows me that there is a GetPrivate method. I'm looking for a way that it won't show it to me when I create an instance of CLASS1 but when I'm in CLASS2 which is an inheritance of CLASS1 so Inside it will be possible to access CLASS1.GetPrivate > > If CLASS2 has inherited CLASS1, then it has also inherited the GetPrivate > method and, therefore, it then makes no sense to attempt to access that method > with a syntax of CLASS1.GetPrivate. If you wish to access it with that syntax, > then don't inherit CLASS1 in CLASS2. > > Now why does it matter to you what the IDE auto-completion function shows you? > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Because if I end up creating a component It better be arranged as perfect components work From sharon at 455.co.il Sat Apr 22 20:33:18 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Sat, 22 Apr 2023 21:33:18 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> Message-ID: <20230422182801.M64113@455.co.il> ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Fri, 21 Apr 2023 21:32:30 +0300 Subject: Re: [Gambas-user] protected for a variable inherited from a class > > > > 1. You seem to be what you were seemingly to achieve through: > > Static Public Function GetPrivate() As Integer > > (that doesn't work either) > > > > Like Lee said, change the iVar declaration to static and then it is > possible. > > 2. In your example, still when I register hObj1 and a period in the IDE, it > > completes me and shows me that there is a GetPrivate method. I'm looking > > for a way that it won't show it to me when I create an instance of CLASS1 > > but when I'm in CLASS2 which is an inheritance of CLASS1 so Inside it will > > be possible to access CLASS1.GetPrivate > > > > I guess there is some language barrier issue. I don't really understand > what you are trying to achieve. > If you have static access to class1 function (class1.GetPrivate), then you > will have dynamic access also (hObj.GetPrivate, where hObj is an instance > of class1). > There doesn't seem to be a way to detect this in Gambas. > > If you don't want a function of class1 to be accessed, then why is the > function in class1? Why not in class2? > > Jussi ------- End of Original Message ------- Sorry You are very right Unfortunately I have a barrier and I don't know English properly so I have to translate my questions through Google translation (I hope this translation turned out well) That's why I tried at the beginning of the message to show an example I saw in C that does what I'm looking for Many thanks to everyone From vuott at tutanota.com Sun Apr 23 03:13:19 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Sun, 23 Apr 2023 03:13:19 +0200 (CEST) Subject: [Gambas-user] About SpinBox.Text Property Message-ID: Hello, about SpinBox.Text Property wiki says: " Returns the text displayed by the spinbox without the prefix and suffix. " Well, what are the "prefix" and "suffix" of this Control ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Apr 23 04:43:27 2023 From: adamnt42 at gmail.com (BB) Date: Sun, 23 Apr 2023 12:13:27 +0930 Subject: [Gambas-user] About SpinBox.Text Property In-Reply-To: References: Message-ID: <82b05035-9fe8-b8f8-9048-9b8ff368f4bd@gmail.com> On 23/4/23 10:43 am, vuott--- via User wrote: > Hello, > about SpinBox.Text Property wiki says: > " Returns the text displayed by the spinbox without the prefix and > suffix. " > > Well, what are the "prefix" and "suffix" of this Control ? > > Regards > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- It has to? do with the ShowZeros and ShowSign properties -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Sun Apr 23 06:34:39 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 23 Apr 2023 00:34:39 -0400 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: <20230422182159.M14555@455.co.il> References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> <20230422182159.M14555@455.co.il> Message-ID: On 4/22/23 14:24, Mayost Sharon wrote: >> Now why does it matter to you what the IDE auto-completion function shows you? >> >> -- >> Lee >> > ------- End of Original Message ------- > > Because if I end up creating a component > It better be arranged as perfect components work Okay, but I still don't understand why it seems to matter to you. The behavior of the auto-complete function has no bearing whatsoever on the behavior of the compiled project. It is merely an assistant for the programmer. Declaring a variable or method PUBLIC or PRIVATE determines only its scope and visibility within the project. Public symbols are accessible within the code of the entire project but are not accessible outside of the project, unless, in the case of a component, the EXPORT declaration is used. PUBLIC verses PRIVATE is not a security issue; it is a scope issue. -- Lee From t.lee.davidson at gmail.com Sun Apr 23 06:52:45 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 23 Apr 2023 00:52:45 -0400 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: <20230422182801.M64113@455.co.il> References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> <20230422182801.M64113@455.co.il> Message-ID: <399cb811-9bd7-e7ed-7062-dc7a83a955b2@gmail.com> On 4/22/23 14:33, Mayost Sharon wrote: > Unfortunately I have a barrier and I don't know English properly so I have to translate my questions through > Google translation > (I hope this translation turned out well) It did. > That's why I tried at the beginning of the message to show an example I saw in C that does what I'm looking for You know, I saw the word "protected" in your subject line many times and actually paid no attention to it assuming it was just a translation glitch. In the future, perhaps consider putting keywords in uppercase to help them stand out and so dummies like me will take more notice. -- Lee From t.lee.davidson at gmail.com Sun Apr 23 06:54:51 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 23 Apr 2023 00:54:51 -0400 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable Message-ID: EOM -- Lee From jussi.lahtinen at gmail.com Sun Apr 23 20:18:04 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 23 Apr 2023 21:18:04 +0300 Subject: [Gambas-user] protected for a variable inherited from a class In-Reply-To: References: <20230420191243.M49171@455.co.il> <20230421034514.M14136@455.co.il> <20230422182159.M14555@455.co.il> Message-ID: > > Declaring a variable or method PUBLIC or PRIVATE determines only its scope > and visibility within the project. Public symbols are > accessible within the code of the entire project but are not accessible > outside of the project, unless, in the case of a > component, the EXPORT declaration is used. PUBLIC verses PRIVATE is not a > security issue; it is a scope issue. > I guess the problem is exporting a class, which exposes functions that are not meant to be exposed. This could create confusion and problems to the users of the component. Maybe Benoit will implement the "protected" keyword, otherwise I don't think it can be done cleanly. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sun Apr 23 22:43:15 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sun, 23 Apr 2023 22:43:15 +0200 Subject: [Gambas-user] file time stamp In-Reply-To: <4c9d6242-98dd-ca10-7e86-d8ca5a03a9e6@servinfo.it> References: <4c9d6242-98dd-ca10-7e86-d8ca5a03a9e6@servinfo.it> Message-ID: Le 21/04/2023 ? 18:48, Marco Ancillotti a ?crit?: > Hi all , > > is there a way to update file/dir timestamp like shell command touch do ? > > I simply need to touch a directory to update timestamp , I can do a > shell "touch " but there's a gambas way to do that ? > > thank's, > marco. > Mmm... Not really, unless someone finds a trick. -- Beno?t Minisini. From Karl.Reinl at Fen-Net.de Mon Apr 24 00:43:29 2023 From: Karl.Reinl at Fen-Net.de (Charlie Reinl) Date: Mon, 24 Apr 2023 00:43:29 +0200 Subject: [Gambas-user] file time stamp In-Reply-To: References: <4c9d6242-98dd-ca10-7e86-d8ca5a03a9e6@servinfo.it> Message-ID: <1b0903d39432252c60919f329f2b47612f435789.camel@Fen-Net.de> Am Sonntag, dem 23.04.2023 um 22:43 +0200 schrieb Benoit Minisini: > > I simply need to touch a directory to update timestamp , I can do > > a shell "touch " but there's a gambas way to do that ? > > Mmm... Not really, unless someone finds a trick. think the shell Trick is a fine one, why reinvent the wheel, that's Unix like. From jussi.lahtinen at gmail.com Mon Apr 24 01:02:28 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 24 Apr 2023 02:02:28 +0300 Subject: [Gambas-user] file time stamp In-Reply-To: <1b0903d39432252c60919f329f2b47612f435789.camel@Fen-Net.de> References: <4c9d6242-98dd-ca10-7e86-d8ca5a03a9e6@servinfo.it> <1b0903d39432252c60919f329f2b47612f435789.camel@Fen-Net.de> Message-ID: > > think the shell Trick is a fine one, why reinvent the wheel, that's > Unix like. > Exactly, using standard unix utilities via shell should be always OK. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From gradobag at gradobag.it Mon Apr 24 09:28:57 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 24 Apr 2023 09:28:57 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: References: Message-ID: Il 23/04/23 06:54, T Lee Davidson ha scritto: > EOM > > Hi Benoit, remember this :-( Regards Gianluigi From gradobag at gradobag.it Mon Apr 24 10:50:11 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 24 Apr 2023 10:50:11 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: References: Message-ID: Il 24/04/23 09:28, Gianluigi ha scritto: > Il 23/04/23 06:54, T Lee Davidson ha scritto: >> EOM >> >> > Hi Benoit, > > remember this :-( > > Regards > > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi Benoit, here now works, thank you Regards Gianluigi From shordi at gmail.com Mon Apr 24 10:53:15 2023 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 24 Apr 2023 10:53:15 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 Message-ID: Since last actualization of Stable Repository, I can't translate my project. All seems correct but after do translation all Iget is the message: es_ES.po:1:57: syntax error msgfmt: 1 fatal error found and on gambas console: Unable to compile translation file with 'msgfmt':es_Es.po Does it only happen to me? Should I report it in the bugtracker? Attached is the es_ES.po file. Best regards. [System] Gambas=3.18.2 OperatingSystem=Linux Distribution=Linux Mint 21.1 Vera Kernel=5.15.0-70-generic Architecture=x86_64 Cores=4 Memory=15827M Language=es_ES.UTF-8 Desktop=CINNAMON DesktopResolution=96 DesktopScale=7 WidgetTheme=proxy Font=Ubuntu,10 [Programs] gcc=gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 git=git version 2.34.1 [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.7.0 DBus=libdbus-1.so.3.19.13 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2404.29 GStreamer=libgstreamer-1.0.so.0.2003.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2404.29 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.118.0.0 QT5=libQt5Core.so.5.15.3 RSvg=librsvg-2.so.2.48.0 SDL=libSDL2-2.0.so.0.18.2 SQLite 3=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=5.6.8 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=cinnamon DISPLAY=:0 EDITOR=nano GB_GUI=gb.qt5 GDMSESSION=cinnamon GDM_LANG=es_ES GIO_LAUNCHED_DESKTOP_FILE=/.local/share/applications/Gambas.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=7404 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 GTK3_MODULES=xapp-gtk3-module GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=es_ES.UTF-8 LANGUAGE=es_ES.UTF-8 LC_ALL=es_ES.UTF-8 LOGNAME= PATH=/.local/bin:/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/1119,unix/:/tmp/.ICE-unix/1119 SHELL=/bin/bash SHLVL=0 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=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 force_s3tc_enable=true -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: es_ES.po Type: text/x-gettext-translation Size: 2327 bytes Desc: not available URL: From benoit.minisini at gambas-basic.org Mon Apr 24 10:54:16 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 24 Apr 2023 10:54:16 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: References: Message-ID: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> Le 24/04/2023 ? 10:50, Gianluigi a ?crit?: > Il 24/04/23 09:28, Gianluigi ha scritto: >> Il 23/04/23 06:54, T Lee Davidson ha scritto: >>> EOM >>> >>> >> Hi Benoit, >> >> remember this :-( >> >> Regards >> >> Gianluigi >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > Hi Benoit, > > here now works, thank you > > Regards > > Gianluigi > I'm still searching what makes the server crash... -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Mon Apr 24 11:01:25 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 24 Apr 2023 11:01:25 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: Message-ID: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> Le 24/04/2023 ? 10:53, Jorge Carri?n a ?crit?: > Since last actualization of Stable Repository, I can't translate my > project. All seems correct but after do translation all Iget is the message: > > es_ES.po:1:57: syntax error > msgfmt: 1 fatal error found > > and on gambas console: > > Unable to compile translation file with 'msgfmt':es_Es.po > > Does it only happen to me? Should I report it in the bugtracker? > Attached is the es_ES.po file. > Best regards. > Strange, I see nothing unexpected in the file at line 57, or in any other place. -- Beno?t Minisini. From gradobag at gradobag.it Mon Apr 24 11:15:34 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 24 Apr 2023 11:15:34 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> Message-ID: Il 24/04/23 11:01, Benoit Minisini ha scritto: > Le 24/04/2023 ? 10:53, Jorge Carri?n a ?crit?: >> Since last actualization of Stable Repository, I can't translate my >> project. All seems correct but after do translation all Iget is the >> message: >> >> es_ES.po:1:57: syntax error >> msgfmt: 1 fatal error found >> >> and on gambas console: >> >> Unable to compile translation file with 'msgfmt':es_Es.po >> >> Does it only happen to me? Should I report it in the bugtracker? >> Attached is the es_ES.po file. >> Best regards. >> > > Strange, I see nothing unexpected in the file at line 57, or in any > other place. > Hi, This is probably nonsense but, could it be caused by the fact that the default language is now the local language? Regards Gianluigi From gradobag at gradobag.it Mon Apr 24 11:27:29 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 24 Apr 2023 11:27:29 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> Message-ID: Il 24/04/23 10:54, Benoit Minisini ha scritto: > Le 24/04/2023 ? 10:50, Gianluigi a ?crit?: >> Il 24/04/23 09:28, Gianluigi ha scritto: >>> Il 23/04/23 06:54, T Lee Davidson ha scritto: >>>> EOM >>>> >>>> >>> Hi Benoit, >>> >>> remember this :-( >>> >>> Regards >>> >>> Gianluigi >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> Hi Benoit, >> >> here now works, thank you >> >> Regards >> >> Gianluigi >> > > I'm still searching what makes the server crash... > Best of luck ! ( Any unfriendly colleagues? ;-D ) From vuott at tutanota.com Mon Apr 24 15:09:20 2023 From: vuott at tutanota.com (vuott at tutanota.com) Date: Mon, 24 Apr 2023 15:09:20 +0200 (CEST) Subject: [Gambas-user] file time stamp In-Reply-To: References: <4c9d6242-98dd-ca10-7e86-d8ca5a03a9e6@servinfo.it> Message-ID: ...maybe with Extern ? [code] Private Const EPOCH As String = "01/01/1970" Library "libc:6" Public Struct utimbuf ? actime As Long ? modtime As Long End Struct ' int utime (const char *__file, const struct utimbuf *__file_times) ' Set the access and modification times of FILE to those given in *FILE_TIMES. ' If FILE_TIMES is NULL, set them to the current time. Private Extern utime(__file As String, __file_times As Utimbuf) As Integer Public Sub Main() ? Dim ut As New Utimbuf Dim s As String s = "/path/of/file" ? With ut ' Changes the 'access' timestamp to the file to 1661040000 seconds from the initial date (Tempo Unix): ?? .actime = DateDiff(CDate(EPOCH), CDate("08/21/2022"), gb.Second) ' Changes the 'modification' timestamp to the file to 1661040000 seconds from the initial date (Unix Time): ??? .modtime = DateDiff(CDate(EPOCH), CDate("08/21/2022"), gb.Second) End With utime(s, ut) End [/code] 23 apr 2023, 22:44 da benoit.minisini at gambas-basic.org: > Le 21/04/2023 ? 18:48, Marco Ancillotti a ?crit?: > >> Hi all , >> >> is there a way to update file/dir timestamp like shell command touch do ? >> >> I simply need to touch a directory to update timestamp , I can do a shell "touch " but there's a gambas way to do that ? >> >> thank's, >> marco. >> > > Mmm... Not really, unless someone finds a trick. > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Apr 24 18:10:26 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 24 Apr 2023 12:10:26 -0400 Subject: [Gambas-user] Bug in SpinBox.Text? Message-ID: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> If I set a SpinBox properties ShowZero and ShowSign to true, and also set MinValue to -100: 1. The control displays 4 zeroes when only 3 are needed, and 2. Setting the value with SpinBox1.Text = "-99" displays "0-99". Is this a bug? -- Lee From shordi at gmail.com Mon Apr 24 18:53:43 2023 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 24 Apr 2023 18:53:43 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> Message-ID: I always set the project language to English in translated projects. Then do a Spanish translation. Never had a problem before... Best Regards El lun, 24 abr 2023 a las 11:16, Gianluigi () escribi?: > Il 24/04/23 11:01, Benoit Minisini ha scritto: > > Le 24/04/2023 ? 10:53, Jorge Carri?n a ?crit : > >> Since last actualization of Stable Repository, I can't translate my > >> project. All seems correct but after do translation all Iget is the > >> message: > >> > >> es_ES.po:1:57: syntax error > >> msgfmt: 1 fatal error found > >> > >> and on gambas console: > >> > >> Unable to compile translation file with 'msgfmt':es_Es.po > >> > >> Does it only happen to me? Should I report it in the bugtracker? > >> Attached is the es_ES.po file. > >> Best regards. > >> > > > > Strange, I see nothing unexpected in the file at line 57, or in any > > other place. > > > Hi, > > This is probably nonsense but, could it be caused by the fact that the > default language is now the local language? > > Regards > > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Apr 24 20:20:44 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 24 Apr 2023 20:20:44 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> Message-ID: <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> Am 24.04.23 um 10:54 schrieb Benoit Minisini: > I'm still searching what makes the server crash... What server do you use? Apache? Can you use monit to restart it? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Mon Apr 24 21:55:36 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 24 Apr 2023 21:55:36 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> Message-ID: <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> Le 24/04/2023 ? 20:20, Christof Thalhofer a ?crit?: > Am 24.04.23 um 10:54 schrieb Benoit Minisini: > >> I'm still searching what makes the server crash... > > What server do you use? Apache? > > Can you use monit to restart it? > > Alles Gute > > Christof Thalhofer > It's the entire server that crashes because of many requests stalled eating all the memory. The memory of the server has been raised, so that I can see if it's really a memory problem, or a bug in the wiki. I looked at the log, and it seems that the crash always occurs when Cloudflare scans the wiki on the 'gb.opengl' pages. No idea why they should eat all the memory. Now I'm waiting for the next crash. :-/ -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Mon Apr 24 21:56:08 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Mon, 24 Apr 2023 21:56:08 +0200 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> Message-ID: Le 24/04/2023 ? 18:10, T Lee Davidson a ?crit?: > If I set a SpinBox properties ShowZero and ShowSign to true, and also > set MinValue to -100: > 1. The control displays 4 zeroes when only 3 are needed, and > 2. Setting the value with SpinBox1.Text = "-99" displays "0-99". > > Is this a bug? > > Apparently. Can you provide a full project that reproduces the bug? -- Beno?t Minisini. From gradobag at gradobag.it Mon Apr 24 22:54:28 2023 From: gradobag at gradobag.it (Gianluigi) Date: Mon, 24 Apr 2023 22:54:28 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> Message-ID: <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> Il 24/04/23 18:53, Jorge Carri?n ha scritto: > I always set the project language to English in translated projects. > Then do a Spanish translation. Never had a problem before... > > Best Regards Hi Jorge, I had premised that it might not make sense; I have always operated like you, too. I reciprocate with my warmest regards, good night Gianluigi From jussi.lahtinen at gmail.com Tue Apr 25 01:12:28 2023 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 25 Apr 2023 02:12:28 +0300 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> Message-ID: > > It's the entire server that crashes because of many requests stalled > eating all the memory. > Shouldn't the server drop new requests above some memory utilization..? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Apr 25 11:47:25 2023 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 25 Apr 2023 11:47:25 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> Message-ID: <9cbabb45-76d4-abb2-3628-67df852f7203@deganius.de> Am 24.04.23 um 21:55 schrieb Benoit Minisini: > It's the entire server that crashes because of many requests stalled > eating all the memory. The memory of the server has been raised, so that > I can see if it's really a memory problem, or a bug in the wiki. Ok. But... > I looked at the log, and it seems that the crash always occurs when > Cloudflare scans the wiki on the 'gb.opengl' pages. No idea why they > should eat all the memory. Maybe the cloudflare server is much stronger and so creates a DOS attack. Isn't there a 'nice' option at Cloudflare? > Now I'm waiting for the next crash. :-/ Do you use an Apache? Then you can tweek how much clients and requests it allows at the same time. For example: https://httpd.apache.org/docs/2.4/mod/mpm_common.html#maxrequestworkers https://httpd.apache.org/docs/current/mod/mpm_common.html#maxconnectionsperchild Maybe the HTTP server configuration is not the best and it allows clients to crash it. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: From benoit.minisini at gambas-basic.org Tue Apr 25 12:56:22 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 25 Apr 2023 12:56:22 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> Message-ID: Le 25/04/2023 ? 01:12, Jussi Lahtinen a ?crit?: > It's the entire server that crashes because of many requests stalled > eating all the memory. > > > Shouldn't the server drop new requests above some memory utilization..? > > Jussi > It should. I use the same little web server (thttpd) on many servers, all of them being behind an Apache proxy (the run the application I made for the company I'm working for). No problem on them, even with ton of simultaneous requests. So I think the problem is in the wiki itself, the number of requests being a consequence of the out of memory problem. But I don't have enough information to deduce what the problem is exactly. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Tue Apr 25 12:57:07 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 25 Apr 2023 12:57:07 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: <9cbabb45-76d4-abb2-3628-67df852f7203@deganius.de> References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> <9cbabb45-76d4-abb2-3628-67df852f7203@deganius.de> Message-ID: Le 25/04/2023 ? 11:47, Christof Thalhofer a ?crit?: > Am 24.04.23 um 21:55 schrieb Benoit Minisini: > >> It's the entire server that crashes because of many requests stalled >> eating all the memory. The memory of the server has been raised, so that >> I can see if it's really a memory problem, or a bug in the wiki. > > Ok. But... > >> I looked at the log, and it seems that the crash always occurs when >> Cloudflare scans the wiki on the 'gb.opengl' pages. No idea why they >> should eat all the memory. > > Maybe the cloudflare server is much stronger and so creates a DOS > attack. Isn't there a 'nice' option at Cloudflare? > >> Now I'm waiting for the next crash. :-/ > > Do you use an Apache? Then you can tweek how much clients and requests > it allows at the same time. For example: > > ... See my answer to Jussi. Regards, -- Beno?t Minisini. From benoit.minisini at gambas-basic.org Tue Apr 25 12:57:41 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 25 Apr 2023 12:57:41 +0200 Subject: [Gambas-user] The Wiki is again -> 503 Service Unavailable In-Reply-To: References: <565fd40d-550d-eb6b-9d5e-f82c5e9512f6@gambas-basic.org> <72cdf148-11b0-5d3e-4bfe-80de46aa1751@deganius.de> <9dad8c4c-f398-f534-b13c-5299982d4422@gambas-basic.org> Message-ID: <3f5bd681-6864-a6fa-054e-005f34f6f434@gambas-basic.org> Le 25/04/2023 ? 12:56, Benoit Minisini a ?crit?: > > It should. I use the same little web server (thttpd) on many servers, > all of them being behind an Apache proxy (the run the application I made --> they run -- Beno?t Minisini. From t.lee.davidson at gmail.com Tue Apr 25 15:57:10 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 25 Apr 2023 09:57:10 -0400 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> Message-ID: <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> On 4/24/23 15:56, Benoit Minisini wrote: > Le 24/04/2023 ? 18:10, T Lee Davidson a ?crit?: >> If I set a SpinBox properties ShowZero and ShowSign to true, and also set MinValue to -100: >> 1. The control displays 4 zeroes when only 3 are needed, and >> 2. Setting the value with SpinBox1.Text = "-99" displays "0-99". >> >> Is this a bug? >> >> > > Apparently. Can you provide a full project that reproduces the bug? > Certainly. Attached. -- Lee [System] Gambas=3.18.2 OperatingSystem=Linux Distribution=openSUSE Leap 15.4 Kernel=5.14.21-150400.24.60-default Architecture=x86_64 Cores=6 Memory=15921M Language=en_US.UTF-8 Desktop=KDE DesktopResolution=96 DesktopScale=7 WidgetTheme=breeze Font=Noto Sans,10 [Programs] clang=clang version 13.0.1 gcc=gcc (SUSE Linux) 7.5.0 git=git version 2.35.3 pngquant=2.11.2 (November 2017) trans=Translate Shell 0.9.6.12 [Libraries] Cairo=/usr/lib64/libcairo.so.2.11600.0 Curl=/usr/lib64/libcurl.so.4.7.0 DBus=/usr/lib64/libdbus-1.so.3.19.4 GDK2=/usr/lib64/libgdk-x11-2.0.so.0.2400.33 GDK3=/usr/lib64/libgdk-3.so.0.2404.30 GStreamer=/usr/lib64/libgstreamer-1.0.so.0.2001.0 GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.33 GTK+3=/usr/lib64/libgtk-3.so.0.2404.30 OpenGL=/usr/lib64/libGL.so.1.7.0 Poppler=/usr/lib64/libpoppler.so.117.0.0 Poppler=/usr/lib64/libpoppler.so.89.0.0 QT5=/usr/lib64/libQt5Core.so.5.15.2 RSvg=/usr/lib64/librsvg-2.so.2.48.0 SDL=/usr/lib64/libSDL2-2.0.so.0.8.0 SQLite 3=/usr/lib64/libsqlite3.so.0.8.6 -------------- next part -------------- A non-text attachment was scrubbed... Name: TestGraphical-0.0.72.tar.gz Type: application/gzip Size: 13307 bytes Desc: not available URL: From gradobag at gradobag.it Tue Apr 25 16:09:01 2023 From: gradobag at gradobag.it (Gianluigi) Date: Tue, 25 Apr 2023 16:09:01 +0200 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> Message-ID: Il 25/04/23 15:57, T Lee Davidson ha scritto: > On 4/24/23 15:56, Benoit Minisini wrote: >> Le 24/04/2023 ? 18:10, T Lee Davidson a ?crit?: >>> If I set a SpinBox properties ShowZero and ShowSign to true, and >>> also set MinValue to -100: >>> 1. The control displays 4 zeroes when only 3 are needed, and >>> 2. Setting the value with SpinBox1.Text = "-99" displays "0-99". >>> >>> Is this a bug? >>> >>> >> >> Apparently. Can you provide a full project that reproduces the bug? >> > > Certainly. Attached. > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi Lee, In the project properties the tick on gb.form is missing, restoring it and deleting the old spinbox with a new one works fine here Regards Gianluigi From t.lee.davidson at gmail.com Tue Apr 25 16:26:39 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 25 Apr 2023 10:26:39 -0400 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> Message-ID: <9b22f8bc-8b67-2600-9372-42d7f1865197@gmail.com> On 4/25/23 10:09, Gianluigi wrote: > Il 25/04/23 15:57, T Lee Davidson ha scritto: >> On 4/24/23 15:56, Benoit Minisini wrote: >>> Le 24/04/2023 ? 18:10, T Lee Davidson a ?crit?: >>>> If I set a SpinBox properties ShowZero and ShowSign to true, and also set MinValue to -100: >>>> 1. The control displays 4 zeroes when only 3 are needed, and >>>> 2. Setting the value with SpinBox1.Text = "-99" displays "0-99". >>>> >>>> Is this a bug? >>>> >>>> >>> >>> Apparently. Can you provide a full project that reproduces the bug? >>> >> >> Certainly. Attached. >> >> >> > Hi Lee, > > In the project properties the tick on gb.form is missing, restoring it and deleting the old spinbox with a new one works fine here > > Regards > > Gianluigi SpinBox is provided by the GTK/Qt components; gb.form is not required. When gb.gui is used, my system uses Qt5. Does your system default to GTK? I tried it with GTK3 and get the same behavior. -- Lee From gradobag at gradobag.it Tue Apr 25 16:40:02 2023 From: gradobag at gradobag.it (Gianluigi) Date: Tue, 25 Apr 2023 16:40:02 +0200 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: <9b22f8bc-8b67-2600-9372-42d7f1865197@gmail.com> References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> <9b22f8bc-8b67-2600-9372-42d7f1865197@gmail.com> Message-ID: Il 25/04/23 16:26, T Lee Davidson ha scritto: > SpinBox is provided by the GTK/Qt components; gb.form is not required. > > When gb.gui is used, my system uses Qt5. Does your system default to > GTK? I tried it with GTK3 and get the same behavior. > Hi Lee, I don't understand, you're using it in a form, what's the reason you don't want to check gb.form? It seems logical that it could give malfunctions. However your test gives the described malfunction, even here with gtk Regards Gianluigi From t.lee.davidson at gmail.com Tue Apr 25 16:57:16 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 25 Apr 2023 10:57:16 -0400 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> <9b22f8bc-8b67-2600-9372-42d7f1865197@gmail.com> Message-ID: On 4/25/23 10:40, Gianluigi wrote: > I don't understand, you're using it in a form, what's the reason you don't?want?to?check?gb.form? > It?seems?logical?that?it?could?give?malfunctions. It is not a matter of whether or not I want to enable the gb.form component. It is simply a matter of it not being required to have a functional graphical application. If I don't need the additional, enhanced controls provided by gb.form, then why enable it? SpinBox is not provided by gb.form and, therefore, its lack of use in the project should have no effect on behavior unless it causes a conflict with another component. And, when trying to isolate a bug, it makes sense to eliminate, as much as possible, any potential causes including component conflicts. -- Lee From gradobag at gradobag.it Tue Apr 25 17:20:06 2023 From: gradobag at gradobag.it (Gianluigi) Date: Tue, 25 Apr 2023 17:20:06 +0200 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> <9b22f8bc-8b67-2600-9372-42d7f1865197@gmail.com> Message-ID: <5480d5d9-2135-cfc3-bf5e-6215830fa950@gradobag.it> Il 25/04/23 16:57, T Lee Davidson ha scritto: > On 4/25/23 10:40, Gianluigi wrote: >> I don't understand, you're using it in a form, what's the reason you >> don't?want?to?check?gb.form? >> It?seems?logical?that?it?could?give?malfunctions. > > It is not a matter of whether or not I want to enable the gb.form > component. It is simply a matter of it not being required to have a > functional graphical application. > > If I don't need the additional, enhanced controls provided by gb.form, > then why enable it? SpinBox is not provided by gb.form and, therefore, > its lack of use in the project should have no effect on behavior > unless it causes a conflict with another component. And, when trying > to isolate a bug, it makes sense to eliminate, as much as possible, > any potential causes including component conflicts. > Hi Lee, It seemed strange to me that you could be wrong and in fact.... I don't know what I saw but here the malfunction exists even if you check gb.form. Maybe in the first test I repositioned the two properties to false, I apologize. The rumbling is confirmed and now I am more serene :-) I wish you a good day Gianluigi From t.lee.davidson at gmail.com Tue Apr 25 17:28:25 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Tue, 25 Apr 2023 11:28:25 -0400 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: <5480d5d9-2135-cfc3-bf5e-6215830fa950@gradobag.it> References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> <9b22f8bc-8b67-2600-9372-42d7f1865197@gmail.com> <5480d5d9-2135-cfc3-bf5e-6215830fa950@gradobag.it> Message-ID: On 4/25/23 11:20, Gianluigi wrote: > Hi?Lee, > > It?seemed?strange?to?me?that?you?could?be?wrong LOL Now why would that seem strange?!! I've been wrong many times! And, thankfully, I've been corrected here when I was. :-) > Maybe in the first test I repositioned the two properties to false, I apologize. No problem, Gianluigi. It quite often helps to have another pair of eyes take a look at a problem. Thank you. -- Lee From shordi at gmail.com Tue Apr 25 18:06:05 2023 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Tue, 25 Apr 2023 18:06:05 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> Message-ID: Right now I just realized that I made a mistake in the version number in the subject of this message. All the problems I have since the last update of the stable repository, that is: 3.18.2 I'm sorry for the confusion. Best Regards El lun, 24 abr 2023 a las 22:55, Gianluigi () escribi?: > Il 24/04/23 18:53, Jorge Carri?n ha scritto: > > I always set the project language to English in translated projects. > > Then do a Spanish translation. Never had a problem before... > > > > Best Regards > > Hi Jorge, > > I had premised that it might not make sense; I have always operated like > you, too. > > I reciprocate with my warmest regards, good night > > Gianluigi > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Tue Apr 25 18:51:12 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Tue, 25 Apr 2023 18:51:12 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> Message-ID: Le 25/04/2023 ? 18:06, Jorge Carri?n a ?crit?: > Right now I just realized that I made a mistake in the version number in > the subject of this message. All the problems I have since the last > update of the stable repository, that is: 3.18.2 > I'm sorry for the confusion. > > Best Regards > Can you provide the project raising the translation error? -- Beno?t Minisini. From kicking177 at gmail.com Wed Apr 26 09:24:35 2023 From: kicking177 at gmail.com (KKing) Date: Wed, 26 Apr 2023 08:24:35 +0100 Subject: [Gambas-user] gb.chart pre-reqs? Message-ID: <2abd5138-15f7-6fee-6b38-cbe6eda95022@gmail.com> Hi Gianluigi > you might try the latest stable version of the component found at this > address: > https://gitlab.com/gambas/gambas/-/tree/stable/comp/src/gb.chart > download the component as a compressed file by clicking on an extension > under Download this directory if instead you do it from Download source > code you download all the source code of Gambas3 stable latest version. > Once you have downloaded the component you unzip it in the traditional > way (it is too complex to be unzipped directly from the IDE). > Open the Gambas IDE and navigate to the folder where you saved > gambas-stable-comp-src-gb.chart > comp > src > gb.chart and Open it. > Now all you have to do is run FTest as usual, if it works it means that > the version of Gambas3 found on Debian 11 by default is buggy. I think I followed that, and FTest looks okay. If I import FTest and some of the data and images into my test project it also looks okay so I will need to look into differences between the wiki code and what is in FTest. many thanks K. From gradobag at gradobag.it Wed Apr 26 10:04:41 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 26 Apr 2023 10:04:41 +0200 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: <2abd5138-15f7-6fee-6b38-cbe6eda95022@gmail.com> References: <2abd5138-15f7-6fee-6b38-cbe6eda95022@gmail.com> Message-ID: <007d7380-f1f8-2f25-9388-01275e5d166c@gradobag.it> Il 26/04/23 09:24, KKing ha scritto: > Hi Gianluigi > >> you might try the latest stable version of the component found at this >> address: >> https://gitlab.com/gambas/gambas/-/tree/stable/comp/src/gb.chart >> download the component as a compressed file by clicking on an extension >> under Download this directory if instead you do it from Download source >> code you download all the source code of Gambas3 stable latest version. >> Once you have downloaded the component you unzip it in the traditional >> way (it is too complex to be unzipped directly from the IDE). >> Open the Gambas IDE and navigate to the folder where you saved >> gambas-stable-comp-src-gb.chart > comp > src > gb.chart and Open it. >> Now all you have to do is run FTest as usual, if it works it means that >> the version of Gambas3 found on Debian 11 by default is buggy. > I think I followed that, and FTest looks okay. > If I import FTest and some of the data and images into my test project > it also looks okay so I will need to look into differences between the > wiki code and what is in FTest. > > many thanks > K. > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Hi King, As is my habit, I did not understand your question. Bruce did. Glad to have helped you anyway, I attach the working example from the wiki (which contained a couple of errors, now corrected and available starting tomorrow). If you don't know how to open it read here: http://gambaswiki.org/wiki/howto/opengmailtxt Regards Gianluigi -------------- next part -------------- H4sIAAAAAAAAA+18B1QT2773hBo6gjRBCEjVCKEEUOmgFEFEitJr6L1JJxQRRIqCdAFFkV5EikoJ XUREQIog0rtI74F8A95z7inve/e9b5137nrr47dChtntv2f/+8zsyFuburrftLGzuexl6uBsjxIA /nogQIghkYdHQTEk4rfHXwAIiogICQkihZGiIgBCUEgMIQzAkP8Dc/kTPNzcTV1hMMDKxtTxP2v3 r+r/l0L+j/zntzJ1MDN1+yvl4Ij/Yv8l/guJCYHtBEWEBI/5/7fgz/y3N3W0+mutwH+f/8JiCKFj /v8d+DP/Tc3dbZwc/936Lyx6zP+/A3/mv4WNK8rc3cnV+y+jcchg0UO//n/jv4jgH/l/5P8Rf9kM /hP8f85/fQWUm527kzPssqO7q7chqbK5k6MkvwC/DXjkd3a0Iv13T/AY/6P4s/7/wvm/jsZ/rv9C ooJion/UfxHhY/3/WxBx/ZoiBempQzWnUFZSuAEAEODwD0oEHgxccyzBA4GbnLIWFIQf1CIcAGCA soKsllfa4mNlewtlnxHcCaeOR8lf7xkO9w5rD0v2DPekJ8AFhM/gh8HqhQj0hWCYzeHabYvt0RCA uXaAp5F4zwJTu2cCrR0k3uHWPWN9pWzDyNCwt9xZWSjuw+LiCammyESBOGWh15NytUvEnEqWtX4C QjvjQxNkm1QHzXV4stTNoQK+AIEsnIoGINAwUQKoFYLYITLUhGEEgOxJxv/ZQsFi3+DAkwc3Xwdy vKyjED24qI6zjJN2a1WVslruyr+PfyMnYzepZ8Ysa2uty1sc/5mEP3YSeYE49Lo0j3FnTGRpm1vJ XOtMEQ8Xhol5D0NrfEK8s463d8ZU6LZEu1Tn5QKHmg0nXE9Z3daSgNRDmCMGb8CesarSc8XmWdp2 spT0hR0mc2qhLSlBQ+v7Gef272Ss+PywOrjtL8V+JQ6OM+JzudcuUXwn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 13W+/uuQ4Jjg9Wq5eqD+wCR3G3d71K8dtA7P+LVQXu5gaw4175/FHH/oY4+yQjlawDxt3GzMftNZ 9aiYX+dn8T/J/a72iMI/Bv9ZxPFbydCV9ULxa1o73VZ2dEe5gvxTtXE8YtVvpn7UUsvb+TfTBk/A Nr9W8B/1+qU5qMBODvJO9k5HQvizh6a7t/2vXY5O+H+2O+x02dHidyKu4Gp628bRStYVZSpofHgC ivqvI920sXC3Bkf6bSN+eXsbMIs5qvqN0NtYWbv/xy1/1v3a9BcahxP5d+v/f2b/D8O8v4LGv4r/ hcWEfrX/h/cCQPt/6AaO7f/fgF/z/0ND/8/kn9T3HwWHkT4MpubkidI0N7VHWfAi4Ai4qAj4ObR2 sqCxdLRCOYAyDkr+P874dVCgUQJbgw00nU3NQWX4p4armbpa2Tj+89z3d/ry2xOw8neEReBIuMgF uDCS76jmspezKWilfh3I/2gwJTknL8Gj7z92F4IjxeFIJPyouz+p/79d845xjGMc4xjHOMYxjnGM YxzjGMc4xjGOcYxjHOMYxzjGMY5xjGMc4xjHOMYxjnGMYxzjGMf4f8f/AdKCQKwAeAAA From shordi at gmail.com Wed Apr 26 10:07:59 2023 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 26 Apr 2023 10:07:59 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> Message-ID: Of course. The simplest of all. -I have done a fresh installation of Linux, to prevent some misconfiguration somewhere. -Languages installed in the system Spanish and English -I have updated the system -I have installed the stable PPA repository -I installed Gambas3 -and I've done this project. The error is repeated as soon as you do the translation. Indicates error in the last position of the first row. As stated here, in the .po file the string "#, fuzzy" should appear on the first line. If that string is manually added as the first line then the error appears in the last position of the second line. If you remove from the .po all the lines before the "#, fuzzy" appears (line 13 of the es_ES.po in the project) the translation works but as soon as you modify any string with the IDE translator the error appears again. Best Regards El mar, 25 abr 2023 a las 18:52, Benoit Minisini (< benoit.minisini at gambas-basic.org>) escribi?: > Le 25/04/2023 ? 18:06, Jorge Carri?n a ?crit : > > Right now I just realized that I made a mistake in the version number in > > the subject of this message. All the problems I have since the last > > update of the stable repository, that is: 3.18.2 > > I'm sorry for the confusion. > > > > Best Regards > > > > Can you provide the project raising the translation error? > > -- > Beno?t Minisini. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: BadTrans.zip Type: application/zip Size: 16281 bytes Desc: not available URL: From shordi at gmail.com Wed Apr 26 10:09:02 2023 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Wed, 26 Apr 2023 10:09:02 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> Message-ID: I forgot the Sys info: [System] Gambas=3.18.2 OperatingSystem=Linux Distribution=Linux Mint 21.1 Vera Kernel=5.15.0-70-generic Architecture=x86_64 Cores=4 Memory=15828M Language=es_ES.UTF-8 Desktop=CINNAMON DesktopResolution=96 DesktopScale=7 WidgetTheme=mint-y-aqua Font=Ubuntu,10 [Programs] gcc=gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0 [Libraries] Cairo=libcairo.so.2.11600.0 Curl=libcurl.so.4.7.0 DBus=libdbus-1.so.3.19.13 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2404.29 GStreamer=libgstreamer-1.0.so.0.2003.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2404.29 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.118.0.0 QT5=libQt5Core.so.5.15.3 RSvg=librsvg-2.so.2.48.0 SDL=libSDL2-2.0.so.0.18.2 SQLite 3=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=5.6.8 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=cinnamon GDM_LANG=es_ES GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4624 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 GTK3_MODULES=xapp-gtk3-module GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=es_ES.UTF-8 LANGUAGE=es_ES.UTF-8 LC_ADDRESS=es_ES.UTF-8 LC_ALL=es_ES.UTF-8 LC_IDENTIFICATION=es_ES.UTF-8 LC_MEASUREMENT=es_ES.UTF-8 LC_MONETARY=es_ES.UTF-8 LC_NAME=es_ES.UTF-8 LC_NUMERIC=es_ES.UTF-8 LC_PAPER=es_ES.UTF-8 LC_TELEPHONE=es_ES.UTF-8 LC_TIME=es_ES.UTF-8 LOGNAME= 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/962,unix/:/tmp/.ICE-unix/962 SHELL=/bin/bash SHLVL=0 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=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 El mi?, 26 abr 2023 a las 10:07, Jorge Carri?n () escribi?: > Of course. The simplest of all. > -I have done a fresh installation of Linux, to prevent some > misconfiguration somewhere. > -Languages installed in the system Spanish and English > -I have updated the system > -I have installed the stable PPA repository > -I installed Gambas3 > -and I've done this project. > The error is repeated as soon as you do the translation. Indicates error > in the last position of the first row. As stated here, in the .po file the > string "#, fuzzy" should appear on the first line. If that string is > manually added as the first line then the error appears in the last > position of the second line. > If you remove from the .po all the lines before the "#, fuzzy" appears > (line 13 of the es_ES.po in the project) the translation works but as soon > as you modify any string with the IDE translator the error appears again. > > Best Regards > > El mar, 25 abr 2023 a las 18:52, Benoit Minisini (< > benoit.minisini at gambas-basic.org>) escribi?: > >> Le 25/04/2023 ? 18:06, Jorge Carri?n a ?crit : >> > Right now I just realized that I made a mistake in the version number >> in >> > the subject of this message. All the problems I have since the last >> > update of the stable repository, that is: 3.18.2 >> > I'm sorry for the confusion. >> > >> > Best Regards >> > >> >> Can you provide the project raising the translation error? >> >> -- >> Beno?t Minisini. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Wed Apr 26 12:11:35 2023 From: kicking177 at gmail.com (KKing) Date: Wed, 26 Apr 2023 11:11:35 +0100 Subject: [Gambas-user] gb.chart pre-reqs? Message-ID: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> Ta, That http://gambaswiki.org/wiki/howto/opengmailtxt could do with an update, as believe those instructions only work with newer versions of Gambas and if using stable version as provided by Debian 11 (currently) you need to do manually as per Christof's example way back in time. you need to strip out the salt tags and then base64 -d? testmakecomp-0.1.8.txt >testmakecomp-0.1.8.tar.gz the file yourself, then you can load as normal K. From gradobag at gradobag.it Wed Apr 26 13:17:35 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 26 Apr 2023 13:17:35 +0200 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> References: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> Message-ID: Il 26/04/23 12:11, KKing ha scritto: > Ta, That http://gambaswiki.org/wiki/howto/opengmailtxt could do with > an update, as believe those instructions only work with newer versions > of Gambas and if using stable version as provided by Debian 11 > (currently) you need to do manually as per Christof's example way back > in time. you need to strip out the salt tags and then > base64 -d? testmakecomp-0.1.8.txt >testmakecomp-0.1.8.tar.gz > the file yourself, then you can load as normal > K. > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- Right consideration, let's ask Lee, who is a native speaker, if he is so kind to add it. Lee did you hear our request? Thank you Regards Gianluigi From bsteers4 at gmail.com Wed Apr 26 14:10:14 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Wed, 26 Apr 2023 13:10:14 +0100 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> References: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> Message-ID: On Wed, 26 Apr 2023 at 11:12, KKing wrote: > Ta, That http://gambaswiki.org/wiki/howto/opengmailtxt could do with an > update, as believe those instructions only work with newer versions of > Gambas and if using stable version as provided by Debian 11 (currently) > you need to do manually as per Christof's example way back in time. you > need to strip out the salt tags and then > base64 -d testmakecomp-0.1.8.txt >testmakecomp-0.1.8.tar.gz > the file yourself, then you can load as normal > K. > So why not log in and update it ? ;) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Wed Apr 26 14:35:06 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Wed, 26 Apr 2023 08:35:06 -0400 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: References: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> Message-ID: <38fa2750-ce0d-44cd-210e-4d5ee8b62768@gmail.com> On 4/26/23 07:17, Gianluigi wrote: > Il 26/04/23 12:11, KKing ha scritto: >> Ta, That http://gambaswiki.org/wiki/howto/opengmailtxt could do with an update, as believe those instructions only work with >> newer versions of Gambas and if using stable version as provided by Debian 11 (currently) you need to do manually as per >> Christof's example way back in time. you need to strip out the salt tags and then >> base64 -d? testmakecomp-0.1.8.txt >testmakecomp-0.1.8.tar.gz >> the file yourself, then you can load as normal >> K. >> >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > > > Right consideration, let's ask Lee, who is a native speaker, if he is so kind to add it. > > Lee did you hear our request? > > Thank you > > Regards > > Gianluigi Yes, I heard you :-) Actually, the example given is quite old, and if it worked for KKing, then I don't know how. I have updated the wiki with information on working with these types of files with an older version of Gambas. -- Lee From gradobag at gradobag.it Wed Apr 26 14:43:22 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 26 Apr 2023 14:43:22 +0200 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: <38fa2750-ce0d-44cd-210e-4d5ee8b62768@gmail.com> References: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> <38fa2750-ce0d-44cd-210e-4d5ee8b62768@gmail.com> Message-ID: Il 26/04/23 14:35, T Lee Davidson ha scritto: > On 4/26/23 07:17, Gianluigi wrote: >> Il 26/04/23 12:11, KKing ha scritto: >>> Ta, That http://gambaswiki.org/wiki/howto/opengmailtxt could do with >>> an update, as believe those instructions only work with newer >>> versions of Gambas and if using stable version as provided by Debian >>> 11 (currently) you need to do manually as per Christof's example way >>> back in time. you need to strip out the salt tags and then >>> base64 -d? testmakecomp-0.1.8.txt >testmakecomp-0.1.8.tar.gz >>> the file yourself, then you can load as normal >>> K. >>> >>> >>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> >> >> Right consideration, let's ask Lee, who is a native speaker, if he is >> so kind to add it. >> >> Lee did you hear our request? >> >> Thank you >> >> Regards >> >> Gianluigi > > Yes, I heard you :-) > > Actually, the example given is quite old, and if it worked for KKing, > then I don't know how. > > I have updated the wiki with information on working with these types > of files with an older version of Gambas. > > Great Lee, always helpful and courteous ? Thank you and regards Gianluigi From benoit.minisini at gambas-basic.org Wed Apr 26 20:54:01 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Wed, 26 Apr 2023 20:54:01 +0200 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> Message-ID: <027542ed-decb-3b7e-67f5-7e7086b282b6@gambas-basic.org> Le 25/04/2023 ? 15:57, T Lee Davidson a ?crit?: > On 4/24/23 15:56, Benoit Minisini wrote: >> Le 24/04/2023 ? 18:10, T Lee Davidson a ?crit?: >>> If I set a SpinBox properties ShowZero and ShowSign to true, and also >>> set MinValue to -100: >>> 1. The control displays 4 zeroes when only 3 are needed, and >>> 2. Setting the value with SpinBox1.Text = "-99" displays "0-99". >>> >>> Is this a bug? >>> >>> >> >> Apparently. Can you provide a full project that reproduces the bug? >> > > Certainly. Attached. > The bug should be fixed by commit https://gitlab.com/gambas/gambas/-/commit/e2e128ea571688c619c3299a30d3109193d8a0db. Regards, -- Beno?t Minisini. From sharon at 455.co.il Wed Apr 26 22:19:10 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 26 Apr 2023 23:19:10 +0300 Subject: [Gambas-user] Gambas AMI For PBX Asterisk Message-ID: <20230426200617.M70658@455.co.il> Hello I tried to build a class for an ASTERISK AMI https://wiki.asterisk.org/wiki/display/AST/The+Asterisk+Manager+TCP+IP+API It works very well I tried it on my switchboard and it does the job well The class can be used freely by anyone who needs it I will gladly accept comments on the code Thank you very much everyone -------------- next part -------------- A non-text attachment was scrubbed... Name: gbAmi.zip Type: application/zip Size: 22577 bytes Desc: not available URL: From gradobag at gradobag.it Wed Apr 26 23:08:12 2023 From: gradobag at gradobag.it (Gianluigi) Date: Wed, 26 Apr 2023 23:08:12 +0200 Subject: [Gambas-user] Bug in SpinBox.Text? In-Reply-To: <027542ed-decb-3b7e-67f5-7e7086b282b6@gambas-basic.org> References: <458b7d54-ee06-d0ae-824b-93330fbdad34@gmail.com> <74620d1e-5532-e0d2-9f47-1fef1c4ccbf6@gmail.com> <027542ed-decb-3b7e-67f5-7e7086b282b6@gambas-basic.org> Message-ID: <0a615429-e844-1d3e-6147-ed4b4a71bdd5@gradobag.it> Il 26/04/23 20:54, Benoit Minisini ha scritto: > Le 25/04/2023 ? 15:57, T Lee Davidson a ?crit?: >> On 4/24/23 15:56, Benoit Minisini wrote: >>> Le 24/04/2023 ? 18:10, T Lee Davidson a ?crit?: >>>> If I set a SpinBox properties ShowZero and ShowSign to true, and >>>> also set MinValue to -100: >>>> 1. The control displays 4 zeroes when only 3 are needed, and >>>> 2. Setting the value with SpinBox1.Text = "-99" displays "0-99". >>>> >>>> Is this a bug? >>>> >>>> >>> >>> Apparently. Can you provide a full project that reproduces the bug? >>> >> >> Certainly. Attached. >> > > The bug should be fixed by commit > https://gitlab.com/gambas/gambas/-/commit/e2e128ea571688c619c3299a30d3109193d8a0db. > > Regards, > Here, with GNU Linux Mint 21.1 works fine Thank you and regards Gianluigi From kicking177 at gmail.com Thu Apr 27 08:01:13 2023 From: kicking177 at gmail.com (KKing) Date: Thu, 27 Apr 2023 07:01:13 +0100 Subject: [Gambas-user] gb.chart pre-reqs? Message-ID: <532f7bda-7bfd-25aa-f85a-10bce3f463f9@gmail.com> > So why not log in and update it ? ? lack of time ... and it was a referral, thought better for those more active or intimate with it .... > Actually, the example given is quite old, and if it worked for KKing, > then I don't know how. Can only confirm it did work for me on Debian 11 K. From gradobag at gradobag.it Thu Apr 27 09:56:31 2023 From: gradobag at gradobag.it (Gianluigi) Date: Thu, 27 Apr 2023 09:56:31 +0200 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: <38fa2750-ce0d-44cd-210e-4d5ee8b62768@gmail.com> References: <76d1fa0d-b903-8a0d-d48b-852ae170ac69@gmail.com> <38fa2750-ce0d-44cd-210e-4d5ee8b62768@gmail.com> Message-ID: Il 26/04/23 14:35, T Lee Davidson ha scritto: > > Actually, the example given is quite old, and if it worked for KKing, > then I don't know how. Hi Lee, I had missed this, for me Fabien's example is still valid, as I said it was a matter of correcting two small typos in the code. Now the code in the wiki appears correct and works here as well with the latest master Best regards Gianluigi From mbelmonte at belmotek.net Thu Apr 27 12:52:05 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Thu, 27 Apr 2023 12:52:05 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> Message-ID: The question is. Why the translation form add this to your es_ES.po before #, fuzzy? /"#-#-#-#-#? #project.pot (BadTrans 3.18.2)? #-#-#-#-#\n"// //"Project-Id-Version: BadTrans 3.18.2\n"// //"POT-Creation-Date: 2023-04-26 07:44 UTC\n"// //"MIME-Version: 1.0\n"// //"Content-Type: text/plain; charset=UTF-8\n"// //"Content-Transfer-Encoding: 8bit\n"// //"#-#-#-#-#? FMain.pot ($(PACKAGE) $(VERSION))? #-#-#-#-#\n"// //"Project-Id-Version: $(PACKAGE) $(VERSION)\n"// //"POT-Creation-Date: 2023-04-26 07:44 UTC\n"// //"MIME-Version: 1.0\n"// //"Content-Type: text/plain; charset=UTF-8\n"// //"Content-Transfer-Encoding: 8bit\n"// / I delete all the .lang content reopen the project and then everything woks ok. Note: The error messages with 1:57 error refers to the line 1 column 57 not the line 57. Best regards. Martin. From kicking177 at gmail.com Thu Apr 27 14:44:26 2023 From: kicking177 at gmail.com (KKing) Date: Thu, 27 Apr 2023 13:44:26 +0100 Subject: [Gambas-user] gb.chart pre-reqs? Message-ID: might be crossed wires my response to > Actually, the example given is quite old, and if it worked for KKing, > then I don't know how. was about having to use command line to unzip the txt file to avoid the gmail issue which I was highlighting the example of how to unzip does not work in older versions of Gambas still pushed out as stable in Debian 11. K. From t.lee.davidson at gmail.com Thu Apr 27 15:43:09 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 27 Apr 2023 09:43:09 -0400 Subject: [Gambas-user] gb.chart pre-reqs? In-Reply-To: References: Message-ID: <1a4ad48e-5f26-6089-34b5-13ba60e9c7ee@gmail.com> On 4/27/23 08:44, KKing wrote: > might be crossed wires > my response to >> Actually, the example given is quite old, and if it worked for KKing, >> then I don't know how. > was about having to use command line to unzip the txt file to avoid the gmail issue which I was highlighting the example of how > to unzip does not work in older versions of Gambas still pushed out as stable in Debian 11. > K. I think I know what you're saying there. However, I need to retract what I said that you quoted. I re-read what you wrote: "you need to strip out the salt tags and then base64 -d testmakecomp-0.1.8.txt >testmakecomp-0.1.8.tar.gz" Somehow, I previously missed that you mentioned stripping out the tags. What you stated should indeed work. Sorry for the misunderstanding. -- Lee From t.lee.davidson at gmail.com Fri Apr 28 01:25:36 2023 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Thu, 27 Apr 2023 19:25:36 -0400 Subject: [Gambas-user] Gambas AMI For PBX Asterisk In-Reply-To: <20230426200617.M70658@455.co.il> References: <20230426200617.M70658@455.co.il> Message-ID: <5024153e-2d19-2c0b-f7cd-096d2b13c78f@gmail.com> On 4/26/23 16:19, Mayost Sharon wrote: > Hello > > I tried to build a class for an ASTERISK AMI > https://wiki.asterisk.org/wiki/display/AST/The+Asterisk+Manager+TCP+IP+API > > It works very well > I tried it on my switchboard and it does the job well > > The class can be used freely by anyone who needs it > > I will gladly accept comments on the code > > Thank you very much everyone I don't know anything about ASTERISK AMI, so I cannot comment much on your code. However, there a couple things I will mention. When you are sending or receiving from an external source, you might want to use TRY so you can recover from any network errors. Line 95 in gbAmi.class is one example. Also, in the Add method of _Action_Keys.class, you are relying on a valid gbAmi instance. You may wish to check if that reference is null before you use it. -- Lee From isafiur at gmail.com Fri Apr 28 06:44:03 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 28 Apr 2023 10:29:03 +0545 Subject: [Gambas-user] Error in JSON decode with large json data Message-ID: Hi I have a large valid JSON file datafile.json When I try to convert into Variant[] sText = File.Load("data/datafile.json") xVar = JSON.Decode(sText) Message.Info(xVar.Count) I get this error Incorrect number [JSON.ReadNumber.213] Attached a project to reproduce it -- Regards Safiur Rahman -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: json.tar.xz Type: application/x-xz Size: 355180 bytes Desc: not available URL: From mbelmonte at belmotek.net Fri Apr 28 09:48:02 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Fri, 28 Apr 2023 09:48:02 +0200 Subject: [Gambas-user] Error in JSON decode with large json data In-Reply-To: References: Message-ID: <33cdb526-b5b5-5fed-b259-5a4f92dd79aa@belmotek.net> El 28/4/23 a las 6:44, Safiur Rahman escribi?: > Incorrect number [JSON.ReadNumber.213] is not an error produced by Gambas, the error is in the json file, check the line 3024 of the file. ??? "ICD": 1e+30, ' it shall be: ??? "ICD": "1E30", Regards. Martin. From mbelmonte at belmotek.net Fri Apr 28 10:51:15 2023 From: mbelmonte at belmotek.net (=?UTF-8?Q?Mart=c3=adn?=) Date: Fri, 28 Apr 2023 10:51:15 +0200 Subject: [Gambas-user] Error in JSON decode with large json data In-Reply-To: <33cdb526-b5b5-5fed-b259-5a4f92dd79aa@belmotek.net> References: <33cdb526-b5b5-5fed-b259-5a4f92dd79aa@belmotek.net> Message-ID: This code solve the problem. Public Sub FileBox1_Change() ? Dim sContent As String ? Dim vData As Variant ? Dim v As Variant ? Dim aContent As String[] ? Dim i As Integer ? Dim sOld As String ? Dim sRep As String ? Dim sKey As String ? If Exist(FileBox1.Value) Then ??? If Stat(FileBox1.Value).Type = gb.File Then ????? If Lower(File.Ext(FileBox1.Value)) = "json" Then ??????? sContent = File.Load(FileBox1.Value) ??????? aContent = Split(sContent, "\n") ??????? For i = 0 To aContent.Max ????????? sOld = aContent[i] ????????? If InStr(sOld, "ICD\": ") > 0 Then ??????????? If Right(sOld, 2) <> "\"," Then ????????????? sKey = Split(Split(Replace(aContent[i - 1], " \"", ""), ":")[1], " ")[0] ????????????? aContent[i] = "??? \"ICD\": \"" & sKey & "\"," ??????????? Endif ????????? Else ??????????? If InStr(sOld, ", ") > 0 And Right(sOld) = "," Then ????????????? sRep = Replace(sOld, ", ", "; ") ????????????? aContent[i] = sRep ??????????? Endif ????????? Endif ??????? Next ??????? File.Save("/tmp/clean.json", aContent.Join("\n")) ??????? vData = JSON.FromString(aContent.Join("\n")) ????? Endif ??? Endif ? Endif End Regards. Martin. From isafiur at gmail.com Fri Apr 28 11:26:52 2023 From: isafiur at gmail.com (Safiur Rahman) Date: Fri, 28 Apr 2023 15:11:52 +0545 Subject: [Gambas-user] Error in JSON decode with large json data In-Reply-To: References: Message-ID: Thank you Martin for your quick response On Fri, 28 Apr 2023, 10:29 Safiur Rahman, wrote: > Hi > > I have a large valid JSON file datafile.json > When I try to convert into Variant[] > sText = File.Load("data/datafile.json") > xVar = JSON.Decode(sText) > Message.Info(xVar.Count) > > I get this error > Incorrect number [JSON.ReadNumber.213] > > Attached a project to reproduce it > > -- > Regards > Safiur Rahman > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Fri Apr 28 12:56:09 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 28 Apr 2023 13:56:09 +0300 Subject: [Gambas-user] Gambas AMI For PBX Asterisk In-Reply-To: <5024153e-2d19-2c0b-f7cd-096d2b13c78f@gmail.com> References: <20230426200617.M70658@455.co.il> <5024153e-2d19-2c0b-f7cd-096d2b13c78f@gmail.com> Message-ID: <20230428103940.M37868@455.co.il> ---------- Original Message ----------- From: T Lee Davidson To: user at lists.gambas-basic.org Sent: Thu, 27 Apr 2023 19:25:36 -0400 Subject: Re: [Gambas-user] Gambas AMI For PBX Asterisk > On 4/26/23 16:19, Mayost Sharon wrote: > > Hello > > > > I tried to build a class for an ASTERISK AMI > > https://wiki.asterisk.org/wiki/display/AST/The+Asterisk+Manager+TCP+IP+API > > > > It works very well > > I tried it on my switchboard and it does the job well > > > > The class can be used freely by anyone who needs it > > > > I will gladly accept comments on the code > > > > Thank you very much everyone > > I don't know anything about ASTERISK AMI, so I cannot comment much on your code. > > However, there a couple things I will mention. > > When you are sending or receiving from an external source, you might want to > use TRY so you can recover from any network errors. Line 95 in gbAmi.class is > one example. > > Also, in the Add method of _Action_Keys.class, you are relying on a valid > gbAmi instance. You may wish to check if that reference is null before you use > it. > > -- > Lee > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- ------- End of Original Message ------- Thank you Indeed, I still have a lot of things to sort out there I haven't gotten to the error reduction part yet Also, I'm going to change a few more things Because my son (he writes in C) told me that there could be a problem Static Public _$h_socket_copy As Socket On line 10 in gbAmi.class He thinks if I use Static So it will be public to all instances The problem was that I need to use h_socket also in the class of _Action_Keys.class And also in the gbAmi.class class That's why it said I need to pass h_socket when I create NEW That is, like this: in the gbAmi.class class Private Function Actions_Read(h_socket As Socket) As _Action_Keys Return $Actions End in the class of _Action_Keys.class Public Sub _new(h_socket As Socket) End This way I can actually use a variable or object in two classes Many thanks again From sharon at 455.co.il Fri Apr 28 15:21:11 2023 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 28 Apr 2023 16:21:11 +0300 Subject: [Gambas-user] Class names Message-ID: <20230428131328.M13716@455.co.il> Hello Is it possible to give a name to the class even if there is a class with such a name in GAMBAS For example: If I want to create a class called: Ami and another class named Connection Because I want to reach: Ami.Connection My connection is a type of TCP communication The Connection class is not a Database Connection Could it conflict with GAMBAS Connection? Or first it is better to give names that are not in GAMBAS Sorry, hope the English translation went well Thank you From bsteers4 at gmail.com Fri Apr 28 17:39:47 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 28 Apr 2023 16:39:47 +0100 Subject: [Gambas-user] Class names In-Reply-To: <20230428131328.M13716@455.co.il> References: <20230428131328.M13716@455.co.il> Message-ID: Your ami class can have a "property" called Connection. Making a class called Connection will conflict/override an existing class of the same name. But the class does not need to be called Connection if the property name is. You can create a class called AmiConnection.class Then in Ami.class Property Connection as AmiConnection For example. On Fri, 28 Apr 2023, 14:22 Mayost Sharon, wrote: > Hello > > Is it possible to give a name to the class even if there is a class with > such a name in GAMBAS > > For example: > If I want to create a class called: > Ami > and another class named > Connection > Because I want to reach: > Ami.Connection > > My connection is a type of TCP communication > The Connection class is not a Database Connection > > Could it conflict with GAMBAS Connection? > > Or first it is better to give names that are not in GAMBAS > > Sorry, hope the English translation went well > > Thank you > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsteers4 at gmail.com Fri Apr 28 17:46:21 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Fri, 28 Apr 2023 16:46:21 +0100 Subject: [Gambas-user] Class names In-Reply-To: References: <20230428131328.M13716@455.co.il> Message-ID: On Fri, 28 Apr 2023, 16:39 Bruce Steers, wrote: > Your ami class can have a "property" called Connection. > > Making a class called Connection will conflict/override an existing class > of the same name. > Additional note: That's only if you are using the component that has Connection.class. If you are not using the component that has Connection.class then you should be able to create a class called Connection.class without problems. > But the class does not need to be called Connection if the property name > is. > > You can create a class called AmiConnection.class > > Then in Ami.class > > Property Connection as AmiConnection > > For example. > > > > On Fri, 28 Apr 2023, 14:22 Mayost Sharon, wrote: > >> Hello >> >> Is it possible to give a name to the class even if there is a class with >> such a name in GAMBAS >> >> For example: >> If I want to create a class called: >> Ami >> and another class named >> Connection >> Because I want to reach: >> Ami.Connection >> >> My connection is a type of TCP communication >> The Connection class is not a Database Connection >> >> Could it conflict with GAMBAS Connection? >> >> Or first it is better to give names that are not in GAMBAS >> >> Sorry, hope the English translation went well >> >> Thank you >> >> ----[ http://gambaswiki.org/wiki/doc/netiquette ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From benoit.minisini at gambas-basic.org Sat Apr 29 12:18:56 2023 From: benoit.minisini at gambas-basic.org (Benoit Minisini) Date: Sat, 29 Apr 2023 12:18:56 +0200 Subject: [Gambas-user] Translation Failure with 3.16.2 In-Reply-To: References: <6158e020-5b6b-b653-e810-feef52ba1694@gambas-basic.org> <06115216-a93e-c64d-b950-5595e2a28201@gradobag.it> Message-ID: <82254434-598b-e6b0-4f0c-115a673706e3@gambas-basic.org> Le 26/04/2023 ? 10:07, Jorge Carri?n a ?crit?: > Of course. The simplest of all. > -I have done a fresh installation of Linux, to prevent some > misconfiguration somewhere. > -Languages installed in the system Spanish and English > -I have updated the system > -I have installed the stable PPA repository > -I installed Gambas3 > -and I've done this project. > The error is repeated as soon as you do the translation. Indicates error > in the last position of the first row. As stated here, in the .po file > the string "#, fuzzy" should appear on the first line. If that string is > manually added as the first line then the error appears in the last > position of the second line. > If you remove from the .po all the lines before the "#, fuzzy" appears > (line 13 of the es_ES.po in the project) the translation works but as > soon as you modify any string with the IDE translator the error appears > again. > > Best Regards I have backported a fix from the development version in the 'stable' branch (that will become 3.18.3). Now, if you open the translation dialog, you still have the error. But if you save the translation, the translation file is automatically fixed. Regards, -- Beno?t Minisini. From bsteers4 at gmail.com Sun Apr 30 23:52:40 2023 From: bsteers4 at gmail.com (Bruce Steers) Date: Sun, 30 Apr 2023 22:52:40 +0100 Subject: [Gambas-user] Keystroke recorder for the IDE :) Message-ID: https://gitlab.com/bsteers4/gambas/-/commit/20781bb43271e624d1bc3bbb83316f49e7692ee9 oooh yeah :) gotta run it through some serious testing yet but ,,, oooh yeah :) BruceS -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Untitled.jpg Type: image/jpeg Size: 123220 bytes Desc: not available URL: