
07-23-2012, 10:31 AM
|
 |
Sinecure Expert
Super Moderator * Guru *
|
|
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 7,714
|
|
|
Why not compile (and run) it?
That is the best way to test code.
I assume your class did not use VB6, because it would not work there.
(in VB6 the initial array could not be declared Dim'd with bounds, it would either have to be ReDim'd initially with bounds (which is not allowed in VB.net) or Dim'd without any bounds Dim myfirstArray() as String to make it "dynamic".)
In VB.Net it would work, assuming the ReDim was in a procedure (sub or function).
It could be a trick question, since arrays are 0 based, the "size" of array myfirstArray(7, 15) is really 8 x 16, so if you were to take the question literally, then perhaps it should be an array with ubounds of (2,5) going to an array with ubounds of (6,14).
|
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
|