53:41 + (UTC)
Subject: [Gambas-user] Class array - Null Object
> Hello everyone. I'm new to Gambas and new to the mailing list. I'm using
> v3.10.0
> on Linux.I programmed extensively with VB6 back in the day. So Gambas is
> pretty
> straight-forward and I'm excited about sw
Le 29/01/2018 à 05:53, Phan Damily via Gambas-user a écrit :
Hello everyone. I'm new to Gambas and new to the mailing list. I'm using
v3.10.0 on Linux.I programmed extensively with VB6 back in the day. So Gambas
is pretty straight-forward and I'm excited about switching over from Xamarin's
Hello everyone. I'm new to Gambas and new to the mailing list. I'm using
v3.10.0 on Linux.I programmed extensively with VB6 back in the day. So Gambas
is pretty straight-forward and I'm excited about switching over from Xamarin's
C#.
But I've ran into a situation with Gambas I can't resolve.
I saw that. As far as I could tell, it's identical to the gnome
discussion. Including having the hints category and urgency discussion
before the hints chapter!
On 2017-08-20 12:06 PM, adamn...@gmail.com wrote:
On Sun, 20 Aug 2017 11:37:38 -0400
Tony Morehen
On Sun, 20 Aug 2017 11:37:38 -0400
Tony Morehen wrote:
> 1) I tried to be as agnostic as possible. The reference to the Gnome
> developer's specification is there because it is the only one available
> on the web.
1) I tried to be as agnostic as possible. The reference to the Gnome
developer's specification is there because it is the only one available
on the web. There is not even one on freedesktop.org. It is my
understanding that modern DEs conform to that spec, including KDE,
Gnome, Cinnamon,
On Sun, 20 Aug 2017 07:18:44 -0400
Tony Morehen wrote:
> As promised, attached is a heavily commented class implementing DBus
> Notifications. It is a complete implementation of the specification.
> There are two approaches to using the class:
>
> 1) fill in the
As promised, attached is a heavily commented class implementing DBus
Notifications. It is a complete implementation of the specification.
There are two approaches to using the class:
1) fill in the properties and call SendNotification:
Dim hDbusNotify As New DbusNotify
Le Thu, 08 Jun 2017 16:02:32 +0200, Adrien Prokopowicz
a écrit:
Le Tue, 06 Jun 2017 15:50:24 +0200, adamn...@gmail.com
a écrit:
On Mon, 5 Jun 2017 11:56:34 +0200
Hans Lehmann wrote:
Hello,
why creates the
2017-06-08 10:02 GMT-04:00 Adrien Prokopowicz
:
> Le Tue, 06 Jun 2017 15:50:24 +0200, adamn...@gmail.com
> a écrit:
>
> On Mon, 5 Jun 2017 11:56:34 +0200
>> Hans Lehmann wrote:
>>
>> Hello,
>>>
>>> why creates the following
Le Tue, 06 Jun 2017 15:50:24 +0200, adamn...@gmail.com
a écrit:
On Mon, 5 Jun 2017 11:56:34 +0200
Hans Lehmann wrote:
Hello,
why creates the following source text:
Public Sub btnCreateHTMLDocument_Click()
Dim hHtmlDocument As HtmlDocument
On Mon, 5 Jun 2017 11:56:34 +0200
Hans Lehmann wrote:
> Hello,
>
> why creates the following source text:
>
> Public Sub btnCreateHTMLDocument_Click()
>Dim hHtmlDocument As HtmlDocument
>
>hHtmlDocument = New HtmlDocument
At this point hHtmlDocument.Html5 is
Hello,
why creates the following source text:
Public Sub btnCreateHTMLDocument_Click()
Dim hHtmlDocument As HtmlDocument
hHtmlDocument = New HtmlDocument
*hHtmlDocument.Html5 = False**
*
Print hHtmlDocument.ToString(True)
hHtmlDocument.Save(Application.Path &/ "test.html", True)
End
2017-05-18 17:39 GMT+02:00 PICCORO McKAY Lenz :
> 2017-05-18 11:23 GMT-04:00 Tobias Boege :
>
>> Yes, they can be optional.
>>
>> If you use optional constructor arguments you have to be careful with
>> inheritance, though! Along the inheritance lineage,
2017-05-18 11:23 GMT-04:00 Tobias Boege :
> Yes, they can be optional.
>
> If you use optional constructor arguments you have to be careful with
> inheritance, though! Along the inheritance lineage, all constructor
> arguments are divided into two camps: mandatory and optional
On Thu, 18 May 2017, PICCORO McKAY Lenz wrote:
> 2017-05-18 9:13 GMT-04:00 Tobias Boege :
>
> > You can also specify parameters to the _new() method like
> >
> > ' In MyClass.class:
> > Public Sub _new(X As Integer)
> > ' ...
> > End
> >
>
> a question: can be
2017-05-18 9:13 GMT-04:00 Tobias Boege :
> You can also specify parameters to the _new() method like
>
> ' In MyClass.class:
> Public Sub _new(X As Integer)
> ' ...
> End
>
a question: can be "Optional" allowed in constructor arguments..?
its possible, so its the
On Thu, 18 May 2017, alexchernoff wrote:
> Good day all,
>
> is there a way to have a routine execute in a class as soon as a new
> instance of it is created? I have a Public Sub Main() but it doesn't seem to
> run.
>
> I come to Gambas from Xojo and there classes have a Constructor() sub which
Good day all,
is there a way to have a routine execute in a class as soon as a new
instance of it is created? I have a Public Sub Main() but it doesn't seem to
run.
I come to Gambas from Xojo and there classes have a Constructor() sub which
runs on init.
thanks!
--
View this message in
I think this is my problem
3.4. Inheritance and constructor
Contrary to all the object language I know, each class in the
inheritance hierarchy consumes the parameters passed to the constructor.
Let's suppose we have the following inheritance tree:
|MyListBox ---inherits--> ListBox
here it is
On 17/02/17 13:55, Benoît Minisini wrote:
Le 17/02/2017 à 03:08, Shane a écrit :
Looks Like Pic1
and then pic2
Which version of Gambas do you use?
Gamtetris-0.0.1.tar.gz
Description: application/gzip
here is the code it looks like its the way I'm doing things with inheriting
On 17/02/17 13:55, Benoît Minisini wrote:
> Le 17/02/2017 à 03:08, Shane a écrit :
>> Looks Like Pic1
>>
>> and then pic2
>>
>>
>>
> Which version of Gambas do you use?
>
It seems i can compile it now just the signature is not updated as
before it would just add definitions to the end if i added them as new ones
[System]
Gambas=3.9.90
OperatingSystem=Linux
Kernel=4.4.0-45-generic
Architecture=x86_64
Distribution=Linux Mint 17.2 Rafaela
Desktop=MATE
Theme=Gtk
yes i have tried recompiling its a sdl project
it seems like their is a backup file some where that wasn't deleted when
the IDE crashed
but i can't find any
On 17/02/17 13:49, Jussi Lahtinen wrote:
> OK, so the signature is not updated... have you tried to recompile all from
> Gambas IDE?
Le 17/02/2017 à 03:08, Shane a écrit :
> Looks Like Pic1
>
> and then pic2
>
>
>
Which version of Gambas do you use?
--
Benoît Minisini
--
Check out the vibrant tech community on one of the world's most
engaging tech
OK, so the signature is not updated... have you tried to recompile all from
Gambas IDE? Is that library or regular Gambas project?
Jussi
On Fri, Feb 17, 2017 at 4:08 AM, Shane wrote:
> Looks Like Pic1
>
> and then pic2
>
>
>
>
> On 17/02/17 13:04, Jussi Lahtinen wrote:
Looks Like Pic1
and then pic2
On 17/02/17 13:04, Jussi Lahtinen wrote:
Looks like this..?
Jussi
On Fri, Feb 17, 2017 at 3:32 AM, Shane wrote:
No the ide only crashed once
so my class declaration looks like this
and when i try ti instantiate my class
so no
Looks like this..?
Jussi
On Fri, Feb 17, 2017 at 3:32 AM, Shane wrote:
> No the ide only crashed once
>
> so my class declaration looks like this
>
> and when i try ti instantiate my class
>
>
> so no matter what i but into the class new these four variables remain
>
>
No the ide only crashed once
so my class declaration looks like this
and when i try ti instantiate my class
so no matter what i but into the class new these four variables remain
On 17/02/17 12:15, Jussi Lahtinen wrote:
> AFAIK Gambas does not reverse your changes... do you mean the IDE
AFAIK Gambas does not reverse your changes... do you mean the IDE crashes
every time you try to make the changes?
Can you send the source?
Jussi
On Fri, Feb 17, 2017 at 3:03 AM, Shane wrote:
> So gambas ide crashed while editing source code now i can't change a
> class
So gambas ide crashed while editing source code now i can't change a
class _new definition it keeps
going back to the original one i had even though i deleted the
definition and deleted the class file and reinstalled gambas any ideas
thanks Shane
Le 13/12/2015 19:33, Tobias Boege a écrit :
> On Sat, 12 Dec 2015, Fabien Bodard wrote:
>> gbs3 -e -p '{long[]}a=[1,1]:for {i}ii = 0 to
>> 50:{l}i=a[0]+a[1]:a[0]=a[1]:a[1]=i:print i:next'
>>
>> hermetics
>>
>
> I don't know what this has to do with the thread but I'm amazed that this
> works. As I
2015-12-13 19:33 GMT+01:00 Tobias Boege :
> On Sat, 12 Dec 2015, Fabien Bodard wrote:
>> gbs3 -e -p '{long[]}a=[1,1]:for {i}ii = 0 to
>> 50:{l}i=a[0]+a[1]:a[0]=a[1]:a[1]=i:print i:next'
>>
>> hermetics
>>
>
> I don't know what this has to do with the thread but I'm amazed that
On Sat, 12 Dec 2015, Fabien Bodard wrote:
> gbs3 -e -p '{long[]}a=[1,1]:for {i}ii = 0 to
> 50:{l}i=a[0]+a[1]:a[0]=a[1]:a[1]=i:print i:next'
>
> hermetics
>
I don't know what this has to do with the thread but I'm amazed that this
works. As I read it '{i}ii', e.g., is a crude way to declare an
Le 13/12/2015 21:28, Fabien Bodard a écrit :
> Just i've said before ... i'll never accept it too :-). it's just for
> inline code.
>
> But Tobias idea sound good... no ?
>
Mmm, yes. But I must find how to implement it correctly...
--
Benoît Minisini
Just i've said before ... i'll never accept it too :-). it's just for
inline code.
But Tobias idea sound good... no ?
2015-12-13 19:37 GMT+01:00 Benoît Minisini :
> Le 13/12/2015 19:33, Tobias Boege a écrit :
>> On Sat, 12 Dec 2015, Fabien Bodard wrote:
>>> gbs3 -e
2015-12-13 21:33 GMT+01:00 Benoît Minisini :
> Le 13/12/2015 21:28, Fabien Bodard a écrit :
>> Just i've said before ... i'll never accept it too :-). it's just for
>> inline code.
>>
>> But Tobias idea sound good... no ?
>>
>
> Mmm, yes. But I must find how to
I like that idea Tobi!
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
2015-12-12 8:26 GMT+01:00 Tobias Boege :
> On Fri, 11 Dec 2015, Moviga Technologies wrote:
>> >
>> > Things are PRIVATE by default, but it was not necessarily a good idea
>> > to
>> > allow that.
>> >
>> > Maybe I should remove that, but it's not backward-compatible, so many
>>
gbs3 -e -p '{long[]}a=[1,1]:for {i}ii = 0 to
50:{l}i=a[0]+a[1]:a[0]=a[1]:a[1]=i:print i:next'
hermetics
2015-12-12 9:00 GMT+01:00 Fabien Bodard :
> 2015-12-12 8:26 GMT+01:00 Tobias Boege :
>> On Fri, 11 Dec 2015, Moviga Technologies wrote:
>>> >
>>> >
On Fri, 11 Dec 2015, Moviga Technologies wrote:
> >
> > Things are PRIVATE by default, but it was not necessarily a good idea
> > to
> > allow that.
> >
> > Maybe I should remove that, but it's not backward-compatible, so many
> > programs will not compile anymore.
> >
> > Regards,
>
> Thank
On 20/09/14 01:31, Willy Raets wrote:
On za, 2014-09-20 at 00:19 +0100, John Leake wrote:
Thank you. Should the documentation in the wiki also be updated to
reflect this new behaviour ?
I don't think so as the fix should make Gambas confirm the
documentation :)
It only fixes your
Hi all,
I have this Gambas library.
I have made sure classes have their description (using ''' at the
beginning) and public functions/methods have their description (using ''
just before the function/method)
I have this exported class named Update.
When typing Update in an application using the
On Fri, 19 Sep 2014, Willy Raets wrote:
Hi all,
I have this Gambas library.
I have made sure classes have their description (using ''' at the
beginning) and public functions/methods have their description (using ''
just before the function/method)
I have this exported class named Update.
Le 19/09/2014 22:30, Tobias Boege a écrit :
On Fri, 19 Sep 2014, Willy Raets wrote:
Hi all,
I have this Gambas library.
I have made sure classes have their description (using ''' at the
beginning) and public functions/methods have their description (using ''
just before the function/method)
On vr, 2014-09-19 at 22:30 +0200, Tobias Boege wrote:
On Fri, 19 Sep 2014, Willy Raets wrote:
Hi all,
I have this Gambas library.
I have made sure classes have their description (using ''' at the
beginning) and public functions/methods have their description (using ''
just before the
On za, 2014-09-20 at 00:09 +0200, Benoît Minisini wrote:
Le 19/09/2014 22:30, Tobias Boege a écrit :
On Fri, 19 Sep 2014, Willy Raets wrote:
Hi all,
I have this Gambas library.
I have made sure classes have their description (using ''' at the
beginning) and public functions/methods
Indeed. I removed the constraint where a class without dynamic variable
is not instanciable. But I don't know why I suddenly found that useful...
I am also dabbling with source comments and auto generated help wrt
modules in general and singleton objects.
Would the SVN commit history shine
Le 19/09/2014 22:24, Willy Raets a écrit :
Hi all,
I have this Gambas library.
I have made sure classes have their description (using ''' at the
beginning) and public functions/methods have their description (using ''
just before the function/method)
I have this exported class named
Le 20/09/2014 01:02, Benoît Minisini a écrit :
Can you send your project? Normally the sentence This class is
creatable is not display if you don't have a _new public method.
Regards,
Sorry, it is displayed when the help comes from the source code! I fix
that...
--
Benoît Minisini
On za, 2014-09-20 at 01:12 +0200, Benoît Minisini wrote:
Le 20/09/2014 01:05, Benoît Minisini a écrit :
Le 20/09/2014 01:02, Benoît Minisini a écrit :
Can you send your project? Normally the sentence This class is
creatable is not display if you don't have a _new public method.
On za, 2014-09-20 at 00:19 +0100, John Leake wrote:
Thank you. Should the documentation in the wiki also be updated to
reflect this new behaviour ?
I don't think so as the fix should make Gambas confirm the
documentation :)
Modules normally don't have the _new public method. As a matter of
Being able to comment and uncomment large blocks of selected code is
a wonderful thing, being able to do it without having to mouse up to the
editor tool bar would be even more so. Is there keyboard shortcut to
perform the aforementioned function?
--
Kindest Regards
Stephen A. Bungay,
in development another manpower make factory connections
to postgres database as module, and i use class instanciation
for connections to database..
what its the behabior difference and implicit consecuences.. ?
i mean, my partner call directly as static methods/functions
the create¡ion of
A module is a static class.
It's like using the static keyword on each procedure of a class... And
a procedure is not instanciable so all other classe call the same
instance in fact.
2013/11/9 PICCORO McKAY Lenz mckaygerh...@gmail.com:
in development another manpower make factory connections
And you can use gb.report and scripter.
Le 6 mai 2013 04:41, Dimitris Anogiatis dos...@gmail.com a écrit :
Creating a report from a non-graphical method might prove difficult.
If you are planning on using something like report from an HTML template on
a PDF File you either need to make sure
El 06/05/13 14:32, Fabien Bodard escribió:
And you can use gb.report and scripter.
Le 6 mai 2013 04:41, Dimitris Anogiatis dos...@gmail.com a écrit :
Creating a report from a non-graphical method might prove difficult.
If you are planning on using something like report from an HTML
On Sat, 04 May 2013, Jesus wrote:
Recently a friend of mine reported an issue that I'm not sure how to
explain correctly.
He is making a terminal program that needs to print stuff on a real
printer, so it needs the gb.qt4 component to get access to the Printer
object. But also he needs
Hi Tobi and all
El 05/05/13 09:00, Tobias Boege escribió:
On Sat, 04 May 2013, Jesus wrote:
Recently a friend of mine reported an issue that I'm not sure how to
explain correctly.
He is making a terminal program that needs to print stuff on a real
printer, so it needs the gb.qt4 component
On Sun, 05 May 2013, Jesus wrote:
Hi Tobi and all
El 05/05/13 09:00, Tobias Boege escribi?:
On Sat, 04 May 2013, Jesus wrote:
Recently a friend of mine reported an issue that I'm not sure how to
explain correctly.
He is making a terminal program that needs to print stuff on a real
A temporary solution will be to make a secondary project that manage the
printing.
Le 5 mai 2013 09:03, Tobias Boege tabo...@gmail.com a écrit :
On Sat, 04 May 2013, Jesus wrote:
Recently a friend of mine reported an issue that I'm not sure how to
explain correctly.
He is making a
Le 05/05/2013 12:19, Jesus a écrit :
Hi Tobi and all
El 05/05/13 09:00, Tobias Boege escribió:
On Sat, 04 May 2013, Jesus wrote:
Recently a friend of mine reported an issue that I'm not sure how to
explain correctly.
He is making a terminal program that needs to print stuff on a real
Creating a report from a non-graphical method might prove difficult.
If you are planning on using something like report from an HTML template on
a PDF File you either need to make sure you can generate a PS or PDF file
or you can use wkhtmltopdf https://code.google.com/p/wkhtmltopdf/ to
generate
Recently a friend of mine reported an issue that I'm not sure how to
explain correctly.
He is making a terminal program that needs to print stuff on a real
printer, so it needs the gb.qt4 component to get access to the Printer
object. But also he needs to use gb.ncurses to do some neat
Le 04/05/2013 01:31, Jesus a écrit :
Recently a friend of mine reported an issue that I'm not sure how to
explain correctly.
He is making a terminal program that needs to print stuff on a real
printer, so it needs the gb.qt4 component to get access to the Printer
object. But also he needs to
Hello,
I'm a new user of gambas. I've seen that class Draw wil be deprecated
since version 3.4. That means that from that version we can't use Draw?
Thanks
Pablo
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C#
...?
I think you have misunderstood.
Old implementation of Draw is deprecated, and new one is going to replace
it.
Jussi
On Fri, Jan 25, 2013 at 1:33 PM, Pablo pabloredondoa...@gmail.com wrote:
Hello,
I'm a new user of gambas. I've seen that class Draw wil be deprecated
since version
Why is it possible to store a Class in a Variant?
Like, if you have a class named Class1, you can do this:
Dim var1 As Variant = Class1
But you can never use var1 after that (until you replace the content)...
/Emil
--
Le 22/05/2012 21:59, Emil Lenngren a écrit :
Why is it possible to store a Class in a Variant?
Like, if you have a class named Class1, you can do this:
Dim var1 As Variant = Class1
But you can never use var1 after that (until you replace the content)...
/Emil
Good question. Apparently I
Yeah, at the bottom of that file, it says:
__CLASS: // Is it useful for variants ?
2012/5/22 Benoît Minisini gam...@users.sourceforge.net
Le 22/05/2012 21:59, Emil Lenngren a écrit :
Why is it possible to store a Class in a Variant?
Like, if you have a class named Class1, you can do this:
2) The _new method is optional.
3) All instance variable assignments written at the declarations are done
before the _new method is executed.
1) These asignments are actually done in a special generated hidden method
called $new (which is executed before _new).
/Emil
2012/2/13 nando
I wanted to verify that..
example:
I have a class called 'X' with a private variable
PRIVATE my_int AS INTEGER = -14
PUBLIC SUB _NEW()'===constructor===
my_int = -15
END
Questions:
1) The =-14 act as a constructor automatically for a _NEW instantiation?
2) The =-15 occur as a
ok.
On Mon, 2011-06-27 at 00:28 +0200, Benoît Minisini wrote:
some more examples
i have classes
cA
cB
cC
cB inherits cA
cC inherits cB
1) With 2 characters as class names the file browser did not show
correct the class tree.
2) After INHERITS instruction the
some more examples
i have classes
cA
cB
cC
cB inherits cA
cC inherits cB
1) With 2 characters as class names the file browser did not show
correct the class tree.
2) After INHERITS instruction the class name is capitalized
3) in Main module i get
Dim hObject As Cc
some more examples
i have classes
cA
cB
cC
cB inherits cA
cC inherits cB
1) With 2 characters as class names the file browser did not show
correct the class tree.
2) After INHERITS instruction the class name is capitalized
3) in Main module i get
Dim hObject As Cc
hObject = New Cc
i think i found a small bug.
i created a class cMachine and when i write code IDE auto-correct the
name to CMachine instead cMachine.
Private hCompressor As CMachine
Public Sub btnCreateObject_Click()
hCompressor = New CMachine
End
--
Regards,
Demosthenes Koptsis.
2011/6/20 Demosthenes Koptsis demosthen...@gmail.com:
i think i found a small bug.
i created a class cMachine and when i write code IDE auto-correct the
name to CMachine instead cMachine.
Private hCompressor As CMachine
Public Sub btnCreateObject_Click()
hCompressor = New CMachine
End
No, I can confirm this is bug.
Autocompletion list do have both, but it forces to use upper case version.
If you select lower case version, it will be changed automatically to upper
case version.
Gambas 3 rev 3888 @ Ubuntu 11.04
Jussi
On Mon, Jun 20, 2011 at 22:47, Fabien Bodard
Hi,
Is possible in gambas3 set a sub that will be fire when you set the object =
null?
I got a gambas class for loading big quantity of data in a gridview in
dynamic mode (using the Data event). In this class, I got some New
sentences that be manually cleaned by a public sub. I want to simply
Just
Public sub _free()
end
and at the same level that _init
public sub _exit()
--
Fabien Bodard
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5,
Hello List,
I have no experience with the classes in gambas and just a little in VB.
Based on the bult-in example I could get working it when defining the
properties as public variable but I don't know how to encapsulate (how to
use the get and the set if I have private properties.
An other
81 matches
Mail list logo