feedburner
Enter your email address:

Delivered by FeedBurner

VB Coding!

CATEGORIAS: , ,

Hubo peticiones de publicar codigos en vb, uno de los mas recientes fue cargar txt archivos de x Path al form. Vamos a ver, eso es lo ke hice tan de prisa, si le ven error sorry, eeemmm, no ando de humor ahora,

Need
Form1, Command1, Text1,Module1 (bas)

Codigo para Modulo:


Public Function readFile(lTxt As String, strFile As String)
Dim xLine As String, gFn As Integer, xLineCnt As Long
'created by d4rksoft
'function that read file from X Path
'First Define
gFn = FreeFile
' Opens a text file for input
On Error Resume Next
Open strFile For Input As gFn
xLineCnt = 1
' Reading the contents of the file
Do While Not EOF(gFn)
Line Input #gFn, xLine
xLine = xLine & vbCrLf
lTxt = lTxt & xLine
Loop
Form1.Text1.Text = lTxt
' Close the file
Close gFn
End Function


Code para Command1:


readFile Text1.Text, App.Path + "\txtLogFile.txt"

Por ultimo, link de descarga si les pa pereza copiar:

http://club.telepolis.com/d4rkv1rus/eko.rar

P.D. de prueba en txt archivo en la carpeta he puesto lyrics de no se quien ajajaja, buscaba algo de metallica y creo puse algo que ni se de quien es o.O si saben avisar o.o sigo viendo euronews


Buscas un programa y no lo encuentras? Pidelo , posteando en blog o en tag y te lo conseguimos!



1 comments:
gravatar
rokoo said...
Saturday, August 02, 2008  

bueno pues mas kedana gracias dark por meter el anti bots espero ke sigas poniendo mas ejemplos como este gracias

Post a Comment