[Gambas-user] how to write text in indexed list of labels
jussi.lahtinen at gmail.com
Mon Sep 7 21:41:48 CEST 2020
> Look at it this way
> Print TypeOf(Me["Label1"])
> 16 (=gb.Object)
> OK! It is an object so I can do Object "stuff" with it. Like looking at
> BUT if you read every word of the help for Object.Type
> "Returns the class name of an object."
> Object.Type(Me["Label1"]) is just rerturning a string which is the Name
> of the class of which Me["Label1"] is an instance --- but it is still an
> object not a Label!
I don't understand your point. That is exactly what I expect to see. TypeOf
returns "object" for every possible instance of every possible class.
So, instance of Label is object and TypeOf will return so as expected.
The problem is that Me["Label1"] does not return an object, which is an
instance of class label, but instance of class control.
That is unexpected. Looks like a bug to me.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User