Bonjour à tous,
je viens difficilement me mettre à VB.net (avant j'avais réalisé qq programme en VB6).
L'erreur suivante (Option Strict On disallows late binding pour tb) apparait avec ce type de code
une petite compréhension du problème afin que je puisse le résoudre?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Dim cheminfichier As String Dim lg As String Dim tb As Array cheminfichier = "C:\test.dat" FileOpen(1, cheminfichier, OpenMode.Input, OpenAccess.Read, OpenShare.Shared) While Not EOF(1) lg = LineInput(1) If lg <> "" Then tb = Split(lg, ";") If tb(0) = TextBox1.Text Then TextBox2.Text = tb(1) TextBox3.Text = tb(2) TextBox4.Text = tb(6) TextBox5.Text = tb(5) TextBox6.Text = tb(4) TextBox7.Text = tb(3) End If End If End While FileClose(1)
merci par avance
Partager