Ver Mensaje Individual
  #6 (permalink)  
Antiguo 28/11/2012, 07:24
Avatar de lokoman
lokoman
 
Fecha de Ingreso: septiembre-2009
Mensajes: 502
Antigüedad: 14 años, 7 meses
Puntos: 47
Respuesta: Llamar a función desde campo de formulario

Hola!
Me parece que la forma correcta de llamar la funcion (Public Function GetDCNumSegSocial(ByVal numsegsocial As String, ByVal isNumEmpresa As Boolean) As String) es asi:

Código vb:
Ver original
  1. 'txtDigitoControl=ES UN TEXTBOX
  2. 'NumeroSS=NUMERO SEG SOCIAL
  3.  
  4. 'SI EL NUMERO PERTENECE A UNA EMPRESA
  5.       txtDigitoControl.Text= GetDCNumSegSocial(NumeroSS,True)
  6.  
  7. 'SI EL NUMERO NO PERTENECE A UNA EMPRESA
  8.       txtDigitoControl.Text= GetDCNumSegSocial(NumeroSS,False)

Y el Code es de VB.net...