Underc0de

Programación General => Visual Basic => Mensaje iniciado por: Yuki en Marzo 04, 2015, 12:37:42 PM

Título: [SRC] String Alternativo
Publicado por: Yuki en Marzo 04, 2015, 12:37:42 PM
El codigo de String Alternativo usando la API FillMemory

Option Explicit
Private Declare Sub FillMemory Lib "kernel32.dll" Alias "RtlFillMemory" (Destination As Any, ByVal Length As Long, ByVal Fill As Byte)

Private Function StringAlternativo(ByVal Longitud As Long, ByVal Caracter As Byte) As String
Dim Str As String
Str = Space(Longitud)
FillMemory ByVal Str, Longitud, Caracter
StringAlternativo = Str
End Function