[Gambas-user] When you use RETURN the FINALLY block not start

2010-04-25 Thread sviroos
Code: ' Gambas module file PUBLIC SUB Main() PRINT F1() PRINT F2() PRINT END END SUB F1() AS Integer PRINT F1 FINALLY PRINT F1-FIANLLY END SUB F2() AS Integer PRINT F2 RETURN 2 FINALLY PRINT F2-FIANLLY END Output: F1 F1-FINALLY 0 F2 2 END bug or a feature?

Re: [Gambas-user] When you use RETURN the FINALLY block not start

2010-04-25 Thread Benoît Minisini
Code: ' Gambas module file PUBLIC SUB Main() PRINT F1() PRINT F2() PRINT END END SUB F1() AS Integer PRINT F1 FINALLY PRINT F1-FIANLLY END SUB F2() AS Integer PRINT F2 RETURN 2 FINALLY PRINT F2-FIANLLY END Output: F1 F1-FINALLY 0 F2 2 END

Re: [Gambas-user] When you use RETURN the FINALLY block not start

2010-04-25 Thread Jussi Lahtinen
Little bit of topic but: SUB F1() AS Integer Shouldn't this be FUNCTION? I didn't know subs can return value. New to me... Jussi 2010/4/25 Benoît Minisini gam...@users.sourceforge.net: Code: ' Gambas module file PUBLIC SUB Main()   PRINT F1()   PRINT F2()   PRINT END END SUB F1() AS

[Gambas-user] User components replaced by Libraries in Gambas 3

2010-04-25 Thread Benoît Minisini
Hi, In the last revision, I added the implementation of libraries in Gambas 3. That libraries completely replace the user components concept of Gambas 2. How does it work? You have a new tab named libraries in the IDE project property dialog. In that tab, you can define a list of gambas

[Gambas-user] Problem with float value

2010-04-25 Thread Jussi Lahtinen
Hi! I have problem with my code, there is point where x = rx[31-ii] should be true, but it's not. So I added this for debug (variables x and rx are float and ii is integer): Print x - rx[31 - ii] Print rx[31 - ii] Print x Result: 1.110223024625E-16 0.377913931573 0.377913931573 So, I tried

Re: [Gambas-user] Problem with float value

2010-04-25 Thread Benoît Minisini
Hi! I have problem with my code, there is point where x = rx[31-ii] should be true, but it's not. So I added this for debug (variables x and rx are float and ii is integer): Print x - rx[31 - ii] Print rx[31 - ii] Print x Result: 1.110223024625E-16 0.377913931573 0.377913931573

Re: [Gambas-user] User components replaced by Libraries in Gambas 3

2010-04-25 Thread svitoos
On Sunday 25 April 2010 20:50:38 Benoît Minisini wrote: You have a new tab named libraries in the IDE project property dialog. In that tab, you can define a list of gambas executables (*.gambas files) that will be used as libraries. When adding a library to a project, the IDE will extract

Re: [Gambas-user] User components replaced by Libraries in Gambas 3

2010-04-25 Thread Benoît Minisini
On Sunday 25 April 2010 20:50:38 Benoît Minisini wrote: You have a new tab named libraries in the IDE project property dialog. In that tab, you can define a list of gambas executables (*.gambas files) that will be used as libraries. When adding a library to a project, the IDE will

[Gambas-user] Mouse Clicks become unresponsive on form?

2010-04-25 Thread Dr.Diesel
Running SVN 2910. After a few mouse click, either switching a few TabStrips or a few button clicks the mouse clicks become ineffective. Sometimes I can click around and one click will take, but then it drops out again. I have these components: Component=gb.image Component=gb.gtk

Re: [Gambas-user] Mouse Clicks become unresponsive on form?

2010-04-25 Thread Dr.Diesel
Dr.Diesel wrote: Running SVN 2910. After a few mouse click, either switching a few TabStrips or a few button clicks the mouse clicks become ineffective. Sometimes I can click around and one click will take, but then it drops out again. I have these components: Component=gb.image

Re: [Gambas-user] User components replaced by Libraries in Gambas 3

2010-04-25 Thread Ian Haywood
svitoos wrote: I think it is better to look for libraries in the directories listed in GB3_LIBRARY_PATH, and if this variable is not defined then /usr/lib/gambas3:/usr/local/lib/gambas3:~/.local/lib/gambas3 I think this is a good idea, because gambas should behave like other POSIX-based

Re: [Gambas-user] Mouse Clicks become unresponsive on form?

2010-04-25 Thread Benoît Minisini
Running SVN 2910. After a few mouse click, either switching a few TabStrips or a few button clicks the mouse clicks become ineffective. Sometimes I can click around and one click will take, but then it drops out again. I have these components: Component=gb.image Component=gb.gtk