put string in map

Cor

Active Member
Licensed User
Longtime User
How to put string in a map without saving it first to file


B4X:
'info = string reading from http site
info=response.GetString("UTF8")  

'don't want to use the following i want to load string from memory into map
Response.GetAsynchronously("MainResponse",File.OpenOutput(File.DirDefaultExternal, "info.dat", False), True, RequestId)
 

Brad

Active Member
Licensed User
Longtime User
Is this what you are looking for?

B4X:
Dim mMap As Map

   mMap.Initialize
   mMap.Put("Field1",value)
   mMap.Put("Field2",value)
 
Upvote 0

Cor

Active Member
Licensed User
Longtime User
Thanks,

what i'am looking for is to :

1. load text file from http
line1=1
line2=2

2. This is what i needed:
load previous text file directly into map without saving it first to a file
 
Upvote 0
Top