|
-
Apr 4th, 2004, 02:41 PM
#20
Frenzied Member
I think that would work if you din't mind the extrea lib..... I like hellswraiths answer though. Even if ReDimming an array has some overheade issues unless you have a huge ind like 999,999,999 the extra procces ticks needed are not even worth talking about on the machines we have today. Yeah that old AS 400 might not like a bunch of resizing arays but let's face it redim is a wide used and wide spread tool. Every Script language does it or damn near every one. And it's very handy.
I have to say there are some old school asm and c++ programmers that say it is ineficiant just because it is not because it's wrong to do or even that they never would do it. The trick is knowing if a resized array is the answer you need or if something else would do the trick. I don't know about linked lists and so on so I honestly couldn't say what would be the best way to go. I do know that an Array list functions like an array but it support the add and insert members which let you be free of the worry of a fixed index. It also seems to be Microsfts answer to the I need a variable sized array. MSDN recommends it's use to solve this problem. Does that mean it is effecient? No. It means it will do the job without having to write any extra code except.
Magiaus
If I helped give me some points.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|