Basically, is there a way I can do the following, and if so, how?:
Expand|Select|Wrap|Line Numbers
- Sub ResolveArrays(ByVal array1() As String, ByVal valueX As String, _
- Optional ByVal array2() As String = {""}, Optional ByVal retry As Boolean = False)
- ' Code to take array1 and compare each value to valueX,
- ' if no value is found, either exit or
- ' (optionally) compare the second array to valueX if the retry flag is set
- Exit Sub
Of course, there are other ways I can do this, but it's bugging me now - are optional arrays not allowed?
(For an example of where the above could be used: comparing a specific value to a list of words then, if not found, comparing it to a list of common mistakes)