Hello everyone.
I've a Map, that will be saved using
in the Key "CustomType" I wish to save some data of a custom type, for example this one
I tried to save it by using the
what is the right way to save a custom type to file and retrive it?
Thanks in advance
I've a Map, that will be saved using
File.WriteMap
B4X:
Dim m1 As Map = CreateMap("Version": AppVersion, _
"Thing1": -1, _
"Thing2": "", _
"Thing3": "", _
"CustomType": Null)
in the Key "CustomType" I wish to save some data of a custom type, for example this one
B4X:
Type Pulizia (StartTime As Long, EndTime As Long)
I tried to save it by using the
.Put method of Maps, saving it to file using .WriteMap, then read the file again with .ReadMap and using .Get("CustomType") to retrive the value and associate to a variable, but i get an error saying that is not castable...what is the right way to save a custom type to file and retrive it?
Thanks in advance