From bagonergi at gmail.com Thu Aug 1 13:32:28 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 1 Aug 2019 13:32:28 +0200 Subject: [Gambas-user] Array in read-only property Message-ID: Hi Benoit, if we want to have a *really* read-only property that returns an array we need the array to be read-only? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu Aug 1 13:38:36 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 1 Aug 2019 13:38:36 +0200 Subject: [Gambas-user] Array in read-only property In-Reply-To: References: Message-ID: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> Le 01/08/2019 ? 13:32, Gianluigi a ?crit?: > Hi Benoit, > if we want to have a *really* read-only property that returns an array > we need the array to be read-only? > > Regards > Gianluigi > Yes. -- Beno?t Minisini From bagonergi at gmail.com Thu Aug 1 13:42:08 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 1 Aug 2019 13:42:08 +0200 Subject: [Gambas-user] Array in read-only property In-Reply-To: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> References: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> Message-ID: Il giorno gio 1 ago 2019 alle ore 13:39 Beno?t Minisini ha scritto: > Le 01/08/2019 ? 13:32, Gianluigi a ?crit : > > Hi Benoit, > > if we want to have a *really* read-only property that returns an array > > we need the array to be read-only? > > > > Regards > > Gianluigi > > > > Yes. > > -- > Beno?t Minisini > Ok, thank you Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Aug 1 15:11:42 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 1 Aug 2019 15:11:42 +0200 Subject: [Gambas-user] Array in read-only property In-Reply-To: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> References: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> Message-ID: Il giorno gio 1 ago 2019 alle ore 13:39 Beno?t Minisini ha scritto: > Le 01/08/2019 ? 13:32, Gianluigi a ?crit : > > Hi Benoit, > > if we want to have a *really* read-only property that returns an array > > we need the array to be read-only? > > > > Regards > > Gianluigi > > > > Yes. > > -- > Beno?t Minisini > If the array is built inside the _Read() function, read-only works well even if there is no error in the write attempt. Only if the array is built outside the function don't work well without putting the array on read-only Corrected? See attached Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Types-0.0.3.tar.gz Type: application/gzip Size: 11720 bytes Desc: not available URL: From gambas.fr at gmail.com Thu Aug 1 15:16:53 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 1 Aug 2019 15:16:53 +0200 Subject: [Gambas-user] How to get report page to repeat multiple times In-Reply-To: References: Message-ID: In fact it is the container who is repeted So imagin a 3 container content for the page The firt panel and the last one have the fixed value to true And the center expand to true Then in the code try Mycenter panel.datacount =2 You will havz two page with the same header and footer Le mer. 31 juil. 2019 19:57, Gianluigi a ?crit : > > > Il giorno mer 31 lug 2019 alle ore 19:47 Struct Engr < > structengr1 at gmail.com> ha scritto: > >> I am trying to use the gb.report2 component to create a multiple page >> report. Each page is to have the same format but with just different >> result values. I have created the single page report template. See >> attached pdf and report file. On the attached pdf I have shaded in pink >> the parts of the page that are to be repeated on all pages unchanged. In >> the middle of the page shaded in yellow is the part which should have the >> same layout on each page but with just different numeric values in the >> tables and different images but same size and location. I have tried using >> ReportPanel and ReportVPanel without success. When I put the containers >> from the middle portion of my report inside either ReportPanel or >> ReportVPanel they seem to disappear. I am asking for suggestions on how I >> can create the multiply page report as described above. Also any >> description of the purpose or the capabilities provided by ReportPanel and >> ReportVPanel would be helpful. >> >> Thanks in advance for your help. Please let me know if more information >> is needed. >> >> Regards, >> Greg >> > > Hi, > in the Software farm in Examples there is ReportTest, maybe it can help > you. > Regards > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Aug 1 20:17:23 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 1 Aug 2019 20:17:23 +0200 Subject: [Gambas-user] Array in read-only property In-Reply-To: References: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> Message-ID: Il giorno gio 1 ago 2019 alle ore 15:11 Gianluigi ha scritto: > > > Il giorno gio 1 ago 2019 alle ore 13:39 Beno?t Minisini > ha scritto: > >> Le 01/08/2019 ? 13:32, Gianluigi a ?crit : >> > Hi Benoit, >> > if we want to have a *really* read-only property that returns an array >> > we need the array to be read-only? >> > >> > Regards >> > Gianluigi >> > >> >> Yes. >> >> -- >> Beno?t Minisini >> > > If the array is built inside the _Read() function, read-only works well > even if there is no error in the write attempt. > Only if the array is built outside the function don't work well without > putting the array on read-only > Corrected? > See attached > > Regards > Gianluigi > I hope that what I was asking is more clearer. See in CTypes the instructions for the attached program. Regards gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestReadOnly-0.0.1.tar.gz Type: application/gzip Size: 11777 bytes Desc: not available URL: From g4mba5 at gmail.com Thu Aug 1 20:32:51 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 1 Aug 2019 20:32:51 +0200 Subject: [Gambas-user] Array in read-only property In-Reply-To: References: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> Message-ID: Le 01/08/2019 ? 20:17, Gianluigi a ?crit?: > I hope that what I was asking is more clearer. Sorry, I don't understand what your problem is. The ReadOnly property makes an array read-only until the end of the program, that's all. It's useful for a class that has an internal array that must be made available to the outside user, but without letting it be modified by him. Regards, -- Beno?t Minisini From bagonergi at gmail.com Fri Aug 2 00:07:47 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 2 Aug 2019 00:07:47 +0200 Subject: [Gambas-user] Array in read-only property In-Reply-To: References: <615eb2cf-af0b-c9ab-73e9-22ae01294aab@gmail.com> Message-ID: Il giorno gio 1 ago 2019 alle ore 20:32 Beno?t Minisini ha scritto: > Le 01/08/2019 ? 20:17, Gianluigi a ?crit : > > I hope that what I was asking is more clearer. > > Sorry, I don't understand what your problem is. > > The ReadOnly property makes an array read-only until the end of the > program, that's all. > > It's useful for a class that has an internal array that must be made > available to the outside user, but without letting it be modified by him. > > Regards, > > -- > Beno?t Minisini > Hi, unfortunately, as often happens to me, I made a mistake and sent the answers directly to Benoit. :-( Which, in conclusion, told me that a property (read-only) is a function and an array (read-only) is an object. :-) All right, I know I'm bumbling and I deserve it and Benoit is also too kind and helpful and I thanked him and thank him again. Except I haven't well understand yet what the difference is and when using, in a class, a normal array that is returned in read-only from a read property and a read-only array. Regards and goodnight Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Sat Aug 3 05:59:36 2019 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Fri, 2 Aug 2019 23:59:36 -0400 Subject: [Gambas-user] dangerous patent act for Message-ID: hi you all guys.. i'mm very off from gambas list ... Benoit, Tobias.. Fabien.. Cristof, Hans.. god damn sorry for post that due are offtopic realted respect gambas, but seems this are very important! https://www.fsf.org/blogs/community/strengthen-free-software-by-telling-congress-to-reject-the-stronger-patents-act in 2017 was the first try.. now in july was reintroduced! all of our software are just implementing "draft"'s of the standars??? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sat Aug 3 16:29:47 2019 From: adamnt42 at gmail.com (Adam Ant) Date: Sat, 3 Aug 2019 23:59:47 +0930 Subject: [Gambas-user] dangerous patent act for In-Reply-To: References: Message-ID: Yet again. It is impossible to patent an "idea". It is only possible to patent an invention. I have an idea that oxygen is necessary to sustain life on this planet. Does that mean that I now own all the oxygen? Best regards B On Sat, Aug 3, 2019, 1:30 PM PICCORO McKAY Lenz wrote: > hi you all guys.. i'mm very off from gambas list ... Benoit, Tobias.. > Fabien.. Cristof, Hans.. god damn sorry for post that due are offtopic > realted respect gambas, but seems this are very important! > > > https://www.fsf.org/blogs/community/strengthen-free-software-by-telling-congress-to-reject-the-stronger-patents-act > > > in 2017 was the first try.. now in july was reintroduced! > > all of our software are just implementing "draft"'s of the standars??? > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Aug 3 17:58:33 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 3 Aug 2019 17:58:33 +0200 Subject: [Gambas-user] Windows Style Message-ID: Is it possible to get a windows type without title but with the border style drawed (I mean Border and at least shadow ?) -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Aug 3 18:02:06 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 3 Aug 2019 18:02:06 +0200 Subject: [Gambas-user] dangerous patent act for In-Reply-To: References: Message-ID: Le sam. 3 ao?t 2019 ? 16:31, Adam Ant a ?crit : > Yet again. It is impossible to patent an "idea". It is only possible to > patent an invention. I have an idea that oxygen is necessary to sustain > life on this planet. Does that mean that I now own all the oxygen? > Best regards > B > In USA yes :-) Just take a look about Recursive Compression algo or others ... many patent are versed even if we don't know if can be possible one day . Because if and inventory find it ... the patent owner become more owner of the invention than the inventor ... In fact it was working a bit like that before the FSF Licences. > > On Sat, Aug 3, 2019, 1:30 PM PICCORO McKAY Lenz > wrote: > >> hi you all guys.. i'mm very off from gambas list ... Benoit, Tobias.. >> Fabien.. Cristof, Hans.. god damn sorry for post that due are offtopic >> realted respect gambas, but seems this are very important! >> >> >> https://www.fsf.org/blogs/community/strengthen-free-software-by-telling-congress-to-reject-the-stronger-patents-act >> >> >> in 2017 was the first try.. now in july was reintroduced! >> >> all of our software are just implementing "draft"'s of the standars??? >> >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterpeyotle at gmx.de Sun Aug 4 10:55:06 2019 From: peterpeyotle at gmx.de (Peter Peyotle) Date: Sun, 4 Aug 2019 10:55:06 +0200 Subject: [Gambas-user] Problem with Settings Message-ID: <267a24bc-70b9-0888-2545-bd19c38d74bb@gmx.de> hello and good day, I have a problem with the settings. At least in understanding. I have a form with 2 classes. Class 1 and Class 2. Each class has its own Settingsobject myClass. Legend Settings objects refer to the same configuration file, for example: mySettings = New Settings (Application.Path & "/" & Application.Name & ".conf") In class 2 the settings are written and saved: mySettings ["test / teststring"] = setString mySettings.save in class 1 the settings are read out. In the upper window of the example, the text is entered and read via the button and output (see the example appendix). If I enter "Hello" as the setting text, nothing is read at first. I finish the application (or the class). If I then enter another text, "Hello" will be read out. With another input, the next to last text is always read out. I know that these are two different objects. But they access the same config file, in which the settings are saved, and yet they should read the stored values ??correctly and not offset them. Or is the text saved to the hard disk when the application exits? But with mySettings.save this should already have happened? What did not I understand there? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: setTest-0.0.1.tar.gz Type: application/gzip Size: 12186 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Aug 4 17:14:43 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 4 Aug 2019 18:14:43 +0300 Subject: [Gambas-user] Problem with Settings In-Reply-To: <267a24bc-70b9-0888-2545-bd19c38d74bb@gmx.de> References: <267a24bc-70b9-0888-2545-bd19c38d74bb@gmx.de> Message-ID: By very quick look, I think "New Settings" will create new empty settings file. Instead use it as static class. Jussi On Sun, Aug 4, 2019 at 11:56 AM Peter Peyotle wrote: > hello and good day, > > I have a problem with the settings. At least in understanding. > I have a form with 2 classes. Class 1 and Class 2. > Each class has its own Settingsobject myClass. > Legend Settings objects refer to the same configuration file, for example: > mySettings = New Settings (Application.Path & "/" & Application.Name & > ".conf") > In class 2 the settings are written and saved: mySettings ["test / > teststring"] = setString > mySettings.save > in class 1 the settings are read out. > In the upper window of the example, the text is entered and read via the > button and output (see the example appendix). > If I enter "Hello" as the setting text, nothing is read at first. > I finish the application (or the class). > If I then enter another text, "Hello" will be read out. With another > input, the next to last text is always read out. > I know that these are two different objects. But they access the same > config file, in which the settings are saved, and yet they should read the > stored values ??correctly and not offset them. > Or is the text saved to the hard disk when the application exits? But with > mySettings.save this should already have happened? > What did not I understand there? > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Sun Aug 4 17:58:07 2019 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 4 Aug 2019 16:58:07 +0100 Subject: [Gambas-user] Problem with Settings In-Reply-To: <267a24bc-70b9-0888-2545-bd19c38d74bb@gmx.de> References: <267a24bc-70b9-0888-2545-bd19c38d74bb@gmx.de> Message-ID: Hi Peter, Have a look at the attached program. Charlie On 04/08/2019 09:55, Peter Peyotle wrote: > > hello and good day, > > I have a problem with the settings. At least in understanding. > I have a form with 2 classes. Class 1 and Class 2. > Each class has its own Settingsobject myClass. > Legend Settings objects refer to the same configuration file, for > example: mySettings = New Settings (Application.Path & "/" & > Application.Name & ".conf") > In class 2 the settings are written and saved: mySettings ["test / > teststring"] = setString > mySettings.save > in class 1 the settings are read out. > In the upper window of the example, the text is entered and read via > the button and output (see the example appendix). > If I enter "Hello" as the setting text, nothing is read at first. > I finish the application (or the class). > If I then enter another text, "Hello" will be read out. With another > input, the next to last text is always read out. > I know that these are two different objects. But they access the same > config file, in which the settings are saved, and yet they should read > the stored values ??correctly and not offset them. > Or is the text saved to the hard disk when the application exits? But > with mySettings.save this should already have happened? > What did not I understand there? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: setTest.tar.gz Type: application/gzip Size: 13542 bytes Desc: not available URL: From g4mba5 at gmail.com Mon Aug 5 00:15:39 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 5 Aug 2019 00:15:39 +0200 Subject: [Gambas-user] Holidays Message-ID: Hi, I'm leaving Internet for two weeks. I will be back August, 19th deo volente, and will release Gambas Pi that week if I don't find annoying bugs to fix then! Regards, -- Beno?t Minisini From shordi at gmail.com Mon Aug 5 00:57:57 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Mon, 5 Aug 2019 00:57:57 +0200 Subject: [Gambas-user] Holidays In-Reply-To: References: Message-ID: Have a good time, boss!! El lun., 5 ago. 2019 0:16, Beno?t Minisini escribi?: > Hi, > > I'm leaving Internet for two weeks. I will be back August, 19th deo > volente, and will release Gambas Pi that week if I don't find annoying > bugs to fix then! > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Aug 5 07:54:14 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 5 Aug 2019 07:54:14 +0200 Subject: [Gambas-user] Holidays In-Reply-To: References: Message-ID: Am 05.08.19 um 00:15 schrieb Beno?t Minisini: > I'm leaving Internet for two weeks. I will be back August, 19th deo > volente, and will release Gambas Pi that week if I don't find annoying > bugs to fix then! I wish you happy holidays! Gambas ? sounds very cool. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Mon Aug 5 09:28:16 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 5 Aug 2019 09:28:16 +0200 Subject: [Gambas-user] Holidays In-Reply-To: References: Message-ID: Il giorno lun 5 ago 2019 alle ore 00:16 Beno?t Minisini ha scritto: > Hi, > > I'm leaving Internet for two weeks. I will be back August, 19th deo > volente, and will release Gambas Pi that week if I don't find annoying > bugs to fix then! > > Regards, > > -- > Beno?t Minisini > ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vuott at tiscali.it Tue Aug 6 13:05:00 2019 From: vuott at tiscali.it (vuott at tiscali.it) Date: Tue, 06 Aug 2019 13:05:00 +0200 Subject: [Gambas-user] Structure array, at second reading, always gives the value of the last element Message-ID: <92a29dd9d3b64c34e30616dbb7a58b1b@tiscali.it> Hello, I don't understand why at the second reading of a Structure array I always get the value of the last element. Public Struct AAAA b As Byte c As Short i As Integer End Struct Public Sub Main() Dim a As New AAAA Dim aa As New AAAA[] Dim i As Integer For i = 0 To 7 aa.Push(a) Valorizza(i, aa[i]) Print aa[i].b, ' first Next Print Print For i = 0 To 7 Print aa[i].b, ' second Next End Private Procedure Valorizza(c As Integer, s As AAAA) s.b = 4 * c End Con OpenStar hai Giga, SMS e i minuti che vuoi da 4,99? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 6 mesi di INFINTY! http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From d4t4full at gmail.com Tue Aug 6 14:32:31 2019 From: d4t4full at gmail.com (ML) Date: Tue, 6 Aug 2019 09:32:31 -0300 Subject: [Gambas-user] Structure array, at second reading, always gives the value of the last element In-Reply-To: <92a29dd9d3b64c34e30616dbb7a58b1b@tiscali.it> References: <92a29dd9d3b64c34e30616dbb7a58b1b@tiscali.it> Message-ID: <57d931f9-62d7-9893-67cb-c7d966c88074@gmail.com> On 6/8/19 08:05, vuott at tiscali.it wrote: > Hello, > I don?t understand why at the second reading of a Structure array I > always get the value of the last element. > |Public Struct AAAA ? b As Byte ? c As Short ? i As Integer End Struct > Public Sub Main() ? Dim a As New AAAA ? Dim aa As New AAAA[] ? Dim i > As Integer ? ? For i = 0 To 7 ? ? aa.Push(a) ? ? Valorizza(i, aa[i]) ? > ? Print aa[i].b,? ? ? ' first ? Next Print Print ? For i = 0 To 7 ? ? > Print aa[i].b,? ? ? ' second ? Next End Private Procedure Valorizza(c > As Integer, s As AAAA) ? ? s.b = 4 * c ? End| Looks like all the structs in the array refer (i.e: they're pointers) to the same 'a' struct in the first DIM. Therefore, when you change the value in ANY element, you end up changing it in all elements just because they're all pointing to the same original 'a'. Change the first DIM to this: |? Dim a As AAAA | and alter the first FOR as follows: |? For i = 0 To 7 a = New AAAA 'New line. This makes 'a' point to a new, different structure in memory in each pass ? ? aa.Push(a) 'continue your original code here | That fixes it. zxMarce. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Tue Aug 6 14:44:32 2019 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Tue, 6 Aug 2019 08:44:32 -0400 Subject: [Gambas-user] dangerous patent act for In-Reply-To: References: Message-ID: I take a look around the standars by example.. the GCC C++XX standars.. are all based on drafts! not final versions.. i a suramerica country (i dont remenber if was Bolivia) wanted to privatize water! nonsense! and many more.. El s?b., 3 de ago. de 2019 a la(s) 12:03, Fabien Bodard (gambas.fr at gmail.com) escribi?: > > > > Le sam. 3 ao?t 2019 ? 16:31, Adam Ant a ?crit : >> >> Yet again. It is impossible to patent an "idea". It is only possible to patent an invention. I have an idea that oxygen is necessary to sustain life on this planet. Does that mean that I now own all the oxygen? >> Best regards >> B > > > In USA yes :-) > > Just take a look about Recursive Compression algo or others ... many patent are versed even if we don't know if can be possible one day . Because if and inventory find it ... the patent owner become more owner of the invention than the inventor ... In fact it was working a bit like that before the FSF Licences. > >> >> >> On Sat, Aug 3, 2019, 1:30 PM PICCORO McKAY Lenz wrote: >>> >>> hi you all guys.. i'mm very off from gambas list ... Benoit, Tobias.. Fabien.. Cristof, Hans.. god damn sorry for post that due are offtopic realted respect gambas, but seems this are very important! >>> >>> https://www.fsf.org/blogs/community/strengthen-free-software-by-telling-congress-to-reject-the-stronger-patents-act >>> >>> in 2017 was the first try.. now in july was reintroduced! >>> >>> all of our software are just implementing "draft"'s of the standars??? >>> >>> >>> Lenz McKAY Gerardo (PICCORO) >>> http://qgqlochekone.blogspot.com >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From vuott at tiscali.it Tue Aug 6 15:24:37 2019 From: vuott at tiscali.it (vuott at tiscali.it) Date: Tue, 06 Aug 2019 15:24:37 +0200 Subject: [Gambas-user] Structure array, at second reading, always gives the value of the last element In-Reply-To: <57d931f9-62d7-9893-67cb-c7d966c88074@gmail.com> References: <92a29dd9d3b64c34e30616dbb7a58b1b@tiscali.it> <57d931f9-62d7-9893-67cb-c7d966c88074@gmail.com> Message-ID: <1b2cd0628427dd28b102cd6a44e2adab@tiscali.it> Oooh yes, you are right. I knew this procedure, but I have forgotten it totally. thanks Il 06.08.2019 14:32 ML ha scritto: > On 6/8/19 08:05, vuott at tiscali.it [1] wrote: > >> Hello, >> I don't understand why at the second reading of a Structure array I always get the value of the last element. >> >> Public Struct AAAA b As Byte c As Short i As Integer End Struct Public Sub Main() Dim a As New AAAA Dim aa As New AAAA[] Dim i As Integer For i = 0 To 7 aa.Push(a) Valorizza(i, aa[i]) Print aa[i].b, ' first Next Print Print For i = 0 To 7 Print aa[i].b, ' second Next End Private Procedure Valorizza(c As Integer, s As AAAA) s.b = 4 * c End > Looks like all the structs in the array refer (i.e: they're pointers) to the same 'a' struct in the first DIM. > Therefore, when you change the value in ANY element, you end up changing it in all elements just because they're all pointing to the same original 'a'. > > Change the first DIM to this: > > Dim a As AAAA > and alter the first FOR as follows: > > For i = 0 To 7 a = New AAAA 'New line. This makes 'a' point to a new, different structure in memory in each pass aa.Push(a) 'continue your original code here > That fixes it. > > zxMarce. Con OpenStar hai Giga, SMS e i minuti che vuoi da 4,99? al mese, per sempre. Cambi gratis quando e come vuoi e in pi? hai 6 mesi di INFINTY! http://tisca.li/myopen -------------- next part -------------- An HTML attachment was scrubbed... URL: From simonlebon54 at yahoo.com Tue Aug 6 23:52:00 2019 From: simonlebon54 at yahoo.com (Steve G) Date: Tue, 06 Aug 2019 13:52:00 -0800 Subject: [Gambas-user] Printing multiple pages Message-ID: It seems I have the same problem a lot of other people do. I am creating documents to print in gambas. I have no problem figuring out how many pages there are ahead of time. I have documents that are one page and they show up fine including in print preview. My problem is when I need to print multiple pages I can get multiple pages but they are all copies of the same page. Or I end up with both pages superimposed over each other on a single page. I cannot for the life of me figure out how to tell something to print on a different page. One example, is I am trying to print a report. The report can be multiple Pages or could be one page. A footer goes at the bottom of only the last page and it takes up a certain amount of room. This means that on a three-page document I can fit a certain amount on pages 1 and 2, but on page 3 I can only fit that amount minus the amount of room needed for the footer. I can calculate this without any problem. But I can't find a way to tell gambas that I need to put something on a different page. I've tried increasing y values I have tried looking over the example and I cannot for the life of me get this to print pages the way I need. The simple of it would be telling me how to make information appear on page 2 instead of page one. My brain is hurting from this, can I get some help please? ?Sent from TypeApp ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From structengr1 at gmail.com Fri Aug 9 16:58:58 2019 From: structengr1 at gmail.com (Struct Engr) Date: Fri, 9 Aug 2019 09:58:58 -0500 Subject: [Gambas-user] How to get report page to repeat multiple times In-Reply-To: References: Message-ID: Fabien, Thanks for the suggestion. I believe I have tried what you suggested but I am not getting it to work. I put the middle section of the report in a ReportPanel for it to be repeated on multiple pages. I set expand to true for this ReportPanel and also the datacount = 2. See the attached image "reportdesign.png" of the report in the report designer. I set the border of the ReportPanel to the color violet so that it can be easily identified. We I display the report in print preview, everything inside the middle ReportPanel disappears and the total numbers of pages scrolls out of control. See attached image "preview.png" for the view of the report in print preview. Any help or suggestions you can offer to correct the missing containers/data in the ReportPanel would be appreciated. I have attached the OutputReport.report file in case it will help in discovering the problem. If more information is needed please ask. Thanks, Greg On Thu, Aug 1, 2019 at 8:18 AM Fabien Bodard wrote: > In fact it is the container who is repeted > > So imagin a 3 container content for the page > > The firt panel and the last one have the fixed value to true > > And the center expand to true > > Then in the code try > > Mycenter panel.datacount =2 > > > You will havz two page with the same header and footer > > > > Le mer. 31 juil. 2019 19:57, Gianluigi a ?crit : > >> >> >> Il giorno mer 31 lug 2019 alle ore 19:47 Struct Engr < >> structengr1 at gmail.com> ha scritto: >> >>> I am trying to use the gb.report2 component to create a multiple page >>> report. Each page is to have the same format but with just different >>> result values. I have created the single page report template. See >>> attached pdf and report file. On the attached pdf I have shaded in pink >>> the parts of the page that are to be repeated on all pages unchanged. In >>> the middle of the page shaded in yellow is the part which should have the >>> same layout on each page but with just different numeric values in the >>> tables and different images but same size and location. I have tried using >>> ReportPanel and ReportVPanel without success. When I put the containers >>> from the middle portion of my report inside either ReportPanel or >>> ReportVPanel they seem to disappear. I am asking for suggestions on how I >>> can create the multiply page report as described above. Also any >>> description of the purpose or the capabilities provided by ReportPanel and >>> ReportVPanel would be helpful. >>> >>> Thanks in advance for your help. Please let me know if more information >>> is needed. >>> >>> Regards, >>> Greg >>> >> >> Hi, >> in the Software farm in Examples there is ReportTest, maybe it can help >> you. >> Regards >> Gianluigi >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: reportdesign.png Type: image/png Size: 49444 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: preview.png Type: image/png Size: 62803 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OutputReport.report Type: application/octet-stream Size: 10175 bytes Desc: not available URL: From gambas.fr at gmail.com Sat Aug 10 20:05:14 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 10 Aug 2019 20:05:14 +0200 Subject: [Gambas-user] Printing multiple pages In-Reply-To: References: Message-ID: Do you use gb.report ? Le mar. 6 ao?t 2019 23:53, Steve G via User a ?crit : > It seems I have the same problem a lot of other people do. I am creating > documents to print in gambas. I have no problem figuring out how many pages > there are ahead of time. I have documents that are one page and they show > up fine including in print preview. My problem is when I need to print > multiple pages I can get multiple pages but they are all copies of the same > page. Or I end up with both pages superimposed over each other on a single > page. I cannot for the life of me figure out how to tell something to print > on a different page. > One example, is I am trying to print a report. The report can be multiple > Pages or could be one page. A footer goes at the bottom of only the last > page and it takes up a certain amount of room. This means that on a > three-page document I can fit a certain amount on pages 1 and 2, but on > page 3 I can only fit that amount minus the amount of room needed for the > footer. I can calculate this without any problem. But I can't find a way to > tell gambas that I need to put something on a different page. I've tried > increasing y values I have tried looking over the example and I cannot for > the life of me get this to print pages the way I need. The simple of it > would be telling me how to make information appear on page 2 instead of > page one. My brain is hurting from this, can I get some help please? > > Sent from TypeApp > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Aug 16 08:45:39 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 16 Aug 2019 08:45:39 +0200 Subject: [Gambas-user] Everybody in holidays? Message-ID: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> Noone Gambassing? Mailinglist alive? ;-) Alles Gute Christof Thalhofer -- This is not a signature -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From rwe-sse at osnanet.de Fri Aug 16 08:51:12 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Fri, 16 Aug 2019 08:51:12 +0200 Subject: [Gambas-user] Everybody in holidays? In-Reply-To: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> References: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> Message-ID: <51d6ce17-1050-1b0e-6095-b83d56d7bba9@osnanet.de> Am 16.08.19 um 08:45 schrieb Christof Thalhofer: > Noone Gambassing? > Mailinglist alive? > > ;-) > > Alles Gute > > Christof Thalhofer > Just returned, 1st school day yesterday. Regards Rolf From matthew.charles.collins.75 at gmail.com Fri Aug 16 09:19:43 2019 From: matthew.charles.collins.75 at gmail.com (Matthew Collins) Date: Fri, 16 Aug 2019 08:19:43 +0100 Subject: [Gambas-user] Everybody in holidays? In-Reply-To: <51d6ce17-1050-1b0e-6095-b83d56d7bba9@osnanet.de> References: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> <51d6ce17-1050-1b0e-6095-b83d56d7bba9@osnanet.de> Message-ID: <0B02CF72-52E5-4D2E-B6B6-D1AD91FF2485@gmail.com> Hi, I have a pull request "gbt3" (2 weeks old) if anyone wants to take a look ? Cheers Matt On 16 Aug 2019, at 07:51, Rolf-Werner Eilert wrote: > Am 16.08.19 um 08:45 schrieb Christof Thalhofer: > Noone Gambassing? > Mailinglist alive? > ;-) > Alles Gute > Christof Thalhofer Just returned, 1st school day yesterday. Regards Rolf ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From bagonergi at gmail.com Fri Aug 16 11:31:09 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 16 Aug 2019 11:31:09 +0200 Subject: [Gambas-user] Everybody in holidays? In-Reply-To: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> References: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> Message-ID: Here! Regards Gianluigi Il giorno ven 16 ago 2019 alle ore 08:46 Christof Thalhofer < chrisml at deganius.de> ha scritto: > Noone Gambassing? > Mailinglist alive? > > ;-) > > Alles Gute > > Christof Thalhofer > > -- > This is not a signature > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Aug 16 19:58:45 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 16 Aug 2019 19:58:45 +0200 Subject: [Gambas-user] Everybody in holidays? In-Reply-To: References: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> Message-ID: <0b8060f3-48a8-946e-564b-d0e279bc6bdf@deganius.de> Am 16.08.19 um 11:31 schrieb Gianluigi: > Here! > > Regards > Gianluigi Thank you! I see I have not to worry .. :-) Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From ujlain at gmail.com Sat Aug 17 08:27:07 2019 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Sat, 17 Aug 2019 11:57:07 +0530 Subject: [Gambas-user] How do I use tag property for a group of timers ? Message-ID: <5bb78e91-ff87-e27c-cf33-69ffa493584f@gmail.com> Please see attached code I am having an *array* of *struct* wherein a member of struct is a timer. Thus I have a set of timers firing. Since timer object doesn't have a *tag* property , how do I figure out which timer has fired ? Warm regards, Vinode Singh Ujlain ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: testStructTmr.zip Type: application/zip Size: 15121 bytes Desc: not available URL: From adamnt42 at gmail.com Sat Aug 17 11:34:39 2019 From: adamnt42 at gmail.com (Bruce) Date: Sat, 17 Aug 2019 19:04:39 +0930 Subject: [Gambas-user] How do I use tag property for a group of timers ? In-Reply-To: <5bb78e91-ff87-e27c-cf33-69ffa493584f@gmail.com> References: <5bb78e91-ff87-e27c-cf33-69ffa493584f@gmail.com> Message-ID: Well, not to answer your question, we have uo to several hundred timers running during an auction .... each is defined within an object of a class that only knows of one timer and raises an event with the "key" of the timer class concerned. IOW, I don't think you can do this with a struct. Others mileage may vary. b On 17/8/19 3:57 pm, Vinode Singh Ujlain wrote: > Please see attached code > I am having an *array* of *struct* wherein a member of struct is a > timer. Thus I have a set of timers firing. > Since timer object doesn't have a *tag* property , how do I figure out > which timer has fired ? > > Warm regards, > Vinode Singh Ujlain > ------------------------------------------------------------------------ > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From taboege at gmail.com Sat Aug 17 13:26:00 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 17 Aug 2019 13:26:00 +0200 Subject: [Gambas-user] How do I use tag property for a group of timers ? In-Reply-To: <5bb78e91-ff87-e27c-cf33-69ffa493584f@gmail.com> References: <5bb78e91-ff87-e27c-cf33-69ffa493584f@gmail.com> Message-ID: <20190817112600.GA24397@highrise.localdomain> On Sat, 17 Aug 2019, Vinode Singh Ujlain wrote: > Please see attached code > I am having an *array* of *struct* wherein a member of struct is a timer. > Thus I have a set of timers firing. > Since timer object doesn't have a *tag* property , how do I figure out which > timer has fired ? > Bruce gave a good answer to resolve this in an orderly manner. That just leaves me with the obligatory dubious answer. You can extend the built-in Timer class and add a Tag property if you find that you need it frequently. This works by declaring a class named "Timer" in your project and marking it as "Export". What will happen is that this class replaces the built-in Timer class during class loading *using inheritance* [1]. So as long as there are no symbol conflicts (which there won't be as you just declare a new Tag property in your Timer class), the composed Timer contains the features of both versions. Example attached. Regards, Tobi [1] http://gambaswiki.org/wiki/doc/object-model#t23 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: override-timer-0.0.1.tar.gz Type: application/gzip Size: 11585 bytes Desc: not available URL: From nando_f at nothingsimple.com Sat Aug 17 16:08:53 2019 From: nando_f at nothingsimple.com (nando_f at nothingsimple.com) Date: Sat, 17 Aug 2019 10:08:53 -0400 Subject: [Gambas-user] How do I use tag property for a group of timers ? In-Reply-To: References: <5bb78e91-ff87-e27c-cf33-69ffa493584f@gmail.com> Message-ID: <20190817135715.M35783@nothingsimple.com> == A possible idea is == If you have an array of struct wherein a member of struct is a timer then just add another parallel member that is your tag. pseudo code: struct object <--> mytimer string <--> mytag End ... myarray array[1...100] of struct ... myarray[17].mytag = "17" myarray[17].mytimer.start -- Open WebMail Project (http://openwebmail.org) ---------- Original Message ----------- From: Bruce To: user at lists.gambas-basic.org Sent: Sat, 17 Aug 2019 19:04:39 +0930 Subject: Re: [Gambas-user] How do I use tag property for a group of timers ? > Well, not to answer your question, we have uo to several hundred timers > running during an auction .... each is defined within an object of a > class that only knows of one timer and raises an event with the "key" of > the timer class concerned. > > IOW, I don't think you can do this with a struct. Others mileage may vary. > b > > On 17/8/19 3:57 pm, Vinode Singh Ujlain wrote: > > Please see attached code > > I am having an *array* of *struct* wherein a member of struct is a > > timer. Thus I have a set of timers firing. > > Since timer object doesn't have a *tag* property , how do I figure out > > which timer has fired ? > > > > Warm regards, > > Vinode Singh Ujlain > > ------------------------------------------------------------------------ > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From taboege at gmail.com Sat Aug 17 17:03:39 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 17 Aug 2019 17:03:39 +0200 Subject: [Gambas-user] How do I use tag property for a group of timers ? In-Reply-To: <20190817135715.M35783@nothingsimple.com> References: <5bb78e91-ff87-e27c-cf33-69ffa493584f@gmail.com> <20190817135715.M35783@nothingsimple.com> Message-ID: <20190817150339.GB24397@highrise.localdomain> On Sat, 17 Aug 2019, nando_f at nothingsimple.com wrote: > == A possible idea is == > If you have an array of struct wherein a member of struct is a timer > then just add another parallel member that is your tag. > > pseudo code: > struct > object <--> mytimer > string <--> mytag > End > > ... > > myarray array[1...100] of struct > > ... > > myarray[17].mytag = "17" > myarray[17].mytimer.start > I'm pretty sure Vinode was aware of this possibility already. The problem is that inside the Timer event handler, you only get a reference to the Timer object that raised it. To get the tag that lives besides it in the struct, you would have to iterate over the array, look for the struct that contains the current timer and then you will have found the tag as well. This is a lot of work for every tick of every timer. The solution Bruce proposed to this is to encapsulate the timer and the tag in a new class which captures and propagates the events of its internal timer. This way, the entire object -- timer and tag -- raise the event to the outside and all the data is immediately available in the event handler. Catching and raising events is something a struct cannot do. It has to be a class. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at gmail.com Sun Aug 18 12:30:59 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Aug 2019 20:00:59 +0930 Subject: [Gambas-user] Simplest way to open a URL in a browser Message-ID: (Probably anonther dumb one) Let's say I have a URL displayed in a URLLabel control. What is the simplest way to implement open that URL in the user's preferred web browser? Say with a single click. Only a few requirements: * desktop independent (I don't know whether they have a "default browser" or whatever * open the browser in a new window (independent of the desktop) * independent of the GUI involved in the current gambas project (???) * get a fairly clear indication of anything that (may or does) go wrong. Not too hard is it? So how come I can't do it? ;-( (Age may be a factor). tia bruce From adamnt42 at gmail.com Sun Aug 18 13:20:01 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Aug 2019 20:50:01 +0930 Subject: [Gambas-user] Simplest way to open a URL in a browser In-Reply-To: References: Message-ID: <6b60e8a5-f9ca-32d0-1d28-37f87eb5e994@gmail.com> On 18/8/19 8:00 pm, Bruce wrote: > (Probably anonther dumb one) > > Let's say I have a URL displayed in a URLLabel control. What is the > simplest way to implement open that URL in the user's preferred web > browser? Say with a single click. > > Only a few requirements: > * desktop independent (I don't know whether they have a "default > browser" or whatever > * open the browser in a new window (independent of the desktop) > * independent of the GUI involved in the current gambas project (???) > * get a fairly clear indication of anything that (may or does) go wrong. > > Not too hard is it? So how come I can't do it? ;-( (Age may be a factor). > > tia > bruce OK, I'd better rephrase it. Yet again. I am generally sick to death of horse auctions. Sold it, blah blah. After some days of generally watching rain, cleaning the residence out of various outdated hardware and ... darning socks etc etc, I found that there is no central website that produces a consolidated view of all the wines that are available in this lovely area of South Australia ... So methinketh (idiotically at best) "all these wineries, outlets and retailers have websites" SO! It should be a "simple" matter to munge the horse auction system into a "I want good wine, NOW!" system. haha! So far we have 18 wineries, 6 wholesales and (unbeknowst to them) a few retailers linked up (in the "business" sense) to use their internet supplied web data. Some pretty immature projects have ensued - looks generally possible. But! In a form that illustrates a particular wine, vintage, etc etc there is a (actually several) URLlabel controls that display the web link to some more and exciting information available on the intertubes. BUT when I click on it .... all of a sudden .... nothing happens! Or at least, it works for me. But when she who must be obeyed uses the program executable and clicks on the control, (sigh), nothing happens :-( This is begining to impinge on our "social relationships" so to speak. AAAAAAAAAAAAARRRRRRRGGGGGGGGGGGHHHHHHH b From charlie at cogier.com Sun Aug 18 13:10:02 2019 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 18 Aug 2019 12:10:02 +0100 Subject: [Gambas-user] Simplest way to open a URL in a browser In-Reply-To: References: Message-ID: <3532fb3e-9086-0ca1-798d-319a3250df53@cogier.com> Hi Bruce, The trick is you need *gb.desktop* component and then it will work. Charlie On 18/08/2019 11:30, Bruce wrote: > (Probably anonther dumb one) > > Let's say I have a URL displayed in a URLLabel control. What is the > simplest way to implement open that URL in the user's preferred web > browser? Say with a single click. > > Only a few requirements: > * desktop independent (I don't know whether they have a "default > browser" or whatever > * open the browser in a new window (independent of the desktop) > * independent of the GUI involved in the current gambas project (???) > * get a fairly clear indication of anything that (may or does) go wrong. > > Not too hard is it? So how come I can't do it? ;-( (Age may be a factor). > > tia > bruce > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Aug 18 13:48:50 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 18 Aug 2019 21:18:50 +0930 Subject: [Gambas-user] Simplest way to open a URL in a browser In-Reply-To: <3532fb3e-9086-0ca1-798d-319a3250df53@cogier.com> References: <3532fb3e-9086-0ca1-798d-319a3250df53@cogier.com> Message-ID: <86ceb962-b536-9f30-9fe6-4ee99c91eca9@gmail.com> Bingo! My machine has this component, hers' does too. Weird that the executable actually ran though? Everything apart from clicking on the URLlabels works? ... (thinking) ... BIG OOPS! My machine has a local version of gb.desktop. hmmm. Installed the local version. Rebuilt it and now all works. hmmm. Maybe I'd better have a look at what I actually changed in the desktop scripts. Maybe not. Maybe, later. ( I hate diffs ) Such is life. b On 18/8/19 8:40 pm, Charlie Ogier wrote: > Hi Bruce, > > The trick is you need *gb.desktop* component and then it will work. > > Charlie > > On 18/08/2019 11:30, Bruce wrote: >> (Probably anonther dumb one) >> >> Let's say I have a URL displayed in a URLLabel control. What is the >> simplest way to implement open that URL in the user's preferred web >> browser? Say with a single click. >> >> Only a few requirements: >> * desktop independent (I don't know whether they have a "default >> browser" or whatever >> * open the browser in a new window (independent of the desktop) >> * independent of the GUI involved in the current gambas project (???) >> * get a fairly clear indication of anything that (may or does) go wrong. >> >> Not too hard is it? So how come I can't do it? ;-( (Age may be a factor). >> >> tia >> bruce >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From ian.roper at iinet.net.au Mon Aug 19 02:22:43 2019 From: ian.roper at iinet.net.au (Ian Roper) Date: Mon, 19 Aug 2019 08:22:43 +0800 Subject: [Gambas-user] Simplest way to open a URL in a browser In-Reply-To: References: Message-ID: <9c3e738f-8c0d-78cf-a315-46df444bc780@iinet.net.au> Gidday Bruce, I use the external program xdg to open any document that the system can recognize. xdg is on 'most' systems by default and will open any document including pdf, odt,xml, csv,... For a physical document , you need to pass the full path ending with the document name. for a URL (web site) to be opened in the default browser, just pass it the full (use a http/https header) url and it will open https://www.google.com will work fine www.google.com is assumed to be a file and will fail. Public Sub URLLabel1_Click() ? OpenDocument(URLLabel1.link) End Public Sub OpenDocument(Inpath As String) ? Exec ["xdg-open", InPath] End Cheers, Ian. On 18/8/19 6:30 pm, Bruce wrote: > (Probably anonther dumb one) > > Let's say I have a URL displayed in a URLLabel control. What is the > simplest way to implement open that URL in the user's preferred web > browser? Say with a single click. > > Only a few requirements: > * desktop independent (I don't know whether they have a "default > browser" or whatever > * open the browser in a new window (independent of the desktop) > * independent of the GUI involved in the current gambas project (???) > * get a fairly clear indication of anything that (may or does) go wrong. > > Not too hard is it? So how come I can't do it? ;-( (Age may be a factor). > > tia > bruce > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From g4mba5 at gmail.com Mon Aug 19 14:30:44 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 19 Aug 2019 14:30:44 +0200 Subject: [Gambas-user] Everybody in holidays? In-Reply-To: <0b8060f3-48a8-946e-564b-d0e279bc6bdf@deganius.de> References: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> <0b8060f3-48a8-946e-564b-d0e279bc6bdf@deganius.de> Message-ID: Le 16/08/2019 ? 19:58, Christof Thalhofer a ?crit?: > Am 16.08.19 um 11:31 schrieb Gianluigi: >> Here! >> >> Regards >> Gianluigi > > Thank you! I see I have not to worry .. :-) > > > Alles Gute > > Christof Thalhofer > I just came back, but have a lot of mails to deal with... -- Beno?t Minisini From bagonergi at gmail.com Mon Aug 19 14:41:19 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 19 Aug 2019 14:41:19 +0200 Subject: [Gambas-user] Everybody in holidays? In-Reply-To: References: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> <0b8060f3-48a8-946e-564b-d0e279bc6bdf@deganius.de> Message-ID: Il giorno lun 19 ago 2019 alle ore 14:31 Beno?t Minisini ha scritto: > Le 16/08/2019 ? 19:58, Christof Thalhofer a ?crit : > > Am 16.08.19 um 11:31 schrieb Gianluigi: > >> Here! > >> > >> Regards > >> Gianluigi > > > > Thank you! I see I have not to worry .. :-) > > > > > > Alles Gute > > > > Christof Thalhofer > > > > I just came back, but have a lot of mails to deal with... > > -- > Beno?t Minisini > > HI, I missed this answer from Christof. LOL Welcome back Benoit :-D Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Mon Aug 19 16:31:53 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Mon, 19 Aug 2019 16:31:53 +0200 Subject: [Gambas-user] Everybody in holidays? In-Reply-To: References: <8203b7c2-f215-49ea-7083-c67abe966c63@deganius.de> <0b8060f3-48a8-946e-564b-d0e279bc6bdf@deganius.de> Message-ID: <87d0976f-3b64-ecfb-6d13-108cb48c9f61@deganius.de> Am 19.08.19 um 14:41 schrieb Gianluigi: > I just came back, but have a lot of mails to deal with... > HI, > I missed this answer from Christof. LOL :-))) Fortunately (I didn't have to deal with a lot of bounced mails). I'm going on vacation at the end of the week for ten days but I will take my laptop with me. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From kicking177 at gmail.com Mon Aug 19 20:48:21 2019 From: kicking177 at gmail.com (KKing) Date: Mon, 19 Aug 2019 19:48:21 +0100 Subject: [Gambas-user] WebService support and examples? Message-ID: Hi, I've searched a little and found website support and some examples, but have only come across webservice component wish for requests. What is the current status? K. From hans at gambas-buch.de Tue Aug 20 10:43:59 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 20 Aug 2019 10:43:59 +0200 Subject: [Gambas-user] Questions about gb.report2 Message-ID: <157c2a24-171f-53fb-77db-48af8caf3237@gambas-buch.de> Hello, I currently have several questions about the component gb.report2: * Where can I find information about the variables(?) `page` and `pages? So far I couldn't find anything on the internet. * Why do I have to write ReportLabel in the properties (in the IDE in the object inspector) to a report control ReportLabel as footer in the properties for example `="Page " & page & " of " & pages`? Why the equal sign at the beginning? * What is the meaning of the `UseField` property? Which field is meant by this? * We are looking for documentation for the property `Range`. What do I have to add to the `Range` property? Which data type? Which value range is to be considered? With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Aug 20 17:12:34 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 20 Aug 2019 17:12:34 +0200 Subject: [Gambas-user] Questions about gb.report2 In-Reply-To: <157c2a24-171f-53fb-77db-48af8caf3237@gambas-buch.de> References: <157c2a24-171f-53fb-77db-48af8caf3237@gambas-buch.de> Message-ID: Hi Hans, You have the answer to the first two questions in the IDE by navigating in the Gambas project (in my case, gambasdevel) until you open in the Components gb.report2 > ReportControl > ReportFrame > ReportLabel. In ReportLabel.class you can see this code in the _Paint routine: If sTempText Begins "=" Then $hEval.Compile() sTempText = $hEval.Value Endif If $sFormat Then Try sTempText = Format(sTempText, $sFormat) Endif If $bUseField Then sTempText = DecodeText(sTempText, Page) Endif and the Function: Private Function DecodeText(sText As String, Optional Page As Integer, Optional ForSize As Boolean = False) As String If ForSize Then If InStr(sText, "$PAGE") Then sText = Replace(sText, "$PAGE", "999") If InStr(sText, "$NPAGE") Then sText = Replace(sText, "$NPAGE", "999") Else If InStr(sText, "$PAGE") Then sText = Replace(sText, "$PAGE", Str(Page + 1)) If InStr(sText, "$NPAGE") Then sText = Replace(sText, "$NPAGE", Str(Me.Report.PageCount)) Endif Return sText End If I well understood Fabien's intentions, now it only works with page, pages, index but I think the intention is to extend it to other regular expressions. But I'm not sure. UserField: Fabien in tmpJournal write this: Restore the UseField property in ReportLabel so for now the component is backward compatible. Range: I don't think it's activated in either gb.report2, see: http://gambaswiki.org/wiki/comp/gb.report/reportcontrol/range Regards Gianluigi Il giorno mar 20 ago 2019 alle ore 11:08 Hans Lehmann ha scritto: > Hello, > > I currently have several questions about the component gb.report2: > > > - Where can I find information about the variables(?) `page` and > `pages? So far I couldn't find anything on the internet. > - Why do I have to write ReportLabel in the properties (in the IDE in > the object inspector) to a report control ReportLabel as footer in the > properties for example `="Page " & page & " of " & pages`? Why the equal > sign at the beginning? > - What is the meaning of the `UseField` property? Which field is meant > by this? > - We are looking for documentation for the property `Range`. What do I > have to add to the `Range` property? Which data type? Which value range is > to be considered? > > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue Aug 20 17:28:11 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 20 Aug 2019 17:28:11 +0200 Subject: [Gambas-user] Questions about gb.report2 In-Reply-To: References: <157c2a24-171f-53fb-77db-48af8caf3237@gambas-buch.de> Message-ID: Sorry, this answer was directed only to Hans, it didn't have to appear publicly. :-( Fortunately I did not criticize Fabien ;-D I'm a lucky dog! Gianluigi Il giorno mar 20 ago 2019 alle ore 17:12 Gianluigi ha scritto: > Hi Hans, > > You have the answer to the first two questions in the IDE by navigating in > the Gambas project (in my case, gambasdevel) until you open in the > Components gb.report2 > ReportControl > ReportFrame > ReportLabel. > In ReportLabel.class you can see this code in the _Paint routine: > > If sTempText Begins "=" Then > $hEval.Compile() > sTempText = $hEval.Value > Endif > > If $sFormat Then > Try sTempText = Format(sTempText, $sFormat) > Endif > > If $bUseField Then > sTempText = DecodeText(sTempText, Page) > Endif > > and the Function: > > Private Function DecodeText(sText As String, Optional Page As Integer, > Optional ForSize As Boolean = False) As String > > If ForSize Then > If InStr(sText, "$PAGE") Then sText = Replace(sText, "$PAGE", "999") > If InStr(sText, "$NPAGE") Then sText = Replace(sText, "$NPAGE", "999") > Else > If InStr(sText, "$PAGE") Then sText = Replace(sText, "$PAGE", Str(Page > + 1)) > If InStr(sText, "$NPAGE") Then sText = Replace(sText, "$NPAGE", > Str(Me.Report.PageCount)) > Endif > > Return sText > > End > > If I well understood Fabien's intentions, now it only works with page, > pages, index but I think the intention is to extend it to other regular > expressions. > But I'm not sure. > > UserField: Fabien in tmpJournal write this: > Restore the UseField property in ReportLabel so for now the component is > backward compatible. > > Range: I don't think it's activated in either gb.report2, see: > > http://gambaswiki.org/wiki/comp/gb.report/reportcontrol/range > > Regards > Gianluigi > > Il giorno mar 20 ago 2019 alle ore 11:08 Hans Lehmann > ha scritto: > >> Hello, >> >> I currently have several questions about the component gb.report2: >> >> >> - Where can I find information about the variables(?) `page` and >> `pages? So far I couldn't find anything on the internet. >> - Why do I have to write ReportLabel in the properties (in the IDE in >> the object inspector) to a report control ReportLabel as footer in the >> properties for example `="Page " & page & " of " & pages`? Why the equal >> sign at the beginning? >> - What is the meaning of the `UseField` property? Which field is >> meant by this? >> - We are looking for documentation for the property `Range`. What do >> I have to add to the `Range` property? Which data type? Which value range >> is to be considered? >> >> >> With kind regards >> >> Hans >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Wed Aug 21 21:48:49 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Wed, 21 Aug 2019 21:48:49 +0200 Subject: [Gambas-user] Did I delete a wiki page? Message-ID: Hi, it seems that I accidentally deleted a wiki page: http://gambaswiki.org/wiki/comp/gb.db/_connection/delete It is there, but I cannot edit it any more. I wanted to add an example but it seems that I clicked on the button "Delete" ... Sorry. :-( Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Wed Aug 21 21:52:56 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 21 Aug 2019 21:52:56 +0200 Subject: [Gambas-user] Did I delete a wiki page? In-Reply-To: References: Message-ID: Le 21/08/2019 ? 21:48, Christof Thalhofer a ?crit?: > Hi, > > it seems that I accidentally deleted a wiki page: > http://gambaswiki.org/wiki/comp/gb.db/_connection/delete > > It is there, but I cannot edit it any more. I wanted to add an example > but it seems that I clicked on the button "Delete" ... > > Sorry. :-( > > > Alles Gute > > Christof Thalhofer > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Fixed. You have to create the page back, and use the "historic" button to recover the deleted text, copy & paste it. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu Aug 22 12:05:45 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Aug 2019 12:05:45 +0200 Subject: [Gambas-user] New syntactic sugar to define a property based on a global variable Message-ID: Hi, I have just added the new following syntax: PROPERTY [ READ ] PropertyName AS PropertyType USE GlobalVariableName It declares a property and automatically declares a global variable of the same type that will store the value of the property. The property methods are automatically defined too. If you explicitly define the Read or Write property method, it overrides the one previously defined by default. Regards, -- Beno?t Minisini From adamnt42 at gmail.com Thu Aug 22 14:16:06 2019 From: adamnt42 at gmail.com (Bruce) Date: Thu, 22 Aug 2019 21:46:06 +0930 Subject: [Gambas-user] New syntactic sugar to define a property based on a global variable In-Reply-To: References: Message-ID: <2cbdd530-1a08-42d5-aa40-7a7a950d0974@gmail.com> Good news, but just a bit of clarification please. Consider Property Name as String Use $name When you say that the syntax "automatically declares a global variable" do you mean that the declaration is generated into the source code in the IDE? Or is it declared "below the source"? If the latter, then can that variable be accessed by other methods in the source? Also, what happens in this latter case if I explicitly declare the variable in the source code? I'll see if I can clarify that a bit.. Lets say I have a private global $myname that I suddenly would like to expose as a property. $myname is used and manipulated variously throughout the class code. If I suddenly go: Property Name as String Use $myname will this cause havoc and mayhem? Secondly, when you say "The property methods are automatically defined too.", are they visible in the source code? Finally, let's say I have a property already defined, with its' associated accessor methods. If I suddenly change the property declaration to the "Use" syntax, what would happen to the already defined accessors? Just being cautious. regards bruce On 22/8/19 7:35 pm, Beno?t Minisini wrote: > Hi, > > I have just added the new following syntax: > > PROPERTY [ READ ] PropertyName AS PropertyType USE GlobalVariableName > > It declares a property and automatically declares a global variable of > the same type that will store the value of the property. The property > methods are automatically defined too. > > If you explicitly define the Read or Write property method, it overrides > the one previously defined by default. > > Regards, > From g4mba5 at gmail.com Thu Aug 22 14:28:32 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Aug 2019 14:28:32 +0200 Subject: [Gambas-user] New syntactic sugar to define a property based on a global variable In-Reply-To: <2cbdd530-1a08-42d5-aa40-7a7a950d0974@gmail.com> References: <2cbdd530-1a08-42d5-aa40-7a7a950d0974@gmail.com> Message-ID: Le 22/08/2019 ? 14:16, Bruce a ?crit?: > Good news, but just a bit of clarification please. > > Consider > ????Property Name as String Use $name > > When you say that the syntax "automatically declares a global variable" > do you mean that the declaration is generated into the source code in > the IDE? Or is it declared "below the source"? ----8<---- Property Name As String Use $name ----8<---- is equivalent to: ----8<---- Property Name As String Private $name As String Private Sub Name_Read() As String Return $name End Private Sub Name_Write(Value As String) $name = Value End ----8<---- Except that if you explicitly define your own Name_Read() or Name_Write(), it will override the one that is defined automatically by default (i.e. the automatic one is not generated). It's really just a feature for lazy people. :-) -- Beno?t Minisini From chrisml at deganius.de Thu Aug 22 15:22:15 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Thu, 22 Aug 2019 15:22:15 +0200 Subject: [Gambas-user] New syntactic sugar to define a property based on a global variable In-Reply-To: References: <2cbdd530-1a08-42d5-aa40-7a7a950d0974@gmail.com> Message-ID: <991e50fc-380c-b9b2-9ef3-dcad8afe923e@deganius.de> Am 22.08.19 um 14:28 schrieb Beno?t Minisini: > ----8<---- > Property Name As String Use $name > ----8<---- > > is equivalent to: > > ----8<---- > Property Name As String > Private $name As String > > Private Sub Name_Read() As String > Return $name > End > > Private Sub Name_Write(Value As String) > $name = Value > End > ----8<---- > > Except that if you explicitly define your own Name_Read() or > Name_Write(), it will override the one that is defined automatically by > default (i.e. the automatic one is not generated). > > It's really just a feature for lazy people. :-) Thank you for the explanation. It's also great because it makes the code more compact and better readable. As I always use a lot of properties, this is ultra-ultra-great! ;-) It's just the compiler, right? If this code is compiled it can be executed by an older interpreter? Say ... Gambas 3.9? Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From g4mba5 at gmail.com Thu Aug 22 15:28:16 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 22 Aug 2019 15:28:16 +0200 Subject: [Gambas-user] New syntactic sugar to define a property based on a global variable In-Reply-To: <991e50fc-380c-b9b2-9ef3-dcad8afe923e@deganius.de> References: <2cbdd530-1a08-42d5-aa40-7a7a950d0974@gmail.com> <991e50fc-380c-b9b2-9ef3-dcad8afe923e@deganius.de> Message-ID: <14810665-e17e-fd60-727a-f593718c997c@gmail.com> Le 22/08/2019 ? 15:22, Christof Thalhofer a ?crit?: > > Thank you for the explanation. It's also great because it makes the code > more compact and better readable. > > As I always use a lot of properties, this is ultra-ultra-great! ;-) > > It's just the compiler, right? If this code is compiled it can be > executed by an older interpreter? Say ... Gambas 3.9? > Yes. The compiler generates the needed bytecode. It would have been faster to let the interpreter handle that special case (property = variable), but it would have break backward-compatibility. -- Beno?t Minisini From cedron at exede.net Thu Aug 22 15:46:39 2019 From: cedron at exede.net (Cedron Dawg) Date: Thu, 22 Aug 2019 09:46:39 -0400 (EDT) Subject: [Gambas-user] New syntactic sugar to define a property based on a global variable In-Reply-To: References: <2cbdd530-1a08-42d5-aa40-7a7a950d0974@gmail.com> Message-ID: <1861494703.40581680.1566481599917.JavaMail.zimbra@exede.net> Laziness is the father of invention. ----- Original Message ----- From: "Beno?t Minisini" ... It's really just a feature for lazy people. :-) -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From kicking177 at gmail.com Sat Aug 24 15:23:58 2019 From: kicking177 at gmail.com (KKing) Date: Sat, 24 Aug 2019 14:23:58 +0100 Subject: [Gambas-user] Programmatic / Scriptable way to set breakpoints Message-ID: Is there or could there be a way to set breakpoints programmatically? Scenario number one: Because of how my code is currently fashioned, I have catch statements at end of most routines and prepare output to a trace log from error object content. While I'm debugging issues it would be really useful to have breakpoints set automatically on the the first line after the catch statement (in all classes and modules) Scenario number two: If I establish a variable is being populated incorrectly, being able to set a breakpoint on any occurrence of where it is be set (not comparison of) would be handy rather than having to manually search for all of these and setting breakpoints manually on each and every. K. From kicking177 at gmail.com Sat Aug 24 15:24:51 2019 From: kicking177 at gmail.com (KKing) Date: Sat, 24 Aug 2019 14:24:51 +0100 Subject: [Gambas-user] WebService support and examples? In-Reply-To: References: Message-ID: bump On 19/08/2019 19:48, KKing wrote: > Hi, > > I've searched a little and found website support and some examples, > but have only come across webservice component wish for requests. > > What is the current status? > > K. > From gambas.fr at gmail.com Sat Aug 24 16:20:46 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 24 Aug 2019 16:20:46 +0200 Subject: [Gambas-user] Programmatic / Scriptable way to set breakpoints In-Reply-To: References: Message-ID: Yes it's the keyword STOP Le 24 ao?t 2019 15:25, "KKing" a ?crit : > Is there or could there be a way to set breakpoints programmatically? > > Scenario number one: > > Because of how my code is currently fashioned, I have catch statements at > end of most routines and prepare output to a trace log from error object > content. While I'm debugging issues it would be really useful to have > breakpoints set automatically on the the first line after the catch > statement (in all classes and modules) > > > Scenario number two: > > If I establish a variable is being populated incorrectly, being able to > set a breakpoint on any occurrence of where it is be set (not comparison > of) would be handy rather than having to manually search for all of these > and setting breakpoints manually on each and every. > > K. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat Aug 24 19:56:21 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 24 Aug 2019 19:56:21 +0200 Subject: [Gambas-user] WebService support and examples? In-Reply-To: References: Message-ID: <9251d75b-f959-068d-4393-89b127fb3ea3@gmail.com> Le 24/08/2019 ? 15:24, KKing a ?crit?: > bump > > On 19/08/2019 19:48, KKing wrote: >> Hi, >> >> I've searched a little and found website support and some examples, >> but have only come across webservice component wish for requests. >> >> What is the current status? >> >> K. >> > What are you looking for exactly? -- Beno?t Minisini From jussi.lahtinen at gmail.com Sat Aug 24 22:38:33 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 24 Aug 2019 23:38:33 +0300 Subject: [Gambas-user] Programmatic / Scriptable way to set breakpoints In-Reply-To: References: Message-ID: For scenario number two, change the declaration of the variable to property and set the breakpoint in write event. Jussi On Sat, Aug 24, 2019 at 4:25 PM KKing wrote: > Is there or could there be a way to set breakpoints programmatically? > > Scenario number one: > > Because of how my code is currently fashioned, I have catch statements > at end of most routines and prepare output to a trace log from error > object content. While I'm debugging issues it would be really useful to > have breakpoints set automatically on the the first line after the catch > statement (in all classes and modules) > > > Scenario number two: > > If I establish a variable is being populated incorrectly, being able to > set a breakpoint on any occurrence of where it is be set (not comparison > of) would be handy rather than having to manually search for all of > these and setting breakpoints manually on each and every. > > K. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Aug 25 03:29:38 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 25 Aug 2019 03:29:38 +0200 Subject: [Gambas-user] New syntactic sugar to define a property based on a global variable In-Reply-To: References: Message-ID: <20190825012938.GA11442@highrise.localdomain> On Thu, 22 Aug 2019, Beno?t Minisini wrote: > Hi, > > I have just added the new following syntax: > > PROPERTY [ READ ] PropertyName AS PropertyType USE GlobalVariableName > > It declares a property and automatically declares a global variable of the > same type that will store the value of the property. The property methods > are automatically defined too. > > If you explicitly define the Read or Write property method, it overrides the > one previously defined by default. > Many thanks, Beno?t. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Sun Aug 25 09:17:13 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 25 Aug 2019 08:17:13 +0100 Subject: [Gambas-user] WebService support and examples? Message-ID: <65fcd213-1220-3cab-024b-4afe7d292e05@gmail.com> << What are you looking for exactly? >> There are a couple of different projects I'm looking at converting to Gambas, one would be very simple receive xml and return xml and any errors are reported within xml returned. But there are others where a web service could have multiple methods that each could have various parameters passed and return xml (or maybe json), possibly with wsdl? K. From kicking177 at gmail.com Sun Aug 25 09:31:47 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 25 Aug 2019 08:31:47 +0100 Subject: [Gambas-user] Programmatic / Scriptable way to set breakpoints Message-ID: <17528c88-8004-1ada-7c6c-b3f2f8a4dd9a@gmail.com> << Yes it's the keyword STOP >> ta, slight tangent is there ability to do search and replace with newline characters? i.e search for ??? CATCH\n and replace with ??? CATCH\n ??? ??? STOP\n or similar << For scenario number two, change the declaration of the variable to property and set the breakpoint in write event. >> ta, good to know at the start, might be bit much effort and refactoring now on one project that is rather large code converted from powerbasic. K. From charlie at cogier.com Sun Aug 25 13:16:09 2019 From: charlie at cogier.com (Charlie Ogier) Date: Sun, 25 Aug 2019 12:16:09 +0100 Subject: [Gambas-user] Programmatic / Scriptable way to set breakpoints In-Reply-To: <17528c88-8004-1ada-7c6c-b3f2f8a4dd9a@gmail.com> References: <17528c88-8004-1ada-7c6c-b3f2f8a4dd9a@gmail.com> Message-ID: <07d08dee-c012-7997-a4ef-bc9b98387889@cogier.com> Hi Kking, try: - Dim s As String = "Catch\n" s = Replace(s, "Catch\n", "Catch\nSTOP\n") Print s Charlie On 25/08/2019 08:31, KKing wrote: > << > Yes it's the keyword STOP > >> > ta, > slight tangent is there ability to do search and replace with newline > characters? > i.e search for > ??? CATCH\n > and replace with > ??? CATCH\n > ??? ??? STOP\n > > or similar > > << > For scenario number two, change the declaration of the variable to > property > and set the breakpoint in write event. > >> > ta, good to know at the start, might be bit much effort and > refactoring now on one project that is rather large code converted > from powerbasic. > > K. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From rwe-sse at osnanet.de Sat Aug 31 16:53:31 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Sat, 31 Aug 2019 16:53:31 +0200 Subject: [Gambas-user] Suddenly no more color printing Message-ID: One of my programs should be able to print PDFs with colors (background colors in table cells). It did so last year and it did so during winter. But when I use it now, it suddenly makes grayshades instead of the colors. As far as I remember, I have not changed anything in these code parts (printing part), and I guess it's the same Gambas version (3.12.2 on Ubuntu Mate 18.04.2). There are outstanding updates, and I haven't updated the system for couple of months, but alas... Where would you look first? I need these colored tables... Thanks for your ideas! Rolf From g4mba5 at gmail.com Sat Aug 31 17:10:13 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 31 Aug 2019 17:10:13 +0200 Subject: [Gambas-user] Suddenly no more color printing In-Reply-To: References: Message-ID: <51528025-4976-448a-d1cc-58d8d655b4a1@gmail.com> Le 31/08/2019 ? 16:53, Rolf-Werner Eilert a ?crit?: > One of my programs should be able to print PDFs with colors (background > colors in table cells). > > It did so last year and it did so during winter. But when I use it now, > it suddenly makes grayshades instead of the colors. > > As far as I remember, I have not changed anything in these code parts > (printing part), and I guess it's the same Gambas version (3.12.2 on > Ubuntu Mate 18.04.2). There are outstanding updates, and I haven't > updated the system for couple of months, but alas... > > Where would you look first? I need these colored tables... > > Thanks for your ideas! > > Rolf > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Did you explicitly specified a coloured printing? Maybe the default printer configuration has changed? -- Beno?t Minisini