Hi David, you don't really say if your app will need to update these values (say for instance because of something the user does), or if they are not ever changing, so you only need to display/speak them to the user? If you only need to display them to the user, then the XML file is perfect for this; there's no problem in adding as many strings as you like; any other code in your app generated by the WEScripting Framework or anything else will just ignore them, and as you say, you can internationalize it very easily. If you do need to change them, but you only have say a hundred or two, then a .ini file will do fine. yes, you can put numbers or strings in .ini keys. You could for instance have each .ini entry consist of the string value equals and it's associated number. (such as USA=1.02). hth, Chip
_____ From: David [mailto:[email protected]] Sent: Friday, September 09, 2011 5:05 PM To: [email protected] Subject: What is the best way to store a dictionary? Obviously I don't know much about storing things, from a script. Smile. My problem is, that I need to store information, holding two 'columns'. I thought at first of using a dictionary. Secondly I was considering the usage of the app's INI file. But I am really not sure any longer, what would be the way to handle this the most smart. Thing is that I need to store info like: Australia 6.5 USA 5.55 Denmark 1.0398 Europe 9.02 As you can see, I will need a set of 'keys', with textual names. These has to go along with a corresponding set of decimal numbers. As I said, I was considering using the INI file. But somehow, I got it from the reference manual of WE, that you only can store integers for the INI file. Is that so, or am I messing up my mind here. I then thought of using the XML file, and store a set of strings there. But these would have to be seperate from other strings in the XML file, or how would my app distinguish them from strings of more general kind in my XML file. Is there a way of 'grouping' strings in the XML? The benefit of the XML, of course, would have been that I could have translated the textual keys into each languge supported; of which there would be no way in the INI file. But it is not a too big problem, since the info the user really would need to get in touch with here, is the set of decimal values; hence he might not care too much of the textual notation. Any good workaround for my issue? Thanks,
