Hi,
I'm adapting an application that runs smoothly in B4A and makes extensive use of the remove function for Map objects. When switching to B4i, I noticed that it behaves differently, not returning the deleted object when it exists. It would be helpful to align the two signatures so as to avoid having to use cumbersome conditional compilation structures.
Cheers
I'm adapting an application that runs smoothly in B4A and makes extensive use of the remove function for Map objects. When switching to B4i, I noticed that it behaves differently, not returning the deleted object when it exists. It would be helpful to align the two signatures so as to avoid having to use cumbersome conditional compilation structures.
Core.xml:
B4A:
<method>
<name>Remove</name>
<comment>Removes the item with the given key, if such exists.
Returns the item removed or null if no matching item was found.</comment>
<returntype>java.lang.Object</returntype>
<parameter>
<name>Key</name>
<type>java.lang.Object</type>
</parameter>
</method>
B4i:
<method>
<name DesignerName="Remove">Remove:</name>
<comment>Removes the pair with the given key (if such exists).</comment>
<returntype>void</returntype>
<parameter>
<name>Key</name>
<type>NSObject*</type>
</parameter>
</method>
Cheers
Last edited: