From jussi.lahtinen at gmail.com Wed May 1 00:15:20 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 1 May 2019 01:15:20 +0300 Subject: [Gambas-user] Debugging Gambas (again) In-Reply-To: <1625291329.10465658.1556632591361.JavaMail.zimbra@exede.net> References: <8d75b22e-04c0-3aa2-1b24-fe253cfcafa7@gmail.com> <2058782329.6795893.1556369986281.JavaMail.zimbra@exede.net> <1461629979.9256027.1556551195193.JavaMail.zimbra@exede.net> <1625291329.10465658.1556632591361.JavaMail.zimbra@exede.net> Message-ID: *'Briefly, when I said "generalize the discussion" I also meant generalizing to any interpreter, not just Gambas.'* C is not interpreted. And generally speaking modern interpreted languages do not offer direct memory management and thus they never show sig11, unless they have bugs. So, again you are wrong. Point 1 is exactly what I have said to you several times now. And now you tell it to *me*, like it would be new information. Pathological ego. However, you still haven't quite internalized what you can now repeat. Excluding the already mentioned exceptions, sig11 is always bug. No other choices. I guess when you have studied bit more you will tell me that like it would be news. Jussi On Tue, Apr 30, 2019 at 4:57 PM Cedron Dawg wrote: > Jussi, > > Briefly, when I said "generalize the discussion" I also meant generalizing > to any interpreter, not just Gambas. This is pretty clear from the second > line you quoted me on. > > As for the points: > > 1) Gambas programs (except for the JIT component) aren't executed, they > are interpreted, they are a data stream. The actual execution (native > machine code) is the interpreter running. So it is the interpreter that is > causing the seg faults based on the values in the byte code stream, or > passing along bad values to system calls/external functions which then can > seg fault. A seg fault is initiated by the processor, which calls a kernel > handler, which sends a signal, ..... > > Either the interpreter checks and catches bad values before it executes > them and does a clean, hopefully informative, "error exit" or it doesn't > check and seg faults. You keep inferring fragile code is an error, I don't > see it that way. That is not the same as saying that Gambas should not > have any fragile code, which seems to be such a strong sentiment for you > that you don't make the distinction and say that is a bug. > > 2) "some sort of internal stack" means a program defined LIFO (Last In > First Out) storage structure and is not referring to the processor stack > (ESP/EBP register controlled on x86). Whether it is overflow protected is > implementation dependent. Tobi's testing of GoSubs vs Calls with 10000 > level deep recursive calls without overflow indicates to me that Gambas has > overflow protection (and automatic expansion) built into its internal > process control stacks. > > Returning to the OP's particular situation. I think it is safe to say > that if the interpreter running the OP's Gambas code seg faults then there > is either fragile interpreter code or a bug in the interpreter code. If it > is a bug, of course it should be fixed. If it is a matter of fragility, > whether to add further parameter validation code (i.e. look for errors) is > a judgement call in which the answer is likely to be yes. > > My initial assessment of this situation was that it was a case of > interpreter fragility and invalid OP data. Now, I'm not leaning at all. > Still curious though. > > Ced > > > ----- Original Message ----- > From: "Jussi Lahtinen" > To: "user" > Sent: Monday, April 29, 2019 5:46:16 PM > Subject: Re: [Gambas-user] Debugging Gambas (again) > > Did you even read what I wrote? You got nothing correct. > > Your points; > 1. In C, not in Gambas. We were talking about Gambas. > 2. Can happen in C, but the stack protection probably stops the execution > before that happens... and again, not in Gambas. > 3. Same as point 1. > > "Suppose the interpreter provides a "SendToRemotePeer" ..." > > Wrong, does not happen in Gambas. Unless of course there is bug in Gambas. > > "Should an interpreter be coded to be robust? A general purpose usage one, > like Gambas, yep. Should it be absolutely robust? I'm not sure that is even > theoretical possible." > > I'm not talking about "absolute robustness", I'm talking about fixing bugs > when we find them. Proper error message tells quite a much more than just > sig11. > > > Jussi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Wed May 1 13:13:54 2019 From: adamnt42 at gmail.com (Bruce) Date: Wed, 1 May 2019 20:43:54 +0930 Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit Message-ID: Basically, I have a .pic file and want to load it in an imageview control and then make it fit the current size of the imageview control. In other words, no matter what size the user has made the active form, the "pic" should be rescaled to fit the imageview control current size. I am loading the imageview.image like this pseudo code: 1) user selects the object that identifies the image to load (Note the indirection there.) 2) code detects that a new image needs to be loaded, and 2a) calculates the path to the correct .pic file 2b) the .pic file is loaded into a Picture object - say fred 2c) (Here we go!) The imageview.image is set to fred.image Now that all works. But now we need to rescale it to fit the curent size of the imageview. I thought that (ahem) MyImageView.ZoomFit was supposed to do it. But, the display shows it as if it was zoomed out to about 800m. IOW its a little block in the middle of the imageview control. Now it gets interesting (not!). If I insert a Wait between the .image= and the .zoomfit of a "significant" pause then the image is rendered correctly. Great but pretty suboptimal. Especially when the pause is (depending on system load) around 0.6 seconds. This is infuriating. Totally. In fact even more infuriating than whether a bad memory bank switch could ever possibly result in a segfault. ( :-) ) Bug or...? b From g4mba5 at gmail.com Wed May 1 14:11:17 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 1 May 2019 14:11:17 +0200 Subject: [Gambas-user] gb.media: No display of videos in Gambas controls In-Reply-To: <758ecedd-955a-d891-ae75-2b79cf48b67b@freenet.de> References: <2ddf3cc4-7ff3-3b23-1018-927a22ef0727@freenet.de> <758ecedd-955a-d891-ae75-2b79cf48b67b@freenet.de> Message-ID: Le 29/04/2019 ? 19:26, Claus Dietrich a ?crit?: > Hi > > I am running Linux Mint 19 Mate with VirtualBox on a Windows Host with > all host and guest additions installed. Tests with GStreamer in a > terminal showed, that only /autovideosink/ works as video-sink in this > environment (xvimagesink or ximagesink don't work) . The working > GStreamer pipeline was successfully rebuilt in Gambas 3.13.0 with > gb.media as follows: > > ' Gambas class file > > Public pl As MediaPipeline > Public dr As DrawingArea > > Public Sub Form_Open() > > Dim src, snk As MediaControl > Dim ftr1, ftr2 As MediaFilter > > ? With dr = New DrawingArea(Me) > ??? .X = 10 > ??? .Y = 10 > ??? .W = 640 > ??? .H = 480 > ??? .Background = Color.Black > ? End With > > ? FMain.width = dr.w + 20 > > ? pl = New MediaPipeline > > ? ' 'With webcam > ? ' src = New MediaControl(pl, "v4l2src") > ? ' src["device"] = "/dev/video0" > ? ' ftr1 = New MediaFilter(pl, "jpegdec") > ? ' ftr2 = New MediaFilter(pl, > "video/x-raw,width=640,height=480,framerate=15/1") > ? ' snk = New MediaControl(pl, "autovideosink") > ? ' src.LinkTo(ftr1) > ? ' ftr1.Linkto(ftr2) > ? ' ftr2.LinkTo(snk) > > ? 'With test source > ? src = New MediaControl(pl, "videotestsrc") > ? snk = New MediaControl(pl, "autovideosink") > ? src.LinkTo(snk) > > ? 'pl.SetWindow(dr) > > End > > Public Sub Button1_Click() > > ? pl.pause > ? pl.Play() > > End > > Public Sub Button2_Click() > > ? pl.pause > ? pl.close > ? pl.stop > > End > > The problem: When I am trying with the above out-commented command line > "pl.SetWindow(dr)" to display the video in a Gambas control, Gambas > throws the error "Not supported on this control". Earlier examples found > in the Web showed, that this was working with Drawing Areas. Did this > function went lost? Is there anything wrong in my program? > > Claus > The SetWindow() method works only on elements that implement the GStreamer vide overlay interface. MediaPipeline does not. Regards, -- Beno?t Minisini From cedron at exede.net Wed May 1 14:39:09 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 08:39:09 -0400 (EDT) Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit In-Reply-To: References: Message-ID: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> "Bug or ...? " Don't know. Here is some code that accomplishes the same thing, sort of. I say sort of, because the image viewer includes the scroll bars as part of the size. The picture box looks nicer. ' Gambas class file Public Sub Form_Open() Dim I, I2, I3 As Image I = Image.Load("~/Pictures/Wallpaper1920/DogOnDock.JPG") I2 = I.Stretch(ImageView1.W, ImageView1.H) ImageView1.Image = I2 I3 = I.Stretch(PictureBox1.W, PictureBox1.H) PictureBox1.Image = I3 End I hope that soothes your fury some. Ced ----- Original Message ----- From: "adamnt42" To: "user" Sent: Wednesday, May 1, 2019 7:13:54 AM Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit Basically, I have a .pic file and want to load it in an imageview control and then make it fit the current size of the imageview control. In other words, no matter what size the user has made the active form, the "pic" should be rescaled to fit the imageview control current size. I am loading the imageview.image like this pseudo code: 1) user selects the object that identifies the image to load (Note the indirection there.) 2) code detects that a new image needs to be loaded, and 2a) calculates the path to the correct .pic file 2b) the .pic file is loaded into a Picture object - say fred 2c) (Here we go!) The imageview.image is set to fred.image Now that all works. But now we need to rescale it to fit the curent size of the imageview. I thought that (ahem) MyImageView.ZoomFit was supposed to do it. But, the display shows it as if it was zoomed out to about 800m. IOW its a little block in the middle of the imageview control. Now it gets interesting (not!). If I insert a Wait between the .image= and the .zoomfit of a "significant" pause then the image is rendered correctly. Great but pretty suboptimal. Especially when the pause is (depending on system load) around 0.6 seconds. This is infuriating. Totally. In fact even more infuriating than whether a bad memory bank switch could ever possibly result in a segfault. ( :-) ) Bug or...? b ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From cedron at exede.net Wed May 1 14:50:37 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 08:50:37 -0400 (EDT) Subject: [Gambas-user] Debugging Gambas (again) In-Reply-To: References: <8d75b22e-04c0-3aa2-1b24-fe253cfcafa7@gmail.com> <2058782329.6795893.1556369986281.JavaMail.zimbra@exede.net> <1461629979.9256027.1556551195193.JavaMail.zimbra@exede.net> <1625291329.10465658.1556632591361.JavaMail.zimbra@exede.net> Message-ID: <524324330.11662993.1556715037486.JavaMail.zimbra@exede.net> Actually, I was just trying to explain what I meant as clearly as I could seeing as how I had been repeatedly misunderstood. If you somehow read that I said C code is interpreted then I am still being misunderstood. Enough said. Ced P.S. I am now strongly leaning in favor of it was a bug in previous versions of Gambas that has been fixed by the latest version. ----- Original Message ----- From: "Jussi Lahtinen" To: "user" Sent: Tuesday, April 30, 2019 6:15:20 PM Subject: Re: [Gambas-user] Debugging Gambas (again) 'Briefly, when I said "generalize the discussion" I also meant generalizing to any interpreter, not just Gambas.' C is not interpreted. And generally speaking modern interpreted languages do not offer direct memory management and thus they never show sig11, unless they have bugs. So, again you are wrong. Point 1 is exactly what I have said to you several times now. And now you tell it to me , like it would be new information. Pathological ego. However, you still haven't quite internalized what you can now repeat. Excluding the already mentioned exceptions, sig11 is always bug. No other choices. I guess when you have studied bit more you will tell me that like it would be news. Jussi From cedron at exede.net Wed May 1 16:17:31 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 10:17:31 -0400 (EDT) Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit In-Reply-To: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> References: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> Message-ID: <1461251784.11781460.1556720251203.JavaMail.zimbra@exede.net> Bug or proper usage conditions? Okay, I went back and reproduced the problem as demonstrated in the code below, with a difference. The desired behavior only occurs if the Me.Show line is in effect. The Wait has no influence on the final outcome. Zoomfit retains the image's aspect ratio and fits to the larger dimension. ' Gambas class file Public Sub Form_Open() Dim I As Image I = Image.Load("~/Pictures/Wallpaper1920/DogOnDock.JPG") ImageView1.Image = I 'Me.Show 'Wait 1.0 ImageView1.ZoomFit(0) End From cedron at exede.net Wed May 1 16:23:04 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 10:23:04 -0400 (EDT) Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit In-Reply-To: <1461251784.11781460.1556720251203.JavaMail.zimbra@exede.net> References: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> <1461251784.11781460.1556720251203.JavaMail.zimbra@exede.net> Message-ID: <569859280.11789889.1556720584245.JavaMail.zimbra@exede.net> Adding a button with the following code also worked properly: Public Sub Button1_Click() ImageView1.Image = Image.Load("~/Pictures/Wallpaper1920/Squirrel1920.JPG") ImageView1.ZoomFit(0) End From cedron at exede.net Wed May 1 17:34:16 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 11:34:16 -0400 (EDT) Subject: [Gambas-user] Listing Views in a database Message-ID: <1344758609.11926795.1556724856842.JavaMail.zimbra@exede.net> So, I'm messing around with a database in SQLite. So far so good. 1) I can create and access it through Gambas. 2) I can access it through sqlite3 command line. 3) I can access it through "DB Browser for SQLite" Now, I created a View via a sql statement in sqlite3 command line. How do I find the list of views, in a database type independent way, via Gambas? Thanks, Ced From g4mba5 at gmail.com Wed May 1 18:13:16 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 1 May 2019 18:13:16 +0200 Subject: [Gambas-user] Listing Views in a database In-Reply-To: <1344758609.11926795.1556724856842.JavaMail.zimbra@exede.net> References: <1344758609.11926795.1556724856842.JavaMail.zimbra@exede.net> Message-ID: <04ff3154-c528-11d7-d9e5-e86c0778dac1@gmail.com> Le 01/05/2019 ? 17:34, Cedron Dawg a ?crit?: > So, I'm messing around with a database in SQLite. So far so good. > > 1) I can create and access it through Gambas. > > 2) I can access it through sqlite3 command line. > > 3) I can access it through "DB Browser for SQLite" > > Now, I created a View via a sql statement in sqlite3 command line. > > How do I find the list of views, in a database type independent way, via Gambas? > > Thanks, > > Ced > There is no view management in 'gb.db'. -- Beno?t Minisini From cedron at exede.net Wed May 1 20:30:53 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 14:30:53 -0400 (EDT) Subject: [Gambas-user] Allocations not freed when using SQLite Message-ID: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> I wrote a little form program to access SQLite: 1) I open a connection in the Form_Open 2) I have a text field and button to execute sql. On click: myCon.Exec(SqTextArea.Text) 3) I close the connection in the Form_Close If I issue any "CREATE TABLE" sql commands when I exit the program I get: "gbx3: warning: 44 allocation(s) non freed" What does this mean in this context and how should I exit cleanly? Thanks, Ced From g4mba5 at gmail.com Wed May 1 20:36:26 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 1 May 2019 20:36:26 +0200 Subject: [Gambas-user] Allocations not freed when using SQLite In-Reply-To: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> References: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> Message-ID: <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> Le 01/05/2019 ? 20:30, Cedron Dawg a ?crit?: > I wrote a little form program to access SQLite: > > 1) I open a connection in the Form_Open > > 2) I have a text field and button to execute sql. On click: myCon.Exec(SqTextArea.Text) > > 3) I close the connection in the Form_Close > > > If I issue any "CREATE TABLE" sql commands when I exit the program I get: > > "gbx3: warning: 44 allocation(s) non freed" > > What does this mean in this context and how should I exit cleanly? > > Thanks, > > Ced > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > It's usually a bug. Please post a project that reproduces it. ReEgards, -- Beno?t Minisini From cedron at exede.net Wed May 1 21:12:44 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 15:12:44 -0400 (EDT) Subject: [Gambas-user] Allocations not freed when using SQLite In-Reply-To: <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> References: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> Message-ID: <1273420806.12245077.1556737964809.JavaMail.zimbra@exede.net> Hi Benoit, Thanks for looking at this. Ced The project source archive is attached. With no database file present, the code will run properly with the SQL below entered and then exit with: gbx3: warning: 4 allocation(s) non freed. I've also attached my full script. Some of you may recognize it as automatically generated code from the diagram in https://forum.gambas.one/viewtopic.php?f=4&t=699 ======================================================= CREATE TABLE text_lines( text_line_id INTEGER PRIMARY KEY, name TEXT NOT NULL ); CREATE TABLE keywords( keyword_id INTEGER PRIMARY KEY, name TEXT NOT NULL, description TEXT ); CREATE TABLE keyword_usage( keyword_usage_id INTEGER PRIMARY KEY, text_lines_fk INTEGER NOT NULL, keywords_fk INTEGER NOT NULL, FOREIGN KEY(text_lines_fk) REFERENCES text_lines(text_line_id) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY(keywords_fk) REFERENCES keywords(keyword_id) ON UPDATE CASCADE ON DELETE CASCADE ); CREATE INDEX keyword_usage__text_lines ON keyword_usage(text_lines_fk); CREATE INDEX keyword_usage__keywords ON keyword_usage(keywords_fk); ----- Original Message ----- From: "Beno?t Minisini" It's usually a bug. Please post a project that reproduces it. ReEgards, -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- A non-text attachment was scrubbed... Name: SQLiteTesting-0.0.1.tar.gz Type: application/x-compressed-tar Size: 18848 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: TestSql.txt URL: From cedron at exede.net Wed May 1 23:16:27 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 1 May 2019 17:16:27 -0400 (EDT) Subject: [Gambas-user] Allocations not freed when using SQLite In-Reply-To: <1273420806.12245077.1556737964809.JavaMail.zimbra@exede.net> References: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> <1273420806.12245077.1556737964809.JavaMail.zimbra@exede.net> Message-ID: <548933955.12513102.1556745387283.JavaMail.zimbra@exede.net> This seems to be multiple statements per exec related. pragma foreign_key_list(keywords); pragma foreign_key_list(keyword_usage); produces gbx3: warning: 20 allocation(s) non freed. Yet, individually they work fine. From peterpeyotle at gmx.de Thu May 2 08:55:43 2019 From: peterpeyotle at gmx.de (Peter Peyotle) Date: Thu, 02 May 2019 08:55:43 +0200 Subject: [Gambas-user] Allocations not freed when using SQLite In-Reply-To: <548933955.12513102.1556745387283.JavaMail.zimbra@exede.net> References: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> <1273420806.12245077.1556737964809.JavaMail.zimbra@exede.net> <548933955.12513102.1556745387283.JavaMail.zimbra@exede.net> Message-ID: yes, I know this message well. however, it only appears after a debug session. Without debug she has not noticed me yet. Accordingly, how many variables, objects etc were there, I had several hundred "freeds" :-) Von meinem Sony Xperia?-Smartphone gesendet ---- Cedron Dawg schrieb ---- >This seems to be multiple statements per exec related. > >pragma foreign_key_list(keywords); >pragma foreign_key_list(keyword_usage); > >produces > >gbx3: warning: 20 allocation(s) non freed. > >Yet, individually they work fine. > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Thu May 2 18:35:44 2019 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 2 May 2019 17:35:44 +0100 Subject: [Gambas-user] Gambas Playground Message-ID: Just a note to say that the Gambas Playground has now been updated to 3.13.0 Charlie & Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From bastiangermann at fishpost.de Fri May 3 18:58:09 2019 From: bastiangermann at fishpost.de (Bastian Germann) Date: Fri, 3 May 2019 18:58:09 +0200 Subject: [Gambas-user] pkgsrc port Message-ID: <8a3c7278-033a-febe-a884-44d7589074fb@fishpost.de> Hi, This is for all people who want to run or develop Gambas on niche platforms. I am working on a pkgsrc port [0] for some months now and I think it is in a usable state. pkgsrc is a ports system that originated in NetBSD and has support for many operating systems including all of the platforms that Gambas has been tested on according to http://gambaswiki.org/wiki/doc/distro: Linux, Darwin/macOS, FreeBSD, NetBSD, OpenBSD, Cygwin, Solaris, and Haiku. Before I try to get the port from the experimental pkgsrc-wip to pkgsrc I would like to have it tested on some more platforms. I tested Linux, NetBSD and OpenBSD. Especially macOS, Solaris and Haiku support would be nice, as Gambas support on these platforms seems to be quite flaky. For the Solaris fork illumos there is even the SmartOS distribution that has first-level support for pkgsrc. Another unexplored target system with first-level pkgsrc support is MINIX 3. So maybe you always wanted to try one of these systems but had to have a reason/project for it. Search no longer and join :-) [0]: https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=tree;f=gambas3;hb=HEAD From cedron at exede.net Sat May 4 05:01:06 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 3 May 2019 23:01:06 -0400 (EDT) Subject: [Gambas-user] Wiki Database Message-ID: <1373240021.15376423.1556938866430.JavaMail.zimbra@exede.net> Okay, somewhere there is a database behind the Wiki pages. I'm wanting some data from there and I'd rather not write a web crawler. Can I get a schema report for the DB? Assuming so, if I make some make table queries off the design, can someone run them and produce exported .csv files? Or even better, a SQLite database? Thanks, Ced Looking for This: Components 1 | M Classes 1 | M Members and Keywords From taboege at gmail.com Sat May 4 05:49:11 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 4 May 2019 05:49:11 +0200 Subject: [Gambas-user] Wiki Database In-Reply-To: <1373240021.15376423.1556938866430.JavaMail.zimbra@exede.net> References: <1373240021.15376423.1556938866430.JavaMail.zimbra@exede.net> Message-ID: <20190504034911.GB30323@highrise.localdomain> On Fri, 03 May 2019, Cedron Dawg wrote: > Okay, somewhere there is a database behind the Wiki pages. I'm wanting some data from there and I'd rather not write a web crawler. > > Can I get a schema report for the DB? > The source code of the wiki is in app/src/gambas-wiki. It seems like the pages are stored in a flat-file database. While that is a database in some sense, you maybe had something else in mind when you asked for a schema. In any case, you can download the database from http://gambaswiki.org/gambas-wiki.tar.bz2 > Looking for This: > > Components > 1 > | > M > Classes > 1 > | > M > Members > > and > > Keywords > All of that is stored in a purer form inside the components' .info files. These are text files whose format everyone has to reverse-engineer them- selves. At least I'm not aware of anybody writing down a specification. They are generated during installation of components, so you only have files for components you have installed, and they are put into /usr/share/gambas3/info by default. The wiki script uses those files and naturally includes a parser for them. [ You know you're in less developed terrain if source code comments suddenly start being in French :-) ] Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cedron at exede.net Sat May 4 06:38:39 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 4 May 2019 00:38:39 -0400 (EDT) Subject: [Gambas-user] Wiki Database In-Reply-To: <20190504034911.GB30323@highrise.localdomain> References: <1373240021.15376423.1556938866430.JavaMail.zimbra@exede.net> <20190504034911.GB30323@highrise.localdomain> Message-ID: <887326049.15440695.1556944719889.JavaMail.zimbra@exede.net> Hi Tobi, Thanks so much. It took three tries, but I got it. This is going to take some looking at. I've also been examining the source tree and I may be best off scanning the source. For C based components, these sections should give me the info I want: ============================== GB_DESC ComplexDesc[] = { GB_DECLARE("Complex", sizeof(CCOMPLEX)), // Utility Methods GB_METHOD("_new", NULL, Complex_new, "[(Real)f(Imag)f]"), GB_STATIC_METHOD("_call", "Complex", Complex_call, "[(Real)f(Imag)f]"), GB_STATIC_METHOD("Polar", "Complex", Complex_Polar, "[(Abs)f(Arg)f]"), GB_METHOD("Copy", "Complex", Complex_Copy, NULL), GB_METHOD("ToString", "s", Complex_ToString, "[(Local)b]"), GB_METHOD("Conj", "Complex", Complex_Conjugate, NULL), //GB_METHOD("Neg", "Complex", Complex_Negative, NULL), GB_METHOD("Inv", "Complex", Complex_Inverse, NULL), //GB_METHOD("Set", NULL, Complex_Set, "[(Real)f(Imag)f]"), ... ============================== I also found gb.(name).component files which sometimes have names (and alternative language names), authors, state, dependencies etc. There are .component files as well. gambas-master/gb.*/.src ===> gb.(name).component and C classes gambas-master/comp/src/gb.* ===> .component and .src has classes gambas-master/main/lib/(name) ===> gb.(name).component and C classes Will those give me full coverage of the components? (Still on the learning curve here.) As for the .info file, that is quite a puzzle. Is the wiki script you are talking about in? gambas-master/app/src/gambas-wiki Thanks, Ced ----- Original Message ----- From: "Tobias Boege" The source code of the wiki is in app/src/gambas-wiki. It seems like the pages are stored in a flat-file database. While that is a database in some sense, you maybe had something else in mind when you asked for a schema. In any case, you can download the database from http://gambaswiki.org/gambas-wiki.tar.bz2 > Looking for This: > > Components > 1 > | > M > Classes > 1 > | > M > Members > > and > > Keywords > All of that is stored in a purer form inside the components' .info files. These are text files whose format everyone has to reverse-engineer them- selves. At least I'm not aware of anybody writing down a specification. They are generated during installation of components, so you only have files for components you have installed, and they are put into /usr/share/gambas3/info by default. The wiki script uses those files and naturally includes a parser for them. [ You know you're in less developed terrain if source code comments suddenly start being in French :-) ] Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From cedron at exede.net Sat May 4 06:54:12 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 4 May 2019 00:54:12 -0400 (EDT) Subject: [Gambas-user] Wiki Database In-Reply-To: <887326049.15440695.1556944719889.JavaMail.zimbra@exede.net> References: <1373240021.15376423.1556938866430.JavaMail.zimbra@exede.net> <20190504034911.GB30323@highrise.localdomain> <887326049.15440695.1556944719889.JavaMail.zimbra@exede.net> Message-ID: <695826548.15445057.1556945652843.JavaMail.zimbra@exede.net> Thanks again, Tobi. The gambas/data/en/comp branch of the Wiki files seems to be really close to what I want as well. My last post in this thread describes my goal somewhat: https://forum.gambas.one/viewtopic.php?f=4&t=699 Suggestions welcome. Ced From taboege at gmail.com Sat May 4 13:28:26 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 4 May 2019 13:28:26 +0200 Subject: [Gambas-user] Wiki Database In-Reply-To: <887326049.15440695.1556944719889.JavaMail.zimbra@exede.net> References: <1373240021.15376423.1556938866430.JavaMail.zimbra@exede.net> <20190504034911.GB30323@highrise.localdomain> <887326049.15440695.1556944719889.JavaMail.zimbra@exede.net> Message-ID: <20190504112826.GC30323@highrise.localdomain> On Sat, 04 May 2019, Cedron Dawg wrote: > Hi Tobi, > > Thanks so much. It took three tries, but I got it. This is going to take some looking at. > > > I've also been examining the source tree and I may be best off scanning the source. > > For C based components, these sections should give me the info I want: > > ============================== > GB_DESC ComplexDesc[] = > { > GB_DECLARE("Complex", sizeof(CCOMPLEX)), > > // Utility Methods > GB_METHOD("_new", NULL, Complex_new, "[(Real)f(Imag)f]"), > GB_STATIC_METHOD("_call", "Complex", Complex_call, "[(Real)f(Imag)f]"), > GB_STATIC_METHOD("Polar", "Complex", Complex_Polar, "[(Abs)f(Arg)f]"), > > GB_METHOD("Copy", "Complex", Complex_Copy, NULL), > GB_METHOD("ToString", "s", Complex_ToString, "[(Local)b]"), > > GB_METHOD("Conj", "Complex", Complex_Conjugate, NULL), > //GB_METHOD("Neg", "Complex", Complex_Negative, NULL), > GB_METHOD("Inv", "Complex", Complex_Inverse, NULL), > //GB_METHOD("Set", NULL, Complex_Set, "[(Real)f(Imag)f]"), > > ... > ============================== > It might seem so, but remember that this is C souce code. Nothing stops a developer from playing the macro game and make such a class description effectively unparsable if you're not the C preprocessor. This is being done in the GUI components to some extent where class definitions are repetitive, but in reality you're not missing any "important" symbols if you ignore unknown macros. If you run the preprocessor over the source files, you will notice that GB_METHOD, GB_STATIC_METHOD, etc. are all macros as well which declare tiny structs. Once they have been preprocessed away, it becomes much harder to recognise what they were. Using the .info files is far more robust. The full story is as follows: The C compiler and linker turn native component source code into shared objects. During the course of that, class descriptions such as the above are demacroed, compiled into blobs. The interpreter requires exported classes to be listed in an array of pointers to such blobs, at the symbol GB_CLASSES inside the .so file. Sure enough every native component has this symbol: $ nm /usr/lib/gambas3/gb.so | grep GB_CLASSES 000000000001c760 D GB_CLASSES Now you might be thinking: hah, I will take the .so file, peek into the GB_CLASSES array and turn the fixed-size structs that are created by the GB_DECLARE, GB_METHOD, GB_PROPERTY, etc. macros into the information that I need. Good idea, but don't do that because the tool gbi3 does exactly this already and its output is: the .info files. They're called this way because they contain the info you want. Even more: the .info syntax is the same for components written in C/C++ and Gambas. It's a line-oriented plaintext file encoding of those binary blobs that are created by the GB_DESC macros. Once the ABI of the interpreter changes, gbi3 will change accordingly because it's inside the Gambas source tree, and the .info files are more likely to remain compatible, even if they're undocumented. Even the IDE uses these files to generate its autocompletion popup. > Is the wiki script you are talking about in? > gambas-master/app/src/gambas-wiki > Yes. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at gmail.com Sat May 4 13:44:24 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 4 May 2019 13:44:24 +0200 Subject: [Gambas-user] RDir and symbolic links Message-ID: I don't understand this in the wiki: "If FollowLink is TRUE, then symbolic links on directories are recursed. Otherwise they are processed like normal files." This code with True or False prints symbolic links in the same way: Public Sub Main() Dim File As String For Each File In RDir("/path/of/directory", Null, 0, True) ' or False Print File Next End Who helps me to understand for a correct translation? Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Sat May 4 17:20:48 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 4 May 2019 11:20:48 -0400 (EDT) Subject: [Gambas-user] Wiki Database In-Reply-To: <20190504112826.GC30323@highrise.localdomain> References: <1373240021.15376423.1556938866430.JavaMail.zimbra@exede.net> <20190504034911.GB30323@highrise.localdomain> <887326049.15440695.1556944719889.JavaMail.zimbra@exede.net> <20190504112826.GC30323@highrise.localdomain> Message-ID: <1507034365.15935410.1556983248011.JavaMail.zimbra@exede.net> Thanks Tobi, You have saved me a ton of time and effort. These two lines reveal the structure of the info files: gambas-master/app/src/gambas-wiki/.src/Main.module 908: nClass += iCpt 909: nSym += (aFile.Count - iCpt * 3) / 4 However, some files break this pattern with inserted comments. So these resulting counts may be off. (Bug?) I added a field to the Component list with a comment count from the file. These are the files that have comments: gb.web.feed 125 gb.map 119 gb.web.form 26 gb.media.form 10 gb.logging 9 gb.report2 2 gb.form 1 gb.net.pop3 1 gb.report 1 Side note (Strange If syntax): gambas-master/app/src/gambas-wiki/.src/CClassInfo.class 25: If Not sParent And If CComponent.Classes.Exist(sName) Then I've attached a project which gathers the information and produces three TSV (tab separated values) files. For the Keywords, I am simply parsing the source of gambaswiki.org/wiki/lang. That should be adequate for now. Great progress! Ced ----- Original Message ----- From: "Tobias Boege" ... It might seem so, but remember that this is C souce code. Nothing stops a developer from playing the macro game and make such a class description effectively unparsable if you're not the C preprocessor. This is being done in the GUI components to some extent where class definitions are repetitive, but in reality you're not missing any "important" symbols if you ignore unknown macros. If you run the preprocessor over the source files, you will notice that GB_METHOD, GB_STATIC_METHOD, etc. are all macros as well which declare tiny structs. Once they have been preprocessed away, it becomes much harder to recognise what they were. Using the .info files is far more robust. The full story is as follows: The C compiler and linker turn native component source code into shared objects. During the course of that, class descriptions such as the above are demacroed, compiled into blobs. The interpreter requires exported classes to be listed in an array of pointers to such blobs, at the symbol GB_CLASSES inside the .so file. Sure enough every native component has this symbol: $ nm /usr/lib/gambas3/gb.so | grep GB_CLASSES 000000000001c760 D GB_CLASSES Now you might be thinking: hah, I will take the .so file, peek into the GB_CLASSES array and turn the fixed-size structs that are created by the GB_DECLARE, GB_METHOD, GB_PROPERTY, etc. macros into the information that I need. Good idea, but don't do that because the tool gbi3 does exactly this already and its output is: the .info files. They're called this way because they contain the info you want. Even more: the .info syntax is the same for components written in C/C++ and Gambas. It's a line-oriented plaintext file encoding of those binary blobs that are created by the GB_DESC macros. Once the ABI of the interpreter changes, gbi3 will change accordingly because it's inside the Gambas source tree, and the .info files are more likely to remain compatible, even if they're undocumented. Even the IDE uses these files to generate its autocompletion popup. > Is the wiki script you are talking about in? > gambas-master/app/src/gambas-wiki > Yes. 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 -------------- A non-text attachment was scrubbed... Name: InfoScanner-0.0.1.tar.gz Type: application/x-compressed-tar Size: 12283 bytes Desc: not available URL: From t.lee.davidson at gmail.com Sun May 5 02:20:30 2019 From: t.lee.davidson at gmail.com (T Lee Davidson) Date: Sat, 4 May 2019 20:20:30 -0400 Subject: [Gambas-user] RDir and symbolic links In-Reply-To: References: Message-ID: <0fbe2907-ef67-0096-069b-0bf6504790bb@gmail.com> Symbolic links to regular files are treated the same way. Symbolic links to directories are treated differently. With FollowLink=False, a sym-linked directory will not be recursed. With FollowLink=True, a sym-linked directory *will* be recursed. ___ Lee On 5/4/19 7:44 AM, Gianluigi wrote: > I don't understand this in the wiki: "If FollowLink is TRUE, then symbolic links on directories are recursed. Otherwise they are > processed like normal files." > This code with True or False prints symbolic links in the same way: > > Public Sub Main() > > ? Dim File As String > > ? For Each File In RDir("/path/of/directory", Null, 0, True) ' or False > ??? Print File > ? Next > > End > > Who helps me to understand for a correct translation? > > Regards > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From ian.roper at iinet.net.au Sun May 5 07:59:51 2019 From: ian.roper at iinet.net.au (Ian Roper) Date: Sun, 5 May 2019 13:59:51 +0800 Subject: [Gambas-user] Compress example Message-ID: Does anyone have some example code of how to add multiple files using the compress component. It will be something simple but can't work it out. Cheers, Ian. From bagonergi at gmail.com Sun May 5 09:35:03 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 5 May 2019 09:35:03 +0200 Subject: [Gambas-user] RDir and symbolic links In-Reply-To: <0fbe2907-ef67-0096-069b-0bf6504790bb@gmail.com> References: <0fbe2907-ef67-0096-069b-0bf6504790bb@gmail.com> Message-ID: Hi Lee, thank you very much. Now I understand. Regards Gianluigi Il giorno dom 5 mag 2019 alle ore 02:21 T Lee Davidson < t.lee.davidson at gmail.com> ha scritto: > Symbolic links to regular files are treated the same way. Symbolic links > to directories are treated differently. > > With FollowLink=False, a sym-linked directory will not be recursed. With > FollowLink=True, a sym-linked directory *will* be recursed. > > > ___ > Lee > > > On 5/4/19 7:44 AM, Gianluigi wrote: > > I don't understand this in the wiki: "If FollowLink is TRUE, then > symbolic links on directories are recursed. Otherwise they are > > processed like normal files." > > This code with True or False prints symbolic links in the same way: > > > > Public Sub Main() > > > > Dim File As String > > > > For Each File In RDir("/path/of/directory", Null, 0, True) ' or False > > Print File > > Next > > > > End > > > > Who helps me to understand for a correct translation? > > > > 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 bagonergi at gmail.com Sun May 5 09:43:32 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sun, 5 May 2019 09:43:32 +0200 Subject: [Gambas-user] RDir and symbolic links In-Reply-To: References: <0fbe2907-ef67-0096-069b-0bf6504790bb@gmail.com> Message-ID: Hi Lee, the wiki is correct. My old brain didn't :-( Regards Gianluigi Il giorno dom 5 mag 2019 alle ore 09:35 Gianluigi ha scritto: > Hi Lee, > thank you very much. > Now I understand. > > Regards > Gianluigi > > Il giorno dom 5 mag 2019 alle ore 02:21 T Lee Davidson < > t.lee.davidson at gmail.com> ha scritto: > >> Symbolic links to regular files are treated the same way. Symbolic links >> to directories are treated differently. >> >> With FollowLink=False, a sym-linked directory will not be recursed. With >> FollowLink=True, a sym-linked directory *will* be recursed. >> >> >> ___ >> Lee >> >> >> On 5/4/19 7:44 AM, Gianluigi wrote: >> > I don't understand this in the wiki: "If FollowLink is TRUE, then >> symbolic links on directories are recursed. Otherwise they are >> > processed like normal files." >> > This code with True or False prints symbolic links in the same way: >> > >> > Public Sub Main() >> > >> > Dim File As String >> > >> > For Each File In RDir("/path/of/directory", Null, 0, True) ' or False >> > Print File >> > Next >> > >> > End >> > >> > Who helps me to understand for a correct translation? >> > >> > 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 kicking177 at gmail.com Sun May 5 15:26:38 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 5 May 2019 14:26:38 +0100 Subject: [Gambas-user] NCurses window height and width Message-ID: I have the following code << Private $hText as Window $hText = New Window(False, 0, 0, 120, 40) As "Text" >> I thought this means a window should be created top left and be 120 columns by 40 rows? But the window (even trying higher and lower numbers) is always 80 columns by 25 rows. This is using Xterm as the terminal in the gambas help options screen, on 3.13.0 on Debian 9.9 64bit with LXDE. K From taboege at gmail.com Sun May 5 15:59:03 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 5 May 2019 15:59:03 +0200 Subject: [Gambas-user] NCurses window height and width In-Reply-To: References: Message-ID: <20190505135903.GF30323@highrise.localdomain> On Sun, 05 May 2019, KKing wrote: > I have the following code > << > Private $hText as Window > $hText = New Window(False, 0, 0, 120, 40) As "Text" > >> > I thought this means a window should be created top left and be 120 columns > by 40 rows? > But the window (even trying higher and lower numbers) is always 80 columns > by 25 rows. > This is using Xterm as the terminal in the gambas help options screen, on > 3.13.0 on Debian 9.9 64bit with LXDE. > Can't reproduce. This script: #!/usr/bin/env gbs3 Use "gb.ncurses" Private $hText as Window Public Sub Main() $hText = New Window(False, 0, 0, 120, 40) As "Text" $hText.Background = Color.Green End works here in Konsole, xterm and urxvt. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Sun May 5 22:32:48 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 5 May 2019 21:32:48 +0100 Subject: [Gambas-user] NCurses window height and width Message-ID: <19c70ba6-1d71-ca06-d0d4-18e1ba753dc6@gmail.com> Okay, so presume it is related to default (system?) settings, at least while running under LXDE. If I open a terminal, it is already set at 80x24, if I copy paste your script and run script from terminal that is currently 80x24 it stays 80x24. If I expand the terminal window, the green area remains at 80x24. If I open LXTerminal and take option to resize to 132x43 and run script then the green background only covers the 120 x 40 area. When I run in Gambas I was expecting/hoping it opens the terminal to the size you requested .... obviously not, it is asking for a terminal to be opened which defaults to the system default and then is running the ncurses code into. As the final solution has no X this maybe irrelevant, but I've not had chance to test yet. K. From taboege at gmail.com Sun May 5 23:57:18 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 5 May 2019 23:57:18 +0200 Subject: [Gambas-user] NCurses window height and width In-Reply-To: <19c70ba6-1d71-ca06-d0d4-18e1ba753dc6@gmail.com> References: <19c70ba6-1d71-ca06-d0d4-18e1ba753dc6@gmail.com> Message-ID: <20190505215718.GG30323@highrise.localdomain> On Sun, 05 May 2019, KKing wrote: > Okay, so presume it is related to default (system?) settings, at least while > running under LXDE. > If I open a terminal, it is already set at 80x24, if I copy paste your > script and run script from terminal that is currently 80x24 it stays 80x24. > If I expand the terminal window, the green area remains at 80x24. > If I open LXTerminal and take option to resize to 132x43 and run script then > the green background only covers the 120 x 40 area. This is true. An ncurses window is an abstraction for a rectangular part of the terminal screen. If your terminal is small, your window can only be small. (Though I'm not sure if this is an arbitrary limit imposed by gb.ncurses' Window constructor or by ncurses itself.) > When I run in Gambas I was expecting/hoping it opens the terminal to the > size you requested .... obviously not, it is asking for a terminal to be > opened which defaults to the system default and then is running the ncurses > code into. > As the final solution has no X this maybe irrelevant, but I've not had > chance to test yet. > By the time you create the window, the terminal emulator is long started, put into an X window and initialised. ncurses "window" does not relate to X "window". In fact ncurses does not know about X. Better think about an ncurses Window as a DrawingArea for characters. Drawing inside it cannot make the containing window bigger. However, if your terminal is inside an X window and that window is resized, a special signal is sent to the process which gb.ncurses should be able to handle and update its idea of the current terminal size. You can react to this via the Screen_Resize event and try to enlarge your window if you have more space available now. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Mon May 6 14:53:22 2019 From: kicking177 at gmail.com (KKing) Date: Mon, 6 May 2019 13:53:22 +0100 Subject: [Gambas-user] NCurses window height and width Message-ID: <4d861d55-e23e-0cb6-9bab-ac5027b5b2e8@gmail.com> Hi Tobi, I'm probably missing something, haven't worked out how to code in the Screen_Resize event, i.e to catch the XTerm being resized. Alternatively what would be useful (for me) is in Gambas where you set what terminal you want to use that you could also add command line options for it. e.g.? xterm -geometry 100x50 I've found you can resize the xterm window by escape sequence commands, but you need set the "allowWindowOps" which is default to off in debian and you manually have to enable via Ctrl+RightMouse but I'd like not to have to go through those steps or pass the control sequence from actual gambas code as it will not be needed on final non X system. On a Non X system, the only issue is some other programs sometimes need the stty cols and rows set to 80 and 25 to behave. So may need be adjusting these before and after programs K From kicking177 at gmail.com Mon May 6 19:47:45 2019 From: kicking177 at gmail.com (KKing) Date: Mon, 6 May 2019 18:47:45 +0100 Subject: [Gambas-user] Compile and deploy just runtime and selected components Message-ID: <7f467782-6c70-e089-1d84-b80c1a7e77e5@gmail.com> So what options are there for getting a 3.13.0 runtime and handful of gb components onto another unit where don't have X, nor want the full dev environment? Is it a case of cherry picking from /usr/bin/ and /usr/lib/gambas3/ on a unit with a fresh compile and placing in appropriate place on new unit? Or is there more to it? K From cedron at exede.net Tue May 7 23:15:11 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 7 May 2019 17:15:11 -0400 (EDT) Subject: [Gambas-user] Proper Class Member Type Names Message-ID: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> >From the class member data in the info files, there is a type parameter with the following codes: : 1001 C 4616 M 1926 P 417 R 776 V 49 m 6217 p 3995 r 2079 v 609 The numbers are the counts of occurrences I found. I'd like to find or make a list of the correct names for each. Thanks Ced "There are a thousand and one events in Gambas ...." From taboege at gmail.com Tue May 7 23:34:32 2019 From: taboege at gmail.com (Tobias Boege) Date: Tue, 7 May 2019 23:34:32 +0200 Subject: [Gambas-user] Proper Class Member Type Names In-Reply-To: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> References: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> Message-ID: <20190507213432.GL30323@highrise.localdomain> On Tue, 07 May 2019, Cedron Dawg wrote: > From the class member data in the info files, there is a type parameter with the following codes: > > : 1001 > C 4616 > M 1926 > P 417 > R 776 > V 49 > m 6217 > p 3995 > r 2079 > v 609 > > The numbers are the counts of occurrences I found. I'd like to find or make a list of the correct names for each. > The bulk of these is found by reversing the C macros which generate the structs from which the .info files are generated (cf. gambas.h). That's not an obvious place to look at, but they do use the same letters: : | Event C | Const M | Static Sub (method) P | Static Property R | Static Property Read m | Sub (method) p | Property r | Property Read You'll also find "M!" for a Fast Sub and possibly # is used for Enums? I'm not sure if they are exported like that into .info files. What the C components can't explain are V and v which are almost surely V | Static variable v | Varible > "There are a thousand and one events in Gambas ...." Very good :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cedron at exede.net Wed May 8 00:06:56 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 7 May 2019 18:06:56 -0400 (EDT) Subject: [Gambas-user] Proper Class Member Type Names In-Reply-To: <20190507213432.GL30323@highrise.localdomain> References: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> <20190507213432.GL30323@highrise.localdomain> Message-ID: <1141205045.20411012.1557266816388.JavaMail.zimbra@exede.net> Thanks again, Tobi. I'll use that for the "wk_member_types" table. Unless I have a bug, those other codes aren't in the info files. Here is the database layout for the Wiki region of the DB I am working on (view with fixed pitch font): -- wk_components wk_creation_codes -- 1 0 -- | | -- M M -- wk_classes wk_member_types -- 1 0 -- | | -- M M -- wk_members This is what I got for the "wk_creation_codes" table: Same question for creation codes: 386 A 7 C 810 CA 57 CO 7 My guesses: A Array C Creatable CA Creatable and Array CO Creatable and Object Ced ----- Original Message ----- From: "Tobias Boege" To: "user" Sent: Tuesday, May 7, 2019 5:34:32 PM Subject: Re: [Gambas-user] Proper Class Member Type Names On Tue, 07 May 2019, Cedron Dawg wrote: > From the class member data in the info files, there is a type parameter with the following codes: > > : 1001 > C 4616 > M 1926 > P 417 > R 776 > V 49 > m 6217 > p 3995 > r 2079 > v 609 > > The numbers are the counts of occurrences I found. I'd like to find or make a list of the correct names for each. > The bulk of these is found by reversing the C macros which generate the structs from which the .info files are generated (cf. gambas.h). That's not an obvious place to look at, but they do use the same letters: : | Event C | Const M | Static Sub (method) P | Static Property R | Static Property Read m | Sub (method) p | Property r | Property Read You'll also find "M!" for a Fast Sub and possibly # is used for Enums? I'm not sure if they are exported like that into .info files. What the C components can't explain are V and v which are almost surely V | Static variable v | Varible > "There are a thousand and one events in Gambas ...." Very good :-) Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From taboege at gmail.com Wed May 8 00:40:05 2019 From: taboege at gmail.com (Tobias Boege) Date: Wed, 8 May 2019 00:40:05 +0200 Subject: [Gambas-user] Proper Class Member Type Names In-Reply-To: <1141205045.20411012.1557266816388.JavaMail.zimbra@exede.net> References: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> <20190507213432.GL30323@highrise.localdomain> <1141205045.20411012.1557266816388.JavaMail.zimbra@exede.net> Message-ID: <20190507224005.GM30323@highrise.localdomain> On Tue, 07 May 2019, Cedron Dawg wrote: > Same question for creation codes: > > 386 > A 7 > C 810 > CA 57 > CO 7 > > My guesses: > > A Array > C Creatable > CA Creatable and Array > CO Creatable and Object > Arrays aren't special in this regard. The A stands for "auto-creatable", which is the "Create Static" flag in the Gambas language. "CO" being a creatable object isn't plausible either with just seven occurrences. Apparently it mirrors the "Export Optional" flag, which I have _never_ encountered before. (Don't know when the last time was that I had "never encountered" something in Gambas before, but it still happens.) BTW, everything is creatable as long as it is not flagged "Create Private". So you see that all these flags directly correspond to class-level syntax elements in the Gambas language. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cedron at exede.net Wed May 8 02:20:53 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 7 May 2019 20:20:53 -0400 (EDT) Subject: [Gambas-user] Proper Class Member Type Names In-Reply-To: <20190507224005.GM30323@highrise.localdomain> References: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> <20190507213432.GL30323@highrise.localdomain> <1141205045.20411012.1557266816388.JavaMail.zimbra@exede.net> <20190507224005.GM30323@highrise.localdomain> Message-ID: <1910635024.20544819.1557274853626.JavaMail.zimbra@exede.net> Hey Tobi, You confused me a little bit with that explanation. Then what does a null mean? A Static (auto-creatable) C CA CO Export Optional Thanks, Ced FYI: ------------------------------ SELECT wk_components.name || '.' || class_name AS full_name FROM ( SELECT wk_classes.name AS class_name, wk_classes.wk_components_fk FROM wk_classes WHERE wk_classes.wk_creation_codes_fk = 'CO' ) AS T INNER JOIN wk_components ON wk_components.id = T.wk_components_fk ORDER BY full_name gb.report.Align gb.report.Arrange gb.report.Line gb.report2.Align gb.report2.Arrange gb.report2.Line gb.web.form.Color ----- Original Message ----- From: "Tobias Boege" To: "user" Sent: Tuesday, May 7, 2019 6:40:05 PM Subject: Re: [Gambas-user] Proper Class Member Type Names On Tue, 07 May 2019, Cedron Dawg wrote: > Same question for creation codes: > > 386 > A 7 > C 810 > CA 57 > CO 7 > > My guesses: > > A Array > C Creatable > CA Creatable and Array > CO Creatable and Object > Arrays aren't special in this regard. The A stands for "auto-creatable", which is the "Create Static" flag in the Gambas language. "CO" being a creatable object isn't plausible either with just seven occurrences. Apparently it mirrors the "Export Optional" flag, which I have _never_ encountered before. (Don't know when the last time was that I had "never encountered" something in Gambas before, but it still happens.) BTW, everything is creatable as long as it is not flagged "Create Private". So you see that all these flags directly correspond to class-level syntax elements in the Gambas language. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From taboege at gmail.com Wed May 8 21:42:27 2019 From: taboege at gmail.com (Tobias Boege) Date: Wed, 8 May 2019 21:42:27 +0200 Subject: [Gambas-user] Proper Class Member Type Names In-Reply-To: <1910635024.20544819.1557274853626.JavaMail.zimbra@exede.net> References: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> <20190507213432.GL30323@highrise.localdomain> <1141205045.20411012.1557266816388.JavaMail.zimbra@exede.net> <20190507224005.GM30323@highrise.localdomain> <1910635024.20544819.1557274853626.JavaMail.zimbra@exede.net> Message-ID: <20190508194227.GN30323@highrise.localdomain> On Tue, 07 May 2019, Cedron Dawg wrote: > Hey Tobi, > > You confused me a little bit with that explanation. Then what does a null mean? > The O alone stands for Export Optional, not CO as could have been understood from what I wrote. Concatenation of letters is OR of flags, and then the null string means: non-creatable, non-auto-creatable, not optionally exported. > > A Auto-creatable > C Creatable > CA Creatable + Auto-creatable > CO Creatable + Optionally exported > Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cedron at exede.net Wed May 8 21:48:33 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 8 May 2019 15:48:33 -0400 (EDT) Subject: [Gambas-user] Proper Class Member Type Names In-Reply-To: <20190508194227.GN30323@highrise.localdomain> References: <1006763006.20355575.1557263711030.JavaMail.zimbra@exede.net> <20190507213432.GL30323@highrise.localdomain> <1141205045.20411012.1557266816388.JavaMail.zimbra@exede.net> <20190507224005.GM30323@highrise.localdomain> <1910635024.20544819.1557274853626.JavaMail.zimbra@exede.net> <20190508194227.GN30323@highrise.localdomain> Message-ID: <660320023.21679015.1557344913508.JavaMail.zimbra@exede.net> Excellent. I will use these. Thanks. ----- Original Message ----- From: "Tobias Boege" To: "user" Sent: Wednesday, May 8, 2019 3:42:27 PM Subject: Re: [Gambas-user] Proper Class Member Type Names On Tue, 07 May 2019, Cedron Dawg wrote: > Hey Tobi, > > You confused me a little bit with that explanation. Then what does a null mean? > The O alone stands for Export Optional, not CO as could have been understood from what I wrote. Concatenation of letters is OR of flags, and then the null string means: non-creatable, non-auto-creatable, not optionally exported. > > A Auto-creatable > C Creatable > CA Creatable + Auto-creatable > CO Creatable + Optionally exported > Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From genbraga1 at gmail.com Wed May 8 23:15:31 2019 From: genbraga1 at gmail.com (gen braga) Date: Wed, 8 May 2019 18:15:31 -0300 Subject: [Gambas-user] Scientific notation Message-ID: Hello, Dim x As Float = 5 Print format(x, gb.scientific) outputs 5E+ (shouldnt it be 5E+0?). Besides that: Dim x As Float = 5E+ Print x returns syntax error on variable initialization. if I change it to 5E+0 it is obviously Ok. Bug? - Gen From g4mba5 at gmail.com Wed May 8 23:56:09 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 8 May 2019 23:56:09 +0200 Subject: [Gambas-user] Scientific notation In-Reply-To: References: Message-ID: <50a4d5f1-d021-62e8-2f71-f4d812d8f032@gmail.com> Le 08/05/2019 ? 23:15, gen braga a ?crit?: > Hello, > > Dim x As Float = 5 > Print format(x, gb.scientific) > > outputs 5E+ (shouldnt it be 5E+0?). Besides that: > > Dim x As Float = 5E+ > Print x > > returns syntax error on variable initialization. if I change it to > 5E+0 it is obviously Ok. > > Bug? > > - > Gen > Yes. -- Beno?t Minisini From g4mba5 at gmail.com Thu May 9 00:05:18 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 9 May 2019 00:05:18 +0200 Subject: [Gambas-user] Scientific notation In-Reply-To: <50a4d5f1-d021-62e8-2f71-f4d812d8f032@gmail.com> References: <50a4d5f1-d021-62e8-2f71-f4d812d8f032@gmail.com> Message-ID: <5aca49b3-cad6-3f57-c82b-570b1a80dd05@gmail.com> Le 08/05/2019 ? 23:56, Beno?t Minisini a ?crit?: > Le 08/05/2019 ? 23:15, gen braga a ?crit?: >> Hello, >> >> Dim x As Float = 5 >> Print format(x, gb.scientific) >> >> outputs 5E+ (shouldnt it be 5E+0?). Besides that: >> >> Dim x As Float = 5E+ >> Print x >> >> returns syntax error on variable initialization. if I? change it to >> 5E+0 it is obviously Ok. >> >> Bug? >> >> - >> Gen >> > Yes. > Fixed in commit https://gitlab.com/gambas/gambas/commit/19b83e535d693f7dad83c5f89781e1974f1f7526. Regards, -- Beno?t Minisini From gambas.fr at gmail.com Thu May 9 09:19:54 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 9 May 2019 09:19:54 +0200 Subject: [Gambas-user] BoxedString Message-ID: Why all boxed string functions are disabled ?? GB_DESC BoxedStringDesc[] = { GB_DECLARE_STATIC("_BoxedString"), GB_STATIC_PROPERTY_READ("Len", "i", BoxedString_Len), GB_STATIC_FAST_METHOD("_get", "s", BoxedString_get, "(Start)i[(Length)i]"), //GB_STATIC_FAST_METHOD("_get", "s", _String_get, "(Start)i[(Length)i]"), /*GB_STATIC_FAST_METHOD("Mid", "s", _String_Mid, "(String)s(Start)i[(Length)i]"), GB_STATIC_FAST_METHOD("Mid$", "s", _String_Mid, "(String)s(Start)i[(Length)i]"), GB_STATIC_FAST_METHOD("Left", "s", _String_Left, "(String)s[(Length)i]"), GB_STATIC_FAST_METHOD("Left$", "s", _String_Left, "(String)s[(Length)i]"), GB_STATIC_FAST_METHOD("Right", "s", _String_Right, "(String)s[(Length)i]"), GB_STATIC_FAST_METHOD("Right$", "s", _String_Right, "(String)s[(Length)i]"), GB_STATIC_METHOD("Upper", "s", String_Upper, "(String)s"), GB_STATIC_METHOD("Upper$", "s", String_Upper, "(String)s"), GB_STATIC_METHOD("UCase", "s", String_Upper, "(String)s"), GB_STATIC_METHOD("UCase$", "s", String_Upper, "(String)s"), GB_STATIC_METHOD("UCaseFirst", "s", String_UCaseFirst, "(String)s"), GB_STATIC_METHOD("UCaseFirst$", "s", String_UCaseFirst, "(String)s"), GB_STATIC_METHOD("Lower", "s", String_Lower, "(String)s"), GB_STATIC_METHOD("Lower$", "s", String_Lower, "(String)s"), GB_STATIC_METHOD("LCase", "s", String_Lower, "(String)s"), GB_STATIC_METHOD("LCase$", "s", String_Lower, "(String)s"), GB_STATIC_METHOD("InStr", "i", String_Instr, "(String)s(Pattern)s[(From)i(Mode)i]"), GB_STATIC_METHOD("RInStr", "i", String_RInstr, "(String)s(Pattern)s[(From)i(Mode)i]"), GB_STATIC_METHOD("Comp", "i", String_Comp, "(String)s(String2)s[(Mode)i]"), GB_STATIC_METHOD("Byte", "i", String_Pos, "(String)s(Index)i"), GB_STATIC_METHOD("Pos", "i", String_Pos, "(String)s(Index)i"), GB_STATIC_METHOD("Index", "i", String_Index, "(String)s(Byte)i"), GB_STATIC_METHOD("Chr", "s", String_Chr, "(Unicode)i"), GB_STATIC_METHOD("Chr$", "s", String_Chr, "(Unicode)i"), GB_STATIC_METHOD("Code", "i", String_Code, "(String)s[(Index)i]"), GB_STATIC_METHOD("IsValid", "b", String_IsValid, "(String)s"),*/ GB_END_DECLARE }; -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Thu May 9 23:45:41 2019 From: cedron at exede.net (Cedron Dawg) Date: Thu, 9 May 2019 17:45:41 -0400 (EDT) Subject: [Gambas-user] Software Farm Categories and Tags Message-ID: <456704852.23372763.1557438341266.JavaMail.zimbra@exede.net> Hello all, So, I am working on an automatically generated metadata repository for Gambas programs. Things are progressing fairly well. I have the Wiki portion of the database established and populated. I will likely rename it the "info" region since the source of the data is in the "info" files from /usr/share/Gambas3/info. Now, I am starting on the other side, the project definitions region. My original plan was to merely scan the Gambas Software Farm, but since I've realized that the same code will also work on my Gambas source trees (yes, plural), and anybody else's as well. For each project, I want to know a category and a list of reference tags. This models the Gambas Software Farm. So, I went looking for documentation. This wiki page was found, but it is incomplete and does not appear to be linked in from the current pages: "Gambas Farm Server Protocol" http://gambaswiki.org/wiki/doc/farmproto Not having an luck in my searches, I posted this request on Gambas.One: "Where is the Software Farm documentation?" https://forum.gambas.one/viewtopic.php?f=4&t=699 Thanks to Matthew-Collins, I got valuable information on how to download stuff from the Farm. I still have questions though: 1) Where is the official list of Categories ("Accessories", "Audio", etc.) kept? 2) How and when is it updated? 3) How do you assign a category to a project? (I have not been through the publishing process yet.) 4) How can I get a list of the currently used tags? What I would like to see is a convention for encoding the category and tags in the Project Description. Better yet, would be for the project info expanded to include these as fields. Finally, 5) Am I reinventing a wheel that already exists? Thanks, Ced From antonio.j.teixeira at gmail.com Fri May 10 16:43:40 2019 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Fri, 10 May 2019 15:43:40 +0100 Subject: [Gambas-user] Gambas 3.123 crashs Message-ID: Hi everyone, I just upgraded to gambas 3.13 but I think it was not a good idea. I am stucked because when trying to start the ide I am getting this message : ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance Segmentation fault (core dumped) I have Ububtu 16.04 64 bits What information more is nedded to get some help? Thanks in advance. regards Ant?nio Teixeira -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Fri May 10 16:11:46 2019 From: charlie at cogier.com (Charlie Ogier) Date: Fri, 10 May 2019 15:11:46 +0100 Subject: [Gambas-user] Possible bug in gb.gui Message-ID: <326bec40-6c80-d9c9-f03a-7f9925c56696@cogier.com> Hi, The 'Clipboard.HasChanged' command does not work in gb.gui but works OK with gb.gui.qt. Example code is available here. https://www.gambas-club.de/viewtopic.php?f=3&t=5615&p=13428#p13428 Regards, Charlie [System] Gambas=3.13 Operating System=Linux Kernel=4.15.0-48-generic Architecture=x86_64 Distribution=Linux Mint 19.1 Tessa Desktop=CINNAMON Theme=Qt5CTProxy Language=en_GB.UTF-8 Memory=7848M [Libraries] Cairo=libcairo.so.2.11510.0 Curl=libcurl.so.4.5.0 DBus=libdbus-1.so.3.19.4 GStreamer=libgstreamer-1.0.so.0.1401.0 GTK+2=libgtk-x11-2.0.so.0.2400.32 GTK+3=libgtk-3.so.0.2200.30 OpenGL=libGL.so.1.0.0 Poppler=libpoppler.so.73.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.9.5 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CINNAMON_VERSION=4.0.10 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DERBY_HOME=/usr/lib/jvm/java-8-oracle/db DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt5 GDMSESSION=cinnamon GDM_LANG=en_GB GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= J2REDIR=/usr/lib/jvm/java-8-oracle/jre J2SDKDIR=/usr/lib/jvm/java-8-oracle JAVA_HOME=/usr/lib/jvm/java-8-oracle LANG=en_GB.UTF-8 LANGUAGE=en_GB.UTF-8 LC_ADDRESS=en_GB.UTF-8 LC_IDENTIFICATION=en_GB.UTF-8 LC_MEASUREMENT=en_GB.UTF-8 LC_MONETARY=en_GB.UTF-8 LC_NAME=en_GB.UTF-8 LC_NUMERIC=en_GB.UTF-8 LC_PAPER=en_GB.UTF-8 LC_TELEPHONE=en_GB.UTF-8 LC_TIME=en_GB.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path PAPERSIZE=a4 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin PWD= QT_ACCESSIBILITY=1 QT_QPA_PLATFORMTHEME=qt5ct SESSION_MANAGER=local/:@/tmp/.ICE-unix/1798,unix/:/tmp/.ICE-unix/1798 SHELL=/bin/bash SHLVL=0 SSH_AGENT_PID=1866 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh S_COLORS=auto TZ=:/etc/localtime USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg XDG_CURRENT_DESKTOP=X-Cinnamon XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 From bagonergi at gmail.com Fri May 10 18:01:41 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 10 May 2019 18:01:41 +0200 Subject: [Gambas-user] Gambas 3.123 crashs In-Reply-To: References: Message-ID: I tried on a VBox installing stable from PPA. No problem. Here my system informations: [System] Gambas=3.13 OperatingSystem=Linux Kernel=4.15.0-48-generic Architecture=x86_64 Distribution=Ubuntu 16.04.6 LTS Desktop=UNITY Theme=Gtk Language=it_IT.UTF-8 Memory=3945M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 Regards Gianluigi Il giorno ven 10 mag 2019 alle ore 16:44 Antonio Teixeira < antonio.j.teixeira at gmail.com> ha scritto: > Hi everyone, > > I just upgraded to gambas 3.13 but I think it was not a good idea. > I am stucked because when trying to start the ide I am getting this > message : > > ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance > Segmentation fault (core dumped) > > I have Ububtu 16.04 64 bits > What information more is nedded to get some help? > > > Thanks in advance. > > regards > > Ant?nio Teixeira > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Fri May 10 18:23:45 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 10 May 2019 12:23:45 -0400 (EDT) Subject: [Gambas-user] Software Farm Categories and Tags In-Reply-To: <456704852.23372763.1557438341266.JavaMail.zimbra@exede.net> References: <456704852.23372763.1557438341266.JavaMail.zimbra@exede.net> Message-ID: <619588952.24239363.1557505425420.JavaMail.zimbra@exede.net> Okay, so I was a little confused. The tags are the categories and projects can be in more than one category, right? What a recipe for a mess. I believe a finer level of categorization is needed, so I am introducing "subtags" to my database. --=|The Database Diagram.|=-- -- -- pd_vendors pd_roots -- 1 1 -- | | -- M M -- pd_tags pd_projects -- 1 1 1 1 1 -- | +----------+ | | | -- M M M | M -- pd_subtags pd_project_tags | pd_files -- 1 | 1 -- +-------+ | | -- M M M -- pd_project_subtags pd_lines -- The tags and subtags for a project will be defined in the Project description field like this: #tagname1 ##subtag1A ##subtag1B #tagname2 etc. Or on one line: #tagname1 ##subtag1A ##subtag1B #tagname2 Any non-name characters will serve as delimiters. Subtags will be assigned to the last tag it followed. Tagging and subtagging are optional. Example: I have a program which will read a database diagram like the one above and it will generate a SQL script to fill a blank database with all the tables, fields, and indexes required to implement the relationships and a few other default fields. It is quite easy then to edit the script to add the data fields to the table, run the script, and have the database ready for use. Here are my tags/subtags in its description field. #Development ##CodeGenerator ##DatabaseTool From g4mba5 at gmail.com Fri May 10 19:34:12 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 10 May 2019 19:34:12 +0200 Subject: [Gambas-user] Software Farm Categories and Tags In-Reply-To: <619588952.24239363.1557505425420.JavaMail.zimbra@exede.net> References: <456704852.23372763.1557438341266.JavaMail.zimbra@exede.net> <619588952.24239363.1557505425420.JavaMail.zimbra@exede.net> Message-ID: <7b400219-c64b-8d5d-8a5e-686655dc56ee@gmail.com> Le 10/05/2019 ? 18:23, Cedron Dawg a ?crit?: > Okay, so I was a little confused. The tags are the categories and projects can be in more than one category, right? > > What a recipe for a mess. > > I believe a finer level of categorization is needed, so I am introducing "subtags" to my database. > There is no subtags. Tag are just tags, categories are tags. Consequently, a project can be in multiple categories, even in none. I don't exactly understand want you want to achieve (I didn't have the time to read everything carefully), but if you want to replace the Gambas farm, I strongly suggest making a command-line tool with no GUI, so that the GUI can be developed on top. Don't make the same mistake than me. Regards, -- Beno?t Minisini From cedron at exede.net Fri May 10 20:10:18 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 10 May 2019 14:10:18 -0400 (EDT) Subject: [Gambas-user] Software Farm Categories and Tags In-Reply-To: <7b400219-c64b-8d5d-8a5e-686655dc56ee@gmail.com> References: <456704852.23372763.1557438341266.JavaMail.zimbra@exede.net> <619588952.24239363.1557505425420.JavaMail.zimbra@exede.net> <7b400219-c64b-8d5d-8a5e-686655dc56ee@gmail.com> Message-ID: <158778891.24345776.1557511818384.JavaMail.zimbra@exede.net> Hi Benoit, No, I'm not trying to replace the Farm, I'm trying to make it conveniently searchable. Thus, I'm building a database for which a Gambas App can be written against for your desktop, and a web application can be developed for net access. It'll also work for my projects, your projects, or anybody else's for that matter, not just Farm projects. The subtags I just made up to achieve a finer degree of categorization. This was motivated by my desire to be able to find good sample code for various components. So, imagine this scenario: Go to the Web app main menu. Click on "Component List". This takes you to a list of components. Click on a component name. This takes you to a Components detail page. On that page is a list of all the projects that use that component, each with a check box. Click the check boxes for the projects you want to see, then press the [List Examples] button. This takes you to a page in which there is a section for each project you selected. In each section there will be code snippets from that project in the neighborhood of each of the component's usage. Click on a line next to the snippet and it will take you to a listing of the file. If that is not sufficient, you now have the name of the project you can download to see the usage in full context. Repeat the above scenario for each tag or subtag. Of course, much more sophisticated searches can also be made: "Show me all projects using components A,B, and C, with tags X,Y, or Z". Yeah, I'll be parsing the source code for usages. I will also be assuming a "_" line continuation character and a ":" statement separator character. Currently each step in the process is launched by a button on my cradle form, but ultimately the scan and load processes will be command line driven. Ced ----- Original Message ----- From: "Beno?t Minisini" To: "user" Sent: Friday, May 10, 2019 1:34:12 PM Subject: Re: [Gambas-user] Software Farm Categories and Tags Le 10/05/2019 ? 18:23, Cedron Dawg a ?crit?: > Okay, so I was a little confused. The tags are the categories and projects can be in more than one category, right? > > What a recipe for a mess. > > I believe a finer level of categorization is needed, so I am introducing "subtags" to my database. > There is no subtags. Tag are just tags, categories are tags. Consequently, a project can be in multiple categories, even in none. I don't exactly understand want you want to achieve (I didn't have the time to read everything carefully), but if you want to replace the Gambas farm, I strongly suggest making a command-line tool with no GUI, so that the GUI can be developed on top. Don't make the same mistake than me. Regards, -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From jussi.lahtinen at gmail.com Fri May 10 21:10:12 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 10 May 2019 22:10:12 +0300 Subject: [Gambas-user] Gambas 3.123 crashs In-Reply-To: References: Message-ID: Did you compile it yourself or did you install from PPA? Jussi On Fri, May 10, 2019 at 5:44 PM Antonio Teixeira < antonio.j.teixeira at gmail.com> wrote: > Hi everyone, > > I just upgraded to gambas 3.13 but I think it was not a good idea. > I am stucked because when trying to start the ide I am getting this > message : > > ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance > Segmentation fault (core dumped) > > I have Ububtu 16.04 64 bits > What information more is nedded to get some help? > > > Thanks in advance. > > regards > > Ant?nio Teixeira > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Fri May 10 22:38:10 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 10 May 2019 16:38:10 -0400 (EDT) Subject: [Gambas-user] Software Farm Categories and Tags In-Reply-To: <158778891.24345776.1557511818384.JavaMail.zimbra@exede.net> References: <456704852.23372763.1557438341266.JavaMail.zimbra@exede.net> <619588952.24239363.1557505425420.JavaMail.zimbra@exede.net> <7b400219-c64b-8d5d-8a5e-686655dc56ee@gmail.com> <158778891.24345776.1557511818384.JavaMail.zimbra@exede.net> Message-ID: <710003362.24595823.1557520690054.JavaMail.zimbra@exede.net> A "Tags" field in the project properties would still be nice to have. I changed my mind on the Tag/Subtag specification. # for a tag ^ for a subtag Can I get an amen? From adamnt42 at gmail.com Sat May 11 12:19:12 2019 From: adamnt42 at gmail.com (Bruce) Date: Sat, 11 May 2019 19:49:12 +0930 Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit In-Reply-To: <569859280.11789889.1556720584245.JavaMail.zimbra@exede.net> References: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> <1461251784.11781460.1556720251203.JavaMail.zimbra@exede.net> <569859280.11789889.1556720584245.JavaMail.zimbra@exede.net> Message-ID: <3d12d9b3-6982-a8ce-01db-86f1c58ae26d@gmail.com> Yes, that was how I worked around it initially. But it is a bit of an impost on the user, I (and they) just want to see it zoomed to fit. I'm grasping at straws here, it wont ZTF (zoom to fit) if the image is slightly larger than the control or it's to do with the OS/Desktop/GUI/gardengnome that manages images? We used to use PictureBoxes but they are such a clunky control. I thought, through recent updates, that ImageViews were a much nicer control to work with. I don't think I use .Show anywhere, we just load it and hope we can set the active zoom via ZoomFit(). Horribly, but not very often, it works. Bugger, damn, etc b On 1/5/19 11:53 pm, Cedron Dawg wrote: > Adding a button with the following code also worked properly: > > Public Sub Button1_Click() > > ImageView1.Image = Image.Load("~/Pictures/Wallpaper1920/Squirrel1920.JPG") > ImageView1.ZoomFit(0) > > End > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From cedron at exede.net Sat May 11 15:27:40 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 11 May 2019 09:27:40 -0400 (EDT) Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit In-Reply-To: <3d12d9b3-6982-a8ce-01db-86f1c58ae26d@gmail.com> References: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> <1461251784.11781460.1556720251203.JavaMail.zimbra@exede.net> <569859280.11789889.1556720584245.JavaMail.zimbra@exede.net> <3d12d9b3-6982-a8ce-01db-86f1c58ae26d@gmail.com> Message-ID: <1650877566.25367159.1557581260307.JavaMail.zimbra@exede.net> I'm not that familiar with the internals, so if I misstate something, somebody please correct me. Your requirements are: 1) Load an image file 2) It will resize to fit as user adjusts form In order to pull that off, the original image has to be stored somewhere in memory, and then any time a new size is needed, the original image needs to be zoomed (stretched retaining aspect ration) to fit on the larger dimension. You can't keep resizing the same image. My understanding is that a PictureBox is the least clunky way to display an image on a form. The whole point of an ImageView (I thought) was to provide scroll bars when an image is too large to fit the window area. This code works. Whether it is the best way, I don't know. Ced ' Gambas class file Private mySourceImage As Image Private myDisplayImage As Image Private myAspectRatio As Float '============================================================================= Public Sub Form_Open() mySourceImage = Image.Load("~/Pictures/Wallpaper1920/Squirrel1920.JPG") myAspectRatio = mySourceImage.W / mySourceImage.H End '============================================================================= Public Sub Form_Resize() Dim theZoomW, w, h, mw, mh As Integer Dim theDisplayH, theDisplayW As Integer theDisplayW = Me.W - 20 theDisplayH = Me.H - 20 theZoomW = theDisplayH * myAspectRatio mw = theDisplayW - theZoomW If mw >= 0 Then mh = 0 w = theZoomW h = theDisplayH Else mw = 0 w = theDisplayW h = theDisplayW / myAspectRatio mh = theDisplayH - h Endif myDisplayImage = mySourceImage.Stretch(w, h) DisplayPictureBox.Move(10 + mw / 2, 10 + mh / 2, w, h) DisplayPictureBox.Image = myDisplayImage End '============================================================================= ----- Original Message ----- From: "adamnt42" To: "user" Sent: Saturday, May 11, 2019 6:19:12 AM Subject: Re: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit Yes, that was how I worked around it initially. But it is a bit of an impost on the user, I (and they) just want to see it zoomed to fit. I'm grasping at straws here, it wont ZTF (zoom to fit) if the image is slightly larger than the control or it's to do with the OS/Desktop/GUI/gardengnome that manages images? We used to use PictureBoxes but they are such a clunky control. I thought, through recent updates, that ImageViews were a much nicer control to work with. I don't think I use .Show anywhere, we just load it and hope we can set the active zoom via ZoomFit(). Horribly, but not very often, it works. Bugger, damn, etc b From cedron at exede.net Sat May 11 15:57:31 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 11 May 2019 09:57:31 -0400 (EDT) Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit In-Reply-To: <1650877566.25367159.1557581260307.JavaMail.zimbra@exede.net> References: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> <1461251784.11781460.1556720251203.JavaMail.zimbra@exede.net> <569859280.11789889.1556720584245.JavaMail.zimbra@exede.net> <3d12d9b3-6982-a8ce-01db-86f1c58ae26d@gmail.com> <1650877566.25367159.1557581260307.JavaMail.zimbra@exede.net> Message-ID: <361949969.25400655.1557583051351.JavaMail.zimbra@exede.net> I added this line to the end of the Resize event: Me.Caption = Str(w) & " x " & Str(h) And I added this routine: '============================================================================= Public Sub DisplayPictureBox_MouseDown() myDisplayImage.Save("Squirrel" & Str(myDisplayImage.W) & ".jpg") End '============================================================================= Just so I could attach a pic that wasn't too big. (Now 18K, was 353K) Oh, squirrel! Gotta run.... Ced -------------- next part -------------- A non-text attachment was scrubbed... Name: Squirrel320.jpg Type: image/jpeg Size: 17670 bytes Desc: not available URL: From rwe-sse at osnanet.de Mon May 13 09:11:12 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 09:11:12 +0200 Subject: [Gambas-user] Missing TableView documentation Message-ID: <0aed111a-e8b8-de1f-349a-e92fa2435a52@osnanet.de> Just tried to find TableView documentation on the website, but found nothing. If searching directly in the help (F1), nothing as well. When I insert a TabelView and type something like TableView1. in the editor, there are help texts available, so it is there. Was it just forgotten to be inserted in the index? Regards Rolf From adamnt42 at gmail.com Mon May 13 09:30:42 2019 From: adamnt42 at gmail.com (Bruce) Date: Mon, 13 May 2019 17:00:42 +0930 Subject: [Gambas-user] Missing TableView documentation In-Reply-To: <0aed111a-e8b8-de1f-349a-e92fa2435a52@osnanet.de> References: <0aed111a-e8b8-de1f-349a-e92fa2435a52@osnanet.de> Message-ID: comp>gb.form>tableview Works for me on the wiki and locally. b On 13/5/19 4:41 pm, Rolf-Werner Eilert wrote: > Just tried to find TableView documentation on the website, but found > nothing. If searching directly in the help (F1), nothing as well. > > When I insert a TabelView and type something like TableView1. in the > editor, there are help texts available, so it is there. > > Was it just forgotten to be inserted in the index? > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From rwe-sse at osnanet.de Mon May 13 10:10:31 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 10:10:31 +0200 Subject: [Gambas-user] Missing TableView documentation In-Reply-To: References: <0aed111a-e8b8-de1f-349a-e92fa2435a52@osnanet.de> Message-ID: Ah ok, Bruce, I hadn't expected it to be there... Hm, some sort of search field, maybe even an intelligent one, might be an interesting addition to the website. Regards Rolf Am 13.05.19 um 09:30 schrieb Bruce: > comp>gb.form>tableview > Works for me on the wiki and locally. > b > > On 13/5/19 4:41 pm, Rolf-Werner Eilert wrote: >> Just tried to find TableView documentation on the website, but found >> nothing. If searching directly in the help (F1), nothing as well. >> >> When I insert a TabelView and type something like TableView1. in the >> editor, there are help texts available, so it is there. >> >> Was it just forgotten to be inserted in the index? >> >> Regards >> Rolf >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From antonio.j.teixeira at gmail.com Mon May 13 11:23:47 2019 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Mon, 13 May 2019 10:23:47 +0100 Subject: [Gambas-user] Gambas 3.123 crashs In-Reply-To: References: Message-ID: Hi Jussi, I installed from the PPA. Regards Ant?nio Teixeira escreveu no dia s?bado, 11/05/2019 ?(s) 11:15: > Send User mailing list submissions to > user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of User digest..." > > > Today's Topics: > > 1. Re: Gambas 3.123 crashs (Jussi Lahtinen) > 2. Re: Software Farm Categories and Tags (Cedron Dawg) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 10 May 2019 22:10:12 +0300 > From: Jussi Lahtinen > To: Gambas Mailing List > Subject: Re: [Gambas-user] Gambas 3.123 crashs > Message-ID: > 8g at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Did you compile it yourself or did you install from PPA? > > > Jussi > > On Fri, May 10, 2019 at 5:44 PM Antonio Teixeira < > antonio.j.teixeira at gmail.com> wrote: > > > Hi everyone, > > > > I just upgraded to gambas 3.13 but I think it was not a good idea. > > I am stucked because when trying to start the ide I am getting this > > message : > > > > ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance > > Segmentation fault (core dumped) > > > > I have Ububtu 16.04 64 bits > > What information more is nedded to get some help? > > > > > > Thanks in advance. > > > > regards > > > > Ant?nio Teixeira > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20190510/a38b3349/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Fri, 10 May 2019 16:38:10 -0400 (EDT) > From: Cedron Dawg > To: user > Subject: Re: [Gambas-user] Software Farm Categories and Tags > Message-ID: > <710003362.24595823.1557520690054.JavaMail.zimbra at exede.net> > Content-Type: text/plain; charset=utf-8 > > A "Tags" field in the project properties would still be nice to have. > > I changed my mind on the Tag/Subtag specification. > > # for a tag > > ^ for a subtag > > Can I get an amen? > > > > ------------------------------ > > Subject: Digest Footer > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ------------------------------ > > End of User Digest, Vol 20, Issue 15 > ************************************ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon May 13 11:35:35 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 May 2019 11:35:35 +0200 Subject: [Gambas-user] Missing TableView documentation In-Reply-To: References: <0aed111a-e8b8-de1f-349a-e92fa2435a52@osnanet.de> Message-ID: You can subscribe to the bugtraker, so you will have the possibility of searching on the wiki. See attached image. Warning: Initially it is better to limit yourself to only research ;-D Regards Gianluigi Il giorno lun 13 mag 2019 alle ore 10:11 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Ah ok, Bruce, I hadn't expected it to be there... > > Hm, some sort of search field, maybe even an intelligent one, might be > an interesting addition to the website. > > Regards > Rolf > > > Am 13.05.19 um 09:30 schrieb Bruce: > > comp>gb.form>tableview > > Works for me on the wiki and locally. > > b > > > > On 13/5/19 4:41 pm, Rolf-Werner Eilert wrote: > >> Just tried to find TableView documentation on the website, but found > >> nothing. If searching directly in the help (F1), nothing as well. > >> > >> When I insert a TabelView and type something like TableView1. in the > >> editor, there are help texts available, so it is there. > >> > >> Was it just forgotten to be inserted in the index? > >> > >> Regards > >> Rolf > >> > >> ----[ 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: wiki-research.png Type: image/png Size: 9382 bytes Desc: not available URL: From adamnt42 at gmail.com Mon May 13 12:04:37 2019 From: adamnt42 at gmail.com (Bruce) Date: Mon, 13 May 2019 19:34:37 +0930 Subject: [Gambas-user] Missing TableView documentation In-Reply-To: References: <0aed111a-e8b8-de1f-349a-e92fa2435a52@osnanet.de> Message-ID: You're not wrong, Narelle! (Excuse aussie slang). Many times I am lost trying to remember the component that has a particular class (control for instance) in it. I have an app that lets me browse all the native and local classes that are controls, i.e. inherit from control, userControl, container, userContainer etc (that etc is gunna getya!) At least that way I can find which component has a particular control. But I dont have one for any class in any component or library. Maybe one day when I'm not busy (haha) I may get to it. By way of explanation, not only the native gambas we have more than dozens of custom components and local libraries on our local dev machine. Some go back more than (some more than I'd like to recall) years. Some times you'll see messages from me with "I'm sure I have done this before?" in it. Here's a perfect example. We very commonly have a situation where we have a gridview containing date based data. The normally displayed data may be "today's", "this weeks", "last weeks" etc etc etc. Now I am sure that somewhere in the last century I wrote a control that provided a filter "clause" for the data in the grid. I am damn sure that I did. However, the three of us are currently writing filter panels for a couple of dozen programs that analyze date based data. I wish I could find that component/class/project! So for our stuff and the native stuff, it's getting difficult to find the "thing". :-) Could be worse! Consider the poor python folks, how many libraries do they have to know off by heart! b On 13/5/19 5:40 pm, Rolf-Werner Eilert wrote: > Ah ok, Bruce, I hadn't expected it to be there... > > Hm, some sort of search field, maybe even an intelligent one, might be > an interesting addition to the website. > > Regards > Rolf > > > Am 13.05.19 um 09:30 schrieb Bruce: >> comp>gb.form>tableview >> Works for me on the wiki and locally. >> b >> >> On 13/5/19 4:41 pm, Rolf-Werner Eilert wrote: >>> Just tried to find TableView documentation on the website, but found >>> nothing. If searching directly in the help (F1), nothing as well. >>> >>> When I insert a TabelView and type something like TableView1. in the >>> editor, there are help texts available, so it is there. >>> >>> Was it just forgotten to be inserted in the index? >>> >>> Regards >>> Rolf >>> >>> ----[ 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 ]---- From rwe-sse at osnanet.de Mon May 13 12:14:55 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 12:14:55 +0200 Subject: [Gambas-user] TableView and Tab key Message-ID: Now I tried around a bit with the editing function in TableView. With NoKeyboard I can switch the Arrow keys on and off, and Return seems to run as one would expect. But when I press Tab, the cursor jumps into nowhere, the cell contents disappears, and when I click back on the cell there is a short glimpse of the selected contents which again disappears after half a second. Pressing Return will save the text and make it reappear. So handling the Tab key(s) would be necessary. Or is it only me who is used to applying the Tab key in a table? It should have the same effect as Return, but stopping at the end of the line (in LibreOffice, Word etc. it will not stop and even produce a new line, if that is wished). Regards Rolf From bagonergi at gmail.com Mon May 13 12:32:57 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 May 2019 12:32:57 +0200 Subject: [Gambas-user] TableView and Tab key In-Reply-To: References: Message-ID: Il giorno lun 13 mag 2019 alle ore 12:18 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Now I tried around a bit with the editing function in TableView. > > With NoKeyboard I can switch the Arrow keys on and off, and Return seems > to run as one would expect. > > But when I press Tab, the cursor jumps into nowhere, the cell contents > disappears, and when I click back on the cell there is a short glimpse > of the selected contents which again disappears after half a second. > Pressing Return will save the text and make it reappear. > > So handling the Tab key(s) would be necessary. Or is it only me who is > used to applying the Tab key in a table? It should have the same effect > as Return, but stopping at the end of the line (in LibreOffice, Word > etc. it will not stop and even produce a new line, if that is wished). > > Regards > Rolf > > In Gambas you use Return, Tab is used to switch from one control to another control. If you want to use Tab you can take a look at this Italian discussion [0]. Regards Gianluigi [0] http://www.gambas-it.org/smf/index.php?topic=4921.msg39157#msg39157 -------------- next part -------------- An HTML attachment was scrubbed... URL: From adamnt42 at gmail.com Mon May 13 12:33:28 2019 From: adamnt42 at gmail.com (Bruce) Date: Mon, 13 May 2019 20:03:28 +0930 Subject: [Gambas-user] TableView and Tab key In-Reply-To: References: Message-ID: <671f6579-42de-612e-2275-956785dd88d2@gmail.com> Too hard! I eschew tableview for some reasons. That is one of them. IIRC there is something funny about pressing return at the end of a tableview? Best of luck. (We use a standard approach in this type of instance. Select a row in a gridview and if your user is allowed to edit it, then it shows an editor in a panel below the grid. IOW the grid is just a "selector" and say double clicking the row or any column or right clicking on a cell brings up a menu. Much easier to control and the user can "SEE" the intent of their actions. Here's an example from our own "bugtracker" b On 13/5/19 7:44 pm, Rolf-Werner Eilert wrote: > Now I tried around a bit with the editing function in TableView. > > With NoKeyboard I can switch the Arrow keys on and off, and Return seems > to run as one would expect. > > But when I press Tab, the cursor jumps into nowhere, the cell contents > disappears, and when I click back on the cell there is a short glimpse > of the selected contents which again disappears after half a second. > Pressing Return will save the text and make it reappear. > > So handling the Tab key(s) would be necessary. Or is it only me who is > used to applying the Tab key in a table? It should have the same effect > as Return, but stopping at the end of the line (in LibreOffice, Word > etc. it will not stop and even produce a new line, if that is wished). > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- A non-text attachment was scrubbed... Name: bug.png Type: image/png Size: 96748 bytes Desc: not available URL: From rwe-sse at osnanet.de Mon May 13 12:38:21 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 12:38:21 +0200 Subject: [Gambas-user] Missing TableView documentation In-Reply-To: References: <0aed111a-e8b8-de1f-349a-e92fa2435a52@osnanet.de> Message-ID: <147d6e43-5844-0da0-dacf-57da2d26cd48@osnanet.de> Am 13.05.19 um 12:04 schrieb Bruce: > You're not wrong, Narelle! (Excuse aussie slang). Many times I am lost What does it mean? :) No, I don't mind, sounds just interesting... > trying to remember the component that has a particular class (control > for instance) in it. Yes, I thought of something like the completion in the editor. You begin to type, and it collects everything which matches the keyword. So typing Tab would let appear everything with that beginning, but continuing Table would confine the search to Table... The list should be short enought to keep data transfer small, but detailled enough to pick the necessary information from it. Regards Rolf From rwe-sse at osnanet.de Mon May 13 12:48:41 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 12:48:41 +0200 Subject: [Gambas-user] TableView and Tab key In-Reply-To: <671f6579-42de-612e-2275-956785dd88d2@gmail.com> References: <671f6579-42de-612e-2275-956785dd88d2@gmail.com> Message-ID: <63c25159-b9a3-8786-b5d9-167213bc3c86@osnanet.de> Hi Bruce, > IIRC there is something funny about pressing return at the end of > tableview? Haven't checked that by now... > Best of luck. Thanks! > > (We use a standard approach in this type of instance. Select a row in a > gridview and if your user is allowed to edit it, then it shows an editor > in a panel below the grid. IOW the grid is just a "selector" and say > double clicking the row or any column or right clicking on a cell brings > up a menu. Much easier to control and the user can "SEE" the intent of > their actions. Up to now, very similar to the way I handle it, but it depends on the program. For one of them, I introduced my own editing procedure using a TextBox appearing over the cell, but mostly I use an extra button or key to lead the user into a separate editing place. Double clicking is much more what I would expect, a single click should only select the row for instance. On the other hand, in a word processor like Writer I would expect the behaviour of TableView. But just blocking the Tab key would be a shame, some people (like me) are very much used to it. Rolf > > On 13/5/19 7:44 pm, Rolf-Werner Eilert wrote: >> Now I tried around a bit with the editing function in TableView. >> >> With NoKeyboard I can switch the Arrow keys on and off, and Return >> seems to run as one would expect. >> >> But when I press Tab, the cursor jumps into nowhere, the cell contents >> disappears, and when I click back on the cell there is a short glimpse >> of the selected contents which again disappears after half a second. >> Pressing Return will save the text and make it reappear. >> >> So handling the Tab key(s) would be necessary. Or is it only me who is >> used to applying the Tab key in a table? It should have the same >> effect as Return, but stopping at the end of the line (in LibreOffice, >> Word etc. it will not stop and even produce a new line, if that is >> wished). >> >> Regards >> Rolf >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From rwe-sse at osnanet.de Mon May 13 12:49:49 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 12:49:49 +0200 Subject: [Gambas-user] TableView and Tab key In-Reply-To: References: Message-ID: Am 13.05.19 um 12:32 schrieb Gianluigi: > > > Il giorno lun 13 mag 2019 alle ore 12:18 Rolf-Werner Eilert > > ha scritto: > > Now I tried around a bit with the editing function in TableView. > > With NoKeyboard I can switch the Arrow keys on and off, and Return > seems > to run as one would expect. > > But when I press Tab, the cursor jumps into nowhere, the cell contents > disappears, and when I click back on the cell there is a short glimpse > of the selected contents which again disappears after half a second. > Pressing Return will save the text and make it reappear. > > So handling the Tab key(s) would be necessary. Or is it only me who is > used to applying the Tab key in a table? It should have the same effect > as Return, but stopping at the end of the line (in LibreOffice, Word > etc. it will not stop and even produce a new line, if that is wished). > > Regards > Rolf > > > In Gambas you use Return, Tab is used to switch from one control to > another control. > If you want to use Tab you can take a look at this Italian discussion [0]. > > Regards > Gianluigi > > [0] http://www.gambas-it.org/smf/index.php?topic=4921.msg39157#msg39157 > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Thank you Gianluigi, that is a good idea - although I would try to use the Tab key in some way, not just block it. Rolf From bagonergi at gmail.com Mon May 13 13:57:40 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 May 2019 13:57:40 +0200 Subject: [Gambas-user] TableView and Tab key In-Reply-To: References: Message-ID: Il giorno lun 13 mag 2019 alle ore 12:50 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Am 13.05.19 um 12:32 schrieb Gianluigi: > > > > > > Il giorno lun 13 mag 2019 alle ore 12:18 Rolf-Werner Eilert > > > ha scritto: > > > > Now I tried around a bit with the editing function in TableView. > > > > With NoKeyboard I can switch the Arrow keys on and off, and Return > > seems > > to run as one would expect. > > > > But when I press Tab, the cursor jumps into nowhere, the cell > contents > > disappears, and when I click back on the cell there is a short > glimpse > > of the selected contents which again disappears after half a second. > > Pressing Return will save the text and make it reappear. > > > > So handling the Tab key(s) would be necessary. Or is it only me who > is > > used to applying the Tab key in a table? It should have the same > effect > > as Return, but stopping at the end of the line (in LibreOffice, Word > > etc. it will not stop and even produce a new line, if that is > wished). > > > > Regards > > Rolf > > > > > > In Gambas you use Return, Tab is used to switch from one control to > > another control. > > If you want to use Tab you can take a look at this Italian discussion > [0]. > > > > Regards > > Gianluigi > > > > [0] http://www.gambas-it.org/smf/index.php?topic=4921.msg39157#msg39157 > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > Thank you Gianluigi, that is a good idea - although I would try to use > the Tab key in some way, not just block it. > > Rolf > > Have you read all the topics? Did you read this and try it? http://www.gambas-it.org/wiki/index.php?title=Utilizzare_il_tasto_Tab_della_tastiera_per_spostare_il_cursore_del_mouse_fra_le_celle_di_una_TableView Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From rwe-sse at osnanet.de Mon May 13 15:46:54 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 15:46:54 +0200 Subject: [Gambas-user] TableView and Tab key In-Reply-To: References: Message-ID: Am 13.05.19 um 13:57 schrieb Gianluigi: > > > Il giorno lun 13 mag 2019 alle ore 12:50 Rolf-Werner Eilert > > ha scritto: > > Am 13.05.19 um 12:32 schrieb Gianluigi: > > > > > > Il giorno lun 13 mag 2019 alle ore 12:18 Rolf-Werner Eilert > > > >> ha scritto: > > > >? ? ?Now I tried around a bit with the editing function in TableView. > > > >? ? ?With NoKeyboard I can switch the Arrow keys on and off, and > Return > >? ? ?seems > >? ? ?to run as one would expect. > > > >? ? ?But when I press Tab, the cursor jumps into nowhere, the cell > contents > >? ? ?disappears, and when I click back on the cell there is a > short glimpse > >? ? ?of the selected contents which again disappears after half a > second. > >? ? ?Pressing Return will save the text and make it reappear. > > > >? ? ?So handling the Tab key(s) would be necessary. Or is it only > me who is > >? ? ?used to applying the Tab key in a table? It should have the > same effect > >? ? ?as Return, but stopping at the end of the line (in > LibreOffice, Word > >? ? ?etc. it will not stop and even produce a new line, if that is > wished). > > > >? ? ?Regards > >? ? ?Rolf > > > > > > In Gambas you use Return, Tab is used to switch from one control to > > another control. > > If you want to use Tab you can take a look at this Italian > discussion [0]. > > > > Regards > > Gianluigi > > > > [0] > http://www.gambas-it.org/smf/index.php?topic=4921.msg39157#msg39157 > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > Thank you Gianluigi, that is a good idea - although I would try to use > the Tab key in some way, not just block it. > > Rolf > > > Have you read all the topics? > Did you read this and try it? > http://www.gambas-it.org/wiki/index.php?title=Utilizzare_il_tasto_Tab_della_tastiera_per_spostare_il_cursore_del_mouse_fra_le_celle_di_una_TableView > > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Nope, and I oversaw this one: Public Sub _new() Dim hObs As Observer ' Per anticipare l'evento prima che venga lanciato. hObs = New Observer(Me) As "TableView" End Guess it will run - have more time to test it now. Thanks! Rolf From rwe-sse at osnanet.de Mon May 13 16:05:11 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 13 May 2019 16:05:11 +0200 Subject: [Gambas-user] TableView and Tab key In-Reply-To: References: Message-ID: <702c1210-74f8-311d-c55f-c032b5dc6844@osnanet.de> Am 13.05.19 um 13:57 schrieb Gianluigi: > > > Il giorno lun 13 mag 2019 alle ore 12:50 Rolf-Werner Eilert > > ha scritto: > > Am 13.05.19 um 12:32 schrieb Gianluigi: > > > > > > Il giorno lun 13 mag 2019 alle ore 12:18 Rolf-Werner Eilert > > > >> ha scritto: > > > >? ? ?Now I tried around a bit with the editing function in TableView. > > > >? ? ?With NoKeyboard I can switch the Arrow keys on and off, and > Return > >? ? ?seems > >? ? ?to run as one would expect. > > > >? ? ?But when I press Tab, the cursor jumps into nowhere, the cell > contents > >? ? ?disappears, and when I click back on the cell there is a > short glimpse > >? ? ?of the selected contents which again disappears after half a > second. > >? ? ?Pressing Return will save the text and make it reappear. > > > >? ? ?So handling the Tab key(s) would be necessary. Or is it only > me who is > >? ? ?used to applying the Tab key in a table? It should have the > same effect > >? ? ?as Return, but stopping at the end of the line (in > LibreOffice, Word > >? ? ?etc. it will not stop and even produce a new line, if that is > wished). > > > >? ? ?Regards > >? ? ?Rolf > > > > > > In Gambas you use Return, Tab is used to switch from one control to > > another control. > > If you want to use Tab you can take a look at this Italian > discussion [0]. > > > > Regards > > Gianluigi > > > > [0] > http://www.gambas-it.org/smf/index.php?topic=4921.msg39157#msg39157 > > > > > > ----[ Gambas mailing-list is hosted by > https://www.hostsharing.net ]---- > > > > Thank you Gianluigi, that is a good idea - although I would try to use > the Tab key in some way, not just block it. > > Rolf > > > Have you read all the topics? > Did you read this and try it? > http://www.gambas-it.org/wiki/index.php?title=Utilizzare_il_tasto_Tab_della_tastiera_per_spostare_il_cursore_del_mouse_fra_le_celle_di_una_TableView > > Gianluigi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > Yes, it is necessary to include the two libraries AND to define the observer. Hm. Wouldn't it be easier for the user to have a property for TableView which does this? Something like "TabKeyStop" which would catch the Tab key event in the background and allow for a simple StopEvent in KeyPress? Regards Rolf From bagonergi at gmail.com Mon May 13 16:47:10 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 May 2019 16:47:10 +0200 Subject: [Gambas-user] TableView and Tab key In-Reply-To: <702c1210-74f8-311d-c55f-c032b5dc6844@osnanet.de> References: <702c1210-74f8-311d-c55f-c032b5dc6844@osnanet.de> Message-ID: Il giorno lun 13 mag 2019 alle ore 16:06 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Am 13.05.19 um 13:57 schrieb Gianluigi: > > > > > > Il giorno lun 13 mag 2019 alle ore 12:50 Rolf-Werner Eilert > > > ha scritto: > > > > Am 13.05.19 um 12:32 schrieb Gianluigi: > > > > > > > > > Il giorno lun 13 mag 2019 alle ore 12:18 Rolf-Werner Eilert > > > > > >> ha scritto: > > > > > > Now I tried around a bit with the editing function in > TableView. > > > > > > With NoKeyboard I can switch the Arrow keys on and off, and > > Return > > > seems > > > to run as one would expect. > > > > > > But when I press Tab, the cursor jumps into nowhere, the cell > > contents > > > disappears, and when I click back on the cell there is a > > short glimpse > > > of the selected contents which again disappears after half a > > second. > > > Pressing Return will save the text and make it reappear. > > > > > > So handling the Tab key(s) would be necessary. Or is it only > > me who is > > > used to applying the Tab key in a table? It should have the > > same effect > > > as Return, but stopping at the end of the line (in > > LibreOffice, Word > > > etc. it will not stop and even produce a new line, if that is > > wished). > > > > > > Regards > > > Rolf > > > > > > > > > In Gambas you use Return, Tab is used to switch from one control > to > > > another control. > > > If you want to use Tab you can take a look at this Italian > > discussion [0]. > > > > > > Regards > > > Gianluigi > > > > > > [0] > > http://www.gambas-it.org/smf/index.php?topic=4921.msg39157#msg39157 > > > > > > > > > ----[ Gambas mailing-list is hosted by > > https://www.hostsharing.net ]---- > > > > > > > Thank you Gianluigi, that is a good idea - although I would try to > use > > the Tab key in some way, not just block it. > > > > Rolf > > > > > > Have you read all the topics? > > Did you read this and try it? > > > http://www.gambas-it.org/wiki/index.php?title=Utilizzare_il_tasto_Tab_della_tastiera_per_spostare_il_cursore_del_mouse_fra_le_celle_di_una_TableView > > > > Gianluigi > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > Yes, it is necessary to include the two libraries AND to define the > observer. > > Hm. Wouldn't it be easier for the user to have a property for TableView > which does this? Something like "TabKeyStop" which would catch the Tab > key event in the background and allow for a simple StopEvent in KeyPress? > > Regards > Rolf > It is called observer and serves to be able to act before the event. I leave the task of explaining it to the most experts of me Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Mon May 13 18:20:43 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 13 May 2019 13:20:43 -0300 Subject: [Gambas-user] datediff to miliseconds Message-ID: Hi there, in the below code: Dim dData1 As Date = Now Dim dData2 As Date = "01/01/2000" Print DateDiff(dData2, dData1, gb.Second) Print DateDiff(dData2, dData1, gb.Millisecond) is there anything wrong? I got an overflow when printing milliseconds - Gen From kicking177 at gmail.com Mon May 13 18:21:40 2019 From: kicking177 at gmail.com (KKing) Date: Mon, 13 May 2019 17:21:40 +0100 Subject: [Gambas-user] Gambas IDE Shortcut Keys Message-ID: <7cdb74e9-b6fb-15db-6da9-a4bb313835a1@gmail.com> When you open a project and have multiple modules and classes open is there a shortcut key to jump between them? When you press Ctrl+H you get a split view type screen, is there a shortcut to activate (jump into) the other pane? K From g4mba5 at gmail.com Mon May 13 18:22:55 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 May 2019 18:22:55 +0200 Subject: [Gambas-user] Gambas IDE Shortcut Keys In-Reply-To: <7cdb74e9-b6fb-15db-6da9-a4bb313835a1@gmail.com> References: <7cdb74e9-b6fb-15db-6da9-a4bb313835a1@gmail.com> Message-ID: Le 13/05/2019 ? 18:21, KKing a ?crit?: > When you open a project and have multiple modules and classes open is > there a shortcut key to jump between them? > > When you press Ctrl+H you get a split view type screen, is there a > shortcut to activate (jump into) the other pane? > > K > > CTRL+Page Up / Ctrl+Page Down ? -- Beno?t Minisini From bagonergi at gmail.com Mon May 13 18:55:00 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 May 2019 18:55:00 +0200 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: Il giorno lun 13 mag 2019 alle ore 18:21 gen braga ha scritto: > Hi there, > > in the below code: > > Dim dData1 As Date = Now > Dim dData2 As Date = "01/01/2000" > > Print DateDiff(dData2, dData1, gb.Second) > Print DateDiff(dData2, dData1, gb.Millisecond) > > is there anything wrong? I got an overflow when printing milliseconds > > - > Gen > > Here [0] I don't see any "milliseconds" Regards Gianluigi [0] http://gambaswiki.org/wiki/lang/datediff -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Mon May 13 19:03:24 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 13 May 2019 14:03:24 -0300 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: Missing in the Wiki, I Guedes. http://gambaswiki.org/wiki/comp/gb/gb http://gambaswiki.org/wiki/comp/gb/gb/millisecond Em seg, 13 de mai de 2019 13:56, Gianluigi escreveu: > > > Il giorno lun 13 mag 2019 alle ore 18:21 gen braga > ha scritto: > >> Hi there, >> >> in the below code: >> >> Dim dData1 As Date = Now >> Dim dData2 As Date = "01/01/2000" >> >> Print DateDiff(dData2, dData1, gb.Second) >> Print DateDiff(dData2, dData1, gb.Millisecond) >> >> is there anything wrong? I got an overflow when printing milliseconds >> >> - >> Gen >> >> > Here [0] I don't see any "milliseconds" > > Regards > Gianluigi > [0] http://gambaswiki.org/wiki/lang/datediff > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Mon May 13 18:55:39 2019 From: roberto.premoli at tiscali.it (roberto) Date: Mon, 13 May 2019 18:55:39 +0200 Subject: [Gambas-user] Request for new feature: SPI and I2C Classes Message-ID: <72e7fa16-7d2b-e0a5-30d5-52a9f21b2c3b@tiscali.it> Hello, I am just registered to ML, I use gambas 3.9.1 on GNU/Linux. I write here to show my needs. I use GAMBAS on embedded ARM board (i.e. Raspberry, Nano Pi Fire 2A and 3, and so on). Those boards (but in general all ARM embedded boards) offer I/O and dedicated serial lines as UART, SPI and I2C. Gambas has class SerialPort that was great in "desktop" Era, an is still great also in embedded field. Unfortunately, many (almost all) devices are controlled by SPI and I2C interfaces (Analog-to-Digital/Digital-to-Analog converter, I/O expander, EEPROM, ecc) and those chip are essential in embedded project. Actually, I use GAMBAS to develop GUI where i use class SeriaPort to control a microcontroller and the microcontroller controls the SPI/I2C chip I am interested in. In other words, I must add tho the project a uC and program it as "interpreter" between GAMBAS and the SPI/I2C devices. It will be very nice to have 2 new classes to control the SPI and I2C bus and skip the necessity of a "translator": it will be save space on PCB and speed up develop of projects. More, it will add new and good value to gambas itself, because it will easely can became *THE* IDE for embedded platforms for all the linuxers, like me, that like to code embedded boards but prefere gambas over Python, C, C++, ecc. For both protocol SPI and I2C, in my opinion is not requested immediatly a full support (to play both as master or slave) but it can be enough that the 2 classes SPI and I2C can play as Master, more sophisticated mode can came later. Thanks, Roberto From genbraga1 at gmail.com Mon May 13 19:03:55 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 13 May 2019 14:03:55 -0300 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: *guess Em seg, 13 de mai de 2019 14:03, gen braga escreveu: > Missing in the Wiki, I Guedes. > > http://gambaswiki.org/wiki/comp/gb/gb > > http://gambaswiki.org/wiki/comp/gb/gb/millisecond > > Em seg, 13 de mai de 2019 13:56, Gianluigi escreveu: > >> >> >> Il giorno lun 13 mag 2019 alle ore 18:21 gen braga >> ha scritto: >> >>> Hi there, >>> >>> in the below code: >>> >>> Dim dData1 As Date = Now >>> Dim dData2 As Date = "01/01/2000" >>> >>> Print DateDiff(dData2, dData1, gb.Second) >>> Print DateDiff(dData2, dData1, gb.Millisecond) >>> >>> is there anything wrong? I got an overflow when printing milliseconds >>> >>> - >>> Gen >>> >>> >> Here [0] I don't see any "milliseconds" >> >> Regards >> Gianluigi >> [0] http://gambaswiki.org/wiki/lang/datediff >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Mon May 13 19:07:12 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 13 May 2019 14:07:12 -0300 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: By the way, https://lists.gambas-basic.org/pipermail/user/2011-January/032028.html Em seg, 13 de mai de 2019 13:56, Gianluigi escreveu: > > > Il giorno lun 13 mag 2019 alle ore 18:21 gen braga > ha scritto: > >> Hi there, >> >> in the below code: >> >> Dim dData1 As Date = Now >> Dim dData2 As Date = "01/01/2000" >> >> Print DateDiff(dData2, dData1, gb.Second) >> Print DateDiff(dData2, dData1, gb.Millisecond) >> >> is there anything wrong? I got an overflow when printing milliseconds >> >> - >> Gen >> >> > Here [0] I don't see any "milliseconds" > > Regards > Gianluigi > [0] http://gambaswiki.org/wiki/lang/datediff > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Mon May 13 19:17:01 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 13 May 2019 14:17:01 -0300 Subject: [Gambas-user] Gambas 3.123 crashs In-Reply-To: References: Message-ID: Antonio, I had this issue when something wasnt upgraded properly. Try to Apt-get remove gambas3-* and reinstall - Gen Em seg, 13 de mai de 2019 06:24, Antonio Teixeira < antonio.j.teixeira at gmail.com> escreveu: > Hi Jussi, > > I installed from the PPA. > > Regards > > Ant?nio Teixeira > > > escreveu no dia s?bado, 11/05/2019 > ?(s) 11:15: > >> Send User mailing list submissions to >> user at lists.gambas-basic.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.gambas-basic.org/listinfo/user >> or, via email, send a message with subject or body 'help' to >> user-request at lists.gambas-basic.org >> >> You can reach the person managing the list at >> user-owner at lists.gambas-basic.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of User digest..." >> >> >> Today's Topics: >> >> 1. Re: Gambas 3.123 crashs (Jussi Lahtinen) >> 2. Re: Software Farm Categories and Tags (Cedron Dawg) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Fri, 10 May 2019 22:10:12 +0300 >> From: Jussi Lahtinen >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Gambas 3.123 crashs >> Message-ID: >> > 8g at mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Did you compile it yourself or did you install from PPA? >> >> >> Jussi >> >> On Fri, May 10, 2019 at 5:44 PM Antonio Teixeira < >> antonio.j.teixeira at gmail.com> wrote: >> >> > Hi everyone, >> > >> > I just upgraded to gambas 3.13 but I think it was not a good idea. >> > I am stucked because when trying to start the ide I am getting this >> > message : >> > >> > ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance >> > Segmentation fault (core dumped) >> > >> > I have Ububtu 16.04 64 bits >> > What information more is nedded to get some help? >> > >> > >> > Thanks in advance. >> > >> > regards >> > >> > Ant?nio Teixeira >> > >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> https://lists.gambas-basic.org/pipermail/user/attachments/20190510/a38b3349/attachment-0001.html >> > >> >> ------------------------------ >> >> Message: 2 >> Date: Fri, 10 May 2019 16:38:10 -0400 (EDT) >> From: Cedron Dawg >> To: user >> Subject: Re: [Gambas-user] Software Farm Categories and Tags >> Message-ID: >> <710003362.24595823.1557520690054.JavaMail.zimbra at exede.net> >> Content-Type: text/plain; charset=utf-8 >> >> A "Tags" field in the project properties would still be nice to have. >> >> I changed my mind on the Tag/Subtag specification. >> >> # for a tag >> >> ^ for a subtag >> >> Can I get an amen? >> >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ------------------------------ >> >> End of User Digest, Vol 20, Issue 15 >> ************************************ >> > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon May 13 19:21:38 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 May 2019 19:21:38 +0200 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: Thank you, did I miss it Il giorno lun 13 mag 2019 alle ore 19:09 gen braga ha scritto: > By the way, > > https://lists.gambas-basic.org/pipermail/user/2011-January/032028.html > > Em seg, 13 de mai de 2019 13:56, Gianluigi escreveu: > >> >> >> Il giorno lun 13 mag 2019 alle ore 18:21 gen braga >> ha scritto: >> >>> Hi there, >>> >>> in the below code: >>> >>> Dim dData1 As Date = Now >>> Dim dData2 As Date = "01/01/2000" >>> >>> Print DateDiff(dData2, dData1, gb.Second) >>> Print DateDiff(dData2, dData1, gb.Millisecond) >>> >>> is there anything wrong? I got an overflow when printing milliseconds >>> >>> - >>> Gen >>> >>> >> Here [0] I don't see any "milliseconds" >> >> Regards >> Gianluigi >> [0] http://gambaswiki.org/wiki/lang/datediff >> >> ----[ 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 matthew.charles.collins.75 at gmail.com Mon May 13 19:27:15 2019 From: matthew.charles.collins.75 at gmail.com (Matthew Collins) Date: Mon, 13 May 2019 18:27:15 +0100 Subject: [Gambas-user] Request for new feature: SPI and I2C Classes In-Reply-To: <72e7fa16-7d2b-e0a5-30d5-52a9f21b2c3b@tiscali.it> References: <72e7fa16-7d2b-e0a5-30d5-52a9f21b2c3b@tiscali.it> Message-ID: <160ab63d-f58d-8530-44fa-9b21be8812b3@gmail.com> Hi Roberto, Yes, I would also like a native Gambas component for i2c and GPIO (not used SPI)... Take a quick look at my code on the Gambas Farm "gb.PiconZero", I wrote a very basic i2c (via shell) and GPIO class (via shell / gpio sysfs). Also on github add Setup photos: https://github.com/Matthew-Collins/gb.PiconZero If you don't already know, the Gambas Farm is a place where other users share code and is available directly in the Startup dialog (and Tools > Software Farm) in the Gambas IDE. If you plan to write a Gambas Component in C this might help: https://github.com/ev3dev/i2c-tools/blob/ev3dev-stretch/tools/i2cget.c Thanks Matt On 5/13/19 5:55 PM, roberto wrote: > Hello, > > I am just registered to ML, I use gambas 3.9.1 on GNU/Linux. > I write here to show my needs. > > I use GAMBAS on embedded ARM board (i.e. Raspberry, Nano Pi Fire 2A > and 3, and so on). > Those boards (but in general all ARM embedded boards) offer I/O and > dedicated serial lines as UART, SPI and I2C. Gambas has class > SerialPort that was great in "desktop" Era, an is still great also in > embedded field. > Unfortunately, many (almost all) devices are controlled by SPI and I2C > interfaces (Analog-to-Digital/Digital-to-Analog converter, I/O > expander, EEPROM, ecc) and those chip are essential in embedded project. > Actually, I use GAMBAS to develop GUI where i use class SeriaPort to > control a microcontroller and the microcontroller controls the SPI/I2C > chip I am interested in. In other words, I must add tho the project a > uC and program it as "interpreter" between GAMBAS and the SPI/I2C > devices. > It will be very nice to have 2 new classes to control the SPI and I2C > bus and skip the necessity of a "translator": it will be save space on > PCB and speed up develop of projects. > More, it will add new and good value to gambas itself, because it will > easely can became *THE* IDE for embedded platforms for all the > linuxers, like me, that like to code embedded boards but prefere > gambas over Python, C, C++, ecc. > For both protocol SPI and I2C, in my opinion is not requested > immediatly a full support (to play both as master or slave) but it can > be enough that the 2 classes SPI and I2C can play as Master, more > sophisticated mode can came later. > > > Thanks, > > Roberto > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mckaygerhard at gmail.com Mon May 13 19:29:43 2019 From: mckaygerhard at gmail.com (PICCORO McKAY Lenz) Date: Mon, 13 May 2019 13:29:43 -0400 Subject: [Gambas-user] Request for new feature: SPI and I2C Classes In-Reply-To: <72e7fa16-7d2b-e0a5-30d5-52a9f21b2c3b@tiscali.it> References: <72e7fa16-7d2b-e0a5-30d5-52a9f21b2c3b@tiscali.it> Message-ID: El lun., 13 de may. de 2019 a la(s) 13:05, roberto ( roberto.premoli at tiscali.it) escribi?: > chip I am interested in. In other words, I must add tho the project a uC > and program it as "interpreter" between GAMBAS and the SPI/I2C devices. > do gambas has support for i2c interaction with serial port? sound very interesting and very non-common task > easely can became *THE* IDE for embedded platforms for all the linuxers, > like me, that like to code embedded boards but prefere gambas over > Python, C, C++, ecc. > I always talk about vision.. todya all people said "python are easy and extensible and this and that and ... bla bla" obviously gambas are the most easy to learn lagnauje programing but lack of some vision.. of course also lack of manpowers, Benoit and you guys make a great work.. i not talking about become M$ like, or like redhat that has "too much evolution" but we need a little more expanding .. i praise the web inprovements in those dias.. but nee just little more.. as example the gambas DBMS are limited today to mysql postgres and sqlite.. the odbc are broken for oracle and sybase.. and therte's no advance in that! > It will be very nice to have 2 new classes to control the SPI and I2C > bus and skip the necessity of a "translator": it will be save space on > PCB and speed up develop of projects. > More, it will add new and good value to gambas itself, because it will > that are a great improvement.. i prefer center in i2c that have more features.. but the interaction with devices are the problem.. i think we neec a clas to standarize and comunicate with the i2c modules? yes ... "meanwhile" investigate how to comunicate with i2c modules like does hardinfo in nomadays, but in fact you will need i2c suppor in kernel, so, what i means its "hardinfo" its a info program for devices.. has a i2c ifo part that not uses a complete coding interface.. it made tricks consulting the information with thirth party artifacts > For both protocol SPI and I2C, in my opinion is not requested immediatly > a full support (to play both as master or slave) but it can be enough > that the 2 classes SPI and I2C can play as Master, more sophisticated > mode can came later. > > > Thanks, > > Roberto > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Mon May 13 20:09:44 2019 From: bagonergi at gmail.com (Gianluigi) Date: Mon, 13 May 2019 20:09:44 +0200 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: 611085255000 I think it is normal that it gives error being superior to 2147483647 (max of integer). But I don't understand why this code returns 1200394968 instead of 611085255000: Dim dData1 As Date = Now Dim dData2 As Date = "01/01/2000" Dim i As Integer Print DateDiff(dData2, dData1, gb.Second) Try DateDiff(dData2, dData1, gb.Millisecond) If Error Then Print DateDiff(dData2, dData1, gb.Second) * 1000 Else DateDiff(dData2, dData1, gb.Millisecond) Endif Regards Gianluigi Il giorno lun 13 mag 2019 alle ore 18:21 gen braga ha scritto: > Hi there, > > in the below code: > > Dim dData1 As Date = Now > Dim dData2 As Date = "01/01/2000" > > Print DateDiff(dData2, dData1, gb.Second) > Print DateDiff(dData2, dData1, gb.Millisecond) > > is there anything wrong? I got an overflow when printing milliseconds > > - > Gen > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Mon May 13 20:57:49 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 13 May 2019 15:57:49 -0300 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: Sure, i didnt notice the return type. My bad. Maybe we could have an DateDiff function returning Long? By the way, Dim dData1 As Date = CDate("05/13/2019 12:00") Dim dData2 As Date = CDate("05/13/2019 12:01") Print DateDiff(dData1, dData2, gb.Millisecond) works fine. - Gen Em seg, 13 de mai de 2019 15:10, Gianluigi escreveu: > > 611085255000 I think it is normal that it gives error being superior to 2147483647 (max of integer). > But I don't understand why this code returns 1200394968 instead of 611085255000: > > ? Dim dData1 As Date = Now > ? Dim dData2 As Date = "01/01/2000" > ? Dim i As Integer > > ? Print DateDiff(dData2, dData1, gb.Second) > ? Try DateDiff(dData2, dData1, gb.Millisecond) > ? If Error Then > ??? Print DateDiff(dData2, dData1, gb.Second) * 1000 > ? Else > ??? DateDiff(dData2, dData1, gb.Millisecond) > ? Endif > > Regards > Gianluigi > > Il giorno lun 13 mag 2019 alle ore 18:21 gen braga ha scritto: >> >> Hi there, >> >> in the below code: >> >> ? Dim dData1 As Date = Now >> ? Dim dData2 As Date = "01/01/2000" >> >> ? Print DateDiff(dData2, dData1, gb.Second) >> ? Print DateDiff(dData2, dData1, gb.Millisecond) >> >> is there anything wrong? I got an overflow when printing milliseconds >> >> - >> Gen >> >> ----[ 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 May 13 23:38:30 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 14 May 2019 00:38:30 +0300 Subject: [Gambas-user] Gambas 3.123 crashs In-Reply-To: References: Message-ID: Can you please run the attached script and send its output? Jussi On Mon, May 13, 2019 at 12:24 PM Antonio Teixeira < antonio.j.teixeira at gmail.com> wrote: > Hi Jussi, > > I installed from the PPA. > > Regards > > Ant?nio Teixeira > > > escreveu no dia s?bado, 11/05/2019 > ?(s) 11:15: > >> Send User mailing list submissions to >> user at lists.gambas-basic.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.gambas-basic.org/listinfo/user >> or, via email, send a message with subject or body 'help' to >> user-request at lists.gambas-basic.org >> >> You can reach the person managing the list at >> user-owner at lists.gambas-basic.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of User digest..." >> >> >> Today's Topics: >> >> 1. Re: Gambas 3.123 crashs (Jussi Lahtinen) >> 2. Re: Software Farm Categories and Tags (Cedron Dawg) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Fri, 10 May 2019 22:10:12 +0300 >> From: Jussi Lahtinen >> To: Gambas Mailing List >> Subject: Re: [Gambas-user] Gambas 3.123 crashs >> Message-ID: >> > 8g at mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Did you compile it yourself or did you install from PPA? >> >> >> Jussi >> >> On Fri, May 10, 2019 at 5:44 PM Antonio Teixeira < >> antonio.j.teixeira at gmail.com> wrote: >> >> > Hi everyone, >> > >> > I just upgraded to gambas 3.13 but I think it was not a good idea. >> > I am stucked because when trying to start the ide I am getting this >> > message : >> > >> > ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance >> > Segmentation fault (core dumped) >> > >> > I have Ububtu 16.04 64 bits >> > What information more is nedded to get some help? >> > >> > >> > Thanks in advance. >> > >> > regards >> > >> > Ant?nio Teixeira >> > >> > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net >> ]---- >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> https://lists.gambas-basic.org/pipermail/user/attachments/20190510/a38b3349/attachment-0001.html >> > >> >> ------------------------------ >> >> Message: 2 >> Date: Fri, 10 May 2019 16:38:10 -0400 (EDT) >> From: Cedron Dawg >> To: user >> Subject: Re: [Gambas-user] Software Farm Categories and Tags >> Message-ID: >> <710003362.24595823.1557520690054.JavaMail.zimbra at exede.net> >> Content-Type: text/plain; charset=utf-8 >> >> A "Tags" field in the project properties would still be nice to have. >> >> I changed my mind on the Tag/Subtag specification. >> >> # for a tag >> >> ^ for a subtag >> >> Can I get an amen? >> >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> >> >> ------------------------------ >> >> End of User Digest, Vol 20, Issue 15 >> ************************************ >> > > ----[ 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: report-ng.sh Type: application/x-shellscript Size: 3987 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Mon May 13 23:42:30 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 14 May 2019 00:42:30 +0300 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: It's still integer... Jussi On Mon, May 13, 2019 at 9:10 PM Gianluigi wrote: > 611085255000 I think it is normal that it gives error being superior to > 2147483647 (max of integer). > But I don't understand why this code returns 1200394968 instead of > 611085255000: > > Dim dData1 As Date = Now > Dim dData2 As Date = "01/01/2000" > Dim i As Integer > > Print DateDiff(dData2, dData1, gb.Second) > Try DateDiff(dData2, dData1, gb.Millisecond) > If Error Then > Print DateDiff(dData2, dData1, gb.Second) * 1000 > Else > DateDiff(dData2, dData1, gb.Millisecond) > Endif > > Regards > Gianluigi > > Il giorno lun 13 mag 2019 alle ore 18:21 gen braga > ha scritto: > >> Hi there, >> >> in the below code: >> >> Dim dData1 As Date = Now >> Dim dData2 As Date = "01/01/2000" >> >> Print DateDiff(dData2, dData1, gb.Second) >> Print DateDiff(dData2, dData1, gb.Millisecond) >> >> is there anything wrong? I got an overflow when printing milliseconds >> >> - >> Gen >> >> ----[ 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 Tue May 14 00:15:55 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 14 May 2019 00:15:55 +0200 Subject: [Gambas-user] datediff to miliseconds In-Reply-To: References: Message-ID: Quite right, Print CLong((DateDiff(dData2, dData1, gb.Second))) * 1000 work fine, thank you Regards Gianluigi Il giorno lun 13 mag 2019 alle ore 23:43 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > It's still integer... > > Jussi > > On Mon, May 13, 2019 at 9:10 PM Gianluigi wrote: > >> 611085255000 I think it is normal that it gives error being superior to >> 2147483647 (max of integer). >> But I don't understand why this code returns 1200394968 instead of >> 611085255000: >> >> Dim dData1 As Date = Now >> Dim dData2 As Date = "01/01/2000" >> Dim i As Integer >> >> Print DateDiff(dData2, dData1, gb.Second) >> Try DateDiff(dData2, dData1, gb.Millisecond) >> If Error Then >> Print DateDiff(dData2, dData1, gb.Second) * 1000 >> Else >> DateDiff(dData2, dData1, gb.Millisecond) >> Endif >> >> Regards >> Gianluigi >> >> Il giorno lun 13 mag 2019 alle ore 18:21 gen braga >> ha scritto: >> >>> Hi there, >>> >>> in the below code: >>> >>> Dim dData1 As Date = Now >>> Dim dData2 As Date = "01/01/2000" >>> >>> Print DateDiff(dData2, dData1, gb.Second) >>> Print DateDiff(dData2, dData1, gb.Millisecond) >>> >>> is there anything wrong? I got an overflow when printing milliseconds >>> >>> - >>> Gen >>> >>> ----[ 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: From g4mba5 at gmail.com Tue May 14 01:27:18 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 May 2019 01:27:18 +0200 Subject: [Gambas-user] Allocations not freed when using SQLite In-Reply-To: <548933955.12513102.1556745387283.JavaMail.zimbra@exede.net> References: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> <1273420806.12245077.1556737964809.JavaMail.zimbra@exede.net> <548933955.12513102.1556745387283.JavaMail.zimbra@exede.net> Message-ID: <4f4455f2-9718-2884-f944-f6f03c15dff6@gmail.com> Le 01/05/2019 ? 23:16, Cedron Dawg a ?crit?: > This seems to be multiple statements per exec related. > > pragma foreign_key_list(keywords); > pragma foreign_key_list(keyword_usage); > > produces > > gbx3: warning: 20 allocation(s) non freed. > > Yet, individually they work fine. > I found the origin of the problem: the 'gb.db.sqlite3' component cannot deal with multiple SQL statements in the same SQL query. It is fixed in commit https://gitlab.com/gambas/gambas/commit/c1bc03ccfaeaac914b04354a31e68bc4b22cc2df. Regards, -- Beno?t Minisini From sharon at 455.co.il Tue May 14 09:28:10 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 14 May 2019 10:28:10 +0300 Subject: [Gambas-user] GTK+ with Broadway Message-ID: <20190514072754.M34571@455.co.il> Hello os: fedora 28 64bit gambas: 3.10.0 I tried to run GAMBAS through the console "/bin/gambas3.gambas" as explained here: https://developer.gnome.org/gtk3/stable/gtk-broadway.html But it does not pass GAMBAS to the WEB If I run through the console for example: GEDIT It works fine I've also tried to create a Project->Make->Executable for the GAMBAS my program /home/sharon/gambas/mygtk.gambas But it gives Error: Segmentation fault (core dumped) From g4mba5 at gmail.com Tue May 14 09:42:23 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 May 2019 09:42:23 +0200 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <20190514072754.M34571@455.co.il> References: <20190514072754.M34571@455.co.il> Message-ID: Le 14/05/2019 ? 09:28, Mayost Sharon a ?crit?: > Hello > > os: fedora 28 64bit > gambas: 3.10.0 > > I tried to run GAMBAS through the console "/bin/gambas3.gambas" as explained here: > https://developer.gnome.org/gtk3/stable/gtk-broadway.html > > But it does not pass GAMBAS to the WEB Gambas is a QT program. Are you sure that it should work with GTK Broadway? > > If I run through the console for example: GEDIT > It works fine > > I've also tried to create a Project->Make->Executable for the GAMBAS my program > /home/sharon/gambas/mygtk.gambas > > But it gives Error: > Segmentation fault (core dumped) Please provide your project so that I can reproduce the crash. Regards, -- Beno?t Minisini From sharon at 455.co.il Tue May 14 09:54:14 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 14 May 2019 10:54:14 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> Message-ID: <20190514075403.M84064@455.co.il> ??"? ???? ?????, ????? ????? ???? 072-2730831 058-4002542 ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Tue, 14 May 2019 09:42:23 +0200 Subject: Re: [Gambas-user] GTK+ with Broadway > Le 14/05/2019 ? 09:28, Mayost Sharon a ?crit?: > > Hello > > > > os: fedora 28 64bit > > gambas: 3.10.0 > > > > I tried to run GAMBAS through the console "/bin/gambas3.gambas" as explained here: > > https://developer.gnome.org/gtk3/stable/gtk-broadway.html > > > > But it does not pass GAMBAS to the WEB > > Gambas is a QT program. Are you sure that it should work with GTK Broadway? > > > > > If I run through the console for example: GEDIT > > It works fine > > > > I've also tried to create a Project->Make->Executable for the GAMBAS my program > > /home/sharon/gambas/mygtk.gambas > > > > But it gives Error: > > Segmentation fault (core dumped) > > Please provide your project so that I can reproduce the crash. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: mygtk.zip Type: application/zip Size: 13350 bytes Desc: not available URL: From g4mba5 at gmail.com Tue May 14 10:10:17 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 May 2019 10:10:17 +0200 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <20190514075403.M84064@455.co.il> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> Message-ID: <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit?: > > > ??"? > > ???? ?????, > > > ????? > ????? ???? > 072-2730831 > 058-4002542 > No crash at all when creating an executable, so I guess the problem is in the outdated Gambas version made by Fedora... Now I'm afraid you will have to compile Gambas from sources, as I only provide Ubuntu/Debian binary packages. Regards, -- Beno?t Minisini From antonio.j.teixeira at gmail.com Tue May 14 10:45:31 2019 From: antonio.j.teixeira at gmail.com (Antonio Teixeira) Date: Tue, 14 May 2019 09:45:31 +0100 Subject: [Gambas-user] Gambas 3.13 crashs In-Reply-To: References: Message-ID: Hi everyone, Problem solved. I did an update and upgrade and gambas started to work fine. Thank you for your help. Regards Ant?nio Teixeira escreveu no dia sexta, 10/05/2019 ?(s) 19:13: > Send User mailing list submissions to > user at lists.gambas-basic.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gambas-basic.org/listinfo/user > or, via email, send a message with subject or body 'help' to > user-request at lists.gambas-basic.org > > You can reach the person managing the list at > user-owner at lists.gambas-basic.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of User digest..." > > > Today's Topics: > > 1. Gambas 3.123 crashs (Antonio Teixeira) > 2. Possible bug in gb.gui (Charlie Ogier) > 3. Re: Gambas 3.123 crashs (Gianluigi) > 4. Re: Software Farm Categories and Tags (Cedron Dawg) > 5. Re: Software Farm Categories and Tags (Beno?t Minisini) > 6. Re: Software Farm Categories and Tags (Cedron Dawg) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 10 May 2019 15:43:40 +0100 > From: Antonio Teixeira > To: user at lists.gambas-basic.org > Subject: [Gambas-user] Gambas 3.123 crashs > Message-ID: > < > CAAgrfyAo4CwkyqXzOm2rrB6Smb3yv6FCXKVkXWCEwW8NiwxYTw at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi everyone, > > I just upgraded to gambas 3.13 but I think it was not a good idea. > I am stucked because when trying to start the ide I am getting this message > : > > ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance > Segmentation fault (core dumped) > > I have Ububtu 16.04 64 bits > What information more is nedded to get some help? > > > Thanks in advance. > > regards > > Ant?nio Teixeira > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20190510/cb31946b/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Fri, 10 May 2019 15:11:46 +0100 > From: Charlie Ogier > To: Gambas Mailing List > Subject: [Gambas-user] Possible bug in gb.gui > Message-ID: <326bec40-6c80-d9c9-f03a-7f9925c56696 at cogier.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Hi, > > The 'Clipboard.HasChanged' command does not work in gb.gui but works OK > with gb.gui.qt. > > Example code is available here. > https://www.gambas-club.de/viewtopic.php?f=3&t=5615&p=13428#p13428 > > Regards, > > Charlie > > [System] > Gambas=3.13 > Operating System=Linux > Kernel=4.15.0-48-generic > Architecture=x86_64 > Distribution=Linux Mint 19.1 Tessa > Desktop=CINNAMON > Theme=Qt5CTProxy > Language=en_GB.UTF-8 > Memory=7848M > > [Libraries] > Cairo=libcairo.so.2.11510.0 > Curl=libcurl.so.4.5.0 > DBus=libdbus-1.so.3.19.4 > GStreamer=libgstreamer-1.0.so.0.1401.0 > GTK+2=libgtk-x11-2.0.so.0.2400.32 > GTK+3=libgtk-3.so.0.2200.30 > OpenGL=libGL.so.1.0.0 > Poppler=libpoppler.so.73.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.9.5 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > [Environment] > CINNAMON_VERSION=4.0.10 > DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus > DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path > DERBY_HOME=/usr/lib/jvm/java-8-oracle/db > DESKTOP_SESSION=cinnamon > DISPLAY=:0 > GB_GUI=gb.qt5 > GDMSESSION=cinnamon > GDM_LANG=en_GB > GJS_DEBUG_OUTPUT=stderr > GJS_DEBUG_TOPICS=JS ERROR;JS LOG > GNOME_DESKTOP_SESSION_ID=this-is-deprecated > GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 > GTK_MODULES=gail:atk-bridge > GTK_OVERLAY_SCROLLING=1 > HOME= > J2REDIR=/usr/lib/jvm/java-8-oracle/jre > J2SDKDIR=/usr/lib/jvm/java-8-oracle > JAVA_HOME=/usr/lib/jvm/java-8-oracle > LANG=en_GB.UTF-8 > LANGUAGE=en_GB.UTF-8 > LC_ADDRESS=en_GB.UTF-8 > LC_IDENTIFICATION=en_GB.UTF-8 > LC_MEASUREMENT=en_GB.UTF-8 > LC_MONETARY=en_GB.UTF-8 > LC_NAME=en_GB.UTF-8 > LC_NUMERIC=en_GB.UTF-8 > LC_PAPER=en_GB.UTF-8 > LC_TELEPHONE=en_GB.UTF-8 > LC_TIME=en_GB.UTF-8 > LOGNAME= > MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path > PAPERSIZE=a4 > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin > PWD= > QT_ACCESSIBILITY=1 > QT_QPA_PLATFORMTHEME=qt5ct > > SESSION_MANAGER=local/:@/tmp/.ICE-unix/1798,unix/:/tmp/.ICE-unix/1798 > SHELL=/bin/bash > SHLVL=0 > SSH_AGENT_PID=1866 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > S_COLORS=auto > TZ=:/etc/localtime > USER= > XAUTHORITY=/.Xauthority > XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg > XDG_CURRENT_DESKTOP=X-Cinnamon > > XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=cinnamon > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 > XDG_VTNR=7 > > > ------------------------------ > > Message: 3 > Date: Fri, 10 May 2019 18:01:41 +0200 > From: Gianluigi > To: Gambas Mailing List > Subject: Re: [Gambas-user] Gambas 3.123 crashs > Message-ID: > 6M7J9U5-R8vL0C84v2b9y4giENK7tv6fM5OkVhYw at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > I tried on a VBox installing stable from PPA. > No problem. > > Here my system informations: > > [System] > Gambas=3.13 > OperatingSystem=Linux > Kernel=4.15.0-48-generic > Architecture=x86_64 > Distribution=Ubuntu 16.04.6 LTS > Desktop=UNITY > Theme=Gtk > Language=it_IT.UTF-8 > Memory=3945M > > [Libraries] > Cairo=libcairo.so.2.11400.6 > Curl=libcurl.so.4.4.0 > DBus=libdbus-1.so.3.14.6 > GStreamer=libgstreamer-1.0.so.0.803.0 > GTK+2=libgtk-x11-2.0.so.0.2400.30 > GTK+3=libgtk-3.so.0.1800.9 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.58.0.0 > QT4=libQtCore.so.4.8.7 > QT5=libQt5Core.so.5.5.1 > SDL=libSDL-1.2.so.0.11.4 > SQLite=libsqlite3.so.0.8.6 > > Regards > Gianluigi > > Il giorno ven 10 mag 2019 alle ore 16:44 Antonio Teixeira < > antonio.j.teixeira at gmail.com> ha scritto: > > > Hi everyone, > > > > I just upgraded to gambas 3.13 but I think it was not a good idea. > > I am stucked because when trying to start the ide I am getting this > > message : > > > > ERROR: #2: Cannot load class 'PictureBox': Multiple inheritance > > Segmentation fault (core dumped) > > > > I have Ububtu 16.04 64 bits > > What information more is nedded to get some help? > > > > > > Thanks in advance. > > > > regards > > > > Ant?nio Teixeira > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.gambas-basic.org/pipermail/user/attachments/20190510/2cc4d2ef/attachment-0001.html > > > > ------------------------------ > > Message: 4 > Date: Fri, 10 May 2019 12:23:45 -0400 (EDT) > From: Cedron Dawg > To: user > Subject: Re: [Gambas-user] Software Farm Categories and Tags > Message-ID: > <619588952.24239363.1557505425420.JavaMail.zimbra at exede.net> > Content-Type: text/plain; charset=utf-8 > > Okay, so I was a little confused. The tags are the categories and > projects can be in more than one category, right? > > What a recipe for a mess. > > I believe a finer level of categorization is needed, so I am introducing > "subtags" to my database. > > > --=|The Database Diagram.|=-- > > -- > -- pd_vendors pd_roots > -- 1 1 > -- | | > -- M M > -- pd_tags pd_projects > -- 1 1 1 1 1 > -- | +----------+ | | | > -- M M M | M > -- pd_subtags pd_project_tags | pd_files > -- 1 | 1 > -- +-------+ | | > -- M M M > -- pd_project_subtags pd_lines > -- > > > The tags and subtags for a project will be defined in the Project > description field like this: > > #tagname1 > ##subtag1A > ##subtag1B > > #tagname2 > > etc. > > Or on one line: > > #tagname1 ##subtag1A ##subtag1B #tagname2 > > Any non-name characters will serve as delimiters. Subtags will be > assigned to the last tag it followed. Tagging and subtagging are optional. > > Example: > > I have a program which will read a database diagram like the one above and > it will generate a SQL script to fill a blank database with all the tables, > fields, and indexes required to implement the relationships and a few other > default fields. It is quite easy then to edit the script to add the data > fields to the table, run the script, and have the database ready for use. > > Here are my tags/subtags in its description field. > > #Development > ##CodeGenerator > ##DatabaseTool > > > > ------------------------------ > > Message: 5 > Date: Fri, 10 May 2019 19:34:12 +0200 > From: Beno?t Minisini > To: Gambas Mailing List > Subject: Re: [Gambas-user] Software Farm Categories and Tags > Message-ID: <7b400219-c64b-8d5d-8a5e-686655dc56ee at gmail.com> > Content-Type: text/plain; charset=utf-8; format=flowed > > Le 10/05/2019 ? 18:23, Cedron Dawg a ?crit?: > > Okay, so I was a little confused. The tags are the categories and > projects can be in more than one category, right? > > > > What a recipe for a mess. > > > > I believe a finer level of categorization is needed, so I am introducing > "subtags" to my database. > > > > There is no subtags. Tag are just tags, categories are tags. > Consequently, a project can be in multiple categories, even in none. > > I don't exactly understand want you want to achieve (I didn't have the > time to read everything carefully), but if you want to replace the > Gambas farm, I strongly suggest making a command-line tool with no GUI, > so that the GUI can be developed on top. Don't make the same mistake > than me. > > Regards, > > -- > Beno?t Minisini > > > ------------------------------ > > Message: 6 > Date: Fri, 10 May 2019 14:10:18 -0400 (EDT) > From: Cedron Dawg > To: user > Subject: Re: [Gambas-user] Software Farm Categories and Tags > Message-ID: > <158778891.24345776.1557511818384.JavaMail.zimbra at exede.net> > Content-Type: text/plain; charset=utf-8 > > Hi Benoit, > > No, I'm not trying to replace the Farm, I'm trying to make it conveniently > searchable. Thus, I'm building a database for which a Gambas App can be > written against for your desktop, and a web application can be developed > for net access. > > It'll also work for my projects, your projects, or anybody else's for that > matter, not just Farm projects. The subtags I just made up to achieve a > finer degree of categorization. > > This was motivated by my desire to be able to find good sample code for > various components. So, imagine this scenario: > > Go to the Web app main menu. Click on "Component List". This takes you > to a list of components. Click on a component name. This takes you to a > Components detail page. On that page is a list of all the projects that > use that component, each with a check box. Click the check boxes for the > projects you want to see, then press the [List Examples] button. This > takes you to a page in which there is a section for each project you > selected. In each section there will be code snippets from that project in > the neighborhood of each of the component's usage. Click on a line next to > the snippet and it will take you to a listing of the file. If that is not > sufficient, you now have the name of the project you can download to see > the usage in full context. > > Repeat the above scenario for each tag or subtag. Of course, much more > sophisticated searches can also be made: "Show me all projects using > components A,B, and C, with tags X,Y, or Z". > > Yeah, I'll be parsing the source code for usages. I will also be assuming > a "_" line continuation character and a ":" statement separator character. > > Currently each step in the process is launched by a button on my cradle > form, but ultimately the scan and load processes will be command line > driven. > > Ced > > > ----- Original Message ----- > From: "Beno?t Minisini" > To: "user" > Sent: Friday, May 10, 2019 1:34:12 PM > Subject: Re: [Gambas-user] Software Farm Categories and Tags > > Le 10/05/2019 ? 18:23, Cedron Dawg a ?crit?: > > Okay, so I was a little confused. The tags are the categories and > projects can be in more than one category, right? > > > > What a recipe for a mess. > > > > I believe a finer level of categorization is needed, so I am introducing > "subtags" to my database. > > > > There is no subtags. Tag are just tags, categories are tags. > Consequently, a project can be in multiple categories, even in none. > > I don't exactly understand want you want to achieve (I didn't have the > time to read everything carefully), but if you want to replace the > Gambas farm, I strongly suggest making a command-line tool with no GUI, > so that the GUI can be developed on top. Don't make the same mistake > than me. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ------------------------------ > > Subject: Digest Footer > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > ------------------------------ > > End of User Digest, Vol 20, Issue 14 > ************************************ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue May 14 15:12:21 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 14 May 2019 09:12:21 -0400 (EDT) Subject: [Gambas-user] Having a bit of trouble with ImageView ZoomfFit In-Reply-To: <361949969.25400655.1557583051351.JavaMail.zimbra@exede.net> References: <950861139.11651087.1556714349410.JavaMail.zimbra@exede.net> <1461251784.11781460.1556720251203.JavaMail.zimbra@exede.net> <569859280.11789889.1556720584245.JavaMail.zimbra@exede.net> <3d12d9b3-6982-a8ce-01db-86f1c58ae26d@gmail.com> <1650877566.25367159.1557581260307.JavaMail.zimbra@exede.net> <361949969.25400655.1557583051351.JavaMail.zimbra@exede.net> Message-ID: <1511592439.29478510.1557839541483.JavaMail.zimbra@exede.net> I've been working with the ImageView control in my most recent project. Perfect tool for what I am using it for, I doff my cap. This code works as you wanted as well: ' Gambas class file '============================================================================= Public Sub Form_Activate() ImageView1.Image = Image.Load("~/Pictures/Wallpaper1920/Squirrel1920.JPG") Form_Resize() End '============================================================================= Public Sub Form_Resize() ImageView1.Move(0, 0, Me.W, Me.H) ImageView1.ZoomFit(0) End '============================================================================= The difference is in the Activate vs the Open for the Form. I got the same behavior you described there. Ced From cedron at exede.net Tue May 14 15:20:44 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 14 May 2019 09:20:44 -0400 (EDT) Subject: [Gambas-user] Allocations not freed when using SQLite In-Reply-To: <4f4455f2-9718-2884-f944-f6f03c15dff6@gmail.com> References: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> <1273420806.12245077.1556737964809.JavaMail.zimbra@exede.net> <548933955.12513102.1556745387283.JavaMail.zimbra@exede.net> <4f4455f2-9718-2884-f944-f6f03c15dff6@gmail.com> Message-ID: <1988546406.29489256.1557840044407.JavaMail.zimbra@exede.net> Wonderful. In the meanwhile (I don't live on the cutting edge), should I parse on statements and feed them one at a time or are they harmless? I.e. If I go heavy load will it ultimately tie something up? Thanks, Ced ----- Original Message ----- From: "Beno?t Minisini" ... I found the origin of the problem: the 'gb.db.sqlite3' component cannot deal with multiple SQL statements in the same SQL query. It is fixed in commit https://gitlab.com/gambas/gambas/commit/c1bc03ccfaeaac914b04354a31e68bc4b22cc2df. Regards, -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From kicking177 at gmail.com Tue May 14 18:54:36 2019 From: kicking177 at gmail.com (KKing) Date: Tue, 14 May 2019 17:54:36 +0100 Subject: [Gambas-user] Gambas IDE Shortcut Keys Message-ID: <69553ca6-9c70-33be-ed45-6eea4b077b52@gmail.com> << CTRL+Page Up / Ctrl+Page Down ? >> thankyou, and << When you press Ctrl+H you get a split view type screen, is there a shortcut to activate (jump into) the other pane? >> K -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Tue May 14 18:58:38 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 May 2019 18:58:38 +0200 Subject: [Gambas-user] Allocations not freed when using SQLite In-Reply-To: <1988546406.29489256.1557840044407.JavaMail.zimbra@exede.net> References: <1749333618.12157192.1556735453206.JavaMail.zimbra@exede.net> <03acf929-8cbc-b0e1-ea43-58c1802f0e70@gmail.com> <1273420806.12245077.1556737964809.JavaMail.zimbra@exede.net> <548933955.12513102.1556745387283.JavaMail.zimbra@exede.net> <4f4455f2-9718-2884-f944-f6f03c15dff6@gmail.com> <1988546406.29489256.1557840044407.JavaMail.zimbra@exede.net> Message-ID: <228fd1db-6cba-93a8-7643-217ab4a5e446@gmail.com> Le 14/05/2019 ? 15:20, Cedron Dawg a ?crit : > Wonderful. > > In the meanwhile (I don't live on the cutting edge), should I parse > on statements and feed them one at a time or are they harmless? > > I.e. If I go heavy load will it ultimately tie something up? > > Thanks, > > Ced > Leaking memory is not harmless. You should better exec your SQL statements one by one instead of sending them all in one shot. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Tue May 14 19:01:36 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 14 May 2019 19:01:36 +0200 Subject: [Gambas-user] Gambas IDE Shortcut Keys In-Reply-To: <69553ca6-9c70-33be-ed45-6eea4b077b52@gmail.com> References: <69553ca6-9c70-33be-ed45-6eea4b077b52@gmail.com> Message-ID: Le 14/05/2019 ? 18:54, KKing a ?crit?: > When you press Ctrl+H you get a split view type screen, is there a > shortcut to activate (jump into) the other pane? I don't think so. If you find a free key for that, tell me. There are a lot of shortcuts, so almost all keys are in use! -- Beno?t Minisini From sharon at 455.co.il Tue May 14 19:33:31 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 14 May 2019 20:33:31 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> Message-ID: <20190514172924.M39598@455.co.il> ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Tue, 14 May 2019 10:10:17 +0200 Subject: Re: [Gambas-user] GTK+ with Broadway > > No crash at all when creating an executable, so I guess the problem is > in the outdated Gambas version made by Fedora... > > Now I'm afraid you will have to compile Gambas from sources, as I only > provide Ubuntu/Debian binary packages. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- Hello I also tried to: Ubuntu Desktop It also gives me an error From sharon at 455.co.il Tue May 14 20:30:21 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 14 May 2019 21:30:21 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> Message-ID: <20190514183004.M68704@455.co.il> Hello I also tried to: Ubuntu Desktop It also gives me an error ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Tue, 14 May 2019 10:10:17 +0200 Subject: Re: [Gambas-user] GTK+ with Broadway > Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit?: > > > > > > ??"? > > > > ???? ?????, > > > > > > ????? > > ????? ???? > > 072-2730831 > > 058-4002542 > > > > No crash at all when creating an executable, so I guess the problem is > in the outdated Gambas version made by Fedora... > > Now I'm afraid you will have to compile Gambas from sources, as I only > provide Ubuntu/Debian binary packages. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From bagonergi at gmail.com Tue May 14 23:07:56 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 14 May 2019 23:07:56 +0200 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <20190514183004.M68704@455.co.il> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> Message-ID: How did you install Gambas on Ubuntu? Did you use PPA [0]? Note: you cannot have multiple versions of Gambas on the same OS Regards Gianluigi [0] http://gambaswiki.org/wiki/install/ubuntu#t1 Il giorno mar 14 mag 2019 alle ore 20:31 Mayost Sharon ha scritto: > Hello > > I also tried to: > Ubuntu Desktop > It also gives me an error > > ---------- Original Message ----------- > From: Beno?t Minisini > To: Gambas Mailing List > Sent: Tue, 14 May 2019 10:10:17 +0200 > Subject: Re: [Gambas-user] GTK+ with Broadway > > > Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit : > > > > > > > > > ??"? > > > > > > ???? ?????, > > > > > > > > > ????? > > > ????? ???? > > > 072-2730831 > > > 058-4002542 > > > > > > > No crash at all when creating an executable, so I guess the problem is > > in the outdated Gambas version made by Fedora... > > > > Now I'm afraid you will have to compile Gambas from sources, as I only > > provide Ubuntu/Debian binary packages. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl.reinl at fen-net.de Wed May 15 10:05:50 2019 From: karl.reinl at fen-net.de (Karl Reinl) Date: Wed, 15 May 2019 10:05:50 +0200 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> Message-ID: <1557907550.29300.39.camel@Scenic.local> Am Dienstag, den 14.05.2019, 23:07 +0200 schrieb Gianluigi: > How did you install Gambas on Ubuntu? > Did you use PPA [0]? > Note: you cannot have multiple versions of Gambas on the same OS Wrong: you can not have multiple releases of a Gambas Version on the same Box. -- Amicalement Charlie From sharon at 455.co.il Wed May 15 15:11:09 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 15 May 2019 16:11:09 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <1557907550.29300.39.camel@Scenic.local> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> <1557907550.29300.39.camel@Scenic.local> Message-ID: <20190515131055.M44586@455.co.il> I installed on a new computer: Ubuntu desktop 19.04 And installed GAMBAS as follows: apt-get install gambas3 I created a little GTK3 software I did: Project-> Make-> Executable When I run the program through a command line: GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 /home/sharon/gambas/mygtk.gambas I get an error in the console like this: Segmentation fault (core dumped) I also tried to install on another new computer fedora 30 64 I installed GAMBAS as follows: dnf install gambas3 And there I get the message of: Segmentation fault (core dumped) Thank you ---------- Original Message ----------- From: Karl Reinl To: Gianluigi Cc: Gambas Mailing List Sent: Wed, 15 May 2019 10:05:50 +0200 Subject: Re: [Gambas-user] GTK+ with Broadway > Am Dienstag, den 14.05.2019, 23:07 +0200 schrieb Gianluigi: > > How did you install Gambas on Ubuntu? > > Did you use PPA [0]? > > Note: you cannot have multiple versions of Gambas on the same OS > > Wrong: you can not have multiple releases of a Gambas Version on the > same Box. > > -- > Amicalement > Charlie > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From sharon at 455.co.il Wed May 15 16:01:41 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 15 May 2019 17:01:41 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> Message-ID: <20190515140130.M60765@455.co.il> I installed on a new computer: Ubuntu desktop 19.04 And installed GAMBAS as follows: apt-get install gambas3 I created a little GTK3 software I did: Project-> Make-> Executable When I run the program through a command line: GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 /home/sharon/gambas/mygtk.gambas I get an error in the console like this: Segmentation fault (core dumped) I also tried to install on another new computer fedora 30 64 I installed GAMBAS as follows: dnf install gambas3 And there I get the message of: Segmentation fault (core dumped) Thank you ---------- Original Message ----------- From: Gianluigi To: Gambas Mailing List Sent: Tue, 14 May 2019 23:07:56 +0200 Subject: Re: [Gambas-user] GTK+ with Broadway > How did you install Gambas on Ubuntu? > Did you use PPA [0]? > Note: you cannot have multiple versions of Gambas on the same OS > > Regards > Gianluigi > > [0] http://gambaswiki.org/wiki/install/ubuntu#t1 > > Il giorno mar 14 mag 2019 alle ore 20:31 Mayost Sharon > ha scritto: > > > Hello > > > > I also tried to: > > Ubuntu Desktop > > It also gives me an error > > > > ---------- Original Message ----------- > > From: Beno?t Minisini > > To: Gambas Mailing List > > Sent: Tue, 14 May 2019 10:10:17 +0200 > > Subject: Re: [Gambas-user] GTK+ with Broadway > > > > > Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit : > > > > > > > > > > > > ??"? > > > > > > > > ???? ?????, > > > > > > > > > > > > ????? > > > > ????? ???? > > > > 072-2730831 > > > > 058-4002542 > > > > > > > > > > No crash at all when creating an executable, so I guess the problem is > > > in the outdated Gambas version made by Fedora... > > > > > > Now I'm afraid you will have to compile Gambas from sources, as I only > > > provide Ubuntu/Debian binary packages. > > > > > > Regards, > > > > > > -- > > > Beno?t Minisini > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From sharon at 455.co.il Wed May 15 17:40:01 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Wed, 15 May 2019 18:40:01 +0300 Subject: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH Message-ID: <20190515153541.M51508@455.co.il> Hello 1. I installed a new system: Fedora 30 64bit dnf install gambas3 I created a new GTK3 project I did not put any controls on the form As soon as I try to run the program through the IDE Debug-> Run I get an error: The program has stopped unexpectedly! Segmentation fault (11) If I create an execute And I run through a command line that gives an error message: Segmentation fault (core dumped) 2. I also tried to install on a new system: Fedora 30 64bit The GAMBAS through source code git clone -b stable --single-branch https://gitlab.com/gambas/gambas.git gambasstable And there after he finished all the COMPILE I run and there I get the same errors I attach the LOG file to the COMPILE -------------- next part -------------- A non-text attachment was scrubbed... Name: output4.zip Type: application/zip Size: 20604 bytes Desc: not available URL: From kicking177 at gmail.com Wed May 15 18:45:58 2019 From: kicking177 at gmail.com (KKing) Date: Wed, 15 May 2019 17:45:58 +0100 Subject: [Gambas-user] Gambas IDE Shortcut Keys Message-ID: <2ea27ce5-e7f5-ac3e-753e-d5eea146711b@gmail.com> << > When you press Ctrl+H you get a split view type screen, is there a > shortcut to activate (jump into) the other pane? I don't think so. If you find a free key for that, tell me. There are a lot of shortcuts, so almost all keys are in use! >> Are all the shortcut keys documented somewhere? I did a quick scan, could find the individual keys defined in the CKey.cpp per QT/GTK(s) but didn't find where the shortcut keys are actioned from. If there are no keys spare... what about the individual panes in a split view are treated as if different tabs (class/modules)? So Ctrl+PgDn would move you to the next tab (class or module) and if it is a split view it would be in the left pane, Ctrl+PgDn would then go the right pane and the next Ctrl+PgDn would then take you to next tab (class or module)? Ctrl+PgUp being the reverse? K. From jussi.lahtinen at gmail.com Wed May 15 20:59:33 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 15 May 2019 21:59:33 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <20190515140130.M60765@455.co.il> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> <20190515140130.M60765@455.co.il> Message-ID: Please go to the project folder and give these commands to terminal: gdb gbx3 set env GDK_BACKEND=broadway set env BROADWAY_DISPLAY=:5 run And when it crashes: bt This will give the backtrace, if the crash is from Gambas, then you need to compile Gambas without optimizations to get useful data. But first lets see the backtrace. Jussi On Wed, May 15, 2019 at 5:02 PM Mayost Sharon wrote: > I installed on a new computer: > Ubuntu desktop 19.04 > > And installed GAMBAS as follows: > apt-get install gambas3 > > I created a little GTK3 software > > I did: > Project-> Make-> Executable > > When I run the program through a command line: > > GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 /home/sharon/gambas/mygtk.gambas > > I get an error in the console like this: > Segmentation fault (core dumped) > > I also tried to install on another new computer > fedora 30 64 > I installed GAMBAS as follows: > dnf install gambas3 > > And there I get the message of: > Segmentation fault (core dumped) > > Thank you > > ---------- Original Message ----------- > From: Gianluigi > To: Gambas Mailing List > Sent: Tue, 14 May 2019 23:07:56 +0200 > Subject: Re: [Gambas-user] GTK+ with Broadway > > > How did you install Gambas on Ubuntu? > > Did you use PPA [0]? > > Note: you cannot have multiple versions of Gambas on the same OS > > > > Regards > > Gianluigi > > > > [0] http://gambaswiki.org/wiki/install/ubuntu#t1 > > > > Il giorno mar 14 mag 2019 alle ore 20:31 Mayost Sharon > > > ha scritto: > > > > > Hello > > > > > > I also tried to: > > > Ubuntu Desktop > > > It also gives me an error > > > > > > ---------- Original Message ----------- > > > From: Beno?t Minisini > > > To: Gambas Mailing List > > > Sent: Tue, 14 May 2019 10:10:17 +0200 > > > Subject: Re: [Gambas-user] GTK+ with Broadway > > > > > > > Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit : > > > > > > > > > > > > > > > ??"? > > > > > > > > > > ???? ?????, > > > > > > > > > > > > > > > ????? > > > > > ????? ???? > > > > > 072-2730831 > > > > > 058-4002542 > > > > > > > > > > > > > No crash at all when creating an executable, so I guess the problem > is > > > > in the outdated Gambas version made by Fedora... > > > > > > > > Now I'm afraid you will have to compile Gambas from sources, as I > only > > > > provide Ubuntu/Debian binary packages. > > > > > > > > Regards, > > > > > > > > -- > > > > Beno?t Minisini > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > ------- End of Original Message ------- > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Wed May 15 21:04:00 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Wed, 15 May 2019 22:04:00 +0300 Subject: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH In-Reply-To: <20190515153541.M51508@455.co.il> References: <20190515153541.M51508@455.co.il> Message-ID: "/root/gambasstable" ...what? Why the sources are in root? Only the "make install" command should by run as root with sudo. Jussi On Wed, May 15, 2019 at 6:41 PM Mayost Sharon wrote: > Hello > > 1. > I installed a new system: Fedora 30 64bit > dnf install gambas3 > I created a new GTK3 project > I did not put any controls on the form > As soon as I try to run the program through the IDE > Debug-> Run > I get an error: > The program has stopped unexpectedly! > Segmentation fault (11) > > If I create an execute > And I run through a command line that gives an error message: > Segmentation fault (core dumped) > > 2. > I also tried to install on a new system: Fedora 30 64bit > The GAMBAS through source code > git clone -b stable --single-branch https://gitlab.com/gambas/gambas.git > gambasstable > > And there after he finished all the COMPILE > I run and there I get the same errors > > I attach the LOG file to the COMPILE > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Thu May 16 10:28:50 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 16 May 2019 11:28:50 +0300 Subject: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH In-Reply-To: References: <20190515153541.M51508@455.co.il> Message-ID: <20190516082504.M66702@455.co.il> Do you mean that because I did it on the root So there's a problem? Or just as a advise I am not worried It's just a try I did not work real on this system Thank you ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Wed, 15 May 2019 22:04:00 +0300 Subject: Re: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH > "/root/gambasstable" ...what? > Why the sources are in root? Only the "make install" command should by run > as root with sudo. > > Jussi > > On Wed, May 15, 2019 at 6:41 PM Mayost Sharon wrote: > > > Hello > > > > 1. > > I installed a new system: Fedora 30 64bit > > dnf install gambas3 > > I created a new GTK3 project > > I did not put any controls on the form > > As soon as I try to run the program through the IDE > > Debug-> Run > > I get an error: > > The program has stopped unexpectedly! > > Segmentation fault (11) > > > > If I create an execute > > And I run through a command line that gives an error message: > > Segmentation fault (core dumped) > > > > 2. > > I also tried to install on a new system: Fedora 30 64bit > > The GAMBAS through source code > > git clone -b stable --single-branch https://gitlab.com/gambas/gambas.git > > gambasstable > > > > And there after he finished all the COMPILE > > I run and there I get the same errors > > > > I attach the LOG file to the COMPILE > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From genbraga1 at gmail.com Thu May 16 10:40:59 2019 From: genbraga1 at gmail.com (gen braga) Date: Thu, 16 May 2019 05:40:59 -0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <20190515131055.M44586@455.co.il> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> <1557907550.29300.39.camel@Scenic.local> <20190515131055.M44586@455.co.il> Message-ID: Maybe GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 gbr3 mygtk.gambas would do? I dont have any box to test It right now, its just a blind shot. - Gen Em qua, 15 de mai de 2019 10:12, Mayost Sharon escreveu: > I installed on a new computer: > Ubuntu desktop 19.04 > > And installed GAMBAS as follows: > apt-get install gambas3 > > I created a little GTK3 software > > I did: > Project-> Make-> Executable > > When I run the program through a command line: > > GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 /home/sharon/gambas/mygtk.gambas > > I get an error in the console like this: > Segmentation fault (core dumped) > > I also tried to install on another new computer > fedora 30 64 > I installed GAMBAS as follows: > dnf install gambas3 > > And there I get the message of: > Segmentation fault (core dumped) > > Thank you > > ---------- Original Message ----------- > From: Karl Reinl > To: Gianluigi > Cc: Gambas Mailing List > Sent: Wed, 15 May 2019 10:05:50 +0200 > Subject: Re: [Gambas-user] GTK+ with Broadway > > > Am Dienstag, den 14.05.2019, 23:07 +0200 schrieb Gianluigi: > > > How did you install Gambas on Ubuntu? > > > Did you use PPA [0]? > > > Note: you cannot have multiple versions of Gambas on the same OS > > > > Wrong: you can not have multiple releases of a Gambas Version on the > > same Box. > > > > -- > > Amicalement > > Charlie > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > ------- End of Original Message ------- > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Thu May 16 10:50:55 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 16 May 2019 11:50:55 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> <20190515140130.M60765@455.co.il> Message-ID: <20190516085035.M60962@455.co.il> Hello First thanks Attached is a file that shows that there is still an error Thanks ---------- Original Message ----------- From: Jussi Lahtinen To: Gambas Mailing List Sent: Wed, 15 May 2019 21:59:33 +0300 Subject: Re: [Gambas-user] GTK+ with Broadway > Please go to the project folder and give these commands to terminal: > gdb gbx3 > set env GDK_BACKEND=broadway > set env BROADWAY_DISPLAY=:5 > run > > And when it crashes: > bt > > This will give the backtrace, if the crash is from Gambas, then you need to > compile Gambas without optimizations to get useful data. > But first lets see the backtrace. > > Jussi > > On Wed, May 15, 2019 at 5:02 PM Mayost Sharon wrote: > > > I installed on a new computer: > > Ubuntu desktop 19.04 > > > > And installed GAMBAS as follows: > > apt-get install gambas3 > > > > I created a little GTK3 software > > > > I did: > > Project-> Make-> Executable > > > > When I run the program through a command line: > > > > GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 /home/sharon/gambas/mygtk.gambas > > > > I get an error in the console like this: > > Segmentation fault (core dumped) > > > > I also tried to install on another new computer > > fedora 30 64 > > I installed GAMBAS as follows: > > dnf install gambas3 > > > > And there I get the message of: > > Segmentation fault (core dumped) > > > > Thank you > > > > ---------- Original Message ----------- > > From: Gianluigi > > To: Gambas Mailing List > > Sent: Tue, 14 May 2019 23:07:56 +0200 > > Subject: Re: [Gambas-user] GTK+ with Broadway > > > > > How did you install Gambas on Ubuntu? > > > Did you use PPA [0]? > > > Note: you cannot have multiple versions of Gambas on the same OS > > > > > > Regards > > > Gianluigi > > > > > > [0] http://gambaswiki.org/wiki/install/ubuntu#t1 > > > > > > Il giorno mar 14 mag 2019 alle ore 20:31 Mayost Sharon > > > > > ha scritto: > > > > > > > Hello > > > > > > > > I also tried to: > > > > Ubuntu Desktop > > > > It also gives me an error > > > > > > > > ---------- Original Message ----------- > > > > From: Beno?t Minisini > > > > To: Gambas Mailing List > > > > Sent: Tue, 14 May 2019 10:10:17 +0200 > > > > Subject: Re: [Gambas-user] GTK+ with Broadway > > > > > > > > > Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit : > > > > > > > > > > > > > > > > > > ??"? > > > > > > > > > > > > ???? ?????, > > > > > > > > > > > > > > > > > > ????? > > > > > > ????? ???? > > > > > > 072-2730831 > > > > > > 058-4002542 > > > > > > > > > > > > > > > > No crash at all when creating an executable, so I guess the problem > > is > > > > > in the outdated Gambas version made by Fedora... > > > > > > > > > > Now I'm afraid you will have to compile Gambas from sources, as I > > only > > > > > provide Ubuntu/Debian binary packages. > > > > > > > > > > Regards, > > > > > > > > > > -- > > > > > Beno?t Minisini > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > ------- End of Original Message ------- > > > > > > > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > > ]---- > > > > > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- -------------- next part -------------- A non-text attachment was scrubbed... Name: error.zip Type: application/zip Size: 1059 bytes Desc: not available URL: From sharon at 455.co.il Thu May 16 10:55:55 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Thu, 16 May 2019 11:55:55 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <20190514183004.M68704@455.co.il> <1557907550.29300.39.camel@Scenic.local> <20190515131055.M44586@455.co.il> Message-ID: <20190516085503.M44568@455.co.il> Hello First thanks It also gives the error Thanks ---------- Original Message ----------- From: gen braga To: Gambas Mailing List Sent: Thu, 16 May 2019 05:40:59 -0300 Subject: Re: [Gambas-user] GTK+ with Broadway > Maybe > > GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 gbr3 mygtk.gambas > > would do? > > I dont have any box to test It right now, its just a blind shot. > - > Gen > > Em qua, 15 de mai de 2019 10:12, Mayost Sharon escreveu: > > > I installed on a new computer: > > Ubuntu desktop 19.04 > > > > And installed GAMBAS as follows: > > apt-get install gambas3 > > > > I created a little GTK3 software > > > > I did: > > Project-> Make-> Executable > > > > When I run the program through a command line: > > > > GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 /home/sharon/gambas/mygtk.gambas > > > > I get an error in the console like this: > > Segmentation fault (core dumped) > > > > I also tried to install on another new computer > > fedora 30 64 > > I installed GAMBAS as follows: > > dnf install gambas3 > > > > And there I get the message of: > > Segmentation fault (core dumped) > > > > Thank you > > > > ---------- Original Message ----------- > > From: Karl Reinl > > To: Gianluigi > > Cc: Gambas Mailing List > > Sent: Wed, 15 May 2019 10:05:50 +0200 > > Subject: Re: [Gambas-user] GTK+ with Broadway > > > > > Am Dienstag, den 14.05.2019, 23:07 +0200 schrieb Gianluigi: > > > > How did you install Gambas on Ubuntu? > > > > Did you use PPA [0]? > > > > Note: you cannot have multiple versions of Gambas on the same OS > > > > > > Wrong: you can not have multiple releases of a Gambas Version on the > > > same Box. > > > > > > -- > > > Amicalement > > > Charlie > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > ------- End of Original Message ------- From genbraga1 at gmail.com Thu May 16 13:02:53 2019 From: genbraga1 at gmail.com (gen braga) Date: Thu, 16 May 2019 08:02:53 -0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> Message-ID: Same behavior here, with updated Gambas from daily PPA. Attached the output from gdb, as Jussi said, and my sysinfo. - Gen 2019-05-14 5:10 GMT-03:00, Beno?t Minisini : > Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit : >> >> >> ??"? >> >> ???? ?????, >> >> >> ????? >> ????? ???? >> 072-2730831 >> 058-4002542 >> > > No crash at all when creating an executable, so I guess the problem is > in the outdated Gambas version made by Fedora... > > Now I'm afraid you will have to compile Gambas from sources, as I only > provide Ubuntu/Debian binary packages. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Lendo s?mbolos de gbx3...(no debugging symbols found)...conclu?do. (gdb) set env GDK_BACKEND=broadway (gdb) set env BROADWAY_DISPLAY=:5 (gdb) run Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe3255700 (LWP 4565)] [New Thread 0x7fffdbfff700 (LWP 4566)] [New Thread 0x7fffe25bd700 (LWP 4567)] Thread 1 "gbx3" received signal SIGSEGV, Segmentation fault. 0x00007ffff3cde0c4 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 (gdb) bt #0 0x00007ffff3cde0c4 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #1 0x00007ffff3cde59a in XInternAtom () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #2 0x00007ffff61b5921 in ?? () from /usr/lib/gambas3/gb.gtk3.so #3 0x00007ffff61ae641 in ?? () from /usr/lib/gambas3/gb.gtk3.so #4 0x0000000000404894 in ?? () #5 0x00007ffff7a2d830 in __libc_start_main (main=0x404560, argc=1, argv=0x7fffffffdcf8, init=, fini=, rtld_fini=, stack_end=0x7fffffffdce8) at ../csu/libc-start.c:291 #6 0x0000000000404ef9 in ?? () -------------- next part -------------- [System] Gambas=3.13.90 OperatingSystem=Linux Kernel=4.4.0-146-generic Architecture=x86_64 Distribution=Ubuntu 16.04.6 LTS Desktop=UNITY Theme=Gtk Language=pt_BR.UTF-8 Memory=7896M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-1.0.so.0.803.0 GTK+2=libgtk-x11-2.0.so.0.2400.30 GTK+3=libgtk-3.so.0.1800.9 OpenGL=libGL.so.1.2.0 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.58.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.5.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-DyVB0VkSo2 DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=pt_BR GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=4429 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/.gnupg/S.gpg-agent:0:1 GTK2_MODULES=overlay-scrollbar GTK_IM_MODULE=ibus GTK_MODULES=gail:atk-bridge:unity-gtk-module HOME= IM_CONFIG_PHASE=1 INSTANCE= JOB=unity-settings-daemon LANG=pt_BR.UTF-8 LANGUAGE=pt_BR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAM_KWALLET5_LOGIN=/tmp/kwallet5_.socket PAM_KWALLET_LOGIN=/tmp/kwallet_.socket PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PWD= QT4_IM_MODULE=xim QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=appmenu-qt5 SESSION=ubuntu SESSIONTYPE=gnome-session SESSION_MANAGER=local/:@/tmp/.ICE-unix/2259,unix/:/tmp/.ICE-unix/2259 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=America/Sao_Paulo UNITY_DEFAULT_PROFILE=unity UNITY_HAS_3D_SUPPORT=true UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1989 USER= XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CURRENT_DESKTOP=Unity XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_ID=c2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus From the_watchmann at yahoo.com Thu May 16 16:16:13 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 16 May 2019 14:16:13 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <497802234.2219331.1556615013711@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> Message-ID: <1223093897.468141.1558016173799@mail.yahoo.com> Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) On Monday, April 29, 2019, 7:24:06 PM GMT+2, Charlie Ogier wrote: Hi David, Try this code: - Dim dDate As Date Dim sDate As New String[] edtDate.Text = "2019-04-29" ??? ??? 'I presume this is the format you get so you can take this line out. It was for me to test. If edtDate.Text Then ? sDate = Split(edtDate.Text, "-") ? dDate = Date(sDate[0], sDate[1], sDate[2]) ? edtDate.Text = Format$(dDate, "dd/mm/yyyy") Endif If you use the ppa you can have the latest version of Gambas. Run the following command in Terminal and Gambas 3.13.0 will install. You will need a reasonable internet connection. sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3? Hope that helps, Charlie On 29/04/2019 14:40, David Silverwood via User wrote: Hi I'm new to the forum so please forgive any mistakes in protocol. I am also pretty new to Gambas and have a lot to learn, so please forgive once again any stupid questions or mistakes. Am trying to get Gambas dates to work for me. I have a SQLite3 database and as we know SQLite dates are stored as YYYY-MM-DD. It seems Gambas dates are stored MM-DD-YYYY which in South Africa doesn't work as our local dates are stored dd-mm-yyyy. Now, when I format$ my dateboxes/textboxes to read yyyy-mm-dd, depending on the date, I either get a blank box or the month and day are swopped and therefore also renders the date unusable here.? My localisation settings for Linux Mint 18.3 KDE are correct. How can I convince Gambas to use the local date settings or at least format the date to the 'correct' format for our area? The problem occurs when I load the dates from the database and try and format the dates to 'yyyy-mm-dd' using ? If edtDate.Text Then ? ? dDate = Val(edtDate.Text) ? ? edtDate.Text = Format$(dDate, "yyyy-mm-dd") ? Endif Any but any suggestions/directions would be much appreciated. Thanks 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: From charlie at cogier.com Thu May 16 16:41:35 2019 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 16 May 2019 15:41:35 +0100 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <1223093897.468141.1558016173799@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> Message-ID: Hi David, Can you create and post some code that demonstrates the problem. That will give us something to work with. Charlie On 16/05/2019 15:16, David Silverwood via User wrote: > Ok, so I'm back with the same problem. It seems to me Gambas has a > template format for a date and trying to change it is impossible? As > soon as Gambas sees it as a date, it reformats my formatting back to > the incorrect format and renders all the code useless. Is this the way > it is supposed to be? > > I need my date formatted to sqlite format, eg, yyyy-mm-dd > > However, soon as I do that, gambas switches it to mm/dd/yyyy. > > My OS regional settings are correct. Using Mint 18.3 KDE and Gambas > 3.13 (Thanks Charlie for the upgrade tip) > > The latter format is useless over here and inevitably gambas reads the > day and month wrong, by switching it... I've tried using Split and in > a debug /print statement I see that it does do exactly what I need, > but once the format hits the textbox, Gambas actually changes it back > to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as > Strings but Gambas seems to read dates as dates even if they are > dimensioned as strings? (which I know they are 'special' strings of > course). > > My sqlite3 database complains whenever I try and save the dates in > Gambas's preferred format. > > I know I am doing something wrong since no one else has this issue.... > but what? > > > > On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via > User wrote: > > > Thank you very much Charlie and Gianluigi. Those were pointers in the > right direction for me! I really appreciate your help. (Not to mention > I just learned a lot from both of your code too.) > > > On Monday, April 29, 2019, 7:24:06 PM GMT+2, Charlie Ogier > wrote: > > > Hi David, > > Try this code: - > > Dim dDate As Date > Dim sDate As New String[] > > edtDate.Text = "2019-04-29" ??? ??? 'I presume this is the format you > get so you can take this line out. It was for me to test. > > If edtDate.Text Then > ? sDate = Split(edtDate.Text, "-") > ? dDate = Date(sDate[0], sDate[1], sDate[2]) > ? edtDate.Text = Format$(dDate, "dd/mm/yyyy") > Endif > > If you use the ppa you can have the latest version of Gambas. Run the > following command in Terminal and Gambas 3.13.0 will install. You will > need a reasonable internet connection. > > sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get > update && sudo apt-get -y install gambas3 > > Hope that helps, > > Charlie > > On 29/04/2019 14:40, David Silverwood via User wrote: > Hi > I'm new to the forum so please forgive any mistakes in protocol. I am > also pretty new to Gambas and have a lot to learn, so please forgive > once again any stupid questions or mistakes. > Am trying to get Gambas dates to work for me. I have a SQLite3 > database and as we know SQLite dates are stored as YYYY-MM-DD. It > seems Gambas dates are stored MM-DD-YYYY which in South Africa doesn't > work as our local dates are stored dd-mm-yyyy. Now, when I format$ my > dateboxes/textboxes to read yyyy-mm-dd, depending on the date, I > either get a blank box or the month and day are swopped and therefore > also renders the date unusable here. > My localisation settings for Linux Mint 18.3 KDE are correct. > How can I convince Gambas to use the local date settings or at least > format the date to the 'correct' format for our area? > > The problem occurs when I load the dates from the database and try and > format the dates to 'yyyy-mm-dd' using > ? If edtDate.Text Then > ? ? dDate = Val(edtDate.Text) > ? ? edtDate.Text = Format$(dDate, "yyyy-mm-dd") > ? Endif > > Any but any suggestions/directions would be much appreciated. > > Thanks > > David > > ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]---- > > > ----[ 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: From the_watchmann at yahoo.com Thu May 16 17:37:02 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 16 May 2019 15:37:02 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> Message-ID: <135406260.1337560.1558021022381@mail.yahoo.com> Dim dDate As DateDim $Date As New String[] ? $Sql = "SELECT * FROM expenses WHERE supplier = '" & cboSupplier.Text & "' AND invoice = '" & edtInvoice.Text & "';"??? $Result = conMod.$Con.Exec($Sql)? ? ? ? ' execute sql statement above ? edtRef.Text = $Result!REF? edtDate.Text = $Result!DATE? cboSupplier.Text = $Result!SUPPLIER? edtVatNo.Text = $Result!VAT_NO? edtInvoice.Text = $Result!INVOICE? edtAmount.Text = $Result!AMOUNT? edtVat.Text = $Result!VAT? cboType.Text = $Result!TYPE?? edtCash.Text = $Result!CASH? edtChq.Text = $Result!CHEQ? edtCard.Text = $Result!CARD? edtEft.Text = $Result!EFT? edtCr.Text = $Result!CREDIT? edtOs.Text = $Result!OUTSTANDING? edtOrderDate.Text = $Result!ORDER_DATE? edtOrderNo.Text = $Result!ORDER_NO? cboTerms.Text = $Result!TERMS? edtDeliveryDate.Text = $Result!DELIVERY_DATE? edtDeliveryNo.Text = $Result!DELIVERY_RECEIPT? edtSettlement.Text = $Result!SETTLEMENT? edtDueDate.Text = $Result!DUE_DATE? edtChqNo.Text = $Result!CHQ_NO? edtDatePaid1.Text = $Result!DATE_PAID? edtAmtPaid1.Text = $Result!PAID? edtDatePaid2.Text = $Result!ADD_PAYM_DATE? edtAmtPaid2.Text = $Result!ADD_PAYM? edtComments.Text = $Result!COMMENT? cboDescription.Text = $Result!DESCRIPTION??? If edtDate.Text Then? ? ? edtDate.Text = Left(edtDate.Text, 10)? ? 'for some reason gambas uses mm/dd/yyyy hh:mm? ? ?$Date = Split(edtDate.Text, "/")????????????? ? 'split the date into sections to play with the date structure? ? ?dDate = Date(sDate[2], sDate[0], sDate[1])????? ? 'because gambas switches it around, try and switch it to correct format, eg yyyy mm dd? ? ?edtDate.Text = Format$(dDate, "yyyy-mm-dd")? ?' converts it back to the proper format... i hope? Endif??I suppose I'm doing this the long way (database and sql coding) but having come from a freebasic/ C and xbasic background this tends to make more sense to me. Never did this in VB6 as sqlite never existed back then. Thanks for looking into this for me, Charlie. David On Thursday, May 16, 2019, 5:25:07 PM GMT+2, Charlie Ogier wrote: Hi David, Can you create and post some code that demonstrates the problem. That will give us something to work with. Charlie On 16/05/2019 15:16, David Silverwood via User wrote: Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) On Monday, April 29, 2019, 7:24:06 PM GMT+2, Charlie Ogier wrote: Hi David, Try this code: - Dim dDate As Date Dim sDate As New String[] edtDate.Text = "2019-04-29" ??? ??? 'I presume this is the format you get so you can take this line out. It was for me to test. If edtDate.Text Then ? sDate = Split(edtDate.Text, "-") ? dDate = Date(sDate[0], sDate[1], sDate[2]) ? edtDate.Text = Format$(dDate, "dd/mm/yyyy") Endif If you use the ppa you can have the latest version of Gambas. Run the following command in Terminal and Gambas 3.13.0 will install. You will need a reasonable internet connection. sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3? Hope that helps, Charlie On 29/04/2019 14:40, David Silverwood via User wrote: Hi I'm new to the forum so please forgive any mistakes in protocol. I am also pretty new to Gambas and have a lot to learn, so please forgive once again any stupid questions or mistakes. Am trying to get Gambas dates to work for me. I have a SQLite3 database and as we know SQLite dates are stored as YYYY-MM-DD. It seems Gambas dates are stored MM-DD-YYYY which in South Africa doesn't work as our local dates are stored dd-mm-yyyy. Now, when I format$ my dateboxes/textboxes to read yyyy-mm-dd, depending on the date, I either get a blank box or the month and day are swopped and therefore also renders the date unusable here.? My localisation settings for Linux Mint 18.3 KDE are correct. How can I convince Gambas to use the local date settings or at least format the date to the 'correct' format for our area? The problem occurs when I load the dates from the database and try and format the dates to 'yyyy-mm-dd' using ? If edtDate.Text Then ? ? dDate = Val(edtDate.Text) ? ? edtDate.Text = Format$(dDate, "yyyy-mm-dd") ? Endif Any but any suggestions/directions would be much appreciated. Thanks 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 ]---- ----[ 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 Thu May 16 17:44:30 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 16 May 2019 15:44:30 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <135406260.1337560.1558021022381@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <135406260.1337560.1558021022381@mail.yahoo.com> Message-ID: <1798089447.1317248.1558021470121@mail.yahoo.com> Oops. typed too quickly... $Date is actually sDate all the way through. Was thinking of another form when I typed this. On Thursday, May 16, 2019, 5:38:06 PM GMT+2, David Silverwood via User wrote: Dim dDate As DateDim $Date As New String[] ? $Sql = "SELECT * FROM expenses WHERE supplier = '" & cboSupplier.Text & "' AND invoice = '" & edtInvoice.Text & "';"??? $Result = conMod.$Con.Exec($Sql)? ? ? ? ' execute sql statement above ? edtRef.Text = $Result!REF? edtDate.Text = $Result!DATE? cboSupplier.Text = $Result!SUPPLIER? edtVatNo.Text = $Result!VAT_NO? edtInvoice.Text = $Result!INVOICE? edtAmount.Text = $Result!AMOUNT? edtVat.Text = $Result!VAT? cboType.Text = $Result!TYPE?? edtCash.Text = $Result!CASH? edtChq.Text = $Result!CHEQ? edtCard.Text = $Result!CARD? edtEft.Text = $Result!EFT? edtCr.Text = $Result!CREDIT? edtOs.Text = $Result!OUTSTANDING? edtOrderDate.Text = $Result!ORDER_DATE? edtOrderNo.Text = $Result!ORDER_NO? cboTerms.Text = $Result!TERMS? edtDeliveryDate.Text = $Result!DELIVERY_DATE? edtDeliveryNo.Text = $Result!DELIVERY_RECEIPT? edtSettlement.Text = $Result!SETTLEMENT? edtDueDate.Text = $Result!DUE_DATE? edtChqNo.Text = $Result!CHQ_NO? edtDatePaid1.Text = $Result!DATE_PAID? edtAmtPaid1.Text = $Result!PAID? edtDatePaid2.Text = $Result!ADD_PAYM_DATE? edtAmtPaid2.Text = $Result!ADD_PAYM? edtComments.Text = $Result!COMMENT? cboDescription.Text = $Result!DESCRIPTION??? If edtDate.Text Then? ? ? edtDate.Text = Left(edtDate.Text, 10)? ? 'for some reason gambas uses mm/dd/yyyy hh:mm? ? ?$Date = Split(edtDate.Text, "/")????????????? ? 'split the date into sections to play with the date structure? ? ?dDate = Date(sDate[2], sDate[0], sDate[1])????? ? 'because gambas switches it around, try and switch it to correct format, eg yyyy mm dd? ? ?edtDate.Text = Format$(dDate, "yyyy-mm-dd")? ?' converts it back to the proper format... i hope? Endif??I suppose I'm doing this the long way (database and sql coding) but having come from a freebasic/ C and xbasic background this tends to make more sense to me. Never did this in VB6 as sqlite never existed back then. Thanks for looking into this for me, Charlie. David On Thursday, May 16, 2019, 5:25:07 PM GMT+2, Charlie Ogier wrote: Hi David, Can you create and post some code that demonstrates the problem. That will give us something to work with. Charlie On 16/05/2019 15:16, David Silverwood via User wrote: Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) On Monday, April 29, 2019, 7:24:06 PM GMT+2, Charlie Ogier wrote: Hi David, Try this code: - Dim dDate As Date Dim sDate As New String[] edtDate.Text = "2019-04-29" ??? ??? 'I presume this is the format you get so you can take this line out. It was for me to test. If edtDate.Text Then ? sDate = Split(edtDate.Text, "-") ? dDate = Date(sDate[0], sDate[1], sDate[2]) ? edtDate.Text = Format$(dDate, "dd/mm/yyyy") Endif If you use the ppa you can have the latest version of Gambas. Run the following command in Terminal and Gambas 3.13.0 will install. You will need a reasonable internet connection. sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3? Hope that helps, Charlie On 29/04/2019 14:40, David Silverwood via User wrote: Hi I'm new to the forum so please forgive any mistakes in protocol. I am also pretty new to Gambas and have a lot to learn, so please forgive once again any stupid questions or mistakes. Am trying to get Gambas dates to work for me. I have a SQLite3 database and as we know SQLite dates are stored as YYYY-MM-DD. It seems Gambas dates are stored MM-DD-YYYY which in South Africa doesn't work as our local dates are stored dd-mm-yyyy. Now, when I format$ my dateboxes/textboxes to read yyyy-mm-dd, depending on the date, I either get a blank box or the month and day are swopped and therefore also renders the date unusable here.? My localisation settings for Linux Mint 18.3 KDE are correct. How can I convince Gambas to use the local date settings or at least format the date to the 'correct' format for our area? The problem occurs when I load the dates from the database and try and format the dates to 'yyyy-mm-dd' using ? If edtDate.Text Then ? ? dDate = Val(edtDate.Text) ? ? edtDate.Text = Format$(dDate, "yyyy-mm-dd") ? Endif Any but any suggestions/directions would be much appreciated. Thanks 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 ]---- ----[ 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: From bagonergi at gmail.com Thu May 16 18:24:05 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 May 2019 18:24:05 +0200 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <1223093897.468141.1558016173799@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> Message-ID: I had shown you the correct code you need to look at in Report1. Regards Gianluigi Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > Ok, so I'm back with the same problem. It seems to me Gambas has a > template format for a date and trying to change it is impossible? As soon > as Gambas sees it as a date, it reformats my formatting back to the > incorrect format and renders all the code useless. Is this the way it is > supposed to be? > > I need my date formatted to sqlite format, eg, yyyy-mm-dd > > However, soon as I do that, gambas switches it to mm/dd/yyyy. > > My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 > (Thanks Charlie for the upgrade tip) > > The latter format is useless over here and inevitably gambas reads the day > and month wrong, by switching it... I've tried using Split and in a debug > /print statement I see that it does do exactly what I need, but once the > format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How > do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to > read dates as dates even if they are dimensioned as strings? (which I know > they are 'special' strings of course). > > My sqlite3 database complains whenever I try and save the dates in > Gambas's preferred format. > > I know I am doing something wrong since no one else has this issue.... but > what? > > > > On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User < > user at lists.gambas-basic.org> wrote: > > > Thank you very much Charlie and Gianluigi. Those were pointers in the > right direction for me! I really appreciate your help. (Not to mention I > just learned a lot from both of your code too.) > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Thu May 16 18:30:40 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 16 May 2019 16:30:40 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> Message-ID: <1063910624.1328279.1558024240877@mail.yahoo.com> Hi Gianluigi Are you referring to this portion:?Randomize? $hConn.Begin()? For i = 0 To $nRecords? ? nCasual = Rand(0, 30)? ? sName = aFirstName[nCasual]? ? nCasual = Rand(0, 30)? ? sSurname = aLastName[nCasual]? ? y = Rand(1959, 2000)? ? m = Rand(1, 12)? ? d = Rand(1, 28)? ? hDate = Date(y, m, d)? ? hResult = $hConn.Create("tuser")? ? hResult!usnam = sName? ? hResult!ussur = sSurname? ? hResult!usdat = hDate? ? hResult.Update? Next I actually found the code difficult to decipher but looking at it again I assume you are referring to hDate = Date(y, m, d)? On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi wrote: I had shown you the correct code you need to look at in Report1. RegardsGianluigi Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User ha scritto: Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Thu May 16 18:39:19 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 16 May 2019 16:39:19 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <1063910624.1328279.1558024240877@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> Message-ID: <632381728.1356037.1558024759202@mail.yahoo.com> To add if I do this, which I have also tried, it comes close but still swops the month and day around... ? ? If edtDate.Text Then? ? ? ? sDate = Left$(edtDate.Text, 10)? ? ? ? $Date = Split(sDate, "/")? ? ? ? Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0]? ? ? ? edtDate.Text = sDate? ? Endif Changing $Date[1] and $Date[0] around makes no difference whatsoever Regards David On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User wrote: Hi Gianluigi Are you referring to this portion:?Randomize? $hConn.Begin()? For i = 0 To $nRecords? ? nCasual = Rand(0, 30)? ? sName = aFirstName[nCasual]? ? nCasual = Rand(0, 30)? ? sSurname = aLastName[nCasual]? ? y = Rand(1959, 2000)? ? m = Rand(1, 12)? ? d = Rand(1, 28)? ? hDate = Date(y, m, d)? ? hResult = $hConn.Create("tuser")? ? hResult!usnam = sName? ? hResult!ussur = sSurname? ? hResult!usdat = hDate? ? hResult.Update? Next I actually found the code difficult to decipher but looking at it again I assume you are referring to hDate = Date(y, m, d)? On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi wrote: I had shown you the correct code you need to look at in Report1. RegardsGianluigi Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User ha scritto: Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) ----[ 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 Thu May 16 18:47:16 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 16 May 2019 16:47:16 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <632381728.1356037.1558024759202@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> Message-ID: <1540864515.1330483.1558025236446@mail.yahoo.com> and if I use today's date I get the following error... 'Error 21 in FExpenses.btnLoad_Click.143 The following error has occurred: Out of bounds' I think its stating that the month cannot be 16 and therefore out of bounds because I do not get this error when I use say 2019-05-05/ 2019-09-12 etc. As I said, my textbox swops the month and day around. Please bear with me. I am currently learning Gambas. On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User wrote: To add if I do this, which I have also tried, it comes close but still swops the month and day around... ? ? If edtDate.Text Then? ? ? ? sDate = Left$(edtDate.Text, 10)? ? ? ? $Date = Split(sDate, "/")? ? ? ? Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0]? ? ? ? edtDate.Text = sDate? ? Endif Changing $Date[1] and $Date[0] around makes no difference whatsoever Regards David On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User wrote: Hi Gianluigi Are you referring to this portion:?Randomize? $hConn.Begin()? For i = 0 To $nRecords? ? nCasual = Rand(0, 30)? ? sName = aFirstName[nCasual]? ? nCasual = Rand(0, 30)? ? sSurname = aLastName[nCasual]? ? y = Rand(1959, 2000)? ? m = Rand(1, 12)? ? d = Rand(1, 28)? ? hDate = Date(y, m, d)? ? hResult = $hConn.Create("tuser")? ? hResult!usnam = sName? ? hResult!ussur = sSurname? ? hResult!usdat = hDate? ? hResult.Update? Next I actually found the code difficult to decipher but looking at it again I assume you are referring to hDate = Date(y, m, d)? On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi wrote: I had shown you the correct code you need to look at in Report1. RegardsGianluigi Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User ha scritto: Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) ----[ 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: From bagonergi at gmail.com Thu May 16 19:32:56 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 May 2019 19:32:56 +0200 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <1540864515.1330483.1558025236446@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> Message-ID: You can write the Date value like this: hResult!usdat = hDate ' ReportTest And you can read it like this: Left(Str(hDate), 10) '(international) Or Format(hDate, "dd/mm/yyyy") '(Local) Regards Gianluigi Il giorno gio 16 mag 2019 alle ore 18:48 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > and if I use today's date I get the following error... > > 'Error 21 in FExpenses.btnLoad_Click.143 > > The following error has occurred: > Out of bounds' > > I think its stating that the month cannot be 16 and therefore out of > bounds because I do not get this error when I use say 2019-05-05/ > 2019-09-12 etc. As I said, my textbox swops the month and day around. > > Please bear with me. I am currently learning Gambas. > > > On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User < > user at lists.gambas-basic.org> wrote: > > > To add > > if I do this, which I have also tried, it comes close but still swops the > month and day around... > > If edtDate.Text Then > sDate = Left$(edtDate.Text, 10) > $Date = Split(sDate, "/") > Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0] > edtDate.Text = sDate > Endif > > Changing $Date[1] and $Date[0] around makes no difference whatsoever > > Regards > > David > > On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User < > user at lists.gambas-basic.org> wrote: > > > Hi Gianluigi > > Are you referring to this portion: > Randomize > $hConn.Begin() > For i = 0 To $nRecords > nCasual = Rand(0, 30) > sName = aFirstName[nCasual] > nCasual = Rand(0, 30) > sSurname = aLastName[nCasual] > y = Rand(1959, 2000) > m = Rand(1, 12) > d = Rand(1, 28) > hDate = Date(y, m, d) > hResult = $hConn.Create("tuser") > hResult!usnam = sName > hResult!ussur = sSurname > hResult!usdat = hDate > hResult.Update > Next > > I actually found the code difficult to decipher but looking at it again I > assume you are referring to hDate = Date(y, m, d)? > > > > On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi < > bagonergi at gmail.com> wrote: > > > I had shown you the correct code you need to look at in Report1. > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User < > user at lists.gambas-basic.org> ha scritto: > > Ok, so I'm back with the same problem. It seems to me Gambas has a > template format for a date and trying to change it is impossible? As soon > as Gambas sees it as a date, it reformats my formatting back to the > incorrect format and renders all the code useless. Is this the way it is > supposed to be? > > I need my date formatted to sqlite format, eg, yyyy-mm-dd > > However, soon as I do that, gambas switches it to mm/dd/yyyy. > > My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 > (Thanks Charlie for the upgrade tip) > > The latter format is useless over here and inevitably gambas reads the day > and month wrong, by switching it... I've tried using Split and in a debug > /print statement I see that it does do exactly what I need, but once the > format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How > do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to > read dates as dates even if they are dimensioned as strings? (which I know > they are 'special' strings of course). > > My sqlite3 database complains whenever I try and save the dates in > Gambas's preferred format. > > I know I am doing something wrong since no one else has this issue.... but > what? > > > > On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User < > user at lists.gambas-basic.org> wrote: > > > Thank you very much Charlie and Gianluigi. Those were pointers in the > right direction for me! I really appreciate your help. (Not to mention I > just learned a lot from both of your code too.) > > > ----[ 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 ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Thu May 16 19:45:10 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 May 2019 19:45:10 +0200 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> Message-ID: I'm not talking about using dates like Strings (Cogier) but using dates as Dates. This was taught to me by Fabien Bodard (here) and Sotema in Italy. If you always use the Date value for your calculations you will have no problems. Then when you need to show it to the user use Str or Format. Regards Gianluigi Il giorno gio 16 mag 2019 alle ore 19:32 Gianluigi ha scritto: > You can write the Date value like this: > hResult!usdat = hDate ' ReportTest > And you can read it like this: > Left(Str(hDate), 10) '(international) > Or > Format(hDate, "dd/mm/yyyy") '(Local) > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 18:48 David Silverwood via User < > user at lists.gambas-basic.org> ha scritto: > >> and if I use today's date I get the following error... >> >> 'Error 21 in FExpenses.btnLoad_Click.143 >> >> The following error has occurred: >> Out of bounds' >> >> I think its stating that the month cannot be 16 and therefore out of >> bounds because I do not get this error when I use say 2019-05-05/ >> 2019-09-12 etc. As I said, my textbox swops the month and day around. >> >> Please bear with me. I am currently learning Gambas. >> >> >> On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User < >> user at lists.gambas-basic.org> wrote: >> >> >> To add >> >> if I do this, which I have also tried, it comes close but still swops the >> month and day around... >> >> If edtDate.Text Then >> sDate = Left$(edtDate.Text, 10) >> $Date = Split(sDate, "/") >> Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0] >> edtDate.Text = sDate >> Endif >> >> Changing $Date[1] and $Date[0] around makes no difference whatsoever >> >> Regards >> >> David >> >> On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User < >> user at lists.gambas-basic.org> wrote: >> >> >> Hi Gianluigi >> >> Are you referring to this portion: >> Randomize >> $hConn.Begin() >> For i = 0 To $nRecords >> nCasual = Rand(0, 30) >> sName = aFirstName[nCasual] >> nCasual = Rand(0, 30) >> sSurname = aLastName[nCasual] >> y = Rand(1959, 2000) >> m = Rand(1, 12) >> d = Rand(1, 28) >> hDate = Date(y, m, d) >> hResult = $hConn.Create("tuser") >> hResult!usnam = sName >> hResult!ussur = sSurname >> hResult!usdat = hDate >> hResult.Update >> Next >> >> I actually found the code difficult to decipher but looking at it again I >> assume you are referring to hDate = Date(y, m, d)? >> >> >> >> On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi < >> bagonergi at gmail.com> wrote: >> >> >> I had shown you the correct code you need to look at in Report1. >> >> Regards >> Gianluigi >> >> Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User < >> user at lists.gambas-basic.org> ha scritto: >> >> Ok, so I'm back with the same problem. It seems to me Gambas has a >> template format for a date and trying to change it is impossible? As soon >> as Gambas sees it as a date, it reformats my formatting back to the >> incorrect format and renders all the code useless. Is this the way it is >> supposed to be? >> >> I need my date formatted to sqlite format, eg, yyyy-mm-dd >> >> However, soon as I do that, gambas switches it to mm/dd/yyyy. >> >> My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 >> (Thanks Charlie for the upgrade tip) >> >> The latter format is useless over here and inevitably gambas reads the >> day and month wrong, by switching it... I've tried using Split and in a >> debug /print statement I see that it does do exactly what I need, but once >> the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. >> How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems >> to read dates as dates even if they are dimensioned as strings? (which I >> know they are 'special' strings of course). >> >> My sqlite3 database complains whenever I try and save the dates in >> Gambas's preferred format. >> >> I know I am doing something wrong since no one else has this issue.... >> but what? >> >> >> >> On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User < >> user at lists.gambas-basic.org> wrote: >> >> >> Thank you very much Charlie and Gianluigi. Those were pointers in the >> right direction for me! I really appreciate your help. (Not to mention I >> just learned a lot from both of your code too.) >> >> >> ----[ 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 ]---- >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlie at cogier.com Thu May 16 19:01:01 2019 From: charlie at cogier.com (Charlie Ogier) Date: Thu, 16 May 2019 18:01:01 +0100 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <1540864515.1330483.1558025236446@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> Message-ID: <4f6d68c3-833e-2a12-8218-96cbf666f729@cogier.com> Hi David, What are you getting from the database as the following code works: - /*Public Sub Form_Open()*//* *//*Dim dDate As Date*//* *//*Dim sDate As New String[]*//* *//* *//*edtDate.Text = "05/16/2019"???????????????????????????? ''Is this what you get??*//* *//* *//*?If edtDate.Text Then*//* *//*??? edtDate.Text = Left(edtDate.Text, 10)*//* *//*?? sDate = Split(edtDate.Text, "/")*//* *//*?? dDate = Date(sDate[2], sDate[0], sDate[1])*//* *//*?? edtDate.Text = Format$(dDate, "yyyy-mm-dd")????????? 'Result: 2019-05-16*//* *//*?? edtDate2.Text = Format$(dDate, "dd-mm-yyyy")???????? 'Result: 16-05-2019*//* *//*?? edtDate3.Text = Format$(dDate, "dddd dd mmmm yyyy")? 'Result: Thursday 16 May 2019*//* *//*Endif*//* *//* *//*End*//* */ Charlie On 16/05/2019 17:47, David Silverwood via User wrote: > and if I use today's date I get the following error... > > 'Error 21 in FExpenses.btnLoad_Click.143 > > The following error has occurred: > > Out of bounds' > > I think its stating that the month cannot be 16 and therefore out of > bounds because I do not get this error when I use say 2019-05-05/ > 2019-09-12 etc. As I said, my textbox swops the month and day around. > > Please bear with me. I am currently learning Gambas. > > > On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User > wrote: > > > To add > > if I do this, which I have also tried, it comes close but still swops > the month and day around... > > ? ? If edtDate.Text Then > ? ? ? ? sDate = Left$(edtDate.Text, 10) > ? ? ? ? $Date = Split(sDate, "/") > ? ? ? ? Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0] > ? ? ? ? edtDate.Text = sDate > ? ? Endif > > Changing $Date[1] and $Date[0] around makes no difference whatsoever > > Regards > > David > > On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User > wrote: > > > Hi Gianluigi > > Are you referring to this portion: > ?Randomize > ? $hConn.Begin() > ? For i = 0 To $nRecords > ? ? nCasual = Rand(0, 30) > ? ? sName = aFirstName[nCasual] > ? ? nCasual = Rand(0, 30) > ? ? sSurname = aLastName[nCasual] > ? ? y = Rand(1959, 2000) > ? ? m = Rand(1, 12) > ? ? d = Rand(1, 28) > ? ? hDate = Date(y, m, d) > ? ? hResult = $hConn.Create("tuser") > ? ? hResult!usnam = sName > ? ? hResult!ussur = sSurname > ? ? hResult!usdat = hDate > ? ? hResult.Update > ? Next > > I actually found the code difficult to decipher but looking at it > again I assume you are referring to hDate = Date(y, m, d)? > > > > On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi > wrote: > > > I had shown you the correct code you need to look at in Report1. > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User > > ha > scritto: > > Ok, so I'm back with the same problem. It seems to me Gambas has a > template format for a date and trying to change it is impossible? > As soon as Gambas sees it as a date, it reformats my formatting > back to the incorrect format and renders all the code useless. Is > this the way it is supposed to be? > > I need my date formatted to sqlite format, eg, yyyy-mm-dd > > However, soon as I do that, gambas switches it to mm/dd/yyyy. > > My OS regional settings are correct. Using Mint 18.3 KDE and > Gambas 3.13 (Thanks Charlie for the upgrade tip) > > The latter format is useless over here and inevitably gambas reads > the day and month wrong, by switching it... I've tried using Split > and in a debug /print statement I see that it does do exactly what > I need, but once the format hits the textbox, Gambas actually > changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing > the dates as Strings but Gambas seems to read dates as dates even > if they are dimensioned as strings? (which I know they are > 'special' strings of course). > > My sqlite3 database complains whenever I try and save the dates in > Gambas's preferred format. > > I know I am doing something wrong since no one else has this > issue.... but what? > > > > On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood > via User > wrote: > > > Thank you very much Charlie and Gianluigi. Those were pointers in > the right direction for me! I really appreciate your help. (Not to > mention I just learned a lot from both of your code too.) > > > ----[ 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 > ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Thu May 16 20:37:12 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 16 May 2019 18:37:12 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <4f6d68c3-833e-2a12-8218-96cbf666f729@cogier.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> <4f6d68c3-833e-2a12-8218-96cbf666f729@cogier.com> Message-ID: <1574159031.1381696.1558031832464@mail.yahoo.com> Hi Charlie I also suspected it should work, but nope. I saved a screenshot of the result which I will attach. This was the code:? ? If edtDate.Text Then? ? ? ? sDate = Left$(edtDate.Text, 10)? ? ? ? $Date = Split(sDate, "/")? ? ? ? dDate = Date($Date[2], $Date[0], $Date[1])? ? ? ? edtDate.Text = Format$(dDate, "yyyy-mm-dd")? ? Endif Maybe it has something to do with the OS itself? My regional settings seem correct... On Thursday, May 16, 2019, 8:13:08 PM GMT+2, Charlie Ogier wrote: Hi David, What are you getting from the database as the following code works: - Public Sub Form_Open() Dim dDate As Date Dim sDate As New String[] edtDate.Text = "05/16/2019"???????????????????????????? ''Is this what you get?? ?If edtDate.Text Then ??? edtDate.Text = Left(edtDate.Text, 10) ?? sDate = Split(edtDate.Text, "/") ?? dDate = Date(sDate[2], sDate[0], sDate[1]) ?? edtDate.Text = Format$(dDate, "yyyy-mm-dd")????????? 'Result: 2019-05-16 ?? edtDate2.Text = Format$(dDate, "dd-mm-yyyy")???????? 'Result: 16-05-2019 ?? edtDate3.Text = Format$(dDate, "dddd dd mmmm yyyy")? 'Result: Thursday 16 May 2019 Endif End Charlie On 16/05/2019 17:47, David Silverwood via User wrote: and if I use today's date I get the following error... 'Error 21 in FExpenses.btnLoad_Click.143 The following error has occurred: Out of bounds' I think its stating that the month cannot be 16 and therefore out of bounds because I do not get this error when I use say 2019-05-05/ 2019-09-12 etc. As I said, my textbox swops the month and day around. Please bear with me. I am currently learning Gambas. On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User wrote: To add if I do this, which I have also tried, it comes close but still swops the month and day around... ? ? If edtDate.Text Then ? ? ? ? sDate = Left$(edtDate.Text, 10) ? ? ? ? $Date = Split(sDate, "/") ? ? ? ? Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0] ? ? ? ? edtDate.Text = sDate ? ? Endif Changing $Date[1] and $Date[0] around makes no difference whatsoever Regards David On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User wrote: Hi Gianluigi Are you referring to this portion: ?Randomize ? $hConn.Begin() ? For i = 0 To $nRecords ? ? nCasual = Rand(0, 30) ? ? sName = aFirstName[nCasual] ? ? nCasual = Rand(0, 30) ? ? sSurname = aLastName[nCasual] ? ? y = Rand(1959, 2000) ? ? m = Rand(1, 12) ? ? d = Rand(1, 28) ? ? hDate = Date(y, m, d) ? ? hResult = $hConn.Create("tuser") ? ? hResult!usnam = sName ? ? hResult!ussur = sSurname ? ? hResult!usdat = hDate ? ? hResult.Update ? Next I actually found the code difficult to decipher but looking at it again I assume you are referring to hDate = Date(y, m, d)? On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi wrote: I had shown you the correct code you need to look at in Report1. Regards Gianluigi Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User ha scritto: Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) ----[ 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 ]---- ----[ 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: Screenshot_20190516_202950.png Type: image/png Size: 135772 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Thu May 16 20:59:15 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 16 May 2019 21:59:15 +0300 Subject: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH In-Reply-To: <20190516082504.M66702@455.co.il> References: <20190515153541.M51508@455.co.il> <20190516082504.M66702@455.co.il> Message-ID: It's not good idea for sure, but it shouldn't cause crash either. But it might be something that triggers some bug. Jussi On Thu, May 16, 2019 at 11:29 AM Mayost Sharon wrote: > Do you mean that because I did it on the root > So there's a problem? > > Or just as a advise > I am not worried > It's just a try > I did not work real on this system > > Thank you > > ---------- Original Message ----------- > From: Jussi Lahtinen > To: Gambas Mailing List > Sent: Wed, 15 May 2019 22:04:00 +0300 > Subject: Re: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH > > > "/root/gambasstable" ...what? > > Why the sources are in root? Only the "make install" command should by > run > > as root with sudo. > > > > Jussi > > > > On Wed, May 15, 2019 at 6:41 PM Mayost Sharon wrote: > > > > > Hello > > > > > > 1. > > > I installed a new system: Fedora 30 64bit > > > dnf install gambas3 > > > I created a new GTK3 project > > > I did not put any controls on the form > > > As soon as I try to run the program through the IDE > > > Debug-> Run > > > I get an error: > > > The program has stopped unexpectedly! > > > Segmentation fault (11) > > > > > > If I create an execute > > > And I run through a command line that gives an error message: > > > Segmentation fault (core dumped) > > > > > > 2. > > > I also tried to install on a new system: Fedora 30 64bit > > > The GAMBAS through source code > > > git clone -b stable --single-branch > https://gitlab.com/gambas/gambas.git > > > gambasstable > > > > > > And there after he finished all the COMPILE > > > I run and there I get the same errors > > > > > > I attach the LOG file to the COMPILE > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net > ]---- > > > > ------- End of Original Message ------- > > > ----[ 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 May 16 22:11:28 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Thu, 16 May 2019 23:11:28 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> Message-ID: This may not be the same bug, than with Mayost. I guess it is from GTK3 component or GTK3 itself. Can either of you try to compile from the latest sources? Jussi On Thu, May 16, 2019 at 2:03 PM gen braga wrote: > Same behavior here, with updated Gambas from daily PPA. > > Attached the output from gdb, as Jussi said, and my sysinfo. > > - > Gen > > 2019-05-14 5:10 GMT-03:00, Beno?t Minisini : > > Le 14/05/2019 ? 09:54, Mayost Sharon a ?crit : > >> > >> > >> ??"? > >> > >> ???? ?????, > >> > >> > >> ????? > >> ????? ???? > >> 072-2730831 > >> 058-4002542 > >> > > > > No crash at all when creating an executable, so I guess the problem is > > in the outdated Gambas version made by Fedora... > > > > Now I'm afraid you will have to compile Gambas from sources, as I only > > provide Ubuntu/Debian binary packages. > > > > Regards, > > > > -- > > Beno?t Minisini > > > > ----[ 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 Thu May 16 22:46:34 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 16 May 2019 22:46:34 +0200 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> Message-ID: <81c58c17-1a12-7f38-0dd4-7f127e2cbab5@gmail.com> Le 16/05/2019 ? 13:02, gen braga a ?crit?: > Same behavior here, with updated Gambas from daily PPA. > > Attached the output from gdb, as Jussi said, and my sysinfo. > > - > Gen > I guess this is something that works only on X11. If you can compile Gambas from sources with debugging information enabled, I will be able to know exactly which line of code crashes from the stack backtrace. Regards, -- Beno?t Minisini From bagonergi at gmail.com Thu May 16 23:34:01 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 16 May 2019 23:34:01 +0200 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> Message-ID: Try the attached project Regards Gianluigi Il giorno gio 16 mag 2019 alle ore 19:45 Gianluigi ha scritto: > I'm not talking about using dates like Strings (Cogier) but using dates as > Dates. > This was taught to me by Fabien Bodard (here) and Sotema in Italy. > If you always use the Date value for your calculations you will have no > problems. > Then when you need to show it to the user use Str or Format. > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 19:32 Gianluigi > ha scritto: > >> You can write the Date value like this: >> hResult!usdat = hDate ' ReportTest >> And you can read it like this: >> Left(Str(hDate), 10) '(international) >> Or >> Format(hDate, "dd/mm/yyyy") '(Local) >> >> Regards >> Gianluigi >> >> Il giorno gio 16 mag 2019 alle ore 18:48 David Silverwood via User < >> user at lists.gambas-basic.org> ha scritto: >> >>> and if I use today's date I get the following error... >>> >>> 'Error 21 in FExpenses.btnLoad_Click.143 >>> >>> The following error has occurred: >>> Out of bounds' >>> >>> I think its stating that the month cannot be 16 and therefore out of >>> bounds because I do not get this error when I use say 2019-05-05/ >>> 2019-09-12 etc. As I said, my textbox swops the month and day around. >>> >>> Please bear with me. I am currently learning Gambas. >>> >>> >>> On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User < >>> user at lists.gambas-basic.org> wrote: >>> >>> >>> To add >>> >>> if I do this, which I have also tried, it comes close but still swops >>> the month and day around... >>> >>> If edtDate.Text Then >>> sDate = Left$(edtDate.Text, 10) >>> $Date = Split(sDate, "/") >>> Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0] >>> edtDate.Text = sDate >>> Endif >>> >>> Changing $Date[1] and $Date[0] around makes no difference whatsoever >>> >>> Regards >>> >>> David >>> >>> On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User < >>> user at lists.gambas-basic.org> wrote: >>> >>> >>> Hi Gianluigi >>> >>> Are you referring to this portion: >>> Randomize >>> $hConn.Begin() >>> For i = 0 To $nRecords >>> nCasual = Rand(0, 30) >>> sName = aFirstName[nCasual] >>> nCasual = Rand(0, 30) >>> sSurname = aLastName[nCasual] >>> y = Rand(1959, 2000) >>> m = Rand(1, 12) >>> d = Rand(1, 28) >>> hDate = Date(y, m, d) >>> hResult = $hConn.Create("tuser") >>> hResult!usnam = sName >>> hResult!ussur = sSurname >>> hResult!usdat = hDate >>> hResult.Update >>> Next >>> >>> I actually found the code difficult to decipher but looking at it again >>> I assume you are referring to hDate = Date(y, m, d)? >>> >>> >>> >>> On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi < >>> bagonergi at gmail.com> wrote: >>> >>> >>> I had shown you the correct code you need to look at in Report1. >>> >>> Regards >>> Gianluigi >>> >>> Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User < >>> user at lists.gambas-basic.org> ha scritto: >>> >>> Ok, so I'm back with the same problem. It seems to me Gambas has a >>> template format for a date and trying to change it is impossible? As soon >>> as Gambas sees it as a date, it reformats my formatting back to the >>> incorrect format and renders all the code useless. Is this the way it is >>> supposed to be? >>> >>> I need my date formatted to sqlite format, eg, yyyy-mm-dd >>> >>> However, soon as I do that, gambas switches it to mm/dd/yyyy. >>> >>> My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 >>> (Thanks Charlie for the upgrade tip) >>> >>> The latter format is useless over here and inevitably gambas reads the >>> day and month wrong, by switching it... I've tried using Split and in a >>> debug /print statement I see that it does do exactly what I need, but once >>> the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. >>> How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems >>> to read dates as dates even if they are dimensioned as strings? (which I >>> know they are 'special' strings of course). >>> >>> My sqlite3 database complains whenever I try and save the dates in >>> Gambas's preferred format. >>> >>> I know I am doing something wrong since no one else has this issue.... >>> but what? >>> >>> >>> >>> On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User >>> wrote: >>> >>> >>> Thank you very much Charlie and Gianluigi. Those were pointers in the >>> right direction for me! I really appreciate your help. (Not to mention I >>> just learned a lot from both of your code too.) >>> >>> >>> ----[ 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 ]---- >>> >>> ----[ 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: SQLiteDateTest-0.0.1.tar.gz Type: application/gzip Size: 11986 bytes Desc: not available URL: From jussi.lahtinen at gmail.com Fri May 17 00:02:43 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 17 May 2019 01:02:43 +0300 Subject: [Gambas-user] JIT Bug Message-ID: I managed to expose JIT bug, but not necessarily the one I was looking for... see attached project. Jussi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GambasTestercmd-0.10.18.tar.gz Type: application/gzip Size: 28199 bytes Desc: not available URL: From cedron at exede.net Fri May 17 05:47:08 2019 From: cedron at exede.net (Cedron Dawg) Date: Thu, 16 May 2019 23:47:08 -0400 (EDT) Subject: [Gambas-user] An HTML index of Gambas Classes Message-ID: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> I just posted a nice little index of all the Gambas class names at Gambas.One https://forum.gambas.one/viewtopic.php?f=4&t=708 The post is called "An HTML index of Gambas Classes" It is very plain vanilla html. Ced From the_watchmann at yahoo.com Fri May 17 08:59:52 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Fri, 17 May 2019 06:59:52 +0000 (UTC) Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> Message-ID: <711368565.1624513.1558076392291@mail.yahoo.com> Thanks Gianluigi The following explains my problem, from your example. Thank you very much! gbx3: warning: cannot switch to language 'en_ZA.UTF-8': No such file or directory. Did you install the corresponding locale packages? Tried it with EN_GB as well and again the same error. I suspect it may be a distro error as gambas probably switches to en_US as default? en_ZA should have installed when I originally installed Mint 18. Seems there is no en_ZA language pack out there ??? Checked the distro. Ah well, back to the drawing board. Thank you Charlie and Gianluigi, for your patience and your much valued assistance. Really appreciate it! David On Thursday, May 16, 2019, 11:35:07 PM GMT+2, Gianluigi wrote: Try the attached project RegardsGianluigi Il giorno gio 16 mag 2019 alle ore 19:45 Gianluigi ha scritto: I'm not talking about using dates like Strings (Cogier) but using dates as Dates. This was taught to me by Fabien Bodard (here) and Sotema in Italy. If you always use the Date value for your calculations you will have no problems. Then when you need to show it to the user use Str or Format. RegardsGianluigi Il giorno gio 16 mag 2019 alle ore 19:32 Gianluigi ha scritto: You can write the Date value like this: hResult!usdat = hDate ' ReportTest And you can read it like this: Left(Str(hDate), 10) '(international) Or Format(hDate, "dd/mm/yyyy") '(Local) RegardsGianluigi Il giorno gio 16 mag 2019 alle ore 18:48 David Silverwood via User ha scritto: and if I use today's date I get the following error... 'Error 21 in FExpenses.btnLoad_Click.143 The following error has occurred: Out of bounds' I think its stating that the month cannot be 16 and therefore out of bounds because I do not get this error when I use say 2019-05-05/ 2019-09-12 etc. As I said, my textbox swops the month and day around. Please bear with me. I am currently learning Gambas. On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User wrote: To add if I do this, which I have also tried, it comes close but still swops the month and day around... ? ? If edtDate.Text Then? ? ? ? sDate = Left$(edtDate.Text, 10)? ? ? ? $Date = Split(sDate, "/")? ? ? ? Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0]? ? ? ? edtDate.Text = sDate? ? Endif Changing $Date[1] and $Date[0] around makes no difference whatsoever Regards David On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User wrote: Hi Gianluigi Are you referring to this portion:?Randomize? $hConn.Begin()? For i = 0 To $nRecords? ? nCasual = Rand(0, 30)? ? sName = aFirstName[nCasual]? ? nCasual = Rand(0, 30)? ? sSurname = aLastName[nCasual]? ? y = Rand(1959, 2000)? ? m = Rand(1, 12)? ? d = Rand(1, 28)? ? hDate = Date(y, m, d)? ? hResult = $hConn.Create("tuser")? ? hResult!usnam = sName? ? hResult!ussur = sSurname? ? hResult!usdat = hDate? ? hResult.Update? Next I actually found the code difficult to decipher but looking at it again I assume you are referring to hDate = Date(y, m, d)? On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi wrote: I had shown you the correct code you need to look at in Report1. RegardsGianluigi Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User ha scritto: Ok, so I'm back with the same problem. It seems to me Gambas has a template format for a date and trying to change it is impossible? As soon as Gambas sees it as a date, it reformats my formatting back to the incorrect format and renders all the code useless. Is this the way it is supposed to be?? I need my date formatted to sqlite format, eg, yyyy-mm-dd However, soon as I do that, gambas switches it to mm/dd/yyyy. My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 (Thanks Charlie for the upgrade tip) The latter format is useless over here and inevitably gambas reads the day and month wrong, by switching it... I've tried using Split and in a debug /print statement I see that it does do exactly what I need, but once the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to read dates as dates even if they are dimensioned as strings? (which I know they are 'special' strings of course). My sqlite3 database complains whenever I try and save the dates in Gambas's preferred format. I know I am doing something wrong since no one else has this issue.... but what? On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User wrote: Thank you very much Charlie and Gianluigi. Those were pointers in the right direction for me! I really appreciate your help. (Not to mention I just learned a lot from both of your code too.) ----[ 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 ]---- ----[ 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 Fri May 17 09:42:40 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 17 May 2019 09:42:40 +0200 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: <711368565.1624513.1558076392291@mail.yahoo.com> References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> <711368565.1624513.1558076392291@mail.yahoo.com> Message-ID: Take look here: https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue/272892#272892 Gianluigi Il giorno ven 17 mag 2019 alle ore 09:00 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > Thanks Gianluigi > > The following explains my problem, from your example. Thank you very much! > > gbx3: warning: cannot switch to language 'en_ZA > .UTF-8': No such file or directory. Did you ins > tall the corresponding locale packages? > > Tried it with EN_GB as well and again the same error. I suspect it may be > a distro error as gambas probably switches to en_US as default? en_ZA > should have installed when I originally installed Mint 18. Seems there is > no en_ZA language pack out there ??? Checked the distro. Ah well, back to > the drawing board. > > Thank you Charlie and Gianluigi, for your patience and your much valued > assistance. Really appreciate it! > > David > > > On Thursday, May 16, 2019, 11:35:07 PM GMT+2, Gianluigi < > bagonergi at gmail.com> wrote: > > > Try the attached project > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 19:45 Gianluigi > ha scritto: > > I'm not talking about using dates like Strings (Cogier) but using dates as > Dates. > This was taught to me by Fabien Bodard (here) and Sotema in Italy. > If you always use the Date value for your calculations you will have no > problems. > Then when you need to show it to the user use Str or Format. > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 19:32 Gianluigi > ha scritto: > > You can write the Date value like this: > hResult!usdat = hDate ' ReportTest > And you can read it like this: > Left(Str(hDate), 10) '(international) > Or > Format(hDate, "dd/mm/yyyy") '(Local) > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 18:48 David Silverwood via User < > user at lists.gambas-basic.org> ha scritto: > > and if I use today's date I get the following error... > > 'Error 21 in FExpenses.btnLoad_Click.143 > > The following error has occurred: > Out of bounds' > > I think its stating that the month cannot be 16 and therefore out of > bounds because I do not get this error when I use say 2019-05-05/ > 2019-09-12 etc. As I said, my textbox swops the month and day around. > > Please bear with me. I am currently learning Gambas. > > > On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User < > user at lists.gambas-basic.org> wrote: > > > To add > > if I do this, which I have also tried, it comes close but still swops the > month and day around... > > If edtDate.Text Then > sDate = Left$(edtDate.Text, 10) > $Date = Split(sDate, "/") > Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0] > edtDate.Text = sDate > Endif > > Changing $Date[1] and $Date[0] around makes no difference whatsoever > > Regards > > David > > On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User < > user at lists.gambas-basic.org> wrote: > > > Hi Gianluigi > > Are you referring to this portion: > Randomize > $hConn.Begin() > For i = 0 To $nRecords > nCasual = Rand(0, 30) > sName = aFirstName[nCasual] > nCasual = Rand(0, 30) > sSurname = aLastName[nCasual] > y = Rand(1959, 2000) > m = Rand(1, 12) > d = Rand(1, 28) > hDate = Date(y, m, d) > hResult = $hConn.Create("tuser") > hResult!usnam = sName > hResult!ussur = sSurname > hResult!usdat = hDate > hResult.Update > Next > > I actually found the code difficult to decipher but looking at it again I > assume you are referring to hDate = Date(y, m, d)? > > > > On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi < > bagonergi at gmail.com> wrote: > > > I had shown you the correct code you need to look at in Report1. > > Regards > Gianluigi > > Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User < > user at lists.gambas-basic.org> ha scritto: > > Ok, so I'm back with the same problem. It seems to me Gambas has a > template format for a date and trying to change it is impossible? As soon > as Gambas sees it as a date, it reformats my formatting back to the > incorrect format and renders all the code useless. Is this the way it is > supposed to be? > > I need my date formatted to sqlite format, eg, yyyy-mm-dd > > However, soon as I do that, gambas switches it to mm/dd/yyyy. > > My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 > (Thanks Charlie for the upgrade tip) > > The latter format is useless over here and inevitably gambas reads the day > and month wrong, by switching it... I've tried using Split and in a debug > /print statement I see that it does do exactly what I need, but once the > format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. How > do I stop that? I tried DIM'ing the dates as Strings but Gambas seems to > read dates as dates even if they are dimensioned as strings? (which I know > they are 'special' strings of course). > > My sqlite3 database complains whenever I try and save the dates in > Gambas's preferred format. > > I know I am doing something wrong since no one else has this issue.... but > what? > > > > On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User < > user at lists.gambas-basic.org> wrote: > > > Thank you very much Charlie and Gianluigi. Those were pointers in the > right direction for me! I really appreciate your help. (Not to mention I > just learned a lot from both of your code too.) > > > ----[ 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 ]---- > > ----[ 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: From bagonergi at gmail.com Fri May 17 09:52:01 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 17 May 2019 09:52:01 +0200 Subject: [Gambas-user] DATE function Gambas 3.8.4 (Distro) In-Reply-To: References: <2077851537.1776294.1556545245218.ref@mail.yahoo.com> <2077851537.1776294.1556545245218@mail.yahoo.com> <497802234.2219331.1556615013711@mail.yahoo.com> <1223093897.468141.1558016173799@mail.yahoo.com> <1063910624.1328279.1558024240877@mail.yahoo.com> <632381728.1356037.1558024759202@mail.yahoo.com> <1540864515.1330483.1558025236446@mail.yahoo.com> <711368565.1624513.1558076392291@mail.yahoo.com> Message-ID: Sorry, I would look at the answer 501 Gianluigi Il giorno ven 17 mag 2019 alle ore 09:42 Gianluigi ha scritto: > Take look here: > > https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue/272892#272892 > > Gianluigi > > Il giorno ven 17 mag 2019 alle ore 09:00 David Silverwood via User < > user at lists.gambas-basic.org> ha scritto: > >> Thanks Gianluigi >> >> The following explains my problem, from your example. Thank you very much! >> >> gbx3: warning: cannot switch to language 'en_ZA >> .UTF-8': No such file or directory. Did you ins >> tall the corresponding locale packages? >> >> Tried it with EN_GB as well and again the same error. I suspect it may be >> a distro error as gambas probably switches to en_US as default? en_ZA >> should have installed when I originally installed Mint 18. Seems there is >> no en_ZA language pack out there ??? Checked the distro. Ah well, back to >> the drawing board. >> >> Thank you Charlie and Gianluigi, for your patience and your much valued >> assistance. Really appreciate it! >> >> David >> >> >> On Thursday, May 16, 2019, 11:35:07 PM GMT+2, Gianluigi < >> bagonergi at gmail.com> wrote: >> >> >> Try the attached project >> >> Regards >> Gianluigi >> >> Il giorno gio 16 mag 2019 alle ore 19:45 Gianluigi >> ha scritto: >> >> I'm not talking about using dates like Strings (Cogier) but using dates >> as Dates. >> This was taught to me by Fabien Bodard (here) and Sotema in Italy. >> If you always use the Date value for your calculations you will have no >> problems. >> Then when you need to show it to the user use Str or Format. >> >> Regards >> Gianluigi >> >> Il giorno gio 16 mag 2019 alle ore 19:32 Gianluigi >> ha scritto: >> >> You can write the Date value like this: >> hResult!usdat = hDate ' ReportTest >> And you can read it like this: >> Left(Str(hDate), 10) '(international) >> Or >> Format(hDate, "dd/mm/yyyy") '(Local) >> >> Regards >> Gianluigi >> >> Il giorno gio 16 mag 2019 alle ore 18:48 David Silverwood via User < >> user at lists.gambas-basic.org> ha scritto: >> >> and if I use today's date I get the following error... >> >> 'Error 21 in FExpenses.btnLoad_Click.143 >> >> The following error has occurred: >> Out of bounds' >> >> I think its stating that the month cannot be 16 and therefore out of >> bounds because I do not get this error when I use say 2019-05-05/ >> 2019-09-12 etc. As I said, my textbox swops the month and day around. >> >> Please bear with me. I am currently learning Gambas. >> >> >> On Thursday, May 16, 2019, 6:40:08 PM GMT+2, David Silverwood via User < >> user at lists.gambas-basic.org> wrote: >> >> >> To add >> >> if I do this, which I have also tried, it comes close but still swops the >> month and day around... >> >> If edtDate.Text Then >> sDate = Left$(edtDate.Text, 10) >> $Date = Split(sDate, "/") >> Debug sDate = $Date[2] & "-" & $Date[1] & "-" & $Date[0] >> edtDate.Text = sDate >> Endif >> >> Changing $Date[1] and $Date[0] around makes no difference whatsoever >> >> Regards >> >> David >> >> On Thursday, May 16, 2019, 6:31:07 PM GMT+2, David Silverwood via User < >> user at lists.gambas-basic.org> wrote: >> >> >> Hi Gianluigi >> >> Are you referring to this portion: >> Randomize >> $hConn.Begin() >> For i = 0 To $nRecords >> nCasual = Rand(0, 30) >> sName = aFirstName[nCasual] >> nCasual = Rand(0, 30) >> sSurname = aLastName[nCasual] >> y = Rand(1959, 2000) >> m = Rand(1, 12) >> d = Rand(1, 28) >> hDate = Date(y, m, d) >> hResult = $hConn.Create("tuser") >> hResult!usnam = sName >> hResult!ussur = sSurname >> hResult!usdat = hDate >> hResult.Update >> Next >> >> I actually found the code difficult to decipher but looking at it again I >> assume you are referring to hDate = Date(y, m, d)? >> >> >> >> On Thursday, May 16, 2019, 6:25:09 PM GMT+2, Gianluigi < >> bagonergi at gmail.com> wrote: >> >> >> I had shown you the correct code you need to look at in Report1. >> >> Regards >> Gianluigi >> >> Il giorno gio 16 mag 2019 alle ore 16:17 David Silverwood via User < >> user at lists.gambas-basic.org> ha scritto: >> >> Ok, so I'm back with the same problem. It seems to me Gambas has a >> template format for a date and trying to change it is impossible? As soon >> as Gambas sees it as a date, it reformats my formatting back to the >> incorrect format and renders all the code useless. Is this the way it is >> supposed to be? >> >> I need my date formatted to sqlite format, eg, yyyy-mm-dd >> >> However, soon as I do that, gambas switches it to mm/dd/yyyy. >> >> My OS regional settings are correct. Using Mint 18.3 KDE and Gambas 3.13 >> (Thanks Charlie for the upgrade tip) >> >> The latter format is useless over here and inevitably gambas reads the >> day and month wrong, by switching it... I've tried using Split and in a >> debug /print statement I see that it does do exactly what I need, but once >> the format hits the textbox, Gambas actually changes it back to mm/dd/yyyy. >> How do I stop that? I tried DIM'ing the dates as Strings but Gambas seems >> to read dates as dates even if they are dimensioned as strings? (which I >> know they are 'special' strings of course). >> >> My sqlite3 database complains whenever I try and save the dates in >> Gambas's preferred format. >> >> I know I am doing something wrong since no one else has this issue.... >> but what? >> >> >> >> On Tuesday, April 30, 2019, 11:05:06 AM GMT+2, David Silverwood via User < >> user at lists.gambas-basic.org> wrote: >> >> >> Thank you very much Charlie and Gianluigi. Those were pointers in the >> right direction for me! I really appreciate your help. (Not to mention I >> just learned a lot from both of your code too.) >> >> >> ----[ 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 ]---- >> >> ----[ 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: From sharon at 455.co.il Fri May 17 15:02:46 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Fri, 17 May 2019 16:02:46 +0300 Subject: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH In-Reply-To: <20190515153541.M51508@455.co.il> References: <20190515153541.M51508@455.co.il> Message-ID: <20190517125502.M52237@455.co.il> Hello When I login to the system with X11 It works fine When i login with wayland It crashes ---------- Original Message ----------- From: "Mayost Sharon" To: user at lists.gambas-basic.org Sent: Wed, 15 May 2019 18:40:01 +0300 Subject: [Gambas-user] gambas3 and GTK3 on fedora 30 CRASH > Hello > > 1. > I installed a new system: Fedora 30 64bit > dnf install gambas3 > I created a new GTK3 project > I did not put any controls on the form > As soon as I try to run the program through the IDE > Debug-> Run > I get an error: > The program has stopped unexpectedly! > Segmentation fault (11) > > If I create an execute > And I run through a command line that gives an error message: > Segmentation fault (core dumped) > > 2. > I also tried to install on a new system: Fedora 30 64bit > The GAMBAS through source code > git clone -b stable --single-branch https://gitlab.com/gambas/gambas.git gambasstable > > And there after he finished all the COMPILE > I run and there I get the same errors > > I attach the LOG file to the COMPILE ------- End of Original Message ------- From genbraga1 at gmail.com Fri May 17 17:09:19 2019 From: genbraga1 at gmail.com (gen braga) Date: Fri, 17 May 2019 12:09:19 -0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <81c58c17-1a12-7f38-0dd4-7f127e2cbab5@gmail.com> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <81c58c17-1a12-7f38-0dd4-7f127e2cbab5@gmail.com> Message-ID: Here it goes. - Gen 2019-05-16 17:46 GMT-03:00, Beno?t Minisini : > Le 16/05/2019 ? 13:02, gen braga a ?crit : >> Same behavior here, with updated Gambas from daily PPA. >> >> Attached the output from gdb, as Jussi said, and my sysinfo. >> >> - >> Gen >> > > I guess this is something that works only on X11. If you can compile > Gambas from sources with debugging information enabled, I will be able > to know exactly which line of code crashes from the stack backtrace. > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- gen at genbraga:~/projects/SimpleGTK$ gdb gbx3 GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Lendo s?mbolos de gbx3...conclu?do. (gdb) set env GDK_BACKEND=broadway (gdb) set env BROADWAY_DISPLAY=:5 (gdb) run Starting program: /usr/bin/gbx3 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe85fd700 (LWP 29293)] [New Thread 0x7fffe7dfc700 (LWP 29294)] [New Thread 0x7fffe7165700 (LWP 29295)] Thread 1 "gbx3" received signal SIGSEGV, Segmentation fault. 0x000000000847c748 in ?? () (gdb) bt #0 0x000000000847c748 in ?? () #1 0x00007ffff3cc757c in XInternAtom () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #2 0x00007ffff61b0fb0 in init_atoms () at x11.c:129 #3 0x00007ffff61b185a in X11_init (display=0x87b000, root=8842912) at x11.c:352 #4 0x00007ffff61a8ef2 in my_main (argc=0x7fffffffd9bc, argv=0x7fffffffd9b0) at main.cpp:389 #5 0x0000000000438f68 in main (argc=1, argv=0x7fffffffde38) at gbx.c:391 (gdb) From peterpeyotle at gmx.de Fri May 17 17:29:15 2019 From: peterpeyotle at gmx.de (Peter Peyotle) Date: Fri, 17 May 2019 17:29:15 +0200 Subject: [Gambas-user] Tableview with vertical Header Message-ID: Hello and good evening I use a tableview with a vertical header. Unfortunately, I find no settings for the width of the vertical header and the ability to set the font left-aligned. This is not a problem with a horizontal header and can be set up and read out via the column properties. But what about a vertical header? This does not correspond to the Column value -1 or so. Best regards Klaus-Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 17 17:36:45 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 May 2019 17:36:45 +0200 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <81c58c17-1a12-7f38-0dd4-7f127e2cbab5@gmail.com> Message-ID: <57c8d470-ebd0-d9a2-0720-46413fa92a82@gmail.com> Le 17/05/2019 ? 17:09, gen braga a ?crit?: > Here it goes. > > - > Gen > > Thread 1 "gbx3" received signal SIGSEGV, Segmentation fault. > 0x000000000847c748 in ?? () > (gdb) bt > #0 0x000000000847c748 in ?? () > #1 0x00007ffff3cc757c in XInternAtom () from /usr/lib/x86_64-linux-gnu/libX11.so.6 > #2 0x00007ffff61b0fb0 in init_atoms () at x11.c:129 > #3 0x00007ffff61b185a in X11_init (display=0x87b000, root=8842912) at x11.c:352 > #4 0x00007ffff61a8ef2 in my_main (argc=0x7fffffffd9bc, argv=0x7fffffffd9b0) at main.cpp:389 > #5 0x0000000000438f68 in main (argc=1, argv=0x7fffffffde38) at gbx.c:391 > (gdb) > The my_main() function asks the X11 display to GTK+ and send it to X11_init() that does the X11 initialization stuff (creating X11 atoms...). But I guess that with the GTK+ Broadway hack, the X11 display is NULL. And so all X11 stuff will crash. Strangely, the macro GDK_WINDOWING_X11 is defined. Otherwise the X11_init() function wouldn't be called. I don't GTK+ Broadway at all, so I can't say more. -- Beno?t Minisini From g4mba5 at gmail.com Fri May 17 17:40:32 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 May 2019 17:40:32 +0200 Subject: [Gambas-user] Tableview with vertical Header In-Reply-To: References: Message-ID: Le 17/05/2019 ? 17:29, Peter Peyotle a ?crit?: > Hello and good evening > > I use a tableview with a vertical header. > Unfortunately, I find no settings for the width of the vertical header > and the ability to set the font left-aligned. > This is not a problem with a horizontal header and can be set up and > read out via the column properties. But what about a vertical header? > This does not correspond to the Column value -1 or so. > > Best regards > Klaus-Peter > I guess that this limitation comes from the past, when the GridView was native. Now it should be possible to define the alignment of the row header without problem. Its width can already be defined with the GridView.Rows.Width property. Regards, -- Beno?t Minisini From cedron at exede.net Fri May 17 17:57:11 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 17 May 2019 11:57:11 -0400 (EDT) Subject: [Gambas-user] Shapes, Lines, and Splines Message-ID: <1455165246.33869201.1558108631119.JavaMail.zimbra@exede.net> VB has shapes and lines as form controls. Would anybody else like to see those in Gambas? In addition, I would like to see Splines (cubic splines) added to the list. This would make it possible to render clickable diagrams easily on a form. Speaking of diagrams, I'm looking at .Graph.Vertex and .Graph.Edge as maybe being part of this. Thoughts? From bagonergi at gmail.com Fri May 17 18:50:34 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 17 May 2019 18:50:34 +0200 Subject: [Gambas-user] Tableview with vertical Header In-Reply-To: References: Message-ID: Il giorno ven 17 mag 2019 alle ore 17:41 Beno?t Minisini ha scritto: > Le 17/05/2019 ? 17:29, Peter Peyotle a ?crit : > > Hello and good evening > > > > I use a tableview with a vertical header. > > Unfortunately, I find no settings for the width of the vertical header > > and the ability to set the font left-aligned. > > This is not a problem with a horizontal header and can be set up and > > read out via the column properties. But what about a vertical header? > > This does not correspond to the Column value -1 or so. > > > > Best regards > > Klaus-Peter > > > > I guess that this limitation comes from the past, when the GridView was > native. > > Now it should be possible to define the alignment of the row header > without problem. > > Its width can already be defined with the GridView.Rows.Width property. > > Regards, > > -- > Beno?t Minisini > Hi Peter, something like that: Public Sub Form_Open() With TableView1 .Rows.Count = 4 .Rows.Width = -1 .Columns.Count = 4 .Rows[0].Text = TextAlign("Coca Cola") .Rows[1].Text = TextAlign("Seven Up") .Rows[2].Text = TextAlign("Cervesa") .Rows[3].Text = TextAlign("Chinotto") .Header = GridView.Vertical End With For i As Integer = 0 To 3 TableView1[i, 0].Text = String(10, "*") TableView1[i, 1].Text = String(10, "*") TableView1[i, 2].Text = String(10, "*") TableView1[i, 3].Text = String(10, "*") Next End Private Function TextAlign(value As String) As String Return Space(30 - String.Len(value)) & value End Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 17 21:43:26 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 May 2019 21:43:26 +0200 Subject: [Gambas-user] Using dates in Gambas Message-ID: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> Hi, As I notice that almost nobody suceeds in dealing with date & time correctly, I started to wrote a overview about that in the wiki. http://gambaswiki.org/wiki/doc/date Please feal free to comment and modify this page so that date & time management becomes as clear as possible. This is still a work in progress, and I especially need "how to" code example about dates. Regards, -- Beno?t Minisini From g4mba5 at gmail.com Fri May 17 21:49:18 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 May 2019 21:49:18 +0200 Subject: [Gambas-user] I am now a company Message-ID: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Hi again, This is an unusual mail about my private life. I have resigned from my job since May 1st, and created a "self-employed" company. I don't know the exact term in english. In french, we say "auto-entreprise". It's a company with only one person in it, your servant, and whose name is my own name. I am a company now. I actually continue to work for my old boss (as everything I done for him was done with Gambas), but now as a contractor. At least we agreed to do that until December. After december, next year, I will be opened to any opportunity! ? My life? Regards, -- Beno?t Minisini From d4t4full at gmail.com Fri May 17 21:53:39 2019 From: d4t4full at gmail.com (d4t4full at gmail.com) Date: Fri, 17 May 2019 16:53:39 -0300 Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: Beno?t, Wishing you the best on your new adventure/company! zxMarce. On May 17, 2019, 16:50, at 16:50, "Beno?t Minisini" wrote: >Hi again, > >This is an unusual mail about my private life. > >I have resigned from my job since May 1st, and created a >"self-employed" >company. I don't know the exact term in english. In french, we say >"auto-entreprise". > >It's a company with only one person in it, your servant, and whose name > >is my own name. I am a company now. > >I actually continue to work for my old boss (as everything I done for >him was done with Gambas), but now as a contractor. > >At least we agreed to do that until December. > >After december, next year, I will be opened to any opportunity! > >? My life? > >Regards, > >-- >Beno?t Minisini > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net >]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Fri May 17 21:57:03 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Fri, 17 May 2019 22:57:03 +0300 Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: You are still going to work with Gambas? Jussi On Fri, May 17, 2019 at 10:50 PM Beno?t Minisini wrote: > Hi again, > > This is an unusual mail about my private life. > > I have resigned from my job since May 1st, and created a "self-employed" > company. I don't know the exact term in english. In french, we say > "auto-entreprise". > > It's a company with only one person in it, your servant, and whose name > is my own name. I am a company now. > > I actually continue to work for my old boss (as everything I done for > him was done with Gambas), but now as a contractor. > > At least we agreed to do that until December. > > After december, next year, I will be opened to any opportunity! > > ? My life? > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Fri May 17 22:00:13 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 May 2019 22:00:13 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: <0b891429-7728-718f-096e-c8a75bebc1f6@gmail.com> Le 17/05/2019 ? 21:57, Jussi Lahtinen a ?crit?: > You are still going to work with Gambas? > > > Jussi > Yes, of course. -- Beno?t Minisini From g4mba5 at gmail.com Fri May 17 22:00:29 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Fri, 17 May 2019 22:00:29 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: <57728755-6b7e-09de-1382-d104cb01f6ad@gmail.com> Le 17/05/2019 ? 21:53, d4t4full at gmail.com a ?crit?: > Beno?t, > > Wishing you the best on your new adventure/company! > > zxMarce. Thanks! -- Beno?t Minisini From bagonergi at gmail.com Fri May 17 23:03:24 2019 From: bagonergi at gmail.com (Gianluigi) Date: Fri, 17 May 2019 23:03:24 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: Il giorno ven 17 mag 2019 alle ore 21:50 Beno?t Minisini ha scritto: > Hi again, > > This is an unusual mail about my private life. > > I have resigned from my job since May 1st, and created a "self-employed" > company. I don't know the exact term in english. In french, we say > "auto-entreprise". > > It's a company with only one person in it, your servant, and whose name > is my own name. I am a company now. > > I actually continue to work for my old boss (as everything I done for > him was done with Gambas), but now as a contractor. > > At least we agreed to do that until December. > > After december, next year, I will be opened to any opportunity! > > ? My life? > > Regards, > > -- > Beno?t Minisini > > Hi Benoit, good luck for your new adventure! Now you have to work twice as much ;-D Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From shordi at gmail.com Fri May 17 23:58:00 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Fri, 17 May 2019 23:58:00 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: All best wishes for you and for your plans, Benoit. El vie., 17 may. 2019 23:04, Gianluigi escribi?: > > > Il giorno ven 17 mag 2019 alle ore 21:50 Beno?t Minisini > ha scritto: > >> Hi again, >> >> This is an unusual mail about my private life. >> >> I have resigned from my job since May 1st, and created a "self-employed" >> company. I don't know the exact term in english. In french, we say >> "auto-entreprise". >> >> It's a company with only one person in it, your servant, and whose name >> is my own name. I am a company now. >> >> I actually continue to work for my old boss (as everything I done for >> him was done with Gambas), but now as a contractor. >> >> At least we agreed to do that until December. >> >> After december, next year, I will be opened to any opportunity! >> >> ? My life? >> >> Regards, >> >> -- >> Beno?t Minisini >> >> > Hi Benoit, > good luck for your new adventure! > Now you have to work twice as much ;-D > > Regards > Gianluigi > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jussi.lahtinen at gmail.com Sat May 18 00:03:15 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Sat, 18 May 2019 01:03:15 +0300 Subject: [Gambas-user] I am now a company In-Reply-To: <0b891429-7728-718f-096e-c8a75bebc1f6@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <0b891429-7728-718f-096e-c8a75bebc1f6@gmail.com> Message-ID: OK, my best wishes as well! Jussi On Fri, May 17, 2019 at 11:00 PM Beno?t Minisini wrote: > Le 17/05/2019 ? 21:57, Jussi Lahtinen a ?crit : > > You are still going to work with Gambas? > > > > > > Jussi > > > > Yes, of course. > > -- > Beno?t Minisini > -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.premoli at tiscali.it Sat May 18 00:28:31 2019 From: roberto.premoli at tiscali.it (roberto) Date: Sat, 18 May 2019 00:28:31 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: On 17/05/19 21:49, Beno?t Minisini wrote: > Hi again, > > This is an unusual mail about my private life. > > I have resigned from my job since May 1st, and created a > "self-employed" company. I don't know the exact term in english. In > french, we say "auto-entreprise". > > It's a company with only one person in it, your servant, and whose > name is my own name. I am a company now. > > I actually continue to work for my old boss (as everything I done for > him was done with Gambas), but now as a contractor. > > At least we agreed to do that until December. > > After december, next year, I will be opened to any opportunity! > > ? My life? > > Regards, > did you boss fire you out? From genbraga1 at gmail.com Sat May 18 00:43:51 2019 From: genbraga1 at gmail.com (gen braga) Date: Fri, 17 May 2019 19:43:51 -0300 Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: Great News! I wish you the best in your new journey! New old journey, or old new journey, whatever :-D Beware the tax collectors! (I wish I had that courage...) - Gen Em sex, 17 de mai de 2019 16:50, Beno?t Minisini escreveu: > Hi again, > > This is an unusual mail about my private life. > > I have resigned from my job since May 1st, and created a "self-employed" > company. I don't know the exact term in english. In french, we say > "auto-entreprise". > > It's a company with only one person in it, your servant, and whose name > is my own name. I am a company now. > > I actually continue to work for my old boss (as everything I done for > him was done with Gambas), but now as a contractor. > > At least we agreed to do that until December. > > After december, next year, I will be opened to any opportunity! > > ? My life? > > Regards, > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 18 03:20:48 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 May 2019 03:20:48 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: <005f55fa-7699-1380-ae42-4743c4e8cc48@gmail.com> Le 18/05/2019 ? 00:28, roberto a ?crit?: > > On 17/05/19 21:49, Beno?t Minisini wrote: >> Hi again, >> >> This is an unusual mail about my private life. >> >> I have resigned from my job since May 1st, and created a >> "self-employed" company. I don't know the exact term in english. In >> french, we say "auto-entreprise". >> >> It's a company with only one person in it, your servant, and whose >> name is my own name. I am a company now. >> >> I actually continue to work for my old boss (as everything I done for >> him was done with Gambas), but now as a contractor. >> >> At least we agreed to do that until December. >> >> After december, next year, I will be opened to any opportunity! >> >> ? My life? >> >> Regards, >> > > did you boss fire you out? > No, I said I have resigned. To make my own company actually. -- Beno?t Minisini From gambas.fr at gmail.com Sat May 18 08:44:10 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 18 May 2019 08:44:10 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <005f55fa-7699-1380-ae42-4743c4e8cc48@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <005f55fa-7699-1380-ae42-4743c4e8cc48@gmail.com> Message-ID: Welcome to the world of business leaders, Benoit ? And all my best wishes for success. Fabien. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterpeyotle at gmx.de Sat May 18 08:52:27 2019 From: peterpeyotle at gmx.de (Peter Peyotle) Date: Sat, 18 May 2019 08:52:27 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: good luck and above all, have fun. oh yes, in germany we call it "ich-ag". Von meinem Sony Xperia?-Smartphone gesendet ---- Beno?t Minisini schrieb ---- >Hi again, > >This is an unusual mail about my private life. > >I have resigned from my job since May 1st, and created a "self-employed" >company. I don't know the exact term in english. In french, we say >"auto-entreprise". > >It's a company with only one person in it, your servant, and whose name >is my own name. I am a company now. > >I actually continue to work for my old boss (as everything I done for >him was done with Gambas), but now as a contractor. > >At least we agreed to do that until December. > >After december, next year, I will be opened to any opportunity! > >? My life? > >Regards, > >-- >Beno?t Minisini > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterpeyotle at gmx.de Sat May 18 08:55:58 2019 From: peterpeyotle at gmx.de (Peter Peyotle) Date: Sat, 18 May 2019 08:55:58 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <0b891429-7728-718f-096e-c8a75bebc1f6@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <0b891429-7728-718f-096e-c8a75bebc1f6@gmail.com> Message-ID: ufff ...., sweat sweat off ... Von meinem Sony Xperia?-Smartphone gesendet ---- Beno?t Minisini schrieb ---- >Le 17/05/2019 ? 21:57, Jussi Lahtinen a ?crit?: >> You are still going to work with Gambas? >> >> >> Jussi >> > >Yes, of course. > >-- >Beno?t Minisini > >----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.crean at y7mail.com Sat May 18 11:43:14 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Sat, 18 May 2019 09:43:14 +0000 (UTC) Subject: [Gambas-user] gb.web References: <1357128742.4175784.1558172594676.ref@mail.yahoo.com> Message-ID: <1357128742.4175784.1558172594676@mail.yahoo.com> How do pass a HTML input to a gambas string. <%Dim HtmlInput As String%> ? Login? ?
? userid?
? password?
? ?
? <%!Arg? ? ? ''??? %>? ?? <%''How Do I put user and password into HtmlInput or 2 seperate Strings%> RegardsMike PS good luck Benoit -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Sat May 18 13:53:32 2019 From: bagonergi at gmail.com (Gianluigi) Date: Sat, 18 May 2019 13:53:32 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> Message-ID: Il giorno ven 17 mag 2019 alle ore 21:44 Beno?t Minisini ha scritto: > Hi, > > As I notice that almost nobody suceeds in dealing with date & time > correctly, I started to wrote a overview about that in the wiki. > > http://gambaswiki.org/wiki/doc/date > > Please feal free to comment and modify this page so that date & time > management becomes as clear as possible. > > This is still a work in progress, and I especially need "how to" code > example about dates. > > Regards, > > -- > Beno?t Minisini > Hi Benoit, probably could have inspired what I wrote here: https://lists.gambas-basic.org/pipermail/user/2019-May/067200.html In fact when I write: "Left(Str(hDate), 10) '(international)" I don't mean UTC but I mean "displaying the date in local format in all countries" And when I write: "Format(hDate, "dd/mm/yyyy") '(Local)" I mean "displaying the date in local format only in your country" In my defense, I have attached a project that contains this code that better explains what I wanted to say: ------------------------------------------- ' From a Sotema code Public Sub Main() Dim hConn As Connection Dim hResult As Result Dim hTable As Table ' Activate the display of gb.db messages db.Debug = True ' Set the connection parameters With hConn = New Connection .Type = "sqlite" .Host = System.User.Home .Open End With ' if the db exists, delete it. ' this allows you to run the example several times If (hConn.Databases.Exist("exampledb")) Then hConn.Databases.Remove("exampledb") hConn.Databases.Add("exampledb") Endif hConn.Name = "exampledb" ' create the table hTable = hConn.Tables.Add("users") hTable.Fields.Add("id", db.Integer) hTable.Fields.Add("name", db.String, 80) hTable.Fields.Add("birth", db.Date) hTable.Update() ' add one record hConn.Begin() hResult = hConn.Create("users") hResult!id = 1 hResult!name = "Gianluigi" hResult!birth = Date(1947, 4, 10) hResult.Update() hConn.Commit() ' retrieve the record hResult = hConn.Find("users") ' the same as select * from users ' hResult = hConn.Exec("SELECT * FROM users") Print Left(Str(hResult["birth"]), 10) 'Print Format(hResult["birth"], "dd/mm/yyyy") End ------------------------------------------ and I had previously referred to ReportTest on the Software farm, that treats dates the same way. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Sat May 18 14:23:33 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 18 May 2019 08:23:33 -0400 (EDT) Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: <661100073.34825368.1558182213847.JavaMail.zimbra@exede.net> And you waited till a full moon to announce this? Hmmmmmmmmmmmmmm. Best of luck. ----- Original Message ----- From: "Beno?t Minisini" Hi again, This is an unusual mail about my private life. ... ? My life? Regards, -- Beno?t Minisini From g4mba5 at gmail.com Sat May 18 15:01:31 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 May 2019 15:01:31 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <005f55fa-7699-1380-ae42-4743c4e8cc48@gmail.com> Message-ID: <95c816be-026e-8762-cb72-62c928fb234b@gmail.com> Le 18/05/2019 ? 08:44, Fabien Bodard a ?crit?: > Welcome to the world of business leaders, Benoit ? > > And all my best wishes for success. > > Fabien. > Thanks Fabien, and happy birthday! -- Beno?t Minisini From g4mba5 at gmail.com Sat May 18 15:08:35 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 May 2019 15:08:35 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <661100073.34825368.1558182213847.JavaMail.zimbra@exede.net> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <661100073.34825368.1558182213847.JavaMail.zimbra@exede.net> Message-ID: <8f058bc3-f358-bf23-d06e-205407d029ba@gmail.com> Le 18/05/2019 ? 14:23, Cedron Dawg a ?crit?: > And you waited till a full moon to announce this? Hmmmmmmmmmmmmmm. > > Best of luck. > I actually waited for the Tax Administration to acknowledge the existence of my company. *They* waited till the full moon, which is even scarier. By the way, they sent me a letter, asking me for information they need to tax me. The letter starts by telling "we will accompany you throughout the entire life of your company". You kidding me... -- Beno?t Minisini From cedron at exede.net Sat May 18 15:08:58 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 18 May 2019 09:08:58 -0400 (EDT) Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> Message-ID: <1273695534.34872002.1558184938527.JavaMail.zimbra@exede.net> A copy of the database and program that produced this report, and an overall system description, have been added to my posting. ----- Original Message ----- From: "Cedron Dawg" I just posted a nice little index of all the Gambas class names at Gambas.One https://forum.gambas.one/viewtopic.php?f=4&t=708 The post is called "An HTML index of Gambas Classes" It is very plain vanilla html. Ced From cedron at exede.net Sat May 18 15:26:10 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 18 May 2019 09:26:10 -0400 (EDT) Subject: [Gambas-user] I am now a company In-Reply-To: <8f058bc3-f358-bf23-d06e-205407d029ba@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <661100073.34825368.1558182213847.JavaMail.zimbra@exede.net> <8f058bc3-f358-bf23-d06e-205407d029ba@gmail.com> Message-ID: <1898737639.34884809.1558185970920.JavaMail.zimbra@exede.net> Indeed, that is scarier. And no, I don't think they are kidding. May you reach tropical island tax haven status. ----- Original Message ----- From: "Beno?t Minisini" I actually waited for the Tax Administration to acknowledge the existence of my company. *They* waited till the full moon, which is even scarier. By the way, they sent me a letter, asking me for information they need to tax me. The letter starts by telling "we will accompany you throughout the entire life of your company". You kidding me... -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From gambas.fr at gmail.com Sat May 18 15:45:38 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 18 May 2019 15:45:38 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <95c816be-026e-8762-cb72-62c928fb234b@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <005f55fa-7699-1380-ae42-4743c4e8cc48@gmail.com> <95c816be-026e-8762-cb72-62c928fb234b@gmail.com> Message-ID: Le sam. 18 mai 2019 15:02, Beno?t Minisini a ?crit : > Le 18/05/2019 ? 08:44, Fabien Bodard a ?crit : > > Welcome to the world of business leaders, Benoit ? > > > > And all my best wishes for success. > > > > Fabien. > > > > Thanks Fabien, and happy birthday! > Thank you ? > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Sat May 18 15:46:58 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 18 May 2019 15:46:58 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <8f058bc3-f358-bf23-d06e-205407d029ba@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <661100073.34825368.1558182213847.JavaMail.zimbra@exede.net> <8f058bc3-f358-bf23-d06e-205407d029ba@gmail.com> Message-ID: Le sam. 18 mai 2019 15:09, Beno?t Minisini a ?crit : > Le 18/05/2019 ? 14:23, Cedron Dawg a ?crit : > > And you waited till a full moon to announce this? Hmmmmmmmmmmmmmm. > > > > Best of luck. > > > > I actually waited for the Tax Administration to acknowledge the > existence of my company. *They* waited till the full moon, which is even > scarier. > > By the way, they sent me a letter, asking me for information they need > to tax me. The letter starts by telling "we will accompany you > throughout the entire life of your company". You kidding me... > Just be carefull about RSI they are mad ! > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Sat May 18 15:57:51 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 May 2019 15:57:51 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <661100073.34825368.1558182213847.JavaMail.zimbra@exede.net> <8f058bc3-f358-bf23-d06e-205407d029ba@gmail.com> Message-ID: Le 18/05/2019 ? 15:46, Fabien Bodard a ?crit?: > > > Just be carefull about RSI they are mad ! > AFAIK, the RSI does not exist anymore. Too much money disappeared. They have renamed it SSI. And a as a liberal job, I have to declare my revenues and pay my social contributions to the URSSAF. -- Beno?t Minisini From gambas.fr at gmail.com Sat May 18 17:07:24 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Sat, 18 May 2019 17:07:24 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> <661100073.34825368.1558182213847.JavaMail.zimbra@exede.net> <8f058bc3-f358-bf23-d06e-205407d029ba@gmail.com> Message-ID: Le sam. 18 mai 2019 15:58, Beno?t Minisini a ?crit : > Le 18/05/2019 ? 15:46, Fabien Bodard a ?crit : > > > > > > Just be carefull about RSI they are mad ! > > > > AFAIK, the RSI does not exist anymore. Too much money disappeared. They > have renamed it SSI. And a as a liberal job, I have to declare my > revenues and pay my social contributions to the URSSAF. > Well ... nevertheless I hope they have simplified the system. I'm not really concerned by that has I'm a farmer and paid my social contribution to the MSA. -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Sat May 18 17:19:23 2019 From: genbraga1 at gmail.com (gen braga) Date: Sat, 18 May 2019 12:19:23 -0300 Subject: [Gambas-user] Default properties Message-ID: Hi there, I remember back in VB times, the Form controls had their so called default properties. So: lblLabel1.Caption="Hello world" iValue = scrVScroll.Value could simply be: lblLabel1 = "Hello world" iValue = scrVScroll AFIK we dont have this in Gambas and I think it would be nice. Besides someone could say it's just lazyness, I dont think so, althought I almost never did it this way. And, beyond that, I think we could also set which property would be the default one in a property declaration with a switch, like "PROPERTY [ READ ] [DEFAULT] Identifier [ , Synonymous1 [ , Synonymous2 ... ] ] AS Datatype" Of course I can be wrong... - Gen From g4mba5 at gmail.com Sat May 18 17:33:55 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 May 2019 17:33:55 +0200 Subject: [Gambas-user] Default properties In-Reply-To: References: Message-ID: Le 18/05/2019 ? 17:19, gen braga a ?crit?: > Hi there, > > I remember back in VB times, the Form controls had their so called > default properties. So: > > lblLabel1.Caption="Hello world" > iValue = scrVScroll.Value > > could simply be: > > lblLabel1 = "Hello world" > iValue = scrVScroll > > AFIK we dont have this in Gambas and I think it would be nice. Besides > someone could say it's just lazyness, I dont think so, althought I > almost never did it this way. > > And, beyond that, I think we could also set which property would be > the default one in a property declaration with a switch, like > > "PROPERTY [ READ ] [DEFAULT] Identifier [ , Synonymous1 [ , > Synonymous2 ... ] ] AS Datatype" > > Of course I can be wrong... > > - > Gen > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > I hated that. Saving a few key strokes for unreadable code and a lot of possible mistakes. -- Beno?t Minisini From cedron at exede.net Sat May 18 17:40:19 2019 From: cedron at exede.net (Cedron Dawg) Date: Sat, 18 May 2019 11:40:19 -0400 (EDT) Subject: [Gambas-user] Default properties In-Reply-To: References: Message-ID: <1751142132.35028869.1558194019599.JavaMail.zimbra@exede.net> Agreed. In addition, you lose the syntactic ability to refer to the class itself. ----- Original Message ----- From: "Beno?t Minisini" I hated that. Saving a few key strokes for unreadable code and a lot of possible mistakes. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From genbraga1 at gmail.com Sat May 18 18:03:13 2019 From: genbraga1 at gmail.com (gen braga) Date: Sat, 18 May 2019 13:03:13 -0300 Subject: [Gambas-user] Default properties In-Reply-To: <1751142132.35028869.1558194019599.JavaMail.zimbra@exede.net> References: <1751142132.35028869.1558194019599.JavaMail.zimbra@exede.net> Message-ID: I knew Benoit would say so... :-D Of course there could be some exceptions, say restricted to Controls, or something like that. About the readability, its a matter of practicing a naming convention, like you lenghtly explained yours some time ago, Ced. By the way, you could write an annex in the wiki about it. But, I agree it would lead to bad habits, and those who tend to not explicitly type down the property wouldnt use any convention too... just a thought of an idle saturday, afterall! - Gen 2019-05-18 12:40 GMT-03:00, Cedron Dawg : > Agreed. In addition, you lose the syntactic ability to refer to the class > itself. > > ----- Original Message ----- > From: "Beno?t Minisini" > > I hated that. Saving a few key strokes for unreadable code and a lot of > possible mistakes. > > -- > Beno?t Minisini > > ----[ 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 May 18 20:30:17 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Sat, 18 May 2019 20:30:17 +0200 Subject: [Gambas-user] I am now a company In-Reply-To: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> References: <63277310-d793-0d17-12f3-d82c48e52abf@gmail.com> Message-ID: Hello Beno?t, also good luck from my side! Being not employed any more has it's advantages, I like that very much. I hope you enjoy the freedom. :-) 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 adamnt42 at gmail.com Sun May 19 07:51:41 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 19 May 2019 15:21:41 +0930 Subject: [Gambas-user] Subst$ with a Variant array of values Message-ID: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> I don't think I have seen this before. (in fact I've never tried it before.) Basically, I have a Variant[] that contains the values that I want to substitute into a string. That variant could be any length but (in this case) is specific to the substitution pattern. The pattern is in fact an SQL query pattern that looks like "SELECT * FROM &1 WHERE blah=$$&2$$ AND blahblah=&3". The value array actually comes from another query that returns a single row as an array, e.g. ["sales","D KB","27-Mar-2019"]. In other words, I am trying to build a query based on the results of a prior query. So, I would "like" to be able to: sQry=Subst$(sPattern, vaCriteria) Is this feature possible? tia Bruce (As usual, the long explanation...) We have a whole bunch of queries that verify that our database is correct and a project that runs these queries and returns a "list" of invalid, suspect or otherwise data. An example could be: Auct Date Error' ==== =========== ============================================== D KB 27-Mar-2019 Catalogue vs sold mismatch (sold=102,list=101) i.e. there appeared to be more lots sold than were advertised. So out of those 102 sales I need to find the one that is not in the catalogue list, i.e. Select * from sales s left outer join catalogue where s.auction = $$D KB$$ AND s.saledate = $$27-Mar-2019$$ AND c.lotnum is null; (There are lots and lots of validation queries and even more "find the error" queries. I have put them all into a database with the idea that we don't have to keep typing vast numbers of queries every day to isolate the errors. The idea is to enhance the validation program to allow us to select one line from the list and have it generate the appropriate query into the clipboard to be pasted into the db query utility. The line in the list comes from the array ["sales","D KB","27-Mar-2019",12437,102,101] which is returned by the validation query where "sales" is the table being verified,"D KB","27-Mar-2019" are the partial key for the table and depend on the validation performed, 12437 is our internal error code and 102,101 are the values returned by the query that are not correct. (12437 is made up of the validation query that was executed (124) and the actual error message format code(37). On any day there may be a hundred or so validation errors. There are currently 289 validations run and this number grows week by week as we find more ways that &#$@$^#@ users give is bad data. On Friday for instance there was a dozen errors returned from the 124 validation, most of them data entry errors/omissions at the client end - 11 cases where there was a missing sale and 1 auction that took an extra lot without notifying us. Each error takes significant time to resolve, so any shortcuts we can take are important. Sheeeesh, Benoit, are you sure you want to be a private entrepeneur? b From taboege at gmail.com Sun May 19 08:10:19 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 19 May 2019 08:10:19 +0200 Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> Message-ID: <20190519061019.GE1582@highrise.localdomain> On Sun, 19 May 2019, Bruce wrote: > I don't think I have seen this before. (in fact I've never tried it before.) > > Basically, I have a Variant[] that contains the values that I want to > substitute into a string. That variant could be any length but (in this > case) is specific to the substitution pattern. > > The pattern is in fact an SQL query pattern that looks like > "SELECT * FROM &1 WHERE blah=$$&2$$ AND blahblah=&3". > The value array actually comes from another query that returns a single row > as an array, e.g. ["sales","D KB","27-Mar-2019"]. In other words, I am > trying to build a query based on the results of a prior query. > > So, I would "like" to be able to: > sQry=Subst$(sPattern, vaCriteria) > Is this feature possible? > You should think twice about using Subst$() to build a database query. Connection.Subst() will handle quoting better and in a database-specific way. And if you use a real method of a real class, you can use Object.Call(hConnection, "Subst", ...) to call it with an array of arguments, that you can freely build at runtime. It's not pretty, but the only solution I can think of. Example: Dim tmp As New String[] Dim h As New Connection h.Type = "sqlite3" h.Open() tmp.Push("SELECT &1 FROM &2 WHERE &1=&2") tmp.Insert(["a", "b"]) Print Object.Call(h, "Subst", tmp) > SELECT 'a' FROM 'b' WHERE 'a'='b' > (As usual, the long explanation...) > Unusual for me but I'm going to skip that. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From adamnt42 at gmail.com Sun May 19 08:14:08 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 19 May 2019 15:44:08 +0930 Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <20190519061019.GE1582@highrise.localdomain> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> Message-ID: <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> Looks good to me! I'll give it a try. tx Bruce On 19/5/19 3:40 pm, Tobias Boege wrote: > On Sun, 19 May 2019, Bruce wrote: >> I don't think I have seen this before. (in fact I've never tried it before.) >> >> Basically, I have a Variant[] that contains the values that I want to >> substitute into a string. That variant could be any length but (in this >> case) is specific to the substitution pattern. >> >> The pattern is in fact an SQL query pattern that looks like >> "SELECT * FROM &1 WHERE blah=$$&2$$ AND blahblah=&3". >> The value array actually comes from another query that returns a single row >> as an array, e.g. ["sales","D KB","27-Mar-2019"]. In other words, I am >> trying to build a query based on the results of a prior query. >> >> So, I would "like" to be able to: >> sQry=Subst$(sPattern, vaCriteria) >> Is this feature possible? >> > > You should think twice about using Subst$() to build a database query. > Connection.Subst() will handle quoting better and in a database-specific > way. And if you use a real method of a real class, you can use > > Object.Call(hConnection, "Subst", ...) > > to call it with an array of arguments, that you can freely build at > runtime. It's not pretty, but the only solution I can think of. > > Example: > > Dim tmp As New String[] > Dim h As New Connection > h.Type = "sqlite3" > h.Open() > > tmp.Push("SELECT &1 FROM &2 WHERE &1=&2") > tmp.Insert(["a", "b"]) > Print Object.Call(h, "Subst", tmp) > > > SELECT 'a' FROM 'b' WHERE 'a'='b' > >> (As usual, the long explanation...) >> > > Unusual for me but I'm going to skip that. > > Regards, > Tobi > From adamnt42 at gmail.com Sun May 19 10:01:15 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 19 May 2019 17:31:15 +0930 Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> Message-ID: <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> Aaaarrgghh! SO CLOSE :-( Some of the string criteria need to be $quoted in order for it to work the way I need it. (Surnames with apostrophes and strings with embedded spaces ARE quoted correctly according to the help, but as I am trying to use the query in a bash script psql -d auct2019 -F '|' -A -o '/tmp/gambas.500/12311/ext.tmp' -c 'select * from sales where house = E'D KB' and errcode = 124;' needs to be psql -d auct2019 -F '|' -A -o '/tmp/gambas.500/12311/ext.tmp' -c 'select * from sales where house = E$$D KB$$ and errcode = 124;' I can't find a way to get postgres to tell gambas to $quote string values. I'll start looking at the gb.db Connection.Subst code to see if I can find something. b On 19/5/19 3:44 pm, Bruce wrote: > Looks good to me! I'll give it a try. > tx > Bruce > > On 19/5/19 3:40 pm, Tobias Boege wrote: >> On Sun, 19 May 2019, Bruce wrote: >>> I don't think I have seen this before. (in fact I've never tried it >>> before.) >>> >>> Basically, I have a Variant[] that contains the values that I want to >>> substitute into a string. That variant could be any length but (in this >>> case) is specific to the substitution pattern. >>> >>> The pattern is in fact an SQL query pattern that looks like >>> ????"SELECT * FROM &1 WHERE blah=$$&2$$ AND blahblah=&3". >>> The value array actually comes from another query that returns a >>> single row >>> as an array, e.g. ["sales","D KB","27-Mar-2019"]. In other words, I am >>> trying to build a query based on the results of a prior query. >>> >>> So, I would "like" to be able to: >>> ????sQry=Subst$(sPattern, vaCriteria) >>> Is this feature possible? >>> >> >> You should think twice about using Subst$() to build a database query. >> Connection.Subst() will handle quoting better and in a database-specific >> way. And if you use a real method of a real class, you can use >> >> ?? Object.Call(hConnection, "Subst", ...) >> >> to call it with an array of arguments, that you can freely build at >> runtime. It's not pretty, but the only solution I can think of. >> >> Example: >> >> ?? Dim tmp As New String[] >> ?? Dim h As New Connection >> ?? h.Type = "sqlite3" >> ?? h.Open() >> >> ?? tmp.Push("SELECT &1 FROM &2 WHERE &1=&2") >> ?? tmp.Insert(["a", "b"]) >> ?? Print Object.Call(h, "Subst", tmp) >> >> ?? > SELECT 'a' FROM 'b' WHERE 'a'='b' >> >>> (As usual, the long explanation...) >>> >> >> Unusual for me but I'm going to skip that. >> >> Regards, >> Tobi >> From mike.crean at y7mail.com Sun May 19 12:45:22 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Sun, 19 May 2019 10:45:22 +0000 (UTC) Subject: [Gambas-user] gb.web References: <152068885.4418713.1558262722048.ref@mail.yahoo.com> Message-ID: <152068885.4418713.1558262722048@mail.yahoo.com> Hi all, How do I copy HTML inputs to a gambas variable. <%Dim HtmlInput As String%> ? Login? ?
? userid?
? password?
? ?
? <%!Arg? ? ? ''??? %>? ?? <%''How Do I put user and password into HtmlInput.%> RegardsMike -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Sun May 19 14:06:32 2019 From: taboege at gmail.com (Tobias Boege) Date: Sun, 19 May 2019 14:06:32 +0200 Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> Message-ID: <20190519120632.GF1582@highrise.localdomain> On Sun, 19 May 2019, Bruce wrote: > Aaaarrgghh! SO CLOSE :-( > Some of the string criteria need to be $quoted in order for it to work the > way I need it. (Surnames with apostrophes and strings with embedded spaces > ARE quoted correctly according to the help, but as I am trying to use the > query in a bash script > psql -d auct2019 -F '|' -A -o '/tmp/gambas.500/12311/ext.tmp' -c 'select * > from sales where house = E'D KB' and errcode = 124;' > needs to be > psql -d auct2019 -F '|' -A -o '/tmp/gambas.500/12311/ext.tmp' -c 'select * > from sales where house = E$$D KB$$ and errcode = 124;' > I can't find a way to get postgres to tell gambas to $quote string values. > I'll start looking at the gb.db Connection.Subst code to see if I can find > something. > b If you can't avoid the shell (by using Exec which doesn't have quoting problems) you could Shell "psql -d auct2019 -F '|' -A -o '/tmp/...' -c " & Shell$(sSql) That should just apply whatever quoting the shell needs to read sSql as you intended on top of the all quoting the database needed. The $$ quoting syntax is just to make strings more human-readable in case there are many apostrophes or other characters which have to be escaped inside, if I understood correctly. So there is no technical need to have these special $$s, right? If you do need it, I would suggest you write your own PGSubst$() with a "$1" placeholder in addition to the usual "&1" style. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cedron at exede.net Sun May 19 14:31:10 2019 From: cedron at exede.net (Cedron Dawg) Date: Sun, 19 May 2019 08:31:10 -0400 (EDT) Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <20190519120632.GF1582@highrise.localdomain> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> <20190519120632.GF1582@highrise.localdomain> Message-ID: <1513320474.35885960.1558269070967.JavaMail.zimbra@exede.net> My Vault and VaultBox classes do exactly what you want, conveniently too, as the SQL statements are stored in an exteranl editable text file. Check out the "ReporterDemo.zip" example from this thread: https://forum.gambas.one/viewtopic.php?f=4&t=708 The replaceable parameters are in the HTML vault, but they work the same. If you are trying to update one table from another, that can be done directly in SQL. Here is the faulty query, and the corrected one, I mention in the thread: --=|Set the inherits key in Classes. (Faulty)|=-- UPDATE wk_classes SET inherits_id = ( SELECT A.id FROM wk_classes AS A WHERE A.name = wk_classes.inherits_name ) ; --=|Set the inherits key in Classes.|=-- UPDATE wk_classes SET inherits_id = ( SELECT A.id FROM wk_classes AS A INNER JOIN wk_components AS C ON A.wk_components_fk = C.id WHERE A.name = wk_classes.name AND wk_classes.wk_components_fk = C.id ) ; This gets called from the code like this: ArgCon.Exec(ArgVault.Box("Set the inherits key in Classes.")) Replaceable parameters are designated insided :| |: markings. You could do yours like this: --=|Sales Check|=-- SELECT * FROM sales AS s LEFT OUTER JOIN catalogue ON [your are missing your join clause] WHERE S.auction = :|Auction Value|: AND s.saledate = :|SalesDate|: AND c.lotnum IS NULL; In the code you would write: ArgVault.MyVaultParameters["Auction Value"] = YourValueHere ArgVault.MyVaultParameters["SalesDate"] = YourValueHere rs = ArgCon.Exec(ArgVault.Box("Set the inherits key in Classes.")) You can either embed any needed quotes in the text defintion, the value you pass, or introduce a new parameter :|Database Date Quote|: that you insert in SQL defintion and set at run time. I developed the Vault class specically for this purpose.` Ced From adamnt42 at gmail.com Sun May 19 14:32:20 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 19 May 2019 22:02:20 +0930 Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <20190519120632.GF1582@highrise.localdomain> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> <20190519120632.GF1582@highrise.localdomain> Message-ID: <24860256-9c98-a9e8-0ba0-bdbea1d23fbc@gmail.com> On 19/5/19 9:36 pm, Tobias Boege wrote: > So there is no technical need to have > these special $$s, right? Yep, essentially it makes the query strings with odd chars easier to see and work with. I was trying to do some fancy bash quoting to get around this but I will give your Shell "psql blah bluh -c " & Shell$(sSql) a go. (I didn't think Exec would work as the -c CLI option expects a quoted predicate and I thought that I'd still end up in the same command line mess.) b Bedtime now, I'll catch you later From cedron at exede.net Sun May 19 14:41:36 2019 From: cedron at exede.net (Cedron Dawg) Date: Sun, 19 May 2019 08:41:36 -0400 (EDT) Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <1513320474.35885960.1558269070967.JavaMail.zimbra@exede.net> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> <20190519120632.GF1582@highrise.localdomain> <1513320474.35885960.1558269070967.JavaMail.zimbra@exede.net> Message-ID: <800117757.35891031.1558269696530.JavaMail.zimbra@exede.net> Sorry, there were tabs in the code from DB Browser for SQLite. Arggggg. Also, a goof on my part. Your example should read: ArgVault.MyVaultParameters["Auction Value"] = YourValueHere ArgVault.MyVaultParameters["SalesDate"] = YourValueHere rs = ArgCon.Exec(ArgVault.Box("Sales Check")) From adamnt42 at gmail.com Sun May 19 14:41:48 2019 From: adamnt42 at gmail.com (Bruce) Date: Sun, 19 May 2019 22:11:48 +0930 Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <1513320474.35885960.1558269070967.JavaMail.zimbra@exede.net> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> <20190519120632.GF1582@highrise.localdomain> <1513320474.35885960.1558269070967.JavaMail.zimbra@exede.net> Message-ID: <5e354796-90c2-f3e7-18fa-0cfc78601840@gmail.com> Hi Ced, I think you may have misunderstood my issue. We have all the stuff you mention, the problem was (originally) I wanted to use a Variant array in a subst command instead of an unknown number of parameters as in Subst(pattern, a1,a2,a3, ...an) as the stored queries take a widely different number of criteria. Anyway Tobi's Object.Call approach solved that nicely. The subsequent probelm all comes down to quoting for a shell command where the target program (psql) expects the CLI options to be quoted in specific ways. Tobi looks to have solved that too. Anyway, its bedtime here. later Bruce On 19/5/19 10:01 pm, Cedron Dawg wrote: > > My Vault and VaultBox classes do exactly what you want, conveniently too, as the SQL statements are stored in an exteranl editable text file. > > Check out the "ReporterDemo.zip" example from this thread: > > https://forum.gambas.one/viewtopic.php?f=4&t=708 > > The replaceable parameters are in the HTML vault, but they work the same. > > If you are trying to update one table from another, that can be done directly in SQL. > > Here is the faulty query, and the corrected one, I mention in the thread: > > > --=|Set the inherits key in Classes. (Faulty)|=-- > > UPDATE wk_classes > SET inherits_id = > ( > SELECT A.id > FROM wk_classes AS A > WHERE A.name = wk_classes.inherits_name > ) > ; > --=|Set the inherits key in Classes.|=-- > > UPDATE wk_classes > SET inherits_id = > ( > SELECT A.id > > FROM wk_classes AS A > INNER JOIN wk_components AS C > ON A.wk_components_fk = C.id > > WHERE A.name = wk_classes.name > AND wk_classes.wk_components_fk = C.id > ) > ; > > This gets called from the code like this: > > ArgCon.Exec(ArgVault.Box("Set the inherits key in Classes.")) > > Replaceable parameters are designated insided :| |: markings. > > You could do yours like this: > > --=|Sales Check|=-- > > SELECT * > FROM sales AS s > LEFT OUTER JOIN catalogue > ON [your are missing your join clause] > WHERE S.auction = :|Auction Value|: > AND s.saledate = :|SalesDate|: > AND c.lotnum IS NULL; > > In the code you would write: > > > ArgVault.MyVaultParameters["Auction Value"] = YourValueHere > ArgVault.MyVaultParameters["SalesDate"] = YourValueHere > > rs = ArgCon.Exec(ArgVault.Box("Set the inherits key in Classes.")) > > You can either embed any needed quotes in the text defintion, the value you pass, or introduce a new parameter :|Database Date Quote|: that you insert in SQL defintion and set at run time. > > I developed the Vault class specically for this purpose.` > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From sharon at 455.co.il Sun May 19 17:26:21 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Sun, 19 May 2019 18:26:21 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <57c8d470-ebd0-d9a2-0720-46413fa92a82@gmail.com> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <81c58c17-1a12-7f38-0dd4-7f127e2cbab5@gmail.com> <57c8d470-ebd0-d9a2-0720-46413fa92a82@gmail.com> Message-ID: <20190519152546.M62652@455.co.il> Many thanks According to what I understand GTK + Broadway They write: Any application written on GTK + should run through Broadway For example, I tried to run: gedit gnome-calculator rhythmbox libreoffice Etc. Everything works without error But maybe it will help: I tried running the gnome-shell as follows: GDK_BACKEND = broadwa DISPLAY =: 0 gnome-shell It gave me an error: mutter-ERROR **: 18: 23: 17.050: Failed to open X11 display: Failed to initialize GDK Trace / breakpoint trap (core dumped) ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Fri, 17 May 2019 17:36:45 +0200 Subject: Re: [Gambas-user] GTK+ with Broadway > Le 17/05/2019 ? 17:09, gen braga a ?crit?: > > Here it goes. > > > > - > > Gen > > > > Thread 1 "gbx3" received signal SIGSEGV, Segmentation fault. > > 0x000000000847c748 in ?? () > > (gdb) bt > > #0 0x000000000847c748 in ?? () > > #1 0x00007ffff3cc757c in XInternAtom () from /usr/lib/x86_64-linux-gnu/libX11.so.6 > > #2 0x00007ffff61b0fb0 in init_atoms () at x11.c:129 > > #3 0x00007ffff61b185a in X11_init (display=0x87b000, root=8842912) at x11.c:352 > > #4 0x00007ffff61a8ef2 in my_main (argc=0x7fffffffd9bc, argv=0x7fffffffd9b0) at main.cpp:389 > > #5 0x0000000000438f68 in main (argc=1, argv=0x7fffffffde38) at gbx.c:391 > > (gdb) > > > > The my_main() function asks the X11 display to GTK+ and send it to > X11_init() that does the X11 initialization stuff (creating X11 atoms...). > > But I guess that with the GTK+ Broadway hack, the X11 display is NULL. > And so all X11 stuff will crash. > > Strangely, the macro GDK_WINDOWING_X11 is defined. Otherwise the > X11_init() function wouldn't be called. > > I don't GTK+ Broadway at all, so I can't say more. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From sharon at 455.co.il Mon May 20 00:58:48 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 20 May 2019 01:58:48 +0300 Subject: [Gambas-user] GTK2 or GTK3 without DESKTOP crashing Message-ID: <20190519225448.M28167@455.co.il> Hello I created a small program with GTK3 And a small program with GTK2 (They are attached to this message) I installed a new FEDORA 30 64BIT minimal system without a desktop I installed on the system: gedit, xorg x11, gtk3, gambas3-runtime gambas3-gb-image gambas3-gb-form, gambas3-gb-gtk, gambas3-gb-gtk3 Login via CONSOLE without X I run: X :0 With the new CONSOLE I run software: DISPLAY=:0 gedit And it runs very well in the GEDIT display :0 1. But if I try to run the GTK3 program I created through GAMBAS: cd gtk3 DISPLAY=:0 gbx3 I accept this error: (gtk3:28129): Gdk-ERROR **: 18:48:59.671: The program 'gtk3' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 194 error_code 5 request_code 20 (core protocol) minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap (core dumped) 2. Also I run the GTK2 program that also gives an error: (gtk2:28142): Gdk-ERROR **: 18:51:40.077: The program 'gtk2' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 135 error_code 5 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap (core dumped) From sharon at 455.co.il Mon May 20 01:05:28 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 20 May 2019 02:05:28 +0300 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <57c8d470-ebd0-d9a2-0720-46413fa92a82@gmail.com> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <81c58c17-1a12-7f38-0dd4-7f127e2cbab5@gmail.com> <57c8d470-ebd0-d9a2-0720-46413fa92a82@gmail.com> Message-ID: <20190519230415.M26326@455.co.il> Hello Thanks again Maybe I'm wrong But it seems to me that the error is not related to GTK3 + BROADWAY I open a new question in the forum: https://lists.gambas-basic.org/pipermail/user/2019-May/067262.html ---------- Original Message ----------- From: Beno?t Minisini To: Gambas Mailing List Sent: Fri, 17 May 2019 17:36:45 +0200 Subject: Re: [Gambas-user] GTK+ with Broadway > Le 17/05/2019 ? 17:09, gen braga a ?crit?: > > Here it goes. > > > > - > > Gen > > > > Thread 1 "gbx3" received signal SIGSEGV, Segmentation fault. > > 0x000000000847c748 in ?? () > > (gdb) bt > > #0 0x000000000847c748 in ?? () > > #1 0x00007ffff3cc757c in XInternAtom () from /usr/lib/x86_64-linux-gnu/libX11.so.6 > > #2 0x00007ffff61b0fb0 in init_atoms () at x11.c:129 > > #3 0x00007ffff61b185a in X11_init (display=0x87b000, root=8842912) at x11.c:352 > > #4 0x00007ffff61a8ef2 in my_main (argc=0x7fffffffd9bc, argv=0x7fffffffd9b0) at main.cpp:389 > > #5 0x0000000000438f68 in main (argc=1, argv=0x7fffffffde38) at gbx.c:391 > > (gdb) > > > > The my_main() function asks the X11 display to GTK+ and send it to > X11_init() that does the X11 initialization stuff (creating X11 atoms...). > > But I guess that with the GTK+ Broadway hack, the X11 display is NULL. > And so all X11 stuff will crash. > > Strangely, the macro GDK_WINDOWING_X11 is defined. Otherwise the > X11_init() function wouldn't be called. > > I don't GTK+ Broadway at all, so I can't say more. > > -- > Beno?t Minisini > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- ------- End of Original Message ------- From g4mba5 at gmail.com Mon May 20 02:59:29 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 20 May 2019 02:59:29 +0200 Subject: [Gambas-user] GTK+ with Broadway In-Reply-To: <20190519230415.M26326@455.co.il> References: <20190514072754.M34571@455.co.il> <20190514075403.M84064@455.co.il> <0d49d090-da2a-bc38-6575-ac3e8569ce96@gmail.com> <81c58c17-1a12-7f38-0dd4-7f127e2cbab5@gmail.com> <57c8d470-ebd0-d9a2-0720-46413fa92a82@gmail.com> <20190519230415.M26326@455.co.il> Message-ID: Le 20/05/2019 ? 01:05, Mayost Sharon a ?crit?: > Hello > > Thanks again > > Maybe I'm wrong > > But it seems to me that the error is not related to GTK3 + BROADWAY > > I open a new question in the forum: > https://lists.gambas-basic.org/pipermail/user/2019-May/067262.html > Of course it is. I added a test of the type of the display so that X11 specific initialization is not done if the GDK display is not X11. I tried a simple application with one window including a TextBox and a TextArea. The program does not crash anymore, but Broadway hardly displays a working window in the browser, and the GTK+ program emits tons of warnings on its terminal output. The window is not well positioned, its size is incorrect, and a lot of things does not draw or work correctly. Gambas has to do tricks to workaround a lot of bugs and limitations of GTK+. Maybe the Broadway backend does not like it (in the sense that it supports pure GTK+ applications). Or maybe Broadway is just a toy. After all, it's mainly a rewrite of the X11 network protocol at the GDK level that uses the browser as a graphic terminal. -- Beno?t Minisini From mike.crean at y7mail.com Mon May 20 05:23:07 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Mon, 20 May 2019 03:23:07 +0000 (UTC) Subject: [Gambas-user] gb.web References: <5852281.4697645.1558322587336.ref@mail.yahoo.com> Message-ID: <5852281.4697645.1558322587336@mail.yahoo.com> Hi all, How do I copy HTML inputs to a gambas variable. <%Dim HtmlInput As String%> ? Login? ?
? userid?
? password?
? ?
? <%!Arg? ? ? ''??? %>? ?? <%''How Do I put user and password into HtmlInput.%> RegardsMike -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Mon May 20 08:34:33 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 20 May 2019 09:34:33 +0300 Subject: [Gambas-user] gb.web In-Reply-To: <5852281.4697645.1558322587336@mail.yahoo.com> References: <5852281.4697645.1558322587336.ref@mail.yahoo.com> <5852281.4697645.1558322587336@mail.yahoo.com> Message-ID: <20190520063349.M67289@455.co.il> <% ''How Do I put user and password into HtmlInput. Print Request["text1"] Print Request["text2"] %> ---------- Original Message ----------- From: Mike Crean via User To: "user at lists.gambas-basic.org" Cc: Mike Crean Sent: Mon, 20 May 2019 03:23:07 +0000 (UTC) Subject: [Gambas-user] gb.web > Hi all, How do I copy HTML inputs to a gambas variable. > <%Dim HtmlInput As String%> > ? Login? ?
? userid?
? > password?
? type="submit"name="button1"value="login">?
? <%!Arg? > ? ? ''??? %>? ?? <%''How Do I put user and password into HtmlInput.%> RegardsMike ------- End of Original Message ------- From rwe-sse at osnanet.de Mon May 20 09:14:14 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 20 May 2019 09:14:14 +0200 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> Message-ID: <748f770d-d9bb-aebf-2040-58e818b40cd5@osnanet.de> Am 17.05.19 um 05:47 schrieb Cedron Dawg: > I just posted a nice little index of all the Gambas class names at Gambas.One > > https://forum.gambas.one/viewtopic.php?f=4&t=708 > > The post is called "An HTML index of Gambas Classes" > > It is very plain vanilla html. > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > Thank you very much for that, Cedron, I saved it here and guess it will be useful. Hm, maybe this list should be included in the documentation... Regards Rolf From cedron at exede.net Mon May 20 14:51:29 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 20 May 2019 08:51:29 -0400 (EDT) Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: <748f770d-d9bb-aebf-2040-58e818b40cd5@osnanet.de> References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> <748f770d-d9bb-aebf-2040-58e818b40cd5@osnanet.de> Message-ID: <1734803023.37146995.1558356689240.JavaMail.zimbra@exede.net> Hi Rolf, Thank you. Cogier has already kindly posted it at https://www.gambas.one/classes/ It's kind of a large page so if it were to go into the Wiki, perhaps there should be one page per letter, or letter ranges. He has also developed a nice desktop equivalent, posted in the same thread, soon to be posted to the Farm. I am guessing that he has already converted that to producing the index listing so he doesn't need to use my process. I think a view of the "forest" is a lot more useful for us rookies than veterans, you guys already know the "trees" so well. For me, I sometimes have trouble finding controls and not knowing whether they are in gb.form or gb.qt4, or wherever they may be, so I can find the documentation easy. Once familiarized the utility of the search goes down. What I think is the most useful product out of the whole exercise is the development of the Vault files. I am refining those now and think they should be an integral part of every single database application at least. Of course, what I wanted is the database, the listing is just a byproduct. The database also has a listing of unique class names. Ced ----- Original Message ----- From: "Rolf-Werner Eilert" > Thank you very much for that, Cedron, I saved it here and guess it will be useful. Hm, maybe this list should be included in the documentation... Regards Rolf From gambas.fr at gmail.com Mon May 20 18:47:03 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Mon, 20 May 2019 18:47:03 +0200 Subject: [Gambas-user] Subst$ with a Variant array of values In-Reply-To: <5e354796-90c2-f3e7-18fa-0cfc78601840@gmail.com> References: <6239b611-822e-0535-881a-851d1d4004a8@gmail.com> <20190519061019.GE1582@highrise.localdomain> <936dcb87-0a4e-1058-f070-af65a40941c8@gmail.com> <888fd8cb-7f34-36f6-5ea5-5f5cbd1c114c@gmail.com> <20190519120632.GF1582@highrise.localdomain> <1513320474.35885960.1558269070967.JavaMail.zimbra@exede.net> <5e354796-90c2-f3e7-18fa-0cfc78601840@gmail.com> Message-ID: Really well seen Tobias ... I had forgotten that the connection.subst exist ... :-) But what about the Variant array in this story Bruce ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From genbraga1 at gmail.com Mon May 20 23:27:19 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 20 May 2019 18:27:19 -0300 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: <1734803023.37146995.1558356689240.JavaMail.zimbra@exede.net> References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> <748f770d-d9bb-aebf-2040-58e818b40cd5@osnanet.de> <1734803023.37146995.1558356689240.JavaMail.zimbra@exede.net> Message-ID: Ced or Cogier, in the gambaswiki.org, the default is lowercase characters to classes and methods, and yours is pointing to first character using uppercase. check it out: http://gambaswiki.org/wiki/comp/gb/Args (--> from gambas.one) http://gambaswiki.org/wiki/comp/gb/args (-->default wiki) - Gen 2019-05-20 9:51 GMT-03:00, Cedron Dawg : > Hi Rolf, > > Thank you. > > Cogier has already kindly posted it at https://www.gambas.one/classes/ It's > kind of a large page so if it were to go into the Wiki, perhaps there should > be one page per letter, or letter ranges. > > He has also developed a nice desktop equivalent, posted in the same thread, > soon to be posted to the Farm. I am guessing that he has already converted > that to producing the index listing so he doesn't need to use my process. > > I think a view of the "forest" is a lot more useful for us rookies than > veterans, you guys already know the "trees" so well. For me, I sometimes > have trouble finding controls and not knowing whether they are in gb.form or > gb.qt4, or wherever they may be, so I can find the documentation easy. Once > familiarized the utility of the search goes down. > > What I think is the most useful product out of the whole exercise is the > development of the Vault files. I am refining those now and think they > should be an integral part of every single database application at least. > > Of course, what I wanted is the database, the listing is just a byproduct. > The database also has a listing of unique class names. > > > Ced > > > > ----- Original Message ----- > From: "Rolf-Werner Eilert" >> > > Thank you very much for that, Cedron, > > I saved it here and guess it will be useful. > > Hm, maybe this list should be included in the documentation... > > Regards > Rolf > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From cedron at exede.net Mon May 20 23:52:13 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 20 May 2019 17:52:13 -0400 (EDT) Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> <748f770d-d9bb-aebf-2040-58e818b40cd5@osnanet.de> <1734803023.37146995.1558356689240.JavaMail.zimbra@exede.net> Message-ID: <1560590440.37764984.1558389133637.JavaMail.zimbra@exede.net> Hey Gen, Nice catch. The mixed case seems to work just fine though. Here is the fix for my latest post, WikiDemo.zip: ------------------------------------------ WikiReportModule 134: PrintEntry: 142: url = theUrlHost & Lower(theUrlSection & "/" & theComponentNames[r] & "/" & theClassNames[r]) ------------------------------------------ I'm polishing the Vault and VaultBox classes right now somewhat and when that has settled I'll replace the zip file on Gambas.one. Ced ----- Original Message ----- From: "gen braga" To: "user" Sent: Monday, May 20, 2019 5:27:19 PM Subject: Re: [Gambas-user] An HTML index of Gambas Classes Ced or Cogier, in the gambaswiki.org, the default is lowercase characters to classes and methods, and yours is pointing to first character using uppercase. check it out: http://gambaswiki.org/wiki/comp/gb/Args (--> from gambas.one) http://gambaswiki.org/wiki/comp/gb/args (-->default wiki) - Gen From cedron at exede.net Tue May 21 00:02:05 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 20 May 2019 18:02:05 -0400 (EDT) Subject: [Gambas-user] Gambas called by a Web Server Message-ID: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> As I have mentioned before, I am planning on having a web front end on my FarmDB. My thinking was Apache/MySQL/PHP as I have that setup. However, being able to do it in Gambas sounds very appealing. So, I thought I would go to the Farm and see if there are any good examples. Oh no, too tough to find anything in there, so I will ask instead. Are there any projects in the Farm, or some good example code for writing CGI equivalents in Gambas? Two alternatives, right? Script or executable. What are the merits of either? I just downloaded gambas3-scripter and a text edit, chmod 755 later, I was able to run my first script on the terminal line. Thanks, Ced http://gambaswiki.org/wiki/doc/scripting From g4mba5 at gmail.com Tue May 21 00:07:28 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 21 May 2019 00:07:28 +0200 Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> Message-ID: <1238c818-36eb-aaba-67f6-3055ac01e148@gmail.com> Le 21/05/2019 ? 00:02, Cedron Dawg a ?crit : > As I have mentioned before, I am planning on having a web front end > on my FarmDB. > > My thinking was Apache/MySQL/PHP as I have that setup. However, > being able to do it in Gambas sounds very appealing. So, I thought I > would go to the Farm and see if there are any good examples. Oh no, > too tough to find anything in there, so I will ask instead. > > Are there any projects in the Farm, or some good example code for > writing CGI equivalents in Gambas? > > Two alternatives, right? Script or executable. > > What are the merits of either? > > I just downloaded gambas3-scripter and a text edit, chmod 755 later, > I was able to run my first script on the terminal line. > > Thanks, > > Ced > > http://gambaswiki.org/wiki/doc/scripting > The gambas wiki is a CGI script. -- Beno?t Minisini From jussi.lahtinen at gmail.com Tue May 21 00:16:50 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 21 May 2019 01:16:50 +0300 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> Message-ID: I tried to take a look, but I just get message that I have accept cookie policy first... how? Jussi On Fri, May 17, 2019 at 6:48 AM Cedron Dawg wrote: > I just posted a nice little index of all the Gambas class names at > Gambas.One > > https://forum.gambas.one/viewtopic.php?f=4&t=708 > > The post is called "An HTML index of Gambas Classes" > > It is very plain vanilla html. > > Ced > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue May 21 00:21:47 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 20 May 2019 18:21:47 -0400 (EDT) Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: <1238c818-36eb-aaba-67f6-3055ac01e148@gmail.com> References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> <1238c818-36eb-aaba-67f6-3055ac01e148@gmail.com> Message-ID: <1010032553.37783331.1558390907085.JavaMail.zimbra@exede.net> Okay, so look here for exemplary code? ./gambas-master/app/src/gambas-wiki/.src But that is a project for an executable, isn't it? I am looking at it though. My server is on another computer so it is going to take a little playing around. CGI exe's were notoriously inefficient (new process for every request), do these work that way? ----- Original Message ----- From: "Beno?t Minisini" The gambas wiki is a CGI script. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From genbraga1 at gmail.com Tue May 21 00:32:27 2019 From: genbraga1 at gmail.com (gen braga) Date: Mon, 20 May 2019 19:32:27 -0300 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> Message-ID: https://www.gambas.one/classes/ Em seg, 20 de mai de 2019 19:18, Jussi Lahtinen escreveu: > I tried to take a look, but I just get message that I have accept cookie > policy first... how? > > > Jussi > > > > > On Fri, May 17, 2019 at 6:48 AM Cedron Dawg wrote: > >> I just posted a nice little index of all the Gambas class names at >> Gambas.One >> >> https://forum.gambas.one/viewtopic.php?f=4&t=708 >> >> The post is called "An HTML index of Gambas Classes" >> >> It is very plain vanilla html. >> >> Ced >> >> >> ----[ 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 cedron at exede.net Tue May 21 00:46:14 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 20 May 2019 18:46:14 -0400 (EDT) Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> Message-ID: <249227025.37813193.1558392374890.JavaMail.zimbra@exede.net> The cookie accept is somewhere obscure, don't remember where, but it took me a few moments to find. Since it is fairly small (26K), I've attached the updated zip file to this email. It does the full Wiki region of the database. I'll be relacing the posted one shortly. Ced ----- Original Message ----- From: "Jussi Lahtinen" To: "user" Sent: Monday, May 20, 2019 6:16:50 PM Subject: Re: [Gambas-user] An HTML index of Gambas Classes I tried to take a look, but I just get message that I have accept cookie policy first... how? Jussi -------------- next part -------------- A non-text attachment was scrubbed... Name: WikiDemo2.zip Type: application/zip Size: 26900 bytes Desc: not available URL: From g4mba5 at gmail.com Tue May 21 01:06:59 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 21 May 2019 01:06:59 +0200 Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: <1010032553.37783331.1558390907085.JavaMail.zimbra@exede.net> References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> <1238c818-36eb-aaba-67f6-3055ac01e148@gmail.com> <1010032553.37783331.1558390907085.JavaMail.zimbra@exede.net> Message-ID: <1a8345be-8c36-6029-8a59-1d6c4cd9a97b@gmail.com> Le 21/05/2019 ? 00:21, Cedron Dawg a ?crit?: > > Okay, so look here for exemplary code? > > ./gambas-master/app/src/gambas-wiki/.src > > But that is a project for an executable, isn't it? > > I am looking at it though. My server is on another computer so it is going to take a little playing around. > > CGI exe's were notoriously inefficient (new process for every request), do these work that way? > Creating a process is not so expensive on Linux, and Gambas executables are very fast to start. Of course, if you need to handle ten of thousands requests by second, this could be a problem. Below that number, it's ok. -- Beno?t Minisini From g4mba5 at gmail.com Tue May 21 01:10:23 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 21 May 2019 01:10:23 +0200 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> Message-ID: <747dd684-57d4-26c9-f2d5-72bf3a9872e2@gmail.com> Le 21/05/2019 ? 00:32, gen braga a ?crit?: > https://www.gambas.one/classes/ > There are some components that are supposed to have exactly the same classes with the same interface: gb.gui, gb.gui.qt, gb.qt4, gb.qt5, gb.gtk, gb.gtk3. Same thing for the webkit and opengl gui components. Maybe merging the classes for these components would be a good idea? Note that list of these components must be encoded by hand in Cedric's program at the moment. There is nothing that can tell dynamically the components having exactly the same interface. -- Beno?t Minisini From cedron at exede.net Tue May 21 01:28:53 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 20 May 2019 19:28:53 -0400 (EDT) Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: <747dd684-57d4-26c9-f2d5-72bf3a9872e2@gmail.com> References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> <747dd684-57d4-26c9-f2d5-72bf3a9872e2@gmail.com> Message-ID: <1117788130.37841318.1558394933287.JavaMail.zimbra@exede.net> Yeah, that's why I included the unique tables in the database to allow the web pages to go to a detail screen by class or component name and there find a comparison chart (crosstab-ish) if there are multiple defintions. I don't think my reporting on it should motivate you to make any structural changes. My interest is still driving towards where all the usages of a particular component or class can be found in a given code base, the Farm being the primary target, my own code for myself being secondary. I do think using SQLite for this is much better. Every one can have their own easily. I will make a validation program on this very point for you and report any anomolies. Ced ----- Original Message ----- From: "Beno?t Minisini" There are some components that are supposed to have exactly the same classes with the same interface: gb.gui, gb.gui.qt, gb.qt4, gb.qt5, gb.gtk, gb.gtk3. Same thing for the webkit and opengl gui components. Maybe merging the classes for these components would be a good idea? Note that list of these components must be encoded by hand in Cedric's program at the moment. There is nothing that can tell dynamically the components having exactly the same interface. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From jussi.lahtinen at gmail.com Tue May 21 02:55:38 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 21 May 2019 03:55:38 +0300 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> Message-ID: Thanks! Jussi On Tue, May 21, 2019 at 1:33 AM gen braga wrote: > https://www.gambas.one/classes/ > > Em seg, 20 de mai de 2019 19:18, Jussi Lahtinen > escreveu: > >> I tried to take a look, but I just get message that I have accept cookie >> policy first... how? >> >> >> Jussi >> >> >> >> >> On Fri, May 17, 2019 at 6:48 AM Cedron Dawg wrote: >> >>> I just posted a nice little index of all the Gambas class names at >>> Gambas.One >>> >>> https://forum.gambas.one/viewtopic.php?f=4&t=708 >>> >>> The post is called "An HTML index of Gambas Classes" >>> >>> It is very plain vanilla html. >>> >>> Ced >>> >>> >>> ----[ 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: From jussi.lahtinen at gmail.com Tue May 21 02:59:39 2019 From: jussi.lahtinen at gmail.com (Jussi Lahtinen) Date: Tue, 21 May 2019 03:59:39 +0300 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: <249227025.37813193.1558392374890.JavaMail.zimbra@exede.net> References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> <249227025.37813193.1558392374890.JavaMail.zimbra@exede.net> Message-ID: It seems to be broken. I did find "Delete all board cookies", which gives again the message that I must first accept cookie policy and then it asks if I want to accept the cookie policy. I accepted the cookie policy, but I still get the same message when clicking on any link. Jussi On Tue, May 21, 2019 at 1:47 AM Cedron Dawg wrote: > The cookie accept is somewhere obscure, don't remember where, but it took > me a few moments to find. > > Since it is fairly small (26K), I've attached the updated zip file to this > email. It does the full Wiki region of the database. > > I'll be relacing the posted one shortly. > > Ced > > > > ----- Original Message ----- > From: "Jussi Lahtinen" > To: "user" > Sent: Monday, May 20, 2019 6:16:50 PM > Subject: Re: [Gambas-user] An HTML index of Gambas Classes > > I tried to take a look, but I just get message that I have accept cookie > policy first... how? > > > Jussi > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chrisml at deganius.de Tue May 21 09:42:25 2019 From: chrisml at deganius.de (Christof Thalhofer) Date: Tue, 21 May 2019 09:42:25 +0200 Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> Message-ID: <6eaaa73e-9f6a-acd7-8b75-1a3d86d9ab3a@deganius.de> Am 21.05.19 um 00:02 schrieb Cedron Dawg: > My thinking was Apache/MySQL/PHP as I have that setup. However, > being able to do it in Gambas sounds very appealing. So, I thought I > would go to the Farm and see if there are any good examples. Oh no, > too tough to find anything in there, so I will ask instead. I use an Apache server which uses Gambas instead of PHP. Here is an example of the virtual host definition: ---------------------------------------------------------- DocumentRoot /home/doms/degapp ServerName degapp # AssignUserId degapp deganius DirectoryIndex degapp.gambas AllowOverride None Options +ExecCGI Require all granted AddHandler cgi-script .gbs AddHandler cgi-script .gambas SetHandler cgi-script RewriteEngine on RewriteRule ^.+$ /degapp.gambas [L] ---------------------------------------------------------- The Gambas program is installed in /usr/bin/degapp.gambas. It uses Request and Response from gb.web: http://gambaswiki.org/wiki/comp/gb.web By this way every request to Apache is sent to the Gambas program via CGI. Everything this program prints is sent back by Apache to the browser. A response in Gambas looks like that: ---------------------------------------------------------- Public Sub Main() With Response .Status = 200 .Begin .ContentType = "text/plain;charset=utf-8" CGI.Dump() .End End With End ---------------------------------------------------------- Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From bagonergi at gmail.com Tue May 21 09:49:10 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 21 May 2019 09:49:10 +0200 Subject: [Gambas-user] An HTML index of Gambas Classes In-Reply-To: References: <1565819455.33296329.1558064828509.JavaMail.zimbra@exede.net> <249227025.37813193.1558392374890.JavaMail.zimbra@exede.net> Message-ID: Hi Jussi, this code works here: https://forum.gambas.one/viewtopic.php?f=4&t=708#p1687 (WikiDemo2.zip) Regards Gianluigi Il giorno mar 21 mag 2019 alle ore 03:00 Jussi Lahtinen < jussi.lahtinen at gmail.com> ha scritto: > It seems to be broken. I did find "Delete all board cookies", which gives > again the message that I must first accept cookie policy and then it asks > if I want to accept the cookie policy. > I accepted the cookie policy, but I still get the same message when > clicking on any link. > > > Jussi > > On Tue, May 21, 2019 at 1:47 AM Cedron Dawg wrote: > >> The cookie accept is somewhere obscure, don't remember where, but it took >> me a few moments to find. >> >> Since it is fairly small (26K), I've attached the updated zip file to >> this email. It does the full Wiki region of the database. >> >> I'll be relacing the posted one shortly. >> >> Ced >> >> >> >> ----- Original Message ----- >> From: "Jussi Lahtinen" >> To: "user" >> Sent: Monday, May 20, 2019 6:16:50 PM >> Subject: Re: [Gambas-user] An HTML index of Gambas Classes >> >> I tried to take a look, but I just get message that I have accept cookie >> policy first... how? >> >> >> Jussi >> >> >> ----[ 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 taboege at gmail.com Tue May 21 10:50:57 2019 From: taboege at gmail.com (Tobias Boege) Date: Tue, 21 May 2019 10:50:57 +0200 Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> Message-ID: <20190521085057.GI1582@highrise.localdomain> On Mon, 20 May 2019, Cedron Dawg wrote: > As I have mentioned before, I am planning on having a web front end on my FarmDB. > > My thinking was Apache/MySQL/PHP as I have that setup. However, being able to do it in Gambas sounds very appealing. So, I thought I would go to the Farm and see if there are any good examples. Oh no, too tough to find anything in there, so I will ask instead. > > Are there any projects in the Farm, or some good example code for writing CGI equivalents in Gambas? > > Two alternatives, right? Script or executable. > > What are the merits of either? > The merit of a script is that it's slightly easier to deploy I would say. The great disadvantage of Gambas scripts is that you're effectively limited to a single class in your project. If you look at the Gambas Wiki program, it uses multiple classes and even Webpages [1] which clearly beat Print- based CGI. Concerning performance, you should know that the scripter is just a Gambas program that takes your script, builds a proper project directory structure around it, which gets compiled, *caches that* at least, and then has it run. The overhead of looking the compiled executable up in the cache and having to start the regular interpreter anyway makes it even slightly worse than having a normal project. For me, all signs point at writing a full project and running its executable. But there's a third way: an application server. When I lived in the student dorms, where my friends and I had a shared network, I used to run a bigger Gambas program for us based on gb.web.form under gb.httpd which was reverse- proxied by nginx. gb.httpd is sort of building a web server into your Gambas program. On each new HTTP request, the server parses it, sets up variables, then forks and longjmp's into the host Gambas program to handle the request. That was in the very early days of gb.web.form and it required some hacking to get it all to work, but I don't remember where problems came up. Maybe it's simply better these days and you want to try it out? Regards, Tobi [1] http://gambaswiki.org/wiki/doc/webpage -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From cedron at exede.net Tue May 21 15:08:34 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 21 May 2019 09:08:34 -0400 (EDT) Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: <20190521085057.GI1582@highrise.localdomain> References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> <20190521085057.GI1582@highrise.localdomain> Message-ID: <871115783.38535948.1558444114725.JavaMail.zimbra@exede.net> Thanks Christof and Tobi, I'm just in the exploratory stage of this now. It is good to know that I should be able to use the same code that I am producing the static HTML reports with to serve up dynamic web pages. I am pretty sure I am heading in the third direction, without any hacking. It is important that I be able to easily and efficiently maintain persistent sharable application and session level objects. In the early days of web servers, I wrote a C based CGI relay program which communicated to a running VB3 (or 4) via a file passing protocol. The same method should work here using a PHP relay and a TCP connection. There are other advantages too. I'm almost done with the new class report files. I'll be posting the code soon. Ced ----- Original Message ----- From: "Tobias Boege" The merit of a script is that it's slightly easier to deploy I would say. The great disadvantage of Gambas scripts is that you're effectively limited to a single class in your project. If you look at the Gambas Wiki program, it uses multiple classes and even Webpages [1] which clearly beat Print- based CGI. Concerning performance, you should know that the scripter is just a Gambas program that takes your script, builds a proper project directory structure around it, which gets compiled, *caches that* at least, and then has it run. The overhead of looking the compiled executable up in the cache and having to start the regular interpreter anyway makes it even slightly worse than having a normal project. For me, all signs point at writing a full project and running its executable. But there's a third way: an application server. When I lived in the student dorms, where my friends and I had a shared network, I used to run a bigger Gambas program for us based on gb.web.form under gb.httpd which was reverse- proxied by nginx. gb.httpd is sort of building a web server into your Gambas program. On each new HTTP request, the server parses it, sets up variables, then forks and longjmp's into the host Gambas program to handle the request. That was in the very early days of gb.web.form and it required some hacking to get it all to work, but I don't remember where problems came up. Maybe it's simply better these days and you want to try it out? Regards, Tobi [1] http://gambaswiki.org/wiki/doc/webpage -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From g4mba5 at gmail.com Tue May 21 15:13:32 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 21 May 2019 15:13:32 +0200 Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: <871115783.38535948.1558444114725.JavaMail.zimbra@exede.net> References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> <20190521085057.GI1582@highrise.localdomain> <871115783.38535948.1558444114725.JavaMail.zimbra@exede.net> Message-ID: I suggest not to use 'gb.httpd' for production applications. It was just an hack made for debugging web applications. My two cents. Le 21/05/2019 ? 15:08, Cedron Dawg a ?crit : > Thanks Christof and Tobi, > > I'm just in the exploratory stage of this now. It is good to know > that I should be able to use the same code that I am producing the > static HTML reports with to serve up dynamic web pages. > > I am pretty sure I am heading in the third direction, without any > hacking. It is important that I be able to easily and efficiently > maintain persistent sharable application and session level objects. > In the early days of web servers, I wrote a C based CGI relay program > which communicated to a running VB3 (or 4) via a file passing > protocol. The same method should work here using a PHP relay and a > TCP connection. There are other advantages too. > > I'm almost done with the new class report files. I'll be posting the > code soon. > > Ced > > > > ----- Original Message ----- From: "Tobias Boege" > > > The merit of a script is that it's slightly easier to deploy I would > say. The great disadvantage of Gambas scripts is that you're > effectively limited to a single class in your project. If you look at > the Gambas Wiki program, it uses multiple classes and even Webpages > [1] which clearly beat Print- based CGI. > > Concerning performance, you should know that the scripter is just a > Gambas program that takes your script, builds a proper project > directory structure around it, which gets compiled, *caches that* at > least, and then has it run. The overhead of looking the compiled > executable up in the cache and having to start the regular > interpreter anyway makes it even slightly worse than having a normal > project. > > For me, all signs point at writing a full project and running its > executable. > > But there's a third way: an application server. When I lived in the > student dorms, where my friends and I had a shared network, I used to > run a bigger Gambas program for us based on gb.web.form under > gb.httpd which was reverse- proxied by nginx. gb.httpd is sort of > building a web server into your Gambas program. On each new HTTP > request, the server parses it, sets up variables, then forks and > longjmp's into the host Gambas program to handle the request. > > That was in the very early days of gb.web.form and it required some > hacking to get it all to work, but I don't remember where problems > came up. Maybe it's simply better these days and you want to try it > out? > > Regards, Tobi > > [1] http://gambaswiki.org/wiki/doc/webpage > -- Beno?t Minisini From cedron at exede.net Tue May 21 15:28:58 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 21 May 2019 09:28:58 -0400 (EDT) Subject: [Gambas-user] Gambas called by a Web Server In-Reply-To: References: <97416786.37770921.1558389725080.JavaMail.zimbra@exede.net> <20190521085057.GI1582@highrise.localdomain> <871115783.38535948.1558444114725.JavaMail.zimbra@exede.net> Message-ID: <1382674260.38567595.1558445338842.JavaMail.zimbra@exede.net> Thanks Benoit, I was planning on using the gb.net stuff and leaving anything http related back in the PHP relay and Apache. Web serving, like HTML and everything else http related has gotten so damn complicated with kludge built on kludge multiple levels deep nestled in hacked together frameworks I want to avoid dealing with details of that as much as possible. A nice custom TCP protocol would also allow me to develop an alternative Gambas based client as well. My use of very plain vanilla HTML is very much intentional. Sort of a protest vote. Ced ----- Original Message ----- From: "Beno?t Minisini" To: "user" Sent: Tuesday, May 21, 2019 9:13:32 AM Subject: Re: [Gambas-user] Gambas called by a Web Server I suggest not to use 'gb.httpd' for production applications. It was just an hack made for debugging web applications. My two cents. From the_watchmann at yahoo.com Tue May 21 20:50:21 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Tue, 21 May 2019 18:50:21 +0000 (UTC) Subject: [Gambas-user] Using dates in Gambas In-Reply-To: References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> Message-ID: <800896567.3167205.1558464621956@mail.yahoo.com> Hi Benoit It will be great if you can explain the database date handling because I can for the life of me not get Gambas to keep a sqlite date in sqlite format. (when loading from the database). Tried Str$, Format$, etc and no luck to date. It defaults to US format no matter what I try. I thought it had to do with my regional settings but Gambas apparently reads that perfectly when using? Print System.TimeZonePrint System.Language last try Gambas complained as follows:? The following error has occurred: Type mismatch: wanted Date, got String instead?(PS. I wanted a "date" as a string and not a date, in the hope that gambas would leave it alone...) I'm about ready to give up here... Many thanks David On Saturday, May 18, 2019, 1:54:08 PM GMT+2, Gianluigi wrote: Il giorno ven 17 mag 2019 alle ore 21:44 Beno?t Minisini ha scritto: Hi, As I notice that almost nobody suceeds in dealing with date & time correctly, I started to wrote a overview about that in the wiki. http://gambaswiki.org/wiki/doc/date Please feal free to comment and modify this page so that date & time management becomes as clear as possible. This is still a work in progress, and I especially need "how to" code example about dates. Regards, -- Beno?t Minisini Hi Benoit, probably could have inspired what I wrote here: https://lists.gambas-basic.org/pipermail/user/2019-May/067200.html In fact when I write: "Left(Str(hDate), 10) '(international)" I don't mean UTC but I mean "displaying the date in local format in all countries" And when I write: "Format(hDate, "dd/mm/yyyy") '(Local)" I mean "displaying the date in local format only in your country" In my defense, I have attached a project that contains this code that better explains what I wanted to say: ------------------------------------------- ' From a Sotema code Public Sub Main() ? Dim hConn As Connection ? Dim hResult As Result ? Dim hTable As Table ? ' Activate the display of gb.db messages ? db.Debug = True ? ' Set the connection parameters ? With hConn = New Connection ? ? .Type = "sqlite" ? ? .Host = System.User.Home ? ? .Open ? End With ? ' if the db exists, delete it. ? ' this allows you to run the example several times ? If (hConn.Databases.Exist("exampledb")) Then ? ? hConn.Databases.Remove("exampledb") ? ? hConn.Databases.Add("exampledb") ? Endif ? hConn.Name = "exampledb" ? ' create the table ? hTable = hConn.Tables.Add("users") ? hTable.Fields.Add("id", db.Integer) ? hTable.Fields.Add("name", db.String, 80) ? hTable.Fields.Add("birth", db.Date) ? ? hTable.Update() ? ' add one record ? hConn.Begin() ? hResult = hConn.Create("users") ? hResult!id = 1 ? hResult!name = "Gianluigi" ? hResult!birth = Date(1947, 4, 10) ? hResult.Update() ? hConn.Commit() ? ' retrieve the record ? hResult = hConn.Find("users") ' the same as ?select * from users ? ' hResult = hConn.Exec("SELECT * FROM users") ? Print Left(Str(hResult["birth"]), 10) ? 'Print Format(hResult["birth"], "dd/mm/yyyy") End ------------------------------------------ and I had previously referred to ReportTest on the Software farm, that treats dates the same way. Regards Gianluigi ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at gambas-buch.de Tue May 21 20:29:40 2019 From: hans at gambas-buch.de (Hans Lehmann) Date: Tue, 21 May 2019 20:29:40 +0200 Subject: [Gambas-user] Format source code Message-ID: <1be360f7-6933-8025-e9e4-2428c1ed59e6@gambas-buch.de> Hello. With the key combination Ctrl+Shift+F you can format the source code. Are there ways to change this format? Yours sincerely Hans -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharon at 455.co.il Tue May 21 21:11:10 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Tue, 21 May 2019 22:11:10 +0300 Subject: [Gambas-user] GTK2 or GTK3 without DESKTOP crashing In-Reply-To: <20190519225448.M28167@455.co.il> References: <20190519225448.M28167@455.co.il> Message-ID: <20190521190412.M89885@455.co.il> Hello Sorry, in the previous post I forgot to attach the file I created a small program with GTK3 And a small program with GTK2 (They are attached to this message) I installed a new FEDORA 30 64BIT minimal system without a desktop I installed on the system: gedit, xorg x11, gtk3, gambas3-runtime gambas3-gb-image gambas3-gb-form, gambas3-gb-gtk, gambas3-gb-gtk3 Login via CONSOLE without X I run: X :0 With the new CONSOLE I run software: DISPLAY=:0 gedit And it runs very well in the GEDIT display :0 1. But if I try to run the GTK3 program I created through GAMBAS: cd gtk3 DISPLAY=:0 gbx3 I accept this error: (gtk3:28129): Gdk-ERROR **: 18:48:59.671: The program 'gtk3' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 194 error_code 5 request_code 20 (core protocol) minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap (core dumped) 2. Also I run the GTK2 program that also gives an error: (gtk2:28142): Gdk-ERROR **: 18:51:40.077: The program 'gtk2' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 135 error_code 5 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap (core dumped) -------------- next part -------------- A non-text attachment was scrubbed... Name: test_gtk.zip Type: application/zip Size: 28330 bytes Desc: not available URL: From cedron at exede.net Tue May 21 22:27:16 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 21 May 2019 16:27:16 -0400 (EDT) Subject: [Gambas-user] A new HTML Class Report Message-ID: <518484099.39098226.1558470436650.JavaMail.zimbra@exede.net> This one is better. I've attached the files only. The code still needs a little tidying up. Formatting suggestions welcome. Ced -------------- next part -------------- A non-text attachment was scrubbed... Name: HtmlFiles_20190521.zip Type: application/zip Size: 96513 bytes Desc: not available URL: From cedron at exede.net Tue May 21 22:59:13 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 21 May 2019 16:59:13 -0400 (EDT) Subject: [Gambas-user] A new HTML Class Report In-Reply-To: <518484099.39098226.1558470436650.JavaMail.zimbra@exede.net> References: <518484099.39098226.1558470436650.JavaMail.zimbra@exede.net> Message-ID: <1015161537.39160432.1558472353648.JavaMail.zimbra@exede.net> My apologies, slight bug in this one. Close enough though that I'm not going to repost the reports, but I will post the code. ----- Original Message ----- From: "Cedron Dawg" This one is better. I've attached the files only. The code still needs a little tidying up. Formatting suggestions welcome. Ced ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From g4mba5 at gmail.com Tue May 21 23:07:18 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Tue, 21 May 2019 23:07:18 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <800896567.3167205.1558464621956@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> Message-ID: Le 21/05/2019 ? 20:50, David Silverwood via User a ?crit?: > Hi Benoit > > It will be great if you can explain the database date handling because I > can for the life of me not get Gambas to keep a sqlite date in sqlite > format. (when loading from the database). Tried Str$, Format$, etc and > no luck to date. It defaults to US format no matter what I try. I > thought it had to do with my regional settings but Gambas apparently > reads that perfectly when using > > Print System.TimeZone > Print System.Language > > last try Gambas complained as follows: > > The following error has occurred: > > Type mismatch: wanted Date, got String instead > (PS. I wanted a "date" as a string and not a date, in the hope that > gambas would leave it alone...) > > I'm about ready to give up here... > > Many thanks > > David > Have you read the wiki page I started to write? -- Beno?t Minisini From cedron at exede.net Wed May 22 01:11:40 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 21 May 2019 19:11:40 -0400 (EDT) Subject: [Gambas-user] Are "On ... Gosub" implemented with a jump table? Message-ID: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> In other words are they efficient or syntax sugar? Thanks, Ced From adamnt42 at gmail.com Wed May 22 01:58:58 2019 From: adamnt42 at gmail.com (Bruce) Date: Wed, 22 May 2019 09:28:58 +0930 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> Message-ID: <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> Don't know if this helps but... Some few years ago I had a similar problem with sqlite3. In the end I got around it by sending dates as strings formatted as "yyyy-mm-dd hh:nn:ss" e.g. "2014-07-07 00:00:00". That was the only format that that version of sqlite3 understood. Bruce On 22/5/19 6:37 am, Beno?t Minisini wrote: > Le 21/05/2019 ? 20:50, David Silverwood via User a ?crit?: >> Hi Benoit >> >> It will be great if you can explain the database date handling because >> I can for the life of me not get Gambas to keep a sqlite date in >> sqlite format. (when loading from the database). Tried Str$, Format$, >> etc and no luck to date. It defaults to US format no matter what I >> try. I thought it had to do with my regional settings but Gambas >> apparently reads that perfectly when using >> >> Print System.TimeZone >> Print System.Language >> >> last try Gambas complained as follows: >> >> The following error has occurred: >> >> Type mismatch: wanted Date, got String instead >> (PS. I wanted a "date" as a string and not a date, in the hope that >> gambas would leave it alone...) >> >> I'm about ready to give up here... >> >> Many thanks >> >> David >> > > Have you read the wiki page I started to write? > From rwe-sse at osnanet.de Wed May 22 08:23:38 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 22 May 2019 08:23:38 +0200 Subject: [Gambas-user] TableView Editor focus confused Message-ID: Hi folks! Now this is an issue with TableView I experienced last week. When you started editing a cell and then click somewhere else in the program, not only the focus of the cell gets lost (standard behaviour), but its contents disappeares completely unless you click it back. But it will only reappear for a second or so and disappear, only being displayed while you move the mouse, while the editor still keeps going. When issuing a click on any other element in the program, I would expect the editor to close editing either like with Return or Esc. So, did I miss here? Thanks for any input! Regards Rolf From gambas.fr at gmail.com Wed May 22 09:46:25 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 22 May 2019 09:46:25 +0200 Subject: [Gambas-user] Are "On ... Gosub" implemented with a jump table? In-Reply-To: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> References: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> Message-ID: Le mer. 22 mai 2019 01:12, Cedron Dawg a ?crit : > In other words are they efficient or syntax sugar? > > Thanks, > What is the goal of that ? On condition gosub ... Look to be the same as If condition then gosub... So ? Or is it a thing that look like a select case ? But the call to the gosub ... can it be implemented dynamiquely ? Gosub strsubs[value] ? > Ced > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 22 10:04:17 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 22 May 2019 10:04:17 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: References: Message-ID: But do you use this event to save values? Public Sub TableView1_Save(Row As Integer, Column As Integer, Value As String) ' It is used to save the written text inside the cells. TableView1[row, column].text = value End See: http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith http://gambaswiki.org/wiki/comp/gb.form/tableview/.save Regards Gianluigi Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Hi folks! > > Now this is an issue with TableView I experienced last week. When you > started editing a cell and then click somewhere else in the program, not > only the focus of the cell gets lost (standard behaviour), but its > contents disappeares completely unless you click it back. > > But it will only reappear for a second or so and disappear, only being > displayed while you move the mouse, while the editor still keeps going. > > When issuing a click on any other element in the program, I would expect > the editor to close editing either like with Return or Esc. > > So, did I miss here? Thanks for any input! > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Wed May 22 10:10:00 2019 From: taboege at gmail.com (Tobias Boege) Date: Wed, 22 May 2019 10:10:00 +0200 Subject: [Gambas-user] Are "On ... Gosub" implemented with a jump table? In-Reply-To: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> References: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> Message-ID: <20190522081000.GJ1582@highrise.localdomain> On Tue, 21 May 2019, Cedron Dawg wrote: > In other words are they efficient or syntax sugar? > If you compile a project with `gbc3 -av` you recompile all classes and do it verbosely. This will emit the generated bytecode in plain text. There you can see that the "On" part of the instruction compiles to an inline jump table. That's as far as I looked. Next step would be to go into main/gbx/gbx_exec_loop.c and trace the implementation of that instruction from the big bytecode jump_table, if you *really* care about what it does exactly. Anyway, it's not syntactic sugar. It's a dedicated instruction. Interestingly, in the bytecode, the ON part seems to do the jumping and the GOSUB part afterwards just handles the "fall-through" case. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From rwe-sse at osnanet.de Wed May 22 10:37:24 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 22 May 2019 10:37:24 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: References: Message-ID: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> Am 22.05.19 um 10:04 schrieb Gianluigi: > But do you use this event to save values? > Yes, I do :) I mainly use the code from Italy, see the attached project. When you run it, click into a cell and type some letters, then click on the button. What does the TableView editor do? > Public Sub TableView1_Save(Row As Integer, Column As Integer, Value As > String) > ' It is used to save the written text inside the cells. > > ? TableView1[row, column].text = value > > End > > See: > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > > Regards > Gianluigi > > Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner Eilert > > ha scritto: > > Hi folks! > > Now this is an issue with TableView I experienced last week. When you > started editing a cell and then click somewhere else in the program, > not > only the focus of the cell gets lost (standard behaviour), but its > contents disappeares completely unless you click it back. > > But it will only reappear for a second or so and disappear, only being > displayed while you move the mouse, while the editor still keeps going. > > When issuing a click on any other element in the program, I would > expect > the editor to close editing either like with Return or Esc. > > So, did I miss here? Thanks for any input! > > Regards > Rolf > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- A non-text attachment was scrubbed... Name: testtableview-0.0.1.tar.gz Type: application/gzip Size: 12546 bytes Desc: not available URL: From the_watchmann at yahoo.com Wed May 22 11:28:18 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Wed, 22 May 2019 09:28:18 +0000 (UTC) Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> Message-ID: <213434621.3456891.1558517298303@mail.yahoo.com> Thanks Bruce. I will give it a try! Hi, Benoit. I have read the wiki, in fact, my browser currently opens on it. But Gambas/Ubuntu is not playing along. I don't know whether en_ZA.UTF-8 is not supported or badly supported but when gambas loads the date from the sqlite db it is loaded as mm/dd/yyyy hh:mm:ss before attempted conversion and mm/dd/yyyy after attempted conversion, and not as yyyy-mm-dd. My problem comes in with a user(s) having to update the database. It means we have to change the date back to sqlite3 format every time we update a record and with one record having four odd different dates that can become quite time consuming not to mention tedious. Every conversion so far I have attempted has resulted in Gambas literally 'arguing' and 'fixing' it for me... I'm a newbie at Gambas having come from a QB/VB6 world to C? and Max Reason's xbasic and Freebasic. Having to rewrite this in any of the latter would result in hours of coding which honestly I would rather avoid. I am probably going to kick myself eventually for missing something small here but I think this is a good learning curve for me. Regards David -------------- next part -------------- An HTML attachment was scrubbed... URL: From gambas.fr at gmail.com Wed May 22 12:00:18 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Wed, 22 May 2019 12:00:18 +0200 Subject: [Gambas-user] Are "On ... Gosub" implemented with a jump table? In-Reply-To: <20190522081000.GJ1582@highrise.localdomain> References: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> <20190522081000.GJ1582@highrise.localdomain> Message-ID: can I delete my previous mail ? (yes I know we can't ... arf) :'( ... I've misunderstood the Cedron mail ... sorry... I apologize Le mer. 22 mai 2019 ? 10:11, Tobias Boege a ?crit : > On Tue, 21 May 2019, Cedron Dawg wrote: > > In other words are they efficient or syntax sugar? > > > > If you compile a project with `gbc3 -av` you recompile all classes and > do it verbosely. This will emit the generated bytecode in plain text. > There you can see that the "On" part of the instruction compiles to an > inline jump table. That's as far as I looked. > > Next step would be to go into main/gbx/gbx_exec_loop.c and trace the > implementation of that instruction from the big bytecode jump_table, > if you *really* care about what it does exactly. > > Anyway, it's not syntactic sugar. It's a dedicated instruction. > Interestingly, in the bytecode, the ON part seems to do the jumping > and the GOSUB part afterwards just handles the "fall-through" case. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.crean at y7mail.com Wed May 22 13:04:55 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Wed, 22 May 2019 11:04:55 +0000 (UTC) Subject: [Gambas-user] gb.web References: <1497154562.6050177.1558523095852.ref@mail.yahoo.com> Message-ID: <1497154562.6050177.1558523095852@mail.yahoo.com> Why is this not working in gambas gb.web. It works in a HTML page.MainPage
RegardsMike -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Wed May 22 13:06:18 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 22 May 2019 13:06:18 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> Message-ID: If I change from gb.gui (which in Ubuntu means GTK) to gb.gui.qt in Project> Properties ...> Components here with Ubuntu 18.04 and Gambas master, your project works fine. Regards Gianluigi Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Am 22.05.19 um 10:04 schrieb Gianluigi: > > But do you use this event to save values? > > > > Yes, I do :) I mainly use the code from Italy, see the attached project. > > When you run it, click into a cell and type some letters, then click on > the button. What does the TableView editor do? > > > Public Sub TableView1_Save(Row As Integer, Column As Integer, Value As > > String) > > ' It is used to save the written text inside the cells. > > > > TableView1[row, column].text = value > > > > End > > > > See: > > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > > > > Regards > > Gianluigi > > > > Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner Eilert > > > ha scritto: > > > > Hi folks! > > > > Now this is an issue with TableView I experienced last week. When you > > started editing a cell and then click somewhere else in the program, > > not > > only the focus of the cell gets lost (standard behaviour), but its > > contents disappeares completely unless you click it back. > > > > But it will only reappear for a second or so and disappear, only > being > > displayed while you move the mouse, while the editor still keeps > going. > > > > When issuing a click on any other element in the program, I would > > expect > > the editor to close editing either like with Return or Esc. > > > > So, did I miss here? Thanks for any input! > > > > Regards > > Rolf > > > > ----[ 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: From g4mba5 at gmail.com Wed May 22 14:15:10 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 May 2019 14:15:10 +0200 Subject: [Gambas-user] Are "On ... Gosub" implemented with a jump table? In-Reply-To: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> References: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> Message-ID: Le 22/05/2019 ? 01:11, Cedron Dawg a ?crit?: > In other words are they efficient or syntax sugar? > > Thanks, > > Ced > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > They use a jump table. -- Beno?t Minisini From g4mba5 at gmail.com Wed May 22 14:16:17 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 May 2019 14:16:17 +0200 Subject: [Gambas-user] gb.web In-Reply-To: <1497154562.6050177.1558523095852@mail.yahoo.com> References: <1497154562.6050177.1558523095852.ref@mail.yahoo.com> <1497154562.6050177.1558523095852@mail.yahoo.com> Message-ID: <412744d5-4816-84f9-661a-d001dda3852d@gmail.com> Le 22/05/2019 ? 13:04, Mike Crean via User a ?crit?: > Why is this not working in gambas gb.web. It works in a HTML page. > MainPage
> > Regards > Mike > "file://" links only works if your html page is opened locally, not from a web server. -- Beno?t Minisini From bagonergi at gmail.com Wed May 22 14:32:52 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 22 May 2019 14:32:52 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <213434621.3456891.1558517298303@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> Message-ID: Il giorno mer 22 mag 2019 alle ore 11:29 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > Thanks Bruce. I will give it a try! > > Hi, Benoit. I have read the wiki, in fact, my browser currently opens on > it. But Gambas/Ubuntu is not playing along. I don't know whether > en_ZA.UTF-8 is not supported or badly supported but when gambas loads the > date from the sqlite db it is loaded as mm/dd/yyyy hh:mm:ss before > attempted conversion and mm/dd/yyyy after attempted conversion, and not as > yyyy-mm-dd. My problem comes in with a user(s) having to update the > database. It means we have to change the date back to sqlite3 format every > time we update a record and with one record having four odd different dates > that can become quite time consuming not to mention tedious. Every > conversion so far I have attempted has resulted in Gambas literally > 'arguing' and 'fixing' it for me... > > I'm a newbie at Gambas having come from a QB/VB6 world to C and Max > Reason's xbasic and Freebasic. Having to rewrite this in any of the latter > would result in hours of coding which honestly I would rather avoid. > > I am probably going to kick myself eventually for missing something small > here but I think this is a good learning curve for me. > > Regards > > David > > If you upload a date to a SQLite table with Gambas using this code: hResult!birth = Date(1947, 4, 10, 15, 25, 00) Actually you write this string in the table field '1947-04-10 15:25:00' As you can see written in the console if you run the code I have attached to this discussion. Note: To see hours and minutes you need to change the code by adding them. If you wish to show your client what he wrote in the table use: Print Format(hResult["birth"], "yyyy-mm-dd hh:nn:ss") But I don't understand why you should show the date this way. Regards Gianluigi -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Wed May 22 15:03:56 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 22 May 2019 15:03:56 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <213434621.3456891.1558517298303@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> Message-ID: Le 22/05/2019 ? 11:28, David Silverwood via User a ?crit?: > Thanks Bruce. I will give it a try! > > Hi, Benoit. I have read the wiki, in fact, my browser currently opens on > it. But Gambas/Ubuntu is not playing along. I don't know whether > en_ZA.UTF-8 is not supported or badly supported but when gambas loads > the date from the sqlite db it is loaded as mm/dd/yyyy hh:mm:ss before > attempted conversion and mm/dd/yyyy after attempted conversion, and not > as yyyy-mm-dd. My problem comes in with a user(s) having to update the > database. It means we have to change the date back to sqlite3 format > every time we update a record and with one record having four odd > different dates that can become quite time consuming not to mention > tedious. Every conversion so far I have attempted has resulted in Gambas > literally 'arguing' and 'fixing' it for me... > OK, you read it, but I'm not sure you understood it then. "Dates are NOT strings" is the name of the first paragraph. Look at your words, you are talking about sending / receiving dates as strings from sqlite. On the other hand, I didn't write the database-specific paragraph, so I will explain you: 1) You must send to the database and receive from it dates, not strings. 2) You have to create the database from Gambas, by using Date fields. 3) The gambas database component will take care of using the accurate date/time SQL type that works with your specific database. 4) To write a date to the database, you use: 'Result!Field = SomeDate'. 5) 'SomeDate' must be a date. If you use a string, you deal with implicit conversion. 6) To read the date back, you use 'SomeDate = Result!Field'. 7) 'SomeDate' is still a date. Now if you want to show the date to the user, (or to you), you have to use PRINT, Str(), or Format(). 8) SQL date/time field types are a mess (as everything in SQL). The gambas database component will store the date in the database IN LOCAL TIME. Which is a stupid thing as soon as your database is accessed from different timezones. You have to manually convert the dates from the timezone of the server that writes to the database to the timezone of the client that reads it. An option for automatically doing that must be added to the Gambas database driver! Are things more clear now? -- Beno?t Minisini From cedron at exede.net Wed May 22 15:36:41 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 22 May 2019 09:36:41 -0400 (EDT) Subject: [Gambas-user] Using dates in Gambas In-Reply-To: References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> Message-ID: <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> Hi Benoit, I think you should have said: "In Gambas, dates are NOT strings", because in SQLite they are stored as such, which can make your proclamation confusing. In my own case, I haven't started using dates yet. I was/am assuming that the Gambas' Result class would take care of any converstions: I think this is true: 1) Gambas stores dates in its own internal format 2) Databases store dates in their own (inconsistent across different DB types) formats. 3) The Gambas database objects will convert for you under the covers. When you say "Gambas has to create the date fields", is that short hand for "In database with more than one DATE type, Gambas will only work with one."? Now, for the local vs UTC mess. I got bit early on by some functions being UTC aware and others not. Perhaps there should be two Date types in Gambas. The regular Date meaning local time, i.e. locale unaware, and a UtcDate which is locale aware. That way it would be really clear which one you are holding and the rules for display and database storage could be defined inpependently for both. Just a thought. Ced P.S. I've found working with databases delightfully easy in Gambas. P.P.S I haven't done any yet, but I presume that Gambas also handles boolean value storage conversions as well. ----- Original Message ----- From: "Beno?t Minisini" OK, you read it, but I'm not sure you understood it then. "Dates are NOT strings" is the name of the first paragraph. Look at your words, you are talking about sending / receiving dates as strings from sqlite. On the other hand, I didn't write the database-specific paragraph, so I will explain you: 1) You must send to the database and receive from it dates, not strings. 2) You have to create the database from Gambas, by using Date fields. 3) The gambas database component will take care of using the accurate date/time SQL type that works with your specific database. 4) To write a date to the database, you use: 'Result!Field = SomeDate'. 5) 'SomeDate' must be a date. If you use a string, you deal with implicit conversion. 6) To read the date back, you use 'SomeDate = Result!Field'. 7) 'SomeDate' is still a date. Now if you want to show the date to the user, (or to you), you have to use PRINT, Str(), or Format(). 8) SQL date/time field types are a mess (as everything in SQL). The gambas database component will store the date in the database IN LOCAL TIME. Which is a stupid thing as soon as your database is accessed from different timezones. You have to manually convert the dates from the timezone of the server that writes to the database to the timezone of the client that reads it. An option for automatically doing that must be added to the Gambas database driver! Are things more clear now? -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From cedron at exede.net Wed May 22 15:38:07 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 22 May 2019 09:38:07 -0400 (EDT) Subject: [Gambas-user] Are "On ... Gosub" implemented with a jump table? In-Reply-To: References: <163502771.39315313.1558480300442.JavaMail.zimbra@exede.net> Message-ID: <499303283.40013146.1558532287177.JavaMail.zimbra@exede.net> Benoit: Thanks, I thought so, but I wanted to make sure the easy way. Tobi: At some point I intend to get familiar with the byte code set, appreciate the tip on how to see them. Fabien: No worries, one of the reasons I prefer forums to mailing lists. The context has to do with proof of concept for a Gambas written TCP server to handle requests relayed from a Web CGI or other clients. Of course I want to use the most efficient dispatching technique internally that I can. Thanks, Ced From cedron at exede.net Wed May 22 15:59:42 2019 From: cedron at exede.net (Cedron Dawg) Date: Wed, 22 May 2019 09:59:42 -0400 (EDT) Subject: [Gambas-user] New HTML Classes Report Message-ID: <241736212.40056220.1558533582979.JavaMail.zimbra@exede.net> I just posted a new version of my Wiki database project on Gambas.One. Since it is small, I've also attached it to this email. https://forum.gambas.one/viewtopic.php?f=4&t=709#p1693 Comments, suggestions, recommendations, heck even criticism, is welcome. Ced -------------- next part -------------- A non-text attachment was scrubbed... Name: WikiDemo3.zip Type: application/zip Size: 30295 bytes Desc: not available URL: From adamnt42 at gmail.com Thu May 23 02:14:07 2019 From: adamnt42 at gmail.com (Bruce) Date: Thu, 23 May 2019 09:44:07 +0930 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> Message-ID: On 22/5/19 11:06 pm, Cedron Dawg wrote: > Hi Benoit, > > I think you should have said: "In Gambas, dates are NOT strings", because in SQLite they are stored as such, which can make your proclamation confusing. > 8< Ah, yes, of course! I remember now. That is the issue. Note also, if you are interested in times only this has "interesting" side effects (read "collateral damage"). IIRC, I had to force the date part of a time to a particular static date in order to be able to compare times. For example, did the milkman come later today than yesterday, where all we "store" is the time. Bruce From mike.crean at y7mail.com Thu May 23 03:11:35 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Thu, 23 May 2019 01:11:35 +0000 (UTC) Subject: [Gambas-user] gb.web In-Reply-To: <412744d5-4816-84f9-661a-d001dda3852d@gmail.com> References: <1497154562.6050177.1558523095852.ref@mail.yahoo.com> <1497154562.6050177.1558523095852@mail.yahoo.com> <412744d5-4816-84f9-661a-d001dda3852d@gmail.com> Message-ID: <15490410.6441157.1558573895890@mail.yahoo.com> How do I open it from an Apache web server using gb.web RegardsMike On Wednesday, 22 May 2019, 8:17:05 pm AWST, Beno?t Minisini wrote: Le 22/05/2019 ? 13:04, Mike Crean via User a ?crit?: > Why is this not working in gambas gb.web. It works in a HTML page. > MainPage
> > Regards > Mike > "file://" links only works if your html page is opened locally, not from a web server. -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.crean at y7mail.com Thu May 23 05:09:33 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Thu, 23 May 2019 03:09:33 +0000 (UTC) Subject: [Gambas-user] gb.web In-Reply-To: <20190520063349.M67289@455.co.il> References: <5852281.4697645.1558322587336.ref@mail.yahoo.com> <5852281.4697645.1558322587336@mail.yahoo.com> <20190520063349.M67289@455.co.il> Message-ID: <2092208994.6542231.1558580973266@mail.yahoo.com> Thaks for the info. On Monday, 20 May 2019, 2:35:08 pm AWST, Mayost Sharon wrote: <% ''How Do I put user and password into HtmlInput. Print Request["text1"] Print Request["text2"] %> ---------- Original Message ----------- From: Mike Crean via User To: "user at lists.gambas-basic.org" Cc: Mike Crean Sent: Mon, 20 May 2019 03:23:07 +0000 (UTC) Subject: [Gambas-user] gb.web > Hi all, How do I copy HTML inputs to a gambas variable. > <%Dim HtmlInput As String%> > ? Login? ?
? userid?
? > password?
? type="submit"name="button1"value="login">?
? <%!Arg? > ? ? ''??? %>? ?? <%''How Do I put user and password into HtmlInput.%> RegardsMike ------- End of Original Message ------- ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike.crean at y7mail.com Thu May 23 05:20:49 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Thu, 23 May 2019 03:20:49 +0000 (UTC) Subject: [Gambas-user] gb.web References: <774155648.6485236.1558581649444.ref@mail.yahoo.com> Message-ID: <774155648.6485236.1558581649444@mail.yahoo.com> Benoit, thanks for the reply. Why then when 3 forward slashes are used to tell the server to serve up the local file it works in a html document and not in gb,web? The test I used is a html file test.html and tests.html as the file to be served up by the server. Test.html The code above was entered into the Main.webpage section of gb.web and executed. The Tests.html file was not served or displayed. Tests.html
I was opened from Test.html
RegardsMike -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 23 08:46:15 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 May 2019 08:46:15 +0200 Subject: [Gambas-user] gb.web In-Reply-To: <774155648.6485236.1558581649444@mail.yahoo.com> References: <774155648.6485236.1558581649444.ref@mail.yahoo.com> <774155648.6485236.1558581649444@mail.yahoo.com> Message-ID: <7f85c9fa-8d1e-8745-cc08-b5c1037326bd@gmail.com> Le 23/05/2019 ? 05:20, Mike Crean via User a ?crit?: > Benoit, thanks for the reply. > > Why then when 3 forward slashes are used to tell the server to serve up > the local file it works in a html document and not in gb,web > > The test I used is a html file test.html and tests.html as the file to > be served up by the server. > > Test.html > > > >
> Test >
> > > The code above was entered into the Main.webpage section of gb.web and > executed. The Tests.html file was not served or displayed. > > Tests.html > > > >
> I was opened from Test.html >
> > > Regards > Mike > > Post your full project so that I can look at it. Thanks. -- Beno?t Minisini From shordi at gmail.com Thu May 23 09:10:44 2019 From: shordi at gmail.com (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 23 May 2019 09:10:44 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> Message-ID: In fact in Sqlite *all* data types are stored as characters and defined by "data affinity". Very well explained here: https://www.sqlite.org/datatype3.html Regards El mi?., 22 may. 2019 a las 15:37, Cedron Dawg () escribi?: > Hi Benoit, > > I think you should have said: "In Gambas, dates are NOT strings", because > in SQLite they are stored as such, which can make your proclamation > confusing. > > In my own case, I haven't started using dates yet. I was/am assuming that > the Gambas' Result class would take care of any converstions: > > I think this is true: > > 1) Gambas stores dates in its own internal format > > 2) Databases store dates in their own (inconsistent across different DB > types) formats. > > 3) The Gambas database objects will convert for you under the covers. > > When you say "Gambas has to create the date fields", is that short hand > for "In database with more than one DATE type, Gambas will only work with > one."? > > > Now, for the local vs UTC mess. I got bit early on by some functions > being UTC aware and others not. > > Perhaps there should be two Date types in Gambas. The regular Date > meaning local time, i.e. locale unaware, and a UtcDate which is locale > aware. That way it would be really clear which one you are holding and the > rules for display and database storage could be defined inpependently for > both. > > Just a thought. > > Ced > > P.S. I've found working with databases delightfully easy in Gambas. > > P.P.S I haven't done any yet, but I presume that Gambas also handles > boolean value storage conversions as well. > > > ----- Original Message ----- > From: "Beno?t Minisini" > > OK, you read it, but I'm not sure you understood it then. > > "Dates are NOT strings" is the name of the first paragraph. Look at your > words, you are talking about sending / receiving dates as strings from > sqlite. > > On the other hand, I didn't write the database-specific paragraph, so I > will explain you: > > 1) You must send to the database and receive from it dates, not strings. > > 2) You have to create the database from Gambas, by using Date fields. > > 3) The gambas database component will take care of using the accurate > date/time SQL type that works with your specific database. > > 4) To write a date to the database, you use: 'Result!Field = SomeDate'. > > 5) 'SomeDate' must be a date. If you use a string, you deal with > implicit conversion. > > 6) To read the date back, you use 'SomeDate = Result!Field'. > > 7) 'SomeDate' is still a date. Now if you want to show the date to the > user, (or to you), you have to use PRINT, Str(), or Format(). > > 8) SQL date/time field types are a mess (as everything in SQL). The > gambas database component will store the date in the database IN LOCAL > TIME. Which is a stupid thing as soon as your database is accessed from > different timezones. You have to manually convert the dates from the > timezone of the server that writes to the database to the timezone of > the client that reads it. An option for automatically doing that must be > added to the Gambas database driver! > > Are things more clear now? > > -- > Beno?t Minisini > > ----[ 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 mike.crean at y7mail.com Thu May 23 09:39:48 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Thu, 23 May 2019 07:39:48 +0000 (UTC) Subject: [Gambas-user] gb.web In-Reply-To: <7f85c9fa-8d1e-8745-cc08-b5c1037326bd@gmail.com> References: <774155648.6485236.1558581649444.ref@mail.yahoo.com> <774155648.6485236.1558581649444@mail.yahoo.com> <7f85c9fa-8d1e-8745-cc08-b5c1037326bd@gmail.com> Message-ID: <1261982697.6531566.1558597188624@mail.yahoo.com> Hi Benoit My gambas 3.13.0 projecttest is in gbWeb test.tar.gz attached. I have the gambas(test) application files in the cgi-bin folder that Apache points to(/var/www/cgi-bin). The two html filesare in the html folder(var/www/html). To test the gamgasapplication I just press F5 and the gambas default browser loads up.When I click on Test I just get a blank page. If I run Test.html inchrome or firefox it displays Tests.html as expected. RegardsMike On Thursday, 23 May 2019, 2:47:06 pm AWST, Beno?t Minisini wrote: Le 23/05/2019 ? 05:20, Mike Crean via User a ?crit?: > Benoit, thanks for the reply. > > Why then when 3 forward slashes are used to tell the server to serve up > the local file it works in a html document and not in gb,web > > The test I used is a html file test.html and tests.html as the file to > be served up by the server. > > Test.html > > > >
> Test >
> > > The code above was entered into the Main.webpage section of gb.web and > executed. The Tests.html file was not served or displayed. > > Tests.html > > > >
> I was opened from Test.html >
> > > Regards > Mike > > Post your full project so that I can look at it. Thanks. -- Beno?t Minisini ----[ 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: gbWeb test.tar.gz Type: application/gzip Size: 12213 bytes Desc: not available URL: From rwe-sse at osnanet.de Thu May 23 09:42:09 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Thu, 23 May 2019 09:42:09 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> Message-ID: <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> Ah, that works indeed! Thanks so much, Gianluigi! Hm... Shouldn't that be mentioned in the docs? Regards Rolf Am 22.05.19 um 13:06 schrieb Gianluigi: > If I change from gb.gui (which in Ubuntu means GTK) to gb.gui.qt in > Project> Properties ...> Components here with Ubuntu 18.04 and Gambas > master, your project works fine. > > Regards > Gianluigi > > Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner Eilert > > ha scritto: > > Am 22.05.19 um 10:04 schrieb Gianluigi: > > But do you use this event to save values? > > > > Yes, I do :) I mainly use the code from Italy, see the attached project. > > When you run it, click into a cell and type some letters, then click on > the button. What does the TableView editor do? > > > Public Sub TableView1_Save(Row As Integer, Column As Integer, > Value As > > String) > > ' It is used to save the written text inside the cells. > > > >? ? TableView1[row, column].text = value > > > > End > > > > See: > > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > > > > Regards > > Gianluigi > > > > Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner Eilert > > > >> ha scritto: > > > >? ? ?Hi folks! > > > >? ? ?Now this is an issue with TableView I experienced last week. > When you > >? ? ?started editing a cell and then click somewhere else in the > program, > >? ? ?not > >? ? ?only the focus of the cell gets lost (standard behaviour), > but its > >? ? ?contents disappeares completely unless you click it back. > > > >? ? ?But it will only reappear for a second or so and disappear, > only being > >? ? ?displayed while you move the mouse, while the editor still > keeps going. > > > >? ? ?When issuing a click on any other element in the program, I would > >? ? ?expect > >? ? ?the editor to close editing either like with Return or Esc. > > > >? ? ?So, did I miss here? Thanks for any input! > > > >? ? ?Regards > >? ? ?Rolf > > > >? ? ?----[ 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 ]---- > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > From gambas.fr at gmail.com Thu May 23 09:56:52 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Thu, 23 May 2019 09:56:52 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> Message-ID: So this a bug in the gb gtk compnents... Le jeu. 23 mai 2019 09:44, Rolf-Werner Eilert a ?crit : > Ah, that works indeed! Thanks so much, Gianluigi! > > Hm... Shouldn't that be mentioned in the docs? > > Regards > Rolf > > > Am 22.05.19 um 13:06 schrieb Gianluigi: > > If I change from gb.gui (which in Ubuntu means GTK) to gb.gui.qt in > > Project> Properties ...> Components here with Ubuntu 18.04 and Gambas > > master, your project works fine. > > > > Regards > > Gianluigi > > > > Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner Eilert > > > ha scritto: > > > > Am 22.05.19 um 10:04 schrieb Gianluigi: > > > But do you use this event to save values? > > > > > > > Yes, I do :) I mainly use the code from Italy, see the attached > project. > > > > When you run it, click into a cell and type some letters, then click > on > > the button. What does the TableView editor do? > > > > > Public Sub TableView1_Save(Row As Integer, Column As Integer, > > Value As > > > String) > > > ' It is used to save the written text inside the cells. > > > > > > TableView1[row, column].text = value > > > > > > End > > > > > > See: > > > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > > > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > > > > > > Regards > > > Gianluigi > > > > > > Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner Eilert > > > > > >> ha scritto: > > > > > > Hi folks! > > > > > > Now this is an issue with TableView I experienced last week. > > When you > > > started editing a cell and then click somewhere else in the > > program, > > > not > > > only the focus of the cell gets lost (standard behaviour), > > but its > > > contents disappeares completely unless you click it back. > > > > > > But it will only reappear for a second or so and disappear, > > only being > > > displayed while you move the mouse, while the editor still > > keeps going. > > > > > > When issuing a click on any other element in the program, I > would > > > expect > > > the editor to close editing either like with Return or Esc. > > > > > > So, did I miss here? Thanks for any input! > > > > > > Regards > > > Rolf > > > > > > ----[ 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 > ]---- > > > > > > > > ----[ 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 mike.crean at y7mail.com Thu May 23 11:08:18 2019 From: mike.crean at y7mail.com (Mike Crean) Date: Thu, 23 May 2019 09:08:18 +0000 (UTC) Subject: [Gambas-user] gb.web In-Reply-To: <1261982697.6531566.1558597188624@mail.yahoo.com> References: <774155648.6485236.1558581649444.ref@mail.yahoo.com> <774155648.6485236.1558581649444@mail.yahoo.com> <7f85c9fa-8d1e-8745-cc08-b5c1037326bd@gmail.com> <1261982697.6531566.1558597188624@mail.yahoo.com> Message-ID: <498124618.6599586.1558602498709@mail.yahoo.com> Thanks Benoit, I have just solved it my self. It was an html address issue. RegardsMike On Thursday, 23 May 2019, 3:41:07 pm AWST, Mike Crean via User wrote: Hi Benoit My gambas 3.13.0 projecttest is in gbWeb test.tar.gz attached. I have the gambas(test) application files in the cgi-bin folder that Apache points to(/var/www/cgi-bin). The two html filesare in the html folder(var/www/html). To test the gamgasapplication I just press F5 and the gambas default browser loads up.When I click on Test I just get a blank page. If I run Test.html inchrome or firefox it displays Tests.html as expected. RegardsMike On Thursday, 23 May 2019, 2:47:06 pm AWST, Beno?t Minisini wrote: Le 23/05/2019 ? 05:20, Mike Crean via User a ?crit?: > Benoit, thanks for the reply. > > Why then when 3 forward slashes are used to tell the server to serve up > the local file it works in a html document and not in gb,web > > The test I used is a html file test.html and tests.html as the file to > be served up by the server. > > Test.html > > > >
> Test >
> > > The code above was entered into the Main.webpage section of gb.web and > executed. The Tests.html file was not served or displayed. > > Tests.html > > > >
> I was opened from Test.html >
> > > Regards > Mike > > Post your full project so that I can look at it. Thanks. -- Beno?t Minisini ----[ 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 mati86dl at gmail.com Thu May 23 14:50:44 2019 From: mati86dl at gmail.com (Matias De lellis) Date: Thu, 23 May 2019 09:50:44 -0300 Subject: [Gambas-user] Gambas webform, routing to another webform Message-ID: Hi Beno?t, everyone, I was trying to make a small configuration fronted for a pagekite [1] relay. I use pagekite for tests, a while ago, but I need to make it more dynamic. Basically I need to manage the users that connect to the relay. With this commit [2] it's easy, but I want to do the fronted that manage it. Only need an CRUD with users, ports and secret key. It's easy .. No? ;) Well. The important thing is also that I need a simple login and control the routes. If it is logged, show the main fronted (on /relays), and if not, redirect to the login webform (on /login) Since this is a relatively new control, there are few examples (Practically only those who are with the source code). and I do not find any that shows how to redirect to another webform. :S In the original announcement[3], you said this: > How to switch from one web form to another one is not designed yet. At > the moment, the url 'http:////abcd' is supposed to display > the web form whose class name is 'abcd'. There is no way to have > different instances of the same web form. But I could not make it work.. :( Delving into the code, I found that basically you deleted it[4], but I do not see how to replace it. You can guide me in what is the alternative to solve this.? A single example with a webButton that redirects to another webform, should be more than enough. :smiley: Of course, thank you very much .. Regards, Matias ..and p.s: Congratulations for your new stage as a self-employed company. =) [1]: https://pagekite.net/ [2]: https://github.com/pagekite/PyPagekite/commit/9b11980a43cbe9f0c4fc7f749188cb6266737600 [3]: http://gambas.8142.n7.nabble.com/New-gb-web-form-component-td54380.html [4]: https://gitlab.com/gambas/gambas/commit/ab231c0bda9ff2eff0764dd7dad9269e3c4123d4 -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 23 16:43:30 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 23 May 2019 16:43:30 +0200 Subject: [Gambas-user] Gambas webform, routing to another webform In-Reply-To: References: Message-ID: <80eefffd-02e7-5a00-e8c0-ffc975726d89@gmail.com> Le 23/05/2019 ? 14:50, Matias De lellis a ?crit?: > Hi Beno?t, everyone, > > I was trying to make a small configuration fronted for a pagekite [1] relay. > I use pagekite for tests, a while ago, but I need to make it more dynamic. > Basically I need to manage the users that connect to the relay. With this > commit [2] it's easy, but I want to do the fronted that manage it. > > Only need an CRUD with users, ports and secret key. It's easy .. No? ;) > > Well. The important thing is also that I need a simple login and control > the routes. If it is logged, show the main fronted (on /relays), and if not, > redirect to the login webform (on /login) > > Since this is a relatively new control, there are few examples (Practically > only those who are with the source code). and I do not find any that shows > how to redirect to another webform. :S > > In the original announcement[3], you said this: > > > How to switch from one web form to another one is not designed yet. At > > the moment, the url 'http:////abcd' is supposed to display > > the web form whose class name is 'abcd'. There is no way to have > > different instances of the same web form. > > But I could not make it work.. :( > > Delving into the code, I found that basically you deleted it[4], but I > do not > see how to replace it. You can guide me in what is the alternative to > solve this.? > A single example with a webButton that redirects to another webform, > should be more than enough. :smiley: > > Of course, thank you very much .. > > Regards, > Matias > > ..and p.s: Congratulations for your new stage as a self-employed > company. =) > > [1]: https://pagekite.net/ > [2]: > https://github.com/pagekite/PyPagekite/commit/9b11980a43cbe9f0c4fc7f749188cb6266737600 > [3]: http://gambas.8142.n7.nabble.com/New-gb-web-form-component-td54380.html > [4]: > https://gitlab.com/gambas/gambas/commit/ab231c0bda9ff2eff0764dd7dad9269e3c4123d4 > WebForm.Startup is a property that allows to define the name of the web application startup form. By default, it's the project startup form, which should be your login form. Then, in your login form, once your user is authenticated, you set the WebForm.Startup property to the name of your real application startup form. Regards, -- Beno?t Minisini From mati86dl at gmail.com Thu May 23 17:45:36 2019 From: mati86dl at gmail.com (Matias De lellis) Date: Thu, 23 May 2019 12:45:36 -0300 Subject: [Gambas-user] Gambas webform, routing to another webform In-Reply-To: <80eefffd-02e7-5a00-e8c0-ffc975726d89@gmail.com> References: <80eefffd-02e7-5a00-e8c0-ffc975726d89@gmail.com> Message-ID: Wow. Thanks Beno?t, It's all the info I needed. =) I attach a very basic example that exemplifies how to login in an Webform, saving a username in the session, and jump to another webform, where he greets the user. For some it will be useful. ;) El jue., 23 may. 2019 a las 11:44, Beno?t Minisini () escribi?: > Le 23/05/2019 ? 14:50, Matias De lellis a ?crit : > > Hi Beno?t, everyone, > > > > I was trying to make a small configuration fronted for a pagekite [1] > relay. > > I use pagekite for tests, a while ago, but I need to make it more > dynamic. > > Basically I need to manage the users that connect to the relay. With this > > commit [2] it's easy, but I want to do the fronted that manage it. > > > > Only need an CRUD with users, ports and secret key. It's easy .. No? ;) > > > > Well. The important thing is also that I need a simple login and control > > the routes. If it is logged, show the main fronted (on /relays), and if > not, > > redirect to the login webform (on /login) > > > > Since this is a relatively new control, there are few examples > (Practically > > only those who are with the source code). and I do not find any that > shows > > how to redirect to another webform. :S > > > > In the original announcement[3], you said this: > > > > > How to switch from one web form to another one is not designed yet. At > > > the moment, the url 'http:////abcd' is supposed to > display > > > the web form whose class name is 'abcd'. There is no way to have > > > different instances of the same web form. > > > > But I could not make it work.. :( > > > > Delving into the code, I found that basically you deleted it[4], but I > > do not > > see how to replace it. You can guide me in what is the alternative to > > solve this.? > > A single example with a webButton that redirects to another webform, > > should be more than enough. :smiley: > > > > Of course, thank you very much .. > > > > Regards, > > Matias > > > > ..and p.s: Congratulations for your new stage as a self-employed > > company. =) > > > > [1]: https://pagekite.net/ > > [2]: > > > https://github.com/pagekite/PyPagekite/commit/9b11980a43cbe9f0c4fc7f749188cb6266737600 > > [3]: > http://gambas.8142.n7.nabble.com/New-gb-web-form-component-td54380.html > > [4]: > > > https://gitlab.com/gambas/gambas/commit/ab231c0bda9ff2eff0764dd7dad9269e3c4123d4 > > > > WebForm.Startup is a property that allows to define the name of the web > application startup form. > > By default, it's the project startup form, which should be your login form. > > Then, in your login form, once your user is authenticated, you set the > WebForm.Startup property to the name of your real application startup form. > > Regards, > > -- > Beno?t Minisini > > ----[ 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: WebformLoginExample-0.0.1.tar.gz Type: application/gzip Size: 11896 bytes Desc: not available URL: From ujlain at gmail.com Fri May 24 07:38:55 2019 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Fri, 24 May 2019 11:08:55 +0530 Subject: [Gambas-user] Dining philosophers problem - semaphore , interprocess shared memory concepts using GAMBAS ? Message-ID: Dining philosophers problem is one that most of us have coded during graduation / post graduation courses. It amply teaches semaphore , interprocess shared memory concepts. Has anyone in this forum attempted this using GAMBAS ? I am keen to learn the equivalent of semaphore & shared memory as implemented in GAMBAS *Any directions ? * Regards? - UZI ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From taboege at gmail.com Fri May 24 11:10:27 2019 From: taboege at gmail.com (Tobias Boege) Date: Fri, 24 May 2019 11:10:27 +0200 Subject: [Gambas-user] Dining philosophers problem - semaphore , interprocess shared memory concepts using GAMBAS ? In-Reply-To: References: Message-ID: <20190524091027.GL1582@highrise.localdomain> On Fri, 24 May 2019, Vinode Singh Ujlain wrote: > Dining philosophers problem is one that most of us have coded during > graduation / post graduation courses. > It amply teaches semaphore , interprocess shared memory concepts. > Has anyone in this forum attempted this using GAMBAS ? I am keen to learn > the equivalent of semaphore & shared memory as implemented in GAMBAS > *Any directions ? * > Gambas' parallelism primitive is called Task [1]. It works by forking off from the main process and communicating with it via a pipe. No data has to be shared between the processes for this to work and I believe that this was done to avoid having to introduce the mentioned concepts to the language. The na?ve solution to Dining philosophers will work in Gambas because only one philosopher can do something at a time and decides by himself when he yields control to another philosopher. They can check at leisure if both forks are on the table and take them both. Single process, single thread, synchronous execution, very BASIC. Note that Gambas' event loop still makes it concurrent and you *can* make deadlocks if you're not careful. But data races are not possible because code execution is synchronous, so semaphores can be regular integers and often are just that. I'm not sure how sharing memory with other, non-Gambas processes is supposed to make sense. If I was a non-Gambas process and Gambas offered me some shared variables, I'd politely decline because data in Gambas processes is boxed in sometimes intricate ways. No, we have no way to share it, except by serialising and copying it into a stream [2], which is what Tasks do. Regards, Tobi [1] http://gambaswiki.org/wiki/comp/gb/task [2] http://gambaswiki.org/wiki/lang/datarep -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Fri May 24 15:32:17 2019 From: kicking177 at gmail.com (KKing) Date: Fri, 24 May 2019 14:32:17 +0100 Subject: [Gambas-user] NCURSES ACS_STERLING Message-ID: <933e71b8-4dda-81af-2251-5d5091fbabb2@gmail.com> in C, I can do printw("UK pound symbol: "); addch(ACS_STERLING); what would be the equivalent in Gambas NCurses? K. From gambas.fr at gmail.com Fri May 24 15:45:31 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Fri, 24 May 2019 15:45:31 +0200 Subject: [Gambas-user] NCURSES ACS_STERLING In-Reply-To: <933e71b8-4dda-81af-2251-5d5091fbabb2@gmail.com> References: <933e71b8-4dda-81af-2251-5d5091fbabb2@gmail.com> Message-ID: Window.Print("UK pound symbol: ?") ?? You can use UTF charcaters. Le ven. 24 mai 2019 ? 15:33, KKing a ?crit : > in C, I can do > > printw("UK pound symbol: "); addch(ACS_STERLING); > > what would be the equivalent in Gambas NCurses? > > K. > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From kicking177 at gmail.com Sat May 25 10:23:44 2019 From: kicking177 at gmail.com (KKing) Date: Sat, 25 May 2019 09:23:44 +0100 Subject: [Gambas-user] NCURSES ACS_STERLING Message-ID: under gambas ncurses (with Xterm Debian LXDE) if I do ??? Window.Print("UK pound symbol: ?") I get ??? UK pound symbol: M-BM-* If I do either below in Xterm in C the pound symbol is displayed okay in both cases. ??? printw("UK pound symbol attempt one ? ");printw("\n"); ??? printw("UK pound symbol attempt two "); addch(ACS_STERLING);printw("\n"); i.e. I get ??? UK pound symbol attempt one ? ??? UK pound symbol attempt two ? K. From taboege at gmail.com Sat May 25 11:33:53 2019 From: taboege at gmail.com (Tobias Boege) Date: Sat, 25 May 2019 11:33:53 +0200 Subject: [Gambas-user] NCURSES ACS_STERLING In-Reply-To: References: Message-ID: <20190525093353.GM1582@highrise.localdomain> On Sat, 25 May 2019, KKing wrote: > under gambas ncurses (with Xterm Debian LXDE) if I do > ??? Window.Print("UK pound symbol: ?") > > I get > ??? UK pound symbol: M-BM-* > > If I do either below in Xterm in C the pound symbol is displayed okay in > both cases. > ??? printw("UK pound symbol attempt one ? ");printw("\n"); > ??? printw("UK pound symbol attempt two "); > addch(ACS_STERLING);printw("\n"); > i.e. I get > ??? UK pound symbol attempt one ? > ??? UK pound symbol attempt two ? > Unicode support is flaky in gb.ncurses, but just a Window.Print() with a UTF-8 encoded string should work if your terminal is set up correctly for that. It works here on Konsole, urxvt and xterm under en_US.utf8 locale (doesn't under C locale FWIW). The fact that you get M-BM-* suggests [1] that your terminal does not handle UTF-8. I could also add the ACS constants to gb.ncurses. Fixing its unicode support overall is a bigger deal. It's the small stuff like determining string length or checking if a character (in a char[]!) is a newline that's scattered all over the place assuming ASCII encoded strings. gb.ncurses does link against the ncursesw library which supports wide characters, however. Regards, Tobi [1] First sentence in an otherwise unrelated answer: https://askubuntu.com/a/358746 -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From kicking177 at gmail.com Sun May 26 19:13:37 2019 From: kicking177 at gmail.com (KKing) Date: Sun, 26 May 2019 18:13:37 +0100 Subject: [Gambas-user] NCURSES ACS_STERLING Message-ID: on my dev machines any terminal tells me ??? LANG=en_GB.UTF-8 also the intended units do not have X, and the local there is also ??? LANG=en_GB.UTF-8 btw, I also get M-BM-* on those units with no X with gambas, works with pure C. << The fact that you get M-BM-*? suggests [1] that your terminal does not handle UTF-8. >> if i CTL+Right Mouse click on XTerm I can see UTF-8 fonts is ticked? << but just a Window.Print() with a UTF-8 encoded string should work >> so how should I for example do ??? Window.Print("UK pound symbol: ?") differently to ensure it is UTF-8 encoded? << It works here on Konsole, urxvt and xterm under en_US.utf8 locale (doesn't under C locale FWIW) >> I added Konsole, same issue as with xterm, LXTerm.? Though I am running en_GB.UTF-8 OTOH it does work under C either just keying it (with UK keyboard) or using the ACS constant.... << I could also add the ACS constants to gb.ncurses. >> That might be the most robust/reliable cross locale way forward? K. From rwe-sse at osnanet.de Mon May 27 12:37:50 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Mon, 27 May 2019 12:37:50 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> Message-ID: <6596ded0-2d69-9ac7-98c3-d3a50ced60e7@osnanet.de> Ok... and do you think it can be easily fixed, or will it take longer? For the latter case it might still make sense to mention it in the docs. Regards Rolf Am 23.05.19 um 09:56 schrieb Fabien Bodard: > So this a bug in the gb gtk compnents... > > Le jeu. 23 mai 2019 09:44, Rolf-Werner Eilert > a ?crit?: > > Ah, that works indeed! Thanks so much, Gianluigi! > > Hm... Shouldn't that be mentioned in the docs? > > Regards > Rolf > > > Am 22.05.19 um 13:06 schrieb Gianluigi: > > If I change from gb.gui (which in Ubuntu means GTK) to gb.gui.qt in > > Project> Properties ...> Components here with Ubuntu 18.04 and > Gambas > > master, your project works fine. > > > > Regards > > Gianluigi > > > > Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner Eilert > > > >> ha scritto: > > > >? ? ?Am 22.05.19 um 10:04 schrieb Gianluigi: > >? ? ? > But do you use this event to save values? > >? ? ? > > > > >? ? ?Yes, I do :) I mainly use the code from Italy, see the > attached project. > > > >? ? ?When you run it, click into a cell and type some letters, > then click on > >? ? ?the button. What does the TableView editor do? > > > >? ? ? > Public Sub TableView1_Save(Row As Integer, Column As Integer, > >? ? ?Value As > >? ? ? > String) > >? ? ? > ' It is used to save the written text inside the cells. > >? ? ? > > >? ? ? >? ? TableView1[row, column].text = value > >? ? ? > > >? ? ? > End > >? ? ? > > >? ? ? > See: > >? ? ? > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > >? ? ? > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > >? ? ? > > >? ? ? > Regards > >? ? ? > Gianluigi > >? ? ? > > >? ? ? > Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner Eilert > >? ? ? > > > > >? ? ? > >>> ha scritto: > >? ? ? > > >? ? ? >? ? ?Hi folks! > >? ? ? > > >? ? ? >? ? ?Now this is an issue with TableView I experienced last > week. > >? ? ?When you > >? ? ? >? ? ?started editing a cell and then click somewhere else > in the > >? ? ?program, > >? ? ? >? ? ?not > >? ? ? >? ? ?only the focus of the cell gets lost (standard behaviour), > >? ? ?but its > >? ? ? >? ? ?contents disappeares completely unless you click it back. > >? ? ? > > >? ? ? >? ? ?But it will only reappear for a second or so and > disappear, > >? ? ?only being > >? ? ? >? ? ?displayed while you move the mouse, while the editor still > >? ? ?keeps going. > >? ? ? > > >? ? ? >? ? ?When issuing a click on any other element in the > program, I would > >? ? ? >? ? ?expect > >? ? ? >? ? ?the editor to close editing either like with Return or > Esc. > >? ? ? > > >? ? ? >? ? ?So, did I miss here? Thanks for any input! > >? ? ? > > >? ? ? >? ? ?Regards > >? ? ? >? ? ?Rolf > >? ? ? > > >? ? ? >? ? ?----[ 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 ]---- > > > > > > > > ----[ 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 ]---- > From sharon at 455.co.il Mon May 27 15:09:45 2019 From: sharon at 455.co.il (Mayost Sharon) Date: Mon, 27 May 2019 16:09:45 +0300 Subject: [Gambas-user] GTK without Desktop Environment Error Message-ID: <20190527130946.M96443@455.co.il> Hello I created a small program with GTK3 And a small program with GTK2 And a small program with QT (They are attached to this message) I installed a new FEDORA 30 64BIT minimal system without a desktop I installed on the system: gedit, xorg x11, gtk3, gambas3-runtime gambas3-gb-image gambas3-gb-form, gambas3-gb-gtk, gambas3-gb-gtk3 Login via CONSOLE without X I run: X :0 With the new CONSOLE I run software: DISPLAY=:0 gedit And it runs very well in the GEDIT display :0 1. If I run the QT program It works Even without a desktop environment cd qt DISPLAY=:0 gbx3 1. But if I try to run the GTK3 program I created through GAMBAS: cd gtk3 DISPLAY=:0 gbx3 I accept this error: (gtk3:28129): Gdk-ERROR **: 18:48:59.671: The program 'gtk3' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 194 error_code 5 request_code 20 (core protocol) minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap (core dumped) 2. Also I run the GTK2 program that also gives an error: (gtk2:28142): Gdk-ERROR **: 18:51:40.077: The program 'gtk2' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAtom (invalid Atom parameter)'. (Details: serial 135 error_code 5 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Trace/breakpoint trap (core dumped) From demosthenesk at gmail.com Mon May 27 20:43:52 2019 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 27 May 2019 21:43:52 +0300 Subject: [Gambas-user] ncurses howto Message-ID: Hello, i try ncurces with gambas3 and i have some difficulties. i created a console application and i have the following code: ' Gambas module file Public Sub Main() ? ' Display a message window ? Dim hMessage As New Window(True, 0, 0, 800, 600) ? hMessage.Border = 1 ? hMessage.Background = Color.Blue ? hMessage.Foreground = Color.White ? hMessage.Print("Surprise!") ? hMessage.Show() ? Wait 10 End if i dont write WAIT 10 seconds i get a black screen. if i write WAIT 10 seconds i get the desired ncurses screen visible for 10 secs. How i can have the ncurses screen always visible? Thanks Demosthenes. From taboege at gmail.com Mon May 27 20:52:39 2019 From: taboege at gmail.com (Tobias Boege) Date: Mon, 27 May 2019 20:52:39 +0200 Subject: [Gambas-user] ncurses howto In-Reply-To: References: Message-ID: <20190527185239.GN1582@highrise.localdomain> On Mon, 27 May 2019, Demosthenes Koptsis wrote: > Hello, > > i try ncurces with gambas3 and i have some difficulties. > > i created a console application and i have the following code: > > ' Gambas module file > > Public Sub Main() > ? ' Display a message window > ? Dim hMessage As New Window(True, 0, 0, 800, 600) > ? hMessage.Border = 1 > ? hMessage.Background = Color.Blue > ? hMessage.Foreground = Color.White > ? hMessage.Print("Surprise!") > ? hMessage.Show() > ? Wait 10 > > End > > if i dont write WAIT 10 seconds i get a black screen. > > if i write WAIT 10 seconds i get the desired ncurses screen visible for 10 > secs. > > How i can have the ncurses screen always visible? > hMessage is a local variable. As soon as you leave the scope of the Main sub, it goes out of scope and gets destroyed (because for some reason being `Show`n does not automatically increase the reference count of a Window in gb.ncurses). Put it into a class-global variable instead: Private $hMessage As Window Public Sub Main() $hMessage = New Window(True, 0, 0, 800, 600) $hMessage.Border = 1 $hMessage.Background = Color.Blue $hMessage.Foreground = Color.White $hMessage.Print("Surprise!") $hMessage.Show() End Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From demosthenesk at gmail.com Mon May 27 21:00:46 2019 From: demosthenesk at gmail.com (Demosthenes Koptsis) Date: Mon, 27 May 2019 22:00:46 +0300 Subject: [Gambas-user] ncurses howto In-Reply-To: <20190527185239.GN1582@highrise.localdomain> References: <20190527185239.GN1582@highrise.localdomain> Message-ID: yes Tobias...thanks i found it a bit later...anyway thanks. On 5/27/19 9:52 PM, Tobias Boege wrote: > On Mon, 27 May 2019, Demosthenes Koptsis wrote: >> Hello, >> >> i try ncurces with gambas3 and i have some difficulties. >> >> i created a console application and i have the following code: >> >> ' Gambas module file >> >> Public Sub Main() >> ? ' Display a message window >> ? Dim hMessage As New Window(True, 0, 0, 800, 600) >> ? hMessage.Border = 1 >> ? hMessage.Background = Color.Blue >> ? hMessage.Foreground = Color.White >> ? hMessage.Print("Surprise!") >> ? hMessage.Show() >> ? Wait 10 >> >> End >> >> if i dont write WAIT 10 seconds i get a black screen. >> >> if i write WAIT 10 seconds i get the desired ncurses screen visible for 10 >> secs. >> >> How i can have the ncurses screen always visible? >> > hMessage is a local variable. As soon as you leave the scope of the > Main sub, it goes out of scope and gets destroyed (because for some > reason being `Show`n does not automatically increase the reference > count of a Window in gb.ncurses). Put it into a class-global variable > instead: > > Private $hMessage As Window > > Public Sub Main() > $hMessage = New Window(True, 0, 0, 800, 600) > $hMessage.Border = 1 > $hMessage.Background = Color.Blue > $hMessage.Foreground = Color.White > $hMessage.Print("Surprise!") > $hMessage.Show() > End > > Regards, > Tobi > From cedron at exede.net Tue May 28 03:08:47 2019 From: cedron at exede.net (Cedron Dawg) Date: Mon, 27 May 2019 21:08:47 -0400 (EDT) Subject: [Gambas-user] Playing .wav files Message-ID: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> I tried the Music class from gb.sdl2.audio without success. Said sumptin' 'bout "not support MOD .... not support MP3" Okay. So is there another way? From ujlain at gmail.com Tue May 28 09:02:43 2019 From: ujlain at gmail.com (Vinode Singh Ujlain) Date: Tue, 28 May 2019 12:32:43 +0530 Subject: [Gambas-user] Dining philosophers problem - semaphore , interprocess shared memory concepts using GAMBAS ? In-Reply-To: References: Message-ID: <8c796c42-6c34-04a8-b698-a941945cb2e9@gmail.com> I coded a small 3 dining philosophers example (see attachment) My concern yet is - forks are a shared resource between the processes (here philosophers) , how is GAMBAS enforcing atomicity of access to this shared resource ? Regards? - UZI ------------------------------------------------------------------------ On 24/05/19 11:08 AM, Vinode Singh Ujlain wrote: > > Dining philosophers problem is one that most of us have coded during > graduation / post graduation courses. > It amply teaches semaphore , interprocess shared memory concepts. > Has anyone in this forum attempted this using GAMBAS ? I am keen to > learn the equivalent of semaphore & shared memory as implemented in GAMBAS > *Any directions ? * > > Regards? - UZI > > ------------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dining Philosopher.zip Type: application/zip Size: 35551 bytes Desc: not available URL: From gambas.fr at gmail.com Tue May 28 09:21:26 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 28 May 2019 09:21:26 +0200 Subject: [Gambas-user] Playing .wav files In-Reply-To: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> References: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> Message-ID: Gambas also have lis for openal and gstreamer Le mar. 28 mai 2019 03:10, Cedron Dawg a ?crit : > I tried the Music class from gb.sdl2.audio without success. > > Said sumptin' 'bout "not support MOD .... not support MP3" > > Okay. So is there another way? > > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bagonergi at gmail.com Tue May 28 11:44:55 2019 From: bagonergi at gmail.com (Gianluigi) Date: Tue, 28 May 2019 11:44:55 +0200 Subject: [Gambas-user] Playing .wav files In-Reply-To: References: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> Message-ID: In the Italian wiki you can read something about it: https://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Gestione_dei_dati_audio_e_dei_file_audio Regards Gianluigi Il giorno mar 28 mag 2019 alle ore 09:22 Fabien Bodard ha scritto: > Gambas also have lis for openal and gstreamer > > Le mar. 28 mai 2019 03:10, Cedron Dawg a ?crit : > >> I tried the Music class from gb.sdl2.audio without success. >> >> Said sumptin' 'bout "not support MOD .... not support MP3" >> >> Okay. So is there another way? >> >> >> >> >> >> ----[ 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 May 28 12:02:41 2019 From: gambas.fr at gmail.com (Fabien Bodard) Date: Tue, 28 May 2019 12:02:41 +0200 Subject: [Gambas-user] Playing .wav files In-Reply-To: References: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> Message-ID: The Italian Wiki is amazing !!! Le mar. 28 mai 2019 ? 11:46, Gianluigi a ?crit : > In the Italian wiki you can read something about it: > > https://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Gestione_dei_dati_audio_e_dei_file_audio > > Regards > Gianluigi > > Il giorno mar 28 mag 2019 alle ore 09:22 Fabien Bodard < > gambas.fr at gmail.com> ha scritto: > >> Gambas also have lis for openal and gstreamer >> >> Le mar. 28 mai 2019 03:10, Cedron Dawg a ?crit : >> >>> I tried the Music class from gb.sdl2.audio without success. >>> >>> Said sumptin' 'bout "not support MOD .... not support MP3" >>> >>> Okay. So is there another way? >>> >>> >>> >>> >>> >>> ----[ 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 ]---- > -- Fabien Bodard -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue May 28 16:18:49 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 28 May 2019 10:18:49 -0400 (EDT) Subject: [Gambas-user] Playing .wav files In-Reply-To: References: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> Message-ID: <1802078706.47590975.1559053129867.JavaMail.zimbra@exede.net> I don't know how I missed those. Thanks. Hopefully they will do what I want. The Italian Wiki had some really nice examples. A definite resource. ----- Original Message ----- From: "Fabien Bodard" To: "user" Sent: Tuesday, May 28, 2019 6:02:41 AM Subject: Re: [Gambas-user] Playing .wav files The Italian Wiki is amazing !!! Le mar. 28 mai 2019 ? 11:46, Gianluigi < [ mailto:bagonergi at gmail.com | bagonergi at gmail.com ] > a ?crit : In the Italian wiki you can read something about it: [ https://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Gestione_dei_dati_audio_e_dei_file_audio | https://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Gestione_dei_dati_audio_e_dei_file_audio ] Regards Gianluigi Il giorno mar 28 mag 2019 alle ore 09:22 Fabien Bodard < [ mailto:gambas.fr at gmail.com | gambas.fr at gmail.com ] > ha scritto: BQ_BEGIN Gambas also have lis for openal and gstreamer Le mar. 28 mai 2019 03:10, Cedron Dawg < [ mailto:cedron at exede.net | cedron at exede.net ] > a ?crit : BQ_BEGIN I tried the Music class from gb.sdl2.audio without success. Said sumptin' 'bout "not support MOD .... not support MP3" Okay. So is there another way? From charlie at cogier.com Tue May 28 17:12:41 2019 From: charlie at cogier.com (Charlie Ogier) Date: Tue, 28 May 2019 16:12:41 +0100 Subject: [Gambas-user] Playing .wav files In-Reply-To: <1802078706.47590975.1559053129867.JavaMail.zimbra@exede.net> References: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> <1802078706.47590975.1559053129867.JavaMail.zimbra@exede.net> Message-ID: ?If you use *gb.sdl2.audio* I have had no problems playing .wav files. Have a look at my program on the Gambas Farm '*Piano*' that uses .wav files for each note. All you need is: - Music.load(User.Home &/ "my.wav") Music.Play On 28/05/2019 15:18, Cedron Dawg wrote: > I don't know how I missed those. Thanks. Hopefully they will do what I want. > > The Italian Wiki had some really nice examples. A definite resource. > > > ----- Original Message ----- > From: "Fabien Bodard" > To: "user" > Sent: Tuesday, May 28, 2019 6:02:41 AM > Subject: Re: [Gambas-user] Playing .wav files > > The Italian Wiki is amazing !!! > > > > Le mar. 28 mai 2019 ? 11:46, Gianluigi < [ mailto:bagonergi at gmail.com | bagonergi at gmail.com ] > a ?crit : > > > > In the Italian wiki you can read something about it: > [ https://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Gestione_dei_dati_audio_e_dei_file_audio | https://www.gambas-it.org/wiki/index.php?title=Guide_della_comunit%C3%A0#Gestione_dei_dati_audio_e_dei_file_audio ] > > Regards > Gianluigi > > Il giorno mar 28 mag 2019 alle ore 09:22 Fabien Bodard < [ mailto:gambas.fr at gmail.com | gambas.fr at gmail.com ] > ha scritto: > > BQ_BEGIN > > Gambas also have lis for openal and gstreamer > > Le mar. 28 mai 2019 03:10, Cedron Dawg < [ mailto:cedron at exede.net | cedron at exede.net ] > a ?crit : > > BQ_BEGIN > I tried the Music class from gb.sdl2.audio without success. > > Said sumptin' 'bout "not support MOD .... not support MP3" > > Okay. So is there another way? > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Tue May 28 19:18:39 2019 From: cedron at exede.net (Cedron Dawg) Date: Tue, 28 May 2019 13:18:39 -0400 (EDT) Subject: [Gambas-user] Playing .wav files In-Reply-To: References: <503381184.46993093.1559005727264.JavaMail.zimbra@exede.net> <1802078706.47590975.1559053129867.JavaMail.zimbra@exede.net> Message-ID: <1499100987.47790358.1559063919423.JavaMail.zimbra@exede.net> Thanks Cogier, that worked so I looked closer. I somehow got fooled by my default settings vs VLC device setting as I have multiple audio outputs. I'm sure I went through that though. Baffled. Still get the messages I mentioned originally. I found the starting point of what I am really going to need, ongoing, at: https://www.gambas-it.org/wiki/index.php?title=Eseguire_un_file_WAV_mediante_le_funzioni_esterne_del_API_di_libaudio_e_di_Alsa It saves me from having to do the shared library coding I thought I was going to have to do. Thanks Gianluigi, I really appreciate your reference. Finally, thanks Fabien for the alternatives to explore. Ced ----- Original Message ----- From: "Charlie Ogier" To: "user" Sent: Tuesday, May 28, 2019 11:12:41 AM Subject: Re: [Gambas-user] Playing .wav files If you use gb.sdl2.audio I have had no problems playing .wav files. Have a look at my program on the Gambas Farm ' Piano ' that uses .wav files for each note. All you need is: - Music.load(User.Home &/ "my.wav") Music.Play From rwe-sse at osnanet.de Wed May 29 15:52:31 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 29 May 2019 15:52:31 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: <6596ded0-2d69-9ac7-98c3-d3a50ced60e7@osnanet.de> References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> <6596ded0-2d69-9ac7-98c3-d3a50ced60e7@osnanet.de> Message-ID: <6316ae51-8bfc-a83f-4400-f6d55f6bb3b0@osnanet.de> I hope you see this, Gianluigi: In at least one of my projects where the TableView editor function could be applied, I cannot switch neither to gb.gui nor gb.gui.qt because I need the editor from gb.qt4 + gb.qt4.ext. So what now? Regards Rolf Am 27.05.19 um 12:37 schrieb Rolf-Werner Eilert: > Ok... and do you think it can be easily fixed, or will it take longer? > For the latter case it might still make sense to mention it in the docs. > > Regards > Rolf > > Am 23.05.19 um 09:56 schrieb Fabien Bodard: >> So this a bug in the gb gtk compnents... >> >> Le jeu. 23 mai 2019 09:44, Rolf-Werner Eilert > > a ?crit?: >> >> ??? Ah, that works indeed! Thanks so much, Gianluigi! >> >> ??? Hm... Shouldn't that be mentioned in the docs? >> >> ??? Regards >> ??? Rolf >> >> >> ??? Am 22.05.19 um 13:06 schrieb Gianluigi: >> ???? > If I change from gb.gui (which in Ubuntu means GTK) to >> gb.gui.qt in >> ???? > Project> Properties ...> Components here with Ubuntu 18.04 and >> ??? Gambas >> ???? > master, your project works fine. >> ???? > >> ???? > Regards >> ???? > Gianluigi >> ???? > >> ???? > Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner Eilert >> ???? > >> ??? >> ha scritto: >> ???? > >> ???? >? ? ?Am 22.05.19 um 10:04 schrieb Gianluigi: >> ???? >? ? ? > But do you use this event to save values? >> ???? >? ? ? > >> ???? > >> ???? >? ? ?Yes, I do :) I mainly use the code from Italy, see the >> ??? attached project. >> ???? > >> ???? >? ? ?When you run it, click into a cell and type some letters, >> ??? then click on >> ???? >? ? ?the button. What does the TableView editor do? >> ???? > >> ???? >? ? ? > Public Sub TableView1_Save(Row As Integer, Column As >> Integer, >> ???? >? ? ?Value As >> ???? >? ? ? > String) >> ???? >? ? ? > ' It is used to save the written text inside the cells. >> ???? >? ? ? > >> ???? >? ? ? >? ? TableView1[row, column].text = value >> ???? >? ? ? > >> ???? >? ? ? > End >> ???? >? ? ? > >> ???? >? ? ? > See: >> ???? >? ? ? > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith >> ???? >? ? ? > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save >> ???? >? ? ? > >> ???? >? ? ? > Regards >> ???? >? ? ? > Gianluigi >> ???? >? ? ? > >> ???? >? ? ? > Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner Eilert >> ???? >? ? ? > >> ??? > >> ???? >? ? ? >> ??? >>> ha scritto: >> ???? >? ? ? > >> ???? >? ? ? >? ? ?Hi folks! >> ???? >? ? ? > >> ???? >? ? ? >? ? ?Now this is an issue with TableView I experienced last >> ??? week. >> ???? >? ? ?When you >> ???? >? ? ? >? ? ?started editing a cell and then click somewhere else >> ??? in the >> ???? >? ? ?program, >> ???? >? ? ? >? ? ?not >> ???? >? ? ? >? ? ?only the focus of the cell gets lost (standard >> behaviour), >> ???? >? ? ?but its >> ???? >? ? ? >? ? ?contents disappeares completely unless you click it >> back. >> ???? >? ? ? > >> ???? >? ? ? >? ? ?But it will only reappear for a second or so and >> ??? disappear, >> ???? >? ? ?only being >> ???? >? ? ? >? ? ?displayed while you move the mouse, while the editor >> still >> ???? >? ? ?keeps going. >> ???? >? ? ? > >> ???? >? ? ? >? ? ?When issuing a click on any other element in the >> ??? program, I would >> ???? >? ? ? >? ? ?expect >> ???? >? ? ? >? ? ?the editor to close editing either like with Return or >> ??? Esc. >> ???? >? ? ? > >> ???? >? ? ? >? ? ?So, did I miss here? Thanks for any input! >> ???? >? ? ? > >> ???? >? ? ? >? ? ?Regards >> ???? >? ? ? >? ? ?Rolf >> ???? >? ? ? > >> ???? >? ? ? >? ? ?----[ 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 ]---- >> ???? > >> ???? > >> ???? > >> ???? > ----[ 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 ]---- >> > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > > From bagonergi at gmail.com Wed May 29 16:15:22 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 29 May 2019 16:15:22 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: <6316ae51-8bfc-a83f-4400-f6d55f6bb3b0@osnanet.de> References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> <6596ded0-2d69-9ac7-98c3-d3a50ced60e7@osnanet.de> <6316ae51-8bfc-a83f-4400-f6d55f6bb3b0@osnanet.de> Message-ID: Your program (testtableview) works well here, also with gb.qt4 & gb.qt4.ext. Regards Gianluigi Il giorno mer 29 mag 2019 alle ore 15:53 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > I hope you see this, Gianluigi: > > In at least one of my projects where the TableView editor function could > be applied, I cannot switch neither to gb.gui nor gb.gui.qt because I > need the editor from gb.qt4 + gb.qt4.ext. > > So what now? > > Regards > Rolf > > > Am 27.05.19 um 12:37 schrieb Rolf-Werner Eilert: > > Ok... and do you think it can be easily fixed, or will it take longer? > > For the latter case it might still make sense to mention it in the docs. > > > > Regards > > Rolf > > > > Am 23.05.19 um 09:56 schrieb Fabien Bodard: > >> So this a bug in the gb gtk compnents... > >> > >> Le jeu. 23 mai 2019 09:44, Rolf-Werner Eilert >> > a ?crit : > >> > >> Ah, that works indeed! Thanks so much, Gianluigi! > >> > >> Hm... Shouldn't that be mentioned in the docs? > >> > >> Regards > >> Rolf > >> > >> > >> Am 22.05.19 um 13:06 schrieb Gianluigi: > >> > If I change from gb.gui (which in Ubuntu means GTK) to > >> gb.gui.qt in > >> > Project> Properties ...> Components here with Ubuntu 18.04 and > >> Gambas > >> > master, your project works fine. > >> > > >> > Regards > >> > Gianluigi > >> > > >> > Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner Eilert > >> > > >> >> ha > scritto: > >> > > >> > Am 22.05.19 um 10:04 schrieb Gianluigi: > >> > > But do you use this event to save values? > >> > > > >> > > >> > Yes, I do :) I mainly use the code from Italy, see the > >> attached project. > >> > > >> > When you run it, click into a cell and type some letters, > >> then click on > >> > the button. What does the TableView editor do? > >> > > >> > > Public Sub TableView1_Save(Row As Integer, Column As > >> Integer, > >> > Value As > >> > > String) > >> > > ' It is used to save the written text inside the cells. > >> > > > >> > > TableView1[row, column].text = value > >> > > > >> > > End > >> > > > >> > > See: > >> > > > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > >> > > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > >> > > > >> > > Regards > >> > > Gianluigi > >> > > > >> > > Il giorno mer 22 mag 2019 alle ore 08:24 Rolf-Werner > Eilert > >> > > > >> > > >> > > >> >>> ha > scritto: > >> > > > >> > > Hi folks! > >> > > > >> > > Now this is an issue with TableView I experienced last > >> week. > >> > When you > >> > > started editing a cell and then click somewhere else > >> in the > >> > program, > >> > > not > >> > > only the focus of the cell gets lost (standard > >> behaviour), > >> > but its > >> > > contents disappeares completely unless you click it > >> back. > >> > > > >> > > But it will only reappear for a second or so and > >> disappear, > >> > only being > >> > > displayed while you move the mouse, while the editor > >> still > >> > keeps going. > >> > > > >> > > When issuing a click on any other element in the > >> program, I would > >> > > expect > >> > > the editor to close editing either like with Return or > >> Esc. > >> > > > >> > > So, did I miss here? Thanks for any input! > >> > > > >> > > Regards > >> > > Rolf > >> > > > >> > > ----[ 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 ]---- > >> > > >> > > >> > > >> > ----[ 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 > ]---- > >> > > > > > > ----[ 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 rwe-sse at osnanet.de Wed May 29 16:45:02 2019 From: rwe-sse at osnanet.de (Rolf-Werner Eilert) Date: Wed, 29 May 2019 16:45:02 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> <6596ded0-2d69-9ac7-98c3-d3a50ced60e7@osnanet.de> <6316ae51-8bfc-a83f-4400-f6d55f6bb3b0@osnanet.de> Message-ID: <176a1ed0-6416-f785-b292-1daa7b708e9f@osnanet.de> Hm! Oh, I understand... without gb.gui.qt, yes, ok :) Regards Rolf Am 29.05.19 um 16:15 schrieb Gianluigi: > Your program (testtableview) works well here, also with gb.qt4 & gb.qt4.ext. > > Regards > Gianluigi > > Il giorno mer 29 mag 2019 alle ore 15:53 Rolf-Werner Eilert > > ha scritto: > > I hope you see this, Gianluigi: > > In at least one of my projects where the TableView editor function > could > be applied, I cannot switch neither to gb.gui nor gb.gui.qt because I > need the editor from gb.qt4 + gb.qt4.ext. > > So what now? > > Regards > Rolf > > > Am 27.05.19 um 12:37 schrieb Rolf-Werner Eilert: > > Ok... and do you think it can be easily fixed, or will it take > longer? > > For the latter case it might still make sense to mention it in > the docs. > > > > Regards > > Rolf > > > > Am 23.05.19 um 09:56 schrieb Fabien Bodard: > >> So this a bug in the gb gtk compnents... > >> > >> Le jeu. 23 mai 2019 09:44, Rolf-Werner Eilert > > >> >> a ?crit?: > >> > >> ??? Ah, that works indeed! Thanks so much, Gianluigi! > >> > >> ??? Hm... Shouldn't that be mentioned in the docs? > >> > >> ??? Regards > >> ??? Rolf > >> > >> > >> ??? Am 22.05.19 um 13:06 schrieb Gianluigi: > >> ???? > If I change from gb.gui (which in Ubuntu means GTK) to > >> gb.gui.qt in > >> ???? > Project> Properties ...> Components here with Ubuntu > 18.04 and > >> ??? Gambas > >> ???? > master, your project works fine. > >> ???? > > >> ???? > Regards > >> ???? > Gianluigi > >> ???? > > >> ???? > Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner Eilert > >> ???? > > > > >> ??? > >>> ha scritto: > >> ???? > > >> ???? >? ? ?Am 22.05.19 um 10:04 schrieb Gianluigi: > >> ???? >? ? ? > But do you use this event to save values? > >> ???? >? ? ? > > >> ???? > > >> ???? >? ? ?Yes, I do :) I mainly use the code from Italy, see the > >> ??? attached project. > >> ???? > > >> ???? >? ? ?When you run it, click into a cell and type some letters, > >> ??? then click on > >> ???? >? ? ?the button. What does the TableView editor do? > >> ???? > > >> ???? >? ? ? > Public Sub TableView1_Save(Row As Integer, Column As > >> Integer, > >> ???? >? ? ?Value As > >> ???? >? ? ? > String) > >> ???? >? ? ? > ' It is used to save the written text inside the > cells. > >> ???? >? ? ? > > >> ???? >? ? ? >? ? TableView1[row, column].text = value > >> ???? >? ? ? > > >> ???? >? ? ? > End > >> ???? >? ? ? > > >> ???? >? ? ? > See: > >> ???? >? ? ? > > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > >> ???? >? ? ? > > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > >> ???? >? ? ? > > >> ???? >? ? ? > Regards > >> ???? >? ? ? > Gianluigi > >> ???? >? ? ? > > >> ???? >? ? ? > Il giorno mer 22 mag 2019 alle ore 08:24 > Rolf-Werner Eilert > >> ???? >? ? ? > > > > >> ??? > >> > >> ???? >? ? ? > > >> ??? > >>>> ha scritto: > >> ???? >? ? ? > > >> ???? >? ? ? >? ? ?Hi folks! > >> ???? >? ? ? > > >> ???? >? ? ? >? ? ?Now this is an issue with TableView I > experienced last > >> ??? week. > >> ???? >? ? ?When you > >> ???? >? ? ? >? ? ?started editing a cell and then click > somewhere else > >> ??? in the > >> ???? >? ? ?program, > >> ???? >? ? ? >? ? ?not > >> ???? >? ? ? >? ? ?only the focus of the cell gets lost (standard > >> behaviour), > >> ???? >? ? ?but its > >> ???? >? ? ? >? ? ?contents disappeares completely unless you > click it > >> back. > >> ???? >? ? ? > > >> ???? >? ? ? >? ? ?But it will only reappear for a second or so and > >> ??? disappear, > >> ???? >? ? ?only being > >> ???? >? ? ? >? ? ?displayed while you move the mouse, while the > editor > >> still > >> ???? >? ? ?keeps going. > >> ???? >? ? ? > > >> ???? >? ? ? >? ? ?When issuing a click on any other element in the > >> ??? program, I would > >> ???? >? ? ? >? ? ?expect > >> ???? >? ? ? >? ? ?the editor to close editing either like with > Return or > >> ??? Esc. > >> ???? >? ? ? > > >> ???? >? ? ? >? ? ?So, did I miss here? Thanks for any input! > >> ???? >? ? ? > > >> ???? >? ? ? >? ? ?Regards > >> ???? >? ? ? >? ? ?Rolf > >> ???? >? ? ? > > >> ???? >? ? ? >? ? ?----[ 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 ]---- > >> ???? > > >> ???? > > >> ???? > > >> ???? > ----[ 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 ]---- > >> > > > > > > ----[ 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 ]---- > From bagonergi at gmail.com Wed May 29 17:40:31 2019 From: bagonergi at gmail.com (Gianluigi) Date: Wed, 29 May 2019 17:40:31 +0200 Subject: [Gambas-user] TableView Editor focus confused In-Reply-To: <176a1ed0-6416-f785-b292-1daa7b708e9f@osnanet.de> References: <597e4714-f878-a9cf-c612-30a7a729c11a@osnanet.de> <9f2dacc4-9624-e5c5-11d1-5d88bb50c47b@osnanet.de> <6596ded0-2d69-9ac7-98c3-d3a50ced60e7@osnanet.de> <6316ae51-8bfc-a83f-4400-f6d55f6bb3b0@osnanet.de> <176a1ed0-6416-f785-b292-1daa7b708e9f@osnanet.de> Message-ID: First one taught me is Tobias Boege, Gambas with qt libraries works better. The same Gambas IDE is based on the qt libraries. gb.gui is a switch and if you have for example the Gnome desktop, Gambas uses GTK libraries. gb.gui.qt is a switch for libraries qt4 and qt5. In order to change (by ticking) the component of graphic libraries you must first uncheck the component currently in use. Regards Gianluigi Il giorno mer 29 mag 2019 alle ore 16:46 Rolf-Werner Eilert < rwe-sse at osnanet.de> ha scritto: > Hm! > > Oh, I understand... without gb.gui.qt, yes, ok :) > > Regards > Rolf > > Am 29.05.19 um 16:15 schrieb Gianluigi: > > Your program (testtableview) works well here, also with gb.qt4 & > gb.qt4.ext. > > > > Regards > > Gianluigi > > > > Il giorno mer 29 mag 2019 alle ore 15:53 Rolf-Werner Eilert > > > ha scritto: > > > > I hope you see this, Gianluigi: > > > > In at least one of my projects where the TableView editor function > > could > > be applied, I cannot switch neither to gb.gui nor gb.gui.qt because I > > need the editor from gb.qt4 + gb.qt4.ext. > > > > So what now? > > > > Regards > > Rolf > > > > > > Am 27.05.19 um 12:37 schrieb Rolf-Werner Eilert: > > > Ok... and do you think it can be easily fixed, or will it take > > longer? > > > For the latter case it might still make sense to mention it in > > the docs. > > > > > > Regards > > > Rolf > > > > > > Am 23.05.19 um 09:56 schrieb Fabien Bodard: > > >> So this a bug in the gb gtk compnents... > > >> > > >> Le jeu. 23 mai 2019 09:44, Rolf-Werner Eilert > > > > >> >> a > ?crit : > > >> > > >> Ah, that works indeed! Thanks so much, Gianluigi! > > >> > > >> Hm... Shouldn't that be mentioned in the docs? > > >> > > >> Regards > > >> Rolf > > >> > > >> > > >> Am 22.05.19 um 13:06 schrieb Gianluigi: > > >> > If I change from gb.gui (which in Ubuntu means GTK) to > > >> gb.gui.qt in > > >> > Project> Properties ...> Components here with Ubuntu > > 18.04 and > > >> Gambas > > >> > master, your project works fine. > > >> > > > >> > Regards > > >> > Gianluigi > > >> > > > >> > Il giorno mer 22 mag 2019 alle ore 10:38 Rolf-Werner > Eilert > > >> > > > > > > >> > > >>> ha > scritto: > > >> > > > >> > Am 22.05.19 um 10:04 schrieb Gianluigi: > > >> > > But do you use this event to save values? > > >> > > > > >> > > > >> > Yes, I do :) I mainly use the code from Italy, see the > > >> attached project. > > >> > > > >> > When you run it, click into a cell and type some > letters, > > >> then click on > > >> > the button. What does the TableView editor do? > > >> > > > >> > > Public Sub TableView1_Save(Row As Integer, Column > As > > >> Integer, > > >> > Value As > > >> > > String) > > >> > > ' It is used to save the written text inside the > > cells. > > >> > > > > >> > > TableView1[row, column].text = value > > >> > > > > >> > > End > > >> > > > > >> > > See: > > >> > > > > http://gambaswiki.org/wiki/comp/gb.form/tableview/editwith > > >> > > > > http://gambaswiki.org/wiki/comp/gb.form/tableview/.save > > >> > > > > >> > > Regards > > >> > > Gianluigi > > >> > > > > >> > > Il giorno mer 22 mag 2019 alle ore 08:24 > > Rolf-Werner Eilert > > >> > > > > > > > >> > > >> > > >> > > > > > > >> > > >>>> ha > scritto: > > >> > > > > >> > > Hi folks! > > >> > > > > >> > > Now this is an issue with TableView I > > experienced last > > >> week. > > >> > When you > > >> > > started editing a cell and then click > > somewhere else > > >> in the > > >> > program, > > >> > > not > > >> > > only the focus of the cell gets lost (standard > > >> behaviour), > > >> > but its > > >> > > contents disappeares completely unless you > > click it > > >> back. > > >> > > > > >> > > But it will only reappear for a second or so > and > > >> disappear, > > >> > only being > > >> > > displayed while you move the mouse, while the > > editor > > >> still > > >> > keeps going. > > >> > > > > >> > > When issuing a click on any other element in > the > > >> program, I would > > >> > > expect > > >> > > the editor to close editing either like with > > Return or > > >> Esc. > > >> > > > > >> > > So, did I miss here? Thanks for any input! > > >> > > > > >> > > Regards > > >> > > Rolf > > >> > > > > >> > > ----[ 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 ]---- > > >> > > > >> > > > >> > > > >> > ----[ 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 ]---- > > >> > > > > > > > > > ----[ 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 ]---- > > > > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From the_watchmann at yahoo.com Thu May 30 10:54:49 2019 From: the_watchmann at yahoo.com (David Silverwood) Date: Thu, 30 May 2019 08:54:49 +0000 (UTC) Subject: [Gambas-user] Using dates in Gambas In-Reply-To: References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> Message-ID: <4355394.6657547.1559206489416@mail.yahoo.com> Hi. Me again So this is my code... Public Sub btnUpdate_Click()? ??? ? $Sql = "UPDATE cashup SET ("? ? $Sql = $Sql & "date = '" & edtDate.Text & "', "? ? $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "? ? $Sql = $Sql & "amount = " & ValueBox1.Text & ", "? ? $Sql = $Sql & "comment = '" & edtDescription.Text & "', "? ? $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"? ??? ? Print $Sql? ??? ? Try? ? conMod.$Con.Exec($Sql)? ??Catch? ? objErr.dhError()????? ? 'error handler in objErr mod? ??End It seems to me there is another way of doing this, but I haven't exactly been able to figure it out yet. It will however explain why sqlite refuses to accept a date from this code, no matter how I tried to format it. I am reading the wiki and came across the Connection.Edit(gb.db) page. So I tried this... Public Sub btnUpdate_Click()? ??? ? '$Sql = "UPDATE cashup SET ("? ? '$Sql = $Sql & "date = '" & edtDate.Text & "', "? ? '$Sql = $Sql & "ref = '" & edtTransNo.Text & "', "? ?' $Sql = $Sql & "amount = " & ValueBox1.Text & ", "? ? '$Sql = $Sql & "comment = '" & edtDescription.Text & "', "? ? '$Sql = $Sql & "WHERE date = '" & edtDate.Text & "');"? ??? ? Result = conMod.$Con.Edit("cashup", "date = &2", edtDate.Text)? ? Result!date = edtDate.Text????????????????? ? 'note, no formats etc? ? Result!ref = edtTransNo.Text? ? Result!amount = ValueBox1.Text? ? Result!comment = edtDescription.Text? ??? ? 'update the values? ? Result.update? ? conMod.$Con.Commit? ??Catch? ? objErr.dhError()? ??End Now I get "Invalid Assignment in FCashup...", referring to "Result = conMod.$Con.Edit(...) So 'cashup" is the table, right? 'date = &2' refers to the date column which is the second col in the table (the SQL WHERE clause without the WHERE as the manual so aptly puts it), I assume. I'm using this to 'update' the database. Is it correct and where is the error in my syntax? Thanks for all your patience David On Thursday, May 23, 2019, 9:11:08 AM GMT+2, Jorge Carri?n wrote: In fact in Sqlite all data types are stored as characters and defined by "data affinity". Very well explained here:https://www.sqlite.org/datatype3.html Regards El mi?., 22 may. 2019 a las 15:37, Cedron Dawg () escribi?: Hi Benoit, I think you should have said: "In Gambas, dates are NOT strings", because in SQLite they are stored as such, which can make your proclamation confusing. In my own case, I haven't started using dates yet.? I was/am assuming that the Gambas' Result class would take care of any converstions: I think this is true: ? 1) Gambas stores dates in its own internal format ? 2) Databases store dates in their own (inconsistent across different DB types) formats. ? 3) The Gambas database objects will convert for you under the covers. When you say "Gambas has to create the date fields", is that short hand for "In database with more than one DATE type, Gambas will only work with one."? Now, for the local vs UTC mess.? I got bit early on by some functions being UTC aware and others not. Perhaps there should be two Date types in Gambas.? The regular Date meaning local time, i.e. locale unaware, and a UtcDate which is locale aware.? That way it would be really clear which one you are holding and the rules for display and database storage could be defined inpependently for both. Just a thought. Ced P.S.? I've found working with databases delightfully easy in Gambas. P.P.S? I haven't done any yet, but I presume that Gambas also handles boolean value storage conversions as well. ----- Original Message ----- From: "Beno?t Minisini" OK, you read it, but I'm not sure you understood it then. "Dates are NOT strings" is the name of the first paragraph. Look at your words, you are talking about sending / receiving dates as strings from sqlite. On the other hand, I didn't write the database-specific paragraph, so I will explain you: 1) You must send to the database and receive from it dates, not strings. 2) You have to create the database from Gambas, by using Date fields. 3) The gambas database component will take care of using the accurate date/time SQL type that works with your specific database. 4) To write a date to the database, you use: 'Result!Field = SomeDate'. 5) 'SomeDate' must be a date. If you use a string, you deal with implicit conversion. 6) To read the date back, you use 'SomeDate = Result!Field'. 7) 'SomeDate' is still a date. Now if you want to show the date to the user, (or to you), you have to use PRINT, Str(), or Format(). 8) SQL date/time field types are a mess (as everything in SQL). The gambas database component will store the date in the database IN LOCAL TIME. Which is a stupid thing as soon as your database is accessed from different timezones. You have to manually convert the dates from the timezone of the server that writes to the database to the timezone of the client that reads it. An option for automatically doing that must be added to the Gambas database driver! Are things more clear now? -- Beno?t Minisini ----[ 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: From bagonergi at gmail.com Thu May 30 14:24:16 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 30 May 2019 14:24:16 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <4355394.6657547.1559206489416@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> Message-ID: Something about the type of Find [0] also exists in VB, and you should know it. [0] http://gambaswiki.org/wiki/comp/gb.db/_connection/find As explained to you by Minisini, Gambas uses dates as a datetime regardless of which database you use. Gambas takes care of managing everything under the covers. In my example it changes Find like this: hResult = hConn.Find("users", "birth", Date(1947, 4, 10)) Print hResult["id"];; hResult["name"] Regards Gianluigi Il giorno gio 30 mag 2019 alle ore 10:55 David Silverwood via User < user at lists.gambas-basic.org> ha scritto: > Hi. Me again > > So this is my code... > > *Public Sub btnUpdate_Click()* > > * $Sql = "UPDATE cashup SET ("* > * $Sql = $Sql & "date = '" & edtDate.Text & "', "* > * $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "* > * $Sql = $Sql & "amount = " & ValueBox1.Text & ", "* > * $Sql = $Sql & "comment = '" & edtDescription.Text & "', "* > * $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"* > > * Print $Sql* > > * Try* > * conMod.$Con.Exec($Sql)* > > *Catch* > * objErr.dhError() 'error handler in objErr mod* > > *End* > > It seems to me there is another way of doing this, but I haven't exactly > been able to figure it out yet. It will however explain why sqlite refuses > to accept a date from this code, no matter how I tried to format it. > > I am reading the wiki and came across the Connection.Edit(gb.db) page. So > I tried this... > > *Public Sub btnUpdate_Click()* > > * '$Sql = "UPDATE cashup SET ("* > * '$Sql = $Sql & "date = '" & edtDate.Text & "', "* > * '$Sql = $Sql & "ref = '" & edtTransNo.Text & "', "* > * ' $Sql = $Sql & "amount = " & ValueBox1.Text & ", "* > * '$Sql = $Sql & "comment = '" & edtDescription.Text & "', "* > * '$Sql = $Sql & "WHERE date = '" & edtDate.Text & "');"* > > * Result = conMod.$Con.Edit("cashup", "date = &2", edtDate.Text)* > * Result!date = edtDate.Text 'note, no formats etc* > * Result!ref = edtTransNo.Text* > * Result!amount = ValueBox1.Text* > * Result!comment = edtDescription.Text* > > * 'update the values* > * Result.update* > * conMod.$Con.Commit* > > *Catch* > * objErr.dhError()* > > *End* > > Now I get "Invalid Assignment in FCashup...", referring to "Result = > conMod.$Con.Edit(...) > > So 'cashup" is the table, right? > > 'date = &2' refers to the date column which is the second col in the table > (the SQL WHERE clause without the WHERE as the manual so aptly puts it), I > assume. > > I'm using this to 'update' the database. Is it correct and where is the > error in my syntax? > > Thanks for all your patience > > David > > > > > > > On Thursday, May 23, 2019, 9:11:08 AM GMT+2, Jorge Carri?n < > shordi at gmail.com> wrote: > > > In fact in Sqlite *all* data types are stored as characters and defined > by "data affinity". > Very well explained here: > https://www.sqlite.org/datatype3.html > > Regards > > El mi?., 22 may. 2019 a las 15:37, Cedron Dawg () > escribi?: > > Hi Benoit, > > I think you should have said: "In Gambas, dates are NOT strings", because > in SQLite they are stored as such, which can make your proclamation > confusing. > > In my own case, I haven't started using dates yet. I was/am assuming that > the Gambas' Result class would take care of any converstions: > > I think this is true: > > 1) Gambas stores dates in its own internal format > > 2) Databases store dates in their own (inconsistent across different DB > types) formats. > > 3) The Gambas database objects will convert for you under the covers. > > When you say "Gambas has to create the date fields", is that short hand > for "In database with more than one DATE type, Gambas will only work with > one."? > > > Now, for the local vs UTC mess. I got bit early on by some functions > being UTC aware and others not. > > Perhaps there should be two Date types in Gambas. The regular Date > meaning local time, i.e. locale unaware, and a UtcDate which is locale > aware. That way it would be really clear which one you are holding and the > rules for display and database storage could be defined inpependently for > both. > > Just a thought. > > Ced > > P.S. I've found working with databases delightfully easy in Gambas. > > P.P.S I haven't done any yet, but I presume that Gambas also handles > boolean value storage conversions as well. > > > ----- Original Message ----- > From: "Beno?t Minisini" > > OK, you read it, but I'm not sure you understood it then. > > "Dates are NOT strings" is the name of the first paragraph. Look at your > words, you are talking about sending / receiving dates as strings from > sqlite. > > On the other hand, I didn't write the database-specific paragraph, so I > will explain you: > > 1) You must send to the database and receive from it dates, not strings. > > 2) You have to create the database from Gambas, by using Date fields. > > 3) The gambas database component will take care of using the accurate > date/time SQL type that works with your specific database. > > 4) To write a date to the database, you use: 'Result!Field = SomeDate'. > > 5) 'SomeDate' must be a date. If you use a string, you deal with > implicit conversion. > > 6) To read the date back, you use 'SomeDate = Result!Field'. > > 7) 'SomeDate' is still a date. Now if you want to show the date to the > user, (or to you), you have to use PRINT, Str(), or Format(). > > 8) SQL date/time field types are a mess (as everything in SQL). The > gambas database component will store the date in the database IN LOCAL > TIME. Which is a stupid thing as soon as your database is accessed from > different timezones. You have to manually convert the dates from the > timezone of the server that writes to the database to the timezone of > the client that reads it. An option for automatically doing that must be > added to the Gambas database driver! > > Are things more clear now? > > -- > Beno?t Minisini > > ----[ 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 ]---- > > ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From admin at gambas-es.org Thu May 30 14:45:51 2019 From: admin at gambas-es.org (Jesus Guardon) Date: Thu, 30 May 2019 14:45:51 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <4355394.6657547.1559206489416@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> Message-ID: <26b6ecbf-89c1-6cd5-70a9-4370a88dc4c9@gambas-es.org> Hi, David It seems you are managing dates as strings from controls. If edtDate is a datechooser, datebox or any date related control, use its ".Value" property instead of .Text to read and set its internal date values. http://gambaswiki.org/wiki/comp/gb.form/datebox/value?l=en That's gonna cure your headaches for now, I think. Also, pay attention to previous posts and re-read all date related docs in the wiki. Sometimes we overlook things even by third read ;-) Regards, Jesus El 30/5/19 a las 10:54, David Silverwood via User escribi?: > Public Sub btnUpdate_Click() > > $Sql = "UPDATE cashup SET (" > $Sql = $Sql & "date = '" & edtDate.Text & "', " > David From bagonergi at gmail.com Thu May 30 15:11:46 2019 From: bagonergi at gmail.com (Gianluigi) Date: Thu, 30 May 2019 15:11:46 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> Message-ID: Sorry I forgot a piece of code: hResult = hConn.Find("users", "birth = &1", Date(1947, 4, 10)) Print hResult["id"];; hResult["name"] Gianluigi Il giorno gio 30 mag 2019 alle ore 14:24 Gianluigi ha scritto: > Something about the type of Find [0] also exists in VB, and you should > know it. > [0] http://gambaswiki.org/wiki/comp/gb.db/_connection/find > > As explained to you by Minisini, Gambas uses dates as a datetime > regardless of which database you use. > Gambas takes care of managing everything under the covers. > > In my example it changes Find like this: > hResult = hConn.Find("users", "birth", Date(1947, 4, 10)) > Print hResult["id"];; hResult["name"] > > Regards > Gianluigi > > Il giorno gio 30 mag 2019 alle ore 10:55 David Silverwood via User < > user at lists.gambas-basic.org> ha scritto: > >> Hi. Me again >> >> So this is my code... >> >> *Public Sub btnUpdate_Click()* >> >> * $Sql = "UPDATE cashup SET ("* >> * $Sql = $Sql & "date = '" & edtDate.Text & "', "* >> * $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "* >> * $Sql = $Sql & "amount = " & ValueBox1.Text & ", "* >> * $Sql = $Sql & "comment = '" & edtDescription.Text & "', "* >> * $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"* >> >> * Print $Sql* >> >> * Try* >> * conMod.$Con.Exec($Sql)* >> >> *Catch* >> * objErr.dhError() 'error handler in objErr mod* >> >> *End* >> >> It seems to me there is another way of doing this, but I haven't exactly >> been able to figure it out yet. It will however explain why sqlite refuses >> to accept a date from this code, no matter how I tried to format it. >> >> I am reading the wiki and came across the Connection.Edit(gb.db) page. So >> I tried this... >> >> *Public Sub btnUpdate_Click()* >> >> * '$Sql = "UPDATE cashup SET ("* >> * '$Sql = $Sql & "date = '" & edtDate.Text & "', "* >> * '$Sql = $Sql & "ref = '" & edtTransNo.Text & "', "* >> * ' $Sql = $Sql & "amount = " & ValueBox1.Text & ", "* >> * '$Sql = $Sql & "comment = '" & edtDescription.Text & "', "* >> * '$Sql = $Sql & "WHERE date = '" & edtDate.Text & "');"* >> >> * Result = conMod.$Con.Edit("cashup", "date = &2", edtDate.Text)* >> * Result!date = edtDate.Text 'note, no formats etc* >> * Result!ref = edtTransNo.Text* >> * Result!amount = ValueBox1.Text* >> * Result!comment = edtDescription.Text* >> >> * 'update the values* >> * Result.update* >> * conMod.$Con.Commit* >> >> *Catch* >> * objErr.dhError()* >> >> *End* >> >> Now I get "Invalid Assignment in FCashup...", referring to "Result = >> conMod.$Con.Edit(...) >> >> So 'cashup" is the table, right? >> >> 'date = &2' refers to the date column which is the second col in the >> table (the SQL WHERE clause without the WHERE as the manual so aptly puts >> it), I assume. >> >> I'm using this to 'update' the database. Is it correct and where is the >> error in my syntax? >> >> Thanks for all your patience >> >> David >> >> >> >> >> >> >> On Thursday, May 23, 2019, 9:11:08 AM GMT+2, Jorge Carri?n < >> shordi at gmail.com> wrote: >> >> >> In fact in Sqlite *all* data types are stored as characters and defined >> by "data affinity". >> Very well explained here: >> https://www.sqlite.org/datatype3.html >> >> Regards >> >> El mi?., 22 may. 2019 a las 15:37, Cedron Dawg () >> escribi?: >> >> Hi Benoit, >> >> I think you should have said: "In Gambas, dates are NOT strings", because >> in SQLite they are stored as such, which can make your proclamation >> confusing. >> >> In my own case, I haven't started using dates yet. I was/am assuming >> that the Gambas' Result class would take care of any converstions: >> >> I think this is true: >> >> 1) Gambas stores dates in its own internal format >> >> 2) Databases store dates in their own (inconsistent across different DB >> types) formats. >> >> 3) The Gambas database objects will convert for you under the covers. >> >> When you say "Gambas has to create the date fields", is that short hand >> for "In database with more than one DATE type, Gambas will only work with >> one."? >> >> >> Now, for the local vs UTC mess. I got bit early on by some functions >> being UTC aware and others not. >> >> Perhaps there should be two Date types in Gambas. The regular Date >> meaning local time, i.e. locale unaware, and a UtcDate which is locale >> aware. That way it would be really clear which one you are holding and the >> rules for display and database storage could be defined inpependently for >> both. >> >> Just a thought. >> >> Ced >> >> P.S. I've found working with databases delightfully easy in Gambas. >> >> P.P.S I haven't done any yet, but I presume that Gambas also handles >> boolean value storage conversions as well. >> >> >> ----- Original Message ----- >> From: "Beno?t Minisini" >> >> OK, you read it, but I'm not sure you understood it then. >> >> "Dates are NOT strings" is the name of the first paragraph. Look at your >> words, you are talking about sending / receiving dates as strings from >> sqlite. >> >> On the other hand, I didn't write the database-specific paragraph, so I >> will explain you: >> >> 1) You must send to the database and receive from it dates, not strings. >> >> 2) You have to create the database from Gambas, by using Date fields. >> >> 3) The gambas database component will take care of using the accurate >> date/time SQL type that works with your specific database. >> >> 4) To write a date to the database, you use: 'Result!Field = SomeDate'. >> >> 5) 'SomeDate' must be a date. If you use a string, you deal with >> implicit conversion. >> >> 6) To read the date back, you use 'SomeDate = Result!Field'. >> >> 7) 'SomeDate' is still a date. Now if you want to show the date to the >> user, (or to you), you have to use PRINT, Str(), or Format(). >> >> 8) SQL date/time field types are a mess (as everything in SQL). The >> gambas database component will store the date in the database IN LOCAL >> TIME. Which is a stupid thing as soon as your database is accessed from >> different timezones. You have to manually convert the dates from the >> timezone of the server that writes to the database to the timezone of >> the client that reads it. An option for automatically doing that must be >> added to the Gambas database driver! >> >> Are things more clear now? >> >> -- >> Beno?t Minisini >> >> ----[ 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 ]---- >> >> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g4mba5 at gmail.com Thu May 30 15:34:06 2019 From: g4mba5 at gmail.com (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 30 May 2019 15:34:06 +0200 Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <4355394.6657547.1559206489416@mail.yahoo.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <800896567.3167205.1558464621956@mail.yahoo.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> Message-ID: <0e76da1a-c1b2-52c7-00c2-39779f463f2e@gmail.com> Le 30/05/2019 ? 10:54, David Silverwood via User a ?crit?: > Hi. Me again > > So this is my code... > > /Public Sub btnUpdate_Click()/ > // > /? ? $Sql = "UPDATE cashup SET ("/ > /? ? $Sql = $Sql & "date = '" & edtDate.Text & "', "/ > /? ? $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "/ > /? ? $Sql = $Sql & "amount = " & ValueBox1.Text & ", "/ > /? ? $Sql = $Sql & "comment = '" & edtDescription.Text & "', "/ > /? ? $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"/ > // You MUST NOT make your SQL request like that. NEVER. ???? ?????????????? ?????????????????? ??? ????? ?????????????? ??????????????????? ??? ?????? ????????? ??? ????????? ???????? ??? ???????????????? ???? ?????????? ???????? ??? ??? ?????????????? ??????? ??????????? ??? ??? ??? ????????????? ????? ??????????? ??? ??? You must use the substitution feature of the Exec(), Find()... methods of the Connection object, which takes care for you of quoting SQL values accordingly to the underlying database to prevent SQL requests injections. And you must convert the text entered in the controls into the corresponding datatypes (Date, Integer, Float, Boolean, String) before passing them to the Exec(), Find()... methods. Regards, -- Beno?t Minisini From cedron at exede.net Thu May 30 16:11:32 2019 From: cedron at exede.net (Cedron Dawg) Date: Thu, 30 May 2019 10:11:32 -0400 (EDT) Subject: [Gambas-user] Using dates in Gambas In-Reply-To: <0e76da1a-c1b2-52c7-00c2-39779f463f2e@gmail.com> References: <21ea7c61-6fb2-6e30-3567-304fe50a8f34@gmail.com> <15e5691d-7b39-bcc7-e39c-962147d7e9ee@gmail.com> <213434621.3456891.1558517298303@mail.yahoo.com> <1681835504.40011870.1558532201817.JavaMail.zimbra@exede.net> <4355394.6657547.1559206489416@mail.yahoo.com> <0e76da1a-c1b2-52c7-00c2-39779f463f2e@gmail.com> Message-ID: <1938347368.50040055.1559225492020.JavaMail.zimbra@exede.net> Absolutely! You should use the sugar syntax $Sql &= "blah blah blah" instead. Ahhh, just kidding. What I am really wondering is if there is an example project that has the right way to do it for the whole process. Meaning some kind of form having a search list, a record selection, a record edit and update, a new record added with all the different data types included, some perhaps displayed with alternative available controls. Of course, it would also have the code backing it showing the proper use of Subst with Exec() and Find() examples. Are there any such officially (read Benoit) approved projects? Thanks, Ced ----- Original Message ----- From: "Beno?t Minisini" To: "user" Sent: Thursday, May 30, 2019 9:34:06 AM Subject: Re: [Gambas-user] Using dates in Gambas Le 30/05/2019 ? 10:54, David Silverwood via User a ?crit?: > Hi. Me again > > So this is my code... > > /Public Sub btnUpdate_Click()/ > // > /? ? $Sql = "UPDATE cashup SET ("/ > /? ? $Sql = $Sql & "date = '" & edtDate.Text & "', "/ > /? ? $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "/ > /? ? $Sql = $Sql & "amount = " & ValueBox1.Text & ", "/ > /? ? $Sql = $Sql & "comment = '" & edtDescription.Text & "', "/ > /? ? $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"/ > // You MUST NOT make your SQL request like that. NEVER. ???? ?????????????? ?????????????????? ??? ????? ?????????????? ??????????????????? ??? ?????? ????????? ??? ????????? ???????? ??? ???????????????? ???? ?????????? ???????? ??? ??? ?????????????? ??????? ??????????? ??? ??? ??? ????????????? ????? ??????????? ??? ??? You must use the substitution feature of the Exec(), Find()... methods of the Connection object, which takes care for you of quoting SQL values accordingly to the underlying database to prevent SQL requests injections. And you must convert the text entered in the controls into the corresponding datatypes (Date, Integer, Float, Boolean, String) before passing them to the Exec(), Find()... methods. Regards, -- Beno?t Minisini ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]---- From kicking177 at gmail.com Fri May 31 12:34:05 2019 From: kicking177 at gmail.com (KKing) Date: Fri, 31 May 2019 11:34:05 +0100 Subject: [Gambas-user] Using dates in Gambas Message-ID: <50734407-ac39-b3c9-e627-991e6d3e0581@gmail.com> << Le 30/05/2019 ? 10:54, David Silverwood via User a ?crit?: > Hi. Me again > > So this is my code... > > /Public Sub btnUpdate_Click()/ > // > /? ? $Sql = "UPDATE cashup SET ("/ > /? ? $Sql = $Sql & "date = '" & edtDate.Text & "', "/ > /? ? $Sql = $Sql & "ref = '" & edtTransNo.Text & "', "/ > /? ? $Sql = $Sql & "amount = " & ValueBox1.Text & ", "/ > /? ? $Sql = $Sql & "comment = '" & edtDescription.Text & "', "/ > /? ? $Sql = $Sql & "WHERE date = '" & edtDate.Text & "';"/ > // You MUST NOT make your SQL request like that. NEVER. >> Ouch K. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedron at exede.net Fri May 31 14:55:24 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 31 May 2019 08:55:24 -0400 (EDT) Subject: [Gambas-user] Gambas Software Farm reference sheet Message-ID: <2107604340.51126369.1559307324038.JavaMail.zimbra@exede.net> After significant toiling till my fingertips are blistered from all the typing.... I have posted an HTML report of the current list of projects in the Software Farm at Gambas.One: https://forum.gambas.one/viewtopic.php?f=4&t=718 The zipped file and details available there. Ced From cedron at exede.net Fri May 31 22:15:11 2019 From: cedron at exede.net (Cedron Dawg) Date: Fri, 31 May 2019 16:15:11 -0400 (EDT) Subject: [Gambas-user] Gambas Software Farm reference sheet In-Reply-To: <2107604340.51126369.1559307324038.JavaMail.zimbra@exede.net> References: <2107604340.51126369.1559307324038.JavaMail.zimbra@exede.net> Message-ID: <46853862.51547324.1559333711358.JavaMail.zimbra@exede.net> An improved version of this report and a second, components based one, is now available in the same posting. ----- Original Message ----- From: "Cedron Dawg" After significant toiling till my fingertips are blistered from all the typing.... I have posted an HTML report of the current list of projects in the Software Farm at Gambas.One: https://forum.gambas.one/viewtopic.php?f=4&t=718 The zipped file and details available there. Ced ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----