![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
Array Bounds
VB doesn't seem to let you ReDim Preserve UDT arrays with an Lbound less than that of the original- while you can change the Ubound fine with this method, changing the Lbound always produces a subscript out of range error for me.
Is this the case, or am I wrong? Thanks |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 4
![]() |
__________________
-- lostcauz Stepped in what?... Behind whose barn?... I didn't even know they had a cow! |
|
|
|
|
|
#3 |
|
Expert Programmer
|
Yeah but if Microsoft are providing a ridiculously easy array system for VB, they should finish it rather than getting bored with the complexity halfway through!
Anyway, I've found a solution - I just use one array for the positive indexes, and the other for negative indexes (inverted). Then I don't need to change the lower bounds, only the upper of each array. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|