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?
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo