Hi all,
say I have Map made of objects of a custom type.
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Now based on sample above I would like to be able to do somehting like:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I know that I could just make a "put" with "Key1" but I have noticed that in that case the object is put at the "end" of the map.I know that maps are not made to have an order but I woud save a lot of extra code if that was possible (it is possible in VB for example..)
thanks
			
			say I have Map made of objects of a custom type.
			
				B4X:
			
		
		
		Type MyObjType (Field1 As String,Field2 as string)
Dim MyMap as Map
.....
Dim MyElement As MyObjType
MyElem.Initialize
MyElem.Field1 = "whatever1"
MyElem.Field2 = "whatever2"
MyMap.Put("key1",MyElem)
MyElem.Initialize
MyElem.Field1 = "whatever3"
MyElem.Field2 = "whatever4"
MyMap.Put("key2",MyElem)
.....Now based on sample above I would like to be able to do somehting like:
			
				B4X:
			
		
		
		MyMap("Key1").Field1 = "SomethingDifferent"I know that I could just make a "put" with "Key1" but I have noticed that in that case the object is put at the "end" of the map.I know that maps are not made to have an order but I woud save a lot of extra code if that was possible (it is possible in VB for example..)
thanks
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		