Results 1 to 9 of 9

Thread: [RESOLVED] Invalid Property Value

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    May 2009
    Posts
    56

    Resolved [RESOLVED] Invalid Property Value

    I'm trying to finish this program that use a text file to store data, but the problem here is a error 380 invalid property value. I think the problem is about the maskedit control. I use this control to let the user enter the date, and before send to the textfile a invisible textbox is used to format the input in the maskedit control.

    The error is pointing to this part of the code:
    Me.Maskfechadeefectividad.Text =Me.txtFechadeEfectividad.Text

    Code:
     Sub LeerRecord(QuePosicion As Integer)
     Dim empleado As EmpleadoTipo
        
        If QuePosicion > 0 Then
            Open App.Path + "\DatosEmpleados.txt" For Random As #2 Len = Len(empleado)
            Get #2, QuePosicion, empleado
            Close #2
         
         nuevomaximo
         mascarapone     
          Me.txtSeguroSocial.Text = empleado.SeguroSocial
      Me.txtTransaccion.Text = empleado.Transaccion
      Me.txtLlaveGenerica.Text = empleado.LlaveGenerica
      Me.txtOperador.Text = empleado.Operador
     Me.txtTerminal.Text = empleado.Terminal
     Me.txtFechadeEntrada.Text = empleado.FechadeEntrada
     Me.txtHoradeEntrada.Text = empleado.HoradeEntrada
     Me.cmbanotrimestral.Text = empleado.numerodetrimestre
     Me.txtCodigo.Text = empleado.Codigo
     Me.txtFechadeEfectividad.Text = empleado.FechadeEfectividad
    
     Me.Maskfechadeefectividad.Text =Me.txtFechadeEfectividad.Text
     Me.Maskfechadeentrada.Text = Me.txtFechadeEntrada.Text
    Me.Maskhoradeentrada.Text = Me.txtHoradeEntrada.Text
     End If
     End Sub

    Function mascarapone()
    Me.Maskfechadeefectividad.Format = "yy/mm/dd"
    Me.Maskfechadeefectividad.Mask = "##/##/##"
    Me.Maskfechadeentrada.Format = "yy/mm/dd"
    Me.Maskfechadeentrada.Mask = "##/##/##"
    Me.Maskhoradeentrada.Format = "hh:mm:ss"
    Me.Maskhoradeentrada.Mask = "##:##:##"
    End Function

    I will appreciate any help or suggestion and can give more info if is needed.
    Last edited by castellano; Jan 5th, 2012 at 06:09 PM. Reason: add suggestion

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width