Getting this error message.
Searched the forum, and it has come up several times, but I'm wondering why (in my case) it is considered an error, since they are being defined in separate namespaces.
I tried defining them as "Private" and it still gives me the error.
This doesn't seem like it should be a problem unless I've misunderstood how namespaces work in B4J.
VarMap - 57: Current declaration does not match previous one.<br />Previous: {Type=Map,Rank=0, RemoteObject=True}<br />Current: {Type=List,Rank=0, RemoteObject=True}
Searched the forum, and it has come up several times, but I'm wondering why (in my case) it is considered an error, since they are being defined in separate namespaces.
I tried defining them as "Private" and it still gives me the error.
This doesn't seem like it should be a problem unless I've misunderstood how namespaces work in B4J.
Same Variable Name But Two Different Namespaces:
If value Is Map Then
Dim copy As Map = CopyMap(value)
newMap.SetValue(key, copy)
Else If value Is List Then
Dim copy As List = CopyList(value)
newMap.SetValue(key, copy)
Else
newMap.SetValue(key, value) ' Direct copy for simple types
End If