Is there a fast way (single line) to initialize a variable of a customtype (set values to all members of the customtype of the variable to be initialized) . Something similar as CreateMap to easily initialize a map ?
Thanks
Thanks
B4X:
Type
Declares a structure.
Can only be used inside sub Globals or sub Process_Globals.
Syntax:
Type type-name (field1, field2, ...)
Fields include name and type.
Example:
Type MyType (Name As String, Items(10) As Int)
Dim a, b As MyType
a.Initialize
a.Items(2) = 123