Click here to Skip to main content
15,900,108 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to add items to the beginning of an array Pin
darthjimmy13810-Jul-08 7:25
darthjimmy13810-Jul-08 7:25 
AnswerRe: How to add items to the beginning of an array Pin
jzonthemtn10-Jul-08 11:17
jzonthemtn10-Jul-08 11:17 
AnswerRe: How to add items to the beginning of an array Pin
Luc Pattyn10-Jul-08 14:01
sitebuilderLuc Pattyn10-Jul-08 14:01 
AnswerRe: How to add items to the beginning of an array Pin
Guffa10-Jul-08 15:52
Guffa10-Jul-08 15:52 
GeneralRe: How to add items to the beginning of an array Pin
Chinners11-Jul-08 0:53
Chinners11-Jul-08 0:53 
GeneralRe: How to add items to the beginning of an array Pin
Mark Churchill11-Jul-08 1:04
Mark Churchill11-Jul-08 1:04 
GeneralRe: How to add items to the beginning of an array Pin
Guffa11-Jul-08 3:33
Guffa11-Jul-08 3:33 
GeneralRe: How to add items to the beginning of an array Pin
Chinners11-Jul-08 4:29
Chinners11-Jul-08 4:29 
Yep. That is how VB resizes an array. I never said it was efficient. I was responding to the statement saying you can’t resize an array. The original statement inferred it was a manual job to copy data from one array to another.

However, from a runtime point of view, the array has been resized. It is not be the most efficient thing to do (well, it may be more efficient on small arrays, but then I am possibly overcomplicating things Smile | :) ), But the end result of a redim will be to have changed the upper bound of the array. I would never use this sort of "feature" in a loop with lots of elements in the array, but for an occasional hit, especially if the rest of the app written is geared towards arrays, then I would say it is appropriate.

I did, however suggest that a list would be more efficient... It was just the word "CANT" I didnt like to see Smile | :)
GeneralRe: How to add items to the beginning of an array Pin
Dave Kreskowiak11-Jul-08 8:09
mveDave Kreskowiak11-Jul-08 8:09 
GeneralRe: How to add items to the beginning of an array Pin
Chinners11-Jul-08 8:33
Chinners11-Jul-08 8:33 
GeneralRe: How to add items to the beginning of an array Pin
Dave Kreskowiak11-Jul-08 9:00
mveDave Kreskowiak11-Jul-08 9:00 
AnswerInstallation Error: Application validation Dose not succeed. Unable To continue + Reference in the manifest does not match the identity of the downloaded assembly Pin
nishkarsh_k10-Jul-08 6:48
nishkarsh_k10-Jul-08 6:48 
GeneralRe: Installation Error: Application validation Dose not succeed. Unable To continue + Reference in the manifest does not match the identity of the downloaded assembly Pin
John_Adams10-Jul-08 19:38
John_Adams10-Jul-08 19:38 
GeneralRe: Installation Error: Application validation Dose not succeed. Unable To continue + Reference in the manifest does not match the identity of the downloaded assembly Pin
nishkarsh_k10-Jul-08 23:58
nishkarsh_k10-Jul-08 23:58 
QuestionCopying Files and it's containing files to another location Pin
CornElvis10-Jul-08 2:38
CornElvis10-Jul-08 2:38 
AnswerRe: Copying Files and it's containing files to another location Pin
jzonthemtn10-Jul-08 3:15
jzonthemtn10-Jul-08 3:15 
GeneralRe: Copying Files and it's containing files to another location [modified] Pin
CornElvis10-Jul-08 3:33
CornElvis10-Jul-08 3:33 
GeneralRe: Copying Files and it's containing files to another location Pin
jzonthemtn10-Jul-08 5:13
jzonthemtn10-Jul-08 5:13 
GeneralRe: Copying Files and it's containing files to another location Pin
CornElvis10-Jul-08 5:42
CornElvis10-Jul-08 5:42 
GeneralRe: Copying Files and it's containing files to another location Pin
jzonthemtn10-Jul-08 6:44
jzonthemtn10-Jul-08 6:44 
GeneralRe: Copying Files and it's containing files to another location Pin
Luc Pattyn10-Jul-08 7:10
sitebuilderLuc Pattyn10-Jul-08 7:10 
GeneralRe: Copying Files and it's containing files to another location Pin
CornElvis11-Jul-08 2:40
CornElvis11-Jul-08 2:40 
Questionhow to draw a road map in vb 2008? Pin
dunkin_ina9-Jul-08 22:06
dunkin_ina9-Jul-08 22:06 
AnswerRe: how to draw a road map in vb 2008? Pin
jzonthemtn10-Jul-08 4:17
jzonthemtn10-Jul-08 4:17 
GeneralRe: how to draw a road map in vb 2008? Pin
dunkin_ina13-Jul-08 22:07
dunkin_ina13-Jul-08 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.