B4J Question Map As Map expects an Array

LWGShane

Well-Known Member
Licensed User
Longtime User
I'm working on creating a cross platform version InputMap and when testing it (to see if it displays the map properly), B4J says that "InsertMap (YourMap As Map)" expects an Array which is wrong. This only occurs when the module is compiled as a library and it doesn't matter which JDK I use to compile it. (When used as a module it works perfectly.) Project is attached.

B4X:
B4J Version: 6.80
Parsing code.    (0.01s)
Building folders structure.    (0.00s)
Compiling code.    Error
Error compiling program.
Error description: Array expected.
Error occurred on line: 31
MID.InsertMap(Options)
Word: (

Project is attached.
 

Attachments

  • MapInputDialog.zip
    4.2 KB · Views: 174

stevel05

Expert
Licensed User
Longtime User
It looks like you have compiled to a library and left the module in the project, you only need one or the other. Remove (or rename) the module and try it.
 
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime User
It looks like you have compiled to a library and left the module in the project, you only need one or the other. Remove (or rename) the module and try it.
That's interesting - you learn something new everyday.

Update: It works :) I've removed the need to use Wait For since everything is local and I'll be releasing the module by this weekend (12/8 to 12/9).
 
Last edited:
Upvote 0
Top