antaeusguy
Board Regular
- Joined
- Mar 8, 2010
- Messages
- 81
Hi
I wish to clarify the purpose of Option Base 1.
I now want the array Country() to contain only 12 elements.
If I've declared Option Base 1, then the ReDim would start at 1 and ends at 12.
If I did not declare Option Base 1, then I would need to specify the ReDim so that it would start at 1 and ends at 12.
I would like to know if declaring both Option Base 1 and also in the ReDim to be unnecessary... that I just need to declare only one would do.
Thanks in advance!
I wish to clarify the purpose of Option Base 1.
I now want the array Country() to contain only 12 elements.
If I've declared Option Base 1, then the ReDim would start at 1 and ends at 12.
Code:
Option Base 1
Sub Example1()
Dim Country() As String
ReDim Country(12)
End Sub
If I did not declare Option Base 1, then I would need to specify the ReDim so that it would start at 1 and ends at 12.
Code:
Sub Example1()
Dim Country() As String
ReDim Country(1 To 12)
End Sub
I would like to know if declaring both Option Base 1 and also in the ReDim to be unnecessary... that I just need to declare only one would do.
Code:
Option Base 1
Sub Example1()
Dim Country() As String
ReDim Country(1 To 12)
End Sub
Thanks in advance!