bonjour,
lors de ma recherche j'ai trouvé une application en VB.NET, mais je me suis arrivé à une partie du code que j'ai pas compris :
txtlogin et txtpwd sont les noms des deux textBoxCode:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 execproc("test '" & txtlogin.Text & "', '" & txtpwd.Text & "'") myreader.Read() If Not myreader.HasRows Then MsgBox("login ou password incorrect ") avec: Public Sub execproc(ByVal proc As String) myconex = New SqlConnection("data source =localhost;" & "integrated security = SSPI;Initial Catalog = Gestion-Incidents") myconex.Open() command = New SqlCommand(proc, myconex) myreader = command.ExecuteReader End Sub et Public myreader As SqlDataReader
si quelqu'un peut m'expliquer ceci je serai très reconnaissante
merci d'avance