> 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
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:
---
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 +
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
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
>> -
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
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
"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