is there any easy way that i can maintain a set of, say, strings, and be able to access them easily, possibly in order whilst ensuring uniquity (if that is a word)
Printable View
is there any easy way that i can maintain a set of, say, strings, and be able to access them easily, possibly in order whilst ensuring uniquity (if that is a word)
databases, or arrays? I didn't fully understand what you wanted...
I dont know if this is what you wanted but you could use an Enumeration of strings:
Code:Private Enum NameOfEnum
String1 = "MyString1"
String2 = "MyString2"
String3 = "MyString3"
String4 = "MyString4"
String5 = "MyString5"
String6 = "MyString6"
End Enum
Private Sub Form_Load()
MsgBox NameOfEnum.String1
End Sub
they are pretty much constant, you cant change them.
I think that the ensuring uniqueness bit would be up to your code, either a 2D array or a UDT Array would do what you want I imagine, as would a collection.
If you bound it up in a class you could have your own rules to ensure uniqueness