Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE-611] Fixed GM requests removal #612

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 9 additions & 17 deletions Codigo/ModCola.cls
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ Public Function VerElemento(ByVal Index As Integer) As String


100 If IndexValido(Index) Then
'Pablo
'VerElemento = UCase$(Cola.Item(index))
'/Pablo
102 VerElemento = Cola(Index)
Else
104 VerElemento = 0
Expand Down Expand Up @@ -265,21 +262,16 @@ Public Sub Quitar(ByVal nombre As String)



Dim V As String

Dim i As Integer

Dim NombreEnMayusculas As String

'NombreEnMayusculas = UCase$(Nombre)

Dim mensajeEncoladoCompleto As String
Dim mensajeSinTimestamp As String
Dim posicionUltimoDelimitador As Integer
Dim i As Integer

100 For i = 1 To Me.Longitud
'Pablo
'V = mid$(Me.VerElemento(i), 10, Len(Me.VerElemento(i)))
'/Pablo
102 V = Me.VerElemento(i)

104 If V = nombre Then
102 mensajeEncoladoCompleto = Me.VerElemento(i)
posicionUltimoDelimitador = InStrRev(mensajeEncoladoCompleto, "Ø")
mensajeSinTimestamp = Left(mensajeEncoladoCompleto, posicionUltimoDelimitador - 1)
104 If mensajeSinTimestamp = nombre Then
106 Call Cola.Remove(i)
Exit Sub

Expand Down