Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/08/2011, 09:59
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:
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. else
  7. cmd.ExecuteNonQuery()
  8. End If
__________________
la programación es tan grande como la imaginación (+.+)