Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am using a dynamic array in a loop in my application and the redim is working well, but I need to know how to reset the array.

 

Do i just use soemthing like ReDim MyArray() or would I use another method to clear the array out to where it was when I first declared it??

 

Thanks, Chester

____________________________________________

http://www.pophamcafe.com

I am starting a developers section, more tutorials than anything.

Posted

I have not worked with arrays much and am I just adding string values to the array until a certain condition is met and then I want to clear out the array. What derived classes are you talking about?

 

Thanks, Chester

____________________________________________

http://www.pophamcafe.com

I am starting a developers section, more tutorials than anything.

Posted
you want to reset the array during the execution of the method? because when the method ends the array will be reseted, unless you're using it as part of the whole object instead of the method.
Fat kids are harder to kidnap
Posted

Use an ArrayList. System.Collections namespace

 

iebidan: Fat kids move slower, so they are easier to catch, loading them into a vehicle is the hard part...but a hand truck would make it easier.

Posted
Use an ArrayList. System.Collections namespace

 

iebidan: Fat kids move slower, so they are easier to catch, loading them into a vehicle is the hard part...but a hand truck would make it easier.

I second that motion. Redimming an array is best avoided if at all possible. The ArrayList was created specifically to act as a dynamic array. It is more flexible than an Array object and can be converted by calling ToArray if a method requires an array argument.
Posted

This is another post that I have http://www.xtremedotnettalk.com/showthread.php?t=93093

 

I am trying to dynamically add datacolumns to the relations and I thought that using a dynamic array would work, but it does not work either. But hey, I am learning more about arrays and arrays lists.

 

Thanks, Chester

____________________________________________

http://www.pophamcafe.com

I am starting a developers section, more tutorials than anything.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...