Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am creating a listbox from an array. The user wants to be able to key a number in a textbox to designate which item to delete from the listbox and from the array. I can recreate the listbox, deleting the necessary item. For the array, however, I want to delete the item, and bump up the index for the remaining items in the array behind it. Each time the button is clicked, the array should be decreased by the number entered in the textbox. Each time the array will get smaller and smaller. Does anyone have any suggestions on how to easily do this. I know I can use REDIM, but do I need to write a temporary array, delete the items, and then write it back to the original array, using the REDIM?

 

Thanks, Donna

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