Si no viene con SRC no va en esta sección.
DoEvents!
DoEvents!
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúOption Explicit
Private Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cX As Long, ByVal cY As Long, ByVal wFlags As Long) As Long
Private Const HWND_BOTTOM& = 1
Private Const SWP_NOSIZE& = &H1
Private Const SWP_SHOWWINDOW& = &H40
Private Const SWP_NOOWNERZORDER& = &H200
Private Sub Command1_Click()
Call SetWindowPos(Me.hwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOOWNERZORDER Or SWP_NOSIZE Or SWP_SHOWWINDOW)
End Sub
\s*(\S+)\s*
Cita de: R@mi en 4 Abril 2011, 17:18 PM¿Era necesario el spam?
Ya lo vi, Muy bueno
PD: I'm MR. X xDDDD
foro.gmks.com.ar Raaaato que no te veo alla xD
xDxDxDxDxD
Option Explicit
'// @ntdll.dll
Private Declare Sub RtlMoveMemory Lib "ntdll.dll" (ByVal Destiny As Long, ByVal Source As Long, ByVal Bytes As Long)
Private Type SPLIT_POSITION
Mark As Long
LenBDel As Long
End Type
Public Static Function MrFrogMultiSplit(ByRef strText$, ByRef strDelimiter$(), ByRef strOutputArray$()) As Boolean
Dim strTmpDel$, lngLenBDel&, lngLenBText&, lngUBDel&, lngLBDel&
Dim SP() As SPLIT_POSITION, tmpSP As SPLIT_POSITION
Dim lngCount&, lngStart&, B2c&, Q&, C&
lngLenBText = VBA.Strings.LenB(strText)
If (Not Not strDelimiter) And (lngLenBText > 0) Then
lngLBDel = LBound(strDelimiter)
lngUBDel = UBound(strDelimiter)
ReDim SP(255) As SPLIT_POSITION
lngCount = 0
For Q = lngLBDel To lngUBDel
strTmpDel = strDelimiter(Q)
lngStart = VBA.Strings.InStrB(1, strText, strTmpDel)
If (lngStart - 1)>0 Then
lngLenBDel = VBA.LenB(strTmpDel)
Do
tmpSP.Mark = lngStart
tmpSP.LenBDel = lngLenBDel
lngStart = VBA.Strings.InStrB(lngStart + lngLenBDel, strText, strTmpDel)
C = lngCount
If C Then
Do While tmpSP.Mark < SP(C - 1).Mark
C = C - 1
If C = 0 Then Exit Do
Loop
If C < lngCount Then
B2c = lngCount - C
RtlMoveMemory VarPtr(SP(C + 1)), VarPtr(SP(C)), B2c + B2c + B2c + B2c + B2c + B2c + B2c + B2c
End If
End If
SP(C) = tmpSP
lngCount = lngCount + 1
If lngCount And &HFF Then
ReDim Preserve SP(lngCount + &HFF) As SPLIT_POSITION
End If
Loop While lngStart
End If
Next Q
ReDim strOutputArray$(lngCount)
lngCount = lngCount - 1
lngStart = 1
For Q = 0 To lngCount
strOutputArray$(Q) = VBA.Strings.MidB$(strText, lngStart, SP(Q).Mark - lngStart)
lngStart = SP(Q).Mark + SP(Q).LenBDel
Next Q
If (lngStart And Not 1) < lngLenBText Then
strOutputArray$(Q) = VBA.Strings.MidB$(strText, lngStart, lngLenBText - lngStart + 2)
End If
MrFrogMultiSplit = True
End If
End Function
Private Sub Form_Load()
Const strTest$ = "My+name--is(((MrFrog====and+I--love(((frogs... :P+hahaha===="
Dim strArr$(), strDels$()
Dim FixIdeBug&()
Dim vItem
Debug.Assert Not FixIdeBug Or App.hInstance
strDels = Split("+ -- ((( ====", " ")
If MrFrogMultiSplit(strTest, strDels, strArr) Then
Debug.Print "---> "; Time$; " <---"
For Each vItem In strArr
Debug.Print vItem
Next vItem
End If
End Sub
Int(lExp / 2)
lExp \ 2