I am trying to put into a map a key/value pair for which the key is of type string and the value is of type Big Integer (from the Big Numbers library v.1.00):
Android complains at runtime: "Object should first be initialized: Big Integer". But obviously, bi has been initialized (the debugger confirms this). The documentation for "map" says that the value in the key/value pair can be any object. A Big Integer is an object. What do I need to do in order to make it work?
Thank you.
Regards,
B4X:
dim m as map
dim bi as BigInteger
m.Initialize
m.clear
bi.Initialize("12")
m.put("3", bi)
Android complains at runtime: "Object should first be initialized: Big Integer". But obviously, bi has been initialized (the debugger confirms this). The documentation for "map" says that the value in the key/value pair can be any object. A Big Integer is an object. What do I need to do in order to make it work?
Thank you.
Regards,