Visual Basic - Como crear un archivo de texto

Life is soft - evento anual de software empresarial
 
Vista:

Como crear un archivo de texto

Publicado por Tana (4 intervenciones) el 04/08/2003 21:30:12
Como crear un archivo de texto y despues llenarlo con información, estoy usando una conexion por recorset...

de antemano muchas gracias.
Tana
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Como crear un archivo de texto

Publicado por Skull (48 intervenciones) el 04/08/2003 21:54:42
aki hay un ejemplo de como crear un archivo de texto recorriendo un recordset

Open App.Path & "\URL.txt" For Output Access Write Shared As #1
Print #1, "Archivo Creado el: " & fecha & " a las: " & hora

While Not rcs_c.EOF
id = rcs_c!id
cat = rcs_c!categoria
rcs_u.MoveFirst
Print #1, "--------------------------------------------------------------------------"
Print #1, "" & cat
Print #1, "--------------------------------------------------------------------------"

For i = 1 To totreg
If id = rcs_u!id_categoria Then
Print #1, "" & rcs_u!URL
total = total + 1
rcs_u.MoveNext
Else
rcs_u.MoveNext
End If
Next
i = 1
rcs_c.MoveNext
Wend
Print #1, "-----------------------------------------------------------------------------"
Print #1, "Total de Urls: " & total
Print #1, "-----------------------------------------------------------------------------"
Print #1, ""
Print #1, "AUTOR : Eric Goldberg"
Print #1, "MSN : [email protected]"
Print #1, "CORREO: [email protected]"
Print #1, ""
Print #1, "StoreUrl version: " & App.Major & "." & App.Minor & "." & App.Revision
Close #1
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar