I know this has been up in earlier posts but I just couldn't figure it out.

My array is a structure like this:

VB Code:
  1. Public Structure Appointment
  2.         Public Counter As Integer
  3.         Public Year As Integer
  4.         Public Week As Integer
  5.         Public Weekday As Integer
  6.         Public Frequens As String
  7.         Public Where As String
  8.         Public Note As String
  9.     End Structure
  10.  
  11. Public MyAppointment() As Appointment

My objective is to remove an item in that array.

I do it like this (where intindex is the item I want to remove):

VB Code:
  1. For i = intIndex To MyAppointment.Length - 1
  2.            
  3.       MyAppointment(i) = MyAppointment(i+1)
  4.  
  5.    Next i

Ok. So far so good. Now I only need to delete the last item of my array. Otherwise the length of my array is still the same (and the two last items of the array will be identical)

How can I do that ?

Anwin