My question is written as comment line.
More than a question it is a fact, but it doesn't seem very correct to me.
Note (for the picky ones like me ?): obviously I would never create a custom type like that, with only one "field".
B4X:
Type tTest(Elems As List)
Private objTest As tTest
objTest = CreatetTest(Null)
B4X:
Public Sub CreatetTest (Elems As List) As tTest
Dim t1 As tTest
t1.Initialize
' If Elems = Null Then ' Why Elems is not Null here and I have to use the next line?
If Elems.IsInitialized = False Then
Elems.Initialize
End If
t1.Elems = Elems
Return t1
End Sub
More than a question it is a fact, but it doesn't seem very correct to me.
Note (for the picky ones like me ?): obviously I would never create a custom type like that, with only one "field".
Last edited: