From gambas.fr at ...626... Thu Mar 2 10:07:05 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 2 Mar 2017 10:07:05 +0100 Subject: [Gambas-user] ... Is mailing list dead ? Message-ID: This is a try to get some contact to the extern world :-) -- Fabien Bodard From gambas at ...1... Thu Mar 2 10:13:27 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Thu, 2 Mar 2017 10:13:27 +0100 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: Message-ID: Le 02/03/2017 ? 10:07, Fabien Bodard a ?crit : > This is a try to get some contact to the extern world :-) > Apparently not. -- Beno?t Minisini From jscops at ...11... Thu Mar 2 10:11:33 2017 From: jscops at ...11... (Jack) Date: Thu, 2 Mar 2017 10:11:33 +0100 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: Message-ID: <292fcb2e-c93b-f37b-aeb4-871eac77927c@...11...> Le 02/03/2017 ? 10:07, Fabien Bodard a ?crit : > This is a try to get some contact to the extern world :-) > No problem for me. -- Jacky Tripoteau From rwe-sse at ...3629... Thu Mar 2 10:45:44 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Thu, 02 Mar 2017 10:45:44 +0100 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: Message-ID: <58B7E9C8.9000400@...3629...> Am 02.03.2017 10:07, schrieb Fabien Bodard: > This is a try to get some contact to the extern world :-) > Gambas is so good, nobody has a problem ;) Rolf From gambas.fr at ...626... Thu Mar 2 12:49:51 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 2 Mar 2017 12:49:51 +0100 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: <58B7E9C8.9000400@...3629...> References: <58B7E9C8.9000400@...3629...> Message-ID: Le 2 mars 2017 10:47 AM, "Rolf-Werner Eilert" a ?crit : > > Am 02.03.2017 10:07, schrieb Fabien Bodard: > > This is a try to get some contact to the extern world :-) > > > > Gambas is so good, nobody has a problem ;) Seem that true... or problems are easily resolved > > Rolf > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From bagonergi at ...626... Thu Mar 2 15:33:44 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 2 Mar 2017 15:33:44 +0100 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: <58B7E9C8.9000400@...3629...> Message-ID: For me all these things together :-) ? Gianluigi 2017-03-02 12:49 GMT+01:00 Fabien Bodard : > Le 2 mars 2017 10:47 AM, "Rolf-Werner Eilert" a > ?crit : > > > > Am 02.03.2017 10:07, schrieb Fabien Bodard: > > > This is a try to get some contact to the extern world :-) > > > > > > > Gambas is so good, nobody has a problem ;) > Seem that true... or problems are easily resolved > > > > Rolf > > > > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From olivier.cruilles at ...614... Thu Mar 2 15:50:03 2017 From: olivier.cruilles at ...614... (Yahoo) Date: Thu, 2 Mar 2017 09:50:03 -0500 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: <58B7E9C8.9000400@...3629...> Message-ID: For me it works. ?? Olivier Cruilles Le March 2, 2017 ? 09:34:49, Gianluigi (bagonergi at ...626...) a ?crit: For me all these things together :-) ? Gianluigi 2017-03-02 12:49 GMT+01:00 Fabien Bodard : > Le 2 mars 2017 10:47 AM, "Rolf-Werner Eilert" a > ?crit : > > > > Am 02.03.2017 10:07, schrieb Fabien Bodard: > > > This is a try to get some contact to the extern world :-) > > > > > > > Gambas is so good, nobody has a problem ;) > Seem that true... or problems are easily resolved > > > > Rolf > > > > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From charlie at ...2793... Thu Mar 2 16:01:49 2017 From: charlie at ...2793... (Charlie) Date: Thu, 2 Mar 2017 08:01:49 -0700 (MST) Subject: [Gambas-user] Media playback In-Reply-To: <1487872193464-58542.post@...3046...> References: <1487872193464-58542.post@...3046...> Message-ID: <1488466909923-58563.post@...3046...> Can nobody help me? ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Media-playback-tp58542p58563.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas.fr at ...626... Thu Mar 2 17:20:11 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 2 Mar 2017 17:20:11 +0100 Subject: [Gambas-user] Media playback In-Reply-To: <1488466909923-58563.post@...3046...> References: <1487872193464-58542.post@...3046...> <1488466909923-58563.post@...3046...> Message-ID: 2017-03-02 16:01 GMT+01:00 Charlie : > Can nobody help me? it's difficult without the system... but normally you need all the gstream 1.0 stuff > > > > > ----- > Check out www.gambas.one > -- > View this message in context: http://gambas.8142.n7.nabble.com/Media-playback-tp58542p58563.html > Sent from the gambas-user mailing list archive at Nabble.com. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From bugtracker at ...3416... Fri Mar 3 19:06:15 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 03 Mar 2017 18:06:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1090: Create color palette, with the colors of the current project Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1090&from=L21haW4- V?ctor PEREZ reported a new bug. Summary ------- Create color palette, with the colors of the current project Type : Request Priority : Medium Gambas version : 3.9 Product : Unknown Description ----------- Hello, as always bothering with suggestions, but never with intentions to importunar, but rather to improve and pontenciar Gambas !! Beno?t MINISINI ... how about adding a palette of colors to the current project? It is a question of collecting all the colors used in the project ... And leave them a place of easy access to this palette of colors of the current project open in the shrimp ide! I think it's a good idea to implement the prawns ide! Greetings and hope not to bother System information ------------------ Gambas=3.9.2 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86 Distribution=Linux Mint 17.3 Rosa Desktop=MATE Theme=Gtk Language=es_UY.UTF-8 Memory=1950M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 From charlie at ...2793... Sat Mar 4 11:36:51 2017 From: charlie at ...2793... (Charlie) Date: Sat, 4 Mar 2017 03:36:51 -0700 (MST) Subject: [Gambas-user] The Gambas Farm is 'Down' Message-ID: <1488623811230-58567.post@...3046...> Is it just me or is there a problem with the Farm? ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/The-Gambas-Farm-is-Down-tp58567.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...1... Sat Mar 4 12:49:42 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 4 Mar 2017 12:49:42 +0100 Subject: [Gambas-user] The Gambas Farm is 'Down' In-Reply-To: <1488623811230-58567.post@...3046...> References: <1488623811230-58567.post@...3046...> Message-ID: Le 04/03/2017 ? 11:36, Charlie a ?crit : > Is it just me or is there a problem with the Farm? > > It is back. -- Beno?t Minisini From charlie at ...2793... Sat Mar 4 13:33:07 2017 From: charlie at ...2793... (Charlie) Date: Sat, 4 Mar 2017 05:33:07 -0700 (MST) Subject: [Gambas-user] The Gambas Farm is 'Down' In-Reply-To: References: <1488623811230-58567.post@...3046...> Message-ID: <1488630787431-58569.post@...3046...> Excellent - Thanks. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/The-Gambas-Farm-is-Down-tp58567p58569.html Sent from the gambas-user mailing list archive at Nabble.com. From gbwilly at ...3606... Sat Mar 4 16:00:03 2017 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Sat, 04 Mar 2017 16:00:03 +0100 Subject: [Gambas-user] Media playback In-Reply-To: <1487872193464-58542.post@...3046...> References: <1487872193464-58542.post@...3046...> Message-ID: <592c807efbf56409655387b24250ac25@...3606...> On 2017-02-23 18:49, Charlie wrote: > Can anybody tell me what dependencies are needed to play a video? The > program > *VerySimpleVideoPlayer* (see the Gambas Farm) works perfectly in Ubuntu > & > Mint but not in ToOpPy Linux which is based on Puppy Linux. > Any help appreciated. > From the Installation and compilation instructions of Gambas wiki (http://gambaswiki.org/wiki/install): gstreamer-0.10 >= 0.10.31, gstreamer-interfaces-0.10 >= 0.10.31 for Gambas <= 3.4 gstreamer-1.0, gstreamer-video-1.0 for Gambas >= 3.5 How these packages are called in To0pPy Linux I don't know. gbWilly From charlie at ...2793... Sun Mar 5 15:53:20 2017 From: charlie at ...2793... (Charlie) Date: Sun, 5 Mar 2017 07:53:20 -0700 (MST) Subject: [Gambas-user] Media playback In-Reply-To: <592c807efbf56409655387b24250ac25@...3606...> References: <1487872193464-58542.post@...3046...> <592c807efbf56409655387b24250ac25@...3606...> Message-ID: <1488725600847-58571.post@...3046...> Thanks Fabien and bgWilly, I was looking at this on behalf of someone else. I have discovered that the ToOpPy Linux 2.2 (the latest) is based on Ubuntu 12.04 which came with Gambas2! None of the 'gstreamer-1' software, needed for Gambas 3.9.x, is available from the ToOpPy repositories. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Media-playback-tp58542p58571.html Sent from the gambas-user mailing list archive at Nabble.com. From casper.labuschagne at ...626... Mon Mar 6 07:55:41 2017 From: casper.labuschagne at ...626... (Casper) Date: Mon, 6 Mar 2017 08:55:41 +0200 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: <58B7E9C8.9000400@...3629...> Message-ID: This happens at the beginning of every month and appears to be experienced by GMail users. My guess is that Sourceforge MailList software sends out a large number of confirmation messages at month-end and this is picked up by GMail as spam and is bounced or blocked. This will affects the Gambas mail list for the first few days of the month. This is just a guess on my part, but it warrants looking into. Casper On 02/03/2017, Gianluigi wrote: > For me all these things together :-) ? > > Gianluigi > > 2017-03-02 12:49 GMT+01:00 Fabien Bodard : > >> Le 2 mars 2017 10:47 AM, "Rolf-Werner Eilert" a >> ?crit : >> > >> > Am 02.03.2017 10:07, schrieb Fabien Bodard: >> > > This is a try to get some contact to the extern world :-) >> > > >> > >> > Gambas is so good, nobody has a problem ;) >> Seem that true... or problems are easily resolved >> > >> > Rolf >> > >> > >> > >> ------------------------------------------------------------ >> ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Mar 6 08:46:31 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 6 Mar 2017 08:46:31 +0100 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: <58B7E9C8.9000400@...3629...> Message-ID: It seem it is that ... sourceforge is not what is was now 2017-03-06 7:55 GMT+01:00 Casper : > This happens at the beginning of every month and appears to be > experienced by GMail users. My guess is that Sourceforge MailList > software sends out a large number of confirmation messages at > month-end and this is picked up by GMail as spam and is bounced or > blocked. This will affects the Gambas mail list for the first few > days of the month. > > This is just a guess on my part, but it warrants looking into. > > > > Casper > > On 02/03/2017, Gianluigi wrote: >> For me all these things together :-) ? >> >> Gianluigi >> >> 2017-03-02 12:49 GMT+01:00 Fabien Bodard : >> >>> Le 2 mars 2017 10:47 AM, "Rolf-Werner Eilert" a >>> ?crit : >>> > >>> > Am 02.03.2017 10:07, schrieb Fabien Bodard: >>> > > This is a try to get some contact to the extern world :-) >>> > > >>> > >>> > Gambas is so good, nobody has a problem ;) >>> Seem that true... or problems are easily resolved >>> > >>> > Rolf >>> > >>> > >>> > >>> ------------------------------------------------------------ >>> ------------------ >>> > Check out the vibrant tech community on one of the world's most >>> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>> > _______________________________________________ >>> > Gambas-user mailing list >>> > Gambas-user at lists.sourceforge.net >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From scribe at ...3643... Tue Mar 7 10:21:20 2017 From: scribe at ...3643... (novae_lithic) Date: Tue, 7 Mar 2017 02:21:20 -0700 (MST) Subject: [Gambas-user] Drag Icon Message-ID: <1488878480204-58574.post@...3046...> Hi, I can't understand why my drag icon is not changing with the following code... Public Sub TilesGroup_MouseDrag() If Mouse.Left Then Last.Drag(Last.Tag) Drag.Icon = Picture["icon:/32/add"] End If End where TileGroup is a group of Buttons in an array: Tiles[i, j] = New Button(Me) As "TilesGroup" * On a broader level, where can I find examples or more detailed information about how to use the Drag and Drop functionality? The wiki (http://gambaswiki.org/wiki/comp/gb.qt4/drag) is quite sparse and has no examples. -- View this message in context: http://gambas.8142.n7.nabble.com/Drag-Icon-tp58574.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Tue Mar 7 17:12:38 2017 From: charlie at ...2793... (Charlie) Date: Tue, 7 Mar 2017 09:12:38 -0700 (MST) Subject: [Gambas-user] Drag Icon In-Reply-To: <1488878480204-58574.post@...3046...> References: <1488878480204-58574.post@...3046...> Message-ID: <1488903158859-58575.post@...3046...> There seems to be an issue depending on which Component you use: - gb.gui & gb.gtk3 only give a default 'drag.icon' gb.qt4 works as desired but only on the 2nd and subsequent 'drags' This is what I managed to get working: - take21.tar Interestingly Shutter will only capture the image when using gb.qt4 (I don't have QT5 so there may be more differences!) ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Drag-Icon-tp58574p58575.html Sent from the gambas-user mailing list archive at Nabble.com. From gbwilly at ...3606... Tue Mar 7 20:10:51 2017 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Tue, 07 Mar 2017 20:10:51 +0100 Subject: [Gambas-user] Media playback In-Reply-To: <1488725600847-58571.post@...3046...> References: <1487872193464-58542.post@...3046...> <592c807efbf56409655387b24250ac25@...3606...> <1488725600847-58571.post@...3046...> Message-ID: On 2017-03-05 15:53, Charlie wrote: > Thanks Fabien and bgWilly, > I was looking at this on behalf of someone else. I have discovered that > the > ToOpPy Linux 2.2 (the latest) is based on Ubuntu 12.04 which came with > Gambas2! None of the 'gstreamer-1' software, needed for Gambas 3.9.x, > is > available from the ToOpPy repositories. Ubuntu 12.04 has a backport repository holding the proper gstreamer version. If someone would use those as a base to package gstreamer for To0pPy your problem would be solved. gbWilly From gbwilly at ...3606... Tue Mar 7 21:18:47 2017 From: gbwilly at ...3606... (gbwilly at ...3606...) Date: Tue, 07 Mar 2017 21:18:47 +0100 Subject: [Gambas-user] Media playback In-Reply-To: References: <1487872193464-58542.post@...3046...> <592c807efbf56409655387b24250ac25@...3606...> <1488725600847-58571.post@...3046...> Message-ID: <14fa6f7940b09dbfb91703912ffaf1fc@...3606...> On 2017-03-07 20:10, gbwilly at ...3606... wrote: > On 2017-03-05 15:53, Charlie wrote: >> Thanks Fabien and bgWilly, >> I was looking at this on behalf of someone else. I have discovered >> that >> the >> ToOpPy Linux 2.2 (the latest) is based on Ubuntu 12.04 which came with >> Gambas2! None of the 'gstreamer-1' software, needed for Gambas 3.9.x, >> is >> available from the ToOpPy repositories. > > Ubuntu 12.04 has a backport repository holding the proper gstreamer > version. > If someone would use those as a base to package gstreamer for To0pPy > your problem would be solved. > > gbWilly Sorry Charlie, I'm wrong. It's Ubuntu 14.04 or higher for gstreamer 1.0 So, no backports for 12.04 gbWilly From mckaygerhard at ...626... Thu Mar 9 12:57:45 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 9 Mar 2017 07:57:45 -0400 Subject: [Gambas-user] ... Is mailing list dead ? In-Reply-To: References: <58B7E9C8.9000400@...3629...> Message-ID: well When time passes, everything increases, the number of users that processes the network and the amount of messages, and seems sourceforce only increase resources and power, is sometimes not the ideal solution, the right solution its a balance i'm a person againt the non-controled evolution of things, too much resource consuption, that's why i like usage of old things Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-06 3:46 GMT-04:00 Fabien Bodard : > It seem it is that ... sourceforge is not what is was now > > 2017-03-06 7:55 GMT+01:00 Casper : > > This happens at the beginning of every month and appears to be > > experienced by GMail users. My guess is that Sourceforge MailList > > software sends out a large number of confirmation messages at > > month-end and this is picked up by GMail as spam and is bounced or > > blocked. This will affects the Gambas mail list for the first few > > days of the month. > > > > This is just a guess on my part, but it warrants looking into. > > > > > > > > Casper > > > > On 02/03/2017, Gianluigi wrote: > >> For me all these things together :-) ? > >> > >> Gianluigi > >> > >> 2017-03-02 12:49 GMT+01:00 Fabien Bodard : > >> > >>> Le 2 mars 2017 10:47 AM, "Rolf-Werner Eilert" a > >>> ?crit : > >>> > > >>> > Am 02.03.2017 10:07, schrieb Fabien Bodard: > >>> > > This is a try to get some contact to the extern world :-) > >>> > > > >>> > > >>> > Gambas is so good, nobody has a problem ;) > >>> Seem that true... or problems are easily resolved > >>> > > >>> > Rolf > >>> > > >>> > > >>> > > >>> ------------------------------------------------------------ > >>> ------------------ > >>> > Check out the vibrant tech community on one of the world's most > >>> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > >>> > _______________________________________________ > >>> > Gambas-user mailing list > >>> > Gambas-user at lists.sourceforge.net > >>> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> ------------------------------------------------------------ > >>> ------------------ > >>> Check out the vibrant tech community on one of the world's most > >>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot > >>> _______________________________________________ > >>> Gambas-user mailing list > >>> Gambas-user at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/gambas-user > >>> > >> ------------------------------------------------------------ > ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From moviga at ...3488... Fri Mar 10 22:08:32 2017 From: moviga at ...3488... (Moviga Technologies) Date: Fri, 10 Mar 2017 22:08:32 +0100 Subject: [Gambas-user] Cairo Message-ID: <529476ab5b1898766d23bc026133082f@...3488...> Hi! What source code would be the best to study in order to learn how to use the cairo component properly? I am interested in learning more about the function's that allow one to refresh certain areas of the surface (clip and matrix?). My long term goals for learning it in the first place is to be able to first create a simple (perhaps monospaced) text editor, then a formatted text rendering surface (preferably with images) and lastly a rich text editor. Kind regards Erik From gambas at ...1... Sat Mar 11 00:44:50 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 11 Mar 2017 00:44:50 +0100 Subject: [Gambas-user] Cairo In-Reply-To: <529476ab5b1898766d23bc026133082f@...3488...> References: <529476ab5b1898766d23bc026133082f@...3488...> Message-ID: <1c9c9fef-1789-a81f-8c3e-c66337088e4f@...1...> Le 10/03/2017 ? 22:08, Moviga Technologies a ?crit : > Hi! > > What source code would be the best to study in order to learn how to use > the cairo component properly? I am interested in learning more about the > function's that allow one to refresh certain areas of the surface (clip > and matrix?). My long term goals for learning it in the first place is > to be able to first create a simple (perhaps monospaced) text editor, > then a formatted text rendering surface (preferably with images) and > lastly a rich text editor. > > Kind regards > Erik > The gb.cairo component has almost the same API as cairo, so any cairo source code example can be easily transposed to Gambas. Just ask questions on a specific example if you encounter problems. As for making a rich text editor, cairo is not enough, as it is rudimentary when displaying text. You have to rely on the Pango library, but there is no "gb.pango" component. And how will you handle input? For that, you will have to use the gb.gtk component, that uses internally cairo and pango for the drawing, and handles the input method stuff for entering non ascii characters with your keyboard. It's just that the API is not the same, but simpler. Regards, -- Beno?t Minisini From gambas.fr at ...626... Sat Mar 11 13:12:19 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 11 Mar 2017 13:12:19 +0100 Subject: [Gambas-user] Cairo In-Reply-To: <1c9c9fef-1789-a81f-8c3e-c66337088e4f@...1...> References: <529476ab5b1898766d23bc026133082f@...3488...> <1c9c9fef-1789-a81f-8c3e-c66337088e4f@...1...> Message-ID: Le 11 mars 2017 00:46, "Beno?t Minisini" a ?crit : Le 10/03/2017 ? 22:08, Moviga Technologies a ?crit : > Hi! > > What source code would be the best to study in order to learn how to use > the cairo component properly? I am interested in learning more about the > function's that allow one to refresh certain areas of the surface (clip > and matrix?). My long term goals for learning it in the first place is > to be able to first create a simple (perhaps monospaced) text editor, > then a formatted text rendering surface (preferably with images) and > lastly a rich text editor. > > Kind regards > Erik > The gb.cairo component has almost the same API as cairo, so any cairo source code example can be easily transposed to Gambas. Just ask questions on a specific example if you encounter problems. As for making a rich text editor, cairo is not enough, as it is rudimentary when displaying text. You have to rely on the Pango library, but there is no "gb.pango" component. And how will you handle input? For that, you will have to use the gb.gtk component, that uses internally cairo and pango for the drawing, and handles the input method stuff for entering non ascii characters with your keyboard. It's just that the API is not the same, but simpler. Regards, I think Erik want to replace the old TextEdit widget. So yes you need to use a toolkit component as basis. You can learn a lot with the gb.form.editor widget and gb.form.terminal. Drawing a text is long. So think about using cached images of letters or lines for quick refreshing. I wish you a lot of fun and I'm waiting for your editor ( I need one too) -- Beno?t Minisini ------------------------------------------------------------ ------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford _______________________________________________ Gambas-user mailing list Gambas-user at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user From moviga at ...3488... Sun Mar 12 16:49:44 2017 From: moviga at ...3488... (Moviga Technologies) Date: Sun, 12 Mar 2017 16:49:44 +0100 Subject: [Gambas-user] Cairo In-Reply-To: <1c9c9fef-1789-a81f-8c3e-c66337088e4f@...1...> References: <529476ab5b1898766d23bc026133082f@...3488...> <1c9c9fef-1789-a81f-8c3e-c66337088e4f@...1...> Message-ID: <203c02d1c0efadda1101bc200b148e17@...3488...> I see... Well, I wouldn't really need all the facy stuff. Latin letters and numbers would go a long way for me. But, I need to think a bit more about what to do then. Thanks! Den 11.03.2017 00:44, skrev Beno?t Minisini: > Le 10/03/2017 ? 22:08, Moviga Technologies a ?crit : > >> Hi! >> >> What source code would be the best to study in order to learn how to use >> the cairo component properly? I am interested in learning more about the >> function's that allow one to refresh certain areas of the surface (clip >> and matrix?). My long term goals for learning it in the first place is >> to be able to first create a simple (perhaps monospaced) text editor, >> then a formatted text rendering surface (preferably with images) and >> lastly a rich text editor. >> >> Kind regards >> Erik > > The gb.cairo component has almost the same API as cairo, so any cairo > source code example can be easily transposed to Gambas. Just ask > questions on a specific example if you encounter problems. > > As for making a rich text editor, cairo is not enough, as it is > rudimentary when displaying text. > > You have to rely on the Pango library, but there is no "gb.pango" component. > > And how will you handle input? > > For that, you will have to use the gb.gtk component, that uses > internally cairo and pango for the drawing, and handles the input method > stuff for entering non ascii characters with your keyboard. > > It's just that the API is not the same, but simpler. > > Regards, From mckaygerhard at ...626... Mon Mar 13 15:16:00 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 10:16:00 -0400 Subject: [Gambas-user] sourceforge , git and gitlab, time to switch to gitlab Message-ID: i'm back for this land and in my firts 2017 mail to this i see some notes about sourgeforce 2017-02-25 20:37 GMT-04:00 Jesus Guardon : > El 25/2/17 a las 20:17, Beno?t Minisini escribi?: > > Moreover, the Sourceforge svn commit mails are still broken, they > > apparently haven't fixed them for weeks. Sourceforge is more and more a > > problem! > Perhaps it's time to switch to GitHub... ;-) > > i best for gambas prefer gitlab due gitlab are more GPL rather github, the github interface are copyright and gitlab are 100% GPL and the enterprice services only add some services over the community.. so when we use the gitlab ui service we follow gpl guidelines, also helps a great project that share their ui code, either github not! * and a important difference, github projects are a sub.item of github repos.. that are confuse! * in gitlab, the repository its a subitem of a project, so the organization are more proper! also gitlab offers mirror git autocommit to other repositories so we can sync the older sourceforge using svn hook and mirror git, gitlab does not offer automatic mirror commits, only using git remote configuration inside repository. these 3 main reason means that gitlab are better.. and the right choice Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Mon Mar 13 15:22:48 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 Mar 2017 15:22:48 +0100 Subject: [Gambas-user] sourceforge , git and gitlab, time to switch to gitlab In-Reply-To: References: Message-ID: <5f42a611-e37e-f6f6-9113-24e5381e044d@...1...> Le 13/03/2017 ? 15:16, PICCORO McKAY Lenz a ?crit : > i'm back for this land and in my firts 2017 mail to this i see some notes > about sourgeforce > > 2017-02-25 20:37 GMT-04:00 Jesus Guardon : > >> El 25/2/17 a las 20:17, Beno?t Minisini escribi?: >>> Moreover, the Sourceforge svn commit mails are still broken, they >>> apparently haven't fixed them for weeks. Sourceforge is more and more a >>> problem! >> Perhaps it's time to switch to GitHub... ;-) >> >> > i best for gambas prefer gitlab due gitlab are more GPL rather github, the > github interface are copyright and gitlab are 100% GPL and the enterprice > services only add some services over the community.. > > so when we use the gitlab ui service we follow gpl guidelines, also helps a > great project that share their ui code, either github not! > > * and a important difference, github projects are a sub.item of github > repos.. that are confuse! > * in gitlab, the repository its a subitem of a project, so the organization > are more proper! > > also gitlab offers mirror git autocommit to other repositories so we can > sync the older sourceforge using svn hook and mirror git, gitlab does not > offer automatic mirror commits, only using git remote configuration inside > repository. > > these 3 main reason means that gitlab are better.. and the right choice > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com Sebastian Kuelez prefers github: maybe he can give his arguments on the mailing-list? Anyway, whatever repository is chosen, the only problem I have is how to import the svn commit history with the user that did the commit, as these users won't exist in the new git repository. -- Beno?t Minisini From sbungay at ...3301... Mon Mar 13 15:26:25 2017 From: sbungay at ...3301... (sbungay) Date: Mon, 13 Mar 2017 10:26:25 -0400 Subject: [Gambas-user] Map sample code? Message-ID: Anyone got a good piece of sample code of using the Map control? -- Stephen Bungay Smarts On Site Information Systems & Support Services 705-734-0597 From mckaygerhard at ...626... Mon Mar 13 16:15:48 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 11:15:48 -0400 Subject: [Gambas-user] sourceforge , git and gitlab, time to switch to gitlab In-Reply-To: <5f42a611-e37e-f6f6-9113-24e5381e044d@...1...> References: <5f42a611-e37e-f6f6-9113-24e5381e044d@...1...> Message-ID: the history will not be missing at all! CITED: > Group members will get exported as project members, as long as the user has master or admin access to the group where the exported project lives. An admin in the import side is required to map the users, based on email or username. Otherwise, a supplementary comment is left to mention the original author and the MRs, notes or issues will be owned by the importer. A usefull hint was found in an issue: https://github.com/samrocketman/gitlab-mirrors/issues/17#issuecomment-29834481 maybe it helps, due gambas repo are SVN, and import mus made it from Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-13 10:22 GMT-04:00 Beno?t Minisini : > Le 13/03/2017 ? 15:16, PICCORO McKAY Lenz a ?crit : > > i'm back for this land and in my firts 2017 mail to this i see some notes > > about sourgeforce > > > > 2017-02-25 20:37 GMT-04:00 Jesus Guardon : > > > >> El 25/2/17 a las 20:17, Beno?t Minisini escribi?: > >>> Moreover, the Sourceforge svn commit mails are still broken, they > >>> apparently haven't fixed them for weeks. Sourceforge is more and more a > >>> problem! > >> Perhaps it's time to switch to GitHub... ;-) > >> > >> > > i best for gambas prefer gitlab due gitlab are more GPL rather github, > the > > github interface are copyright and gitlab are 100% GPL and the enterprice > > services only add some services over the community.. > > > > so when we use the gitlab ui service we follow gpl guidelines, also > helps a > > great project that share their ui code, either github not! > > > > * and a important difference, github projects are a sub.item of github > > repos.. that are confuse! > > * in gitlab, the repository its a subitem of a project, so the > organization > > are more proper! > > > > also gitlab offers mirror git autocommit to other repositories so we can > > sync the older sourceforge using svn hook and mirror git, gitlab does not > > offer automatic mirror commits, only using git remote configuration > inside > > repository. > > > > these 3 main reason means that gitlab are better.. and the right choice > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > Sebastian Kuelez prefers github: maybe he can give his arguments on the > mailing-list? > > Anyway, whatever repository is chosen, the only problem I have is how to > import the svn commit history with the user that did the commit, as > these users won't exist in the new git repository. > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Mon Mar 13 16:18:17 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 11:18:17 -0400 Subject: [Gambas-user] sourceforge , git and gitlab, time to switch to gitlab In-Reply-To: References: <5f42a611-e37e-f6f6-9113-24e5381e044d@...1...> Message-ID: sorry i forget to adde too: https://gitlab.com/help/workflow/importing/migrating_from_svn i prefer svn2git and the user map link i shared before works with it! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-13 11:15 GMT-04:00 PICCORO McKAY Lenz : > the history will not be missing at all! > > CITED: > > Group members will get exported as project members, as long as the user > has > master or admin access to the group where the exported project lives. An > admin > in the import side is required to map the users, based on email or > username. > Otherwise, a supplementary comment is left to mention the original author > and > the MRs, notes or issues will be owned by the importer. > > A usefull hint was found in an issue: > > https://github.com/samrocketman/gitlab-mirrors/issues/17#issuecomment- > 29834481 > > maybe it helps, due gambas repo are SVN, and import mus made it from > > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-13 10:22 GMT-04:00 Beno?t Minisini : > >> Le 13/03/2017 ? 15:16, PICCORO McKAY Lenz a ?crit : >> > i'm back for this land and in my firts 2017 mail to this i see some >> notes >> > about sourgeforce >> > >> > 2017-02-25 20:37 GMT-04:00 Jesus Guardon : >> > >> >> El 25/2/17 a las 20:17, Beno?t Minisini escribi?: >> >>> Moreover, the Sourceforge svn commit mails are still broken, they >> >>> apparently haven't fixed them for weeks. Sourceforge is more and more >> a >> >>> problem! >> >> Perhaps it's time to switch to GitHub... ;-) >> >> >> >> >> > i best for gambas prefer gitlab due gitlab are more GPL rather github, >> the >> > github interface are copyright and gitlab are 100% GPL and the >> enterprice >> > services only add some services over the community.. >> > >> > so when we use the gitlab ui service we follow gpl guidelines, also >> helps a >> > great project that share their ui code, either github not! >> > >> > * and a important difference, github projects are a sub.item of github >> > repos.. that are confuse! >> > * in gitlab, the repository its a subitem of a project, so the >> organization >> > are more proper! >> > >> > also gitlab offers mirror git autocommit to other repositories so we can >> > sync the older sourceforge using svn hook and mirror git, gitlab does >> not >> > offer automatic mirror commits, only using git remote configuration >> inside >> > repository. >> > >> > these 3 main reason means that gitlab are better.. and the right choice >> > >> > Lenz McKAY Gerardo (PICCORO) >> > http://qgqlochekone.blogspot.com >> >> Sebastian Kuelez prefers github: maybe he can give his arguments on the >> mailing-list? >> >> Anyway, whatever repository is chosen, the only problem I have is how to >> import the svn commit history with the user that did the commit, as >> these users won't exist in the new git repository. >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > From mckaygerhard at ...626... Mon Mar 13 16:29:09 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 11:29:09 -0400 Subject: [Gambas-user] configure and use gambas web programs Message-ID: hi benoit i'm back! again with gambas web, and amnesia! 2017-02-15 22:33 GMT-04:00 Beno?t Minisini : > Example with the configuration file of lighttpd: > > ... > # This tells that all and executable files are cgi scripts, > # and just them > cgi.execute-x-only = "enable" > cgi.assign = ( "" => "" ) > that's its necesary to run any cgi gambas generated code? if yes why in past doesn not mentioned in the gambas wiki explicy!? > ... > # This tell that the "/manager" URL is associated with the CGI script > alias.url = ( "/manager" => "/path/to/MyCgiScript.gambas" ) > > its necesary associated a path with the app gambas path with the excecutable? there's a way to assing a arbitrary path to gambas cgi? i mean just like php does, i put the exce and server runs!? > Regards, > > -- > Beno?t Minisini the gambas tutorial in the wiki are not found by me or its not made yet, the only info i got are the jbsan minimal tutorial.. very great .. but its too minimal. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Mon Mar 13 16:36:56 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 13 Mar 2017 16:36:56 +0100 Subject: [Gambas-user] configure and use gambas web programs In-Reply-To: References: Message-ID: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> Le 13/03/2017 ? 16:29, PICCORO McKAY Lenz a ?crit : > hi benoit i'm back! again with gambas web, and amnesia! > > 2017-02-15 22:33 GMT-04:00 Beno?t Minisini : > >> Example with the configuration file of lighttpd: >> >> ... >> # This tells that all and executable files are cgi scripts, >> # and just them >> cgi.execute-x-only = "enable" >> cgi.assign = ( "" => "" ) >> > > that's its necesary to run any cgi gambas generated code? if yes why in > past doesn not mentioned in the gambas wiki explicy!? > > >> ... >> # This tell that the "/manager" URL is associated with the CGI script >> alias.url = ( "/manager" => "/path/to/MyCgiScript.gambas" ) >> >> > its necesary associated a path with the app gambas path with the > excecutable? > there's a way to assing a arbitrary path to gambas cgi? > > i mean just like php does, i put the exce and server runs!? > > This is lighttpd specific configuration syntax. I don't know what the syntax is in Apache or other web servers. But the principles should be the same: - A way to associate an URL path to a disk path. - Something to tell the web server which files are CGI scripts. Then your CGI script file should always be an executable, whatever webserver you use. Configuring the execution of a CGI script has nothing to do with Gambas, it's purely a specific web server configuration thing. Regards, -- Beno?t Minisini From mckaygerhard at ...626... Mon Mar 13 17:06:44 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 12:06:44 -0400 Subject: [Gambas-user] configure and use gambas web programs In-Reply-To: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> References: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> Message-ID: 2017-03-13 11:36 GMT-04:00 Beno?t Minisini : > Configuring the execution of a CGI script has nothing to do with Gambas, > it's purely a specific web server configuration thing. > > again in same place, starting from zero! and reading the cgi principes! arrrgggg! does any body know how to configure the gambasforge[1] project in webserver? [1] http://www.gambasforge.org/forge.html From mckaygerhard at ...626... Mon Mar 13 17:35:05 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 12:35:05 -0400 Subject: [Gambas-user] decode json string in standard application In-Reply-To: References: Message-ID: hello jsbsan, this are helpfully for those that dont understand and/or doesn are able to integrate webservices with desktop app.. http://jsbsan.blogspot.com.es/2015/04/gambas3-ejemplo-de-json-y-extraer-datos.html NOTE: for understand the code must compare and read the implementation code in php: https://geekytheory.com/json-iv-ejemplo-practico-de-uso-de-json-con-openweathermap/ many many thanks for the code, very usefully.. i made a app that comunicate asyncronous with a main app, due here the internet are very bad! all are in spanish but for those that dont talk an use google translator as we must enforce to write in english Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2016-12-10 7:47 GMT-04:00 Julio Sanchez : > Piccoro Mackay Lenz: > > "or only works with a web type application?" > > > Desktop application example: > > http://jsbsan.blogspot.com.es/2015/04/gambas3-ejemplo-de- > json-y-extraer-datos.html > > > > "You can use the gb.util.web component everywhere you want " > > > You can even extract the component code, the json class, and use it in > projects, so you do not have to have gb.util.web installed. > I use it for earlier versions of Gambas, where that component did not > exist, but I do need to use the json class. > > Regards > > Jsbsan > > > 2016-12-10 7:51 GMT+01:00 Fabien Bodard : > > > You can use the gb.util.web component everywhere you want :-).... > > > > 2016-12-09 20:45 GMT+01:00 PICCORO McKAY Lenz : > > > i made a pos systemas in gambas but i want get info of clients by an > api > > > decoding string results by url gets.. > > > > > > the url retuns a json string, and i can see that gambas hav methods for > > > json decoding > > > > > > http://gambaswiki.org/wiki/comp/gb.web/json/decode > > > > > > the question are: i can use that also in a standard project > application? > > or > > > only works with a web type application? > > > > > > i want to decode the json string to get info of the clients in the pos > > > system, so then my database does not need store client data, only > client > > id > > > > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > ------------------------------------------------------------ > > ------------------ > > > Developer Access Program for Intel Xeon Phi Processors > > > Access to Intel Xeon Phi processor-based developer platforms. > > > With one year of Intel Parallel Studio XE. > > > Training and support from Colfax. > > > Order your platform today.http://sdm.link/xeonphi > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > Fabien Bodard > > > > ------------------------------------------------------------ > > ------------------ > > Developer Access Program for Intel Xeon Phi Processors > > Access to Intel Xeon Phi processor-based developer platforms. > > With one year of Intel Parallel Studio XE. > > Training and support from Colfax. > > Order your platform today.http://sdm.link/xeonphi > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today.http://sdm.link/xeonphi > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Mon Mar 13 19:11:22 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 14:11:22 -0400 Subject: [Gambas-user] WebView its a qt4 only ? Message-ID: in the wiki documentation said that any gambas component have and alternative in qt and gtk respectively.. are the webkit based webview component relies only in qt4 ? so how many components are only qt4/qt5 ? and who are gtk available? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas.fr at ...626... Mon Mar 13 21:54:52 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 13 Mar 2017 21:54:52 +0100 Subject: [Gambas-user] Map sample code? In-Reply-To: References: Message-ID: There is one in the examples Le 13 mars 2017 15:53, "sbungay" a ?crit : > > Anyone got a good piece of sample code of using the Map control? > -- > Stephen Bungay > Smarts On Site > Information Systems & Support Services > 705-734-0597 > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Mar 13 22:06:31 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 13 Mar 2017 22:06:31 +0100 Subject: [Gambas-user] configure and use gambas web programs In-Reply-To: References: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> Message-ID: Maybe me ? as I have writted it with Adrien and also because I'm the administrator of the site. Well a bad administrator but the site run for years now without crash. If you are a kind man I can open a door for you to see the site from the inside. Can I have confidence to you ? Write me in private. Le 13 mars 2017 17:08, "PICCORO McKAY Lenz" a ?crit : > 2017-03-13 11:36 GMT-04:00 Beno?t Minisini : > > > Configuring the execution of a CGI script has nothing to do with Gambas, > > it's purely a specific web server configuration thing. > > > > again in same place, starting from zero! and reading the cgi principes! > arrrgggg! > > does any body know how to configure the gambasforge[1] project in > webserver? > > [1] http://www.gambasforge.org/forge.html > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Mon Mar 13 22:09:11 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 13 Mar 2017 22:09:11 +0100 Subject: [Gambas-user] configure and use gambas web programs In-Reply-To: References: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> Message-ID: I have a problems with the physical server since days now... need to wait Le 13 mars 2017 22:06, "Fabien Bodard" a ?crit : > Maybe me ? as I have writted it with Adrien and also because I'm the > administrator of the site. Well a bad administrator but the site run for > years now without crash. > > If you are a kind man I can open a door for you to see the site from the > inside. Can I have confidence to you ? > Write me in private. > > > Le 13 mars 2017 17:08, "PICCORO McKAY Lenz" a > ?crit : > >> 2017-03-13 11:36 GMT-04:00 Beno?t Minisini >> : >> >> > Configuring the execution of a CGI script has nothing to do with Gambas, >> > it's purely a specific web server configuration thing. >> > >> > again in same place, starting from zero! and reading the cgi principes! >> arrrgggg! >> >> does any body know how to configure the gambasforge[1] project in >> webserver? >> >> [1] http://www.gambasforge.org/forge.html >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > From adrien.prokopowicz at ...626... Mon Mar 13 22:23:22 2017 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Mon, 13 Mar 2017 22:23:22 +0100 Subject: [Gambas-user] configure and use gambas web programs In-Reply-To: References: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> Message-ID: Le Mon, 13 Mar 2017 17:06:44 +0100, PICCORO McKAY Lenz a ?crit: > 2017-03-13 11:36 GMT-04:00 Beno?t Minisini > : > >> Configuring the execution of a CGI script has nothing to do with Gambas, >> it's purely a specific web server configuration thing. >> >> again in same place, starting from zero! and reading the cgi principes! > arrrgggg! > > does any body know how to configure the gambasforge[1] project in > webserver? > > [1] http://www.gambasforge.org/forge.html > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Here is an extract of the Apache configuration for the GambasForge website. It's a bit messy (We were young :) ), but the important parts are the "ExecCGI" options, as well as the "AddHandler cgi-script .cgi" extra file handlers. Currently, this configuration only enables the use of the CGI scripts, and then we use an .htaccess file with a whole bunch of RewriteRules, so we have pretty URLs (such as /forge.html) to point to the main.gambas.cgi executable. Here is an extract : #forge RewriteRule ^forge\.html$ main.gambas.cgi?section=forge [QSA] RewriteRule ^mail\.html$ main.gambas.cgi?section=forge&action=sendmail [QSA] RewriteRule ^categorie\-([0-9]+)(?:\-[a-z0-9\-]+)?(?:\-page\-([0-9]+))\.html$ main.gambas.cgi?action=categorie§ion=forge&id=$1&numpage=1 [QSA] RewriteRule ^code\-([0-9]+)-ajoutercommentaire(?:\-[a-z0-9\-]+)?\.html$ main.gambas.cgi?section=forge&action=addcomment&id=$1 [QSA] And then, you can check the section and action parameters in your application to show the right page. :) Hope that answers some of your questions. :) Regards, -- Adrien Prokopowicz -------------- next part -------------- A non-text attachment was scrubbed... Name: gambasforge.conf Type: application/octet-stream Size: 480 bytes Desc: not available URL: From mckaygerhard at ...626... Mon Mar 13 22:42:43 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 17:42:43 -0400 Subject: [Gambas-user] configure and use gambas web programs In-Reply-To: References: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> Message-ID: thanks adrian thanks fabian.. ahhh i can see the trick! that's why the installer script rename the compiled app and added and extension ".cgi" right? of course, thanks for the hint! how stupid i feel jajaja now i can understand benoit was talking about! so in general, make a gambas program that generate html code, compile and make a trick to that compiled programs acts as "cgi exec" and then invoke from webserver path.. in this case, the trick was only interpretation of any extension "cgi" in the site definition of apache... that's in few words... rewrite rules dont care! thanks in any case.. the conf file carified my way with your words and sein the installe script.. but hey i'll ask more later.. about fabian, i write private and try to help.. due cos i like (as i does with php and codeigniter) easy made apps for gain path agains guindo apps in enterprise.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-13 17:23 GMT-04:00 Adrien Prokopowicz : > Le Mon, 13 Mar 2017 17:06:44 +0100, PICCORO McKAY Lenz < > mckaygerhard at ...626...> a ?crit: > > 2017-03-13 11:36 GMT-04:00 Beno?t Minisini : >> >> Configuring the execution of a CGI script has nothing to do with Gambas, >>> it's purely a specific web server configuration thing. >>> >>> again in same place, starting from zero! and reading the cgi principes! >>> >> arrrgggg! >> >> does any body know how to configure the gambasforge[1] project in >> webserver? >> >> [1] http://www.gambasforge.org/forge.html >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > Here is an extract of the Apache configuration for the GambasForge website. > It's a bit messy (We were young :) ), but the important parts are the > "ExecCGI" options, as well as the "AddHandler cgi-script .cgi" extra file > handlers. > > Currently, this configuration only enables the use of the CGI scripts, and > then we use an .htaccess file with a whole bunch of RewriteRules, so we > have pretty URLs (such as /forge.html) to point to the main.gambas.cgi > executable. Here is an extract : > > #forge > RewriteRule ^forge\.html$ main.gambas.cgi?section=forge [QSA] > RewriteRule ^mail\.html$ main.gambas.cgi?section=forge&action=sendmail > [QSA] > RewriteRule ^categorie\-([0-9]+)(?:\-[a-z > 0-9\-]+)?(?:\-page\-([0-9]+))\.html$ main.gambas.cgi?action=categor > ie§ion=forge&id=$1&numpage=1 [QSA] > RewriteRule ^code\-([0-9]+)-ajoutercommen > taire(?:\-[a-z0-9\-]+)?\.html$ main.gambas.cgi?section=forge&action=addcomment&id=$1 > [QSA] > > And then, you can check the section and action parameters in your > application to show the right page. :) > > Hope that answers some of your questions. :) > Regards, > -- > Adrien Prokopowicz > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From taboege at ...626... Mon Mar 13 23:09:40 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 13 Mar 2017 23:09:40 +0100 Subject: [Gambas-user] Configure real httpd for gb.web.form In-Reply-To: <830a454a-0954-3a4b-e0df-b1531b819fef@...1...> References: <20170216022003.GE573@...3600...> <830a454a-0954-3a4b-e0df-b1531b819fef@...1...> Message-ID: <20170313220939.GA720@...3600...> On Thu, 16 Feb 2017, Beno?t Minisini wrote: > Le 16/02/2017 ? 03:20, Tobias Boege a ?crit : > > Hi list, > > > > has anyone here ever set up a real HTTP server for running gb.web.form > > applications? I've decided to use nginx and setting up https there was > > easy enough (https being the the reason why I can't use gb.httpd). > > Normal Gambas CGI, i.e. a Gambas script with gb.web, also works fine. > > > > But I have no idea about gb.web.form. > > Projects using gb.web.form are CGI scripts too, no difference. > > > I read around in the gb.httpd > > source code and kind of get its control flow but I'm none the wiser > > about how to set up an external HTTP server to work with this component. > > In particular I would run the .gambas executable archive on every request, > > which, I presume, involves rewriting the request URL, i.e. > > > > /my/project.gambas/x > > > > should be redirected to > > > > /my/project.gambas > > > > while setting Request.Path to "/x". > > > > I'm not sure if any other information about my setup is useful here. > > I think I succeeded in redirecting all requests to my program and by > > setting PATH_INFO from the original request URL, I get a meaningful > > Request.Path in Gambas. The result being that the skeleton HTML of my > > page is shown but it's not responsive at all (and it appears to be the > > wrong page, i.e. the wrong Webform.Startup, indicating that probably > > Session management doesn't work). It also seems like the browser is not > > able to communicate with gb.web.form. > > > > Instead of trying to debug my setup which looks completely wrong, my > > question would be if someone has a working configuration for this type > > of project for any HTTP server (that isn't gb.httpd) -- in the hope > > that I can go from there to nginx. > > > > Regards, > > Tobi > > > > Example with the configuration file of lighttpd: > > ... > # This tells that all and executable files are cgi scripts, > # and just them > cgi.execute-x-only = "enable" > cgi.assign = ( "" => "" ) > ... > # This tell that the "/manager" URL is associated with the CGI script > alias.url = ( "/manager" => "/path/to/MyCgiScript.gambas" ) > I've had more success with these 3 lines in lighttpd than in nginx (I guess because lighttpd sets CGI variables differently), but I'm not able to run *my* project. I'm sure there are several things wrong with it. For one I'm unable to compile it completely (it crashes the compiler with a segfault, but only a minor thing in gbc_help.c, IIRC) -- now that I think about it, I'm not even sure if all compiled object files have the same version when I run the project... And I also mess a lot with Request.Path in my WebForm's HandleRequest() hook. It works with gb.httpd though, so it can't be that terrible. Sadly I'm with my back against a wall concerning time. So, for now my solution is the following: 1. Patch gb.httpd to recognise the GB_HTTPD_HOSTNAME environment variable, which lets you specify the host to bind to (patch attached). 2. Run my project under gb.httpd (gbx3 -H), bind to an unused port, e.g. GB_HTTPD_PORT=8080, and to GB_HTTPD_HOSTNAME=127.0.0.1. This ensures that nobody not on localhost is able to accidentally connect to the gb.httpd server directly. 3. Run nginx as a proxy HTTPS server for the local gb.httpd one. The configuration for that is really simple: server { listen 443 ssl; server_name ...; ssl_certificate ...; ssl_certificate_key ...; location / { proxy_pass http://127.0.0.1:8080; } } This accomplishes all I wanted, although I'm not too comfortable running gb.httpd instead of a properly maintained httpd. I'll report back (possibly in a new thread) once I sort this out. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: add-GB_HTTPD_HOSTNAME-to-gb.httpd.patch Type: text/x-diff Size: 448 bytes Desc: not available URL: From mckaygerhard at ...626... Tue Mar 14 01:42:34 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 13 Mar 2017 20:42:34 -0400 Subject: [Gambas-user] Configure real httpd for gb.web.form In-Reply-To: <20170313220939.GA720@...3600...> References: <20170216022003.GE573@...3600...> <830a454a-0954-3a4b-e0df-b1531b819fef@...1...> <20170313220939.GA720@...3600...> Message-ID: 2017-03-13 18:09 GMT-04:00 Tobias Boege : > On Thu, 16 Feb 2017, Beno?t Minisini wrote: > > > Normal Gambas CGI, i.e. a Gambas script with gb.web, also works fine. > > > > > > But I have no idea about gb.web.form. > > > > Projects using gb.web.form are CGI scripts too, no difference. > after too much reading and testing, proyects with or without web.form compiled produce a gambas exceutable file Nginx doesn't have native CGI support (it supports fastCGI instead). The typical solution for this is to run your gambas script as a fastCGI process and edit the nginx config file to re-direct requests to the fastCGI process. This is quite a complex solution if all you want to do is run a CGI script. a trick lke the gambasforge does, rename the gambas executable file and added a extension, and follow the same recipe as do with perl.. as i said this are quite complicated process due there's no wrapper for gambas cgi scripts.. so must be a socket that ngynx can listen to manage the cgi/gambas program as real cgi > > > > > I read around in the gb.httpd > > > source code and kind of get its control flow but I'm none the wiser > > > about how to set up an external HTTP server to work with this > component. > > > In particular I would run the .gambas executable archive on every > request, > > > which, I presume, involves rewriting the request URL, i.e. > > > > > > /my/project.gambas/x > > > > > > should be redirected to > > > > > > /my/project.gambas > > > > > > while setting Request.Path to "/x". > > > > > > I'm not sure if any other information about my setup is useful here. > > > I think I succeeded in redirecting all requests to my program and by > > > setting PATH_INFO from the original request URL, I get a meaningful > > > Request.Path in Gambas. The result being that the skeleton HTML of my > > > page is shown but it's not responsive at all (and it appears to be the > > > wrong page, i.e. the wrong Webform.Startup, indicating that probably > > > Session management doesn't work). It also seems like the browser is not > > > able to communicate with gb.web.form. > > > > > > Instead of trying to debug my setup which looks completely wrong, my > > > question would be if someone has a working configuration for this type > > > of project for any HTTP server (that isn't gb.httpd) -- in the hope > > > that I can go from there to nginx. > > > > > > Regards, > > > Tobi > > > > > > > Example with the configuration file of lighttpd: > > > > ... > > # This tells that all and executable files are cgi scripts, > > # and just them > > cgi.execute-x-only = "enable" > > cgi.assign = ( "" => "" ) > > ... > > # This tell that the "/manager" URL is associated with the CGI script > > alias.url = ( "/manager" => "/path/to/MyCgiScript.gambas" ) > > > > I've had more success with these 3 lines in lighttpd than in nginx > (I guess because lighttpd sets CGI variables differently), but I'm > not able to run *my* project. > > I'm sure there are several things wrong with it. For one I'm unable to > compile it completely (it crashes the compiler with a segfault, but only > a minor thing in gbc_help.c, IIRC) -- now that I think about it, I'm > not even sure if all compiled object files have the same version when > I run the project... And I also mess a lot with Request.Path in my > WebForm's HandleRequest() hook. It works with gb.httpd though, so it > can't be that terrible. > > Sadly I'm with my back against a wall concerning time. So, for now my > solution is the following: > > 1. Patch gb.httpd to recognise the GB_HTTPD_HOSTNAME environment > variable, which lets you specify the host to bind to (patch attached). > 2. Run my project under gb.httpd (gbx3 -H), bind to an unused port, > e.g. GB_HTTPD_PORT=8080, and to GB_HTTPD_HOSTNAME=127.0.0.1. > This ensures that nobody not on localhost is able to accidentally > connect to the gb.httpd server directly. > 3. Run nginx as a proxy HTTPS server for the local gb.httpd one. The > configuration for that is really simple: > > server { > listen 443 ssl; > server_name ...; > ssl_certificate ...; > ssl_certificate_key ...; > > location / { > proxy_pass http://127.0.0.1:8080; > } > } > > This accomplishes all I wanted, although I'm not too comfortable running > gb.httpd instead of a properly maintained httpd. I'll report back (possibly > in a new thread) once I sort this out. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From taboege at ...626... Tue Mar 14 01:59:41 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 14 Mar 2017 01:59:41 +0100 Subject: [Gambas-user] Configure real httpd for gb.web.form In-Reply-To: References: <20170216022003.GE573@...3600...> <830a454a-0954-3a4b-e0df-b1531b819fef@...1...> <20170313220939.GA720@...3600...> Message-ID: <20170314005941.GB720@...3600...> On Mon, 13 Mar 2017, PICCORO McKAY Lenz wrote: > 2017-03-13 18:09 GMT-04:00 Tobias Boege : > > > On Thu, 16 Feb 2017, Beno?t Minisini wrote: > > > > Normal Gambas CGI, i.e. a Gambas script with gb.web, also works fine. > > > > > > > > But I have no idea about gb.web.form. > > > > > > Projects using gb.web.form are CGI scripts too, no difference. > > > > after too much reading and testing, proyects with or without web.form > compiled produce a gambas exceutable file > > Nginx doesn't have native CGI support (it supports fastCGI instead). The > typical solution for this is to run your gambas script as a fastCGI process > and edit the nginx config file to re-direct requests to the fastCGI > process. This is quite a complex solution if all you want to do is run a > CGI script. > > a trick lke the gambasforge does, rename the gambas executable file and > added a extension, and follow the same recipe as do with perl.. as i said > this are quite complicated process due there's no wrapper for gambas cgi > scripts.. so must be a socket that ngynx can listen to manage the > cgi/gambas program as real cgi > As I already said in my first mail (quoted above), I can run Gambas CGI projects, be it .gbs scripts or .gambas executables (and yes, it goes through an fcgi wrapper). What I cannot run is a specific project of mine and that problem seems to be independent of gb.web.form, as Benoit said, but purely a webserver configuration issue. It's been 2+ weeks already since I last fiddled around with it, but I remember noting that the problem was with CGI variables not being set correctly by my nginx configuration, so that in particular Request.Path and Application.Root came out mangled after the URL rewriting, giving all kinds of problems, as you can imagine. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Tue Mar 14 18:07:21 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 14 Mar 2017 13:07:21 -0400 Subject: [Gambas-user] automatic get key from resultsets in collection Message-ID: how can i made? i wish to handle the resultsets like php does: foreach ($resultobjusuario as $column => $row) $arraydata[$column] = $row; this made me a map (like collections in gambas) where the index key its the column table name, and the value its the column currentl field value. any ideas?, please without made a class for the results! KISS rules Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Tue Mar 14 20:25:01 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 14 Mar 2017 20:25:01 +0100 Subject: [Gambas-user] automatic get key from resultsets in collection In-Reply-To: References: Message-ID: <20170314192501.GA549@...3600...> On Tue, 14 Mar 2017, PICCORO McKAY Lenz wrote: > how can i made? > > i wish to handle the resultsets like php does: > > foreach ($resultobjusuario as $column => $row) > $arraydata[$column] = $row; > > this made me a map (like collections in gambas) where the index key its the > column table name, and the value its the column currentl field value. > > any ideas?, please without made a class for the results! KISS rules > The Result object has a Fields attribute. You use it like this: '' Return the record ~hResult~ points to as a Collection. Keys are the column names. Private Sub ResultToCollection(hRes As Result) As Collection Dim cMap As New Collection Dim hField As ResultField For Each hField In hRes.Fields cMap[hField.Name] = hRes[hField.Name] Next Return cMap End But you have to be careful with what the database driver gives you as the column name. Testing this with an sqlite3 database, I got column names like "id, name" when I did a "SELECT *" but I got "table.id, table.name" when I did an explicit "SELECT id,name". So depending on the SELECT, it had the table name and a dot prepended. There seems to be a PRAGMA [1] to control this behaviour in sqlite3 but it's deprecated. Don't know about other DBMS. Regards, Tobi [1] https://sqlite.org/pragma.html#pragma_short_column_names -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Tue Mar 14 22:48:12 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 14 Mar 2017 17:48:12 -0400 Subject: [Gambas-user] automatic get key from resultsets in collection In-Reply-To: <20170314192501.GA549@...3600...> References: <20170314192501.GA549@...3600...> Message-ID: 2017-03-14 15:25 GMT-04:00 Tobias Boege : > column name. Testing this with an sqlite3 database, I got column names like > "id, name" when I did a "SELECT *" but I got "table.id, table.name" when I > i confirmed.. so i made a little modification: cMap[hField.Name] = hRes[ Replace( hField.Name, Tablename & ".", "") ] with this wil be usefully a way to got the current table without already know the query table... but in any case that's work! did an explicit "SELECT id,name". So depending on the SELECT, it had the > table name and a dot prepended. There seems to be a PRAGMA [1] to control > this behaviour in sqlite3 but it's deprecated. Don't know about other DBMS. > this also happened in any DBMS this behavior are correct and good, its usefully for table references and joins in internals > > Regards, > Tobi > Many many thanks Tobias From adrien.prokopowicz at ...626... Wed Mar 15 08:18:19 2017 From: adrien.prokopowicz at ...626... (Adrien Prokopowicz) Date: Wed, 15 Mar 2017 08:18:19 +0100 Subject: [Gambas-user] sourceforge , git and gitlab, time to switch to gitlab In-Reply-To: <5f42a611-e37e-f6f6-9113-24e5381e044d@...1...> References: <5f42a611-e37e-f6f6-9113-24e5381e044d@...1...> Message-ID: Le Mon, 13 Mar 2017 15:22:48 +0100, Beno?t Minisini a ?crit: > Le 13/03/2017 ? 15:16, PICCORO McKAY Lenz a ?crit : >> i'm back for this land and in my firts 2017 mail to this i see some >> notes >> about sourgeforce >> >> 2017-02-25 20:37 GMT-04:00 Jesus Guardon : >> >>> El 25/2/17 a las 20:17, Beno?t Minisini escribi?: >>>> Moreover, the Sourceforge svn commit mails are still broken, they >>>> apparently haven't fixed them for weeks. Sourceforge is more and more >>>> a >>>> problem! >>> Perhaps it's time to switch to GitHub... ;-) >>> >>> >> i best for gambas prefer gitlab due gitlab are more GPL rather github, >> the >> github interface are copyright and gitlab are 100% GPL and the >> enterprice >> services only add some services over the community.. >> >> so when we use the gitlab ui service we follow gpl guidelines, also >> helps a >> great project that share their ui code, either github not! >> >> * and a important difference, github projects are a sub.item of github >> repos.. that are confuse! >> * in gitlab, the repository its a subitem of a project, so the >> organization >> are more proper! >> >> also gitlab offers mirror git autocommit to other repositories so we can >> sync the older sourceforge using svn hook and mirror git, gitlab does >> not >> offer automatic mirror commits, only using git remote configuration >> inside >> repository. >> >> these 3 main reason means that gitlab are better.. and the right choice >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com > > Sebastian Kuelez prefers github: maybe he can give his arguments on the > mailing-list? > > Anyway, whatever repository is chosen, the only problem I have is how to > import the svn commit history with the user that did the commit, as > these users won't exist in the new git repository. > Git doesn't actually manage users itself : for each commit, it only records a full name and an email, both of which are purely indicative. Therefore, it is not a problem at all that non-existent authors are mentioned in commits (as they don't actually exist anywhere anyway). It will only prevent the front-end (GitHub, GitLab, etc.) to display the user icons, and it may mess up the stats a bit. But all of the history (commits and branches) is good (I just tested it on a GitHub private repository). When using git-svn[0] to import the SVN repository, you can also give an authors file, which binds the SVN usernames to full names and emails, hence fixing this problem, making everything nice and clean. :) [0] https://git-scm.com/docs/git-svn -- Adrien Prokopowicz From mckaygerhard at ...626... Wed Mar 15 17:40:58 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 12:40:58 -0400 Subject: [Gambas-user] sourceforge , git and gitlab, time to switch to gitlab In-Reply-To: References: <5f42a611-e37e-f6f6-9113-24e5381e044d@...1...> Message-ID: 2017-03-15 3:18 GMT-04:00 Adrien Prokopowicz : > Git doesn't actually manage users itself : for each commit, it only records > a full name and an email, both of which are purely indicative. > that's right, so better right? > Therefore, it is not a problem at all that non-existent authors are > mentioned > in commits (as they don't actually exist anywhere anyway). > that's correct so migrate will be more easy rather than imaginate, we only ned its to map users, or developers must preserve the users login.. > When using git-svn[0] to import the SVN repository, you can also give an > authors file, which binds the SVN usernames to full names and emails, > hence fixing this problem, making everything nice and clean. :) > thst's was i cited in the previous two eamils.. THE REAL PROBLEM ITS THE ISSUE HISTORY, here there's not map tools.. BUT taking in consideration that bugtraker now are independient (gambas made technology) we nver hasn a bug repository history map.. so inconclusion migrate the gambas repository to git no has any real problem right now! as said in firts mail of this threat, the only choose its where? in gitlab, *due provide more eye-friendly tools and its pure and complety GPL-friend.!* > > [0] https://git-scm.com/docs/git-svn > > -- > Adrien Prokopowicz > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Wed Mar 15 19:10:06 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 14:10:06 -0400 Subject: [Gambas-user] configure and use gambas web programs In-Reply-To: References: <171d97ff-5adf-7d8d-96be-e5fa7ecd026a@...1...> Message-ID: hi adrian, i can see based on the "extract" that the link in connection users in gqambas forge are a rewrite rule? Pas de compte ? Incription but if are a rewrite, what parameters i must parse to the cgi to activate? and the workflow its quite close to your's have in mind in that moment, very hard to follow by me.. without a very great explications 2017-03-13 17:23 GMT-04:00 Adrien Prokopowicz : > #forge > RewriteRule ^forge\.html$ main.gambas.cgi?section=forge [QSA] > RewriteRule ^mail\.html$ main.gambas.cgi?section=forge&action=sendmail > [QSA] > RewriteRule ^categorie\-([0-9]+)(?:\-[a-z > 0-9\-]+)?(?:\-page\-([0-9]+))\.html$ main.gambas.cgi?action=categor > ie§ion=forge&id=$1&numpage=1 [QSA] > RewriteRule ^code\-([0-9]+)-ajoutercommen > taire(?:\-[a-z0-9\-]+)?\.html$ main.gambas.cgi?section=forge&action=addcomment&id=$1 > [QSA] > From matti.eber at ...3240... Wed Mar 15 19:04:15 2017 From: matti.eber at ...3240... (Matti) Date: Wed, 15 Mar 2017 19:04:15 +0100 Subject: [Gambas-user] To the Wishlist: ListView.Sorted Message-ID: <0a780e32-6d59-82ef-3180-42259e9847a5@...3240...> I have a ListView here that I want to be sorted either ascending or descending. Now, the property 'Sorted' is a boolean that allows only 'no' or 'yes (ascending)'. To sort the ListView in descending order, I have to read the contents, put everything into an 2- or 3-dimensional array, sort this by reducing everything to a 1-dimensional array, read keys and texts and pictures out again and finally put every piece again into the ListView. Really annoying. Wouldn't it be nice to let Gambas make the work? Means: if the property 'Sorted' could have the values 'no', 'ascending' and 'descending', it would be great! Matti From mckaygerhard at ...626... Wed Mar 15 19:41:08 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 14:41:08 -0400 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation Message-ID: all the mail list responces and documentation said that a web gambas app must produce a exec cgi and then put in the server but ide when run does not call a producible exec .. runs and embebed http that seems are the program itself... due i only see "localhost:8080" without a root cgi scrip name to call... so debug a program gambas web using the ide its a bit frustrting process respect a application desktop program.. need a great knowlegd of web server and cgi.. we need a good documentation, tutorials or a great framework like codeigniter where i can view everithing when the request and responses are passed on server HOW CAN I SETUP THE IDE TO RUN THE# PRODUCED EXECUTABLE AND CAN DEBUG BETTER? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From gambas at ...1... Wed Mar 15 19:49:30 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 15 Mar 2017 19:49:30 +0100 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation In-Reply-To: References: Message-ID: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> Le 15/03/2017 ? 19:41, PICCORO McKAY Lenz a ?crit : > all the mail list responces and documentation said that a web gambas app > must produce a exec cgi and then put in the server > > but ide when run does not call a producible exec .. runs and embebed http > that seems are the program itself... due i only see "localhost:8080" > without a root cgi scrip name to call... > And what's the problem with that? > > so debug a program gambas web using the ide its a bit frustrting process > respect a application desktop program.. The embedded HTTP server used when running the CGI script from the IDE serializes all the requests, so that you can put a breakpoint in your code. It does not work 100% of the time, so you have to debug your program the old way, by writing messages into a log file. > > need a great knowlegd of web server and cgi.. > > we need a good documentation, tutorials or a great framework like > codeigniter where i can view everithing when the request and responses are > passed on server What do you need exactly? Please elaborate... -- Beno?t Minisini From mckaygerhard at ...626... Wed Mar 15 20:04:33 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 15:04:33 -0400 Subject: [Gambas-user] gambas complete tools!!! gambas term form, where? Message-ID: just searching for more cgi info i got with this: https://sourceforge.net/p/gambas/mailman/message/35612237/ when will be available? i noted gambas provide such great interfaces but we need more easy way of disemination of the info.. the mail list currently its not user-friendly for new zealots, Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Wed Mar 15 20:13:13 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 15:13:13 -0400 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation In-Reply-To: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> References: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> Message-ID: 2017-03-15 14:49 GMT-04:00 Beno?t Minisini : > And what's the problem with that? > due debug with a old way its quite complicated today! need a lot of knoledge that many users not have (and today seems not need) The embedded HTTP server used when running the CGI script from the IDE > serializes all the requests, so that you can put a breakpoint in your code. > > It does not work 100% of the time, so you have to debug your program the > old way, by writing messages into a log file. > ARGGG.... > > we need a good documentation, tutorials or a great framework like > > codeigniter where i can view everithing when the request and responses > are > > passed on server > What do you need exactly? Please elaborate... > Well benoit u already made a great job, and made more its little abuse.. BUT THIS WILL BE NECESARY: http://picpaste.com/codeigniter-forensics.png From gambas at ...1... Wed Mar 15 20:38:24 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Wed, 15 Mar 2017 20:38:24 +0100 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation In-Reply-To: References: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> Message-ID: <1644e49b-84bf-f3fe-ab93-5351479639a8@...1...> Le 15/03/2017 ? 20:13, PICCORO McKAY Lenz a ?crit : > > BUT THIS WILL BE NECESARY: http://picpaste.com/codeigniter-forensics.png No idea what that tiny screenshot with russian inside is supposed to do. -- Beno?t Minisini From mckaygerhard at ...626... Wed Mar 15 20:47:41 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 15:47:41 -0400 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation In-Reply-To: <1644e49b-84bf-f3fe-ab93-5351479639a8@...1...> References: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> <1644e49b-84bf-f3fe-ab93-5351479639a8@...1...> Message-ID: the profiler addon in screeshot show a tool that gets all the vars passed to respond, the vars passed to request, the complete POST data, the complete GET data , if any the complete URI on a web aplication.. on gambas, THIS ARE IMPORTANT: search and debug that things are very hard, downgrading very the time develop of a web application... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-15 15:38 GMT-04:00 Beno?t Minisini : > Le 15/03/2017 ? 20:13, PICCORO McKAY Lenz a ?crit : > > > > BUT THIS WILL BE NECESARY: http://picpaste.com/codeigniter-forensics.png > > No idea what that tiny screenshot with russian inside is supposed to do. > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Wed Mar 15 21:31:00 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 15 Mar 2017 21:31:00 +0100 Subject: [Gambas-user] gambas complete tools!!! gambas term form, where? In-Reply-To: References: Message-ID: 2017-03-15 20:04 GMT+01:00 PICCORO McKAY Lenz : > just searching for more cgi info i got with this: > > https://sourceforge.net/p/gambas/mailman/message/35612237/oo > > when will be available? not soon as I miss time or now but when i get a little bit more time i will coninue the job. The problem is that I'm a firm manager and days have not more than 24 hours :-). So despite the fact i've many ideas the time always miss. You are free to take a look to the code and give some help too. > > i noted gambas provide such great interfaces but we need more easy way of > disemination of the info.. the mail list currently its not user-friendly > for new zealots, > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From mckaygerhard at ...626... Wed Mar 15 22:16:40 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 17:16:40 -0400 Subject: [Gambas-user] gambas complete tools!!! gambas term form, where? In-Reply-To: References: Message-ID: currently gambas provide a couple of programin fact to develop in desktop... now can develop in web, and soon also for non-graphical environments.. 2017-03-15 16:31 GMT-04:00 Fabien Bodard : > The problem is that I'm a firm manager and days have not more than 24 > hours :-). So despite the fact i've many ideas the time always miss. > we are all in same situation.. well at least me, i need a day with 32 hrs, and a body that dont need food! > You are free to take a look to the code and give some help too. > > > > i noted gambas provide such great interfaces but we need more easy way of > > disemination of the info.. the mail list currently its not user-friendly > > for new zealots, > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Wed Mar 15 22:32:08 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 17:32:08 -0400 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? Message-ID: how to know when a form runnig was invoked from another or not? i mean: case1: form1 have a click and inside invoke form2.show() case2: only form2 are lauch now in form2 i have a button with a event Click: if are invoked from form1 i need to show anagin form1 and close form2 if not, onlt close form2 and terminate program i' was lookin for ojbect management on gambas wiki and only found Me;; Last;; and Me.Parent but none of them helpme... Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From jguardon at ...3606... Wed Mar 15 23:22:11 2017 From: jguardon at ...3606... (Jesus Guardon) Date: Wed, 15 Mar 2017 23:22:11 +0100 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation In-Reply-To: References: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> <1644e49b-84bf-f3fe-ab93-5351479639a8@...1...> Message-ID: Hi, dudes El 15/3/17 a las 20:47, PICCORO McKAY Lenz escribi?: > the profiler addon in screeshot show a tool that gets all the vars passed > to respond, the vars passed to request, the complete POST data, the > complete GET data , if any the complete URI on a web aplication.. That tool already exists. It is inside your own browser!! I you use Firefox or a webkit based browser as Chromium, you have lots of tools inside the "Developer tools" menu that helps to debug your web project whatever server language is it programmed in. Search the web for tutorials on how to get the best of your browser. Regards Jesus > > on gambas, THIS ARE IMPORTANT: search and debug that things are very hard, > downgrading very the time develop of a web application... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-15 15:38 GMT-04:00 Beno?t Minisini : > >> Le 15/03/2017 ? 20:13, PICCORO McKAY Lenz a ?crit : >>> BUT THIS WILL BE NECESARY: http://picpaste.com/codeigniter-forensics.png >> No idea what that tiny screenshot with russian inside is supposed to do. >> >> -- >> Beno?t Minisini From mckaygerhard at ...626... Thu Mar 16 00:03:54 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 15 Mar 2017 19:03:54 -0400 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation In-Reply-To: References: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> <1644e49b-84bf-f3fe-ab93-5351479639a8@...1...> Message-ID: 2017-03-15 18:22 GMT-04:00 Jesus Guardon : > That tool already exists. It is inside your own browser!! I you use > Firefox or a webkit based browser as Chromium, you have lots of tools > inside the "Developer tools" menu that helps to debug your web project > whatever server language is it programmed in. > thanks for that, but this only show the communication between client and server, some specific vars declared inside my project of course never will get show it! @jguardon its obviously u dont see it the ci-profiler... the web-developer tools of the chrome/webkit browsers are usefully for most client side and response related data, and eye-candy purposes.. some other aspect specific of the own application like filters does not show obviously.. LIKE WICHT QUERYS WAS MADE IN SERVER! that its never show in the webkit developer tool... and as i said, that required novice users read lot of documentation and in ci, this are not necesary for novices.. > > Search the web for tutorials on how to get the best of your browser. > > Regards > > Jesus > > > > > > on gambas, THIS ARE IMPORTANT: search and debug that things are very > hard, > > downgrading very the time develop of a web application... > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-03-15 15:38 GMT-04:00 Beno?t Minisini >: > > > >> Le 15/03/2017 ? 20:13, PICCORO McKAY Lenz a ?crit : > >>> BUT THIS WILL BE NECESARY: http://picpaste.com/ > codeigniter-forensics.png > >> No idea what that tiny screenshot with russian inside is supposed to do. > >> > >> -- > >> Beno?t Minisini > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From jguardon at ...3606... Thu Mar 16 00:46:23 2017 From: jguardon at ...3606... (Jesus Guardon) Date: Thu, 16 Mar 2017 00:46:23 +0100 Subject: [Gambas-user] gambas web, when run ide get confusing respect documentation In-Reply-To: References: <0fcde4aa-977c-13dc-7602-4f470ecce798@...1...> <1644e49b-84bf-f3fe-ab93-5351479639a8@...1...> Message-ID: El 16/3/17 a las 0:03, PICCORO McKAY Lenz escribi?: > 2017-03-15 18:22 GMT-04:00 Jesus Guardon : > >> That tool already exists. It is inside your own browser!! I you use >> Firefox or a webkit based browser as Chromium, you have lots of tools >> inside the "Developer tools" menu that helps to debug your web project >> whatever server language is it programmed in. >> > thanks for that, but this only show the communication between client and > server, some specific vars declared inside my project of course never will > get show it! That's for what it is intended, right? Well, then let's put some breakpoints in your code and you'll see those values, or do it the old way, just print it. > > @jguardon its obviously u dont see it the ci-profiler... I'm not very interested in php frameworks. They add unnecessary "features" only to bloat your application and reduces the overall performance. > > the web-developer tools of the chrome/webkit browsers are usefully for most > client side and response related data, and eye-candy purposes.. Eye-candy? Well, I like to see data going in and out of my browser, supposedly the same data your $_POST variables hold inside. > > some other aspect specific of the own application like filters does not > show obviously.. > > LIKE WICHT QUERYS WAS MADE IN SERVER! that its never show in the webkit > developer tool... > > and as i said, that required novice users read lot of documentation and in > ci, this are not necesary for novices.. Well, it is not strictly necessary to agree on this. Cheers! Jesus Guardon From adamnt42 at ...626... Thu Mar 16 04:32:16 2017 From: adamnt42 at ...626... (adamnt42 at ...626...) Date: Thu, 16 Mar 2017 14:02:16 +1030 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: Message-ID: <20170316140216.14fe93f4223405ad69b1917d@...626...> On Wed, 15 Mar 2017 17:32:08 -0400 PICCORO McKAY Lenz wrote: > how to know when a form runnig was invoked from another or not? > > i mean: > > case1: > > form1 have a click and inside invoke form2.show() > > case2: > > only form2 are lauch > > now in form2 i have a button with a event Click: > > if are invoked from form1 i need to show anagin form1 and close form2 > if not, onlt close form2 and terminate program > > i' was lookin for ojbect management on gambas wiki and only found Me;; > Last;; and Me.Parent but none of them helpme... > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user Surely this is as simple as using Run() instead of show in the "parent" form? Set a flag in the Run method to indicate that the "child" was invoked from the "parent" and react accordingly. e.g. CHILD FORM Public Sub Run() $bIamBambino=true Me.show() ' or ShowModal or whatever... End Public Form_Close() If $bIamBambino then ' do whatever Else ' close the application EndIF PARENT FORM Public Sub SomeButton_Click() Dim fBambono as New FWhatever fBambino.Run() End ???? bb -- B Bruen From shordi at ...626... Thu Mar 16 08:55:15 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 16 Mar 2017 08:55:15 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height Message-ID: Hi I've upload to Gambas Farm a new control that I called hGrid (the "h" of "Height" and yes, I know that h usually means "handle" but I'm lack of imagination, I'm afraid) Its a control that inherits of GridView with a new boolean property "wordWrap". If it is setted to True, the wordWrap property of cells its set to true too and the height of the rows is fitted to show all the cell contents. I hope it'll be usefull for someone. ? Best Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: hGrid.png Type: image/png Size: 41698 bytes Desc: not available URL: From bagonergi at ...626... Thu Mar 16 11:56:24 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 16 Mar 2017 11:56:24 +0100 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: <20170316140216.14fe93f4223405ad69b1917d@...626...> References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: And do such a thing? Regards Gianluigi 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : > On Wed, 15 Mar 2017 17:32:08 -0400 > PICCORO McKAY Lenz wrote: > > > how to know when a form runnig was invoked from another or not? > > > > i mean: > > > > case1: > > > > form1 have a click and inside invoke form2.show() > > > > case2: > > > > only form2 are lauch > > > > now in form2 i have a button with a event Click: > > > > if are invoked from form1 i need to show anagin form1 and close form2 > > if not, onlt close form2 and terminate program > > > > i' was lookin for ojbect management on gambas wiki and only found Me;; > > Last;; and Me.Parent but none of them helpme... > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > Surely this is as simple as using Run() instead of show in the "parent" > form? Set a flag in the Run method to indicate that the "child" was invoked > from the "parent" and react accordingly. > e.g. > CHILD FORM > Public Sub Run() > $bIamBambino=true > Me.show() ' or ShowModal or whatever... > End > > Public Form_Close() > If $bIamBambino then > ' do whatever > Else > ' close the application > EndIF > > PARENT FORM > Public Sub SomeButton_Click() > Dim fBambono as New FWhatever > fBambino.Run() > End > > ???? > > bb > > -- > B Bruen > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: FatherForm-0.0.1.tar.gz Type: application/x-gzip Size: 11546 bytes Desc: not available URL: From rwe-sse at ...3629... Thu Mar 16 12:15:22 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Thu, 16 Mar 2017 12:15:22 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: References: Message-ID: <58CA73CA.30600@...3629...> Am 16.03.2017 08:55, schrieb Jorge Carri?n: > Hi > I've upload to Gambas Farm a new control that I called hGrid (the "h" of > "Height" and yes, I know that h usually means "handle" but I'm lack of > imagination, I'm afraid) Why not calling it "wwGridView" or "WWgridview" or "GridVieWW"? > > Its a control that inherits of GridView with a new boolean property > "wordWrap". If it is setted to True, the wordWrap property of cells its set > to true too and the height of the rows is fitted to show all the cell > contents. > > I hope it'll be usefull for someone. Oh yes! Great thing! I would love it, and I have instantly ideas where to use it. Regards Rolf From bagonergi at ...626... Thu Mar 16 12:17:50 2017 From: bagonergi at ...626... (Gianluigi) Date: Thu, 16 Mar 2017 12:17:50 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: References: Message-ID: Very well, thank you Gianluigi 2017-03-16 8:55 GMT+01:00 Jorge Carri?n : > Hi > I've upload to Gambas Farm a new control that I called hGrid (the "h" of > "Height" and yes, I know that h usually means "handle" but I'm lack of > imagination, I'm afraid) > > Its a control that inherits of GridView with a new boolean property > "wordWrap". If it is setted to True, the wordWrap property of cells its set > to true too and the height of the rows is fitted to show all the cell > contents. > > I hope it'll be usefull for someone. > > > ? > > Best Regards > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From michael at ...3648... Thu Mar 16 12:10:17 2017 From: michael at ...3648... (Michael Layland) Date: Thu, 16 Mar 2017 07:10:17 -0400 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: References: Message-ID: <9bd8769d-71b3-8102-f5b3-8b65d21fc7ff@...3648...> Thank you! This was something on my 'Wish List' :-) Michael On 03/16/2017 03:55 AM, Jorge Carri?n wrote: > Hi > I've upload to Gambas Farm a new control that I called hGrid (the "h" of > "Height" and yes, I know that h usually means "handle" but I'm lack of > imagination, I'm afraid) > > Its a control that inherits of GridView with a new boolean property > "wordWrap". If it is setted to True, the wordWrap property of cells its set > to true too and the height of the rows is fitted to show all the cell > contents. > > I hope it'll be usefull for someone. > > > ? > > Best Regards > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From nigelverity at ...67... Thu Mar 16 12:50:44 2017 From: nigelverity at ...67... (Nigel Verity) Date: Thu, 16 Mar 2017 11:50:44 +0000 Subject: [Gambas-user] Control Modification Suggestion In-Reply-To: References: Message-ID: Hi In my days as a VB developer I found a feature of the combo control very useful, which perhaps could be considered for Gambas. Each item in the list has a display value (text), and an integer index to describe its position in the list. This is the same as the Gambas combo control. However the VB control also has a "key" property which was very useful in applications where the display value had to be translated to an integer ID to be saved to a database. In my Gambas applications I achieve the same result by declaring a dynamic integer array and updating it in parallel with the combo control. It would save a fair bit of coding to simply have a combo.current.key property. Sadly I think the standard of my coding is now too rusty to do an efficient job of creating the control myself. Nige From mckaygerhard at ...626... Thu Mar 16 12:57:05 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 16 Mar 2017 07:57:05 -0400 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: <58CA73CA.30600@...3629...> References: <58CA73CA.30600@...3629...> Message-ID: very usefully 2017-03-16 7:15 GMT-04:00 Rolf-Werner Eilert : > > Why not calling it "wwGridView" or "WWgridview" or "GridVieWW"? > umm WW as mean WorldWar? jajajaja From mckaygerhard at ...626... Thu Mar 16 12:59:15 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 16 Mar 2017 07:59:15 -0400 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: like it more the "FatherForm" way, many thanks! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-16 6:56 GMT-04:00 Gianluigi : > And do such a thing? > > Regards > Gianluigi > > 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : > > > On Wed, 15 Mar 2017 17:32:08 -0400 > > PICCORO McKAY Lenz wrote: > > > > > how to know when a form runnig was invoked from another or not? > > > > > > i mean: > > > > > > case1: > > > > > > form1 have a click and inside invoke form2.show() > > > > > > case2: > > > > > > only form2 are lauch > > > > > > now in form2 i have a button with a event Click: > > > > > > if are invoked from form1 i need to show anagin form1 and close form2 > > > if not, onlt close form2 and terminate program > > > > > > i' was lookin for ojbect management on gambas wiki and only found Me;; > > > Last;; and Me.Parent but none of them helpme... > > > > > > Lenz McKAY Gerardo (PICCORO) > > > http://qgqlochekone.blogspot.com > > > ------------------------------------------------------------ > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > Surely this is as simple as using Run() instead of show in the "parent" > > form? Set a flag in the Run method to indicate that the "child" was > invoked > > from the "parent" and react accordingly. > > e.g. > > CHILD FORM > > Public Sub Run() > > $bIamBambino=true > > Me.show() ' or ShowModal or whatever... > > End > > > > Public Form_Close() > > If $bIamBambino then > > ' do whatever > > Else > > ' close the application > > EndIF > > > > PARENT FORM > > Public Sub SomeButton_Click() > > Dim fBambono as New FWhatever > > fBambino.Run() > > End > > > > ???? > > > > bb > > > > -- > > B Bruen > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From rwe-sse at ...3629... Thu Mar 16 13:01:08 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Thu, 16 Mar 2017 13:01:08 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: References: Message-ID: <58CA7E84.6060605@...3629...> Am 16.03.2017 08:55, schrieb Jorge Carri?n: > Hi > I've upload to Gambas Farm a new control that I called hGrid (the "h" of > "Height" and yes, I know that h usually means "handle" but I'm lack of > imagination, I'm afraid) > > Its a control that inherits of GridView with a new boolean property > "wordWrap". If it is setted to True, the wordWrap property of cells its set > to true too and the height of the rows is fitted to show all the cell > contents. > > I hope it'll be usefull for someone. > Ok, tested it :) Runs very well, BUT: When dragging one of the Columns to the left, the column doesn't stay under the mouse pointer. Somehow, the position is counted wrong, and after dragging forth and back a bit, the cursor is here and the column is there... Hope you can reproduce and fix this ;) Regards Rolf From rwe-sse at ...3629... Thu Mar 16 13:02:25 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Thu, 16 Mar 2017 13:02:25 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: References: <58CA73CA.30600@...3629...> Message-ID: <58CA7ED1.5040402@...3629...> Am 16.03.2017 12:57, schrieb PICCORO McKAY Lenz: > very usefully > 2017-03-16 7:15 GMT-04:00 Rolf-Werner Eilert : > >> >> Why not calling it "wwGridView" or "WWgridview" or "GridVieWW"? >> > > umm WW as mean WorldWar? jajajaja WorldWrap :))) Rolf From shordi at ...626... Thu Mar 16 17:39:48 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 16 Mar 2017 17:39:48 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: <58CA73CA.30600@...3629...> References: <58CA73CA.30600@...3629...> Message-ID: mmm... maybe wordWrapGrid? A little long, but there is not confusing about it is. I think I'll change it in Fam. Thank you Rolf. Regards 2017-03-16 12:15 GMT+01:00 Rolf-Werner Eilert : > Am 16.03.2017 08:55, schrieb Jorge Carri?n: > > Hi > > I've upload to Gambas Farm a new control that I called hGrid (the "h" of > > "Height" and yes, I know that h usually means "handle" but I'm lack of > > imagination, I'm afraid) > > Why not calling it "wwGridView" or "WWgridview" or "GridVieWW"? > > > > > Its a control that inherits of GridView with a new boolean property > > "wordWrap". If it is setted to True, the wordWrap property of cells its > set > > to true too and the height of the rows is fitted to show all the cell > > contents. > > > > I hope it'll be usefull for someone. > > Oh yes! Great thing! I would love it, and I have instantly ideas where > to use it. > > Regards > Rolf > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Thu Mar 16 19:05:01 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Thu, 16 Mar 2017 19:05:01 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: <58CA7E84.6060605@...3629...> References: <58CA7E84.6060605@...3629...> Message-ID: It isn't a bug is the expected behaviour for the example. I set the .expand property of columns to true, so they change it's width at Form's resize If you doesn' like that behaviour, comment this lines in Test.Class For n = 0 To wordWrapGrid1.Columns.Max wordWrapGrid1.Columns[n].Expand = True Next Then the width of columns is "static" and remains under the mouse pointer. Best Regards. 2017-03-16 13:01 GMT+01:00 Rolf-Werner Eilert : > Am 16.03.2017 08:55, schrieb Jorge Carri?n: > > Hi > > I've upload to Gambas Farm a new control that I called hGrid (the "h" of > > "Height" and yes, I know that h usually means "handle" but I'm lack of > > imagination, I'm afraid) > > > > Its a control that inherits of GridView with a new boolean property > > "wordWrap". If it is setted to True, the wordWrap property of cells its > set > > to true too and the height of the rows is fitted to show all the cell > > contents. > > > > I hope it'll be usefull for someone. > > > > > Ok, tested it :) Runs very well, BUT: > > When dragging one of the Columns to the left, the column doesn't stay > under the mouse pointer. Somehow, the position is counted wrong, and > after dragging forth and back a bit, the cursor is here and the column > is there... > > Hope you can reproduce and fix this ;) > > Regards > Rolf > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu Mar 16 23:34:35 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 16 Mar 2017 18:34:35 -0400 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: <58CA7ED1.5040402@...3629...> References: <58CA73CA.30600@...3629...> <58CA7ED1.5040402@...3629...> Message-ID: 2017-03-16 8:02 GMT-04:00 Rolf-Werner Eilert : > Am 16.03.2017 12:57, schrieb PICCORO McKAY Lenz: >> umm WW as mean WorldWar? jajajaja > > WorldWrap :))) or WonderfullyWidecolumnGrid umm too large name... but sound awesome ^_^ > > Rolf > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From olivier.cruilles at ...614... Fri Mar 17 01:57:51 2017 From: olivier.cruilles at ...614... (linus) Date: Thu, 16 Mar 2017 20:57:51 -0400 Subject: [Gambas-user] Help about interfacing 'net-snmp' C library with Gambas3 Message-ID: <20170316205751.529720da@...3649...> Hello, I try to create a component in Gambas3 based on the 'net-snmp' C library. I already have a component to manage requests by snmp written in Gambas3 but using directly the various commands given by net-snmp like: - snmpget - snmpwalk - snmpbulk Now I try to use directly the 'net-snmp' C library to be faster in execution time and I'm not a C/C++ developer to write this component in C/C++. I have started to write a little project and it is joined into this email. My question is, as it's necessary to create and give to the 'net-snmp' C library a C structure (available inside the project as comments) to use it, could someone say to me if it's possible to use the 'PUBLIC STRUCT' to translate the 'snmp_session' C structure in Gambas3 and help me on this task please. Thank you in advance. Links: http://www.net-snmp.org/dev/agent/session__api_8h_source.html http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demoapp/snmpdemoapp.c -- Olivier Cruilles Olivier.cruilles at ...614... -------------- next part -------------- A non-text attachment was scrubbed... Name: gb.snmpclient_test-0.0.1.tar.gz Type: application/gzip Size: 5816 bytes Desc: not available URL: From rwe-sse at ...3629... Fri Mar 17 08:19:27 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Fri, 17 Mar 2017 08:19:27 +0100 Subject: [Gambas-user] New in Gambas Farm: A gridview with automatic row height In-Reply-To: References: <58CA7E84.6060605@...3629...> Message-ID: <58CB8DFF.10802@...3629...> Ah, I understand! It's like with Gambas: It's not a bug, it's a feature :) Thanks for the hint. When I apply it next time, I will try both versions. Rolf Am 16.03.2017 19:05, schrieb Jorge Carri?n: > It isn't a bug is the expected behaviour for the example. I set the .expand > property of columns to true, so they change it's width at Form's resize > If you doesn' like that behaviour, comment this lines in Test.Class > > For n = 0 To wordWrapGrid1.Columns.Max > wordWrapGrid1.Columns[n].Expand = True > Next > > Then the width of columns is "static" and remains under the mouse pointer. > > Best Regards. > > > 2017-03-16 13:01 GMT+01:00 Rolf-Werner Eilert : > >> Am 16.03.2017 08:55, schrieb Jorge Carri?n: >>> Hi >>> I've upload to Gambas Farm a new control that I called hGrid (the "h" of >>> "Height" and yes, I know that h usually means "handle" but I'm lack of >>> imagination, I'm afraid) >>> >>> Its a control that inherits of GridView with a new boolean property >>> "wordWrap". If it is setted to True, the wordWrap property of cells its >> set >>> to true too and the height of the rows is fitted to show all the cell >>> contents. >>> >>> I hope it'll be usefull for someone. >>> >> >> >> Ok, tested it :) Runs very well, BUT: >> >> When dragging one of the Columns to the left, the column doesn't stay >> under the mouse pointer. Somehow, the position is counted wrong, and >> after dragging forth and back a bit, the cursor is here and the column >> is there... >> >> Hope you can reproduce and fix this ;) >> >> Regards >> Rolf >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From herberthguzman at ...626... Fri Mar 17 19:28:24 2017 From: herberthguzman at ...626... (herberth guzman) Date: Fri, 17 Mar 2017 12:28:24 -0600 Subject: [Gambas-user] Show records on a WebTable Message-ID: Regards, I need help, something I am doing wrong. I need to display the records of a Table from a DB in a WebTable The following code does not work for me in a WebForm and WebTable Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) Dim i As Integer cx = M_DB.Connect() rs = cx.Exec("SELECT * FROM tbcategory") For i = 0 To rs.count - 1 Data.Text = rs!Name rs.MoveNext Next End But in a WebComboBox1 if it works the way I need it Public Sub WebButton8_Click() Dim i As Integer cx = M_DB.Connect() rs = cx.Exec("SELECT * FROM tbcategory") For i = 0 To rs.count - 1 WebComboBox1.Add(rs!Name) rs.MoveNext Next End Someone who can help me solve my problem please. Nothing works for me, the problem is only with WebTable. WebTable1.Refresh() WebTable1.Clear() WebTable1.Reset() Regards Herberth From taboege at ...626... Fri Mar 17 20:18:15 2017 From: taboege at ...626... (Tobias Boege) Date: Fri, 17 Mar 2017 20:18:15 +0100 Subject: [Gambas-user] Show records on a WebTable In-Reply-To: References: Message-ID: <20170317191815.GA551@...3600...> On Fri, 17 Mar 2017, herberth guzman wrote: > Regards, I need help, something I am doing wrong. > > I need to display the records of a Table from a DB in a WebTable > The following code does not work for me in a WebForm and WebTable > > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As > WebTableData) > > Dim i As Integer > cx = M_DB.Connect() > rs = cx.Exec("SELECT * FROM tbcategory") > > For i = 0 To rs.count - 1 > Data.Text = rs!Name > rs.MoveNext > Next > > End > > But in a WebComboBox1 if it works the way I need it > > > Public Sub WebButton8_Click() > > Dim i As Integer > cx = M_DB.Connect() > rs = cx.Exec("SELECT * FROM tbcategory") > > For i = 0 To rs.count - 1 > WebComboBox1.Add(rs!Name) > rs.MoveNext > Next > > End > The WebTable works differently from a WebComboBox. The difference is much like gb.gui.base's GridView vs. ComboBox -- but not quite. I think comparing gb.web.form's controls with the graphical components' helps to understand and memorise the "new" gb.web.form interface, so I'll talk first about GridView and ComboBox in the graphical components. If you just want an answer to your question, skip to the TL;DR. The ComboBox stores all its elements in its memory, thus you can use ComboBox.Add() to add /all/ its items beforehand and call it a day. The GridView allows this "store all" mode of operation, too, by using the array accessors GridView[Row, Column] to fill it. But, GridView also supports an "on-the-fly" mode, where it stores only the data that is currently displayed (I don't know if that is technically correct (it may not store anything but immediately forward your input to the display or something) but you can think about it this way). When the set of rows/columns to be displayed changes (e.g. the user scrolls in the GridView), it raises its Data event for each cell which is now to be displayed. The Data event handler receives Row and Column parameters to tell you which cell content it needs and you provide that data in the GridView.Data property. This on-the-fly mode takes a little to get accustomed to and may appear more difficult in the beginning. It has an advantage over the "store all" mode though, for *huge* tables, because the "on-the-fly" mode always stores a constant, and very tiny, amount of data. Especially if you want to display big databases, you want to avoid having /all/ the data in the database *and* your Gambas process (which might not even be possible, as the size of the DB might very well exceed your RAM). Now, this applies in almost the same way in gb.web.form, but the WebTable *only* supports the "on-the-fly" mode -- it doesn't have the array accessors of GridView. And instead of a WebTable.Data property to store the result of the Data event, you get a Data As WebTableData variable passed to the WebTable_Data event. | store all | on-the-fly ------------+-------------+-------------- ComboBox | y | n GridView | y | y (GridView.Data property) WebTable | n | y (Data event handler argument) TL;DR: So, to finally answer your question. What you did wrong was For i = 0 To rs.count - 1 Data.Text = rs!Name rs.MoveNext Next Here you iterate through all your result records and fill the Data variable with everything you encounter. You are supposed to only search the (Row, Column) cell in your result set and put this single data value into the Data object. I didn't test it, but the following is approximately how it goes: Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) Dim i As Integer Dim f As ResultField cx = M_DB.Connect() rs = cx.Exec("SELECT * FROM tbcategory") ' Go to the Row-th record in your result For i = 0 To Row - 1 rs.MoveNext Next ' I'll assume that the Column-th column is just the Column-th one ' in rs.Fields, i.e. you have no special ordering on the columns i = 0 For Each f In rs.Fields If i = Column Then Break Inc i Next Data.Text = rs[f.Name] End You will be better off not doing the "M_DB.Connect()" and "cx.Exec()" bits in every invocation of the Data event. Do it once at the beginning. How did you set WebTable1.Count without a Result in the first place? If you did that, a further improvement would be to convert the rs.Fields collection into an array beforehand, too, so that you can just index this array with the Column parameter you receive in the Data event to avoid the For Each loop I did above in order to find the Column-th field name. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From gambas at ...1... Sat Mar 18 00:25:59 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Sat, 18 Mar 2017 00:25:59 +0100 Subject: [Gambas-user] Show records on a WebTable In-Reply-To: <20170317191815.GA551@...3600...> References: <20170317191815.GA551@...3600...> Message-ID: Le 17/03/2017 ? 20:18, Tobias Boege a ?crit : > I didn't test it, but the following is approximately how it goes: > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) > Dim i As Integer > Dim f As ResultField > > cx = M_DB.Connect() > rs = cx.Exec("SELECT * FROM tbcategory") > > ' Go to the Row-th record in your result > For i = 0 To Row - 1 > rs.MoveNext > Next --> Please use rs.MoveTo(I) instead. :-) -- Beno?t Minisini From shordi at ...626... Sat Mar 18 11:40:32 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 18 Mar 2017 11:40:32 +0100 Subject: [Gambas-user] Actualization of wordWrapGrid on Gambas Farm Message-ID: Hi I've upload a actualized version of wordwrapgrid control to the farm. WordWrapGrid is a Gamba's Control that inherits of GridView and shows a grid that fit the row height to the text showed. The previous version has a big bug: If set the worwrap property of control to true only fit the height of the rows showed, the rest of lines are setted to blank. I've only tested it with a few rows, and didn't see that. Sorry. The new versi?n has a new property named "source". It must be a two dimensions Array or, directly a Result from a database. (This transform the control in a sql viewer!) Two samples are provided in farm, one from a Array ant one from a Result. Hope this will usefull. Regards From bugtracker at ...3416... Sat Mar 18 13:28:12 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 12:28:12 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1089: Spinbox and sliderbox do not show integer according to set System.Language in gb.qt5 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1089&from=L21haW4- Comment #1 by Beno?t MINISINI: Can you provide some screenshot? I have installed the ne_NP locales on Ubuntu, but I still have arabic digits with both gb.qt4 and gb.qt5. I.e. nothing changes... Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Sat Mar 18 13:43:32 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 12:43:32 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1090: Create color palette, with the colors of the current project In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1090&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Sat Mar 18 13:43:47 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 12:43:47 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1090: Create color palette, with the colors of the current project In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1090&from=L21haW4- Comment #1 by Beno?t MINISINI: Why not, but it cannot be done in realtime. From bugtracker at ...3416... Sat Mar 18 13:46:28 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 12:46:28 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1087: Problem with Executable In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1087&from=L21haW4- Comment #2 by Beno?t MINISINI: If not specified explicitly, the GUI component in used for your project is based on your current desktop. Otherwise, I don't see what you are talking about. Please provide your project, and your system information. Beno?t MINISINI changed the state of the bug to: NeedsInfo. From bugtracker at ...3416... Sat Mar 18 13:47:55 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 12:47:55 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1085: Saving time and work In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1085&from=L21haW4- Comment #1 by Beno?t MINISINI: It is useful only if your property is stored in a private variable, which is not always the case. So it cannot be the default. I will think about a solution... Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Sat Mar 18 13:50:45 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 12:50:45 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1071: Format error generates error (ctrl + may + F) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1071&from=L21haW4- Beno?t MINISINI changed the state of the bug to: Accepted. From bugtracker at ...3416... Sat Mar 18 14:14:03 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 13:14:03 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1089: Spinbox and sliderbox do not show integer according to set System.Language in gb.qt5 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1089&from=L21haW4- Comment #2 by Safiur RAHMAN: Hi Benoit To reproduce this problem fisrt go to Language Support in Ubuntu and change Regional format to Nepali. Log out and Log in. I have attached screenshot for language support. Then you can see different integer formats in gb.qt4 and gb.qt5 Safi From bugtracker at ...3416... Sat Mar 18 14:14:58 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 13:14:58 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1089: Spinbox and sliderbox do not show integer according to set System.Language in gb.qt5 In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1089&from=L21haW4- Safiur RAHMAN added an attachment: screenshots.tar.gz From bugtracker at ...3416... Sat Mar 18 15:50:29 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 14:50:29 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1071: Format error generates error (ctrl + may + F) In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1071&from=L21haW4- Comment #1 by Beno?t MINISINI: It should be fixed in revision #8113. Beno?t MINISINI changed the state of the bug to: Fixed. From bugtracker at ...3416... Sat Mar 18 18:09:50 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 17:09:50 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- hakan UNVER reported a new bug. Summary ------- MYSQL_OPT_RECONNECT option Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- when lost mysql server connection no have any timeout And not work any timers or etc, not respond.Because endless loop I think need update this option.. optional or break option or try time out limit. System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.4.0-62-generic Architecture=x86_64 Distribution=Linux Mint 18.1 Serena Desktop=CINNAMON Theme=Gtk Language=en_US.UTF-8 Memory=5764M [Libraries] Cairo=libcairo.so.2.11502.0 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.802.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 [Environment] CINNAMON_VERSION=3.2.6 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-B6EiNEkmBf,guid=78197f6f5f45ac633fdc7ead58cd61b3 DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=1721 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GTK_MODULES=gail:atk-bridge GTK_OVERLAY_SCROLLING=1 HOME= LANG=en_US.UTF-8 LC_ADDRESS=tr_TR.UTF-8 LC_IDENTIFICATION=tr_TR.UTF-8 LC_MEASUREMENT=tr_TR.UTF-8 LC_MONETARY=tr_TR.UTF-8 LC_NAME=tr_TR.UTF-8 LC_NUMERIC=tr_TR.UTF-8 LC_PAPER=tr_TR.UTF-8 LC_TELEPHONE=tr_TR.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=en_US.UTF-8 MDM_XSERVER_LOCATION=local PATH=/bin:/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT_ACCESSIBILITY=1 QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1 QT_QPA_PLATFORMTHEME=qgnomeplatform QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1411,unix/:/tmp/.ICE-unix/1411 SHELL=/bin/bash SSH_AGENT_PID=1480 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 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:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=5ab3c275b7304ed3b8aeef9ffcc37eb4-1489854899.169491-1087647094 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=8 From bugtracker at ...3416... Sat Mar 18 20:09:40 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 19:09:40 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- Comment #1 by PICCORO LENZ MCKAY: if this happen in mysql, maybe odbc and postgres must! taking in consideration that odbc interacts with many other, the recconect ption could relly in the odbc driver, but in postgres case must be check too! From d4t4full at ...626... Sat Mar 18 21:28:54 2017 From: d4t4full at ...626... (d4t4full at ...626...) Date: Sat, 18 Mar 2017 17:28:54 -0300 Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option In-Reply-To: <58cd8660.54a3370a.ee1e2.600eSMTPIN_ADDED_BROKEN@...2392...> References: <58cd8660.54a3370a.ee1e2.600eSMTPIN_ADDED_BROKEN@...2392...> Message-ID: <67dd7ba3-5e6b-4a74-b66b-92e74a963236@...3493...> (english below) ODBC en realidad no es en s? un driver, sino un administrador de drivers. Lo que hace en la pr?ctica es ofrecer a programas una interfase lo m?s unificada posible para que solamente cambiando el driver subyacente se pueda usar ese mismo programa con diversos motores de bases de datos. Con esto lo que quiero decir es que puede haber opciones de algunos motores que no existan en otros y por lo tanto pese a usar ODBC no se puedan hacer compatibles. ODBC is not a DBdriver per se, but a driver manager; what it does is offer programs an interface as uniform as possible so by only changing the underlying driver a program can be used against different RDBMs. What I mean with all this is that some options may exist in a particular RDBM that is not available in others and that this issue is not solved simply by using ODBC, yielding programs using those features incompatible with other RDBMs. Regards, zxMarce. On Mar 18, 2017, 16:09, at 16:09, bugtracker at ...3416... wrote: >http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- > >Comment #1 by PICCORO LENZ MCKAY: > >if this happen in mysql, maybe odbc and postgres must! taking in >consideration that odbc interacts with many other, the recconect ption >could relly in the odbc driver, but in postgres case must be check too! > > > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Gambas-user mailing list >Gambas-user at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/gambas-user From bugtracker at ...3416... Sat Mar 18 22:07:24 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sat, 18 Mar 2017 21:07:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- Comment #2 by PICCORO LENZ MCKAY: anwered to: 2017-03-18 16:28 GMT-04:00 : in mail list > yes, ODBC is not a DBdriver per se, but a driver manager; what it does is offer programs an interface as uniform as possible so by only changing the underlying driver a program can be used against different RDBMs. > What I mean with all this is that some options may exist in a particular RDBM that is not available in others and that this issue is not solved simply by using ODBC, yielding programs using those features incompatible with other RDBMs. yes, i write bad, i must said: "relly in the background DBMS".. and zxMarce. u must answer in the bugtraker, if the mail comes from the bugracker, the bugtraker will delivery to the mail list alter. From bugtracker at ...3416... Sun Mar 19 08:49:17 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Sun, 19 Mar 2017 07:49:17 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1091: MYSQL_OPT_RECONNECT option In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1091&from=L21haW4- Comment #3 by hakan UNVER: I think anyway update MYSQL_OPT_RECONNECT option. From mckaygerhard at ...626... Mon Mar 20 15:00:09 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 20 Mar 2017 10:00:09 -0400 Subject: [Gambas-user] collection of collection problem Message-ID: i try to put inside a collection another, and i only refers it selft: rset = $conexion.Exec("SELECT * FROM alm_despacho WHERE cod_despacho = '" & cod_despacho & "'") If rset.Available Then For Each rset columnas = New Collection(gb.IgnoreCase) columnas.Add(rset!cod_despacho), "cod_despacho") columnas.Add(rset!fecha, "fecha") cod_contenido = rset!cod_contenido rsetd = $conexion.Exec("SELECT * FROM alm_despacho_producto WHERE cod_contenido = '" & cod_contenido & "'") filasdet = New Collection(gb.IgnoreCase) For Each rsetd columnasdet = New Collection(gb.IgnoreCase) columnasdet.Add(rsetd!cod_producto, "cod_producto") columnasdet.Add(rsetd!can_producto, "can_producto") columnasdet.Add(rsetd!mon_precio, "mon_precio") filasdet.Add(columnas, rsetd!cod_contenido) ' el codigo de producto es el indice! ja soy el mejor Next columnas.Add(filasdet, "cod_contenido") filas.Add(columnas, rset!cod_despacho) Next return filas why the second collection object have the same content (and referst to same) firts collection object? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From scribe at ...3643... Tue Mar 21 11:16:56 2017 From: scribe at ...3643... (Riccardo) Date: Tue, 21 Mar 2017 03:16:56 -0700 (MST) Subject: [Gambas-user] Mouse move ... Message-ID: <1490091416637-58655.post@...3046...> Is there a way to attach (or modify) the mouse move event to an object such that it is activated without the left mouse button being pressed? I want to monitor the X,Y position of the mouse cursor at all times on the main form... cheers! -- View this message in context: http://gambas.8142.n7.nabble.com/Mouse-move-tp58655.html Sent from the gambas-user mailing list archive at Nabble.com. From matti.eber at ...3240... Tue Mar 21 13:35:43 2017 From: matti.eber at ...3240... (Matti) Date: Tue, 21 Mar 2017 13:35:43 +0100 Subject: [Gambas-user] Mouse move ... In-Reply-To: <1490091416637-58655.post@...3046...> References: <1490091416637-58655.post@...3046...> Message-ID: <76f0eb0d-6d8e-1c34-722c-73a5155440b0@...3240...> Set 'Tracking' = True. Then: Public Sub Form_MouseMove() Print Mouse.X, Mouse.Y End Am 21.03.2017 um 11:16 schrieb Riccardo: > Is there a way to attach (or modify) the mouse move event to an object such > that it is activated without the left mouse button being pressed? I want to > monitor the X,Y position of the mouse cursor at all times on the main > form... > > cheers! > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/Mouse-move-tp58655.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Tue Mar 21 13:36:18 2017 From: bagonergi at ...626... (Gianluigi) Date: Tue, 21 Mar 2017 13:36:18 +0100 Subject: [Gambas-user] Mouse move ... In-Reply-To: <1490091416637-58655.post@...3046...> References: <1490091416637-58655.post@...3046...> Message-ID: You have to change in True the Traking property. Regards Gianluigi 2017-03-21 11:16 GMT+01:00 Riccardo : > Is there a way to attach (or modify) the mouse move event to an object such > that it is activated without the left mouse button being pressed? I want to > monitor the X,Y position of the mouse cursor at all times on the main > form... > > cheers! > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Mouse-move-tp58655.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From charlie at ...2793... Tue Mar 21 14:33:46 2017 From: charlie at ...2793... (Charlie) Date: Tue, 21 Mar 2017 06:33:46 -0700 (MST) Subject: [Gambas-user] Mouse move ... In-Reply-To: <1490091416637-58655.post@...3046...> References: <1490091416637-58655.post@...3046...> Message-ID: <1490103226090-58658.post@...3046...> Riccardo wrote > Is there a way to attach (or modify) the mouse move event to an object > such that it is activated without the left mouse button being pressed? I interpret this to mean that an object (e.g. a panel) should know if the mouse has 'Entered' or 'Left' it. Have a look at the attached progran. MouseOver.tar ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/Mouse-move-tp58655p58658.html Sent from the gambas-user mailing list archive at Nabble.com. From charlie at ...2793... Tue Mar 21 16:24:26 2017 From: charlie at ...2793... (Charlie) Date: Tue, 21 Mar 2017 08:24:26 -0700 (MST) Subject: [Gambas-user] collection of collection problem In-Reply-To: References: Message-ID: <1490109866377-58659.post@...3046...> Can you simplify the code so we can run it or upload the program. ----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/collection-of-collection-problem-tp58654p58659.html Sent from the gambas-user mailing list archive at Nabble.com. From herberthguzman at ...626... Tue Mar 21 19:06:16 2017 From: herberthguzman at ...626... (herberth guzman) Date: Tue, 21 Mar 2017 12:06:16 -0600 Subject: [Gambas-user] Show records on a WebTable Message-ID: >Le 17/03/2017 ? 20:18, Tobias Boege a ?crit : > I didn't test it, but the following is approximately how it goes: > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) > Dim i As Integer > Dim f As ResultField > > cx = M_DB.Connect() > rs = cx.Exec("SELECT * FROM tbcategory") > > ' Go to the Row-th record in your result > For i = 0 To Row - 1 > rs.MoveNext > Next >--> Please use rs.MoveTo(I) instead. :-) >-- >Beno?t Minisini Tobias - Benoit thanks for your help, it has been useful. My webtable works fine. Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) Dim i As Integer Dim f As Resultfield cx = M_DB.Connect() rs = cx.Exec("SELECT Title FROM tbapps where tbapps.Title like '%'") For i = 0 To Row - 1 rs.MoveTo(i) Next If rs.Available Then i = rs.Fields.Count For Each f In rs.Fields If i = Column Then Break Inc i Next Data.Text = rs[f.Name] Endif End Herberth From taboege at ...626... Tue Mar 21 19:14:56 2017 From: taboege at ...626... (Tobias Boege) Date: Tue, 21 Mar 2017 19:14:56 +0100 Subject: [Gambas-user] Show records on a WebTable In-Reply-To: References: Message-ID: <20170321181456.GA554@...3600...> On Tue, 21 Mar 2017, herberth guzman wrote: > >Le 17/03/2017 ? 20:18, Tobias Boege a ?crit : > > I didn't test it, but the following is approximately how it goes: > > > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) > > Dim i As Integer > > Dim f As ResultField > > > > cx = M_DB.Connect() > > rs = cx.Exec("SELECT * FROM tbcategory") > > > > ' Go to the Row-th record in your result > > For i = 0 To Row - 1 > > rs.MoveNext > > Next > > >--> Please use rs.MoveTo(I) instead. :-) > > >-- > >Beno?t Minisini > > > Tobias - Benoit thanks for your help, it has been useful. > My webtable works fine. > > > Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As > WebTableData) > > Dim i As Integer > Dim f As Resultfield > > cx = M_DB.Connect() > rs = cx.Exec("SELECT Title FROM tbapps where tbapps.Title like '%'") > > For i = 0 To Row - 1 > rs.MoveTo(i) > Next > What Benoit meant was to replace the whole loop above by a single call to rs.MoveTo(Row) > If rs.Available Then > i = rs.Fields.Count > For Each f In rs.Fields > If i = Column Then Break > Inc i > Next > Data.Text = rs[f.Name] > Endif > > End > -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From scribe at ...3643... Tue Mar 21 21:46:35 2017 From: scribe at ...3643... (Riccardo) Date: Tue, 21 Mar 2017 13:46:35 -0700 (MST) Subject: [Gambas-user] Mouse move ... In-Reply-To: <76f0eb0d-6d8e-1c34-722c-73a5155440b0@...3240...> References: <1490091416637-58655.post@...3046...> <76f0eb0d-6d8e-1c34-722c-73a5155440b0@...3240...> Message-ID: <1490129195877-58662.post@...3046...> Thank you, Matti and Gianluigi, that worked. -- View this message in context: http://gambas.8142.n7.nabble.com/Mouse-move-tp58655p58662.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Tue Mar 21 23:06:54 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 21 Mar 2017 18:06:54 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: <1490109866377-58659.post@...3046...> References: <1490109866377-58659.post@...3046...> Message-ID: 2017-03-21 11:24 GMT-04:00 Charlie : > Can you simplify the code so we can run it or upload the program. lets get simple: i want a registri "order" that have many "products" so : object (1 element with many attrs) and one of those attrs, its the cod_contenido , of the products of the order attr:cod_contenido-> (object with many elements, and each element many atrrs) In java, theres DAO objects, but with collections, and in php more easy, only an array in array! i mean: |-----------------------------| | ORD101 | |-----------------------------| | cod_orde:101 | | des_order:description bla bl|----------------------------| | cod_contents:1011 | CON1011 | |-----------------------------|----------------------------| | cod_product:101, | | cod_order:101, | | can_product:2 | |----------------------------| | cod_product:102 | | cod_order:101 | | can_product:12 | |----------------------------| From gambas.fr at ...626... Wed Mar 22 09:13:00 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 Mar 2017 09:13:00 +0100 Subject: [Gambas-user] Show records on a WebTable In-Reply-To: <20170321181456.GA554@...3600...> References: <20170321181456.GA554@...3600...> Message-ID: Herberth : Private $rs as Result Private $Fields as New String[] 'or somewhere else Public sub _New() dim f as ResultField dim i as integer M_DB.Connect() 'DB is the last connected db $rs = DB.Exec("SELECT Title FROM tbapps where tbapps.Title like '%'") If rs.Available Then ' Setup Columns count TableView1.Columns.Count = rs.Fiels.Count 'Setup tableHeader For each f in rs.Field TableView1.Columns[i].Text = f.name inc i Next 'Launch table filling TableView1.Rows.Count = rs.Count EndIf end Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As WebTableData) $rs.MoveTo(Row) 'Use the Column Text to get the Field name Data.Text = $rs[Last.Columns[Column].Text] End From gambas.fr at ...626... Wed Mar 22 09:17:55 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Wed, 22 Mar 2017 09:17:55 +0100 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: Why did you want to use collections ?... as it slow down all the stuff ? can you be more precise in your need so i can help you 2017-03-21 23:06 GMT+01:00 PICCORO McKAY Lenz : > 2017-03-21 11:24 GMT-04:00 Charlie : >> Can you simplify the code so we can run it or upload the program. > > lets get simple: > > i want a registri "order" that have many "products" so : > > object (1 element with many attrs) > > and one of those attrs, its the cod_contenido , of the products of the order > > attr:cod_contenido-> (object with many elements, and each element many > atrrs) > > In java, theres DAO objects, but with collections, and in php more easy, > only an array in array! > > i mean: > > |-----------------------------| > | ORD101 | > |-----------------------------| > | cod_orde:101 | > | des_order:description bla bl|----------------------------| > | cod_contents:1011 | CON1011 | > |-----------------------------|----------------------------| > | cod_product:101, | > | cod_order:101, | > | can_product:2 | > |----------------------------| > | cod_product:102 | > | cod_order:101 | > | can_product:12 | > |----------------------------| > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From scribe at ...3643... Wed Mar 22 10:43:57 2017 From: scribe at ...3643... (Riccardo) Date: Wed, 22 Mar 2017 02:43:57 -0700 (MST) Subject: [Gambas-user] Automatically scroll to end of treeview? Message-ID: <1490175837876-58666.post@...3046...> How do I automatically scroll to the end of a TreeView when a new node is added? I've tried /trvLog.MoveLast/ but that doesn't work? Also, can I make the Drag.Move setting apply to a node (record) in a TreeView. That is, if I drag a record in a TreeView to another location within the same control, can I have the drag action automatically move the original record? Setting trvLog.Action = Drag.Move doesn't work... -- View this message in context: http://gambas.8142.n7.nabble.com/Automatically-scroll-to-end-of-treeview-tp58666.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Wed Mar 22 11:16:10 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 Mar 2017 11:16:10 +0100 Subject: [Gambas-user] Automatically scroll to end of treeview? In-Reply-To: <1490175837876-58666.post@...3046...> References: <1490175837876-58666.post@...3046...> Message-ID: <20170322101610.GA551@...3600...> On Wed, 22 Mar 2017, Riccardo wrote: > How do I automatically scroll to the end of a TreeView when a new node is > added? > > I've tried /trvLog.MoveLast/ but that doesn't work? > TreeView.MoveLast() only sets the internal cursor to the last element. The documentation is very unclear here. According to the source code (gb.gui.base), "last element" means "last child of the TreeView root". So this is not what you want. You want the lowest visible element. Also setting the internal cursor only will not affect the GUI (because it's called the *internal* cursor). Thus once you arrive at the lowest element, you have to call TreeView.Item.EnsureVisible(). I don't know of any better method than this loop to get you there: ' Take a shortcut to the last child of the root, which saves some ' MoveBelow() calls If hTreeView.MoveLast() Then Return ' your tree is empty Do ' Empty body! Everything is done in the Until condition Loop Until hTreeView.MoveBelow() ' move to lowest *visible* element hTreeView.MoveBack() hTreeView.Item.EnsureVisible() > Also, can I make the Drag.Move setting apply to a node (record) in a > TreeView. That is, if I drag a record in a TreeView to another location > within the same control, can I have the drag action automatically move the > original record? Setting trvLog.Action = Drag.Move doesn't work... > I can't help you here. TreeView apparently doesn't support Drag&Drop by itself, so setting any Drag properties won't accomplish anything, and I myself failed at least twice already to implement a TreeView with draggable entries (using Item.Reparent()). My code seems to work at the beginning but after enough drags, the TreeView control crashes reliably. I haven't gotten around to submit a bug report yet. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Wed Mar 22 11:26:13 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Wed, 22 Mar 2017 06:26:13 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: yeap.. maybe u said "oh, please crear a class map for your data", or whatever.. but when u work with a big organization and want to migrate linux.. have some "guindowsers" uses, and i must use a step by step and clear "similar" desing .. so in this way other also can follow the develop process.. for more furter info see Modeling Process and https://en.wikipedia.org/wiki/Business_process_modeling .. Java its a specially focused in that, and i must put all of similar for good transition.. the needs was as i explain.. as i drawing in the previous mail, i want to use something as Beans, but without making DAO objects.. o Hibernate-mapping similars.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-22 4:17 GMT-04:00 Fabien Bodard : > Why did you want to use collections ?... as it slow down all the stuff > ? can you be more precise in your need so i can help you > > 2017-03-21 23:06 GMT+01:00 PICCORO McKAY Lenz : > > 2017-03-21 11:24 GMT-04:00 Charlie : > >> Can you simplify the code so we can run it or upload the program. > > > > lets get simple: > > > > i want a registri "order" that have many "products" so : > > > > object (1 element with many attrs) > > > > and one of those attrs, its the cod_contenido , of the products of the > order > > > > attr:cod_contenido-> (object with many elements, and each element many > > atrrs) > > > > In java, theres DAO objects, but with collections, and in php more easy, > > only an array in array! > > > > i mean: > > > > |-----------------------------| > > | ORD101 | > > |-----------------------------| > > | cod_orde:101 | > > | des_order:description bla bl|----------------------------| > > | cod_contents:1011 | CON1011 | > > |-----------------------------|----------------------------| > > | cod_product:101, | > > | cod_order:101, | > > | can_product:2 | > > |----------------------------| > > | cod_product:102 | > > | cod_order:101 | > > | can_product:12 | > > |----------------------------| > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From scribe at ...3643... Wed Mar 22 11:27:26 2017 From: scribe at ...3643... (Riccardo) Date: Wed, 22 Mar 2017 03:27:26 -0700 (MST) Subject: [Gambas-user] Automatically scroll to end of treeview? In-Reply-To: <20170322101610.GA551@...3600...> References: <1490175837876-58666.post@...3046...> <20170322101610.GA551@...3600...> Message-ID: <1490178446805-58669.post@...3046...> Thank very much Tobias, for the valuable advice. Because I know what I'm adding it simply worked to apply your recommended approach immediately after adding the new node without the loop or the condition: trvLog.Add(trvLog.Count, logtext) trvLog.Item.EnsureVisible And also the caveat about the TreeView is timely...I'll find a different approach. cheers. -- View this message in context: http://gambas.8142.n7.nabble.com/Automatically-scroll-to-end-of-treeview-tp58666p58669.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Wed Mar 22 14:08:59 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 22 Mar 2017 14:08:59 +0100 Subject: [Gambas-user] Automatically scroll to end of treeview? In-Reply-To: <1490178446805-58669.post@...3046...> References: <1490175837876-58666.post@...3046...> <20170322101610.GA551@...3600...> <1490178446805-58669.post@...3046...> Message-ID: Maybe this topic could help [0] Regards Gianluigi [0] http://gambas.8142.n7.nabble.com/Accessing-the-Treeview-Collection-td20313.html#a20317 2017-03-22 11:27 GMT+01:00 Riccardo : > Thank very much Tobias, for the valuable advice. > > Because I know what I'm adding it simply worked to apply your recommended > approach immediately after adding the new node without the loop or the > condition: > > trvLog.Add(trvLog.Count, logtext) > trvLog.Item.EnsureVisible > > And also the caveat about the TreeView is timely...I'll find a different > approach. > > cheers. > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/Automatically-scroll-to-end-of-treeview-tp58666p58669.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Wed Mar 22 14:20:33 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 22 Mar 2017 14:20:33 +0100 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: I do not understand why you can not use arrays of arrays ( e.g. myCollection[][]) Regards Gianluigi 2017-03-22 11:26 GMT+01:00 PICCORO McKAY Lenz : > yeap.. maybe u said "oh, please crear a class map for your data", or > whatever.. > > but when u work with a big organization and want to migrate linux.. have > some "guindowsers" uses, and i must use a step by step and clear "similar" > desing .. so in this way other also can follow the develop process.. for > more furter info see Modeling Process and > https://en.wikipedia.org/wiki/Business_process_modeling .. Java its a > specially focused in that, and i must put all of similar for good > transition.. > > the needs was as i explain.. as i drawing in the previous mail, i want to > use something as Beans, but without making DAO objects.. o > Hibernate-mapping similars.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-22 4:17 GMT-04:00 Fabien Bodard : > > > Why did you want to use collections ?... as it slow down all the stuff > > ? can you be more precise in your need so i can help you > > > > 2017-03-21 23:06 GMT+01:00 PICCORO McKAY Lenz : > > > 2017-03-21 11:24 GMT-04:00 Charlie : > > >> Can you simplify the code so we can run it or upload the program. > > > > > > lets get simple: > > > > > > i want a registri "order" that have many "products" so : > > > > > > object (1 element with many attrs) > > > > > > and one of those attrs, its the cod_contenido , of the products of the > > order > > > > > > attr:cod_contenido-> (object with many elements, and each element many > > > atrrs) > > > > > > In java, theres DAO objects, but with collections, and in php more > easy, > > > only an array in array! > > > > > > i mean: > > > > > > |-----------------------------| > > > | ORD101 | > > > |-----------------------------| > > > | cod_orde:101 | > > > | des_order:description bla bl|----------------------------| > > > | cod_contents:1011 | CON1011 | > > > |-----------------------------|----------------------------| > > > | cod_product:101, | > > > | cod_order:101, | > > > | can_product:2 | > > > |----------------------------| > > > | cod_product:102 | > > > | cod_order:101 | > > > | can_product:12 | > > > |----------------------------| > > > ------------------------------------------------------------ > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > Fabien Bodard > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Wed Mar 22 14:30:24 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 Mar 2017 14:30:24 +0100 Subject: [Gambas-user] Automatically scroll to end of treeview? In-Reply-To: References: <1490175837876-58666.post@...3046...> <20170322101610.GA551@...3600...> <1490178446805-58669.post@...3046...> Message-ID: <20170322133024.GB551@...3600...> On Wed, 22 Mar 2017, Gianluigi wrote: > Maybe this topic could help [0] > > Regards > Gianluigi > > [0] > http://gambas.8142.n7.nabble.com/Accessing-the-Treeview-Collection-td20313.html#a20317 > This looks to me like they were trying to list all keys used by a TreeView. That task can be accomplished by your favourite flavour of tree traversal algorithm, in particular Depth-first search, which is easy to implement recursively, *without* a forest of GOTOs and labels. The current implementation of TreeView internally has a Collection of all the items, which could be used to enumerate all used keys -- but it is not exposed through the TreeView interface. So the only way I see to enumerate keys is to traverse the tree structure by using TreeView.Move*() methods. But even if you could enumerate all the keys in the TreeView, it wouldn't be relevant at all to scrolling the TreeView or Drag&Drop, wouldn't it? Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bagonergi at ...626... Wed Mar 22 15:23:34 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 22 Mar 2017 15:23:34 +0100 Subject: [Gambas-user] Automatically scroll to end of treeview? In-Reply-To: <20170322133024.GB551@...3600...> References: <1490175837876-58666.post@...3046...> <20170322101610.GA551@...3600...> <1490178446805-58669.post@...3046...> <20170322133024.GB551@...3600...> Message-ID: Hello Tobias, unfortunately I was not able to do better than Wally, I tried but I did not move from here :-( See attached I'm afraid did not understand the original question. Regards Gianluigi 2017-03-22 14:30 GMT+01:00 Tobias Boege : > On Wed, 22 Mar 2017, Gianluigi wrote: > > Maybe this topic could help [0] > > > > Regards > > Gianluigi > > > > [0] > > http://gambas.8142.n7.nabble.com/Accessing-the-Treeview- > Collection-td20313.html#a20317 > > > > This looks to me like they were trying to list all keys used by a TreeView. > That task can be accomplished by your favourite flavour of tree traversal > algorithm, in particular Depth-first search, which is easy to implement > recursively, *without* a forest of GOTOs and labels. > > The current implementation of TreeView internally has a Collection of all > the items, which could be used to enumerate all used keys -- but it is not > exposed through the TreeView interface. So the only way I see to enumerate > keys is to traverse the tree structure by using TreeView.Move*() methods. > > But even if you could enumerate all the keys in the TreeView, it wouldn't > be relevant at all to scrolling the TreeView or Drag&Drop, wouldn't it? > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -------------- next part -------------- A non-text attachment was scrubbed... Name: TestOnTreeView-0.0.1.tar.gz Type: application/x-gzip Size: 12342 bytes Desc: not available URL: From bill-lancaster at ...2231... Wed Mar 22 18:01:27 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 22 Mar 2017 10:01:27 -0700 (MST) Subject: [Gambas-user] EXEC progress Message-ID: <1490202087113-58674.post@...3046...> I have a series of EXEC command line jobs. The whole lot takes some time and it would be nice to have some indication of progress. Because there's a series of EXECs, I'm using the 'Wait' function. In this case it seems that 'Process_Read' doesn't report what's happening. Any advice would be welcome Gambas 3.9.2 Kubuntu 14.04 -- View this message in context: http://gambas.8142.n7.nabble.com/EXEC-progress-tp58674.html Sent from the gambas-user mailing list archive at Nabble.com. From matti.eber at ...3240... Wed Mar 22 19:19:39 2017 From: matti.eber at ...3240... (Matti) Date: Wed, 22 Mar 2017 19:19:39 +0100 Subject: [Gambas-user] EXEC progress In-Reply-To: <1490202087113-58674.post@...3046...> References: <1490202087113-58674.post@...3046...> Message-ID: <25b48c54-8f59-d41d-66cc-1dfd65b621c6@...3240...> I don't know exactly what you want. My idea would be to show a StatusBar saying which EXEC command is called. And a ProgressBar after each EXEC command with an estimated value of progress. Or am I completely wrong? Am 22.03.2017 um 18:01 schrieb bill-lancaster: > I have a series of EXEC command line jobs. The whole lot takes some time and > it would be nice to have some indication of progress. > Because there's a series of EXECs, I'm using the 'Wait' function. In this > case it seems that 'Process_Read' doesn't report what's happening. > Any advice would be welcome > > Gambas 3.9.2 > Kubuntu 14.04 > > > > -- > View this message in context: http://gambas.8142.n7.nabble.com/EXEC-progress-tp58674.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From taboege at ...626... Wed Mar 22 19:38:34 2017 From: taboege at ...626... (Tobias Boege) Date: Wed, 22 Mar 2017 19:38:34 +0100 Subject: [Gambas-user] Traversing a TreeView (was: Automatically scroll to end of treeview?) In-Reply-To: References: <1490175837876-58666.post@...3046...> <20170322101610.GA551@...3600...> <1490178446805-58669.post@...3046...> <20170322133024.GB551@...3600...> Message-ID: <20170322183834.GC551@...3600...> On Wed, 22 Mar 2017, Gianluigi wrote: > Hello Tobias, > unfortunately I was not able to do better than Wally, > I tried but I did not move from here :-( > See attached > I'm afraid did not understand the original question. > An implementation of what I was talking about is attached. Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk -------------- next part -------------- A non-text attachment was scrubbed... Name: TestOnTreeView-0.0.2.tar.gz Type: application/octet-stream Size: 12561 bytes Desc: not available URL: From jussi.lahtinen at ...626... Wed Mar 22 19:49:38 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Wed, 22 Mar 2017 20:49:38 +0200 Subject: [Gambas-user] EXEC progress In-Reply-To: <1490202087113-58674.post@...3046...> References: <1490202087113-58674.post@...3046...> Message-ID: Process_Read simply reads output of the executed program. Is something lost, which is expected to show up? Jussi On Wed, Mar 22, 2017 at 7:01 PM, bill-lancaster wrote: > I have a series of EXEC command line jobs. The whole lot takes some time > and > it would be nice to have some indication of progress. > Because there's a series of EXECs, I'm using the 'Wait' function. In this > case it seems that 'Process_Read' doesn't report what's happening. > Any advice would be welcome > > Gambas 3.9.2 > Kubuntu 14.04 > > > > -- > View this message in context: http://gambas.8142.n7.nabble. > com/EXEC-progress-tp58674.html > Sent from the gambas-user mailing list archive at Nabble.com. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Wed Mar 22 20:35:34 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Wed, 22 Mar 2017 19:35:34 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1092: Broken likns on FAQ page Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1092&from=L21haW4- St?phane AULERY reported a new bug. Summary ------- Broken likns on FAQ page Type : Bug Priority : Low Gambas version : Unknown Product : Unknown Description ----------- The links of all screenshots in FAQ page are broken. For example http://gambaswiki.org/image/doc/whatisgambas/:ide-db-manager should be http://gambaswiki.org/wiki/doc/whatisgambas/ide-db-manager.png From bill-lancaster at ...2231... Wed Mar 22 20:37:46 2017 From: bill-lancaster at ...2231... (bill-lancaster) Date: Wed, 22 Mar 2017 12:37:46 -0700 (MST) Subject: [Gambas-user] EXEC progress In-Reply-To: References: <1490202087113-58674.post@...3046...> Message-ID: <1490211466979-58679.post@...3046...> Yes, a progress bar or even just a label showing which operation is current. hProc = Exec ["ffmpeg", "-i", sPathTape, etc, etc] Wait For Output As "Process" with Public Sub Process_Read() Dim sData As String Read #Last, sData, -255 Label1.caption = sData End doesn't show anything This works, but is not very elegant hProc = Exec ["ffmpeg", "-i", sPathTape, etc, etc] For Input Do While hProc.State = 1 Wait Loop Label1.caption = "process 1 completed" -- View this message in context: http://gambas.8142.n7.nabble.com/EXEC-progress-tp58674p58679.html Sent from the gambas-user mailing list archive at Nabble.com. From bagonergi at ...626... Wed Mar 22 22:02:26 2017 From: bagonergi at ...626... (Gianluigi) Date: Wed, 22 Mar 2017 22:02:26 +0100 Subject: [Gambas-user] Traversing a TreeView (was: Automatically scroll to end of treeview?) In-Reply-To: <20170322183834.GC551@...3600...> References: <1490175837876-58666.post@...3046...> <20170322101610.GA551@...3600...> <1490178446805-58669.post@...3046...> <20170322133024.GB551@...3600...> <20170322183834.GC551@...3600...> Message-ID: Dear Tobias, you were born teacher. ? Thank you very much for the example and explanations. Regards Gianluigi 2017-03-22 19:38 GMT+01:00 Tobias Boege : > On Wed, 22 Mar 2017, Gianluigi wrote: > > Hello Tobias, > > unfortunately I was not able to do better than Wally, > > I tried but I did not move from here :-( > > See attached > > I'm afraid did not understand the original question. > > > > An implementation of what I was talking about is attached. > > Regards, > Tobi > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From chrisml at ...3340... Wed Mar 22 22:47:52 2017 From: chrisml at ...3340... (Christof Thalhofer) Date: Wed, 22 Mar 2017 22:47:52 +0100 Subject: [Gambas-user] EXEC progress In-Reply-To: <1490202087113-58674.post@...3046...> References: <1490202087113-58674.post@...3046...> Message-ID: <5a40027b-f3f8-9035-0c05-d2d3488257dd@...3340...> Am 22.03.2017 um 18:01 schrieb bill-lancaster: > I have a series of EXEC command line jobs. The whole lot takes some time and > it would be nice to have some indication of progress. > Because there's a series of EXECs, I'm using the 'Wait' function. In this > case it seems that 'Process_Read' doesn't report what's happening. > Any advice would be welcome Heres a small priject with code I use to display the output of shell commands in a window. Maybe it's helpful: http://gambas-club.de/viewtopic.php?f=13&t=5366#p11986 Alles Gute Christof Thalhofer -- Dies ist keine Signatur -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From jussi.lahtinen at ...626... Thu Mar 23 01:14:40 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Thu, 23 Mar 2017 02:14:40 +0200 Subject: [Gambas-user] EXEC progress In-Reply-To: <1490211466979-58679.post@...3046...> References: <1490202087113-58674.post@...3046...> <1490211466979-58679.post@...3046...> Message-ID: > Yes, a progress bar or even just a label showing which operation is > current. > hProc = Exec ["ffmpeg", "-i", sPathTape, etc, etc] Wait For Output As > "Process" > > with > > Public Sub Process_Read() > Dim sData As String > Read #Last, sData, -255 > Label1.caption = sData > End > > doesn't show anything > As expected, you declared the process for output, not for input..? Jussi From gambas.fr at ...626... Thu Mar 23 13:25:25 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Thu, 23 Mar 2017 13:25:25 +0100 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: Please tel me how you make the array in php. And in java. Or give me a link. I'll try to answer this evening For me you need arrays of collections. Array are the lines storage and collection the line itself. Colresult[2]!storage[3]!article From mckaygerhard at ...626... Thu Mar 23 19:49:13 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 23 Mar 2017 14:49:13 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: well, this its a funny case, the code of the firts mail are the correct way , but one line are incorrect.. that's why not working in any case i put how must be done in this article: http://qgqlochekone.blogspot.com/2017/03/gambas3-collections-of-collections-as.html my error, a typo in the line: filasdet.Add(columnas, rsetd!cod_contenido) must be: filasdet.Add(columnasdet, rsetd!cod_contenido) and in the article i try to explain why i done that Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-23 8:25 GMT-04:00 Fabien Bodard : > Please tel me how you make the array in php. And in java. Or give me a > link. > I'll try to answer this evening > For me you need arrays of collections. > Array are the lines storage and collection the line itself. > > Colresult[2]!storage[3]!article > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Thu Mar 23 22:46:39 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Thu, 23 Mar 2017 17:46:39 -0400 Subject: [Gambas-user] webtable Data event, get text from a specific row Message-ID: i try to iterate in a row from a webtable event DATA, but i noted that in svn the class seems are not develop this based on documentation that said "this wymbol has not found" when i visit the wiki for it! https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/comp/src/gb.web.form/.src/WebTable/WebTableData.class the event and related are not comlete develop or how i can get text of a specific row? Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From taboege at ...626... Thu Mar 23 23:35:24 2017 From: taboege at ...626... (Tobias Boege) Date: Thu, 23 Mar 2017 23:35:24 +0100 Subject: [Gambas-user] webtable Data event, get text from a specific row In-Reply-To: References: Message-ID: <20170323223524.GA696@...3600...> On Thu, 23 Mar 2017, PICCORO McKAY Lenz wrote: > i try to iterate in a row from a webtable event DATA, but i noted that in > svn the class seems are not develop > > this based on documentation that said "this wymbol has not found" when i > visit the wiki for it! > > https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/comp/src/gb.web.form/.src/WebTable/WebTableData.class > > the event and related are not comlete develop or how i can get text of a > specific row? > I don't know for sure what Benoit intends to do with it, but in its current scope the file you linked is completely developed. You get the "symbol not found" error because it is not documented (yet). WebTableData is a class used in only one direction: for the WebTable to query *you* for the data it is going to display. As for > how i can get text of a specific row? You can't. WebTable does not store any data. It feels like I just explained this last week [1]. Virtually all widgets in gb.web.form do only two things: they render themselves as HTML and handle user interaction by receiving messages and sending responses in Javascript. When the WebTable is rendered, it determines which rows and columns it needs to show (depending on the current state of its scrollbars) and raises a series of Data events to ask you for the data you want to put into these cells. The data you provide is then baked into an HTML and sent to the browser. It is not saved and there is no way for you to get it back out of the WebTable. But since you should have a method to answer the WebTable's Data queries, you should be able to get your row data the same way, no? If you want to get anyhwere with gb.web.form I strongly advise to read its source code. Regards, Tobi [1] https://sourceforge.net/p/gambas/mailman/message/35732049/ -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From bugtracker at ...3416... Fri Mar 24 13:56:15 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 24 Mar 2017 12:56:15 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1093: Short cut keys not working for gb.qt5 menu if parent menu caption is blank Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1093&from=L21haW4- Safiur RAHMAN reported a new bug. Summary ------- Short cut keys not working for gb.qt5 menu if parent menu caption is blank Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- Create a menu and a submenu in gb.qt5. Put shortcut key (eg. Ctrl + S ) to submenu. If main menu caption is not empty then pressing shortcut key produces associated Click event. If main menu caption is blank then pressing short cut does not produce Click event. System information ------------------ [System] Gambas=3.9.2 OperatingSystem=Linux Kernel=4.8.0-41-generic Architecture=x86_64 Distribution=Ubuntu 16.04.2 LTS Desktop=UNITY Theme=Gtk Language=en_US.UTF-8 Memory=3883M [Libraries] Cairo=libcairo.so.2.11400.6 Curl=libcurl.so.4.4.0 DBus=libdbus-1.so.3.14.6 GStreamer=libgstreamer-0.10.so.0.30.0 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 [Environment] CLUTTER_IM_MODULE=xim COMPIZ_BIN_PATH=/usr/bin/ COMPIZ_CONFIG_PROFILE=ubuntu DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-AKAWaABNeq DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.qt4 GDMSESSION=ubuntu GDM_LANG=en_US GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=8488 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=en_US.UTF-8 LANGUAGE=en_US LC_ADDRESS=ne_NP.UTF-8 LC_IDENTIFICATION=ne_NP.UTF-8 LC_MEASUREMENT=ne_NP.UTF-8 LC_MONETARY=ne_NP.UTF-8 LC_NAME=ne_NP.UTF-8 LC_NUMERIC=ne_NP.UTF-8 LC_PAPER=ne_NP.UTF-8 LC_TELEPHONE=ne_NP.UTF-8 LC_TIME=ne_NP.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path PAPERSIZE=a4 PATH=/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/2051,unix/:/tmp/.ICE-unix/2051 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=xsession started UPSTART_INSTANCE= UPSTART_JOB=unity7 UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1793 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 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=@...3498...=ibus From bugtracker at ...3416... Fri Mar 24 13:57:02 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 24 Mar 2017 12:57:02 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1093: Short cut keys not working for gb.qt5 menu if parent menu caption is blank In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1093&from=L21haW4- Safiur RAHMAN added an attachment: menuform.tar.gz From mckaygerhard at ...626... Fri Mar 24 13:57:26 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 24 Mar 2017 08:57:26 -0400 Subject: [Gambas-user] webtable Data event, get text from a specific row In-Reply-To: <20170323223524.GA696@...3600...> References: <20170323223524.GA696@...3600...> Message-ID: i reading .. and makes sense due its a web filosofy (request/response), due its a rendered task, make it on the fly.. but by now its quite complicated translate to spanish.. in the mail linked, u paste an example, i'll try to do that and then try to explain in spanish .. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-23 18:35 GMT-04:00 Tobias Boege : > On Thu, 23 Mar 2017, PICCORO McKAY Lenz wrote: > > i try to iterate in a row from a webtable event DATA, but i noted that in > > svn the class seems are not develop > > > > this based on documentation that said "this wymbol has not found" when i > > visit the wiki for it! > > > > https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/ > trunk/comp/src/gb.web.form/.src/WebTable/WebTableData.class > > > > the event and related are not comlete develop or how i can get text of a > > specific row? > > > > I don't know for sure what Benoit intends to do with it, but in its current > scope the file you linked is completely developed. You get the "symbol not > found" error because it is not documented (yet). WebTableData is a class > used in only one direction: for the WebTable to query *you* for the data > it is going to display. > > As for > > > how i can get text of a specific row? > > You can't. WebTable does not store any data. It feels like I just explained > this last week [1]. Virtually all widgets in gb.web.form do only two > things: > they render themselves as HTML and handle user interaction by receiving > messages and sending responses in Javascript. When the WebTable is > rendered, > it determines which rows and columns it needs to show (depending on the > current state of its scrollbars) and raises a series of Data events to ask > you for the data you want to put into these cells. The data you provide is > then baked into an HTML
and sent to the browser. It is not saved > and > there is no way for you to get it back out of the WebTable. But since you > should have a method to answer the WebTable's Data queries, you should be > able to get your row data the same way, no? > > If you want to get anyhwere with gb.web.form I strongly advise to read its > source code. > > Regards, > Tobi > > [1] https://sourceforge.net/p/gambas/mailman/message/35732049/ > > -- > "There's an old saying: Don't change anything... ever!" -- Mr. Monk > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bugtracker at ...3416... Fri Mar 24 13:57:56 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Fri, 24 Mar 2017 12:57:56 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1093: Short cut keys not working for gb.qt5 menu if parent menu caption is blank In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1093&from=L21haW4- Safiur RAHMAN added an attachment: menuform.tar.gz From mckaygerhard at ...626... Fri Mar 24 14:41:47 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 24 Mar 2017 09:41:47 -0400 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: arrgg fatherform way and "bambino" flag way are in fact same.. both suggestions need a value to pass and already know was the form father! i need a way that i dont know the name of the "father form".. only that the parent will raise if any.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz : > like it more the "FatherForm" way, many thanks! > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-16 6:56 GMT-04:00 Gianluigi : > >> And do such a thing? >> >> Regards >> Gianluigi >> >> 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : >> >> > On Wed, 15 Mar 2017 17:32:08 -0400 >> > PICCORO McKAY Lenz wrote: >> > >> > > how to know when a form runnig was invoked from another or not? >> > > >> > > i mean: >> > > >> > > case1: >> > > >> > > form1 have a click and inside invoke form2.show() >> > > >> > > case2: >> > > >> > > only form2 are lauch >> > > >> > > now in form2 i have a button with a event Click: >> > > >> > > if are invoked from form1 i need to show anagin form1 and close form2 >> > > if not, onlt close form2 and terminate program >> > > >> > > i' was lookin for ojbect management on gambas wiki and only found Me;; >> > > Last;; and Me.Parent but none of them helpme... >> > > >> > > Lenz McKAY Gerardo (PICCORO) >> > > http://qgqlochekone.blogspot.com >> > > ------------------------------------------------------------ >> > ------------------ >> > > Check out the vibrant tech community on one of the world's most >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > Surely this is as simple as using Run() instead of show in the "parent" >> > form? Set a flag in the Run method to indicate that the "child" was >> invoked >> > from the "parent" and react accordingly. >> > e.g. >> > CHILD FORM >> > Public Sub Run() >> > $bIamBambino=true >> > Me.show() ' or ShowModal or whatever... >> > End >> > >> > Public Form_Close() >> > If $bIamBambino then >> > ' do whatever >> > Else >> > ' close the application >> > EndIF >> > >> > PARENT FORM >> > Public Sub SomeButton_Click() >> > Dim fBambono as New FWhatever >> > fBambino.Run() >> > End >> > >> > ???? >> > >> > bb >> > >> > -- >> > B Bruen >> > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > From jussi.lahtinen at ...626... Fri Mar 24 14:58:39 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 24 Mar 2017 15:58:39 +0200 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: I don't understand why it is bad to pass value to indicate where the form was invoked..? Jussi On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz wrote: > arrgg fatherform way and "bambino" flag way are in fact same.. > > both suggestions need a value to pass and already know was the form father! > i need a way that i dont know the name of the "father form".. only that the > parent will raise if any.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz : > > > like it more the "FatherForm" way, many thanks! > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-03-16 6:56 GMT-04:00 Gianluigi : > > > >> And do such a thing? > >> > >> Regards > >> Gianluigi > >> > >> 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : > >> > >> > On Wed, 15 Mar 2017 17:32:08 -0400 > >> > PICCORO McKAY Lenz wrote: > >> > > >> > > how to know when a form runnig was invoked from another or not? > >> > > > >> > > i mean: > >> > > > >> > > case1: > >> > > > >> > > form1 have a click and inside invoke form2.show() > >> > > > >> > > case2: > >> > > > >> > > only form2 are lauch > >> > > > >> > > now in form2 i have a button with a event Click: > >> > > > >> > > if are invoked from form1 i need to show anagin form1 and close > form2 > >> > > if not, onlt close form2 and terminate program > >> > > > >> > > i' was lookin for ojbect management on gambas wiki and only found > Me;; > >> > > Last;; and Me.Parent but none of them helpme... > >> > > > >> > > Lenz McKAY Gerardo (PICCORO) > >> > > http://qgqlochekone.blogspot.com > >> > > ------------------------------------------------------------ > >> > ------------------ > >> > > Check out the vibrant tech community on one of the world's most > >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > Surely this is as simple as using Run() instead of show in the > "parent" > >> > form? Set a flag in the Run method to indicate that the "child" was > >> invoked > >> > from the "parent" and react accordingly. > >> > e.g. > >> > CHILD FORM > >> > Public Sub Run() > >> > $bIamBambino=true > >> > Me.show() ' or ShowModal or whatever... > >> > End > >> > > >> > Public Form_Close() > >> > If $bIamBambino then > >> > ' do whatever > >> > Else > >> > ' close the application > >> > EndIF > >> > > >> > PARENT FORM > >> > Public Sub SomeButton_Click() > >> > Dim fBambono as New FWhatever > >> > fBambino.Run() > >> > End > >> > > >> > ???? > >> > > >> > bb > >> > > >> > -- > >> > B Bruen > >> > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Mar 24 15:08:26 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Mar 2017 15:08:26 +0100 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: Hey Lenz... Indirectly the value is passed, if it's not by you , it's by the interpreter or class. There is no sorcery. well then when you read the code ... it's not the parent that show the form but the form itself. MyForm . ShowModal Where showmodal is the function from MyForm. The only way is to pass the value via a Static Function. Or/and via an extend on the _New function (the constructor) 2017-03-24 14:58 GMT+01:00 Jussi Lahtinen : > I don't understand why it is bad to pass value to indicate where the form > was invoked..? > > > Jussi > > On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz > wrote: > >> arrgg fatherform way and "bambino" flag way are in fact same.. >> >> both suggestions need a value to pass and already know was the form father! >> i need a way that i dont know the name of the "father form".. only that the >> parent will raise if any.. >> >> Lenz McKAY Gerardo (PICCORO) >> http://qgqlochekone.blogspot.com >> >> 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz : >> >> > like it more the "FatherForm" way, many thanks! >> > >> > Lenz McKAY Gerardo (PICCORO) >> > http://qgqlochekone.blogspot.com >> > >> > 2017-03-16 6:56 GMT-04:00 Gianluigi : >> > >> >> And do such a thing? >> >> >> >> Regards >> >> Gianluigi >> >> >> >> 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : >> >> >> >> > On Wed, 15 Mar 2017 17:32:08 -0400 >> >> > PICCORO McKAY Lenz wrote: >> >> > >> >> > > how to know when a form runnig was invoked from another or not? >> >> > > >> >> > > i mean: >> >> > > >> >> > > case1: >> >> > > >> >> > > form1 have a click and inside invoke form2.show() >> >> > > >> >> > > case2: >> >> > > >> >> > > only form2 are lauch >> >> > > >> >> > > now in form2 i have a button with a event Click: >> >> > > >> >> > > if are invoked from form1 i need to show anagin form1 and close >> form2 >> >> > > if not, onlt close form2 and terminate program >> >> > > >> >> > > i' was lookin for ojbect management on gambas wiki and only found >> Me;; >> >> > > Last;; and Me.Parent but none of them helpme... >> >> > > >> >> > > Lenz McKAY Gerardo (PICCORO) >> >> > > http://qgqlochekone.blogspot.com >> >> > > ------------------------------------------------------------ >> >> > ------------------ >> >> > > Check out the vibrant tech community on one of the world's most >> >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> > > _______________________________________________ >> >> > > Gambas-user mailing list >> >> > > Gambas-user at lists.sourceforge.net >> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> > Surely this is as simple as using Run() instead of show in the >> "parent" >> >> > form? Set a flag in the Run method to indicate that the "child" was >> >> invoked >> >> > from the "parent" and react accordingly. >> >> > e.g. >> >> > CHILD FORM >> >> > Public Sub Run() >> >> > $bIamBambino=true >> >> > Me.show() ' or ShowModal or whatever... >> >> > End >> >> > >> >> > Public Form_Close() >> >> > If $bIamBambino then >> >> > ' do whatever >> >> > Else >> >> > ' close the application >> >> > EndIF >> >> > >> >> > PARENT FORM >> >> > Public Sub SomeButton_Click() >> >> > Dim fBambono as New FWhatever >> >> > fBambino.Run() >> >> > End >> >> > >> >> > ???? >> >> > >> >> > bb >> >> > >> >> > -- >> >> > B Bruen >> >> > >> >> > ------------------------------------------------------------ >> >> > ------------------ >> >> > Check out the vibrant tech community on one of the world's most >> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> > _______________________________________________ >> >> > Gambas-user mailing list >> >> > Gambas-user at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > >> >> >> >> ------------------------------------------------------------ >> >> ------------------ >> >> Check out the vibrant tech community on one of the world's most >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> _______________________________________________ >> >> Gambas-user mailing list >> >> Gambas-user at lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> >> >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From jussi.lahtinen at ...626... Fri Mar 24 15:20:12 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 24 Mar 2017 16:20:12 +0200 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: Or you need to make wrapper class that requires show method to take parameter. Jussi On Fri, Mar 24, 2017 at 4:08 PM, Fabien Bodard wrote: > Hey Lenz... Indirectly the value is passed, if it's not by you , it's > by the interpreter or class. There is no sorcery. > > well then when you read the code ... it's not the parent that show the > form but the form itself. > > MyForm . ShowModal > > Where showmodal is the function from MyForm. > > The only way is to pass the value via a Static Function. Or/and via an > extend on the _New function (the constructor) > > > > 2017-03-24 14:58 GMT+01:00 Jussi Lahtinen : > > I don't understand why it is bad to pass value to indicate where the form > > was invoked..? > > > > > > Jussi > > > > On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz < > mckaygerhard at ...626...> > > wrote: > > > >> arrgg fatherform way and "bambino" flag way are in fact same.. > >> > >> both suggestions need a value to pass and already know was the form > father! > >> i need a way that i dont know the name of the "father form".. only that > the > >> parent will raise if any.. > >> > >> Lenz McKAY Gerardo (PICCORO) > >> http://qgqlochekone.blogspot.com > >> > >> 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz : > >> > >> > like it more the "FatherForm" way, many thanks! > >> > > >> > Lenz McKAY Gerardo (PICCORO) > >> > http://qgqlochekone.blogspot.com > >> > > >> > 2017-03-16 6:56 GMT-04:00 Gianluigi : > >> > > >> >> And do such a thing? > >> >> > >> >> Regards > >> >> Gianluigi > >> >> > >> >> 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : > >> >> > >> >> > On Wed, 15 Mar 2017 17:32:08 -0400 > >> >> > PICCORO McKAY Lenz wrote: > >> >> > > >> >> > > how to know when a form runnig was invoked from another or not? > >> >> > > > >> >> > > i mean: > >> >> > > > >> >> > > case1: > >> >> > > > >> >> > > form1 have a click and inside invoke form2.show() > >> >> > > > >> >> > > case2: > >> >> > > > >> >> > > only form2 are lauch > >> >> > > > >> >> > > now in form2 i have a button with a event Click: > >> >> > > > >> >> > > if are invoked from form1 i need to show anagin form1 and close > >> form2 > >> >> > > if not, onlt close form2 and terminate program > >> >> > > > >> >> > > i' was lookin for ojbect management on gambas wiki and only found > >> Me;; > >> >> > > Last;; and Me.Parent but none of them helpme... > >> >> > > > >> >> > > Lenz McKAY Gerardo (PICCORO) > >> >> > > http://qgqlochekone.blogspot.com > >> >> > > ------------------------------------------------------------ > >> >> > ------------------ > >> >> > > Check out the vibrant tech community on one of the world's most > >> >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> >> > > _______________________________________________ > >> >> > > Gambas-user mailing list > >> >> > > Gambas-user at lists.sourceforge.net > >> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > > >> >> > Surely this is as simple as using Run() instead of show in the > >> "parent" > >> >> > form? Set a flag in the Run method to indicate that the "child" was > >> >> invoked > >> >> > from the "parent" and react accordingly. > >> >> > e.g. > >> >> > CHILD FORM > >> >> > Public Sub Run() > >> >> > $bIamBambino=true > >> >> > Me.show() ' or ShowModal or whatever... > >> >> > End > >> >> > > >> >> > Public Form_Close() > >> >> > If $bIamBambino then > >> >> > ' do whatever > >> >> > Else > >> >> > ' close the application > >> >> > EndIF > >> >> > > >> >> > PARENT FORM > >> >> > Public Sub SomeButton_Click() > >> >> > Dim fBambono as New FWhatever > >> >> > fBambino.Run() > >> >> > End > >> >> > > >> >> > ???? > >> >> > > >> >> > bb > >> >> > > >> >> > -- > >> >> > B Bruen > >> >> > > >> >> > ------------------------------------------------------------ > >> >> > ------------------ > >> >> > Check out the vibrant tech community on one of the world's most > >> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> >> > _______________________________________________ > >> >> > Gambas-user mailing list > >> >> > Gambas-user at lists.sourceforge.net > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > > >> >> > >> >> ------------------------------------------------------------ > >> >> ------------------ > >> >> Check out the vibrant tech community on one of the world's most > >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> >> _______________________________________________ > >> >> Gambas-user mailing list > >> >> Gambas-user at lists.sourceforge.net > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> >> > >> >> > >> > > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Fri Mar 24 15:41:43 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 24 Mar 2017 10:41:43 -0400 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: the problem its not property a value to pass.. the problem its that the parent could be "any", not only a named "myform" o "fatherform" i mean, i dont nkow what form was the parent Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-24 10:20 GMT-04:00 Jussi Lahtinen : > Or you need to make wrapper class that requires show method to take > parameter. > > > Jussi > > On Fri, Mar 24, 2017 at 4:08 PM, Fabien Bodard > wrote: > > > Hey Lenz... Indirectly the value is passed, if it's not by you , it's > > by the interpreter or class. There is no sorcery. > > > > well then when you read the code ... it's not the parent that show the > > form but the form itself. > > > > MyForm . ShowModal > > > > Where showmodal is the function from MyForm. > > > > The only way is to pass the value via a Static Function. Or/and via an > > extend on the _New function (the constructor) > > > > > > > > 2017-03-24 14:58 GMT+01:00 Jussi Lahtinen : > > > I don't understand why it is bad to pass value to indicate where the > form > > > was invoked..? > > > > > > > > > Jussi > > > > > > On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz < > > mckaygerhard at ...626...> > > > wrote: > > > > > >> arrgg fatherform way and "bambino" flag way are in fact same.. > > >> > > >> both suggestions need a value to pass and already know was the form > > father! > > >> i need a way that i dont know the name of the "father form".. only > that > > the > > >> parent will raise if any.. > > >> > > >> Lenz McKAY Gerardo (PICCORO) > > >> http://qgqlochekone.blogspot.com > > >> > > >> 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz >: > > >> > > >> > like it more the "FatherForm" way, many thanks! > > >> > > > >> > Lenz McKAY Gerardo (PICCORO) > > >> > http://qgqlochekone.blogspot.com > > >> > > > >> > 2017-03-16 6:56 GMT-04:00 Gianluigi : > > >> > > > >> >> And do such a thing? > > >> >> > > >> >> Regards > > >> >> Gianluigi > > >> >> > > >> >> 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : > > >> >> > > >> >> > On Wed, 15 Mar 2017 17:32:08 -0400 > > >> >> > PICCORO McKAY Lenz wrote: > > >> >> > > > >> >> > > how to know when a form runnig was invoked from another or not? > > >> >> > > > > >> >> > > i mean: > > >> >> > > > > >> >> > > case1: > > >> >> > > > > >> >> > > form1 have a click and inside invoke form2.show() > > >> >> > > > > >> >> > > case2: > > >> >> > > > > >> >> > > only form2 are lauch > > >> >> > > > > >> >> > > now in form2 i have a button with a event Click: > > >> >> > > > > >> >> > > if are invoked from form1 i need to show anagin form1 and close > > >> form2 > > >> >> > > if not, onlt close form2 and terminate program > > >> >> > > > > >> >> > > i' was lookin for ojbect management on gambas wiki and only > found > > >> Me;; > > >> >> > > Last;; and Me.Parent but none of them helpme... > > >> >> > > > > >> >> > > Lenz McKAY Gerardo (PICCORO) > > >> >> > > http://qgqlochekone.blogspot.com > > >> >> > > ------------------------------------------------------------ > > >> >> > ------------------ > > >> >> > > Check out the vibrant tech community on one of the world's most > > >> >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> >> > > _______________________________________________ > > >> >> > > Gambas-user mailing list > > >> >> > > Gambas-user at lists.sourceforge.net > > >> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > > > >> >> > Surely this is as simple as using Run() instead of show in the > > >> "parent" > > >> >> > form? Set a flag in the Run method to indicate that the "child" > was > > >> >> invoked > > >> >> > from the "parent" and react accordingly. > > >> >> > e.g. > > >> >> > CHILD FORM > > >> >> > Public Sub Run() > > >> >> > $bIamBambino=true > > >> >> > Me.show() ' or ShowModal or whatever... > > >> >> > End > > >> >> > > > >> >> > Public Form_Close() > > >> >> > If $bIamBambino then > > >> >> > ' do whatever > > >> >> > Else > > >> >> > ' close the application > > >> >> > EndIF > > >> >> > > > >> >> > PARENT FORM > > >> >> > Public Sub SomeButton_Click() > > >> >> > Dim fBambono as New FWhatever > > >> >> > fBambino.Run() > > >> >> > End > > >> >> > > > >> >> > ???? > > >> >> > > > >> >> > bb > > >> >> > > > >> >> > -- > > >> >> > B Bruen > > >> >> > > > >> >> > ------------------------------------------------------------ > > >> >> > ------------------ > > >> >> > Check out the vibrant tech community on one of the world's most > > >> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> >> > _______________________________________________ > > >> >> > Gambas-user mailing list > > >> >> > Gambas-user at lists.sourceforge.net > > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > > > >> >> > > >> >> ------------------------------------------------------------ > > >> >> ------------------ > > >> >> Check out the vibrant tech community on one of the world's most > > >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> >> _______________________________________________ > > >> >> Gambas-user mailing list > > >> >> Gambas-user at lists.sourceforge.net > > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> >> > > >> >> > > >> > > > >> ------------------------------------------------------------ > > >> ------------------ > > >> Check out the vibrant tech community on one of the world's most > > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > >> _______________________________________________ > > >> Gambas-user mailing list > > >> Gambas-user at lists.sourceforge.net > > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > >> > > > ------------------------------------------------------------ > > ------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > -- > > Fabien Bodard > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Fri Mar 24 15:52:00 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Mar 2017 15:52:00 +0100 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: Sorry but despite your article ... that i've read all the content I can't understand your need ... And I'm sur there is a way to do it simpler with Gambas. What I've understand : ' Gambas module file Public Sub Main() Dim hCon As New Connection(Subst("mysql://&1@&2:3306/&3", $servername, $username, $dbname)) Dim $orders As String = "SELECT * FROM almorder WHERE cod_order = &1" Dim $ordersproducts As String = "SELECT * FROM alorderproducts WHERE cod_order = &1" Dim CurrentOrder As String = "001" Dim cOrder as Collection hCon.Password = $password hCon.Open 'refer to the first line of the returned collection to get a single collection cOrder = ResultToCollectionArray(db.Exec($orders, CurrentOrder))[0] cOrder!cod_contenido = ResultToCollectionArray(db.Exec($ordersproducts, CurrentOrder) 'So we can read : Print cOrder!cod_contenido[2]!can_product 'that refer To the Line 2 Of the array contained In column "cod_contenido" Of cOrder....column "can_product" End Private Function ResultToCollectionArray(hResult As Result) As Collection[] Dim a As New String[] Dim f As ResultField Dim C As Collection Dim aC As New Collection[] Dim s As String If Not hResult And If Not hResult.Available Then Return For Each f In ResultField a.Add(f.Name) Next For Each hResult c = New Collection For Each s In a c[s] = hResult[s] Next aC.Add(c) Next Return aC End 2017-03-23 19:49 GMT+01:00 PICCORO McKAY Lenz : > well, this its a funny case, the code of the firts mail are the correct way > , but one line are incorrect.. that's why not working > > in any case i put how must be done in this article: > http://qgqlochekone.blogspot.com/2017/03/gambas3-collections-of-collections-as.html > > my error, a typo in the line: > filasdet.Add(columnas, rsetd!cod_contenido) > must be: > filasdet.Add(columnasdet, rsetd!cod_contenido) > > and in the article i try to explain why i done that > > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-23 8:25 GMT-04:00 Fabien Bodard : > >> Please tel me how you make the array in php. And in java. Or give me a >> link. >> I'll try to answer this evening >> For me you need arrays of collections. >> Array are the lines storage and collection the line itself. >> >> Colresult[2]!storage[3]!article >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From gambas.fr at ...626... Fri Mar 24 16:06:17 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Fri, 24 Mar 2017 16:06:17 +0100 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: So it's to the form to say ... I'm the parent. 2017-03-24 15:41 GMT+01:00 PICCORO McKAY Lenz : > the problem its not property a value to pass.. > > the problem its that the parent could be "any", not only a named "myform" o > "fatherform" > > i mean, i dont nkow what form was the parent > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-24 10:20 GMT-04:00 Jussi Lahtinen : > >> Or you need to make wrapper class that requires show method to take >> parameter. >> >> >> Jussi >> >> On Fri, Mar 24, 2017 at 4:08 PM, Fabien Bodard >> wrote: >> >> > Hey Lenz... Indirectly the value is passed, if it's not by you , it's >> > by the interpreter or class. There is no sorcery. >> > >> > well then when you read the code ... it's not the parent that show the >> > form but the form itself. >> > >> > MyForm . ShowModal >> > >> > Where showmodal is the function from MyForm. >> > >> > The only way is to pass the value via a Static Function. Or/and via an >> > extend on the _New function (the constructor) >> > >> > >> > >> > 2017-03-24 14:58 GMT+01:00 Jussi Lahtinen : >> > > I don't understand why it is bad to pass value to indicate where the >> form >> > > was invoked..? >> > > >> > > >> > > Jussi >> > > >> > > On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz < >> > mckaygerhard at ...626...> >> > > wrote: >> > > >> > >> arrgg fatherform way and "bambino" flag way are in fact same.. >> > >> >> > >> both suggestions need a value to pass and already know was the form >> > father! >> > >> i need a way that i dont know the name of the "father form".. only >> that >> > the >> > >> parent will raise if any.. >> > >> >> > >> Lenz McKAY Gerardo (PICCORO) >> > >> http://qgqlochekone.blogspot.com >> > >> >> > >> 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz > >: >> > >> >> > >> > like it more the "FatherForm" way, many thanks! >> > >> > >> > >> > Lenz McKAY Gerardo (PICCORO) >> > >> > http://qgqlochekone.blogspot.com >> > >> > >> > >> > 2017-03-16 6:56 GMT-04:00 Gianluigi : >> > >> > >> > >> >> And do such a thing? >> > >> >> >> > >> >> Regards >> > >> >> Gianluigi >> > >> >> >> > >> >> 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... : >> > >> >> >> > >> >> > On Wed, 15 Mar 2017 17:32:08 -0400 >> > >> >> > PICCORO McKAY Lenz wrote: >> > >> >> > >> > >> >> > > how to know when a form runnig was invoked from another or not? >> > >> >> > > >> > >> >> > > i mean: >> > >> >> > > >> > >> >> > > case1: >> > >> >> > > >> > >> >> > > form1 have a click and inside invoke form2.show() >> > >> >> > > >> > >> >> > > case2: >> > >> >> > > >> > >> >> > > only form2 are lauch >> > >> >> > > >> > >> >> > > now in form2 i have a button with a event Click: >> > >> >> > > >> > >> >> > > if are invoked from form1 i need to show anagin form1 and close >> > >> form2 >> > >> >> > > if not, onlt close form2 and terminate program >> > >> >> > > >> > >> >> > > i' was lookin for ojbect management on gambas wiki and only >> found >> > >> Me;; >> > >> >> > > Last;; and Me.Parent but none of them helpme... >> > >> >> > > >> > >> >> > > Lenz McKAY Gerardo (PICCORO) >> > >> >> > > http://qgqlochekone.blogspot.com >> > >> >> > > ------------------------------------------------------------ >> > >> >> > ------------------ >> > >> >> > > Check out the vibrant tech community on one of the world's most >> > >> >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> >> > > _______________________________________________ >> > >> >> > > Gambas-user mailing list >> > >> >> > > Gambas-user at lists.sourceforge.net >> > >> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> > >> > >> >> > Surely this is as simple as using Run() instead of show in the >> > >> "parent" >> > >> >> > form? Set a flag in the Run method to indicate that the "child" >> was >> > >> >> invoked >> > >> >> > from the "parent" and react accordingly. >> > >> >> > e.g. >> > >> >> > CHILD FORM >> > >> >> > Public Sub Run() >> > >> >> > $bIamBambino=true >> > >> >> > Me.show() ' or ShowModal or whatever... >> > >> >> > End >> > >> >> > >> > >> >> > Public Form_Close() >> > >> >> > If $bIamBambino then >> > >> >> > ' do whatever >> > >> >> > Else >> > >> >> > ' close the application >> > >> >> > EndIF >> > >> >> > >> > >> >> > PARENT FORM >> > >> >> > Public Sub SomeButton_Click() >> > >> >> > Dim fBambono as New FWhatever >> > >> >> > fBambino.Run() >> > >> >> > End >> > >> >> > >> > >> >> > ???? >> > >> >> > >> > >> >> > bb >> > >> >> > >> > >> >> > -- >> > >> >> > B Bruen >> > >> >> > >> > >> >> > ------------------------------------------------------------ >> > >> >> > ------------------ >> > >> >> > Check out the vibrant tech community on one of the world's most >> > >> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> >> > _______________________________________________ >> > >> >> > Gambas-user mailing list >> > >> >> > Gambas-user at lists.sourceforge.net >> > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> > >> > >> >> >> > >> >> ------------------------------------------------------------ >> > >> >> ------------------ >> > >> >> Check out the vibrant tech community on one of the world's most >> > >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> >> _______________________________________________ >> > >> >> Gambas-user mailing list >> > >> >> Gambas-user at lists.sourceforge.net >> > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> >> > >> >> >> > >> > >> > >> ------------------------------------------------------------ >> > >> ------------------ >> > >> Check out the vibrant tech community on one of the world's most >> > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > >> _______________________________________________ >> > >> Gambas-user mailing list >> > >> Gambas-user at lists.sourceforge.net >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> >> > > ------------------------------------------------------------ >> > ------------------ >> > > Check out the vibrant tech community on one of the world's most >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > > _______________________________________________ >> > > Gambas-user mailing list >> > > Gambas-user at lists.sourceforge.net >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> > >> > >> > -- >> > Fabien Bodard >> > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard -------------- next part -------------- A non-text attachment was scrubbed... Name: McKay-0.0.1.tar.gz Type: application/x-gzip Size: 12084 bytes Desc: not available URL: From mckaygerhard at ...626... Fri Mar 24 16:33:49 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 24 Mar 2017 11:33:49 -0400 Subject: [Gambas-user] how to know when a form runnig was invoked from another or not? In-Reply-To: References: <20170316140216.14fe93f4223405ad69b1917d@...626...> Message-ID: jajajaj Fabian, thanks! its a "all-in-one" project! umm interesting using the run! passing a instance of the parent.. thanks for the tip! Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-24 11:06 GMT-04:00 Fabien Bodard : > So it's to the form to say ... I'm the parent. > > > > > 2017-03-24 15:41 GMT+01:00 PICCORO McKAY Lenz : > > the problem its not property a value to pass.. > > > > the problem its that the parent could be "any", not only a named > "myform" o > > "fatherform" > > > > i mean, i dont nkow what form was the parent > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-03-24 10:20 GMT-04:00 Jussi Lahtinen : > > > >> Or you need to make wrapper class that requires show method to take > >> parameter. > >> > >> > >> Jussi > >> > >> On Fri, Mar 24, 2017 at 4:08 PM, Fabien Bodard > >> wrote: > >> > >> > Hey Lenz... Indirectly the value is passed, if it's not by you , it's > >> > by the interpreter or class. There is no sorcery. > >> > > >> > well then when you read the code ... it's not the parent that show the > >> > form but the form itself. > >> > > >> > MyForm . ShowModal > >> > > >> > Where showmodal is the function from MyForm. > >> > > >> > The only way is to pass the value via a Static Function. Or/and via an > >> > extend on the _New function (the constructor) > >> > > >> > > >> > > >> > 2017-03-24 14:58 GMT+01:00 Jussi Lahtinen : > >> > > I don't understand why it is bad to pass value to indicate where the > >> form > >> > > was invoked..? > >> > > > >> > > > >> > > Jussi > >> > > > >> > > On Fri, Mar 24, 2017 at 3:41 PM, PICCORO McKAY Lenz < > >> > mckaygerhard at ...626...> > >> > > wrote: > >> > > > >> > >> arrgg fatherform way and "bambino" flag way are in fact same.. > >> > >> > >> > >> both suggestions need a value to pass and already know was the form > >> > father! > >> > >> i need a way that i dont know the name of the "father form".. only > >> that > >> > the > >> > >> parent will raise if any.. > >> > >> > >> > >> Lenz McKAY Gerardo (PICCORO) > >> > >> http://qgqlochekone.blogspot.com > >> > >> > >> > >> 2017-03-16 7:59 GMT-04:00 PICCORO McKAY Lenz < > mckaygerhard at ...626... > >> >: > >> > >> > >> > >> > like it more the "FatherForm" way, many thanks! > >> > >> > > >> > >> > Lenz McKAY Gerardo (PICCORO) > >> > >> > http://qgqlochekone.blogspot.com > >> > >> > > >> > >> > 2017-03-16 6:56 GMT-04:00 Gianluigi : > >> > >> > > >> > >> >> And do such a thing? > >> > >> >> > >> > >> >> Regards > >> > >> >> Gianluigi > >> > >> >> > >> > >> >> 2017-03-16 4:32 GMT+01:00 adamnt42 at ...626... < > adamnt42 at ...626...>: > >> > >> >> > >> > >> >> > On Wed, 15 Mar 2017 17:32:08 -0400 > >> > >> >> > PICCORO McKAY Lenz wrote: > >> > >> >> > > >> > >> >> > > how to know when a form runnig was invoked from another or > not? > >> > >> >> > > > >> > >> >> > > i mean: > >> > >> >> > > > >> > >> >> > > case1: > >> > >> >> > > > >> > >> >> > > form1 have a click and inside invoke form2.show() > >> > >> >> > > > >> > >> >> > > case2: > >> > >> >> > > > >> > >> >> > > only form2 are lauch > >> > >> >> > > > >> > >> >> > > now in form2 i have a button with a event Click: > >> > >> >> > > > >> > >> >> > > if are invoked from form1 i need to show anagin form1 and > close > >> > >> form2 > >> > >> >> > > if not, onlt close form2 and terminate program > >> > >> >> > > > >> > >> >> > > i' was lookin for ojbect management on gambas wiki and only > >> found > >> > >> Me;; > >> > >> >> > > Last;; and Me.Parent but none of them helpme... > >> > >> >> > > > >> > >> >> > > Lenz McKAY Gerardo (PICCORO) > >> > >> >> > > http://qgqlochekone.blogspot.com > >> > >> >> > > ------------------------------ > ------------------------------ > >> > >> >> > ------------------ > >> > >> >> > > Check out the vibrant tech community on one of the world's > most > >> > >> >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > >> >> > > _______________________________________________ > >> > >> >> > > Gambas-user mailing list > >> > >> >> > > Gambas-user at lists.sourceforge.net > >> > >> >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> >> > > >> > >> >> > Surely this is as simple as using Run() instead of show in the > >> > >> "parent" > >> > >> >> > form? Set a flag in the Run method to indicate that the > "child" > >> was > >> > >> >> invoked > >> > >> >> > from the "parent" and react accordingly. > >> > >> >> > e.g. > >> > >> >> > CHILD FORM > >> > >> >> > Public Sub Run() > >> > >> >> > $bIamBambino=true > >> > >> >> > Me.show() ' or ShowModal or whatever... > >> > >> >> > End > >> > >> >> > > >> > >> >> > Public Form_Close() > >> > >> >> > If $bIamBambino then > >> > >> >> > ' do whatever > >> > >> >> > Else > >> > >> >> > ' close the application > >> > >> >> > EndIF > >> > >> >> > > >> > >> >> > PARENT FORM > >> > >> >> > Public Sub SomeButton_Click() > >> > >> >> > Dim fBambono as New FWhatever > >> > >> >> > fBambino.Run() > >> > >> >> > End > >> > >> >> > > >> > >> >> > ???? > >> > >> >> > > >> > >> >> > bb > >> > >> >> > > >> > >> >> > -- > >> > >> >> > B Bruen > >> > >> >> > > >> > >> >> > ------------------------------------------------------------ > >> > >> >> > ------------------ > >> > >> >> > Check out the vibrant tech community on one of the world's > most > >> > >> >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > >> >> > _______________________________________________ > >> > >> >> > Gambas-user mailing list > >> > >> >> > Gambas-user at lists.sourceforge.net > >> > >> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> >> > > >> > >> >> > >> > >> >> ------------------------------------------------------------ > >> > >> >> ------------------ > >> > >> >> Check out the vibrant tech community on one of the world's most > >> > >> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > >> >> _______________________________________________ > >> > >> >> Gambas-user mailing list > >> > >> >> Gambas-user at lists.sourceforge.net > >> > >> >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> >> > >> > >> >> > >> > >> > > >> > >> ------------------------------------------------------------ > >> > >> ------------------ > >> > >> Check out the vibrant tech community on one of the world's most > >> > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > >> _______________________________________________ > >> > >> Gambas-user mailing list > >> > >> Gambas-user at lists.sourceforge.net > >> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > >> > >> > > ------------------------------------------------------------ > >> > ------------------ > >> > > Check out the vibrant tech community on one of the world's most > >> > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > > _______________________________________________ > >> > > Gambas-user mailing list > >> > > Gambas-user at lists.sourceforge.net > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> > > >> > > >> > -- > >> > Fabien Bodard > >> > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From mckaygerhard at ...626... Sat Mar 25 00:24:11 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Fri, 24 Mar 2017 19:24:11 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: 2017-03-24 10:52 GMT-04:00 Fabien Bodard : > Sorry but despite your article ... that i've read all the content I > can't understand your need ... And I'm sur there is a way to do it > simpler with Gambas. > U'r code are correct, the problem is the understand for people that come from other programing languaje .. please dont pay attention to the "array" word, its only a reference Here some will ask it selft: "so then why Gambas? why not better php or java?" simple: once understand the code, as u said, will be then a better way and wil be easy to do! It is difficult to explain it for all of you because I do not see large projects made in Gambas beyond domotica project, and second because they do not understand when one should evaluate contracting expenses against quality of personnel .. A developer who understands at first sight your concept, it will cost me more than one who only has a simple analogy ...i mean we do not see the word "array" only, the equivalence of code are able to Understand it quickly Obviously there are better ways, if I must, i would implement Beans adapted from Java EE concepts and dynamic abstractions .. but I would get expensive at the contracting level .. an then gambas convert in a "basic" related languaje easy to learn > > What I've understand : > > ' Gambas module file > > Public Sub Main() > > Dim hCon As New Connection(Subst("mysql://&1@&2:3306/&3", > $servername, $username, $dbname)) > Dim $orders As String = "SELECT * FROM almorder WHERE cod_order = &1" > Dim $ordersproducts As String = "SELECT * FROM alorderproducts WHERE > cod_order = &1" > > Dim CurrentOrder As String = "001" > Dim cOrder as Collection > > hCon.Password = $password > hCon.Open > > 'refer to the first line of the returned collection to get a single > collection > cOrder = ResultToCollectionArray(db.Exec($orders, CurrentOrder))[0] > > cOrder!cod_contenido = > ResultToCollectionArray(db.Exec($ordersproducts, CurrentOrder) > > > 'So we can read : > > Print cOrder!cod_contenido[2]!can_product > > 'that refer To the Line 2 Of the array contained In column > "cod_contenido" Of cOrder....column "can_product" > > End > > > Private Function ResultToCollectionArray(hResult As Result) As > Collection[] > Dim a As New String[] > Dim f As ResultField > Dim C As Collection > Dim aC As New Collection[] > Dim s As String > > If Not hResult And If Not hResult.Available Then Return > > For Each f In ResultField > a.Add(f.Name) > Next > > For Each hResult > c = New Collection > For Each s In a > c[s] = hResult[s] > Next > aC.Add(c) > Next > Return aC > End > > > > > 2017-03-23 19:49 GMT+01:00 PICCORO McKAY Lenz : > > well, this its a funny case, the code of the firts mail are the correct > way > > , but one line are incorrect.. that's why not working > > > > in any case i put how must be done in this article: > > http://qgqlochekone.blogspot.com/2017/03/gambas3- > collections-of-collections-as.html > > > > my error, a typo in the line: > > filasdet.Add(columnas, rsetd!cod_contenido) > > must be: > > filasdet.Add(columnasdet, rsetd!cod_contenido) > > > > and in the article i try to explain why i done that > > > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-03-23 8:25 GMT-04:00 Fabien Bodard : > > > >> Please tel me how you make the array in php. And in java. Or give me a > >> link. > >> I'll try to answer this evening > >> For me you need arrays of collections. > >> Array are the lines storage and collection the line itself. > >> > >> Colresult[2]!storage[3]!article > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas.fr at ...626... Sat Mar 25 16:51:44 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Sat, 25 Mar 2017 16:51:44 +0100 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: A long thought in bazaar... I think, the first job is to teach a new time to developpers how to develop. There is nothing great in the code i've sended, juste the evidence. I've start learnin coding in gwbasic and qbasic... well not the best to start. Now we have better languages like python, java, c# and i've the impression that taking one hour for making the lacking function,has become something insurmountable (in this case 10 minutes for me). In the past I had no choice, no internet, if I wanted something or if it did not exist, you had to buy it or create it (sometimes find it in a book). Honestly, today I have reproduced so much with Gambas that I think we can almost do everything. What is lacking in Gambas is documentation. Unfortunately, we do not have time to write it because we have grown up and have a lot of work now. All I can do is swing from time to time a spade on the mailing list to help the newcomers to understand the pattern of thought behind Gambas. Because I see that this is also the problem. Whether at the level of the language or at the level of the arrangement of forms, at the level of the event structure (gridview, drawingarea and many other widgets), the choices are quite innovative and destabilizing. Gambas is not there to replace or compete with other languages, it is as in kungfu there are several phylosophy and it is one among others. To summarize it is not the language in itself that must be understood, but the phylsophy of development. For the language, there is the wiki. For phylosophy ... we'll have to bend over. Benoit, had said that language was able to appreciate different types of procedural, object or event programming. But with time I realize that the object / event couple is dominant and that this is our signature somehow. Today it is a coherent mature language (despite the bugs), with coherent libraries. By experience, it is not necessary to copy a code from one language to another, but a concept. What it lacks for me would be a UML integrator, which would make it easier to manipulate the concepts of a project. ? I think over time have spotted key points that make Gambas more difficult to digest for developers a bit too pampered. I will take the time to make a document for the helpers to appreciate our philosophy and allow them not to try to model the programming style of other languages in Gambas. From olivier.cruilles at ...614... Sat Mar 25 17:52:27 2017 From: olivier.cruilles at ...614... (Linus) Date: Sat, 25 Mar 2017 12:52:27 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: <6379198C-4D00-4CA9-9F80-97E4AE261F1C@...614...> Fabien, Thank you for this great explication and I completely agree with it. :) Thank you again to all persons that make Gambas possible and usable?since more than 12 years... Olivier Cruilles > Le 25 mars 2017 ? 11:51, Fabien Bodard a ?crit : > > A long thought in bazaar... > > > I think, the first job is to teach a new time to developpers how to > develop. There is nothing great in the code i've sended, juste the > evidence. > > I've start learnin coding in gwbasic and qbasic... well not the best > to start. Now we have better languages like python, java, c# and > i've the impression that taking one hour for making the lacking > function,has become something insurmountable (in this case 10 minutes > for me). > > In the past I had no choice, no internet, if I wanted something or if > it did not exist, you had to buy it or create it (sometimes find it in > a book). Honestly, today I have reproduced so much with Gambas that I > think we can almost do everything. What is lacking in Gambas is > documentation. Unfortunately, we do not have time to write it because > we have grown up and have a lot of work now. All I can do is swing > from time to time a spade on the mailing list to help the newcomers to > understand the pattern of thought behind Gambas. Because I see that > this is also the problem. Whether at the level of the language or at > the level of the arrangement of forms, at the level of the event > structure (gridview, drawingarea and many other widgets), the choices > are quite innovative and destabilizing. Gambas is not there to replace > or compete with other languages, it is as in kungfu there are several > phylosophy and it is one among others. > To summarize it is not the language in itself that must be understood, > but the phylsophy of development. For the language, there is the wiki. > For phylosophy ... we'll have to bend over. > > Benoit, had said that language was able to appreciate different types > of procedural, object or event programming. But with time I realize > that the object / event couple is dominant and that this is our > signature somehow. > > Today it is a coherent mature language (despite the bugs), with > coherent libraries. > > By experience, it is not necessary to copy a code from one language to > another, but a concept. What it lacks for me would be a UML > integrator, which would make it easier to manipulate the concepts of a > project. > ? > I think over time have spotted key points that make Gambas more > difficult to digest for developers a bit too pampered. > > I will take the time to make a document for the helpers to appreciate > our philosophy and allow them not to try to model the programming > style of other languages in Gambas. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user From mckaygerhard at ...626... Sat Mar 25 20:08:19 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Sat, 25 Mar 2017 15:08:19 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: 2017-03-25 11:51 GMT-04:00 Fabien Bodard : > A long thought in bazaar... > > documentation. Unfortunately, we do not have time to write it because > we have grown up and have a lot of work now. All I can do is swing > from time to time a spade on the mailing list to help the newcomers to > understand the pattern of thought behind Gambas. Because I see that > this point its interesting to me, gambas are great, but u miscunderstand me, i do not want contract great programers.. that implict much cost.. and the main and great info (apart the wiki doc) its the mail list, and that's implicts that the manpower must know english, anthoer cost.. manpower see those as value added to their skills.. and so the their are then so cost, i need Invest in cheap.. and provide profit.. To summarize it is not the language in itself that must be understood, > but the phylsophy of development. For the language, there is the wiki. > For phylosophy ... we'll have to bend over. > in this point u have so right! > > Benoit, had said that language was able to appreciate different types > of procedural, object or event programming. But with time I realize > that the object / event couple is dominant and that this is our > signature somehow. > yeap.. u also have right, but ... > Today it is a coherent mature language (despite the bugs), with > coherent libraries. > I will take the time to make a document for the helpers to appreciate > our philosophy and allow them not to try to model the programming > style of other languages in Gambas. > Gambas have a advantage, its natively RAD, so along that its so easy to understand the learning curve its great! (but not same easy to implement) but when we arrive at in a point of complicated things, complex projects, problems start! along this, the documentation and point of knoledge its emials and english based... well, by me, i'll write in few dais an article describin how to deploy gambas web applications in the two differents mode and in the most used servers.. as cgi or wrapper cgi... > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From shordi at ...626... Sat Mar 25 22:40:24 2017 From: shordi at ...626... (=?UTF-8?Q?Jorge_Carri=C3=B3n?=) Date: Sat, 25 Mar 2017 22:40:24 +0100 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: Fabian: +1 :) 2017-03-25 16:51 GMT+01:00 Fabien Bodard : > A long thought in bazaar... > > > I think, the first job is to teach a new time to developpers how to > develop. There is nothing great in the code i've sended, juste the > evidence. > > I've start learnin coding in gwbasic and qbasic... well not the best > to start. Now we have better languages like python, java, c# and > i've the impression that taking one hour for making the lacking > function,has become something insurmountable (in this case 10 minutes > for me). > > In the past I had no choice, no internet, if I wanted something or if > it did not exist, you had to buy it or create it (sometimes find it in > a book). Honestly, today I have reproduced so much with Gambas that I > think we can almost do everything. What is lacking in Gambas is > documentation. Unfortunately, we do not have time to write it because > we have grown up and have a lot of work now. All I can do is swing > from time to time a spade on the mailing list to help the newcomers to > understand the pattern of thought behind Gambas. Because I see that > this is also the problem. Whether at the level of the language or at > the level of the arrangement of forms, at the level of the event > structure (gridview, drawingarea and many other widgets), the choices > are quite innovative and destabilizing. Gambas is not there to replace > or compete with other languages, it is as in kungfu there are several > phylosophy and it is one among others. > To summarize it is not the language in itself that must be understood, > but the phylsophy of development. For the language, there is the wiki. > For phylosophy ... we'll have to bend over. > > Benoit, had said that language was able to appreciate different types > of procedural, object or event programming. But with time I realize > that the object / event couple is dominant and that this is our > signature somehow. > > Today it is a coherent mature language (despite the bugs), with > coherent libraries. > > By experience, it is not necessary to copy a code from one language to > another, but a concept. What it lacks for me would be a UML > integrator, which would make it easier to manipulate the concepts of a > project. > ? > I think over time have spotted key points that make Gambas more > difficult to digest for developers a bit too pampered. > > I will take the time to make a document for the helpers to appreciate > our philosophy and allow them not to try to model the programming > style of other languages in Gambas. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From bagonergi at ...626... Sun Mar 26 16:00:44 2017 From: bagonergi at ...626... (Gianluigi) Date: Sun, 26 Mar 2017 16:00:44 +0200 Subject: [Gambas-user] WebView scroll value Message-ID: You can get and set the value of the scroll in a WebView? Regards Gianluigi From jussi.lahtinen at ...626... Mon Mar 27 02:11:21 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Mar 2017 03:11:21 +0300 Subject: [Gambas-user] Time, date & Settings Message-ID: Hi! I'm trying to figure way to handle time & date correctly, ignoring timezone and "daylight saving" adjustments. I can't get things work nicely with settings component as it does not save&load the value in universal format. Example if you write settings in English and open them in Finnish, you will get silent error: Print Settings[sPath &/ "Date&Time", Null] 03/27/2017 12:00:00 <--- this is correct time Print Val(Settings[sPath &/ "Date&Time", Null]) This returns nothing, not even error. Print CDate(Settings[sPath &/ "Date&Time", Null]) 27.03.2017 09.00.00 <--- this is incorrect time This is from the GAlarm project and I want to ignore timezones etc, because I want the alarms go off accordingly to the computer clock. IE alarm set to go off at 12:00 should go off, if computer clock shows 12:00. Not at 09:00, because I cannot know what timezone the user meant, so I always assume local. Do I have to write seconds, minutes, hours, etc separately in the settings or could this be fixed somehow..? Jussi From bugtracker at ...3416... Mon Mar 27 02:47:24 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 27 Mar 2017 00:47:24 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1094: Wait command freezes when clock is adjusted back Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1094&from=L21haW4- Jussi LAHTINEN reported a new bug. Summary ------- Wait command freezes when clock is adjusted back Type : Bug Priority : Medium Gambas version : 3.9.90 (TRUNK) Product : Language Description ----------- Run attached project and set computer clock backwards, example from 13:00 --> 12:55. Now the execution hangs on the wait command. System information ------------------ [System] Gambas=3.9.90 r8103 OperatingSystem=Linux Kernel=3.19.0-32-generic Architecture=x86_64 Distribution=Linux Mint 17.3 Rosa Desktop=CINNAMON Theme=Gtk Language=en_US.UTF-8 Memory=7984M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] CLUTTER_BACKEND=x11 CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-oD84rm5VhP,guid=7b8e8a6b325153919d4ac6da58d7d35b DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path DESKTOP_SESSION=cinnamon DISPLAY=:0.0 GB_GUI=gb.qt4 GB_PROFILE_MAX=1000 GDMSESSION=cinnamon GDM_XSERVER_LOCATION=local GIO_LAUNCHED_DESKTOP_FILE=/Desktop/Gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=14099 GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_KEYRING_CONTROL=/run/user/1000/keyring-mdThqd GPG_AGENT_INFO=/run/user/1000/keyring-mdThqd/gpg:0:1 GTK_IM_MODULE=xim HOME= INSIDE_NEMO_PYTHON= LANG=en_US.UTF-8 LC_ADDRESS=fi_FI.UTF-8 LC_IDENTIFICATION=fi_FI.UTF-8 LC_MEASUREMENT=fi_FI.UTF-8 LC_MONETARY=fi_FI.UTF-8 LC_NAME=fi_FI.UTF-8 LC_NUMERIC=fi_FI.UTF-8 LC_PAPER=fi_FI.UTF-8 LC_TELEPHONE=fi_FI.UTF-8 LC_TIME=en_US.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path MDMSESSION=cinnamon MDM_LANG=en_US.UTF-8 MDM_XSERVER_LOCATION=local PAPERSIZE=letter PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= QT4_IM_MODULE=xim QT_STYLE_OVERRIDE=gtk SESSION_MANAGER=local/:@/tmp/.ICE-unix/1580,unix/:/tmp/.ICE-unix/1580 SHELL=/bin/bash SSH_AGENT_PID=1702 SSH_AUTH_SOCK=/run/user/1000/keyring-mdThqd/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 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:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=5a45fa29109f0ee2389b1b0355283726-1490539355.230306-1686786609 XDG_SESSION_DESKTOP=cinnamon XDG_SESSION_ID=c1 XDG_VTNR=8 XMODIFIERS=@...3498...=none From bugtracker at ...3416... Mon Mar 27 02:47:59 2017 From: bugtracker at ...3416... (bugtracker at ...3416...) Date: Mon, 27 Mar 2017 00:47:59 GMT Subject: [Gambas-user] [Gambas Bug Tracker] Bug #1094: Wait command freezes when clock is adjusted back In-Reply-To: References: Message-ID: http://gambaswiki.org/bugtracker/edit?object=BUG.1094&from=L21haW4- Jussi LAHTINEN added an attachment: testwait2-0.0.1.tar.gz From mckaygerhard at ...626... Mon Mar 27 06:01:26 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 27 Mar 2017 00:01:26 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: in the more and more lack of documentation in spanish and differences respect others languajes (i'm not programer), triying to develop a web page in gabmas (to large scale) its dificult later to mantain.. just taking a look to the gambas forge at the svn in sourceforge.. for people that "wants" to contribute its very tedious and in few days interes are loose quickly... that's my point in the ohter mail.. i now get in understand that gambas force use many alias urls, and has 3 kind of parameters once its for a main section, that determines the "kind" of software (main page, forums, wiki or forge) second its a section of that firts.. the other i cannot understand still also, why hide the urls? and in the ide its hard to debug due the variable CGI_SCRIPT are not used in the IDE, due runs in embebed server, rather that the generated gforge.gambas.cgi program... or gambas its just for "great programers"? also there's so many hardcode typing urls Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-25 17:40 GMT-04:00 Jorge Carri?n : > Fabian: +1 :) > > 2017-03-25 16:51 GMT+01:00 Fabien Bodard : > > > A long thought in bazaar... > > > > > > I think, the first job is to teach a new time to developpers how to > > develop. There is nothing great in the code i've sended, juste the > > evidence. > > > > I've start learnin coding in gwbasic and qbasic... well not the best > > to start. Now we have better languages like python, java, c# and > > i've the impression that taking one hour for making the lacking > > function,has become something insurmountable (in this case 10 minutes > > for me). > > > > In the past I had no choice, no internet, if I wanted something or if > > it did not exist, you had to buy it or create it (sometimes find it in > > a book). Honestly, today I have reproduced so much with Gambas that I > > think we can almost do everything. What is lacking in Gambas is > > documentation. Unfortunately, we do not have time to write it because > > we have grown up and have a lot of work now. All I can do is swing > > from time to time a spade on the mailing list to help the newcomers to > > understand the pattern of thought behind Gambas. Because I see that > > this is also the problem. Whether at the level of the language or at > > the level of the arrangement of forms, at the level of the event > > structure (gridview, drawingarea and many other widgets), the choices > > are quite innovative and destabilizing. Gambas is not there to replace > > or compete with other languages, it is as in kungfu there are several > > phylosophy and it is one among others. > > To summarize it is not the language in itself that must be understood, > > but the phylsophy of development. For the language, there is the wiki. > > For phylosophy ... we'll have to bend over. > > > > Benoit, had said that language was able to appreciate different types > > of procedural, object or event programming. But with time I realize > > that the object / event couple is dominant and that this is our > > signature somehow. > > > > Today it is a coherent mature language (despite the bugs), with > > coherent libraries. > > > > By experience, it is not necessary to copy a code from one language to > > another, but a concept. What it lacks for me would be a UML > > integrator, which would make it easier to manipulate the concepts of a > > project. > > ? > > I think over time have spotted key points that make Gambas more > > difficult to digest for developers a bit too pampered. > > > > I will take the time to make a document for the helpers to appreciate > > our philosophy and allow them not to try to model the programming > > style of other languages in Gambas. > > > > ------------------------------------------------------------ > > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From mckaygerhard at ...626... Mon Mar 27 06:25:17 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 27 Mar 2017 00:25:17 -0400 Subject: [Gambas-user] gambas web how to deploy (under construction) but minimal info ready Message-ID: http://qgqlochekone.blogspot.com/2017/03/gambas-como-publicar-web-how-to-deploy.html the main info are in spanish due i'm very bad to write.. but this info (and when complete) must be in the wiki.. its very tedius emit a mail and wait the reponse.. sorgeforce has very bad index and many times search does not return good result.. a deep manual search in the sourceforge archives of the list give better results for many problems that users want to investigate.. i do that due i'm not programer, and i not want others like me pass to same way : hard and dificulty Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From mckaygerhard at ...626... Mon Mar 27 07:27:44 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 27 Mar 2017 01:27:44 -0400 Subject: [Gambas-user] Time, date & Settings In-Reply-To: References: Message-ID: similar behavior occurs me when i swicht languajes and manipulates amounts in my POS system, in english vs spanish decimals alternate with "," and "." and theres no way to use an universa only form.. u must stored separated.. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com 2017-03-26 20:11 GMT-04:00 Jussi Lahtinen : > Hi! > I'm trying to figure way to handle time & date correctly, ignoring timezone > and "daylight saving" adjustments. I can't get things work nicely with > settings component as it does not save&load the value in universal format. > Example if you write settings in English and open them in Finnish, you will > get silent error: > > Print Settings[sPath &/ "Date&Time", Null] > 03/27/2017 12:00:00 <--- this is correct time > > Print Val(Settings[sPath &/ "Date&Time", Null]) > This returns nothing, not even error. > > Print CDate(Settings[sPath &/ "Date&Time", Null]) > 27.03.2017 09.00.00 <--- this is incorrect time > > This is from the GAlarm project and I want to ignore timezones etc, because > I want the alarms go off accordingly to the computer clock. IE alarm set to > go off at 12:00 should go off, if computer clock shows 12:00. Not at 09:00, > because I cannot know what timezone the user meant, so I always assume > local. > > > Do I have to write seconds, minutes, hours, etc separately in the settings > or could this be fixed somehow..? > > > > Jussi > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 27 10:41:00 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 27 Mar 2017 10:41:00 +0200 Subject: [Gambas-user] Time, date & Settings In-Reply-To: References: Message-ID: Le 27/03/2017 ? 07:27, PICCORO McKAY Lenz a ?crit : > similar behavior occurs me when i swicht languajes and manipulates amounts > in my POS system, in english vs spanish decimals alternate with "," and "." > and theres no way to use an universa only form.. > > u must stored separated.. > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-26 20:11 GMT-04:00 Jussi Lahtinen : > >> Hi! >> I'm trying to figure way to handle time & date correctly, ignoring timezone >> and "daylight saving" adjustments. I can't get things work nicely with >> settings component as it does not save&load the value in universal format. >> Example if you write settings in English and open them in Finnish, you will >> get silent error: >> >> Print Settings[sPath &/ "Date&Time", Null] >> 03/27/2017 12:00:00 <--- this is correct time >> >> Print Val(Settings[sPath &/ "Date&Time", Null]) >> This returns nothing, not even error. >> >> Print CDate(Settings[sPath &/ "Date&Time", Null]) >> 27.03.2017 09.00.00 <--- this is incorrect time >> >> This is from the GAlarm project and I want to ignore timezones etc, because >> I want the alarms go off accordingly to the computer clock. IE alarm set to >> go off at 12:00 should go off, if computer clock shows 12:00. Not at 09:00, >> because I cannot know what timezone the user meant, so I always assume >> local. >> >> >> Do I have to write seconds, minutes, hours, etc separately in the settings >> or could this be fixed somehow..? >> >> >> >> Jussi Using the development version, you have to store your date in the settings file using CStr(), and read it using CDate(). Regards, -- Beno?t Minisini From jussi.lahtinen at ...626... Mon Mar 27 17:02:16 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Mon, 27 Mar 2017 18:02:16 +0300 Subject: [Gambas-user] Time, date & Settings In-Reply-To: References: Message-ID: > Using the development version, you have to store your date in the > settings file using CStr(), and read it using CDate(). > That does not work if the settings file is written in English and opened in Finnish. CDate() just fails silently (returns null). Jussi From gambas at ...1... Mon Mar 27 17:15:52 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 27 Mar 2017 17:15:52 +0200 Subject: [Gambas-user] Time, date & Settings In-Reply-To: References: Message-ID: Le 27/03/2017 ? 17:02, Jussi Lahtinen a ?crit : >> Using the development version, you have to store your date in the >> settings file using CStr(), and read it using CDate(). >> > > That does not work if the settings file is written in English and opened in > Finnish. CDate() just fails silently (returns null). > > > Jussi It should not with the development version, as CDate() and CStr() only use the american format. -- Beno?t Minisini From gambas.fr at ...626... Mon Mar 27 18:38:50 2017 From: gambas.fr at ...626... (Fabien Bodard) Date: Mon, 27 Mar 2017 18:38:50 +0200 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: Hi Lenz, GambasForge was not an Community project but my own project at first. That's why it is not conventionnal. The goal was just to give a place for french people to share gambas programs and code piece. This was also for me my first try on gambas cgi. Why hidding urls ? well in fact it's not really hidding it's making it more human readable. In fact in a rewritted url you have all the needed stuff to generate the true url. http://gambasforge.org?section=forge&action=code&id=2 Main Sub Main() Call the dispacher thatcall the Function CCode.VoirCode 'It's ShowCode for english speakers Public Sub VoirCode() Dim tCode As Code Dim id As Integer 'check the id value integrity If IsInteger(Request.Get!id) Then id = Request.Get!id If id < 1 Then Error.Raise("Invalid id.") 'Getting the code datas in a specialzed structure tCode = MCode.VoirCode(Id) If Not tCode Then Main.Erreur("Ce code n'existe pas.") Main.RedirectPage("forge.html") Return Endif ' Get the code commentary if any tCode.Commentaires = MCode.VoirCommentaires(tCode.Id) 'Drawing the page ' Call the common header CMain.Top() 'Add some scripts ThisPage.Scripts.Add("js/forge.js") ThisPage.StyleSheets.Add("css/code.css") ' Adding the codepage VCode.VoirCode(tCode, MMain.MembreConnecte()) 'add the bottom CMain.Bottom 'Render the full tree at once Main.Show End All the site is based on a virtual html Dom Tree. That during this period that i've begin my idea of Html tree. And then Adrien have re writted all the stuff in C and generated the gb.xml.html component. The advantage of the tree is I can modify my header or adding some script from every where. So for example the VoirCode function can display Messages in the standart header. Then with the time some part become objects like HtmlRecaptcha there are all stored in FormElements sub directory. 2017-03-27 6:01 GMT+02:00 PICCORO McKAY Lenz : > in the more and more lack of documentation in spanish and differences > respect others languajes (i'm not programer), triying to develop a web page > in gabmas (to large scale) its dificult later to mantain.. > > just taking a look to the gambas forge at the svn in sourceforge.. for > people that "wants" to contribute its very tedious and in few days interes > are loose quickly... that's my point in the ohter mail.. > > i now get in understand that gambas force use many alias urls, and has 3 > kind of parameters > > once its for a main section, that determines the "kind" of software (main > page, forums, wiki or forge) > > second its a section of that firts.. > > the other i cannot understand still > > also, why hide the urls? and in the ide its hard to debug due the variable > CGI_SCRIPT are not used in the IDE, due runs in embebed server, rather that > the generated gforge.gambas.cgi program... > > or gambas its just for "great programers"? > > also there's so many hardcode typing urls > > Lenz McKAY Gerardo (PICCORO) > http://qgqlochekone.blogspot.com > > 2017-03-25 17:40 GMT-04:00 Jorge Carri?n : > >> Fabian: +1 :) >> >> 2017-03-25 16:51 GMT+01:00 Fabien Bodard : >> >> > A long thought in bazaar... >> > >> > >> > I think, the first job is to teach a new time to developpers how to >> > develop. There is nothing great in the code i've sended, juste the >> > evidence. >> > >> > I've start learnin coding in gwbasic and qbasic... well not the best >> > to start. Now we have better languages like python, java, c# and >> > i've the impression that taking one hour for making the lacking >> > function,has become something insurmountable (in this case 10 minutes >> > for me). >> > >> > In the past I had no choice, no internet, if I wanted something or if >> > it did not exist, you had to buy it or create it (sometimes find it in >> > a book). Honestly, today I have reproduced so much with Gambas that I >> > think we can almost do everything. What is lacking in Gambas is >> > documentation. Unfortunately, we do not have time to write it because >> > we have grown up and have a lot of work now. All I can do is swing >> > from time to time a spade on the mailing list to help the newcomers to >> > understand the pattern of thought behind Gambas. Because I see that >> > this is also the problem. Whether at the level of the language or at >> > the level of the arrangement of forms, at the level of the event >> > structure (gridview, drawingarea and many other widgets), the choices >> > are quite innovative and destabilizing. Gambas is not there to replace >> > or compete with other languages, it is as in kungfu there are several >> > phylosophy and it is one among others. >> > To summarize it is not the language in itself that must be understood, >> > but the phylsophy of development. For the language, there is the wiki. >> > For phylosophy ... we'll have to bend over. >> > >> > Benoit, had said that language was able to appreciate different types >> > of procedural, object or event programming. But with time I realize >> > that the object / event couple is dominant and that this is our >> > signature somehow. >> > >> > Today it is a coherent mature language (despite the bugs), with >> > coherent libraries. >> > >> > By experience, it is not necessary to copy a code from one language to >> > another, but a concept. What it lacks for me would be a UML >> > integrator, which would make it easier to manipulate the concepts of a >> > project. >> > ? >> > I think over time have spotted key points that make Gambas more >> > difficult to digest for developers a bit too pampered. >> > >> > I will take the time to make a document for the helpers to appreciate >> > our philosophy and allow them not to try to model the programming >> > style of other languages in Gambas. >> > >> > ------------------------------------------------------------ >> > ------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Gambas-user mailing list >> > Gambas-user at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/gambas-user >> > >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Fabien Bodard From scribe at ...3643... Mon Mar 27 21:29:06 2017 From: scribe at ...3643... (Riccardo) Date: Mon, 27 Mar 2017 12:29:06 -0700 (MST) Subject: [Gambas-user] Help with Observer 'Stop Event' Message-ID: <1490642946726-58715.post@...3046...> I have an observer on a ValueBox control to prevent it changing to zero and to prevent it becoming larger than the value in a different ValueBox. Public Sub valNumObserver_change() If valNum.value = 0 Then valNum.Value = 1 If valNum.Value > valDen.Value Then Stop Event End With first case, where the zero value is changed to one, works. But the Stop Event doesn't do what I expect (it does nothing actually) in the second line... -- View this message in context: http://gambas.8142.n7.nabble.com/Help-with-Observer-Stop-Event-tp58715.html Sent from the gambas-user mailing list archive at Nabble.com. From taboege at ...626... Mon Mar 27 22:18:47 2017 From: taboege at ...626... (Tobias Boege) Date: Mon, 27 Mar 2017 22:18:47 +0200 Subject: [Gambas-user] Help with Observer 'Stop Event' In-Reply-To: <1490642946726-58715.post@...3046...> References: <1490642946726-58715.post@...3046...> Message-ID: <20170327201846.GB547@...3600...> On Mon, 27 Mar 2017, Riccardo wrote: > I have an observer on a ValueBox control to prevent it changing to zero and > to prevent it becoming larger than the value in a different ValueBox. > > Public Sub valNumObserver_change() > > If valNum.value = 0 Then valNum.Value = 1 > If valNum.Value > valDen.Value Then Stop Event > > End > > With first case, where the zero value is changed to one, works. But the Stop > Event doesn't do what I expect (it does nothing actually) in the second > line... > The documentation about Stop Event [1] says: This statement must be used in an event handler. It tells the interpreter that the event that called the event handler must be cancelled. This may have mislead you to overestimate what the interpreter does when it encounters a Stop Event. What roughly happens when an object raises an event, by using the Raise keyword, is: (1) all "before" observers receive the event, then (2) the default observer of the object receives the event, and lastly (3) all "after" observers receive the event. For each observer, the corresponding event handler is called and as soon as one of these event handlers use Stop Event, this whole chain is aborted. But that's about all the interpreter can do. It stops propagation of the event to later observers. Imagine that your Observer object is one of potentially many observers waiting in line to be notified of the ValueBox Change event. By using Stop Event you tell the interpreter to skip those observers behind you, which have not seen the event yet. At that point, the program flow gets back to the ValueBox -- but the important fact is, for the component programmer, the one who wrote the ValueBox code, obeying Stop Event is completely voluntary. What he does is out of the interpreter's reach. The programmer can choose to get a notification of whether the event was aborted by getting the return value of the Raise keyword: Dim bCancel As Boolean bCancel = Raise Change This value tells him if someone called Stop Event or not. But he is free to ignore that value, or to react to it however he wants. He may even abort the event whenever you tell him not to. Now look at the source code of ValueBox (comp/src/gb.form/.src/ValueBox.class): --8<---[ $ grep -C 2 "Raise Change" ValueBox.class ]-------- If $hTextBox.Text <> $sLastText Then $sLastText = $hTextBox.Text Raise Change Endif -- Public Sub DateBox_Change() Raise Change End -- Public Sub CurrencyBox_Change() Raise Change End -- Public Sub IpAddressBox_Change() Raise Change End --8<-------------------------------------------------------- The programmer chose to ignore Stop Event for every instance of raising the Change event [*]. I'm not sure if there is anything you can do about it, apart from dirty hacks or writing your own ValueBox. Maybe you should just try and ask Benoit to add support for Stop Event in the ValueBox. Regards, Tobi [*] This is normal actually. You can grep through the source tree for "= Raise" on the one hand and "^ *Raise" on the other. It gives me a ratio of 28/865, so about 3% of Raise statements even consider the possibility that the user Stop Event's them. This is only counting non-native Gambas events, though. [1] http://gambaswiki.org/wiki/lang/stopevent -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk From mckaygerhard at ...626... Mon Mar 27 22:50:19 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Mon, 27 Mar 2017 16:50:19 -0400 Subject: [Gambas-user] collection of collection problem In-Reply-To: References: <1490109866377-58659.post@...3046...> Message-ID: 2017-03-27 12:38 GMT-04:00 Fabien Bodard : > Hi Lenz, > > GambasForge was not an Community project but my own project at first. > That's why it is not conventionnal. > umm isuspect that but my hope was due the "framework" word as propaganda (i dont remenber where i read.. well whatever) http://gambasforge.org?section=forge&action=code&id=2 > > > 'check the id value integrity > If IsInteger(Request.Get!id) Then id = Request.Get!id > If id < 1 Then Error.Raise("Invalid id.") > > ' Get the code commentary if any > tCode.Commentaires = MCode.VoirCommentaires(tCode.Id) > these part its for comments.so.? > All the site is based on a virtual html Dom Tree. That during this > period that i've begin my idea of Html tree. And then Adrien have re > writted all the stuff in C and generated the gb.xml.html component. > that's awesome.. the gb.xml module are so usefully for parsing some socket messages and emulates and webservice.. my only problem its a lack of authentication and session handler now that's the reason of the tree parsing mode of the code.. thanks for clarify... > The advantage of the tree is I can modify my header or adding some > script from every where. So for example the VoirCode function can > display Messages in the standart header. Then with the time some part > become objects like HtmlRecaptcha there are all stored in FormElements > sub directory. > that part its quite complicated for me, but dont worry i'm studing right now all the realted theme... > > > > 2017-03-27 6:01 GMT+02:00 PICCORO McKAY Lenz : > > in the more and more lack of documentation in spanish and differences > > respect others languajes (i'm not programer), triying to develop a web > page > > in gabmas (to large scale) its dificult later to mantain.. > > > > just taking a look to the gambas forge at the svn in sourceforge.. for > > people that "wants" to contribute its very tedious and in few days > interes > > are loose quickly... that's my point in the ohter mail.. > > > > i now get in understand that gambas force use many alias urls, and has 3 > > kind of parameters > > > > once its for a main section, that determines the "kind" of software (main > > page, forums, wiki or forge) > > > > second its a section of that firts.. > > > > the other i cannot understand still > > > > also, why hide the urls? and in the ide its hard to debug due the > variable > > CGI_SCRIPT are not used in the IDE, due runs in embebed server, rather > that > > the generated gforge.gambas.cgi program... > > > > or gambas its just for "great programers"? > > > > also there's so many hardcode typing urls > > > > Lenz McKAY Gerardo (PICCORO) > > http://qgqlochekone.blogspot.com > > > > 2017-03-25 17:40 GMT-04:00 Jorge Carri?n : > > > >> Fabian: +1 :) > >> > >> 2017-03-25 16:51 GMT+01:00 Fabien Bodard : > >> > >> > A long thought in bazaar... > >> > > >> > > >> > I think, the first job is to teach a new time to developpers how to > >> > develop. There is nothing great in the code i've sended, juste the > >> > evidence. > >> > > >> > I've start learnin coding in gwbasic and qbasic... well not the best > >> > to start. Now we have better languages like python, java, c# and > >> > i've the impression that taking one hour for making the lacking > >> > function,has become something insurmountable (in this case 10 minutes > >> > for me). > >> > > >> > In the past I had no choice, no internet, if I wanted something or if > >> > it did not exist, you had to buy it or create it (sometimes find it in > >> > a book). Honestly, today I have reproduced so much with Gambas that I > >> > think we can almost do everything. What is lacking in Gambas is > >> > documentation. Unfortunately, we do not have time to write it because > >> > we have grown up and have a lot of work now. All I can do is swing > >> > from time to time a spade on the mailing list to help the newcomers to > >> > understand the pattern of thought behind Gambas. Because I see that > >> > this is also the problem. Whether at the level of the language or at > >> > the level of the arrangement of forms, at the level of the event > >> > structure (gridview, drawingarea and many other widgets), the choices > >> > are quite innovative and destabilizing. Gambas is not there to replace > >> > or compete with other languages, it is as in kungfu there are several > >> > phylosophy and it is one among others. > >> > To summarize it is not the language in itself that must be understood, > >> > but the phylsophy of development. For the language, there is the wiki. > >> > For phylosophy ... we'll have to bend over. > >> > > >> > Benoit, had said that language was able to appreciate different types > >> > of procedural, object or event programming. But with time I realize > >> > that the object / event couple is dominant and that this is our > >> > signature somehow. > >> > > >> > Today it is a coherent mature language (despite the bugs), with > >> > coherent libraries. > >> > > >> > By experience, it is not necessary to copy a code from one language to > >> > another, but a concept. What it lacks for me would be a UML > >> > integrator, which would make it easier to manipulate the concepts of a > >> > project. > >> > ? > >> > I think over time have spotted key points that make Gambas more > >> > difficult to digest for developers a bit too pampered. > >> > > >> > I will take the time to make a document for the helpers to appreciate > >> > our philosophy and allow them not to try to model the programming > >> > style of other languages in Gambas. > >> > > >> > ------------------------------------------------------------ > >> > ------------------ > >> > Check out the vibrant tech community on one of the world's most > >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> > _______________________________________________ > >> > Gambas-user mailing list > >> > Gambas-user at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > >> ------------------------------------------------------------ > >> ------------------ > >> Check out the vibrant tech community on one of the world's most > >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > -- > Fabien Bodard > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Mon Mar 27 22:55:11 2017 From: gambas at ...1... (=?UTF-8?Q?Beno=c3=aet_Minisini?=) Date: Mon, 27 Mar 2017 22:55:11 +0200 Subject: [Gambas-user] Help with Observer 'Stop Event' In-Reply-To: <20170327201846.GB547@...3600...> References: <1490642946726-58715.post@...3046...> <20170327201846.GB547@...3600...> Message-ID: <024f9b94-0834-3cdb-277a-e5359e070138@...1...> Le 27/03/2017 ? 22:18, Tobias Boege a ?crit : > On Mon, 27 Mar 2017, Riccardo wrote: >> I have an observer on a ValueBox control to prevent it changing to zero and >> to prevent it becoming larger than the value in a different ValueBox. >> >> Public Sub valNumObserver_change() >> >> If valNum.value = 0 Then valNum.Value = 1 >> If valNum.Value > valDen.Value Then Stop Event >> >> End >> >> With first case, where the zero value is changed to one, works. But the Stop >> Event doesn't do what I expect (it does nothing actually) in the second >> line... >> > > The documentation about Stop Event [1] says: > > This statement must be used in an event handler. It tells the interpreter > that the event that called the event handler must be cancelled. > > This may have mislead you to overestimate what the interpreter does when > it encounters a Stop Event. > > What roughly happens when an object raises an event, by using the Raise > keyword, is: (1) all "before" observers receive the event, then (2) the > default observer of the object receives the event, and lastly (3) all > "after" observers receive the event. For each observer, the corresponding > event handler is called and as soon as one of these event handlers use > Stop Event, this whole chain is aborted. > > But that's about all the interpreter can do. It stops propagation of the > event to later observers. Imagine that your Observer object is one of > potentially many observers waiting in line to be notified of the ValueBox > Change event. By using Stop Event you tell the interpreter to skip those > observers behind you, which have not seen the event yet. > > At that point, the program flow gets back to the ValueBox -- but the > important fact is, for the component programmer, the one who wrote the > ValueBox code, obeying Stop Event is completely voluntary. What he does > is out of the interpreter's reach. > > The programmer can choose to get a notification of whether the event was > aborted by getting the return value of the Raise keyword: > > Dim bCancel As Boolean > > bCancel = Raise Change > > This value tells him if someone called Stop Event or not. But he is free > to ignore that value, or to react to it however he wants. He may even abort > the event whenever you tell him not to. > > Now look at the source code of ValueBox (comp/src/gb.form/.src/ValueBox.class): > > --8<---[ $ grep -C 2 "Raise Change" ValueBox.class ]-------- > If $hTextBox.Text <> $sLastText Then > $sLastText = $hTextBox.Text > Raise Change > Endif > > -- > Public Sub DateBox_Change() > > Raise Change > > End > -- > Public Sub CurrencyBox_Change() > > Raise Change > > End > -- > Public Sub IpAddressBox_Change() > > Raise Change > > End > --8<-------------------------------------------------------- > > The programmer chose to ignore Stop Event for every instance of raising the > Change event [*]. I'm not sure if there is anything you can do about it, > apart from dirty hacks or writing your own ValueBox. Maybe you should just > try and ask Benoit to add support for Stop Event in the ValueBox. > > Regards, > Tobi > > [*] This is normal actually. You can grep through the source tree for > "= Raise" on the one hand and "^ *Raise" on the other. It gives me > a ratio of 28/865, so about 3% of Raise statements even consider the > possibility that the user Stop Event's them. This is only counting > non-native Gambas events, though. > > [1] http://gambaswiki.org/wiki/lang/stopevent > The "Change" event means that something has changed. So there is no point in cancelling it, you cannot change the past. -- Beno?t Minisini From jussi.lahtinen at ...626... Tue Mar 28 03:06:34 2017 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Tue, 28 Mar 2017 04:06:34 +0300 Subject: [Gambas-user] Time, date & Settings In-Reply-To: References: Message-ID: OK, forgot to update Gambas on my virtual machine... But now there is another problem. I'm in UTC+3, and when I write the time (example 12:00) with CStr(), it will be 15:00 in the settings file. Now if I go to UTC-0, I will get the alarm when my computer clock shows 15:00. I want it always assume local time. Example if I have meeting in UK at 31.3.2017 12:00, I want simply set the alarm for 31.3.2017 12:00, independently of where I'm now. The device I'm using should worry about timezones not me. Jussi On Mon, Mar 27, 2017 at 6:15 PM, Beno?t Minisini < gambas at ...1...> wrote: > Le 27/03/2017 ? 17:02, Jussi Lahtinen a ?crit : > >> Using the development version, you have to store your date in the > >> settings file using CStr(), and read it using CDate(). > >> > > > > That does not work if the settings file is written in English and opened > in > > Finnish. CDate() just fails silently (returns null). > > > > > > Jussi > > It should not with the development version, as CDate() and CStr() only > use the american format. > > -- > Beno?t Minisini > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From scribe at ...3643... Tue Mar 28 09:11:40 2017 From: scribe at ...3643... (Riccardo) Date: Tue, 28 Mar 2017 00:11:40 -0700 (MST) Subject: [Gambas-user] Help with Observer 'Stop Event' In-Reply-To: <024f9b94-0834-3cdb-277a-e5359e070138@...1...> References: <1490642946726-58715.post@...3046...> <20170327201846.GB547@...3600...> <024f9b94-0834-3cdb-277a-e5359e070138@...1...> Message-ID: <1490685100399-58720.post@...3046...> Thank you both for the clarification ... both GAMBAS, and this forum, are amazing! -- View this message in context: http://gambas.8142.n7.nabble.com/Help-with-Observer-Stop-Event-tp58715p58720.html Sent from the gambas-user mailing list archive at Nabble.com. From mckaygerhard at ...626... Wed Mar 29 03:48:00 2017 From: mckaygerhard at ...626... (PICCORO McKAY Lenz) Date: Tue, 28 Mar 2017 21:48:00 -0400 Subject: [Gambas-user] solved compatibility when gambas unable to connect svn if upgrade subversion to lasted Message-ID: Subversion 1.8.0 has switched from neon to serf for HTTP access. The Serf-based HTTP access library would use chunked transfer encoding for most requests. BAsically i test a new linux and lasted gambas agains my older but faster powered debian lenny and subversion server (older too).. found two problems when retrieved the checkout project with gabmas: CASE 1: 411 Length required:POST of '/svn/project1/!svn/me': 411 Length Required CASE 2: 413 Request entity too large: Unexpected HTTP status 413 'Request Entity Too Large' Quick solution was a simple option to added to our local user config file: http://qgqlochekone.blogspot.com/2017/03/gambasrapidsvnsubversion-avoit-413.html the article also explain more fine tune for servers and clients, but here i'll resume what we do: A "http-chunked-requests" option has been added to the ~/.subversion/servers per user configuration file. Users who wish to avoid the additional request (solving the problem) may set that option to "no" in order to short-circuit the additional request and avoid those problems of compatibility. When using clients version 1.8/1.9, agains olders servers 1.7/1.6/1.5 versions, you must set this to "no" in order to avoid the described problems. No problem if use already again newer servers too. Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com From rwe-sse at ...3629... Wed Mar 29 10:51:14 2017 From: rwe-sse at ...3629... (Rolf-Werner Eilert) Date: Wed, 29 Mar 2017 10:51:14 +0200 Subject: [Gambas-user] Help with Observer 'Stop Event' In-Reply-To: <1490642946726-58715.post@...3046...> References: <1490642946726-58715.post@...3046...> Message-ID: <58DB7582.3040708@...3629...> Am 27.03.2017 21:29, schrieb Riccardo: > I have an observer on a ValueBox control to prevent it changing to zero and > to prevent it becoming larger than the value in a different ValueBox. > > Public Sub valNumObserver_change() > > If valNum.value = 0 Then valNum.Value = 1 > If valNum.Value > valDen.Value Then Stop Event > > End > > With first case, where the zero value is changed to one, works. But the Stop > Event doesn't do what I expect (it does nothing actually) in the second > line... > When valNumObserver_change() starts, the Value has already been changed. So why not changing it back as you do in line 1? If valNum.Value > valDen.Value Then valNum.Value = valDen.Value Regards Rolf