Click here to Skip to main content
15,929,841 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Marking a 'byref' param as output only Pin
Thomas Stockwell10-Jul-08 11:18
professionalThomas Stockwell10-Jul-08 11:18 
AnswerRe: Marking a 'byref' param as output only Pin
jzonthemtn10-Jul-08 11:20
jzonthemtn10-Jul-08 11:20 
AnswerRe: Marking a 'byref' param as output only Pin
Dave Doknjas10-Jul-08 13:29
Dave Doknjas10-Jul-08 13:29 
GeneralRe: Marking a 'byref' param as output only Pin
jzonthemtn11-Jul-08 2:51
jzonthemtn11-Jul-08 2:51 
QuestionCrystal Report: How to obtain minimum for a subtotal value ? Pin
David Mujica10-Jul-08 8:01
David Mujica10-Jul-08 8:01 
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 
Hi,

an array can't do that without a performance hit, since all its data has to be moved.
That is exactly why they invented all those other fancy data structures, such as linked lists.

Now linked lists may be too expensive for your needs (depends on how often you want to prefix something
to a loaded array). If only seldom, I would suggest a linked list of arrays, i.e. each node in the
linked list contains an array. So you would start off with a single node containing the original array,
then prefix one node with the one new data item in a single-element array.

Of course, whatever you choose, if it is not an array, then you may not get some of the nice features
an array offers, such as fast indexing, automatic sorting, reversing, etc.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


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 
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 

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.