Código: Seleccionar todo

'--------------------------------------------
'|Autor: Slek & The Swash
'|[ALTERNATIVE] Function StrRev
'|Indetectables.net
'--------------------------------------------
Public Function StrRev(hStr As String) As String
 
 If Len(hStr) > 0 Then
   For i = Len(hStr) To 1 Step -1
    StrRev = StrRev & Mid$(hStr, i, 1)
   Next i
 End If
 
End Function
Esta funcion hace exactamente lo mismo que StrReverse y por ello es una alternativa
Esperamos a alguien le sirva =)
En tu ventana
Y en tu ventana, gritas al cielo pero lo dices callada..
Parecida a la de sangelas... lo mismo, no está mal. Thank you
Imagen

http://img844.imageshack.us/img844/8088/mujerrara.jpg
http://img715.imageshack.us/img715/5813/tigree.png
http://img830.imageshack.us/img830/6484/camaleon.png

http://img839.imageshack.us/img839/4944/tigrev2.jpg
http://img843.imageshack.us/img843/443/spidermanxn.png

http://www.youtube.com/watch?v=wHYYkciIKE0
xpro escribió:Parecida a la de sangelas
La de Sanlegas desordenaba los caracteres de una cadena, esta hace lo mismo que la función StrReverse() que solo le da vuelta al orden de la cadena

Saludos
¿Si usted muriera hoy esta seguro que iría al cielo?
http://www.antesdelfin.com/salvo.html

© Indetectables Team

Código: Seleccionar todo

Private Function InStrRevAlt(ByVal StringCheck As String, ByVal StringMatch As String, Optional ByVal Start As Long = -1, Optional Compare As VbCompareMethod = vbBinaryCompare) As Long
    If Start = -1 Then Start = Len(StringCheck)
    Start = Len(StringCheck) - Start + 1
    If Start < 1 Then Exit Function
    InStrRevAlt = InStr(Start, StrReverse(StringCheck), StringMatch, Compare)
    If Not InStrRevAlt = 0 Then InStrRevAlt = Len(StringCheck) - InStrRevAlt + 1
End Function
Responder

Volver a “Otros lenguajes”