I want to know how I can edit any element of a queue in Visual Basic. Can you tell me if there's any method or any way to get to get an element and modify it? I want to modify the first element of a queue but I have no idea.
On the line COLAESPERA. Peek-1 I need to subtract the first element of the queue.
Public Sub RR()
If COLAESPERA.Count = 0 Then
Else
For i = 1 To quamtun
***COLAESPERA.Peek-1***
If COLAESPERA.Peek = 0 Then
COLAESPERA.Dequeue()
RR()
Else
If i = quamtun Then
COLAESPERA.Enqueue(COLAESPERA.Dequeue)
RR()
End If
End If
Next
End If
End Sub