Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/08/2011, 08:19
Avatar de rikakashi
rikakashi
 
Fecha de Ingreso: julio-2011
Mensajes: 226
Antigüedad: 12 años, 9 meses
Puntos: 33
Respuesta: Validar campos vacios

Código vb.net:
Ver original
  1. Dim HayError As Boolean= false
  2. If Tbenvases.Text = nothing Or Tbunidades.Text = nothing Or TbcodiArticulo.Text = nothing Then
  3.  
  4. HayError = True
  5. MsgBox "Faltan Datos", MsgBoxStyle.OkOnly & MsgBoxStyle.SystemModal & MsgBoxStyle.Exclamation & MsgBoxStyle.DefaultButton1, "Faltan datos"
  6. End If
  7.  
  8. cmd.ExecuteNonQuery()
  9. End If
__________________
la programación es tan grande como la imaginación (+.+)