Android Question Arrays ?

Colin Evans

Active Member
Licensed User
Longtime User
Hi, in my only previous programming language (M) one of the most useful features was globals, basically tree structured arrays

Name("00:30")="test"
Name("00:45")="test2"
Name("01:00")="test3"
Name("01:30")="Test4"

Not sure how to explain, but I want the array key to hold a string rather than a numeric value, then when I want get the data side i can simply say X = Name("00:45") and X would equal 'test2' does that make sense, can it be done, basically I wish to read in some temporary data into an array list and then compare the value of a select variable against the one held in the temporary array list, so if some one selects a specific time I can get the value held in the, in this example Name array list, sorry to be so vague
 

Colin Evans

Active Member
Licensed User
Longtime User
I have now, thank you but is there any way of making the values available to any module, I can put the data in RatesChk.Put(tim0Chk, invChk) but I can't seem to access it from my other module where I need to extract invChk with 'InVData = RatesChk.Get(tim0(i))'
 
Last edited:
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I have now, thank you but is there any way of making the values available to any module,
This way:
Thanks found a way round with File.WriteMap and File.ReadMap
only if they must be permanently saved, i.e. available at each start of the app.
Otherwise, simply declare your Maps as Public in the Starter service or in a code module.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…