I would like to be able to take a string such as the following and put in in MySettings and have the application dynamically parse the expression. Is that possible?
Name: ClientName
Type: String
Scope: Application
Value: MyData(i).FirstName & ” ” & MyData(i).LastName
Dim name As String = My.Settings.ClientName
It’s not really possible to do if using just the simple String class. You’ll either have to create a method to parse it out or create your own object type that will do the parsing. Either way, it requires that you write code to parse out that data.
If you need some help with parsing of the data, using your above example, it’s simple enough to parse.
I’m also not sure what your MyData object is. You could put a parsing routine in that object to automatically parse the name and set the properties as needed. It could even be part of the constructor.