From vuott at ...325... Thu Mar 1 00:26:25 2012 From: vuott at ...325... (Ru Vuott) Date: Wed, 29 Feb 2012 23:26:25 +0000 (GMT) Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? Message-ID: <1330557985.70810.YahooMailClassic@...2758...> Hello Benoit, with new Gridview I noticed that is not possible write: Gridview1.Columns.WIDTH = number Now there are only: Count H Height Max Resizable. Maybe, WIDTH in future revisions ? Bye Vuott From abbat.81 at ...787... Thu Mar 1 00:52:04 2012 From: abbat.81 at ...787... (abbat) Date: Wed, 29 Feb 2012 15:52:04 -0800 (PST) Subject: [Gambas-user] R: Process in TableVew and to Kill a Process - RECTIUS In-Reply-To: <1330556055.21300.YahooMailClassic@...2691...> References: <33417515.post@...1379...> <1330555250.56060.YahooMailClassic@...2748...> <1330556055.21300.YahooMailClassic@...2691...> Message-ID: <33417896.post@...1379...> It works only if I use Button1 (If we execute an app ourselves). But how to kill process if we know only Name? Thanks Vuott wrote: > > ' Gambas class file > > Private hpro As Process > > > Public Sub Button1_Click() > > ' An application start, i.e. ? Gedit ? > ? hpro = Exec ["gedit"] As "hpro" > > End > > > Public Sub button2_Click() > > ' it closes application process > ? hpro.kill > > End > > > ' this event is raised, when process is closed: > Public Sub hpro_Kill() > > ???Print "Process closed !" > > End > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Process-in-TableVew-and-to-Kill-a-Process-tp33417515p33417896.html Sent from the gambas-user mailing list archive at Nabble.com. From emil.lenngren at ...626... Thu Mar 1 00:54:33 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Thu, 1 Mar 2012 00:54:33 +0100 Subject: [Gambas-user] R: Process in TableVew and to Kill a Process - RECTIUS In-Reply-To: <33417896.post@...1379...> References: <33417515.post@...1379...> <1330555250.56060.YahooMailClassic@...2748...> <1330556055.21300.YahooMailClassic@...2691...> <33417896.post@...1379...> Message-ID: Try this: Exec("killall program_name") 2012/3/1 abbat > > It works only if I use Button1 (If we execute an app ourselves). > But how to kill process if we know only Name? > Thanks > > > Vuott wrote: > > > > ' Gambas class file > > > > Private hpro As Process > > > > > > Public Sub Button1_Click() > > > > ' An application start, i.e. ? Gedit ? > > hpro = Exec ["gedit"] As "hpro" > > > > End > > > > > > Public Sub button2_Click() > > > > ' it closes application process > > hpro.kill > > > > End > > > > > > ' this event is raised, when process is closed: > > Public Sub hpro_Kill() > > > > Print "Process closed !" > > > > End > > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > -- > View this message in context: > http://old.nabble.com/Process-in-TableVew-and-to-Kill-a-Process-tp33417515p33417896.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Thu Mar 1 01:19:07 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Mar 2012 00:19:07 +0000 (GMT) Subject: [Gambas-user] R: Process in TableVew and to Kill a Process - RECTIUS In-Reply-To: Message-ID: <1330561147.57697.YahooMailClassic@...2695...> By trying: Exec ["killall program_name"] it gives me an error: "Cannot run child process: cannot exec program: resource temporarily unavailable" But by using: SHELL "killall program_name" it's OK . --- Gio 1/3/12, Emil Lenngren ha scritto: > Da: Emil Lenngren > Oggetto: Re: [Gambas-user] R: Process in TableVew and to Kill a Process - RECTIUS > A: "mailing list for gambas users" > Data: Gioved? 1 marzo 2012, 00:54 > Try this: Exec("killall > program_name") > > 2012/3/1 abbat > > > > > It works only if I use Button1 (If we execute an app > ourselves). > > But how to kill process if we know only Name? > > Thanks > > > > > > Vuott wrote: > > > > > > ' Gambas class file > > > > > > Private hpro As Process > > > > > > > > > Public Sub Button1_Click() > > > > > >? ' An application start, i.e. ? Gedit ? > > >? ? hpro = Exec ["gedit"] As "hpro" > > > > > > End > > > > > > > > > Public Sub button2_Click() > > > > > >? ' it closes application process > > >? ? hpro.kill > > > > > >? End > > > > > > > > > ' this event is raised, when process is closed: > > >? Public Sub hpro_Kill() > > > > > >? ? Print "Process closed !" > > > > > >? End > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Virtualization & Cloud Management Using > Capacity Planning > > > Cloud computing makes use of virtualization - but > cloud computing > > > also focuses on allowing computing to be delivered > as a service. > > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > -- > > View this message in context: > > http://old.nabble.com/Process-in-TableVew-and-to-Kill-a-Process-tp33417515p33417896.html > > Sent from the gambas-user mailing list archive at > Nabble.com. > > > > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity > Planning > > Cloud computing makes use of virtualization - but cloud > computing > > also focuses on allowing computing to be delivered as a > service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity > Planning > Cloud computing makes use of virtualization - but cloud > computing > also focuses on allowing computing to be delivered as a > service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Mar 1 01:37:11 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 01 Mar 2012 01:37:11 +0100 Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <1330557985.70810.YahooMailClassic@...2758...> References: <1330557985.70810.YahooMailClassic@...2758...> Message-ID: <4F4EC4B7.9090200@...1...> Le 01/03/2012 00:26, Ru Vuott a ?crit : > Hello Benoit, > > with new Gridview I noticed that is not possible write: > > Gridview1.Columns.WIDTH = number > > Now there are only: > Count > H > Height > Max > Resizable. > > Maybe, WIDTH in future revisions ? > > Bye > Vuott > What do you want that to do? Setting the same width to all columns? -- Beno?t Minisini From vuott at ...325... Thu Mar 1 01:46:22 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Mar 2012 00:46:22 +0000 (GMT) Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <4F4EC4B7.9090200@...1...> Message-ID: <1330562782.73843.YahooMailClassic@...2748...> Yes, Benoit, before it was possible. An little exemple (before): With GridView1 .columns.Count = 34 .Rows.Count = 12 .Columns.Width = 12 ' <------------- !!!! .Rows.Height = 16 .Font.Size = 9 .Font.Bold = True End With Now, it's not possible !!! How can I set all columns of grid of my "old" program ? :-( Bye Vuott --- Gio 1/3/12, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? > A: "mailing list for gambas users" > Data: Gioved? 1 marzo 2012, 01:37 > Le 01/03/2012 00:26, Ru Vuott a > ?crit : > > Hello Benoit, > > > > with new Gridview? I noticed that is not possible > write: > > > >???Gridview1.Columns.WIDTH = number > > > > Now there are only: > >???Count > >???H > >???Height > >???Max > >???Resizable. > > > > Maybe, WIDTH in future revisions ? > > > > Bye > > Vuott > > > > What do you want that to do? Setting the same width to all > columns? > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity > Planning > Cloud computing makes use of virtualization - but cloud > computing > also focuses on allowing computing to be delivered as a > service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From willy at ...2734... Thu Mar 1 03:11:13 2012 From: willy at ...2734... (Willy Raets) Date: Thu, 01 Mar 2012 03:11:13 +0100 Subject: [Gambas-user] Gambas runtime Message-ID: <1330567873.2263.9.camel@...2735...> Hi, I'm trying to figure out if it is possible to detect the gambas runtime version in a command line manner, to be used in EXEC? Any ideas? Willy From rterry at ...1823... Thu Mar 1 04:22:01 2012 From: rterry at ...1823... (richard terry) Date: Thu, 1 Mar 2012 14:22:01 +1100 Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <1330557985.70810.YahooMailClassic@...2758...> References: <1330557985.70810.YahooMailClassic@...2758...> Message-ID: <201203011422.01859.rterry@...1823...> On Thursday 01 March 2012 10:26:25 Ru Vuott wrote: > Hello Benoit, > > with new Gridview I noticed that is not possible write: > > Gridview1.Columns.WIDTH = number With gridview1 .columns.count = 2 .columns[0].width = 60 .columns[0].width = 22 etc etc end with > > Now there are only: > Count > H > Height > Max > Resizable. > > Maybe, WIDTH in future revisions ? > > Bye > Vuott > > --------------------------------------------------------------------------- > --- Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From girardhenri at ...67... Thu Mar 1 08:04:27 2012 From: girardhenri at ...67... (girard henri) Date: Thu, 1 Mar 2012 08:04:27 +0100 Subject: [Gambas-user] gambas3 ans debain squeeze In-Reply-To: <33415029.post@...1379...> References: <33410649.post@...1379...> <33413267.post@...1379...> <4F4E24A4.60106@...2382...> <33414841.post@...1379...> <33415029.post@...1379...> Message-ID: I don't know if you have gambas3 in your repository ? If yes then with a apt-get build-dep gambas3 should help you finding most of libs. Maybe you can add an ppa there are few now. I use 12.04 for few months now and the only problem i got was one week ago which is corrected now. Le 29/02/2012 16:59, TME a ?crit : > Jussi Lahtinen yes i know ! > before post here i tried this web :working: > > I post message here because in list french gambas user, Beno?t Minisini say > me that there is an error in list of package for Debian and gambas 3! > Beno?t Minisini => "Cette ligne est pour Gambas 2 apparemment, pas pour > Gambas 3. La > personne qui a ?crit ?a a fait une erreur." > > > > > > > > Jussi Lahtinen wrote: >> http://gambasdoc.org/help/doc/distro?en&view >> http://gambasdoc.org/help/install?en&view >> >> Jussi >> >> >> >> On Wed, Feb 29, 2012 at 17:31, TME wrote: >> >>> Thank you for your replies >>> >>> I tried with library Ubuntu Lucid, Ubuntu Maverick, and other library >>> Ubuntu >>> I have always the same result : >>> ===> >>> GTK+ toolkit is disabled >>> Cairo component is disabled ,FreeType backend for Cairo is disabled >>> Image loading and saving is disabled >>> GNU Scientific Library component is disabled >>> THESE COMPONENTS ARE DISABLED: >>> gb.cairo >>> gb.gsl >>> gb.gtk >>> gb.image.io >>> >>> Nobody has installed Gambas3 on Debian squeeze with KDE ? >>> >>> >>> >>> >>> Jesus-21 wrote: >>>> El 29/02/12 13:08, TME escribi?: >>>>> Hi >>>>> >>>>> I tried to complier with the package for Ubuntu Lucid >>>>> The result for /config -C give me that : >>>>> || >>>>> || GTK+ toolkit is disabled >>>>> || >>>>> || Cairo component is disabled >>>>> || FreeType backend for Cairo is disabled >>>>> || >>>>> || Image loading and saving is disabled >>>>> || >>>>> || GNU Scientific Library component is disabled >>>>> || >>>>> || THESE COMPONENTS ARE DISABLED: >>>>> || - gb.cairo >>>>> || - gb.gsl >>>>> || - gb.gtk >>>>> || - gb.image.io >>>>> >>>>> Somebody would know he to which packages-dev it corresponds? >>>>> >>>>> Thank you for your replie >>>>> regards >>>>> jean-luc >>>>> >>>> >>>> Hi jean-luc >>>> >>>> As stated in the wiki, http://gambasdoc.org/help/install/ubuntu?v3 >>>> these are the dependencies for Ubuntu which is based on Debian. >>>> Try with these, may be some of them should not be exact, but you are in >>>> the way. Look in your package manager for similar names. >>>> >>>> sudo apt-get install build-essential autoconf libbz2-dev libfbclient2 >>>> libmysqlclient-dev unixodbc-dev libpq-dev libsqlite0-dev libsqlite3-dev >>>> libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev libgtkglext1-dev >>>> libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev >>> libsdl-image1.2-dev >>>> libsage-dev libxml2-dev libxslt1-dev libbonobo2-dev libcos4-dev >>>> libomniorb4-dev librsvg2-dev libpoppler-dev libpoppler-glib-dev >>>> libasound2-dev libesd0-dev libdirectfb-dev libaa1-dev libxtst-dev >>>> libffi-dev kdelibs4-dev firebird2.1-dev libqt4-dev libglew1.5-dev >>>> libimlib2-dev libv4l-dev libsdl-ttf2.0-dev libgnome-keyring-dev >>>> libgdk-pixbuf2.0-dev linux-libc-dev >>>> >>>> Regards >>>> -- >>>> Jesus Guardon >>>> >>>> >>> ------------------------------------------------------------------------------ >>>> Virtualization& Cloud Management Using Capacity Planning >>>> Cloud computing makes use of virtualization - but cloud computing >>>> also focuses on allowing computing to be delivered as a service. >>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> -- >>> View this message in context: >>> http://old.nabble.com/gambas3-ans-debain-squeeze-tp33410649p33414841.html >>> Sent from the gambas-user mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Virtualization& Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> ------------------------------------------------------------------------------ >> Virtualization& Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> From john.aaron.rose at ...626... Thu Mar 1 08:49:05 2012 From: john.aaron.rose at ...626... (John Rose) Date: Thu, 01 Mar 2012 07:49:05 +0000 Subject: [Gambas-user] DataSource & DataBrowser problem Message-ID: <1330588145.3793.74.camel@...2661...> Re question on whether I use gb.gtk or gb.qt4: I specified gb.gui only i.e. neither gb.gtk nor gb.qt4. Since I'm using Ubuntu, I understand that this results in gb.gtk being used. Le 29/02/2012 10:10, John Rose a ?crit : > I just installed all Gambas3 packages from kendek's launchpad ppa for > Gambas pre-release: he created them yesterday evening after using > subversion. How do I find out the version number of Gambas3 that he used > apart from asking him? Ask him : or find the package creation date, I will guess the revison number from it. Usually the revision number is put in the package name. > > The previous problem is fixed when I try to add a new row to a SQLite3 > database table (i.e. the display of a popup stating "Cannot modify > record: SQL error or missing database". However, there are now new > problems: > > When the DataBrowser control is initialised, the left hand side of it > points to the centre of the data (with the 'scrolling' point matching > that) rather than the left of the data as it used to do. > > When the 'New' icon is clicked (to add a new row), the cursor does not > move automatically to that row. > > When the 'Save' icon is clicked, no save of data takes place (checked by > closing the app& starting it again) unless the 'New' icon is clicked > again (that also causes the left hand side of it to point to the centre > of the data). > From eilert-sprachen at ...221... Thu Mar 1 08:58:12 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 01 Mar 2012 08:58:12 +0100 Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <1330562782.73843.YahooMailClassic@...2748...> References: <1330562782.73843.YahooMailClassic@...2748...> Message-ID: <4F4F2C14.40803@...221...> You could at least re-write the code to somewhat like FOR iCol = 1 TO 33 'or 0 to 33? GridView1.Columns[iCol].Width = number NEXT By the way, would this run? Never tried it: With GridView1 .columns.Count = 34 .Rows.Count = 12 FOR iCol = 1 TO 33 'or 0 to 33? .Columns[iCol].Width = number NEXT .Rows.Height = 16 .Font.Size = 9 .Font.Bold = True End With Regards Rolf Am 01.03.2012 01:46, schrieb Ru Vuott: > Yes, Benoit, before it was possible. > > An little exemple (before): > > With GridView1 > .columns.Count = 34 > .Rows.Count = 12 > .Columns.Width = 12 '<------------- !!!! > .Rows.Height = 16 > .Font.Size = 9 > .Font.Bold = True > End With > > > Now, it's not possible !!! > How can I set all columns of grid of my "old" program ? :-( > > Bye > Vuott > > > > > --- Gio 1/3/12, Beno?t Minisini ha scritto: > >> Da: Beno?t Minisini >> Oggetto: Re: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? >> A: "mailing list for gambas users" >> Data: Gioved? 1 marzo 2012, 01:37 >> Le 01/03/2012 00:26, Ru Vuott a >> ?crit : >>> Hello Benoit, >>> >>> with new Gridview I noticed that is not possible >> write: >>> >>> Gridview1.Columns.WIDTH = number >>> >>> Now there are only: >>> Count >>> H >>> Height >>> Max >>> Resizable. >>> >>> Maybe, WIDTH in future revisions ? >>> >>> Bye >>> Vuott >>> >> >> What do you want that to do? Setting the same width to all >> columns? >> >> -- >> Beno?t Minisini >> >> ------------------------------------------------------------------------------ >> Virtualization& Cloud Management Using Capacity >> Planning >> Cloud computing makes use of virtualization - but cloud >> computing >> also focuses on allowing computing to be delivered as a >> service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Mar 1 12:42:57 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Thu, 01 Mar 2012 12:42:57 +0100 Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <1330562782.73843.YahooMailClassic@...2748...> References: <1330562782.73843.YahooMailClassic@...2748...> Message-ID: <4F4F60C1.50907@...1...> Le 01/03/2012 01:46, Ru Vuott a ?crit : > Yes, Benoit, before it was possible. > > An little exemple (before): > > With GridView1 > .columns.Count = 34 > .Rows.Count = 12 > .Columns.Width = 12 '<------------- !!!! > .Rows.Height = 16 > .Font.Size = 9 > .Font.Bold = True > End With > > > Now, it's not possible !!! > How can I set all columns of grid of my "old" program ? :-( > > Bye > Vuott > Done in revision #4519. Regards, -- Beno?t Minisini From tobiasboege01 at ...1601... Thu Mar 1 14:17:41 2012 From: tobiasboege01 at ...1601... (tobi) Date: Thu, 1 Mar 2012 14:17:41 +0100 Subject: [Gambas-user] R: Process in TableVew and to Kill a Process - RECTIUS In-Reply-To: <1330561147.57697.YahooMailClassic@...2695...> References: <1330561147.57697.YahooMailClassic@...2695...> Message-ID: <20120301131741.GA636@...2774...> hi, On Thu, 01 Mar 2012, Ru Vuott wrote: > By trying: > > Exec ["killall program_name"] > > it gives me an error: > "Cannot run child process: cannot exec program: resource temporarily unavailable" > > > But by using: > > SHELL "killall program_name" > > it's OK > . > > > --- Gio 1/3/12, Emil Lenngren ha scritto: > > > Da: Emil Lenngren > > Oggetto: Re: [Gambas-user] R: Process in TableVew and to Kill a Process - RECTIUS > > A: "mailing list for gambas users" > > Data: Gioved? 1 marzo 2012, 00:54 > > Try this: Exec("killall > > program_name") > > > > 2012/3/1 abbat > > > > > > > > It works only if I use Button1 (If we execute an app > > ourselves). > > > But how to kill process if we know only Name? > > > Thanks > > > > > > > > > Vuott wrote: > > > > > > > > ' Gambas class file > > > > > > > > Private hpro As Process > > > > > > > > > > > > Public Sub Button1_Click() > > > > > > > >? ' An application start, i.e. ? Gedit ? > > > >? ? hpro = Exec ["gedit"] As "hpro" > > > > > > > > End > > > > > > > > > > > > Public Sub button2_Click() > > > > > > > >? ' it closes application process > > > >? ? hpro.kill > > > > > > > >? End > > > > > > > > > > > > ' this event is raised, when process is closed: > > > >? Public Sub hpro_Kill() > > > > > > > >? ? Print "Process closed !" > > > > > > > >? End > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Virtualization & Cloud Management Using > > Capacity Planning > > > > Cloud computing makes use of virtualization - but > > cloud computing > > > > also focuses on allowing computing to be delivered > > as a service. > > > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > > _______________________________________________ > > > > Gambas-user mailing list > > > > Gambas-user at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > > > > > > > > > > -- > > > View this message in context: > > > http://old.nabble.com/Process-in-TableVew-and-to-Kill-a-Process-tp33417515p33417896.html > > > Sent from the gambas-user mailing list archive at > > Nabble.com. > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Virtualization & Cloud Management Using Capacity > > Planning > > > Cloud computing makes use of virtualization - but cloud > > computing > > > also focuses on allowing computing to be delivered as a > > service. > > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity > > Planning > > Cloud computing makes use of virtualization - but cloud > > computing > > also focuses on allowing computing to be delivered as a > > service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user if i remember correctly EXEC is an interface to the exec family of syscalls. so writing EXEC ["killall prgname"] will result in the program "killall prgname" to be executed. i suggest that none of your programs is named like that (i can't interpret the error message for it is not in the manual of the exec family of functions, so i may be wrong with all this). you could try using EXEC ["killall", "prgname"] which will call the program killall with "prgname" as parameter. regards, tobi From vuott at ...325... Thu Mar 1 14:24:24 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Mar 2012 13:24:24 +0000 (GMT) Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <4F4F60C1.50907@...1...> Message-ID: <1330608264.79836.YahooMailClassic@...2695...> Yes, Benoit ! Now it's all OK !!! Thanks ! Paolo --- Gio 1/3/12, Beno?t Minisini ha scritto: > Da: Beno?t Minisini > Oggetto: Re: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? > A: "mailing list for gambas users" > Data: Gioved? 1 marzo 2012, 12:42 > Le 01/03/2012 01:46, Ru Vuott a > ?crit : > > Yes, Benoit, before it was possible. > > > > An little exemple (before): > > > >? ???With GridView1 > >? ? ? .columns.Count = 34 > >? ? ? .Rows.Count = 12 > >? ? ? .Columns.Width = > 12???'<------------- !!!! > >? ? ? .Rows.Height = 16 > >? ? ? .Font.Size = 9 > >? ? ? .Font.Bold = True > >? ? End With > > > > > > Now, it's not possible !!! > > How can I set all columns of grid of my "old" program > ?? :-( > > > > Bye > > Vuott > > > > Done in revision #4519. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity > Planning > Cloud computing makes use of virtualization - but cloud > computing > also focuses on allowing computing to be delivered as a > service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Thu Mar 1 14:30:41 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Mar 2012 13:30:41 +0000 (GMT) Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <4F4F2C14.40803@...221...> Message-ID: <1330608641.5215.YahooMailClassic@...2695...> Uhmmm... thanks, but before (and now reinstated by Benoit) it was shortest way then For etc etc !!! --- Gio 1/3/12, Rolf-Werner Eilert ha scritto: > Da: Rolf-Werner Eilert > Oggetto: Re: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? > A: gambas-user at lists.sourceforge.net > Data: Gioved? 1 marzo 2012, 08:58 > You could at least re-write the code > to somewhat like > > FOR iCol = 1 TO 33? 'or 0 to 33? > ???GridView1.Columns[iCol].Width = number > NEXT > > By the way, would this run? Never tried it: > > ? ? With GridView1 > ? ???.columns.Count = 34 > ? ???.Rows.Count = 12 > > FOR iCol = 1 TO 33? 'or 0 to 33? > ???.Columns[iCol].Width = number > NEXT > > ? ???.Rows.Height = 16 > ? ???.Font.Size = 9 > ? ???.Font.Bold = True > ???End With > > Regards > > Rolf > > > Am 01.03.2012 01:46, schrieb Ru Vuott: > > Yes, Benoit, before it was possible. > > > > An little exemple (before): > > > >? ???With GridView1 > >? ? ? .columns.Count = 34 > >? ? ? .Rows.Count = 12 > >? ? ? .Columns.Width = > 12???'<------------- !!!! > >? ? ? .Rows.Height = 16 > >? ? ? .Font.Size = 9 > >? ? ? .Font.Bold = True > >? ? End With > > > > > > Now, it's not possible !!! > > How can I set all columns of grid of my "old" program > ?? :-( > > > > Bye > > Vuott > > > > > > > > > > --- Gio 1/3/12, Beno?t Minisini? > ha scritto: > > > >> Da: Beno?t Minisini > >> Oggetto: Re: [Gambas-user] Why not? > .Columns.WIDTH = nn? in new Gridview ? > >> A: "mailing list for gambas users" > >> Data: Gioved? 1 marzo 2012, 01:37 > >> Le 01/03/2012 00:26, Ru Vuott a > >> ?crit : > >>> Hello Benoit, > >>> > >>> with new Gridview? I noticed that is not > possible > >> write: > >>> > >>>? ???Gridview1.Columns.WIDTH > = number > >>> > >>> Now there are only: > >>>? ???Count > >>>? ???H > >>>? ???Height > >>>? ???Max > >>>? ???Resizable. > >>> > >>> Maybe, WIDTH in future revisions ? > >>> > >>> Bye > >>> Vuott > >>> > >> > >> What do you want that to do? Setting the same width > to all > >> columns? > >> > >> -- > >> Beno?t Minisini > >> > >> > ------------------------------------------------------------------------------ > >> Virtualization&? Cloud Management Using > Capacity > >> Planning > >> Cloud computing makes use of virtualization - but > cloud > >> computing > >> also focuses on allowing computing to be delivered > as a > >> service. > >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ > >> _______________________________________________ > >> Gambas-user mailing list > >> Gambas-user at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/gambas-user > >> > > > > > ------------------------------------------------------------------------------ > > Virtualization&? Cloud Management Using > Capacity Planning > > Cloud computing makes use of virtualization - but cloud > computing > > also focuses on allowing computing to be delivered as a > service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity > Planning > Cloud computing makes use of virtualization - but cloud > computing > also focuses on allowing computing to be delivered as a > service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From vuott at ...325... Thu Mar 1 14:34:18 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Mar 2012 13:34:18 +0000 (GMT) Subject: [Gambas-user] R: Process in TableVew and to Kill a Process - RECTIUS In-Reply-To: <20120301131741.GA636@...2774...> Message-ID: <1330608858.68649.YahooMailClassic@...2758...> Hello, yes, my friend, so it works ! Exec ["killall", "prgname"] Very good ! bye Paolo > > if i remember correctly EXEC is an interface to the exec > family of syscalls. so writing EXEC > ["killall prgname"] will result in the program "killall > prgname" to be executed. i suggest that none > of your programs is named like that (i can't interpret the > error message for it is not in the manual > of the exec family of functions, so i may be wrong with all > this). you could try using EXEC > ["killall", "prgname"] which will call the program killall > with "prgname" as parameter. > > regards, > tobi > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity > Planning > Cloud computing makes use of virtualization - but cloud > computing > also focuses on allowing computing to be delivered as a > service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From tobiasboege01 at ...1601... Thu Mar 1 14:55:19 2012 From: tobiasboege01 at ...1601... (tobi) Date: Thu, 1 Mar 2012 14:55:19 +0100 Subject: [Gambas-user] Gambas runtime In-Reply-To: <1330567873.2263.9.camel@...2735...> References: <1330567873.2263.9.camel@...2735...> Message-ID: <20120301135519.GB636@...2774...> hi, On Thu, 01 Mar 2012, Willy Raets wrote: > Hi, > > I'm trying to figure out if it is possible to detect the gambas runtime > version in a command line manner, to be used in EXEC? > > Any ideas? > > Willy > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user won't "gbx3 --version" (or gbx2) do the trick? i don't consider it that important but shouldn't it be accessible from within, like from a constant in the interpreter? regards, tobi From eilert-sprachen at ...221... Thu Mar 1 15:41:59 2012 From: eilert-sprachen at ...221... (Rolf-Werner Eilert) Date: Thu, 01 Mar 2012 15:41:59 +0100 Subject: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? In-Reply-To: <1330608641.5215.YahooMailClassic@...2695...> References: <1330608641.5215.YahooMailClassic@...2695...> Message-ID: <4F4F8AB7.1050703@...221...> And once again, Benoit was faster than we all :-) Regards Rolf Am 01.03.2012 14:30, schrieb Ru Vuott: > Uhmmm... thanks, but before (and now reinstated by Benoit) it was shortest way then For etc etc !!! > > > > > --- Gio 1/3/12, Rolf-Werner Eilert ha scritto: > >> Da: Rolf-Werner Eilert >> Oggetto: Re: [Gambas-user] Why not .Columns.WIDTH = nn in new Gridview ? >> A: gambas-user at lists.sourceforge.net >> Data: Gioved? 1 marzo 2012, 08:58 >> You could at least re-write the code >> to somewhat like >> >> FOR iCol = 1 TO 33 'or 0 to 33? >> GridView1.Columns[iCol].Width = number >> NEXT >> >> By the way, would this run? Never tried it: >> >> With GridView1 >> .columns.Count = 34 >> .Rows.Count = 12 >> >> FOR iCol = 1 TO 33 'or 0 to 33? >> .Columns[iCol].Width = number >> NEXT >> >> .Rows.Height = 16 >> .Font.Size = 9 >> .Font.Bold = True >> End With >> >> Regards >> >> Rolf >> >> >> Am 01.03.2012 01:46, schrieb Ru Vuott: >>> Yes, Benoit, before it was possible. >>> >>> An little exemple (before): >>> >>> With GridView1 >>> .columns.Count = 34 >>> .Rows.Count = 12 >>> .Columns.Width = >> 12 '<------------- !!!! >>> .Rows.Height = 16 >>> .Font.Size = 9 >>> .Font.Bold = True >>> End With >>> >>> >>> Now, it's not possible !!! >>> How can I set all columns of grid of my "old" program >> ? :-( >>> >>> Bye >>> Vuott >>> >>> >>> >>> >>> --- Gio 1/3/12, Beno?t Minisini >> ha scritto: >>> >>>> Da: Beno?t Minisini >>>> Oggetto: Re: [Gambas-user] Why not >> .Columns.WIDTH = nn in new Gridview ? >>>> A: "mailing list for gambas users" >>>> Data: Gioved? 1 marzo 2012, 01:37 >>>> Le 01/03/2012 00:26, Ru Vuott a >>>> ?crit : >>>>> Hello Benoit, >>>>> >>>>> with new Gridview I noticed that is not >> possible >>>> write: >>>>> >>>>> Gridview1.Columns.WIDTH >> = number >>>>> >>>>> Now there are only: >>>>> Count >>>>> H >>>>> Height >>>>> Max >>>>> Resizable. >>>>> >>>>> Maybe, WIDTH in future revisions ? >>>>> >>>>> Bye >>>>> Vuott >>>>> >>>> >>>> What do you want that to do? Setting the same width >> to all >>>> columns? >>>> >>>> -- >>>> Beno?t Minisini >>>> >>>> >> ------------------------------------------------------------------------------ >>>> Virtualization& Cloud Management Using >> Capacity >>>> Planning >>>> Cloud computing makes use of virtualization - but >> cloud >>>> computing >>>> also focuses on allowing computing to be delivered >> as a >>>> service. >>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>> _______________________________________________ >>>> Gambas-user mailing list >>>> Gambas-user at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>> >>> >> ------------------------------------------------------------------------------ >>> Virtualization& Cloud Management Using >> Capacity Planning >>> Cloud computing makes use of virtualization - but cloud >> computing >>> also focuses on allowing computing to be delivered as a >> service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> ------------------------------------------------------------------------------ >> Virtualization& Cloud Management Using Capacity >> Planning >> Cloud computing makes use of virtualization - but cloud >> computing >> also focuses on allowing computing to be delivered as a >> service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From rterry at ...1823... Thu Mar 1 22:19:31 2012 From: rterry at ...1823... (richard terry) Date: Fri, 2 Mar 2012 08:19:31 +1100 Subject: [Gambas-user] gridview vertical header again Message-ID: <201203020819.31644.rterry@...1823...> Benoit, Thanks for fixing the side vertical header when used on left to fit the text. Question/request. I notice there is essenially a full character width on either side of the text - wastes quite a bit of screen real estate. Any changfe of making it a tighter fit - then if anyone really wanted it to be wider they could put an ascii 32 infront/end of their text. Otherwise the grid seems to be working well. Regards richard From abbat.81 at ...787... Thu Mar 1 22:39:52 2012 From: abbat.81 at ...787... (abbat) Date: Thu, 1 Mar 2012 13:39:52 -0800 (PST) Subject: [Gambas-user] Import code to EXEC from file Message-ID: <33424578.post@...1379...> I have now on Button1 next: Public Sub button1_Click() Exec ["killall", "tvtime"] Exec ["killall", "leafpad"] Exec ["killall", "abiword"] End Help me please do that if I have in file ~/prkill next: Exec ["killall", "tvtime"] Exec ["killall", "leafpad"] Exec ["killall", "abiword"] and how to import file ~/prkill and execute code from file. Public Sub button1_Click() ???????????? End Sorry for such question and thanks for Your time anyway. -- View this message in context: http://old.nabble.com/Import-code-to-EXEC-from-file-tp33424578p33424578.html Sent from the gambas-user mailing list archive at Nabble.com. From emil.lenngren at ...626... Thu Mar 1 22:42:22 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Thu, 1 Mar 2012 22:42:22 +0100 Subject: [Gambas-user] Import code to EXEC from file In-Reply-To: <33424578.post@...1379...> References: <33424578.post@...1379...> Message-ID: For reading from a file: http://gambasdoc.org/help/lang/lineinput?v3 Then for each line, execute the command you want (i.e. the string in the file). /Emil 2012/3/1 abbat > > I have now on Button1 next: > > Public Sub button1_Click() > > Exec ["killall", "tvtime"] > Exec ["killall", "leafpad"] > Exec ["killall", "abiword"] > > End > > Help me please do that if I have in file ~/prkill next: > > Exec ["killall", "tvtime"] > Exec ["killall", "leafpad"] > Exec ["killall", "abiword"] > > and how to import file ~/prkill and execute code from file. > > Public Sub button1_Click() > ???????????? > End > > > Sorry for such question and thanks for Your time anyway. > > -- > View this message in context: > http://old.nabble.com/Import-code-to-EXEC-from-file-tp33424578p33424578.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Thu Mar 1 22:44:19 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Thu, 01 Mar 2012 22:44:19 +0100 Subject: [Gambas-user] DataSource & DataBrowser problem In-Reply-To: <1330588145.3793.74.camel@...2661...> References: <1330588145.3793.74.camel@...2661...> Message-ID: <4F4FEDB3.8020804@...1...> Le 01/03/2012 08:49, John Rose a ?crit : > Re question on whether I use gb.gtk or gb.qt4: I specified gb.gui only > i.e. neither gb.gtk nor gb.qt4. Since I'm using Ubuntu, I understand > that this results in gb.gtk being used. > I cannot reproduce with gb.gtk what you are talking about. It behaves normally on my machine. Can you isolate the problem in a small project? Another point: please *answer* mails that are in the same thread. Do not create a new mail each time, because then it is very difficult to follow the talk. Regards, -- Beno?t Minisini From vuott at ...325... Fri Mar 2 00:16:47 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Mar 2012 23:16:47 +0000 (GMT) Subject: [Gambas-user] New GridView... another problem (?) Message-ID: <1330643807.76639.YahooMailClassic@...2758...> Hello, I come back to new GridView object. I noticed that, when I run a program containing a GridView, inside the gridview - in bottom - there's a white and empty area ! Even though I change gridview height, this strange white area persists. Is it normal ??? Regards Paolo From vuott at ...325... Fri Mar 2 00:23:38 2012 From: vuott at ...325... (Ru Vuott) Date: Thu, 1 Mar 2012 23:23:38 +0000 (GMT) Subject: [Gambas-user] New GridView... another problem (?) - BIS In-Reply-To: <1330643807.76639.YahooMailClassic@...2758...> Message-ID: <1330644218.4528.YahooMailClassic@...2748...> I measured that white area on the screen by using a square: it's height about cm 2,2 ! --- Ven 2/3/12, Ru Vuott ha scritto: > Da: Ru Vuott > Oggetto: [Gambas-user] New GridView... another problem (?) > A: gambas at ...1... > Cc: gambas-user at lists.sourceforge.net > Data: Venerd? 2 marzo 2012, 00:16 > Hello, > > I come back to new GridView object. > I noticed that, when I run a program containing a GridView, > inside the gridview - in bottom - there's a white and empty > area ! > Even though I change gridview height, this strange white > area persists. > > Is it normal ??? > > Regards > Paolo > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity > Planning > Cloud computing makes use of virtualization - but cloud > computing > also focuses on allowing computing to be delivered as a > service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Fri Mar 2 00:51:31 2012 From: gambas at ...1... (=?UTF-8?B?QmVub8OudCBNaW5pc2luaQ==?=) Date: Fri, 02 Mar 2012 00:51:31 +0100 Subject: [Gambas-user] Fwd: Re: New GridView... another problem (?) In-Reply-To: <4F500B66.6040507@...1...> References: <4F500B66.6040507@...1...> Message-ID: <4F500B83.5070108@...1...> -------- Message original -------- Sujet: Re: New GridView... another problem (?) Date : Fri, 02 Mar 2012 00:51:02 +0100 De : Beno?t Minisini Pour : Ru Vuott Le 02/03/2012 00:16, Ru Vuott a ?crit : > Hello, > > I come back to new GridView object. > I noticed that, when I run a program containing a GridView, inside the gridview - in bottom - there's a white and empty area ! > Even though I change gridview height, this strange white area persists. > > Is it normal ??? > > Regards > Paolo > Please provide a project that reproduces the bug so that I can fix it. Regards, -- Beno?t Minisini From gambas at ...2524... Fri Mar 2 00:54:13 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 01 Mar 2012 23:54:13 +0000 Subject: [Gambas-user] Issue 207 in gambas: Event Save get error at DataBrowser In-Reply-To: <1-6813199134517018827-3591540882422464748-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-3591540882422464748-gambas=googlecode.com@...2524...> <0-6813199134517018827-3591540882422464748-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-3591540882422464748-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #2 on issue 207 by benoit.m... at ...626...: Event Save get error at DataBrowser http://code.google.com/p/gambas/issues/detail?id=207 Is it fixed in revision #4520 or later? From gambas at ...2524... Fri Mar 2 00:58:15 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Thu, 01 Mar 2012 23:58:15 +0000 Subject: [Gambas-user] Issue 208 in gambas: DataBrowser not have property "Grid" in property panel IDE. In-Reply-To: <0-6813199134517018827-17115019145429178783-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-17115019145429178783-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-17115019145429178783-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 208 by benoit.m... at ...626...: DataBrowser not have property "Grid" in property panel IDE. http://code.google.com/p/gambas/issues/detail?id=208 Fixed in revision #4503. From gambas at ...2524... Fri Mar 2 01:02:20 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 00:02:20 +0000 Subject: [Gambas-user] Issue 211 in gambas: Gridview multiselect In-Reply-To: <0-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Updates: Status: NeedsInfo Labels: -Version Version-TRUNK Comment #1 on issue 211 by benoit.m... at ...626...: Gridview multiselect http://code.google.com/p/gambas/issues/detail?id=211 Is it fixed in revision #4520 or later? From gambas at ...2524... Fri Mar 2 01:06:25 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 00:06:25 +0000 Subject: [Gambas-user] Issue 217 in gambas: Reducing the number of panels in a toolpanel crashes the IDE In-Reply-To: <0-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 217 by benoit.m... at ...626...: Reducing the number of panels in a toolpanel crashes the IDE http://code.google.com/p/gambas/issues/detail?id=217 (No comment was entered for this change.) From gambas at ...2524... Fri Mar 2 02:22:40 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 01:22:40 +0000 Subject: [Gambas-user] Issue 217 in gambas: Reducing the number of panels in a toolpanel crashes the IDE In-Reply-To: <1-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> <0-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #2 on issue 217 by benoit.m... at ...626...: Reducing the number of panels in a toolpanel crashes the IDE http://code.google.com/p/gambas/issues/detail?id=217 Fixed in revision #4521. From gambas at ...1... Fri Mar 2 03:31:12 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Mar 2012 03:31:12 +0100 Subject: [Gambas-user] Possible suggestion/question In-Reply-To: <20120225181102.M28648@...951...> References: <20120225181102.M28648@...951...> Message-ID: <4F5030F0.1040904@...1...> Le 25/02/2012 19:18, nando a ?crit : > Benoit, > > I came across the need to call many different common small pieces of code multiple times. > Naturally, we tend to make a SUB just for all of them. > > I wondered if you'd consider resurrecting GOSUB {label} > which is in the same sub. > > It would be in the same scope, no parameters allowed and > acts just like a leaf subroutine with only return on the stack > and no formal stack frame. It's also part compromise to embedded SUBs > > Would overal execution run faster ? > > ?? > -Fernando > It may be a little bit faster. You can check that by simulate the GOSUB with some GOTOs and compare the speed with a similar function call. Anyway, there is a syntax problem. In Basic, GOSUB is ended by a RETURN instruction, but RETURN is already used to exit the all function. Or maybe RETURN will return from the function only if there is no pending GOSUB. Can you test if there is any speed gain I as said above? I don't have the time to do that now. If the speed gain is worth it, then I may implement GOSUB! Regards, -- Beno?t Minisini From support at ...2529... Fri Mar 2 05:37:20 2012 From: support at ...2529... (John Spikowski) Date: Thu, 01 Mar 2012 20:37:20 -0800 Subject: [Gambas-user] Possible suggestion/question In-Reply-To: <4F5030F0.1040904@...1...> References: <20120225181102.M28648@...951...> <4F5030F0.1040904@...1...> Message-ID: <1330663040.3198.17.camel@...1833...> On Fri, 2012-03-02 at 03:31 +0100, Beno?t Minisini wrote: > Anyway, there is a syntax problem. In Basic, GOSUB is ended by a RETURN > instruction, but RETURN is already used to exit the all function. Or > maybe RETURN will return from the function only if there is no pending > GOSUB. > Most Basic languages allow exiting a GOSUB and not RETURNing. GOTO is pretty smart in SciptBasic and used to prematurely exit any stack tracking structure and cleans up on the way out. In ScriptBasic the function name is used rather then RETURN. FUNCTION myfunc () myfunc = 1 END FUNCTION From charles at ...1784... Fri Mar 2 11:00:02 2012 From: charles at ...1784... (charlesg) Date: Fri, 2 Mar 2012 02:00:02 -0800 (PST) Subject: [Gambas-user] Issue 211 in gambas: Gridview multiselect In-Reply-To: <1-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> <1-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Message-ID: <33427204.post@...1379...> Gridview multiselect ver 4522, lubuntu 11.10 32bit 1) Now works consistently GTK/QT. 2) ctrl-click adds correctly. click new line removes previous selection. All OK 3) select line then shift-click another does not add block on either gtk/qt thanks gambas-4 wrote: > > Updates: > Status: NeedsInfo > Labels: -Version Version-TRUNK > > Comment #1 on issue 211 by benoit.m... at ...626...: Gridview multiselect > http://code.google.com/p/gambas/issues/detail?id=211 > > Is it fixed in revision #4520 or later? > -- View this message in context: http://old.nabble.com/Issue-211-in-gambas%3A-Gridview-multiselect-tp33314986p33427204.html Sent from the gambas-user mailing list archive at Nabble.com. From gambas at ...2524... Fri Mar 2 11:53:16 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 10:53:16 +0000 Subject: [Gambas-user] Issue 217 in gambas: Reducing the number of panels in a toolpanel crashes the IDE In-Reply-To: <2-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> <0-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-8106490441900654920-gambas=googlecode.com@...2524...> Comment #3 on issue 217 by adamn... at ...626...: Reducing the number of panels in a toolpanel crashes the IDE http://code.google.com/p/gambas/issues/detail?id=217 Sorry Benoit, at rev 4522 this still happens. All I get is : [bb at ...2711... gambas3]$ ./gambas3.gambas gb.qt4: warning: unable to load Qt translation: en_AU.UTF-8 Segmentation fault Bruce From mohareve at ...626... Fri Mar 2 12:37:38 2012 From: mohareve at ...626... (M. Cs.) Date: Fri, 2 Mar 2012 12:37:38 +0100 Subject: [Gambas-user] Possible suggestion/question In-Reply-To: <1330663040.3198.17.camel@...1833...> References: <20120225181102.M28648@...951...> <4F5030F0.1040904@...1...> <1330663040.3198.17.camel@...1833...> Message-ID: I red somewhere that GOTO is something that a good programer should avoid at all costs. GOTO is a host of countless bug possibilities. 2012/3/2, John Spikowski : > On Fri, 2012-03-02 at 03:31 +0100, Beno?t Minisini wrote: >> Anyway, there is a syntax problem. In Basic, GOSUB is ended by a RETURN >> instruction, but RETURN is already used to exit the all function. Or >> maybe RETURN will return from the function only if there is no pending >> GOSUB. >> > Most Basic languages allow exiting a GOSUB and not RETURNing. GOTO is > pretty smart in SciptBasic and used to prematurely exit any stack > tracking structure and cleans up on the way out. > > In ScriptBasic the function name is used rather then RETURN. > > FUNCTION myfunc () > > myfunc = 1 > > END FUNCTION > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From emil.lenngren at ...626... Fri Mar 2 13:10:05 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Fri, 2 Mar 2012 13:10:05 +0100 Subject: [Gambas-user] Possible suggestion/question In-Reply-To: References: <20120225181102.M28648@...951...> <4F5030F0.1040904@...1...> <1330663040.3198.17.camel@...1833...> Message-ID: GOTO is not evil, but can, if you do it "wrong", result in code that might be hard to read. For example, in C you can do like this: if (a){ goto a_label; } else { if (b){ switch(c){ case 1: puts("Hello"); break; case 2: puts("Yo"); break; a_label: puts("Tjena"); break; } } } And that is *not* a good structure of the program. In Gambas, you are not allowed to jump into a control structure like this, but only jump out. As long as the code has good structure, I see no problems with Gotos. And sometimes Goto is needed to get a good structure. /Emil 2012/3/2 M. Cs. > I red somewhere that GOTO is something that a good programer should > avoid at all costs. > GOTO is a host of countless bug possibilities. > > 2012/3/2, John Spikowski : > > On Fri, 2012-03-02 at 03:31 +0100, Beno?t Minisini wrote: > >> Anyway, there is a syntax problem. In Basic, GOSUB is ended by a RETURN > >> instruction, but RETURN is already used to exit the all function. Or > >> maybe RETURN will return from the function only if there is no pending > >> GOSUB. > >> > > Most Basic languages allow exiting a GOSUB and not RETURNing. GOTO is > > pretty smart in SciptBasic and used to prematurely exit any stack > > tracking structure and cleans up on the way out. > > > > In ScriptBasic the function name is used rather then RETURN. > > > > FUNCTION myfunc () > > > > myfunc = 1 > > > > END FUNCTION > > > > > > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From john.aaron.rose at ...626... Fri Mar 2 13:37:57 2012 From: john.aaron.rose at ...626... (John Rose) Date: Fri, 02 Mar 2012 12:37:57 +0000 Subject: [Gambas-user] DataSource & DataBrowser problem Message-ID: <1330691877.2900.6.camel@...2661...> Benoit, I have attached a Test project to this message. Sometimes I still get the display of a popup stating "Cannot modify record: SQL error or missing database". As I said previously, there are now new problems: When the DataBrowser control is initialised, the left hand side of it points to the centre of the data (with the 'scrolling' point matching that) rather than the left of the data as it used to do. When the 'New' icon is clicked (to add a new row), the cursor does not move automatically to that row. When the 'Save' icon is clicked, no save of data takes place (checked by closing the app & starting it again) unless the 'New' icon is clicked again (that also causes the left hand side of it to point to the centre of the data). I don't understand what you mean by "please *answer* mails that are in the same thread. Do not create a new mail each time, because then it is very difficult to follow the talk.". I don't receive an email message each time someone posts to the Gambas Mailing Lists: I have set my preference to receive the digest. This time I have set the subject to be "Re:....". Is that the correct method? -------------- next part -------------- A non-text attachment was scrubbed... Name: Test.tar.gz Type: application/x-compressed-tar Size: 13888 bytes Desc: not available URL: From gambas at ...2524... Fri Mar 2 18:53:03 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 17:53:03 +0000 Subject: [Gambas-user] Issue 218 in gambas: Escaping from a Try Message-ID: <0-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 218 by emil.len... at ...626...: Escaping from a Try http://code.google.com/p/gambas/issues/detail?id=218 1) Describe the problem. The compiler does not complain when you try to escape from a Try-statement, using 'Try Goto ...', 'Try Continue', 'Try Break', 'Try Return' and so on. This can cause some strange behaviour. 2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate): Version: TRUNK Revision: r4522 3) Provide a little project that reproduces the bug or the crash. Try Goto label Print "Should not be reachable" label: Print "label, "; Error.Raise("Hello") This code prints out the message "label, Should not be reachable". From gambas at ...2524... Fri Mar 2 19:25:43 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 18:25:43 +0000 Subject: [Gambas-user] Issue 218 in gambas: Escaping from a Try In-Reply-To: <0-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 218 by benoit.m... at ...626...: Escaping from a Try http://code.google.com/p/gambas/issues/detail?id=218 Yep. I'm not sure that this is a good idea to allow Try on all control flow instructions! The compiler should raise an error. From gambas at ...2524... Fri Mar 2 19:29:45 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 18:29:45 +0000 Subject: [Gambas-user] Issue 213 in gambas: The packager includes versioning systems hidden folders into results In-Reply-To: <0-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Updates: Status: Accepted Labels: -Version Version-TRUNK Comment #1 on issue 213 by benoit.m... at ...626...: The packager includes versioning systems hidden folders into results http://code.google.com/p/gambas/issues/detail?id=213 I know only svn. It would be cool to know what sort of hidden directories or files each versioning system use. From gambas at ...2524... Fri Mar 2 19:33:47 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 18:33:47 +0000 Subject: [Gambas-user] Issue 218 in gambas: Escaping from a Try In-Reply-To: <1-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> <0-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> Comment #2 on issue 218 by emil.len... at ...626...: Escaping from a Try http://code.google.com/p/gambas/issues/detail?id=218 Exactly :) From willy at ...2734... Fri Mar 2 19:41:23 2012 From: willy at ...2734... (Willy Raets) Date: Fri, 02 Mar 2012 19:41:23 +0100 Subject: [Gambas-user] Gambas runtime In-Reply-To: <20120301135519.GB636@...2774...> References: <1330567873.2263.9.camel@...2735...> <20120301135519.GB636@...2774...> Message-ID: <1330713683.3805.2.camel@...2735...> gbx is the interpreter. Is it always the same as the runtime version? If so, it will do the trick. I need it for some trouble in a distributed application only occuring when certain runtime seems to be a to low version. So the problem is not in my app, they just need a more recent runtime version and problem is solved. But I guess that means a more recent interpreter as well... Thanks, Willy On do, 2012-03-01 at 14:55 +0100, tobi wrote: > hi, > > On Thu, 01 Mar 2012, Willy Raets wrote: > > > Hi, > > > > I'm trying to figure out if it is possible to detect the gambas runtime > > version in a command line manner, to be used in EXEC? > > > > Any ideas? > > > > Willy > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > won't "gbx3 --version" (or gbx2) do the trick? > i don't consider it that important but shouldn't it be accessible from within, like from a constant > in the interpreter? > > regards, > tobi -- Met vriendelijke groeten/ With kind regards, Willy Raets, Voorzitter/chairman, Earthship Belgium vzw. Nederlandse website: http://www.earthshipbelgium.be/nl.html English Website: http://www.earthshipbelgium.be/en.html From willy at ...2734... Fri Mar 2 19:53:53 2012 From: willy at ...2734... (Willy Raets) Date: Fri, 02 Mar 2012 19:53:53 +0100 Subject: [Gambas-user] Gambas runtime In-Reply-To: <1330713683.3805.2.camel@...2735...> References: <1330567873.2263.9.camel@...2735...> <20120301135519.GB636@...2774...> <1330713683.3805.2.camel@...2735...> Message-ID: <1330714433.3805.4.camel@...2735...> Checking the way the runtime package is built I can safely presume that gbx2 or gbx3 version is runtime version as the whole package is about gbx :-) Thanks for getting me into the right direction.. Willy On vr, 2012-03-02 at 19:41 +0100, Willy Raets wrote: > gbx is the interpreter. > Is it always the same as the runtime version? > If so, it will do the trick. > > I need it for some trouble in a distributed application only occuring > when certain runtime seems to be a to low version. > So the problem is not in my app, they just need a more recent runtime > version and problem is solved. But I guess that means a more recent > interpreter as well... > > Thanks, > > Willy > > On do, 2012-03-01 at 14:55 +0100, tobi wrote: > > hi, > > > > On Thu, 01 Mar 2012, Willy Raets wrote: > > > > > Hi, > > > > > > I'm trying to figure out if it is possible to detect the gambas runtime > > > version in a command line manner, to be used in EXEC? > > > > > > Any ideas? > > > > > > Willy > > > > > > > > > ------------------------------------------------------------------------------ > > > Virtualization & Cloud Management Using Capacity Planning > > > Cloud computing makes use of virtualization - but cloud computing > > > also focuses on allowing computing to be delivered as a service. > > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > > > Gambas-user mailing list > > > Gambas-user at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > won't "gbx3 --version" (or gbx2) do the trick? > > i don't consider it that important but shouldn't it be accessible from within, like from a constant > > in the interpreter? > > > > regards, > > tobi > -- Met vriendelijke groeten/ With kind regards, Willy Raets, Voorzitter/chairman, Earthship Belgium vzw. Nederlandse website: http://www.earthshipbelgium.be/nl.html English Website: http://www.earthshipbelgium.be/en.html From jussi.lahtinen at ...626... Fri Mar 2 20:03:56 2012 From: jussi.lahtinen at ...626... (Jussi Lahtinen) Date: Fri, 2 Mar 2012 21:03:56 +0200 Subject: [Gambas-user] Possible suggestion/question In-Reply-To: <4F5030F0.1040904@...1...> References: <20120225181102.M28648@...951...> <4F5030F0.1040904@...1...> Message-ID: I made quick effort to try to simulate gosub with goto, and noticed that jumping back inside loops is not possible (as the documentation says...). I understand that when it's For ... Next, but shouldn't that be possible with Do ... Loop Until x? Anyway, I'm not sure my simulation does accurately compare speed of Sub to Gosub... if it does, then gosub would be 2 to 3 times faster. Jussi PS. Try to change last line "End" to "EndEnd" and then try to compile! 2012/3/2 Beno?t Minisini > Le 25/02/2012 19:18, nando a ?crit : > > Benoit, > > > > I came across the need to call many different common small pieces of > code multiple times. > > Naturally, we tend to make a SUB just for all of them. > > > > I wondered if you'd consider resurrecting GOSUB {label} > > which is in the same sub. > > > > It would be in the same scope, no parameters allowed and > > acts just like a leaf subroutine with only return on the stack > > and no formal stack frame. It's also part compromise to embedded SUBs > > > > Would overal execution run faster ? > > > > ?? > > -Fernando > > > > It may be a little bit faster. You can check that by simulate the GOSUB > with some GOTOs and compare the speed with a similar function call. > > Anyway, there is a syntax problem. In Basic, GOSUB is ended by a RETURN > instruction, but RETURN is already used to exit the all function. Or > maybe RETURN will return from the function only if there is no pending > GOSUB. > > Can you test if there is any speed gain I as said above? I don't have > the time to do that now. If the speed gain is worth it, then I may > implement GOSUB! > > Regards, > > -- > Beno?t Minisini > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > 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: GosubTest-0.0.1.tar.gz Type: application/x-gzip Size: 4866 bytes Desc: not available URL: From emil.lenngren at ...626... Fri Mar 2 20:36:36 2012 From: emil.lenngren at ...626... (Emil Lenngren) Date: Fri, 2 Mar 2012 20:36:36 +0100 Subject: [Gambas-user] Possible suggestion/question In-Reply-To: References: <20120225181102.M28648@...951...> <4F5030F0.1040904@...1...> Message-ID: You can always hack the compiler/bytecode to be able to have gotos wherever you want, but I think Gotos is not allowed to jump into control structures because it is classed as "bad code structure". For ... Next also use hidden local variables to store things. But I think gosubs can be implemented in the compiler and only having to do small changes to the interpreter, since using jumps/gotos to "return" into control structures is not a problem because the hidden local control variables can be guaranteed to be unchanged: The compiler must analyze all the calls to a gosub and see how many control structure variables that are occupied before entering it (the depth), so the Gosub doesn't overwrite them. One can use a control variable to store the return address of the Gosub, if they are only allowed as leaf functions. /Emil 2012/3/2 Jussi Lahtinen > I made quick effort to try to simulate gosub with goto, > and noticed that jumping back inside loops is not possible (as the > documentation says...). > > I understand that when it's For ... Next, but shouldn't that be possible > with Do ... Loop Until x? > > Anyway, I'm not sure my simulation does accurately compare speed of Sub to > Gosub... if it does, > then gosub would be 2 to 3 times faster. > > Jussi > > PS. Try to change last line "End" to "EndEnd" and then try to compile! > > > > > 2012/3/2 Beno?t Minisini > > > Le 25/02/2012 19:18, nando a ?crit : > > > Benoit, > > > > > > I came across the need to call many different common small pieces of > > code multiple times. > > > Naturally, we tend to make a SUB just for all of them. > > > > > > I wondered if you'd consider resurrecting GOSUB {label} > > > which is in the same sub. > > > > > > It would be in the same scope, no parameters allowed and > > > acts just like a leaf subroutine with only return on the stack > > > and no formal stack frame. It's also part compromise to embedded SUBs > > > > > > Would overal execution run faster ? > > > > > > ?? > > > -Fernando > > > > > > > It may be a little bit faster. You can check that by simulate the GOSUB > > with some GOTOs and compare the speed with a similar function call. > > > > Anyway, there is a syntax problem. In Basic, GOSUB is ended by a RETURN > > instruction, but RETURN is already used to exit the all function. Or > > maybe RETURN will return from the function only if there is no pending > > GOSUB. > > > > Can you test if there is any speed gain I as said above? I don't have > > the time to do that now. If the speed gain is worth it, then I may > > implement GOSUB! > > > > Regards, > > > > -- > > Beno?t Minisini > > > > > > > ------------------------------------------------------------------------------ > > Virtualization & Cloud Management Using Capacity Planning > > Cloud computing makes use of virtualization - but cloud computing > > also focuses on allowing computing to be delivered as a service. > > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > From gambas at ...2524... Fri Mar 2 20:44:53 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 19:44:53 +0000 Subject: [Gambas-user] Issue 213 in gambas: The packager includes versioning systems hidden folders into results In-Reply-To: <1-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> <0-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Comment #2 on issue 213 by sebi... at ...626...: The packager includes versioning systems hidden folders into results http://code.google.com/p/gambas/issues/detail?id=213 I think that the best thing to do is create a blacklist of files to be excluded from the gambas binary. We can the populate that list with known files/folders automatically and/or let the user choose which files or patterns should be excluded. This way we are not only fixing a bug but adding a new feature. From gambas at ...2524... Fri Mar 2 20:49:56 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 19:49:56 +0000 Subject: [Gambas-user] Issue 213 in gambas: The packager includes versioning systems hidden folders into results In-Reply-To: <2-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> <0-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Comment #3 on issue 213 by sebi... at ...626...: The packager includes versioning systems hidden folders into results http://code.google.com/p/gambas/issues/detail?id=213 Bazaar: ./.bzr ./.bzrignore Mercurial: ./.hg ./.hgignore ./.hgtags ./hgrc Git: ./.git ./.gitignore From gambas at ...2524... Fri Mar 2 21:03:06 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 20:03:06 +0000 Subject: [Gambas-user] Issue 212 in gambas: Gambas3 is generating packages with dependencies gambas2 In-Reply-To: <1-6813199134517018827-17266133497799151102-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-17266133497799151102-gambas=googlecode.com@...2524...> <0-6813199134517018827-17266133497799151102-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-17266133497799151102-gambas=googlecode.com@...2524...> Comment #2 on issue 212 by benoit.m... at ...626...: Gambas3 is generating packages with dependencies gambas2 http://code.google.com/p/gambas/issues/detail?id=212 Sorry I don't understand at all what you mean. Can you try to make better sentences? From gambas at ...2524... Fri Mar 2 23:07:15 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Fri, 02 Mar 2012 22:07:15 +0000 Subject: [Gambas-user] Issue 218 in gambas: Escaping from a Try In-Reply-To: <2-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> <0-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-7319689016684754317-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 218 by benoit.m... at ...626...: Escaping from a Try http://code.google.com/p/gambas/issues/detail?id=218 Fixed in revision #4523. Now you cannot use TRY with GOTO, BREAK, CONTINUE or STOP. From gambas at ...1... Fri Mar 2 23:25:08 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Fri, 02 Mar 2012 23:25:08 +0100 Subject: [Gambas-user] Possible suggestion/question In-Reply-To: References: <20120225181102.M28648@...951...> <4F5030F0.1040904@...1...> Message-ID: <4F5148C4.2080501@...1...> Le 02/03/2012 20:03, Jussi Lahtinen a ?crit : > I made quick effort to try to simulate gosub with goto, > and noticed that jumping back inside loops is not possible (as the > documentation says...). > > I understand that when it's For ... Next, but shouldn't that be possible > with Do ... Loop Until x? > > Anyway, I'm not sure my simulation does accurately compare speed of Sub to > Gosub... if it does, > then gosub would be 2 to 3 times faster. > > Jussi OK, it is faster. But now I must find a way to implement GoSub, and I don't have one at the moment. :-/ > > PS. Try to change last line "End" to "EndEnd" and then try to compile! Oops, line number problem there. I will fix it... -- Beno?t Minisini From gambas at ...2524... Sat Mar 3 01:42:47 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 00:42:47 +0000 Subject: [Gambas-user] Issue 211 in gambas: Gridview multiselect In-Reply-To: <1-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> <0-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Comment #2 on issue 211 by albefo... at ...152...: Gridview multiselect http://code.google.com/p/gambas/issues/detail?id=211 Ok, with the latest svn version this is ok, but the properties title do not exist anymore... :-( but there are no problem for this! From gambas at ...2524... Sat Mar 3 02:03:56 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 01:03:56 +0000 Subject: [Gambas-user] Issue 211 in gambas: Gridview multiselect In-Reply-To: <2-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> References: <2-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> <0-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Message-ID: <3-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #3 on issue 211 by benoit.m... at ...626...: Gridview multiselect http://code.google.com/p/gambas/issues/detail?id=211 You can use Text inside of Title. I will add the Title synonymous anyway, to keep the compatibility with the old GridView. From gambas at ...2524... Sat Mar 3 03:19:41 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 02:19:41 +0000 Subject: [Gambas-user] Issue 213 in gambas: The packager includes versioning systems hidden folders into results In-Reply-To: <3-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> References: <3-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> <0-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Message-ID: <4-6813199134517018827-1275285230299976890-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #4 on issue 213 by benoit.m... at ...626...: The packager includes versioning systems hidden folders into results http://code.google.com/p/gambas/issues/detail?id=213 It should be fixed in revision #4528. There is an option to configure the list of files to be ignored, and by default this list is what you wrote above. From gambas at ...2524... Sat Mar 3 05:11:21 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 04:11:21 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <14-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <14-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <15-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Comment #15 on issue 188 by zachsmit... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 After testing again with r4514, I can no longer reproduce this problem. Please close if you wish. From gambas at ...2524... Sat Mar 3 12:54:54 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 11:54:54 +0000 Subject: [Gambas-user] Issue 188 in gambas: Creating a new directory in the data project data causes a seg. fault In-Reply-To: <15-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> References: <15-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> <0-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Message-ID: <16-6813199134517018827-7699354405385977273-gambas=googlecode.com@...2524...> Updates: Status: Fixed Comment #16 on issue 188 by benoit.m... at ...626...: Creating a new directory in the data project data causes a seg. fault http://code.google.com/p/gambas/issues/detail?id=188 OK! From gambas at ...2524... Sat Mar 3 13:00:55 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 12:00:55 +0000 Subject: [Gambas-user] Issue 219 in gambas: "GridView.Rows[X].Selected = true" do nothing Message-ID: <0-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 219 by albefo... at ...152...: "GridView.Rows[X].Selected = true" do nothing http://code.google.com/p/gambas/issues/detail?id=219 The code in the summary should select a row in a gridview, but doesn't Version: Latest TRUNK avalaible at yesterday night (2-march-2012) Operating system: Linux Distribution: Debian squeeze 2.6.39-bkp Architecture: AMD64 GUI component: QT4 Desktop used: KDE I attached a simle sample code whith the fix i used to get the bug override Click on the right button and you get no row selected, on the other button there're two "solution" to get the row selected properly Attachments: TestGrid.zip 8.9 KB From gambas at ...2524... Sat Mar 3 13:19:00 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 12:19:00 +0000 Subject: [Gambas-user] Issue 219 in gambas: "GridView.Rows[X].Selected = true" do nothing In-Reply-To: <0-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> Message-ID: <1-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> Updates: Status: Fixed Labels: -Version Version-TRUNK Comment #1 on issue 219 by benoit.m... at ...626...: "GridView.Rows[X].Selected = true" do nothing http://code.google.com/p/gambas/issues/detail?id=219 Fixed in revision #4529. From gambas at ...2524... Sat Mar 3 14:18:13 2012 From: gambas at ...2524... (gambas at ...2524...) Date: Sat, 03 Mar 2012 13:18:13 +0000 Subject: [Gambas-user] Issue 219 in gambas: "GridView.Rows[X].Selected = true" do nothing In-Reply-To: <1-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> References: <1-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> <0-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> Message-ID: <2-6813199134517018827-12766951114672210091-gambas=googlecode.com@...2524...> Comment #2 on issue 219 by albefo... at ...152...: "GridView.Rows[X].Selected = true" do nothing http://code.google.com/p/gambas/issues/detail?id=219 mmmmhh... are u sure? :-) now the code in in summary select from rows[X] to end of grid... From charles at ...1784... Sat Mar 3 14:36:17 2012 From: charles at ...1784... (charlesg) Date: Sat, 3 Mar 2012 05:36:17 -0800 (PST) Subject: [Gambas-user] Issue 211 in gambas: Gridview multiselect In-Reply-To: <3-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> References: <0-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> <1-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> <2-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> <3-6813199134517018827-15707643296586879195-gambas=googlecode.com@...2524...> Message-ID: <33434206.post@...1379...> works great. Thank you. gambas-4 wrote: > > Updates: > Status: Fixed > > Comment #3 on issue 211 by benoit.m... at ...626...: Gridview multiselect > http://code.google.com/p/gambas/issues/detail?id=211 > > You can use Text inside of Title. I will add the Title synonymous anyway, > to keep the compatibility with the old GridView. > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- View this message in context: http://old.nabble.com/Issue-211-in-gambas%3A-Gridview-multiselect-tp33314986p33434206.html Sent from the gambas-user mailing list archive at Nabble.com. From mohareve at ...626... Sat Mar 3 18:53:03 2012 From: mohareve at ...626... (M. Cs.) Date: Sat, 3 Mar 2012 18:53:03 +0100 Subject: [Gambas-user] Two short questions Message-ID: Hi I have two short questions: 1. Is it a way to handle a curl request as process? I use to call : Shell "curl http://www.mysite.com" to $myvar This is a bit unsafe. If the net hangs, the program hangs too. Would I be able to kill the process, if I created it as: $hProcess=Exec["curl","http://www.mysite.com"] ? 2. I've created a PDF file, and I would like to include it to the project package, and let the user open it with a PDF browser. What's the path of the included myfile.pdf if I would like to open it with shell command in Okular or similar? Thanks for the fast answer! Csaba From gambas at ...1... Sat Mar 3 19:26:28 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sat, 03 Mar 2012 19:26:28 +0100 Subject: [Gambas-user] Two short questions In-Reply-To: References: Message-ID: <4F526254.50800@...1...> Le 03/03/2012 18:53, M. Cs. a ?crit : > Hi I have two short questions: > 1. Is it a way to handle a curl request as process? > I use to call : > Shell "curl http://www.mysite.com" to $myvar > This is a bit unsafe. If the net hangs, the program hangs too. Would I > be able to kill the process, if I created it as: > $hProcess=Exec["curl","http://www.mysite.com"] > ? Or you can use the gb.net.curl component, that does CURL request asynchronously. > > 2. I've created a PDF file, and I would like to include it to the > project package, and let the user open it with a PDF browser. What's > the path of the included myfile.pdf if I would like to open it with > shell command in Okular or similar? > > Thanks for the fast answer! > > Csaba You must copy it to a temporary location, because only the Gambas program can access files located inside its executable. Regards, -- Beno?t Minisini From mohareve at ...626... Sat Mar 3 20:13:13 2012 From: mohareve at ...626... (M. Cs.) Date: Sat, 3 Mar 2012 20:13:13 +0100 Subject: [Gambas-user] Two short questions In-Reply-To: <4F526254.50800@...1...> References: <4F526254.50800@...1...> Message-ID: Thank you Benoit! gb.net.curl is great solution. 2012/3/3, Beno?t Minisini : > Le 03/03/2012 18:53, M. Cs. a ?crit : >> Hi I have two short questions: >> 1. Is it a way to handle a curl request as process? >> I use to call : >> Shell "curl http://www.mysite.com" to $myvar >> This is a bit unsafe. If the net hangs, the program hangs too. Would I >> be able to kill the process, if I created it as: >> $hProcess=Exec["curl","http://www.mysite.com"] >> ? > > Or you can use the gb.net.curl component, that does CURL request > asynchronously. > >> >> 2. I've created a PDF file, and I would like to include it to the >> project package, and let the user open it with a PDF browser. What's >> the path of the included myfile.pdf if I would like to open it with >> shell command in Okular or similar? >> >> Thanks for the fast answer! >> >> Csaba > > You must copy it to a temporary location, because only the Gambas > program can access files located inside its executable. > > Regards, > > -- > Beno?t Minisini > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Gambas-user mailing list > Gambas-user at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > From gambas at ...1... Sun Mar 4 01:05:52 2012 From: gambas at ...1... (=?ISO-8859-1?Q?Beno=EEt_Minisini?=) Date: Sun, 04 Mar 2012 01:05:52 +0100 Subject: [Gambas-user] Gambas has Gosub now! Message-ID: <4F52B1E0.4070204@...1...> Hi, I have just succeeded (I think) in implementing the old Basic GOSUB instruction in Gambas in revision #4530. I did that, because it is faster than using a plain little function, if you just need to call a small piece code without needing a specific context nor arguments. The syntax is the same as the GOTO instruction (with the same restrictions on the label): GOSUB