Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/07/2011, 22:29
crucifijo
 
Fecha de Ingreso: septiembre-2003
Mensajes: 182
Antigüedad: 20 años, 8 meses
Puntos: 1
Pregunta error "55" en tiempo de ejecuacion

Hola amigos fijense que tengo el siguiente error al querer guardar un archivo de texto me manda el siguiente error:

error "55" en tiempo de ejecuacion
El archivo ya esta abiero

les dejo mi codigo:

El boton guardar se llama Command2

Private Sub Command2_Click()

Dim contenido As String
Dim num As Integer
Dim archivos As String

archivos = "c:/registro.txt"
num = FreeFile

If Op1 = True Then
sexo = "Masculino"
End If

If Op2 = True Then
sexo = "Femenino"
End If

Open archivos For Append As num
Print #num, txtnombre, txtedad, sexo
Close
Open archivos For Input As num
contenido = Input$(LOF(num), #num)
Close
R = contenido
End Sub

espero me puedan ayudar muchas gracias