Question Store 2d array in my.settings

Zexor

Well-known member
Joined
Nov 28, 2008
Messages
520
Programming Experience
3-5
What is the best my.settings type for storing a 2d array?
 
There's nothing for the specifically as far as I'm aware. I'd probably use a StringCollection where each item is a String consisting of the elements of one "row" of the array delimited with commas or whatever you find appropriate. The code to translate each way would be a few lines only.
 
if you want to store strings on your array, under "settings*" under "type" select browse' in new window select System.Collections.Specialized.StringCollection
its a 1dim string collection so you will have to do the calculations yourself

maybe someone else has got a better one...
 
Currently I am just converting the 2d array to a delimiting string and storing it in a string type my.settings.
 
Back
Top