Re: [Gambas-user] Class array - Null Object

2018-01-28 Thread nando_f
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

Re: [Gambas-user] Class array - Null Object

2018-01-28 Thread Benoît Minisini
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

[Gambas-user] Class array - Null Object

2018-01-28 Thread Phan Damily via Gambas-user
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.

Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread Tony Morehen
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

Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread adamn...@gmail.com
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.

Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread Tony Morehen
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,

Re: [Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread adamn...@gmail.com
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

[Gambas-user] Class Implementing DBus Notifications

2017-08-20 Thread Tony Morehen
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

Re: [Gambas-user] Class HtmlDocument

2017-06-23 Thread Adrien Prokopowicz
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

Re: [Gambas-user] Class HtmlDocument

2017-06-08 Thread PICCORO McKAY Lenz
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

Re: [Gambas-user] Class HtmlDocument

2017-06-08 Thread 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 source text: Public Sub btnCreateHTMLDocument_Click() Dim hHtmlDocument As HtmlDocument

Re: [Gambas-user] Class HtmlDocument

2017-06-06 Thread adamn...@gmail.com
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

[Gambas-user] Class HtmlDocument

2017-06-05 Thread Hans Lehmann
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

Re: [Gambas-user] Class startup?

2017-05-19 Thread Fabien Bodard
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,

Re: [Gambas-user] Class startup?

2017-05-18 Thread 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, all constructor > arguments are divided into two camps: mandatory and optional

Re: [Gambas-user] Class startup?

2017-05-18 Thread Tobias Boege
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

Re: [Gambas-user] Class startup?

2017-05-18 Thread PICCORO McKAY Lenz
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

Re: [Gambas-user] Class startup?

2017-05-18 Thread Tobias Boege
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

[Gambas-user] Class startup?

2017-05-18 Thread alexchernoff
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

Re: [Gambas-user] class

2017-02-16 Thread Shane
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

Re: [Gambas-user] class

2017-02-16 Thread Shane
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

Re: [Gambas-user] class

2017-02-16 Thread Shane
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? >

Re: [Gambas-user] class

2017-02-16 Thread Shane
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

Re: [Gambas-user] class

2017-02-16 Thread Shane
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?

Re: [Gambas-user] class

2017-02-16 Thread Benoît Minisini
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

Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
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:

Re: [Gambas-user] class

2017-02-16 Thread Shane
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

Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
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 > >

Re: [Gambas-user] class

2017-02-16 Thread Shane
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

Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
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

[Gambas-user] class

2017-02-16 Thread Shane
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

Re: [Gambas-user] Class header features

2015-12-13 Thread Benoît Minisini
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

Re: [Gambas-user] Class header features (was: Declaring variables in class header without Public/Private is possible...)

2015-12-13 Thread Fabien Bodard
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

Re: [Gambas-user] Class header features (was: Declaring variables in class header without Public/Private is possible...)

2015-12-13 Thread 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 this works. As I read it '{i}ii', e.g., is a crude way to declare an

Re: [Gambas-user] Class header features

2015-12-13 Thread 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 implement it correctly... -- Benoît Minisini

Re: [Gambas-user] Class header features

2015-12-13 Thread Fabien Bodard
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

Re: [Gambas-user] Class header features

2015-12-13 Thread Fabien Bodard
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

Re: [Gambas-user] Class header features

2015-12-12 Thread Moviga Technologies
I like that idea Tobi! -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: [Gambas-user] Class header features (was: Declaring variables in class header without Public/Private is possible...)

2015-12-12 Thread Fabien Bodard
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 >>

Re: [Gambas-user] Class header features (was: Declaring variables in class header without Public/Private is possible...)

2015-12-12 Thread Fabien Bodard
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: >>> > >>> >

Re: [Gambas-user] Class header features (was: Declaring variables in class header without Public/Private is possible...)

2015-12-11 Thread 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 > > programs will not compile anymore. > > > > Regards, > > Thank

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-20 Thread John Leake
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

[Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
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

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Tobias Boege
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.

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Benoît Minisini
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)

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
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

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
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

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread John Leake
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

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Benoît Minisini
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

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Benoît Minisini
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

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
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.

Re: [Gambas-user] Class info contradicts by Gambas added class info

2014-09-19 Thread Willy Raets
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

[Gambas-user] Class editor toolbar keyboard shortcuts?

2014-02-14 Thread Stephen
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,

[Gambas-user] class vs module : usage property, behabior usage

2013-11-09 Thread PICCORO McKAY Lenz
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

Re: [Gambas-user] class vs module : usage property, behabior usage

2013-11-09 Thread Fabien Bodard
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-06 Thread Fabien Bodard
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-06 Thread Jesus
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-05 Thread Tobias Boege
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-05 Thread Jesus
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-05 Thread Tobias Boege
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-05 Thread Fabien Bodard
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-05 Thread Benoît Minisini
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-05 Thread Dimitris Anogiatis
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

[Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-03 Thread Jesus
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

Re: [Gambas-user] Class Window in gb.qt4 vs gb.ncurses

2013-05-03 Thread Benoît Minisini
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

[Gambas-user] Class Draw deprecated since Gambas 3.4

2013-01-25 Thread Pablo
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#

Re: [Gambas-user] Class Draw deprecated since Gambas 3.4

2013-01-25 Thread Jussi Lahtinen
...? 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

[Gambas-user] Class in Variant?

2012-05-22 Thread Emil Lenngren
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 --

Re: [Gambas-user] Class in Variant?

2012-05-22 Thread Benoît Minisini
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

Re: [Gambas-user] Class in Variant?

2012-05-22 Thread Emil Lenngren
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:

Re: [Gambas-user] Class Constructor private var questions

2012-02-13 Thread Emil Lenngren
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

[Gambas-user] Class Constructor private var questions

2012-02-12 Thread 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

Re: [Gambas-user] Class name bug.

2011-06-27 Thread Demosthenes Koptsis
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

Re: [Gambas-user] Class name bug.

2011-06-26 Thread Benoît Minisini
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

Re: [Gambas-user] Class name bug.

2011-06-25 Thread Demosthenes Koptsis
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

[Gambas-user] Class name bug.

2011-06-20 Thread Demosthenes Koptsis
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.

Re: [Gambas-user] Class name bug.

2011-06-20 Thread Fabien Bodard
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

Re: [Gambas-user] Class name bug.

2011-06-20 Thread Jussi Lahtinen
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

[Gambas-user] Class destructor

2010-11-16 Thread Ricardo Díaz Martín
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

Re: [Gambas-user] Class destructor

2010-11-16 Thread Fabien Bodard
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,

[Gambas-user] class

2010-04-01 Thread yuhej
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