Let's supose we have constants like this:
Public Const fooBar = "whatever"
Public Const barBar = "else"
Than, elswhere in a Sub retrieve the constant value like this:
Function GetString(index1 as String, index2 as String) as String
Dim index as String = index1 & index2
Return ' ... here I need the magic to retrieve the specific constant resulted from the combination of those two indexes ...
End Function
Using Select Case statement is not an option, since there are a large number of contstants and posible combinations of them. Also, any other aproach is more than wellcome.