Ola
In a class module I have defined a type.
On the class Initialize method the type is initializes
Now I create an instance of this class and call it.
This works well so far.
However, as soon as I execute this call..
Im getting a
This however works well, though longer
What am I doing wrong..
In a class module I have defined a type.
B4X:
Type StylesObj (font As String, lineWidth As Double, lineColor As List)
Public styles As StylesObj
On the class Initialize method the type is initializes
B4X:
styles.Initialize
styles.font = ""
styles.linewidth = 0
styles.lineColor.Initialize
Now I create an instance of this class and call it.
B4X:
Dim tblA as MyClass
tblA.Initialize
tblA.styles.font = "Meta"
tblA.styles.lineWidth = 0.55
This works well so far.
However, as soon as I execute this call..
B4X:
tblA.styles.lineColor.AddAll(Array As Int (44, 62, 80))
Im getting a
B4X:
ReferenceError: _linecolor is not defined
This however works well, though longer
B4X:
tblA.styles.lineColor.Add(44)
tblA.styles.lineColor.Add(62)
tblA.styles.lineColor.Add(80)
What am I doing wrong..