title: How to move an element in an array to the last element?
body: <p>I need to know how to move an element in an array to the last position. </p>
  
  <pre><code>Dim lastElement As String = strChar(UBound(strChar)) 'J.
  
  
      For i As Integer = 0 To characters.Count - 1
          If characters(i).actor = searchName And characters(i).title = searchMovie Then
              For j = UBound(strChar) To LBound(strChar) + strChar.Count - 1 Step -1
                  strChar(j) = strChar(j - 1)
              Next
          End If
      Next
  
  
  
      strChar(LBound(strChar)) = lastElement
  </code></pre>
  
  <p>So here I have a structure characters and an array strChar. </p>
  
  <p>I looked this code up on the internet and can't figure it out. It won't move the position of the element to the last or the first, but copies an element to the top. </p>
  
  <p>I'm supposed to be deleting an element, but first I have to move the element before redim preserving it. </p>
  
  <p>I wish I could use an arraylist, but i can't because i'm not supposed to for school.</p>