Professional Documents
Culture Documents
SqlClient
Imports System.Configuration
Module FUNCIONES
'---------------------------CONEXION CON
SQL-----------------------------------'
Try
c_sql.Open()
c_sql1.Open()
Form1.Label2.Text = "Conectado"
Form1.Label2.ForeColor = Color.Blue
Catch ex As Exception
MsgBox(ex.ToString)
Form1.Label2.Text = "Desconectado"
Form1.Label2.ForeColor = Color.Red
End Try
End Sub
'--------------------------------------------------------------------------------'
Public Sub consultarPersona(ByRef identificacion As String)
cmd_Sql.Connection = c_sql
cmd_Sql.CommandType = CommandType.Text
Try
dr_Sql = cmd_Sql.ExecuteReader()
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
cmd_Sql.Connection = c_sql
cmd_Sql.CommandType = CommandType.Text
End Sub
cmd_Sql.Connection = c_sql
cmd_Sql.CommandType = CommandType.Text
Try
dr_Sql = cmd_Sql.ExecuteReader()
Catch ex As Exception
End Try
End Sub
'------------------------------------------------------------------------
Validaciones de
campos----------------------------------------------------------------------'
Public Sub soloLetras(ByRef e As System.Windows.Forms.KeyPressEventArgs)
End Sub
End Module