From twopilots at interisland.net Fri Nov 1 03:57:08 2019 From: twopilots at interisland.net (Ed & Clare Kelm) Date: Thu, 31 Oct 2019 19:57:08 -0700 Subject: [Gambas-user] Printer Font Size Problem In-Reply-To: <6925a305-49c0-2ce2-0193-b36b9123a92e@gmail.com> References: <7b80150b-6435-d40c-c1ab-259e8103140a@interisland.net> <04e986db-5183-d15f-7723-2228e7501f6c@gmail.com> <6925a305-49c0-2ce2-0193-b36b9123a92e@gmail.com> Message-ID: <14b4dc0f-f774-b796-f14f-cb766d93a745@interisland.net> Benoit: It was a few days after your initial fix that I installed a daily build, so maybe I have in fact tested your better fix.? According to Synaptic Package Manager, what I installed was: 3.14.90+git297.f75de9a+build4da896c1~ubuntu14.04.1 Do think that had your final fix? Ed K. On 10/25/19 4:12 PM, Beno?t Minisini wrote: > Le 26/10/2019 ? 00:48, Ed & Clare Kelm a ?crit?: >> Benoit:? The fix works.? Thanks! >> >> Tobi:? Thanks for showing me the easy way to get it installed! >> >> Ed K. >> > > Hi, > > I have just really fixed it in the last commit, by making > Paint.FontScale "transparent". > > I mean: the value of Paint.Font.Size is kept after the font has been > assigned to Paint.Font. > > Regards, > From hans at gambas-buch.de Fri Nov 1 12:17:06 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Fri, 1 Nov 2019 12:17:06 +0100 Subject: [Gambas-user] Documentation TerminalView Message-ID: Hello. Recently I asked for a description for version control with Git, which is now possible in the IDE. Result: zero. So you search for traces and read the source code (../app/src/gambas3/.src/VersionControl) very carefully. As expected, the TerminalView control plays a central role. But if you look at the documentation for this control, it almost always says 'This symbol does not exist'. Great! But today I need help with the following properties and methods of the TerminalView class to be able to continue working at all. If it were Christmas now, I would also like to have some lines of source code. They could show how fine the component is: Properties:? Attr, Limit Line, Text and Title Methods: ??? Clear, Exec, Past, Print and Shell Events:????? Kill Have a nice weekend, everybody. Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri Nov 1 17:26:01 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 1 Nov 2019 17:26:01 +0100 Subject: [Gambas-user] Documentation TerminalView In-Reply-To: References: Message-ID: <2db583a8-16a4-f08b-25f3-b9043f6c6d3d@gmail.com> Le 01/11/2019 ? 12:17, Hans Lehmann a ?crit?: > Hello. > > Recently I asked for a description for version control with Git, which > is now possible in the IDE. Result: zero. So you search for traces and > read the source code (../app/src/gambas3/.src/VersionControl) very > carefully. As expected, the TerminalView control plays a central role. > But if you look at the documentation for this control, it almost always > says 'This symbol does not exist'. Great! > > But today I need help with the following properties and methods of the > TerminalView class to be able to continue working at all. If it were > Christmas now, I would also like to have some lines of source code. They > could show how fine the component is: > > Properties:? Attr, Limit Line, Text and Title > Methods: ??? Clear, Exec, Past, Print and Shell > Events:????? Kill > > Have a nice weekend, everybody. > > Hans > I know. I will try to document the TerminalView control as soon as possible. -- Beno?t Minisini From bagonergi at gmail.com Fri Nov 1 18:23:28 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 1 Nov 2019 18:23:28 +0100 Subject: [Gambas-user] One report for each query? Message-ID: Hi Fabien, inspired by a discussion on the German forum I wanted to see if I could make a report in that way. I was unable to use the same report for two slightly different queries. Should I use a different report for each query? I can't change the color of the writing with the code. Any suggestions? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GermanTest-0.0.1.tar.gz Type: application/gzip Size: 15334 bytes Desc: not available URL: From gambas.fr at gmail.com Sat Nov 2 12:50:55 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 2 Nov 2019 12:50:55 +0100 Subject: [Gambas-user] One report for each query? In-Reply-To: References: Message-ID: well because you use only the auto generated instance . When you call Report1.Preview in background it do a thing like Report1 = New Report1 So the object Report1 theoretically is not callable directly. In the past ... in the beginning of gambas ... (well 20 years) You cannot do Form1.Show You'll have to do a : Dim hForm as new Form1 as "Form" hForm.Show All of that to say .... in your case do : Public Sub Button1_Click() hreport = new Report1 $hResult = MBase.ReturnDataNumber() If Not $hResult Then Message.Error(("Query result not available\n\nSorry but it is impossible to continue.")) Me.Close Return Endif hReport.Preview End Public Sub Button2_Click() hReport = new Report1 $hResult = MBase.ReturnDataDate() If Not $hResult Then Message.Error(("Query result not available\n\nSorry but it is impossible to continue.")) Me.Close Return Endif hReport.Preview End Le ven. 1 nov. 2019 ? 18:24, Gianluigi a ?crit : > Hi Fabien, > > inspired by a discussion on the German forum I wanted to see if I could > make a report in that way. > I was unable to use the same report for two slightly different queries. > Should I use a different report for each query? > I can't change the color of the writing with the code. > > Any suggestions? > > Regards > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat Nov 2 12:53:21 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 2 Nov 2019 12:53:21 +0100 Subject: [Gambas-user] One report for each query? In-Reply-To: References: Message-ID: 'hRel.Brush.Color = ReportBrush.Color(Color.DarkBlue) I don't understand how do this sigh! no ! : hRel.Brush = ReportBrush.Color(Color.DarkBlue) I don't understand how do this sigh! hRel.Brush receive a brush generated by ReportBrush... it work like Paint.Brush with (paint.Color/Paint.gradient/...) Le sam. 2 nov. 2019 ? 12:50, Fabien Bodard a ?crit : > well because you use only the auto generated instance . > > When you call Report1.Preview > > in background it do a thing like > > Report1 = New Report1 > > So the object Report1 theoretically is not callable directly. In the past > ... in the beginning of gambas ... (well 20 years) You cannot do Form1.Show > > You'll have to do a : > Dim hForm as new Form1 as "Form" > hForm.Show > > All of that to say .... in your case do : > > Public Sub Button1_Click() > hreport = new Report1 > $hResult = MBase.ReturnDataNumber() > If Not $hResult Then > Message.Error(("Query result not available\n\nSorry but it is > impossible to continue.")) > Me.Close > Return > Endif > hReport.Preview > > End > > Public Sub Button2_Click() > hReport = new Report1 > $hResult = MBase.ReturnDataDate() > If Not $hResult Then > Message.Error(("Query result not available\n\nSorry but it is > impossible to continue.")) > Me.Close > Return > Endif > hReport.Preview > > End > > > > Le ven. 1 nov. 2019 ? 18:24, Gianluigi a ?crit : > >> Hi Fabien, >> >> inspired by a discussion on the German forum I wanted to see if I could >> make a report in that way. >> I was unable to use the same report for two slightly different queries. >> Should I use a different report for each query? >> I can't change the color of the writing with the code. >> >> Any suggestions? >> >> Regards >> Gianluigi >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Nov 2 14:34:17 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 2 Nov 2019 14:34:17 +0100 Subject: [Gambas-user] One report for each query? In-Reply-To: References: Message-ID: Hi Fabien, thank you very much for the answers, you are great ? Regarding "hReport = New Report1", I would have had to figure it out on my own, the senile stupidity is a bad thing :-( Unfortunately I still don't understand how to color the strings :-(( See attachment with suggested changes Regards Gianluigi Il giorno sab 2 nov 2019 alle ore 12:54 Fabien Bodard ha scritto: > 'hRel.Brush.Color = ReportBrush.Color(Color.DarkBlue) I don't understand > how do this sigh! > > no ! : > hRel.Brush = ReportBrush.Color(Color.DarkBlue) I don't understand how do > this sigh! > > hRel.Brush receive a brush generated by ReportBrush... it work like > Paint.Brush with (paint.Color/Paint.gradient/...) > > Le sam. 2 nov. 2019 ? 12:50, Fabien Bodard a ?crit : > >> well because you use only the auto generated instance . >> >> When you call Report1.Preview >> >> in background it do a thing like >> >> Report1 = New Report1 >> >> So the object Report1 theoretically is not callable directly. In the past >> ... in the beginning of gambas ... (well 20 years) You cannot do Form1.Show >> >> You'll have to do a : >> Dim hForm as new Form1 as "Form" >> hForm.Show >> >> All of that to say .... in your case do : >> >> Public Sub Button1_Click() >> hreport = new Report1 >> $hResult = MBase.ReturnDataNumber() >> If Not $hResult Then >> Message.Error(("Query result not available\n\nSorry but it is >> impossible to continue.")) >> Me.Close >> Return >> Endif >> hReport.Preview >> >> End >> >> Public Sub Button2_Click() >> hReport = new Report1 >> $hResult = MBase.ReturnDataDate() >> If Not $hResult Then >> Message.Error(("Query result not available\n\nSorry but it is >> impossible to continue.")) >> Me.Close >> Return >> Endif >> hReport.Preview >> >> End >> >> >> >> Le ven. 1 nov. 2019 ? 18:24, Gianluigi a ?crit : >> >>> Hi Fabien, >>> >>> inspired by a discussion on the German forum I wanted to see if I could >>> make a report in that way. >>> I was unable to use the same report for two slightly different queries. >>> Should I use a different report for each query? >>> I can't change the color of the writing with the code. >>> >>> Any suggestions? >>> >>> Regards >>> Gianluigi >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> >> -- >> Fabien Bodard >> > > > -- > Fabien Bodard > > ----[ 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: GermanTest-0.0.2.tar.gz Type: application/gzip Size: 15260 bytes Desc: not available URL: From gambas.fr at gmail.com Sat Nov 2 15:04:16 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 2 Nov 2019 15:04:16 +0100 Subject: [Gambas-user] One report for each query? In-Reply-To: References: Message-ID: Dim s, sHistory As String Dim ss As String[] Dim hRel As ReportTextLabel Dim hTitle As ReportLabel Dim iWidth, H, i As Integer Dim hResult As Result 'Report.Debug = True hResult = FMain.hResult hResult.MoveFirst For i = 0 To hResult.Count - 1 sHistory &= hResult!hinum & " " & Format(hResult!hidat, gb.ShortDate) & "\n" sHistory &= hResult!hilon & "\n\n" hResult.MoveNext Next Report1.Font = Font["Serif,12"] iWidth = ReturnWidth() H = Report1.Font.H '--- Title hTitle = New ReportLabel(ReportVBox1) hTitle.Font = Font["Serif, bold, 16"] hTitle.Brush = ReportBrush.Color(Color.Red) '' I don't understand how do this sigh! hTitle.Alignment = Align.Center hTitle.Text = "History of Meismann test on " & Format(Now, gb.ShortDate) '---space hRel = New ReportTextLabel(ReportVBox1) hRel.Height = "10mm" ss = Split(sHistory, "\n", Null, False, True) For Each s In ss hRel = New ReportTextLabel(ReportVBox1) hRel.Font = Font["Serif,12"] hRel.Alignment = Align.Justify hRel.Text = s hRel.Height = CStr(Rows(s, iWidth) * H) & "px" Next The problem come fro the fact that you use a reportTextLabel... the color for this kind of object must be set by the richtext elements. In your case it is better to use a textLabel for the title that use the brush property :-). The other way for richtextLabel is : "" & MyText & "" ex : hRel = New ReportTextLabel(ReportVBox1) hRel.Font = Font["Serif, bold, 16"] hRel.Brush = ReportBrush.Color(Color.DarkBlue) '' I don't understand how do this sigh! hRel.Alignment = Align.Center hRel.Text = "History of Meismann test on " & Format(Now, gb.ShortDate) & "" Le sam. 2 nov. 2019 ? 14:35, Gianluigi a ?crit : > Hi Fabien, > > thank you very much for the answers, you are great ? > Regarding "hReport = New Report1", I would have had to figure it out on my > own, the senile stupidity is a bad thing :-( > > Unfortunately I still don't understand how to color the strings :-(( > > See attachment with suggested changes > > Regards > Gianluigi > > Il giorno sab 2 nov 2019 alle ore 12:54 Fabien Bodard > ha scritto: > >> 'hRel.Brush.Color = ReportBrush.Color(Color.DarkBlue) I don't understand >> how do this sigh! >> >> no ! : >> hRel.Brush = ReportBrush.Color(Color.DarkBlue) I don't understand how do >> this sigh! >> >> hRel.Brush receive a brush generated by ReportBrush... it work like >> Paint.Brush with (paint.Color/Paint.gradient/...) >> >> Le sam. 2 nov. 2019 ? 12:50, Fabien Bodard a >> ?crit : >> >>> well because you use only the auto generated instance . >>> >>> When you call Report1.Preview >>> >>> in background it do a thing like >>> >>> Report1 = New Report1 >>> >>> So the object Report1 theoretically is not callable directly. In the >>> past ... in the beginning of gambas ... (well 20 years) You cannot do >>> Form1.Show >>> >>> You'll have to do a : >>> Dim hForm as new Form1 as "Form" >>> hForm.Show >>> >>> All of that to say .... in your case do : >>> >>> Public Sub Button1_Click() >>> hreport = new Report1 >>> $hResult = MBase.ReturnDataNumber() >>> If Not $hResult Then >>> Message.Error(("Query result not available\n\nSorry but it is >>> impossible to continue.")) >>> Me.Close >>> Return >>> Endif >>> hReport.Preview >>> >>> End >>> >>> Public Sub Button2_Click() >>> hReport = new Report1 >>> $hResult = MBase.ReturnDataDate() >>> If Not $hResult Then >>> Message.Error(("Query result not available\n\nSorry but it is >>> impossible to continue.")) >>> Me.Close >>> Return >>> Endif >>> hReport.Preview >>> >>> End >>> >>> >>> >>> Le ven. 1 nov. 2019 ? 18:24, Gianluigi a ?crit : >>> >>>> Hi Fabien, >>>> >>>> inspired by a discussion on the German forum I wanted to see if I could >>>> make a report in that way. >>>> I was unable to use the same report for two slightly different queries. >>>> Should I use a different report for each query? >>>> I can't change the color of the writing with the code. >>>> >>>> Any suggestions? >>>> >>>> Regards >>>> Gianluigi >>>> >>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>> ]---- >>>> >>> >>> >>> -- >>> Fabien Bodard >>> >> >> >> -- >> Fabien Bodard >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat Nov 2 16:17:11 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 2 Nov 2019 16:17:11 +0100 Subject: [Gambas-user] One report for each query? In-Reply-To: References: Message-ID: Hi Fabien, I would never have understood why I was convinced of using a ReportLabel. Thank you very much and I apologize for disturbing Gianluigi Il giorno sab 2 nov 2019 alle ore 15:05 Fabien Bodard ha scritto: > Dim s, sHistory As String > Dim ss As String[] > Dim hRel As ReportTextLabel > Dim hTitle As ReportLabel > Dim iWidth, H, i As Integer > Dim hResult As Result > > 'Report.Debug = True > hResult = FMain.hResult > hResult.MoveFirst > For i = 0 To hResult.Count - 1 > sHistory &= hResult!hinum & " " & Format(hResult!hidat, gb.ShortDate) > & "\n" > sHistory &= hResult!hilon & "\n\n" > hResult.MoveNext > Next > Report1.Font = Font["Serif,12"] > iWidth = ReturnWidth() > H = Report1.Font.H > '--- Title > hTitle = New ReportLabel(ReportVBox1) > hTitle.Font = Font["Serif, bold, 16"] > hTitle.Brush = ReportBrush.Color(Color.Red) '' I don't understand how do > this sigh! > hTitle.Alignment = Align.Center > hTitle.Text = "History of Meismann test on " & Format(Now, gb.ShortDate) > '---space > hRel = New ReportTextLabel(ReportVBox1) > hRel.Height = "10mm" > ss = Split(sHistory, "\n", Null, False, True) > For Each s In ss > hRel = New ReportTextLabel(ReportVBox1) > hRel.Font = Font["Serif,12"] > hRel.Alignment = Align.Justify > hRel.Text = s > hRel.Height = CStr(Rows(s, iWidth) * H) & "px" > Next > > > The problem come fro the fact that you use a reportTextLabel... the color > for this kind of object must be set by the richtext elements. > In your case it is better to use a textLabel for the title that use the > brush property :-). > > The other way for richtextLabel is : > > "" & MyText & "" > > ex : > hRel = New ReportTextLabel(ReportVBox1) > hRel.Font = Font["Serif, bold, 16"] > hRel.Brush = ReportBrush.Color(Color.DarkBlue) '' I don't understand how > do this sigh! > hRel.Alignment = Align.Center > hRel.Text = "History of Meismann test on " & > Format(Now, gb.ShortDate) & "" > > Le sam. 2 nov. 2019 ? 14:35, Gianluigi a ?crit : > >> Hi Fabien, >> >> thank you very much for the answers, you are great ? >> Regarding "hReport = New Report1", I would have had to figure it out on >> my own, the senile stupidity is a bad thing :-( >> >> Unfortunately I still don't understand how to color the strings :-(( >> >> See attachment with suggested changes >> >> Regards >> Gianluigi >> >> Il giorno sab 2 nov 2019 alle ore 12:54 Fabien Bodard < >> gambas.fr at gmail.com> ha scritto: >> >>> 'hRel.Brush.Color = ReportBrush.Color(Color.DarkBlue) I don't understand >>> how do this sigh! >>> >>> no ! : >>> hRel.Brush = ReportBrush.Color(Color.DarkBlue) I don't understand how do >>> this sigh! >>> >>> hRel.Brush receive a brush generated by ReportBrush... it work like >>> Paint.Brush with (paint.Color/Paint.gradient/...) >>> >>> Le sam. 2 nov. 2019 ? 12:50, Fabien Bodard a >>> ?crit : >>> >>>> well because you use only the auto generated instance . >>>> >>>> When you call Report1.Preview >>>> >>>> in background it do a thing like >>>> >>>> Report1 = New Report1 >>>> >>>> So the object Report1 theoretically is not callable directly. In the >>>> past ... in the beginning of gambas ... (well 20 years) You cannot do >>>> Form1.Show >>>> >>>> You'll have to do a : >>>> Dim hForm as new Form1 as "Form" >>>> hForm.Show >>>> >>>> All of that to say .... in your case do : >>>> >>>> Public Sub Button1_Click() >>>> hreport = new Report1 >>>> $hResult = MBase.ReturnDataNumber() >>>> If Not $hResult Then >>>> Message.Error(("Query result not available\n\nSorry but it is >>>> impossible to continue.")) >>>> Me.Close >>>> Return >>>> Endif >>>> hReport.Preview >>>> >>>> End >>>> >>>> Public Sub Button2_Click() >>>> hReport = new Report1 >>>> $hResult = MBase.ReturnDataDate() >>>> If Not $hResult Then >>>> Message.Error(("Query result not available\n\nSorry but it is >>>> impossible to continue.")) >>>> Me.Close >>>> Return >>>> Endif >>>> hReport.Preview >>>> >>>> End >>>> >>>> >>>> >>>> Le ven. 1 nov. 2019 ? 18:24, Gianluigi a ?crit : >>>> >>>>> Hi Fabien, >>>>> >>>>> inspired by a discussion on the German forum I wanted to see if I >>>>> could make a report in that way. >>>>> I was unable to use the same report for two slightly different queries. >>>>> Should I use a different report for each query? >>>>> I can't change the color of the writing with the code. >>>>> >>>>> Any suggestions? >>>>> >>>>> Regards >>>>> Gianluigi >>>>> >>>>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >>>>> ]---- >>>>> >>>> >>>> >>>> -- >>>> Fabien Bodard >>>> >>> >>> >>> -- >>> Fabien Bodard >>> >>> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >>> >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Nov 3 10:14:57 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 3 Nov 2019 10:14:57 +0100 Subject: [Gambas-user] "/tmp/gambas.1000" folder question Message-ID: Hello people, I need an information. Is the "/tmp/gambas.1000" folder always accessible or are there different circumstances? In other words, should it be tested with: Access("/tmp/gambas.1000", gb.Write Or gb.Exec)? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Sun Nov 3 11:07:04 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 3 Nov 2019 20:37:04 +1030 Subject: [Gambas-user] "/tmp/gambas.1000" folder question In-Reply-To: References: Message-ID: On 3/11/19 7:44 pm, Gianluigi wrote: > Hello people, > > I need an information. Is the "/tmp/gambas.1000" folder always > accessible In short, no. > or are there different circumstances? > In other words, should it be tested with: Access("/tmp/gambas.1000", > gb.Write Or gb.Exec)? > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Long answer follows tomorrow. b From bagonergi at gmail.com Sun Nov 3 13:18:42 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 3 Nov 2019 13:18:42 +0100 Subject: [Gambas-user] "/tmp/gambas.1000" folder question In-Reply-To: References: Message-ID: Thanks to Bruce for the answers. I specify my question better. In the past I have been criticized because I posted examples that copied files to the tmp folder. Then I ask you; which is the best method to post an example project and avoid dirtying the user's home folder without using /tmp? I suppose that not all those who download the examples are system users. Could it be a good solution to create a temporary folder in the user's home and delete it when the program exits? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Nov 3 13:39:04 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 3 Nov 2019 13:39:04 +0100 Subject: [Gambas-user] "/tmp/gambas.1000" folder question In-Reply-To: References: Message-ID: <20191103123904.GI1314@highrise.localdomain> On Sun, 03 Nov 2019, Gianluigi wrote: > Thanks to Bruce for the answers. > I specify my question better. > In the past I have been criticized because I posted examples that copied > files to the tmp folder. > Then I ask you; which is the best method to post an example project and > avoid dirtying the user's home folder without using /tmp? > I suppose that not all those who download the examples are system users. > Could it be a good solution to create a temporary folder in the user's home > and delete it when the program exits? > If you can be sure that your "photos" project doesn't hijack and then delete my personal "photos" directory, go ahead. People will be extremely mad if something messes with their data when they just wanted to help someone from the mailing list. It's THEIR HOME for a reason. (Of course, everyone should read and understand source code they got from a stranger first before running it. Oh, and do we have docker images for a full Gambas install yet?) In my book, /tmp is much better for runtime data than the user's home directory and with Gambas' /tmp/gambas.$uid/$pid directories, you can be sure that you don't step on other people's toes. Unless the process crashes, Gambas will even tidy up after you automatically. No reason to reinvent that and maybe make a mistake by doing so. I'd like to hear the criticism about putting things into /tmp, especially when we are talking about example projects. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sun Nov 3 14:11:39 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 3 Nov 2019 14:11:39 +0100 Subject: [Gambas-user] "/tmp/gambas.1000" folder question In-Reply-To: <20191103123904.GI1314@highrise.localdomain> References: <20191103123904.GI1314@highrise.localdomain> Message-ID: Il giorno dom 3 nov 2019 alle ore 13:40 Tobias Boege ha scritto: > On Sun, 03 Nov 2019, Gianluigi wrote: > > Thanks to Bruce for the answers. > > I specify my question better. > > In the past I have been criticized because I posted examples that copied > > files to the tmp folder. > > Then I ask you; which is the best method to post an example project and > > avoid dirtying the user's home folder without using /tmp? > > I suppose that not all those who download the examples are system users. > > Could it be a good solution to create a temporary folder in the user's > home > > and delete it when the program exits? > > > > If you can be sure that your "photos" project doesn't hijack and then > delete my personal "photos" directory, go ahead. People will be extremely > mad if something messes with their data when they just wanted to help > someone from the mailing list. It's THEIR HOME for a reason. > (Of course, everyone should read and understand source code they got > from a stranger first before running it. Oh, and do we have docker > images for a full Gambas install yet?) > > In my book, /tmp is much better for runtime data than the user's home > directory and with Gambas' /tmp/gambas.$uid/$pid directories, you can > be sure that you don't step on other people's toes. Unless the process > crashes, Gambas will even tidy up after you automatically. No reason > to reinvent that and maybe make a mistake by doing so. > > I'd like to hear the criticism about putting things into /tmp, especially > when we are talking about example projects. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Hi Tobias, thank you very much, you have dispelled my doubts (doubts put in my mind by others :-P). >From now on I will always use the /tmp folder to copy the sample files, avoiding getting the home folders dirty. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From claude.dessere at orange.fr Tue Nov 5 16:26:03 2019 From: claude.dessere at orange.fr (CD) Date: Tue, 05 Nov 2019 16:26:03 +0100 Subject: [Gambas-user] Bug fix Message-ID: Hello, I published 2 bugs the 1336 the 30/05/2018 and the 1344 the 06/06/2018 when will they be corrected? Attachment: TestBug05-0.0.1.tar.gz regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: TestBug05-0.0.1.tar.gz Type: application/x-compressed-tar Size: 23709 bytes Desc: not available URL: From gambas.fr at gmail.com Thu Nov 7 11:17:46 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 7 Nov 2019 11:17:46 +0100 Subject: [Gambas-user] http://www.swig.org/ Message-ID: Hi, Benoit Did you know about this ? http://www.swig.org/ What about to use this to have a tool to easily automation libs wrapping in gambas for not official supported libs ? -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From egcaruana at gmail.com Wed Nov 13 13:52:27 2019 From: egcaruana at gmail.com (Manny Caruana) Date: Wed, 13 Nov 2019 12:52:27 +0000 Subject: [Gambas-user] Property shortcut Message-ID: This new feature is very nice and useful for cutting down unnecessary source code. It would be applicable in a lot more cases if the private variable could also be initialised , i.e. add [ = Expression ] to the syntax allowing: Property iCount As Integer Use $iCounter = 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Nov 14 02:22:43 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 14 Nov 2019 03:22:43 +0200 Subject: [Gambas-user] Constant and IDE Message-ID: Is there any trick to make IDE aware of your constants? I would love to see my constant names instead of their values when debugging. Maybe a button similar as there is now for viewing values as decimal or hexadecimal, but instead as in the class constants. If there are multiple constants having same value, then maybe they all should be shown. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Fri Nov 15 17:32:18 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Fri, 15 Nov 2019 17:32:18 +0100 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks. How to fallback to 3.13 ? Message-ID: Good evening Bug #1666 raised with 3.14.0, fixed 20191020, will be gone with 3.14.1. In order to avoid updating from 3.13 to 3.14.0 all users have to untick 78(!) entries repeatedly (see https://paste.c-net.org/SubjectsOverride). Please ! 1) Would it be possible to put all those single Gambas-files under Gambas-Sub-folder in order to untick all of them with just one click? Please ! 2) Is there a simple way to fallback from 3.14.0 to 3.13 ? (To free all users already "caught" in 3.14.0) Sorry for repeating my request again. But I's getting quite nasty. Thanks a lot for any help, keywords, etc (... and Gambas !) ub2 From jussi.lahtinen at gmail.com Fri Nov 15 21:10:54 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 15 Nov 2019 22:10:54 +0200 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks. How to fallback to 3.13 ? In-Reply-To: References: Message-ID: What is that system? No "unselect all" on right mouse click? Anyway, what is the method of installation? PPA? Maybe: sudo apt-get install gambas3=3.13 Jussi On Fri, Nov 15, 2019 at 6:33 PM ub2 at gmx.ch wrote: > Good evening > > > Bug #1666 raised with 3.14.0, fixed 20191020, will be gone with 3.14.1. > > In order to avoid updating from 3.13 to 3.14.0 all users have to untick > 78(!) entries repeatedly (see https://paste.c-net.org/SubjectsOverride). > > Please ! > 1) Would it be possible to put all those single Gambas-files under > Gambas-Sub-folder in order to untick all of them with just one click? > Please ! > > 2) Is there a simple way to fallback from 3.14.0 to 3.13 ? > (To free all users already "caught" in 3.14.0) > > > Sorry for repeating my request again. But I's getting quite nasty. > > > Thanks a lot for any help, keywords, etc > (... and Gambas !) > > > ub2 > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Sat Nov 16 10:55:29 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Sat, 16 Nov 2019 10:55:29 +0100 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks. How to fallback to 3.13 _ Workaround ok In-Reply-To: References: Message-ID: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> Morning Jussi Thanks for your help and sorry for late response. (took me a while to check your advice with a clone.) It is still a workaround (now less ticks than unticks before) but Gambas remains "messy" in the update-List. ... hoping for 3.14.1 to come soon. Details between your lines. ub2 Am 15.11.19 um 21:10 schrieb Jussi Lahtinen: > What is that system? No "unselect all" on right mouse click? - Xub1604LTS and Xub1804LTS - RightMouse UnselectAll works. Thanks, sorry, shame on me, probably too obvious to remember ... > Anyway, what is the method of installation? PPA? - sudo add-apt-repository http://ppa.launchpad.net/gambas-team/gambas3/ubuntu - sudo apt-get update - sudo apt-get install gambas3 > > Maybe: > sudo apt-get install gambas3=3.13 - sudo apt-get install gambas3=3.13 - sudo apt-get install gambas3=3.13.0 - sudo apt-get install gambas3=3.13.* - sudo apt-get install {etc} -- All fail with: ... Paket gambas{3.13.1 resp} kann nicht gefunden werden.... (... Package ... not found ...) > > > Jussi > > On Fri, Nov 15, 2019 at 6:33 PM ub2 at gmx.ch > > wrote: > > Good evening > > > Bug #1666 raised with 3.14.0, fixed 20191020, will be gone with 3.14.1. > > In order to avoid updating from 3.13 to 3.14.0 all users have to untick > 78(!) entries repeatedly (see https://paste.c-net.org/SubjectsOverride). > > Please ! > 1) Would it be possible to put all those single Gambas-files under > Gambas-Sub-folder in order to untick all of them with just one click? > Please ! > > 2) Is there a simple way to fallback from 3.14.0 to 3.13 ? > (To free all users already "caught" in 3.14.0) > > > Sorry for repeating my request again. But I's getting quite nasty. > > > Thanks a lot for any help, keywords, etc > (... and Gambas !) > > > ub2 > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From chrisml at deganius.de Sat Nov 16 13:26:38 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 16 Nov 2019 13:26:38 +0100 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks. How to fallback to 3.13 ? In-Reply-To: References: Message-ID: Am 15.11.19 um 17:32 schrieb ub2 at gmx.ch: > In order to avoid updating from 3.13 to 3.14.0 all users have to untick > 78(!) entries repeatedly (see https://paste.c-net.org/SubjectsOverride). No! sudo apt remove gambas3-ide gambas3-runtime should do the trick. Afterwards a dpkg -l | grep gambas3 should not show any entry any more. Alles Gute Christof Thalhofer -- [x] nail here for new monitor From ub2 at gmx.ch Sat Nov 16 18:09:46 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Sat, 16 Nov 2019 18:09:46 +0100 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks - without Gambas removal In-Reply-To: References: Message-ID: Dear Christof Thank you for your input. Your commands work, but they also remove Gambas completely ! But my users need - Gambas in a working Version (3.13). - to avoid Version 3.14.0 as long as Bug #1644, Fixed in 201910210, is not released with 3.14.1. Some users got trapped in 3.14.0, for those I need a fallback to 3.13. (2nd Priority) Have a nice weekend ub2 Am 16.11.19 um 13:26 schrieb Christof Thalhofer: > Am 15.11.19 um 17:32 schrieb ub2 at gmx.ch: > >> In order to avoid updating from 3.13 to 3.14.0 all users have to untick >> 78(!) entries repeatedly (see https://paste.c-net.org/SubjectsOverride). > > No! > > sudo apt remove gambas3-ide gambas3-runtime > > should do the trick. > > Afterwards a > > dpkg -l | grep gambas3 > > should not show any entry any more. > > Alles Gute > > Christof Thalhofer > From chrisml at deganius.de Sat Nov 16 19:08:34 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 16 Nov 2019 19:08:34 +0100 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks - without Gambas removal In-Reply-To: References: Message-ID: <93865fa2-1cf4-73be-1c0d-7b17ddb702b8@deganius.de> Am 16.11.19 um 18:09 schrieb ub2 at gmx.ch: > Thank you for your input. > Your commands work, but they also remove Gambas completely ! You have to remove Gambas 3.14 completely before you can install 3.13. > But my users need > - Gambas in a working Version (3.13). > - to avoid Version 3.14.0 as long as Bug #1644, Fixed in 201910210, > is not released with 3.14.1. I think it will be available in a few days. You can write a mail to Sebikul to remind him: https://launchpad.net/~sebikul > Some users got trapped in 3.14.0, for those I need a fallback to 3.13. > (2nd Priority) Jussi told you how to install an older version. Afaik you are using Ubuntu, right? 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 jussi.lahtinen at gmail.com Sat Nov 16 22:38:31 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 16 Nov 2019 23:38:31 +0200 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks. How to fallback to 3.13 _ Workaround ok In-Reply-To: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> References: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> Message-ID: What is output of "apt-cache policy gambas3"? Jussi On Sat, Nov 16, 2019 at 11:55 AM ub2 at gmx.ch wrote: > Morning Jussi > > Thanks for your help and sorry for late response. > (took me a while to check your advice with a clone.) > > It is still a workaround (now less ticks than unticks before) > but Gambas remains "messy" in the update-List. > ... hoping for 3.14.1 to come soon. > > Details between your lines. > > ub2 > > Am 15.11.19 um 21:10 schrieb Jussi Lahtinen: > > What is that system? No "unselect all" on right mouse click? > - Xub1604LTS and Xub1804LTS > > - RightMouse UnselectAll works. > Thanks, sorry, shame on me, probably too obvious to remember ... > > > > Anyway, what is the method of installation? PPA? > - sudo add-apt-repository > http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > - sudo apt-get update > - sudo apt-get install gambas3 > > > > > Maybe: > > sudo apt-get install gambas3=3.13 > - sudo apt-get install gambas3=3.13 > - sudo apt-get install gambas3=3.13.0 > - sudo apt-get install gambas3=3.13.* > - sudo apt-get install {etc} > -- All fail with: > ... Paket gambas{3.13.1 resp} kann nicht gefunden werden.... > (... Package ... not found ...) > > > > > > > Jussi > > > > On Fri, Nov 15, 2019 at 6:33 PM ub2 at gmx.ch > > > wrote: > > > > Good evening > > > > > > Bug #1666 raised with 3.14.0, fixed 20191020, will be gone with > 3.14.1. > > > > In order to avoid updating from 3.13 to 3.14.0 all users have to > untick > > 78(!) entries repeatedly (see > https://paste.c-net.org/SubjectsOverride). > > > > Please ! > > 1) Would it be possible to put all those single Gambas-files under > > Gambas-Sub-folder in order to untick all of them with just one click? > > Please ! > > > > 2) Is there a simple way to fallback from 3.14.0 to 3.13 ? > > (To free all users already "caught" in 3.14.0) > > > > > > Sorry for repeating my request again. But I's getting quite nasty. > > > > > > Thanks a lot for any help, keywords, etc > > (... and Gambas !) > > > > > > ub2 > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sun Nov 17 19:32:29 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sun, 17 Nov 2019 19:32:29 +0100 Subject: [Gambas-user] Release of Gambas 3.14.2 Message-ID: Hi, I have just released Gambas 3.14.2. This release mainly includes a fix of the Message class that disturbs a lot of people. The website is not yet up to date, but you can download the source archive at: https://gitlab.com/gambas/gambas/-/archive/3.14.2/gambas-3.14.2.tar.bz2 Please report any problem with the package. Regards, -- Beno?t Minisini From t.lee.davidson at gmail.com Mon Nov 18 03:27:58 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 17 Nov 2019 21:27:58 -0500 Subject: [Gambas-user] Accessing characters of string as array Message-ID: <4e146c73-3af8-e976-1467-e65450ec5945@gmail.com> The documentation for Mid() [0] says: Using string like arrays (as known as "Boxed strings") SINCE 3.12 You can get the contents of a string using the following array-like syntax: Result = String [ Start As Integer [ , Length As Integer ] ] --- end quote --- Nice. But the following causes the exception, "Not an object": Public Sub Main() Dim s As String = "123456789" Print s[3, 1] End Is this a bug, or am I misunderstanding the documentation? ___ Lee [0] http://gambaswiki.org/wiki/lang/mid From jussi.lahtinen at gmail.com Mon Nov 18 04:19:59 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 18 Nov 2019 05:19:59 +0200 Subject: [Gambas-user] Accessing characters of string as array In-Reply-To: <4e146c73-3af8-e976-1467-e65450ec5945@gmail.com> References: <4e146c73-3af8-e976-1467-e65450ec5945@gmail.com> Message-ID: Works here with development version. What is your version? Jussi On Mon, Nov 18, 2019 at 4:29 AM T Lee Davidson wrote: > The documentation for Mid() [0] says: > Using string like arrays (as known as "Boxed strings") > SINCE 3.12 > You can get the contents of a string using the following array-like syntax: > > > Result = String [ Start As Integer [ , Length As Integer ] ] > --- end quote --- > > Nice. But the following causes the exception, "Not an object": > Public Sub Main() > > Dim s As String = "123456789" > > Print s[3, 1] > > End > > > Is this a bug, or am I misunderstanding the documentation? > > > ___ > Lee > > [0] http://gambaswiki.org/wiki/lang/mid > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Mon Nov 18 09:27:33 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Mon, 18 Nov 2019 09:27:33 +0100 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks. How to fallback to 3.13 _ 3.14.2 coming In-Reply-To: References: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> Message-ID: <3856c49c-1694-f13c-215a-87c39f2d90a3@gmx.ch> Dear Jussi Below your requested output. But we might stop our debugging here since 3.14.2 is on the way. (I'll update to 3.14.2 and check next end of this week) Even though a general fallback/undo feature might be quite helpful (.. and avoid user of being too pushy to developers) Installing an older Version I still did not manage. ub2 PS: Thanks to all "Gambinos" for Gambas and very helpful support! Am 16.11.19 um 22:38 schrieb Jussi Lahtinen: > What is output of "apt-cache policy gambas3"? xxxxxx at xxxxxx:~/Schreibtisch$ apt-cache policy gambas3 gambas3: Installiert: 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 Installationskandidat: 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 Versionstabelle: *** 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 500 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial/main amd64 Packages 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial/main i386 Packages 100 /var/lib/dpkg/status 3.11.4+git6006.c199130+build1.bca3d02.5.93b81c7~ubuntu16.04.1 500 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial/main amd64 Packages 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial/main i386 Packages 3.8.4-2ubuntu3.1 500 500 http://ubuntu.ethz.ch/ubuntu xenial-updates/universe amd64 Packages 500 http://ubuntu.ethz.ch/ubuntu xenial-updates/universe i386 Packages 3.8.4-2ubuntu3 500 500 http://ubuntu.ethz.ch/ubuntu xenial/universe amd64 Packages 500 http://ubuntu.ethz.ch/ubuntu xenial/universe i386 Packages > > > Jussi > > On Sat, Nov 16, 2019 at 11:55 AM ub2 at gmx.ch > > wrote: > > Morning Jussi > > Thanks for your help and sorry for late response. > (took me a while to check your advice with a clone.) > > It is still a workaround (now less ticks than unticks before) > but Gambas remains "messy" in the update-List. > ... hoping for 3.14.1 to come soon. > > Details between your lines. > > ub2 > > Am 15.11.19 um 21:10 schrieb Jussi Lahtinen: > > What is that system? No "unselect all" on right mouse click? > - Xub1604LTS and Xub1804LTS > > - RightMouse UnselectAll works. > Thanks, sorry, shame on me, probably too obvious to remember ... > > > > Anyway, what is the method of installation? PPA? > - sudo add-apt-repository > http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > - sudo apt-get update > - sudo apt-get install gambas3 > > > > > Maybe: > > sudo apt-get install gambas3=3.13 > - sudo apt-get install gambas3=3.13 > - sudo apt-get install gambas3=3.13.0 > - sudo apt-get install gambas3=3.13.* > - sudo apt-get install {etc} > -- All fail with: > ? ? ? ? ... Paket gambas{3.13.1 resp} kann nicht gefunden werden.... > ? ? ? ? (... Package ... not found ...) > > > > > > > Jussi > > > > On Fri, Nov 15, 2019 at 6:33 PM ub2 at gmx.ch > > > > >> wrote: > > > >? ? ?Good evening > > > > > >? ? ?Bug #1666 raised with 3.14.0, fixed 20191020, will be gone > with 3.14.1. > > > >? ? ?In order to avoid updating from 3.13 to 3.14.0 all users have > to untick > >? ? ?78(!) entries repeatedly (see > https://paste.c-net.org/SubjectsOverride). > > > >? ? ?Please ! > >? ? ?1) Would it be possible to put all those single Gambas-files under > >? ? ?Gambas-Sub-folder in order to untick all of them with just one > click? > >? ? ?Please ! > > > >? ? ?2) Is there a simple way to fallback from 3.14.0 to 3.13 ? > >? ? ?(To free all users already "caught" in 3.14.0) > > > > > >? ? ?Sorry for repeating my request again. But I's getting quite nasty. > > > > > >? ? ?Thanks a lot for any help, keywords, etc > >? ? ?(... and Gambas !) > > > > > >? ? ?ub2 > > > >? ? ?----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > From t.lee.davidson at gmail.com Mon Nov 18 17:46:36 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 18 Nov 2019 11:46:36 -0500 Subject: [Gambas-user] Accessing characters of string as array In-Reply-To: References: <4e146c73-3af8-e976-1467-e65450ec5945@gmail.com> Message-ID: <41492128-57b8-711d-07d3-f667cfd053c1@gmail.com> Oh my gosh. No wonder it doesn't work. I just upgraded to the latest OpenSUSE Leap 15.1 and simply assumed the Gambas version would be recent. Ugh, it's version 3.10. Sorry for the noise. ___ Lee On 11/17/19 10:19 PM, Jussi Lahtinen wrote: > Works here with development version. > What is your version? > > > Jussi > > On Mon, Nov 18, 2019 at 4:29 AM T Lee Davidson > wrote: > > The documentation for Mid() [0] says: > Using string like arrays (as known as "Boxed strings") > SINCE 3.12 > You can get the contents of a string using the following array-like syntax: > > > Result = String [ Start As Integer [ , Length As Integer ] ] > --- end quote --- > > Nice. But the following causes the exception, "Not an object": > Public Sub Main() > > ? ?Dim s As String = "123456789" > > ? ?Print s[3, 1] > > End > > > Is this a bug, or am I misunderstanding the documentation? > > > ___ > Lee > > [0] http://gambaswiki.org/wiki/lang/mid > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From jussi.lahtinen at gmail.com Mon Nov 18 21:30:15 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Mon, 18 Nov 2019 22:30:15 +0200 Subject: [Gambas-user] Please (2): Avaiting 3.14.1 avoiding 3.14.0 results in 78(!) unticks. How to fallback to 3.13 _ 3.14.2 coming In-Reply-To: <3856c49c-1694-f13c-215a-87c39f2d90a3@gmx.ch> References: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> <3856c49c-1694-f13c-215a-87c39f2d90a3@gmx.ch> Message-ID: You may want to try using example "3.8.4-2ubuntu3.1" as version number. The command I gave print available versions. Jussi On Mon, Nov 18, 2019 at 10:27 AM ub2 at gmx.ch wrote: > Dear Jussi > > > Below your requested output. > But we might stop our debugging here since 3.14.2 is on the way. > (I'll update to 3.14.2 and check next end of this week) > > Even though a general fallback/undo feature might be quite helpful > (.. and avoid user of being too pushy to developers) > > Installing an older Version I still did not manage. > > ub2 > > > PS: Thanks to all "Gambinos" for Gambas and very helpful support! > > > > Am 16.11.19 um 22:38 schrieb Jussi Lahtinen: > > What is output of "apt-cache policy gambas3"? > xxxxxx at xxxxxx:~/Schreibtisch$ apt-cache policy gambas3 > gambas3: > Installiert: > 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 > Installationskandidat: > 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 > Versionstabelle: > *** 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 500 > 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main amd64 Packages > 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main i386 Packages > 100 /var/lib/dpkg/status > 3.11.4+git6006.c199130+build1.bca3d02.5.93b81c7~ubuntu16.04.1 500 > 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main amd64 Packages > 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main i386 Packages > 3.8.4-2ubuntu3.1 500 > 500 http://ubuntu.ethz.ch/ubuntu xenial-updates/universe amd64 > Packages > 500 http://ubuntu.ethz.ch/ubuntu xenial-updates/universe i386 > Packages > 3.8.4-2ubuntu3 500 > 500 http://ubuntu.ethz.ch/ubuntu xenial/universe amd64 Packages > 500 http://ubuntu.ethz.ch/ubuntu xenial/universe i386 Packages > > > > > > > Jussi > > > > On Sat, Nov 16, 2019 at 11:55 AM ub2 at gmx.ch > > > wrote: > > > > Morning Jussi > > > > Thanks for your help and sorry for late response. > > (took me a while to check your advice with a clone.) > > > > It is still a workaround (now less ticks than unticks before) > > but Gambas remains "messy" in the update-List. > > ... hoping for 3.14.1 to come soon. > > > > Details between your lines. > > > > ub2 > > > > Am 15.11.19 um 21:10 schrieb Jussi Lahtinen: > > > What is that system? No "unselect all" on right mouse click? > > - Xub1604LTS and Xub1804LTS > > > > - RightMouse UnselectAll works. > > Thanks, sorry, shame on me, probably too obvious to remember ... > > > > > > > Anyway, what is the method of installation? PPA? > > - sudo add-apt-repository > > http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > > - sudo apt-get update > > - sudo apt-get install gambas3 > > > > > > > > Maybe: > > > sudo apt-get install gambas3=3.13 > > - sudo apt-get install gambas3=3.13 > > - sudo apt-get install gambas3=3.13.0 > > - sudo apt-get install gambas3=3.13.* > > - sudo apt-get install {etc} > > -- All fail with: > > ... Paket gambas{3.13.1 resp} kann nicht gefunden werden.... > > (... Package ... not found ...) > > > > > > > > > > > Jussi > > > > > > On Fri, Nov 15, 2019 at 6:33 PM ub2 at gmx.ch > > > > > > > >> wrote: > > > > > > Good evening > > > > > > > > > Bug #1666 raised with 3.14.0, fixed 20191020, will be gone > > with 3.14.1. > > > > > > In order to avoid updating from 3.13 to 3.14.0 all users have > > to untick > > > 78(!) entries repeatedly (see > > https://paste.c-net.org/SubjectsOverride). > > > > > > Please ! > > > 1) Would it be possible to put all those single Gambas-files > under > > > Gambas-Sub-folder in order to untick all of them with just one > > click? > > > Please ! > > > > > > 2) Is there a simple way to fallback from 3.14.0 to 3.13 ? > > > (To free all users already "caught" in 3.14.0) > > > > > > > > > Sorry for repeating my request again. But I's getting quite > nasty. > > > > > > > > > Thanks a lot for any help, keywords, etc > > > (... and Gambas !) > > > > > > > > > ub2 > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Tue Nov 19 19:20:44 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 19 Nov 2019 19:20:44 +0100 Subject: [Gambas-user] Web Quotes Message-ID: Hi Is there a tool to convert sp?cial Characters from "#000" web quote to utf-8 ? thank you -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Tue Nov 19 19:36:14 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 19 Nov 2019 19:36:14 +0100 Subject: [Gambas-user] Help for component gb.web.form Message-ID: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> Hello, the component gb.web.form is unfortunately only very poorly documented. Some properties, methods and events explain themselves - but only the known ones. If it becomes special, then one stands completely in the dark! To get ahead with our online book, I need help and support for the following properties, methods and events, which are available in many classes: (1) Events: Dialog and Render (2) Properties: FromID, FromName, Style, and Class The classes WebMenu, WebMenuBar and WebMenuItem are in total darkness! The same applies to WebUploadArea and WebUploader. If someone can help, then I ask beside a short description also for a small source code section, which shows, what is meant. Each answer is read gladly. With kind regards Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Tue Nov 19 20:25:33 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Tue, 19 Nov 2019 20:25:33 +0100 Subject: [Gambas-user] Fallback to 3.13 fail, ok since 3.14.2 coming, foolproof update-undo-thing In-Reply-To: References: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> <3856c49c-1694-f13c-215a-87c39f2d90a3@gmx.ch> Message-ID: Dear Jussi None of the following commands worked neither: sudo apt-get install gambas3=3.8.4-2ubuntu3.1 => E: Version "3.8.4-2ubuntu3.1" f "gambas3" konnte nicht gefunden... (Version not found) sudo apt-get install gambas3.8.4-2ubuntu3.1 => E: ..."gambas3.8.4-2ubuntu3.1" kein Packet gefunden (no package found) But I'd like to it stop here, 3.14.2 is coming very soon. And a general fallback feature would need to be foolproof anyway. Means not bash-commands with a high typo risk, but rather a kind of "last-update-undo-Button/Menue" somewhere in the Gambas-IDE. Thanks for your help ub2 Am 18.11.19 um 21:30 schrieb Jussi Lahtinen: > You may want to try using example "3.8.4-2ubuntu3.1" as version number. > The command I gave print available versions. > > > Jussi > > On Mon, Nov 18, 2019 at 10:27 AM ub2 at gmx.ch > > wrote: > > Dear Jussi > > > Below your requested output. > But we might stop our debugging here since 3.14.2 is on the way. > (I'll update to 3.14.2 and check next end of this week) > > Even though a general fallback/undo feature might be quite helpful > (.. and avoid user of being too pushy to developers) > > Installing an older Version I still did not manage. > > ub2 > > > PS: Thanks to all "Gambinos" for Gambas and very helpful support! > > > > Am 16.11.19 um 22:38 schrieb Jussi Lahtinen: > > What is output of "apt-cache policy gambas3"? > xxxxxx at xxxxxx:~/Schreibtisch$ apt-cache policy gambas3 > gambas3: > ? Installiert: > 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 > ? Installationskandidat: > 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 > ? Versionstabelle: > ?*** 3.14.0+git6274.5a9c391+build5.a086335.11.1fbebd7~ubuntu16.04.1 500 > ? ? ? ? 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main amd64 Packages > ? ? ? ? 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main i386 Packages > ? ? ? ? 100 /var/lib/dpkg/status > ? ? ?3.11.4+git6006.c199130+build1.bca3d02.5.93b81c7~ubuntu16.04.1 500 > ? ? ? ? 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main amd64 Packages > ? ? ? ? 500 http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > xenial/main i386 Packages > ? ? ?3.8.4-2ubuntu3.1 500 > ? ? ? ? 500 http://ubuntu.ethz.ch/ubuntu xenial-updates/universe amd64 > Packages > ? ? ? ? 500 http://ubuntu.ethz.ch/ubuntu xenial-updates/universe i386 > Packages > ? ? ?3.8.4-2ubuntu3 500 > ? ? ? ? 500 http://ubuntu.ethz.ch/ubuntu xenial/universe amd64 Packages > ? ? ? ? 500 http://ubuntu.ethz.ch/ubuntu xenial/universe i386 Packages > > > > > > > Jussi > > > > On Sat, Nov 16, 2019 at 11:55 AM ub2 at gmx.ch > > > > >> wrote: > > > >? ? ?Morning Jussi > > > >? ? ?Thanks for your help and sorry for late response. > >? ? ?(took me a while to check your advice with a clone.) > > > >? ? ?It is still a workaround (now less ticks than unticks before) > >? ? ?but Gambas remains "messy" in the update-List. > >? ? ?... hoping for 3.14.1 to come soon. > > > >? ? ?Details between your lines. > > > >? ? ?ub2 > > > >? ? ?Am 15.11.19 um 21:10 schrieb Jussi Lahtinen: > >? ? ?> What is that system? No "unselect all" on right mouse click? > >? ? ?- Xub1604LTS and Xub1804LTS > > > >? ? ?- RightMouse UnselectAll works. > >? ? ?Thanks, sorry, shame on me, probably too obvious to remember ... > > > > > >? ? ?> Anyway, what is the method of installation? PPA? > >? ? ?- sudo add-apt-repository > >? ? ?http://ppa.launchpad.net/gambas-team/gambas3/ubuntu > >? ? ?- sudo apt-get update > >? ? ?- sudo apt-get install gambas3 > > > >? ? ?> > >? ? ?> Maybe: > >? ? ?> sudo apt-get install gambas3=3.13 > >? ? ?- sudo apt-get install gambas3=3.13 > >? ? ?- sudo apt-get install gambas3=3.13.0 > >? ? ?- sudo apt-get install gambas3=3.13.* > >? ? ?- sudo apt-get install {etc} > >? ? ?-- All fail with: > >? ? ?? ? ? ? ... Paket gambas{3.13.1 resp} kann nicht gefunden > werden.... > >? ? ?? ? ? ? (... Package ... not found ...) > > > >? ? ?> > >? ? ?> > >? ? ?> Jussi > >? ? ?> > >? ? ?> On Fri, Nov 15, 2019 at 6:33 PM ub2 at gmx.ch > > > >? ? ? >> > >? ? ?> > > >? ? ?>>> wrote: > >? ? ?> > >? ? ?>? ? ?Good evening > >? ? ?> > >? ? ?> > >? ? ?>? ? ?Bug #1666 raised with 3.14.0, fixed 20191020, will be gone > >? ? ?with 3.14.1. > >? ? ?> > >? ? ?>? ? ?In order to avoid updating from 3.13 to 3.14.0 all users > have > >? ? ?to untick > >? ? ?>? ? ?78(!) entries repeatedly (see > >? ? ?https://paste.c-net.org/SubjectsOverride). > >? ? ?> > >? ? ?>? ? ?Please ! > >? ? ?>? ? ?1) Would it be possible to put all those single > Gambas-files under > >? ? ?>? ? ?Gambas-Sub-folder in order to untick all of them with > just one > >? ? ?click? > >? ? ?>? ? ?Please ! > >? ? ?> > >? ? ?>? ? ?2) Is there a simple way to fallback from 3.14.0 to 3.13 ? > >? ? ?>? ? ?(To free all users already "caught" in 3.14.0) > >? ? ?> > >? ? ?> > >? ? ?>? ? ?Sorry for repeating my request again. But I's getting > quite nasty. > >? ? ?> > >? ? ?> > >? ? ?>? ? ?Thanks a lot for any help, keywords, etc > >? ? ?>? ? ?(... and Gambas !) > >? ? ?> > >? ? ?> > >? ? ?>? ? ?ub2 > >? ? ?> > >? ? ?>? ? ?----[ Gambas mailing-list is hosted by > >? ? ?https://www.hostsharing.net ]---- > >? ? ?> > >? ? ?> > >? ? ?> > >? ? ?> ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net > >? ? ?]---- > >? ? ?> > > > From jussi.lahtinen at gmail.com Tue Nov 19 21:39:02 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 19 Nov 2019 22:39:02 +0200 Subject: [Gambas-user] Fallback to 3.13 fail, ok since 3.14.2 coming, foolproof update-undo-thing In-Reply-To: References: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> <3856c49c-1694-f13c-215a-87c39f2d90a3@gmx.ch> Message-ID: > > And a general fallback feature would need to be foolproof anyway. Means > not bash-commands with a high typo risk, but rather a kind of > "last-update-undo-Button/Menue" somewhere in the Gambas-IDE. > Hmmm... that is job of the operating system. But I think it is possible anyway. Though I'm not sure you will find anyone willing to implement it. I'm not sure what is going on, but I think the PPA does not offer old versions. And thus no fallback. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue Nov 19 22:49:21 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 19 Nov 2019 22:49:21 +0100 Subject: [Gambas-user] Fallback to 3.13 fail, ok since 3.14.2 coming, foolproof update-undo-thing In-Reply-To: References: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> <3856c49c-1694-f13c-215a-87c39f2d90a3@gmx.ch> Message-ID: <766bcfd5-57af-7428-c1a4-2a7677cb2da3@deganius.de> Am 19.11.19 um 20:25 schrieb ub2 at gmx.ch: > None of the following commands worked neither: > > sudo apt-get install gambas3=3.8.4-2ubuntu3.1 > => E: Version "3.8.4-2ubuntu3.1" f "gambas3" konnte nicht gefunden... > (Version not found) Why would you want to install Gambas 3.8 and not 3.13 or 3.12? That's way too old ... the current Ubuntu hat 3.12 in it's packages. > And a general fallback feature would need to be foolproof anyway. Means > not bash-commands with a high typo risk, but rather a kind of > "last-update-undo-Button/Menue" somewhere in the Gambas-IDE. Installation of itself or any program on your Linux computer is not Gambas' job. It's the task of your operating system. There are lots of distributions which do that task in their own way, for instance Suse, Redhat, Debian, Arch and so on. You use Ubuntu which is a Debian child, so the program-suite which does that task is *Apt*. There are some programs in Ubuntu which give you knobs and buttons to click on for that. First of all is the Ubuntu Software Center. https://wiki.ubuntuusers.de/Ubuntu_Software/ But they all use and play with Apt: https://wiki.ubuntuusers.de/Paketverwaltung/ As you decided to install a more recent version of Gambas via Launchpad you have overridden the standard way of your distribution. More recent versions bring always the risk of newer bugs with them. Maybe you should revert that first. 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 ub2 at gmx.ch Wed Nov 20 09:15:33 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Wed, 20 Nov 2019 09:15:33 +0100 Subject: [Gambas-user] Fallback to 3.13, closed, thanks for Gambas and your support ! In-Reply-To: <766bcfd5-57af-7428-c1a4-2a7677cb2da3@deganius.de> References: <2c897980-8f22-52b4-0c09-7f0067bdbd3a@gmx.ch> <3856c49c-1694-f13c-215a-87c39f2d90a3@gmx.ch> <766bcfd5-57af-7428-c1a4-2a7677cb2da3@deganius.de> Message-ID: Dear Christof, Jussi (and whole Gambas-user-list) As already noted, apt will bring us 3.14.2 soon. My users will be very happy (so do I). Any inconvenience meanwhile does not justify any extra coding. My glimpse idea of an "last-update-undo-Button/Menue" was not very thoroughly. Sorry for that. But most important of all: I/we do like Gambas and appreciate support of this community very much. Don't take my input as criticism, but rather as a (maybe clumsy) way to participate within my limited possibilities. Thanks for Gambas, thanks for your support. ub2 From d.mueller at ertl.ch Wed Nov 20 21:49:49 2019 From: d.mueller at ertl.ch (=?UTF-8?Q?David_M=c3=bcller?=) Date: Wed, 20 Nov 2019 21:49:49 +0100 Subject: [Gambas-user] Help for component gb.web.form In-Reply-To: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> References: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> Message-ID: Hello, I have tested WebForms application and i know now that the static method WebControl.FromName() returns a child control object. Warning: the name of the object is not the classname! I used this function to get the reference of an embedded form : The code is here: https://gambas.one/gambasfarm/?id=663&action=search The classname is WebformSessionMgmt for example but, when i create this object, the name of the object when the program runs is "@2" on my computer. Later, i can find my object using WebContainer.FromName("@2"). Hope it helps David Le 19.11.19 ? 19:36, Hans Lehmann a ?crit?: > Hello, > > the component gb.web.form is unfortunately only very poorly > documented. Some properties, methods and events explain themselves - > but only the known ones. If it becomes special, then one stands > completely in the dark! > > To get ahead with our online book, I need help and support for the > following properties, methods and events, which are available in many > classes: > > (1) Events: Dialog and Render > (2) Properties: FromID, FromName, Style, and Class > > The classes WebMenu, WebMenuBar and WebMenuItem are in total darkness! > The same applies to WebUploadArea and WebUploader. > > If someone can help, then I ask beside a short description also for a > small source code section, which shows, what is meant. > > Each answer is read gladly. > > With kind regards > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Nov 21 02:38:28 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Nov 2019 03:38:28 +0200 Subject: [Gambas-user] QPainter::begin: Painter already active Message-ID: I have a lot of warnings: QPainter::begin: Painter already active Is that warning necessary? I'm not using draw.begin, inside of _draw event. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Thu Nov 21 08:38:59 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 21 Nov 2019 08:38:59 +0100 Subject: [Gambas-user] Help for component gb.web.form In-Reply-To: References: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> Message-ID: <8ffde1d4-0db4-2855-e496-ddab3173750a@gambas-buch.de> Hello David, Thank you very much for the concrete hint. I also took a closer look at the project. It contains many suggestions for me on how to design the layout of an HTML page. The use of sessions in the project is also important for me. Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Thu Nov 21 08:45:45 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 21 Nov 2019 08:45:45 +0100 Subject: [Gambas-user] QPainter::begin: Painter already active In-Reply-To: References: Message-ID: Le jeu. 21 nov. 2019 ? 02:39, Jussi Lahtinen a ?crit : > I have a lot of warnings: QPainter::begin: Painter already active > Is that warning necessary? I'm not using draw.begin, inside of _draw event. > Where ?.. please give us a basic project to see what append. > > Jussi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at gmail.com Thu Nov 21 13:50:03 2019 From: lordheavym at gmail.com (Laurent Carlier) Date: Thu, 21 Nov 2019 13:50:03 +0100 Subject: [Gambas-user] QPainter::begin: Painter already active In-Reply-To: References: Message-ID: <1621694.IkII3ccqVg@lordh-pc> Le jeudi 21 novembre 2019, 02:38:28 CET Jussi Lahtinen a ?crit : > I have a lot of warnings: QPainter::begin: Painter already active > Is that warning necessary? I'm not using draw.begin, inside of _draw event. > > > Jussi Whet's the gambas version? I fixed one of this warning in version 3.14.2 See https://gitlab.com/gambas/gambas/commit/ 07f35841a31be78a1af6996c3ece267a9b75dca4 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From jussi.lahtinen at gmail.com Thu Nov 21 14:58:07 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 21 Nov 2019 15:58:07 +0200 Subject: [Gambas-user] QPainter::begin: Painter already active In-Reply-To: <1621694.IkII3ccqVg@lordh-pc> References: <1621694.IkII3ccqVg@lordh-pc> Message-ID: I updated to latest dev version yesterday and I saw this. It comes from close source project, but I try to isolate it later. Jussi On Thu, Nov 21, 2019 at 2:50 PM Laurent Carlier wrote: > Le jeudi 21 novembre 2019, 02:38:28 CET Jussi Lahtinen a ?crit : > > I have a lot of warnings: QPainter::begin: Painter already active > > Is that warning necessary? I'm not using draw.begin, inside of _draw > event. > > > > > > Jussi > > Whet's the gambas version? I fixed one of this warning in version 3.14.2 > > See > https://gitlab.com/gambas/gambas/commit/ > 07f35841a31be78a1af6996c3ece267a9b75dca4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at gmail.com Thu Nov 21 18:42:12 2019 From: lordheavym at gmail.com (Laurent Carlier) Date: Thu, 21 Nov 2019 18:42:12 +0100 Subject: [Gambas-user] Gambas and scp/rsync Message-ID: <6375922.NFxZxLt9ai@lordh-pc> Does anyboy add a success story with gambas and command like scp or rsync (with ssh) ? Because it 's stuck in a "waiting loop" here: example with 'rsync -aze ssh &1 &2' or 'scp -r &1 &2' executed with Shell hCommand With hLangEnv Wait For Read Write As "Command" Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From olivier.cruilles at yahoo.fr Thu Nov 21 19:32:01 2019 From: olivier.cruilles at yahoo.fr (Yahoo) Date: Thu, 21 Nov 2019 13:32:01 -0500 Subject: [Gambas-user] Gambas and scp/rsync In-Reply-To: <6375922.NFxZxLt9ai@lordh-pc> References: <6375922.NFxZxLt9ai@lordh-pc> Message-ID: <50E4263A-ED7B-40B6-97F2-6187820242A3@yahoo.fr> Hi Laurent, It worked great for me when I have used scp or rsync in the past. Let me check in old project and I will back to you. I guess you use an ssh key between your both machines rather than the command wait for a password. Just for information Olivier Cruilles > Le 21 nov. 2019 ? 12:43, Laurent Carlier a ?crit : > > ?Does anyboy add a success story with gambas and command like scp or rsync > (with ssh) ? > > Because it 's stuck in a "waiting loop" here: > > example with 'rsync -aze ssh &1 &2' or 'scp -r &1 &2' executed with > Shell hCommand With hLangEnv Wait For Read Write As "Command" > > Thanks. > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > From g4mba5 at gmail.com Thu Nov 21 23:39:38 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Nov 2019 23:39:38 +0100 Subject: [Gambas-user] Property shortcut In-Reply-To: References: Message-ID: <9f08e8d1-61e3-5cd9-5179-88b52a083221@gmail.com> Le 13/11/2019 ? 13:52, Manny Caruana a ?crit?: > This new feature is very nice and useful for cutting down unnecessary > source code.? It would be applicable in a lot more cases if the private > variable could also be initialised , i.e. add > [ = Expression ] > to the syntax allowing: > Property iCount? As Integer Use $iCounter = 1 > Done in commit https://gitlab.com/gambas/gambas/commit/55d7f20d80192df8e533fb517364d7c48a662b9d. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Thu Nov 21 23:40:16 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Nov 2019 23:40:16 +0100 Subject: [Gambas-user] QPainter::begin: Painter already active In-Reply-To: <1621694.IkII3ccqVg@lordh-pc> References: <1621694.IkII3ccqVg@lordh-pc> Message-ID: <8ffda199-0a55-885f-7bcb-276511d6112a@gmail.com> Le 21/11/2019 ? 13:50, Laurent Carlier a ?crit?: > Le jeudi 21 novembre 2019, 02:38:28 CET Jussi Lahtinen a ?crit : >> I have a lot of warnings: QPainter::begin: Painter already active >> Is that warning necessary? I'm not using draw.begin, inside of _draw event. >> >> >> Jussi > > Whet's the gambas version? I fixed one of this warning in version 3.14.2 > > See > https://gitlab.com/gambas/gambas/commit/ > 07f35841a31be78a1af6996c3ece267a9b75dca4 > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > The fix is actually not in Gambas 3.14.2. It will be in the next release. -- Beno?t Minisini From g4mba5 at gmail.com Thu Nov 21 23:40:38 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 21 Nov 2019 23:40:38 +0100 Subject: [Gambas-user] Help for component gb.web.form In-Reply-To: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> References: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> Message-ID: Le 19/11/2019 ? 19:36, Hans Lehmann a ?crit?: > Hello, > > the component gb.web.form is unfortunately only very poorly documented. > Some properties, methods and events explain themselves - but only the > known ones. If it becomes special, then one stands completely in the dark! > > To get ahead with our online book, I need help and support for the > following properties, methods and events, which are available in many > classes: > > (1) Events: Dialog and Render > (2) Properties: FromID, FromName, Style, and Class > > The classes WebMenu, WebMenuBar and WebMenuItem are in total darkness! > The same applies to WebUploadArea and WebUploader. > > If someone can help, then I ask beside a short description also for a > small source code section, which shows, what is meant. > > Each answer is read gladly. > > With kind regards > > Hans > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > You have some test forms in the 'gb.web.form' project you can look at first. Then I have to comment the component. -- Beno?t Minisini From genbraga1 at gmail.com Fri Nov 22 18:28:18 2019 From: genbraga1 at gmail.com (gen braga) Date: Fri, 22 Nov 2019 14:28:18 -0300 Subject: [Gambas-user] Empty "New project" window Message-ID: Hi there, My IDE, when I choose a New project, shows an empty project type window, as seen in paste.c-net.org/ObscureCartons It is the master from Git. - Gen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lordheavym at gmail.com Sat Nov 23 12:02:01 2019 From: lordheavym at gmail.com (Laurent Carlier) Date: Sat, 23 Nov 2019 12:02:01 +0100 Subject: [Gambas-user] Gambas and scp/rsync In-Reply-To: <6375922.NFxZxLt9ai@lordh-pc> References: <6375922.NFxZxLt9ai@lordh-pc> Message-ID: <2053077.i1LiFlIvRN@lordh-pc> Le jeudi 21 novembre 2019, 18:42:12 CET Laurent Carlier a ?crit : > Does anyboy add a success story with gambas and command like scp or rsync > (with ssh) ? > > Because it 's stuck in a "waiting loop" here: > > example with 'rsync -aze ssh &1 &2' or 'scp -r &1 &2' executed with > Shell hCommand With hLangEnv Wait For Read Write As "Command" > > Thanks. Problem solved. ssh password is provided by gpg-agent and was defined in .bashrc Gambas3 uses a true shell, sh (default behavior) and in this case, it doesn't execute .bashrc file - so when rsync/scp asked for the ssh password they were stuck in an infinite loop (SSH_AUTH_SOCK, ... were undefined). After checking default behavior of bash session and startup files (see https:// www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html), the solution was to move ssh/gpg-agent launching in ~/.profile file and everything is solved. voil?, and let's hope that could help someone else :) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part. URL: From sebikul at gmail.com Sat Nov 23 22:56:44 2019 From: sebikul at gmail.com (=?UTF-8?Q?Sebasti=C3=A1n_Kulesz?=) Date: Sat, 23 Nov 2019 18:56:44 -0300 Subject: [Gambas-user] Release of Gambas 3.14.2 In-Reply-To: References: Message-ID: Hi everyone, Sorry for the delay in uploading the latest version. I hit some issues around the dependencies for the gb.desktop.gnome.keyring, as they are no longer distributed in Ubuntu Eoan. Unfortunately, I haven't been able to find a replacement package, and from what I could find [0], there isn't one. So from this release forward, I decided to stop packaging this component. If it is a blocking issue for anyone, I can see if I can include a custom build of it in the PPA, so that we can resume distributing this component. Unfortunately, this will take a lot of time that I currently don't have. But if strictly necessary, I will see what I can do. Sorry again for the delay. Regards, Sebastian [0] https://packages.ubuntu.com/search?suite=eoan&arch=any&mode=filename&searchon=contents&keywords=gnome-keyring.h On Sun, Nov 17, 2019 at 3:33 PM Beno?t Minisini wrote: > Hi, > > I have just released Gambas 3.14.2. > > This release mainly includes a fix of the Message class that disturbs a > lot of people. > > The website is not yet up to date, but you can download the source > archive at: > > https://gitlab.com/gambas/gambas/-/archive/3.14.2/gambas-3.14.2.tar.bz2 > > Please report any problem with the package. > > 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 Sun Nov 24 00:58:44 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Sun, 24 Nov 2019 00:58:44 +0100 Subject: [Gambas-user] Release of Gambas 3.14.2 In-Reply-To: References: Message-ID: <79809108-0efb-cab3-9602-d47726ca7cc1@deganius.de> Thank you, Sebastian! 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 jussi.lahtinen at gmail.com Sun Nov 24 02:56:02 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 24 Nov 2019 03:56:02 +0200 Subject: [Gambas-user] Collection as property? Message-ID: How to? Examples? Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Nov 24 02:57:30 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 24 Nov 2019 03:57:30 +0200 Subject: [Gambas-user] Collection as property? In-Reply-To: References: Message-ID: Or alternatively how to keep in check if public collection is used with .Remove() ? Jussi On Sun, Nov 24, 2019 at 3:56 AM Jussi Lahtinen wrote: > How to? Examples? > > > Jussi > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sun Nov 24 03:33:38 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 24 Nov 2019 04:33:38 +0200 Subject: [Gambas-user] Collection as property? In-Reply-To: References: Message-ID: Nevermind, the need was due was design problem. However, just for interest how would you implement that? Jussi On Sun, Nov 24, 2019 at 3:57 AM Jussi Lahtinen wrote: > Or alternatively how to keep in check if public collection is used with > .Remove() ? > > Jussi > > On Sun, Nov 24, 2019 at 3:56 AM Jussi Lahtinen > wrote: > >> How to? Examples? >> >> >> Jussi >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Sun Nov 24 10:33:11 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Sun, 24 Nov 2019 09:33:11 +0000 (UTC) Subject: [Gambas-user] Gambas Dates References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> Message-ID: <1916572618.3023726.1574587991427@mail.yahoo.com> me again-I have the strangest thing happening when I load a record in my SQLite database. Gambas reads the dates then subtracts a day. So instead of say 2019-11-22 which is the actual date in the db, Gambas loads 2019-11-21. I cannot think that this is supposed to happen.My code: Public Sub Button5_Click()? ? ? ? ? ' load the record into a form? ? ' ? ? Inc Application.Busy ? ? $Request = "SUPPLIER = &1 AND INVOICE_NO = &2" ? ? $Result = conMod.$Con.Edit("Documents", $Request, Trim(cboSupplier.Text), Trim(edtInvoice.Text))? ? edtRef.Text = $Result!REF? ? edtDate.Text = $Result!DATE? ? ? ? ?' ... and my date appears one day earlier than it is written in the database... wtf? ? cboSupplier.Text = $Result!SUPPLIER? ? edtInvoice.Text = $Result!INVOICE_NO? ? edtDelivery.Text = $Result!DELIVERY_NOTE? ? edtOrder.Text = $Result!ORDER_NO? ? cboReceipt.Text = $Result!RECEIVED? ? edtAdmin.Text = $Result!ADMIN? ? $Result.Update ? ? $Date = Left(edtDate.Text, 10)? ? edtDate.Text = Format($Date, "yyyy-mm-dd") ? ? $Date = Left(edtAdmin.Text, 10)? ? edtAdmin.Text = Format($Date, "yyyy-mm-dd") ? ? Button1.Enabled = True? ? Button3.Enabled = True? ? Button4.Enabled = True? ? Button2.Enabled = True Finally? ? Dec Application.Busy Catch? ? objErr.dhError() End Any assistance will be appreciated. Thx and regards David -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Nov 24 11:52:28 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 24 Nov 2019 11:52:28 +0100 Subject: [Gambas-user] Collection as property? In-Reply-To: References: Message-ID: <20191124105228.GA25099@highrise.localdomain> On Sun, 24 Nov 2019, Jussi Lahtinen wrote: > Or alternatively how to keep in check if public collection is used with > .Remove() ? > You mean Property Coll As Collection Use $cColl Private Sub Coll_Read() As Collection Return $cColl.Copy() End ? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From t.lee.davidson at gmail.com Sun Nov 24 16:22:33 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sun, 24 Nov 2019 10:22:33 -0500 Subject: [Gambas-user] Gambas Dates In-Reply-To: <1916572618.3023726.1574587991427@mail.yahoo.com> References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> Message-ID: <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> The date is stored in the db as text? And, edtDate is a TextBox? ___ Lee On 11/24/19 4:33 AM, David Silverwood via User wrote: > me again- > I have the strangest thing happening when I load a record in my SQLite database. Gambas reads the dates then subtracts a day. So > instead of say 2019-11-22 which is the actual date in the db, Gambas loads 2019-11-21. I cannot think that this is supposed to > happen. > My code: > > Public Sub Button5_Click()? ? ? ? ? ' load the record into a form > ? ? ' > > ? ? Inc Application.Busy > > ? ? $Request = "SUPPLIER = &1 AND INVOICE_NO = &2" > > ? ? $Result = conMod.$Con.Edit("Documents", $Request, Trim(cboSupplier.Text), Trim(edtInvoice.Text)) > ? ? edtRef.Text = $Result!REF > ? ? edtDate.Text = $Result!DATE? ? ? ? ?' ... and my date appears one day earlier than it is written in the database... wtf > ? ? cboSupplier.Text = $Result!SUPPLIER > ? ? edtInvoice.Text = $Result!INVOICE_NO > ? ? edtDelivery.Text = $Result!DELIVERY_NOTE > ? ? edtOrder.Text = $Result!ORDER_NO > ? ? cboReceipt.Text = $Result!RECEIVED > ? ? edtAdmin.Text = $Result!ADMIN > ? ? $Result.Update > > ? ? $Date = Left(edtDate.Text, 10) > ? ? edtDate.Text = Format($Date, "yyyy-mm-dd") > > ? ? $Date = Left(edtAdmin.Text, 10) > ? ? edtAdmin.Text = Format($Date, "yyyy-mm-dd") > > ? ? Button1.Enabled = True > ? ? Button3.Enabled = True > ? ? Button4.Enabled = True > ? ? Button2.Enabled = True > > Finally > ? ? Dec Application.Busy > > Catch > ? ? objErr.dhError() > > End > > Any assistance will be appreciated. > > Thx and regards > > David > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From the_watchmann at yahoo.com Sun Nov 24 16:56:29 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Sun, 24 Nov 2019 15:56:29 +0000 (UTC) Subject: [Gambas-user] Gambas Dates In-Reply-To: <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> Message-ID: <466885846.3063990.1574610989172@mail.yahoo.com> well, yes? sqlite stores dates as text? On Sunday, November 24, 2019, 05:23:08 PM GMT+2, T Lee Davidson wrote: The date is stored in the db as text? And, edtDate is a TextBox? ___ Lee On 11/24/19 4:33 AM, David Silverwood via User wrote: > me again- > I have the strangest thing happening when I load a record in my SQLite database. Gambas reads the dates then subtracts a day. So > instead of say 2019-11-22 which is the actual date in the db, Gambas loads 2019-11-21. I cannot think that this is supposed to > happen. > My code: > > Public Sub Button5_Click()? ? ? ? ? ' load the record into a form >? ? ? ' > >? ? ? Inc Application.Busy > >? ? ? $Request = "SUPPLIER = &1 AND INVOICE_NO = &2" > >? ? ? $Result = conMod.$Con.Edit("Documents", $Request, Trim(cboSupplier.Text), Trim(edtInvoice.Text)) >? ? ? edtRef.Text = $Result!REF >? ? ? edtDate.Text = $Result!DATE? ? ? ? ?' ... and my date appears one day earlier than it is written in the database... wtf >? ? ? cboSupplier.Text = $Result!SUPPLIER >? ? ? edtInvoice.Text = $Result!INVOICE_NO >? ? ? edtDelivery.Text = $Result!DELIVERY_NOTE >? ? ? edtOrder.Text = $Result!ORDER_NO >? ? ? cboReceipt.Text = $Result!RECEIVED >? ? ? edtAdmin.Text = $Result!ADMIN >? ? ? $Result.Update > >? ? ? $Date = Left(edtDate.Text, 10) >? ? ? edtDate.Text = Format($Date, "yyyy-mm-dd") > >? ? ? $Date = Left(edtAdmin.Text, 10) >? ? ? edtAdmin.Text = Format($Date, "yyyy-mm-dd") > >? ? ? Button1.Enabled = True >? ? ? Button3.Enabled = True >? ? ? Button4.Enabled = True >? ? ? Button2.Enabled = True > > Finally >? ? ? Dec Application.Busy > > Catch >? ? ? objErr.dhError() > > End > > Any assistance will be appreciated. > > Thx and regards > > David > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Sun Nov 24 17:11:28 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Sun, 24 Nov 2019 16:11:28 +0000 (UTC) Subject: [Gambas-user] Gambas Dates In-Reply-To: <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> Message-ID: <1136738472.3073050.1574611888933@mail.yahoo.com> actually, this brings me to another issue... what happened to the datebox in 3.14? I have a timebox but no datebox? I assume therefore I should be able to put it back into the toolbox somehow? On Sunday, November 24, 2019, 05:23:08 PM GMT+2, T Lee Davidson wrote: The date is stored in the db as text? And, edtDate is a TextBox? ___ Lee On 11/24/19 4:33 AM, David Silverwood via User wrote: > me again- > I have the strangest thing happening when I load a record in my SQLite database. Gambas reads the dates then subtracts a day. So > instead of say 2019-11-22 which is the actual date in the db, Gambas loads 2019-11-21. I cannot think that this is supposed to > happen. > My code: > > Public Sub Button5_Click()? ? ? ? ? ' load the record into a form >? ? ? ' > >? ? ? Inc Application.Busy > >? ? ? $Request = "SUPPLIER = &1 AND INVOICE_NO = &2" > >? ? ? $Result = conMod.$Con.Edit("Documents", $Request, Trim(cboSupplier.Text), Trim(edtInvoice.Text)) >? ? ? edtRef.Text = $Result!REF >? ? ? edtDate.Text = $Result!DATE? ? ? ? ?' ... and my date appears one day earlier than it is written in the database... wtf >? ? ? cboSupplier.Text = $Result!SUPPLIER >? ? ? edtInvoice.Text = $Result!INVOICE_NO >? ? ? edtDelivery.Text = $Result!DELIVERY_NOTE >? ? ? edtOrder.Text = $Result!ORDER_NO >? ? ? cboReceipt.Text = $Result!RECEIVED >? ? ? edtAdmin.Text = $Result!ADMIN >? ? ? $Result.Update > >? ? ? $Date = Left(edtDate.Text, 10) >? ? ? edtDate.Text = Format($Date, "yyyy-mm-dd") > >? ? ? $Date = Left(edtAdmin.Text, 10) >? ? ? edtAdmin.Text = Format($Date, "yyyy-mm-dd") > >? ? ? Button1.Enabled = True >? ? ? Button3.Enabled = True >? ? ? Button4.Enabled = True >? ? ? Button2.Enabled = True > > Finally >? ? ? Dec Application.Busy > > Catch >? ? ? objErr.dhError() > > End > > Any assistance will be appreciated. > > Thx and regards > > David > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sun Nov 24 19:31:11 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 24 Nov 2019 19:31:11 +0100 Subject: [Gambas-user] Gambas Dates In-Reply-To: <1136738472.3073050.1574611888933@mail.yahoo.com> References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> <1136738472.3073050.1574611888933@mail.yahoo.com> Message-ID: If you need only the date use ValueBox with property Type on Date. If you need date and time use it on DateTime. Remember dates are dates not strings See attached project Regards Gianluigi Il giorno dom 24 nov 2019 alle ore 17:12 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > actually, this brings me to another issue... what happened to the datebox > in 3.14? I have a timebox but no datebox? I assume therefore I should be > able to put it back into the toolbox somehow? > > On Sunday, November 24, 2019, 05:23:08 PM GMT+2, T Lee Davidson < > t.lee.davidson at gmail.com> wrote: > > > The date is stored in the db as text? > And, edtDate is a TextBox? > > > ___ > Lee > > > On 11/24/19 4:33 AM, David Silverwood via User wrote: > > me again- > > I have the strangest thing happening when I load a record in my SQLite > database. Gambas reads the dates then subtracts a day. So > > instead of say 2019-11-22 which is the actual date in the db, Gambas > loads 2019-11-21. I cannot think that this is supposed to > > happen. > > My code: > > > > Public Sub Button5_Click() ' load the record into a form > > ' > > > > Inc Application.Busy > > > > $Request = "SUPPLIER = &1 AND INVOICE_NO = &2" > > > > $Result = conMod.$Con.Edit("Documents", $Request, > Trim(cboSupplier.Text), Trim(edtInvoice.Text)) > > edtRef.Text = $Result!REF > > edtDate.Text = $Result!DATE ' ... and my date appears one > day earlier than it is written in the database... wtf > > cboSupplier.Text = $Result!SUPPLIER > > edtInvoice.Text = $Result!INVOICE_NO > > edtDelivery.Text = $Result!DELIVERY_NOTE > > edtOrder.Text = $Result!ORDER_NO > > cboReceipt.Text = $Result!RECEIVED > > edtAdmin.Text = $Result!ADMIN > > $Result.Update > > > > $Date = Left(edtDate.Text, 10) > > edtDate.Text = Format($Date, "yyyy-mm-dd") > > > > $Date = Left(edtAdmin.Text, 10) > > edtAdmin.Text = Format($Date, "yyyy-mm-dd") > > > > Button1.Enabled = True > > Button3.Enabled = True > > Button4.Enabled = True > > Button2.Enabled = True > > > > Finally > > Dec Application.Busy > > > > Catch > > objErr.dhError() > > > > End > > > > Any assistance will be appreciated. > > > > Thx and regards > > > > David > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DataDate-0.0.1.tar.gz Type: application/gzip Size: 13064 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Sun Nov 24 20:16:21 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 24 Nov 2019 21:16:21 +0200 Subject: [Gambas-user] Collection as property? In-Reply-To: <20191124105228.GA25099@highrise.localdomain> References: <20191124105228.GA25099@highrise.localdomain> Message-ID: No, that is the easy part. I mean the _write. How to deal with .remove, .add, etc? Jussi On Sun, Nov 24, 2019 at 12:53 PM Tobias Boege wrote: > On Sun, 24 Nov 2019, Jussi Lahtinen wrote: > > Or alternatively how to keep in check if public collection is used with > > .Remove() ? > > > > You mean > > Property Coll As Collection Use $cColl > > Private Sub Coll_Read() As Collection > Return $cColl.Copy() > End > > ? > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun Nov 24 21:26:25 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 24 Nov 2019 21:26:25 +0100 Subject: [Gambas-user] Collection as property? In-Reply-To: References: <20191124105228.GA25099@highrise.localdomain> Message-ID: <20191124202625.GB25099@highrise.localdomain> On Sun, 24 Nov 2019, Jussi Lahtinen wrote: > No, that is the easy part. I mean the _write. How to deal with .remove, > .add, etc? > By "dealing with it" I assumed you mean "forbid" it. What do you mean? If that's the case, just make another copy of the collection that is assigned to your property in _Write, and give out only copies of that internal copy. That way, nobody except the object itself can hold a reference to the collection inside your object and modifications from the outside are not possible. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Sun Nov 24 21:49:26 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sun, 24 Nov 2019 22:49:26 +0200 Subject: [Gambas-user] Collection as property? In-Reply-To: <20191124202625.GB25099@highrise.localdomain> References: <20191124105228.GA25099@highrise.localdomain> <20191124202625.GB25099@highrise.localdomain> Message-ID: No, not forbid it, but control it. Example I may want to trigger some code every time remove is used. And different code when add is used. Jussi On Sun, Nov 24, 2019 at 10:27 PM Tobias Boege wrote: > On Sun, 24 Nov 2019, Jussi Lahtinen wrote: > > No, that is the easy part. I mean the _write. How to deal with .remove, > > .add, etc? > > > > By "dealing with it" I assumed you mean "forbid" it. What do you mean? > > If that's the case, just make another copy of the collection that is > assigned to your property in _Write, and give out only copies of that > internal copy. That way, nobody except the object itself can hold a > reference to the collection inside your object and modifications from > the outside are not possible. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.lee.davidson at gmail.com Mon Nov 25 16:29:14 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Mon, 25 Nov 2019 10:29:14 -0500 Subject: [Gambas-user] Gambas Dates In-Reply-To: <466885846.3063990.1574610989172@mail.yahoo.com> References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> <466885846.3063990.1574610989172@mail.yahoo.com> Message-ID: <421d1ca0-6cc8-3c34-89b8-1909e3eeecef@gmail.com> SQLite can store dates as one of three different types: text, real, or integer. https://www.sqlite.org/datatype3.html ___ Lee On 11/24/19 10:56 AM, David Silverwood via User wrote: > well, yes? sqlite stores dates as text? > > On Sunday, November 24, 2019, 05:23:08 PM GMT+2, T Lee Davidson wrote: > > > The date is stored in the db as text? > And, edtDate is a TextBox? > > > ___ > Lee > > [snip] From bagonergi at gmail.com Mon Nov 25 17:29:59 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 25 Nov 2019 17:29:59 +0100 Subject: [Gambas-user] Gambas Dates In-Reply-To: <421d1ca0-6cc8-3c34-89b8-1909e3eeecef@gmail.com> References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> <466885846.3063990.1574610989172@mail.yahoo.com> <421d1ca0-6cc8-3c34-89b8-1909e3eeecef@gmail.com> Message-ID: Il giorno lun 25 nov 2019 alle ore 16:30 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > SQLite can store dates as one of three different types: text, real, or > integer. > > https://www.sqlite.org/datatype3.html > > > ___ > Lee > > I refer to Gambas not to SQLite. See what Benoit says about it: http://gambaswiki.org/wiki/doc/date See also: http://gambaswiki.org/wiki/doc/db-type-mapping Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From zachsmith022 at gmail.com Mon Nov 25 23:40:29 2019 From: zachsmith022 at gmail.com (Zach Smith) Date: Mon, 25 Nov 2019 17:40:29 -0500 Subject: [Gambas-user] Installing Gambas without Qt4 on a Raspberry Pi 3 Message-ID: <2f12588b-d580-71ab-db9c-978f9dfe5ba4@gmail.com> I'm having trouble installing Gambas on a Raspberry Pi 3 (armv7) running Arch.? I have Qt5 installed and there isn't a Qt4 Arch/AUR package available for armv7.? I downloaded git updates and ran reconfig-all. Running './configure --enable-qt5 --disable-qt4' results in: || || THESE COMPONENTS ARE DISABLED: || - gb.db.sqlite2 || - gb.qt4 || - gb.qt4.ext || - gb.qt4.opengl || - gb.qt4.webkit || I ran 'make' without error. I then ran 'su -c "make install"' which resulted in many Qt errors.? For example: error.gbi3: ERROR: Cannot load shared library: libQtSvg.so.4: cannot open shared object file: No such file or directory The Qt5 packages installed libQt5Svg.so* files but not libQtSvg.so.4. See attached log file. Can I install Gambas with only Qt5 installed? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_output2.tar.gz Type: application/gzip Size: 34160 bytes Desc: not available URL: From gambas.fr at gmail.com Tue Nov 26 05:42:00 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 26 Nov 2019 05:42:00 +0100 Subject: [Gambas-user] Installing Gambas without Qt4 on a Raspberry Pi 3 In-Reply-To: <2f12588b-d580-71ab-db9c-978f9dfe5ba4@gmail.com> References: <2f12588b-d580-71ab-db9c-978f9dfe5ba4@gmail.com> Message-ID: Have you tried to do a $ make clean $ ./reconf-all Before all the installation process ? Le lun. 25 nov. 2019 ? 23:43, Zach Smith a ?crit : > I'm having trouble installing Gambas on a Raspberry Pi 3 (armv7) running > Arch. I have Qt5 installed and there isn't a Qt4 Arch/AUR package > available for armv7. I downloaded git updates and ran reconfig-all. > > Running './configure --enable-qt5 --disable-qt4' results in: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.db.sqlite2 > || - gb.qt4 > || - gb.qt4.ext > || - gb.qt4.opengl > || - gb.qt4.webkit > || > > I ran 'make' without error. > > I then ran 'su -c "make install"' which resulted in many Qt errors. For > example: > > error.gbi3: ERROR: Cannot load shared library: libQtSvg.so.4: cannot open > shared object file: No such file or directory > > The Qt5 packages installed libQt5Svg.so* files but not libQtSvg.so.4. > > See attached log file. > > Can I install Gambas with only Qt5 installed? > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Tue Nov 26 09:17:00 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Tue, 26 Nov 2019 08:17:00 +0000 (UTC) Subject: [Gambas-user] Gambas Dates In-Reply-To: References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> <466885846.3063990.1574610989172@mail.yahoo.com> <421d1ca0-6cc8-3c34-89b8-1909e3eeecef@gmail.com> Message-ID: <217858702.3520689.1574756220092@mail.yahoo.com> HI GianluigiLee's statement was directed at me using a textbox for dates. It actually works for me except when I try and retrieve a date from the SQLite database.?I'm beginning to suspect that if I do not create the DB in Gambas then it is difficult to get it to work. My current database is ten years old and has 200k entries +. I originally created it in xbasic in 2008/2009 and even after using a datebox Gambas still doesn't read the date properly. However, if I create a new DB in Gambas and do all these things it works without a hitch.?It doesn't make sense to me though since the date portion of the database in sqlite3 is still DATE and referred to as such in the DB. When I create the new DB using Gambas it just works, whether I load or retrieve, but when I go to my old DB then all the dates go awry. I'm definitely going to need some time to work through this.Thanks for that datadate source. It's helped a lot, AND also for helping me get the datebox back. Much appreciated. On Monday, November 25, 2019, 06:31:08 PM GMT+2, Gianluigi wrote: Il giorno lun 25 nov 2019 alle ore 16:30 T Lee Davidson ha scritto: SQLite can store dates as one of three different types: text, real, or integer. https://www.sqlite.org/datatype3.html ___ Lee I refer to Gambas not to SQLite. See what Benoit says about it: http://gambaswiki.org/wiki/doc/date See also: http://gambaswiki.org/wiki/doc/db-type-mapping 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 Tue Nov 26 12:10:44 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 26 Nov 2019 12:10:44 +0100 Subject: [Gambas-user] Gambas Dates In-Reply-To: <217858702.3520689.1574756220092@mail.yahoo.com> References: <1916572618.3023726.1574587991427.ref@mail.yahoo.com> <1916572618.3023726.1574587991427@mail.yahoo.com> <5c0117c3-67ee-e965-7b65-255f19bcc004@gmail.com> <466885846.3063990.1574610989172@mail.yahoo.com> <421d1ca0-6cc8-3c34-89b8-1909e3eeecef@gmail.com> <217858702.3520689.1574756220092@mail.yahoo.com> Message-ID: It could be a set character problem, with which operating system and/or distro did you create the database, did the system use UTF-8? See here: http://gambaswiki.org/wiki/lang/conv I would advise you to export the data to csv and import them into a new database with Gambas using Conv$. Regards Gianluigi Il giorno mar 26 nov 2019 alle ore 09:18 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > HI Gianluigi > Lee's statement was directed at me using a textbox for dates. It actually > works for me except when I try and retrieve a date from the SQLite > database. > I'm beginning to suspect that if I do not create the DB in Gambas then it > is difficult to get it to work. My current database is ten years old and > has 200k entries +. I originally created it in xbasic in 2008/2009 and even > after using a datebox Gambas still doesn't read the date properly. However, > if I create a new DB in Gambas and do all these things it works without a > hitch. > It doesn't make sense to me though since the date portion of the database > in sqlite3 is still DATE and referred to as such in the DB. When I create > the new DB using Gambas it just works, whether I load or retrieve, but when > I go to my old DB then all the dates go awry. I'm definitely going to need > some time to work through this. > Thanks for that datadate source. It's helped a lot, AND also for helping > me get the datebox back. Much appreciated. > > On Monday, November 25, 2019, 06:31:08 PM GMT+2, Gianluigi < > bagonergi at gmail.com> wrote: > > > > > Il giorno lun 25 nov 2019 alle ore 16:30 T Lee Davidson < > t.lee.davidson at gmail.com> ha scritto: > > SQLite can store dates as one of three different types: text, real, or > integer. > > https://www.sqlite.org/datatype3.html > > > ___ > Lee > > > > > I refer to Gambas not to SQLite. > See what Benoit says about it: > http://gambaswiki.org/wiki/doc/date > See also: > http://gambaswiki.org/wiki/doc/db-type-mapping > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed Nov 27 10:09:33 2019 From: adamnt42 at gmail.com (Bruce) Date: Wed, 27 Nov 2019 19:39:33 +1030 Subject: [Gambas-user] Scrolling text in a textbox? Message-ID: <2ea687fa-b649-842c-4386-4270fb3b2c17@gmail.com> Is there a way or has anyone achieved a custom control that does the ... blah blah blah ... thing in a textbox? I never thought I would want one, but stange how life pans out. There is a constant, albeit sporadic, set of "updates" that affect one or more things that the user is "watching". So I thought maybe if we could scroll the last so many messages in a status bar type of thing. Yes, we are back in the online "auction" game again :-[ At least this time it's a bit slower. Let's say for Christmas Day you are looking for a 2016 Langhorne Creek Shiraz. (In fact to qualify you need to be looking for 2 or 3 dozen.) We have about 8 wineries and around 80 outlets (retail, wholesale and cellar door) that provide that vintage. Also you are looking for one or two bottles of 2012 North Victorian Muscat, six or so bottles of something-or-other fizz and a bottle of sweet sherry for Aunt Jane. The idea is you stick that order in and we do the "go searching". Originally I thought we could just come up with the "best fit/best value" answer. However it appears that a) this can take a bit of time.. up to about 10 minutes and b) if someone has got the Muscat on a two for one sale and another "sticky" is even better value then "best value" becomes a bit meaningless. (Sheesh! This was supposed to be a retirement hobby project! AKA someone said (and I cant quote the exact words for fear of being censored but it was along the lines of...) GET OUT OF MY KITCHEN AND GO DO SOMETHING!) Well, that worked. I have spent the last three weeks demoing the very rudimentary prototype to more marketers and sales reps than I ever wished to meet in my life. The trouble is not only do they like it, they have got lots of "wonderful suggestions". Sadly, most of their ideas involve web-sites promoting their product. Which is the antithesis of what we are trying to do. The original idea was based on your ordinary "wine club" sort of thing. We'd go and sign up a few bespoke wineries and they'd tell us what they were remaindering, i.e. the stuff they wanted to move so this years vintage could occupy the space released. We weren't going to "sell" it, we would just "list it". Any club member could log in and see who was trying to move what stuff. No fancies, no bling. They saw something they liked, click and get a phone number or email address to order some. No fee, no commission. Just that (ahem) I'd get a few bargains here and there. Well, that idea soon blew up! So now we have a relatively decent sort of client-server thingo going that about 60 people are using sporadically and a bunch of marketers who want to put videos with surround sound stereo on it. AAAAARRRGH! This is just exactly what I am trying to avoid! However the UI is crap. My fault. So. Instead of having to read the current stdout gibberish we print while searching through catalogues and websites for partial matches and possible goodies. Someone suggested that maybe we could do a slowly scrolling sort of marquee thing across the bottom. Most times it would say sort of "... still looking ..." and show some found items. OK I said ... BUT THERE WILL BE NO ADVERTISING! (Well that was a long way to get to the point. Sorry folks!) But any ideas? tia bruce ................. >>>>>> Best buys are here!!!!!! ...... Sign up now!!!!! ..... (French horn concerto)..... DO IT NOW! B: Joanne, get out of my emails! J: pppppppp!!! From hans at gambas-buch.de Wed Nov 27 10:25:59 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Wed, 27 Nov 2019 10:25:59 +0100 Subject: [Gambas-user] Help for component gb.web.form In-Reply-To: References: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> Message-ID: <44bb6391-e42b-94cc-035f-38e7d180da79@gambas-buch.de> Hello, After reviewing all relevant source texts for the component gb.web.form, the following comments arise: - For what purpose can the two classes 'WebUploadArea' and 'WebUploader' be used? - Since the documentation for both classes is poor, only a commented mini-project could help. Hoping for help Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed Nov 27 10:31:10 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 27 Nov 2019 10:31:10 +0100 Subject: [Gambas-user] Scrolling text in a textbox? In-Reply-To: <2ea687fa-b649-842c-4386-4270fb3b2c17@gmail.com> References: <2ea687fa-b649-842c-4386-4270fb3b2c17@gmail.com> Message-ID: Le mer. 27 nov. 2019 ? 10:10, Bruce a ?crit : > > Is there a way or has anyone achieved a custom control that does the > ... blah blah blah ... thing in a textbox? > > I never thought I would want one, but stange how life pans out. > > There is a constant, albeit sporadic, set of "updates" that affect one > or more things that the user is "watching". So I thought maybe if we > could scroll the last so many messages in a status bar type of thing. > > Yes, we are back in the online "auction" game again :-[ > At least this time it's a bit slower. > > Let's say for Christmas Day you are looking for a 2016 Langhorne Creek > Shiraz. (In fact to qualify you need to be looking for 2 or 3 dozen.) We > have about 8 wineries and around 80 outlets (retail, wholesale and > cellar door) that provide that vintage. Also you are looking for one or > two bottles of 2012 North Victorian Muscat, six or so bottles of > something-or-other fizz and a bottle of sweet sherry for Aunt Jane. > > The idea is you stick that order in and we do the "go searching". > Originally I thought we could just come up with the "best fit/best > value" answer. However it appears that > a) this can take a bit of time.. up to about 10 minutes and > b) if someone has got the Muscat on a two for one sale and another > "sticky" is even better value then "best value" becomes a bit meaningless. > > (Sheesh! This was supposed to be a retirement hobby project! AKA someone > said (and I cant quote the exact words for fear of being censored but it > was along the lines of...) GET OUT OF MY KITCHEN AND GO DO SOMETHING!) > Well, that worked. I have spent the last three weeks demoing the very > rudimentary prototype to more marketers and sales reps than I ever > wished to meet in my life. The trouble is not only do they like it, > they have got lots of "wonderful suggestions". Sadly, most of their > ideas involve web-sites promoting their product. Which is the antithesis > of what we are trying to do. > > The original idea was based on your ordinary "wine club" sort of thing. > We'd go and sign up a few bespoke wineries and they'd tell us what they > were remaindering, i.e. the stuff they wanted to move so this years > vintage could occupy the space released. We weren't going to "sell" it, > we would just "list it". Any club member could log in and see who was > trying to move what stuff. No fancies, no bling. They saw something > they liked, click and get a phone number or email address to order some. > No fee, no commission. Just that (ahem) I'd get a few bargains here and > there. Well, that idea soon blew up! > > So now we have a relatively decent sort of client-server thingo going > that about 60 people are using sporadically and a bunch of marketers who > want to put videos with surround sound stereo on it. AAAAARRRGH! This is > just exactly what I am trying to avoid! > > However the UI is crap. My fault. > > So. > > Instead of having to read the current stdout gibberish we print while > searching through catalogues and websites for partial matches and > possible goodies. Someone suggested that maybe we could do a slowly > scrolling sort of marquee thing across the bottom. Most times it would > say sort of "... still looking ..." and show some found items. OK I said > ... BUT THERE WILL BE NO ADVERTISING! > > (Well that was a long way to get to the point. Sorry folks!) > > But any ideas? > > > > tia > bruce HA HA HA ... Well wine talk to me .. It's my job. But ... I've not really understand your need in fact. > > > > ................. >>>>>> Best buys are here!!!!!! ...... Sign up > now!!!!! ..... (French horn concerto)..... DO IT NOW! > > > B: Joanne, get out of my emails! > J: pppppppp!!! > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -- Fabien Bodard From bagonergi at gmail.com Wed Nov 27 13:58:56 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 27 Nov 2019 13:58:56 +0100 Subject: [Gambas-user] Scrolling text in a textbox? In-Reply-To: <2ea687fa-b649-842c-4386-4270fb3b2c17@gmail.com> References: <2ea687fa-b649-842c-4386-4270fb3b2c17@gmail.com> Message-ID: Il giorno mer 27 nov 2019 alle ore 10:10 Bruce ha scritto: > Is there a way or has anyone achieved a custom control that does the > ... blah blah blah ... thing in a textbox? > > I never thought I would want one, but stange how life pans out. > > There is a constant, albeit sporadic, set of "updates" that affect one > or more things that the user is "watching". So I thought maybe if we > could scroll the last so many messages in a status bar type of thing. > > Yes, we are back in the online "auction" game again :-[ > At least this time it's a bit slower. > > Let's say for Christmas Day you are looking for a 2016 Langhorne Creek > Shiraz. (In fact to qualify you need to be looking for 2 or 3 dozen.) We > have about 8 wineries and around 80 outlets (retail, wholesale and > cellar door) that provide that vintage. Also you are looking for one or > two bottles of 2012 North Victorian Muscat, six or so bottles of > something-or-other fizz and a bottle of sweet sherry for Aunt Jane. > > The idea is you stick that order in and we do the "go searching". > Originally I thought we could just come up with the "best fit/best > value" answer. However it appears that > a) this can take a bit of time.. up to about 10 minutes and > b) if someone has got the Muscat on a two for one sale and another > "sticky" is even better value then "best value" becomes a bit meaningless. > > (Sheesh! This was supposed to be a retirement hobby project! AKA someone > said (and I cant quote the exact words for fear of being censored but it > was along the lines of...) GET OUT OF MY KITCHEN AND GO DO SOMETHING!) > Well, that worked. I have spent the last three weeks demoing the very > rudimentary prototype to more marketers and sales reps than I ever > wished to meet in my life. The trouble is not only do they like it, > they have got lots of "wonderful suggestions". Sadly, most of their > ideas involve web-sites promoting their product. Which is the antithesis > of what we are trying to do. > > The original idea was based on your ordinary "wine club" sort of thing. > We'd go and sign up a few bespoke wineries and they'd tell us what they > were remaindering, i.e. the stuff they wanted to move so this years > vintage could occupy the space released. We weren't going to "sell" it, > we would just "list it". Any club member could log in and see who was > trying to move what stuff. No fancies, no bling. They saw something > they liked, click and get a phone number or email address to order some. > No fee, no commission. Just that (ahem) I'd get a few bargains here and > there. Well, that idea soon blew up! > > So now we have a relatively decent sort of client-server thingo going > that about 60 people are using sporadically and a bunch of marketers who > want to put videos with surround sound stereo on it. AAAAARRRGH! This is > just exactly what I am trying to avoid! > > However the UI is crap. My fault. > > So. > > Instead of having to read the current stdout gibberish we print while > searching through catalogues and websites for partial matches and > possible goodies. Someone suggested that maybe we could do a slowly > scrolling sort of marquee thing across the bottom. Most times it would > say sort of "... still looking ..." and show some found items. OK I said > ... BUT THERE WILL BE NO ADVERTISING! > > (Well that was a long way to get to the point. Sorry folks!) > > But any ideas? > > > > tia > bruce > > > > > ................. >>>>>> Best buys are here!!!!!! ...... Sign up > now!!!!! ..... (French horn concerto)..... DO IT NOW! > > > B: Joanne, get out of my emails! > J: pppppppp!!! > I got lost in your speech, limited my answer to the title attaching a small test. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ScrollingText-0.0.1.tar.gz Type: application/gzip Size: 11726 bytes Desc: not available URL: From zachsmith022 at gmail.com Wed Nov 27 15:40:15 2019 From: zachsmith022 at gmail.com (Zach Smith) Date: Wed, 27 Nov 2019 09:40:15 -0500 Subject: [Gambas-user] Installing Gambas without Qt4 on a Raspberry Pi 3 In-Reply-To: References: <2f12588b-d580-71ab-db9c-978f9dfe5ba4@gmail.com> Message-ID: On 11/25/19 11:42 PM, Fabien Bodard wrote: > Have you tried to do a > $ make clean > $ ./reconf-all > > Before all the installation process ? > > > > Le lun. 25 nov. 2019 ? 23:43, Zach Smith > a ?crit?: > > I'm having trouble installing Gambas on a Raspberry Pi 3 (armv7) > running Arch.? I have Qt5 installed and there isn't a Qt4 Arch/AUR > package available for armv7.? I downloaded git updates and ran > reconfig-all. > > Running './configure --enable-qt5 --disable-qt4' results in: > || > || THESE COMPONENTS ARE DISABLED: > || - gb.db.sqlite2 > || - gb.qt4 > || - gb.qt4.ext > || - gb.qt4.opengl > || - gb.qt4.webkit > || > > I ran 'make' without error. > > I then ran 'su -c "make install"' which resulted in many Qt > errors.? For example: > > error.gbi3: ERROR: Cannot load shared library: libQtSvg.so.4: > cannot open shared object file: No such file or directory > > The Qt5 packages installed libQt5Svg.so* files but not libQtSvg.so.4. > > See attached log file. > > Can I install Gambas with only Qt5 installed? > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- Yes, I just tried that.? It didn't seem to help.? I've attached the log file. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gambas_output3.tar.gz Type: application/gzip Size: 47419 bytes Desc: not available URL: From g4mba5 at gmail.com Wed Nov 27 16:06:38 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 27 Nov 2019 16:06:38 +0100 Subject: [Gambas-user] Installing Gambas without Qt4 on a Raspberry Pi 3 In-Reply-To: References: <2f12588b-d580-71ab-db9c-978f9dfe5ba4@gmail.com> Message-ID: Le 27/11/2019 ? 15:40, Zach Smith a ?crit?: >> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > Yes, I just tried that.? It didn't seem to help.? I've attached the log > file. > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Did you clean your system for any previous Gambas installation before doing the recompilation? -- Beno?t Minisini From gambas.fr at gmail.com Wed Nov 27 16:29:53 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 27 Nov 2019 16:29:53 +0100 Subject: [Gambas-user] Scrolling text in a textbox? In-Reply-To: References: <2ea687fa-b649-842c-4386-4270fb3b2c17@gmail.com> Message-ID: Why a textbox ?... It can be a Drawingarea ? Le mer. 27 nov. 2019 ? 14:00, Gianluigi a ?crit : > > > > Il giorno mer 27 nov 2019 alle ore 10:10 Bruce ha scritto: >> >> Is there a way or has anyone achieved a custom control that does the >> ... blah blah blah ... thing in a textbox? >> >> I never thought I would want one, but stange how life pans out. >> >> There is a constant, albeit sporadic, set of "updates" that affect one >> or more things that the user is "watching". So I thought maybe if we >> could scroll the last so many messages in a status bar type of thing. >> >> Yes, we are back in the online "auction" game again :-[ >> At least this time it's a bit slower. >> >> Let's say for Christmas Day you are looking for a 2016 Langhorne Creek >> Shiraz. (In fact to qualify you need to be looking for 2 or 3 dozen.) We >> have about 8 wineries and around 80 outlets (retail, wholesale and >> cellar door) that provide that vintage. Also you are looking for one or >> two bottles of 2012 North Victorian Muscat, six or so bottles of >> something-or-other fizz and a bottle of sweet sherry for Aunt Jane. >> >> The idea is you stick that order in and we do the "go searching". >> Originally I thought we could just come up with the "best fit/best >> value" answer. However it appears that >> a) this can take a bit of time.. up to about 10 minutes and >> b) if someone has got the Muscat on a two for one sale and another >> "sticky" is even better value then "best value" becomes a bit meaningless. >> >> (Sheesh! This was supposed to be a retirement hobby project! AKA someone >> said (and I cant quote the exact words for fear of being censored but it >> was along the lines of...) GET OUT OF MY KITCHEN AND GO DO SOMETHING!) >> Well, that worked. I have spent the last three weeks demoing the very >> rudimentary prototype to more marketers and sales reps than I ever >> wished to meet in my life. The trouble is not only do they like it, >> they have got lots of "wonderful suggestions". Sadly, most of their >> ideas involve web-sites promoting their product. Which is the antithesis >> of what we are trying to do. >> >> The original idea was based on your ordinary "wine club" sort of thing. >> We'd go and sign up a few bespoke wineries and they'd tell us what they >> were remaindering, i.e. the stuff they wanted to move so this years >> vintage could occupy the space released. We weren't going to "sell" it, >> we would just "list it". Any club member could log in and see who was >> trying to move what stuff. No fancies, no bling. They saw something >> they liked, click and get a phone number or email address to order some. >> No fee, no commission. Just that (ahem) I'd get a few bargains here and >> there. Well, that idea soon blew up! >> >> So now we have a relatively decent sort of client-server thingo going >> that about 60 people are using sporadically and a bunch of marketers who >> want to put videos with surround sound stereo on it. AAAAARRRGH! This is >> just exactly what I am trying to avoid! >> >> However the UI is crap. My fault. >> >> So. >> >> Instead of having to read the current stdout gibberish we print while >> searching through catalogues and websites for partial matches and >> possible goodies. Someone suggested that maybe we could do a slowly >> scrolling sort of marquee thing across the bottom. Most times it would >> say sort of "... still looking ..." and show some found items. OK I said >> ... BUT THERE WILL BE NO ADVERTISING! >> >> (Well that was a long way to get to the point. Sorry folks!) >> >> But any ideas? >> >> >> >> tia >> bruce >> >> >> >> >> ................. >>>>>> Best buys are here!!!!!! ...... Sign up >> now!!!!! ..... (French horn concerto)..... DO IT NOW! >> >> >> B: Joanne, get out of my emails! >> J: pppppppp!!! > > > > I got lost in your speech, limited my answer to the title attaching a small test. > > Regards > Gianluigi > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -- Fabien Bodard From d.mueller at ertl.ch Wed Nov 27 23:10:00 2019 From: d.mueller at ertl.ch (=?UTF-8?Q?David_M=c3=bcller?=) Date: Wed, 27 Nov 2019 23:10:00 +0100 Subject: [Gambas-user] Help for component gb.web.form In-Reply-To: <44bb6391-e42b-94cc-035f-38e7d180da79@gambas-buch.de> References: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> <44bb6391-e42b-94cc-035f-38e7d180da79@gambas-buch.de> Message-ID: Hello to all I don't know the difference but I can give you the results of my tests with the WebUploader. Sorry! I don't have a mini project. The WebUploader control let the user copy a file from the user's computer to the remote server. One essential thing to know is that you will need an already working session to use the WebUploader control! Without that, it will not work at all! And it's confusing. So in WebForm_Open() event, make something like this : Session["test"] = "test" ' force the session to create everything in background In WebUploader1_Upload() event, store the values in Session for later use : Session["userside_filename"] = WebUploader1.File Session["serverside_fullpath"] = WebUploader1.Path Later you can use it for example like this : WebTextAreaContent.Clear() WebTextAreaContent.Text = File.Load(Session["serverside_fullpath"]) Now, i have a problem with this control: I don't know why but i cannot reset the WebUploader after using it. I can show another embedded webform and that will work but there must be another way. David Le 27.11.19 ? 10:25, Hans Lehmann a ?crit?: > Hello, > > After reviewing all relevant source texts for the component > gb.web.form, the following comments arise: > > - For what purpose can the two classes 'WebUploadArea' and > 'WebUploader' be used? > - Since the documentation for both classes is poor, only a commented > mini-project could help. > > Hoping for help > > Hans > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu Nov 28 09:21:36 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 28 Nov 2019 09:21:36 +0100 Subject: [Gambas-user] Scrolling text in a textbox? In-Reply-To: References: <2ea687fa-b649-842c-4386-4270fb3b2c17@gmail.com> Message-ID: Hi Fabien, Is it okay if I am the one interested in your solution (drawing area)? :-) Regards Gianluigi Il giorno mer 27 nov 2019 alle ore 16:31 Fabien Bodard ha scritto: > Why a textbox ?... It can be a Drawingarea ? > > Le mer. 27 nov. 2019 ? 14:00, Gianluigi a ?crit : > > > > > > > > Il giorno mer 27 nov 2019 alle ore 10:10 Bruce ha > scritto: > >> > >> Is there a way or has anyone achieved a custom control that does the > >> ... blah blah blah ... thing in a textbox? > >> > >> I never thought I would want one, but stange how life pans out. > >> > >> There is a constant, albeit sporadic, set of "updates" that affect one > >> or more things that the user is "watching". So I thought maybe if we > >> could scroll the last so many messages in a status bar type of thing. > >> > >> Yes, we are back in the online "auction" game again :-[ > >> At least this time it's a bit slower. > >> > >> Let's say for Christmas Day you are looking for a 2016 Langhorne Creek > >> Shiraz. (In fact to qualify you need to be looking for 2 or 3 dozen.) We > >> have about 8 wineries and around 80 outlets (retail, wholesale and > >> cellar door) that provide that vintage. Also you are looking for one or > >> two bottles of 2012 North Victorian Muscat, six or so bottles of > >> something-or-other fizz and a bottle of sweet sherry for Aunt Jane. > >> > >> The idea is you stick that order in and we do the "go searching". > >> Originally I thought we could just come up with the "best fit/best > >> value" answer. However it appears that > >> a) this can take a bit of time.. up to about 10 minutes and > >> b) if someone has got the Muscat on a two for one sale and another > >> "sticky" is even better value then "best value" becomes a bit > meaningless. > >> > >> (Sheesh! This was supposed to be a retirement hobby project! AKA someone > >> said (and I cant quote the exact words for fear of being censored but it > >> was along the lines of...) GET OUT OF MY KITCHEN AND GO DO SOMETHING!) > >> Well, that worked. I have spent the last three weeks demoing the very > >> rudimentary prototype to more marketers and sales reps than I ever > >> wished to meet in my life. The trouble is not only do they like it, > >> they have got lots of "wonderful suggestions". Sadly, most of their > >> ideas involve web-sites promoting their product. Which is the antithesis > >> of what we are trying to do. > >> > >> The original idea was based on your ordinary "wine club" sort of thing. > >> We'd go and sign up a few bespoke wineries and they'd tell us what they > >> were remaindering, i.e. the stuff they wanted to move so this years > >> vintage could occupy the space released. We weren't going to "sell" it, > >> we would just "list it". Any club member could log in and see who was > >> trying to move what stuff. No fancies, no bling. They saw something > >> they liked, click and get a phone number or email address to order some. > >> No fee, no commission. Just that (ahem) I'd get a few bargains here and > >> there. Well, that idea soon blew up! > >> > >> So now we have a relatively decent sort of client-server thingo going > >> that about 60 people are using sporadically and a bunch of marketers who > >> want to put videos with surround sound stereo on it. AAAAARRRGH! This is > >> just exactly what I am trying to avoid! > >> > >> However the UI is crap. My fault. > >> > >> So. > >> > >> Instead of having to read the current stdout gibberish we print while > >> searching through catalogues and websites for partial matches and > >> possible goodies. Someone suggested that maybe we could do a slowly > >> scrolling sort of marquee thing across the bottom. Most times it would > >> say sort of "... still looking ..." and show some found items. OK I said > >> ... BUT THERE WILL BE NO ADVERTISING! > >> > >> (Well that was a long way to get to the point. Sorry folks!) > >> > >> But any ideas? > >> > >> > >> > >> tia > >> bruce > >> > >> > >> > >> > >> ................. >>>>>> Best buys are here!!!!!! ...... Sign up > >> now!!!!! ..... (French horn concerto)..... DO IT NOW! > >> > >> > >> B: Joanne, get out of my emails! > >> J: pppppppp!!! > > > > > > > > I got lost in your speech, limited my answer to the title attaching a > small test. > > > > Regards > > Gianluigi > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > -- > Fabien Bodard > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Thu Nov 28 14:17:48 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 28 Nov 2019 15:17:48 +0200 Subject: [Gambas-user] Just for interest, size of Gambas projects? Message-ID: As the topic says, what is your biggest Gambas project? I'm interested in how big projects Gambas is used. IDE --> Project properties --> Statistics --> Lines of code I know lines of code is quite bad metric, but it gives some picture. My typical project is very small, but my biggest is 52 316 lines. IDE is about 82 000 lines. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: From ub2 at gmx.ch Thu Nov 28 15:04:36 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Thu, 28 Nov 2019 15:04:36 +0100 Subject: [Gambas-user] Size of Gambas projects? How to obtain it by script? too many local variables? In-Reply-To: References: Message-ID: Hi Jussi and mailinglist Answering your questioin: My "project high score" ist 27000. Regarding this "too big projects" topic, I'm with two open questions you or somebody else might have an answer in no time. 1) Is there a way to obtain follwing infos - IDE --> Project properties --> Statistics --> Lines of code - IDE --> Project properties --> Statistics --> Executable size with a Gambas script crawling trough an array of project-paths ? (I'd like to get a feeling/warning when I have to stop for "clean up" before coding new features) 2) I wrote a Public Sub running into a "too many local variables" error. Is there a way to raise this limit? (I'll rewrite it promised. But I'd still like to use in the meantime) Thanks to all. ub2 Am 28.11.19 um 14:17 schrieb Jussi Lahtinen: > As the topic says, what is your biggest Gambas project? > I'm interested in how big projects Gambas is used. > > IDE --> Project properties --> Statistics --> Lines of code > > I know lines of code is quite bad metric, but it gives some picture. > My typical project is very small, but my biggest is 52 316 lines. > > IDE is about 82 000 lines. > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From hans at gambas-buch.de Thu Nov 28 16:29:40 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Thu, 28 Nov 2019 16:29:40 +0100 Subject: [Gambas-user] Help for component gb.web.form In-Reply-To: References: <1fb4019a-352c-f96f-f262-c74ba45c436c@gambas-buch.de> <44bb6391-e42b-94cc-035f-38e7d180da79@gambas-buch.de> Message-ID: <0acf6d87-e949-6262-1d7b-ee9a3736ec11@gambas-buch.de> Thank you David for the information. I will try to implement the given approaches in a small project. Question: But how do I proceed if my web server - where our online book is located - asks for the necessary account name (user and password), who do I want to save a file to? What should I do then?? Do you know a solution for this special task? Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Thu Nov 28 16:40:00 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 28 Nov 2019 16:40:00 +0100 Subject: [Gambas-user] Just for interest, size of Gambas projects? In-Reply-To: References: Message-ID: Am 28.11.19 um 14:17 schrieb Jussi Lahtinen: > As the topic says, what is your biggest Gambas project? > I'm interested in how big projects Gambas is used. > > IDE --> Project properties --> Statistics --> Lines of code > > I know lines of code is quite bad metric, but it gives some picture. > My typical project is very small, but my biggest is 52 316 lines. > > IDE is about 82 000 lines. > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > My biggest has 18.225 lines. Regards Rolf From taboege at gmail.com Thu Nov 28 18:42:55 2019 From: taboege at gmail.com (Tobias Boege) Date: Thu, 28 Nov 2019 18:42:55 +0100 Subject: [Gambas-user] Size of Gambas projects? How to obtain it by script? too many local variables? In-Reply-To: References: Message-ID: <20191128174255.GD25099@highrise.localdomain> On Thu, 28 Nov 2019, ub2 at gmx.ch wrote: > 2) I wrote a Public Sub running into a "too many local variables" error. > Is there a way to raise this limit? > (I'll rewrite it promised. But I'd still like to use in the meantime) > Interpreter limits are documented: http://gambaswiki.org/wiki/doc/limit Local variables have a hard limit of 127 per sub, probably because of bytecode constraints. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From jussi.lahtinen at gmail.com Thu Nov 28 22:30:54 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 28 Nov 2019 23:30:54 +0200 Subject: [Gambas-user] Size of Gambas projects? How to obtain it by script? too many local variables? In-Reply-To: References: Message-ID: This shell command will give you line count, but it gives different number. I guess it counts also empty lines and IDE doesn't. find . -type f \( -name "*.module" -o -name "*.class" \) -print0 | xargs -0 wc --lines I have never look at how IDE does that. Jussi On Thu, Nov 28, 2019 at 4:04 PM ub2 at gmx.ch wrote: > Hi Jussi and mailinglist > > > Answering your questioin: My "project high score" ist 27000. > > > Regarding this "too big projects" topic, I'm with two open questions you > or somebody else might have an answer in no time. > > 1) Is there a way to obtain follwing infos > - IDE --> Project properties --> Statistics --> Lines of code > - IDE --> Project properties --> Statistics --> Executable size > with a Gambas script crawling trough an array of project-paths ? > (I'd like to get a feeling/warning when I have to stop for "clean up" > before coding new features) > > 2) I wrote a Public Sub running into a "too many local variables" error. > Is there a way to raise this limit? > (I'll rewrite it promised. But I'd still like to use in the meantime) > > > Thanks to all. > > > ub2 > > Am 28.11.19 um 14:17 schrieb Jussi Lahtinen: > > As the topic says, what is your biggest Gambas project? > > I'm interested in how big projects Gambas is used. > > > > IDE --> Project properties --> Statistics --> Lines of code > > > > I know lines of code is quite bad metric, but it gives some picture. > > My typical project is very small, but my biggest is 52 316 lines. > > > > IDE is about 82 000 lines. > > > > > > Jussi > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Fri Nov 29 07:25:00 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 Nov 2019 07:25:00 +0100 Subject: [Gambas-user] Just for interest, size of Gambas projects? In-Reply-To: References: Message-ID: <4b1564bb-d222-bdef-437c-7fe864bb611d@deganius.de> Am 28.11.19 um 14:17 schrieb Jussi Lahtinen: > As the topic says, what is your biggest Gambas project? My biggest is a library with 38062 loc which is used by a couple of projects. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Fri Nov 29 07:53:24 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 Nov 2019 07:53:24 +0100 Subject: [Gambas-user] Size of Gambas projects? How to obtain it by script? too many local variables? In-Reply-To: References: Message-ID: <0f5fb808-4788-3d9f-f09e-69e32422369f@deganius.de> Am 28.11.19 um 22:30 schrieb Jussi Lahtinen: > This shell command will give you line count, but it gives different > number. I guess it counts also empty lines and IDE doesn't. > find . -type f \( -name "*.module" -o -name "*.class" \) -print0 | xargs > -0 wc --lines You can also use cloc (which is part of Debian) with a special definition file for Gambas. This is able to count more than one project, which is the case here where the whole project is realized by a couple of Gambas projects together with some code of other languages. > christof at tof-x230 ~/programming/gambas/deganius ? cloc --read-lang-def=cloc.def ./ > 1535 text files. > 1240 unique files. > 831 files ignored. > > github.com/AlDanial/cloc v 1.74 T=5.07 s (142.8 files/s, 20909.5 lines/s) > --------------------------------------------------------------------------------------- > Language files blank comment code > --------------------------------------------------------------------------------------- > Gambas3 516 28709 10524 55730 > Elixir 32 252 368 1606 > TeX 45 311 444 1583 > PHP 34 141 119 1520 > Windows Module Definition 2 0 0 1432 > AMPLE 30 60 0 766 > Bourne Shell 32 294 294 474 > make 9 155 103 439 > Markdown 3 110 0 169 > Bourne Again Shell 3 28 7 59 > PO File 3 34 71 54 > Visualforce Component 10 0 0 42 > DOS Batch 4 30 14 36 > CSS 1 7 0 17 > --------------------------------------------------------------------------------------- > SUM: 724 30131 11944 63927 > --------------------------------------------------------------------------------------- I attach cloc.def. Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- Gambas3 filter remove_matches ^\s*' extension class extension module 3rd_gen_scale 1 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From chrisml at deganius.de Fri Nov 29 08:08:48 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Fri, 29 Nov 2019 08:08:48 +0100 Subject: [Gambas-user] Size of Gambas projects? How to obtain it by script? too many local variables? In-Reply-To: <0f5fb808-4788-3d9f-f09e-69e32422369f@deganius.de> References: <0f5fb808-4788-3d9f-f09e-69e32422369f@deganius.de> Message-ID: <41673a30-1b8e-ee1b-ffe1-874c7d7d77e7@deganius.de> Am 29.11.19 um 07:53 schrieb Christof Thalhofer: >> --------------------------------------------------------------------------------------- >> Language files blank comment code >> --------------------------------------------------------------------------------------- >> Gambas3 516 28709 10524 55730 >> Elixir 32 252 368 1606 >> TeX 45 311 444 1583 >> PHP 34 141 119 1520 >> Windows Module Definition 2 0 0 1432 >> AMPLE 30 60 0 766 >> Bourne Shell 32 294 294 474 >> make 9 155 103 439 >> Markdown 3 110 0 169 >> Bourne Again Shell 3 28 7 59 >> PO File 3 34 71 54 >> Visualforce Component 10 0 0 42 >> DOS Batch 4 30 14 36 >> CSS 1 7 0 17 >> --------------------------------------------------------------------------------------- >> SUM: 724 30131 11944 63927 >> --------------------------------------------------------------------------------------- To be honest, I have no idea where Elixir and AMPLE are coming from ... ;-) 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 ub2 at gmx.ch Fri Nov 29 09:32:02 2019 From: ub2 at gmx.ch (ub2 at gmx.ch) Date: Fri, 29 Nov 2019 09:32:02 +0100 Subject: [Gambas-user] Size of Gambas projects? How to obtain it by script? too many local variables? Message-ID: Good Morning Thank you Tobi, Jussi and Christof for your hints. They are highly appreciated. Wish you all a nice day and a good weekend soon. ub2