Can i save a list of strings in a resource file?

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

Hi,

Is it possible to save ArrayList or other type in a resource file?

I need to populate a list box with a predefined options
and I would like to save them in a resource file
I also don't want to use split on a string etc..

Thanks in advance
 
Julia,

I don't think you can save an arraylist to a resource file. However,
you could adopt a naming convention such that it would append 1, 2, 3...N at
the end of a tag. Then, you can just increment a counter, and when you find
that the resource with the tag name + number doesn't exist, you can stop
adding to your list.

Hope this helps.
 
Back
Top