Re: [Gambas-user] Another basics

2012-01-07 Thread Dmitrij Malkov
> I've been writing a book on Gambas. This is great deal. > I've been writing this using Lyx but will post it on the web. Maybe LaTeX is better? I can convert It to LaTeX if you want. > So any help in correcting them and any technical direction would be nice. Books written by the community o

Re: [Gambas-user] File opening dialog and one more question

2012-01-07 Thread Dmitrij Malkov
I add a new class, child to CUnit. I named It "CUnitChild". It's code: -- ' Gambas class file Inherits CUnit -- And I add creation on object of this class in the middle of MMain: ---

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
Now I have modified the code. In CUnits: --- ' Gambas class file Static Private NumberOfUnits As Integer = 0 Static Private CountOfCreations As Integer = 0 Private Id As Integer 'Identity number 'constructor Public Sub _new() NumberOfUnits +

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
Caveat wrote: > > >> works correct without any DIM at all? > > Because HowManyUnits is a static function so you don't need to create > any instances of CUnit to be able to call that function. > > Yes. All my problem was in my messing up "DIM" and real creation of an object. Code that sati

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
Willy Raets wrote: > > On vr, 2012-01-06 at 07:33 -0800, Dmitrij Malkov wrote: > >> I wondered that the code >> --- >> Public Sub Main() >>CUnit.HowManyUnits() >> End >> -

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
FUNCTION or SUB before the first executable command." I don't see that I have breaked this. Thank you. Dmitrij Malkov -- View this message in context: http://old.nabble.com/File-opening-di

Re: [Gambas-user] Another basics

2012-01-06 Thread Dmitrij Malkov
Hi! We have the same task, comrade! I am interesting in Gambas3's Object Oriented Programming paradigm too. I think you are right. It is good to make some small guide that will illustrate on samples language's opportunities in console without any components. How to create classes, how to inheri

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
"Static" means: - For a variable, that the variable is stored in the class, not in any object. So there is only one such variable. Its value does not depend on the object. - For a method (or a property), that the method cannot use any non-static symbol (ME is NULL). - For a constant, nothing, a