Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 18th, 2005, 6:24 AM   #1
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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
Rory is offline   Reply With Quote
Old Mar 19th, 2005, 12:14 AM   #2
lostcauz
Hobbyist Programmer
 
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 4 lostcauz is on a distinguished road
Seems illogical to change the lower bound of an array?
MSDN redim MSDN lbound
HTH
__________________
-- lostcauz

Stepped in what?...
Behind whose barn?...
I didn't even know they had a cow!
lostcauz is offline   Reply With Quote
Old Mar 27th, 2005, 3:50 PM   #3
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
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.
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC