Bonsoir,
avant tout voilà mon code:
Je cherche a comparer ID_Message.spells(i).spellId.ToString par rapport a mon split du fichier txt r(0) et si il est correct on ajoute r(1) a la listview.
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 Dim list As New _listview(AddressOf Set_listview) Dim sort As New StreamReader(Application.StartupPath & "\sort.txt") While Not sort.ReadToEnd For i = 0 To ID_Message.spells.count - 1 Dim line As String = sort.ReadLine() Dim R() As String R = Split(line, "|") MsgBox(R(0)) MsgBox(ID_Message.spells(i).spellId.ToString) If R(0) = ID_Message.spells(i).spellId.ToString Then Invoke(list, ListSort, R(1)) End If Next End While sort.Close()
mais voilà l'erreur:
Je cherche aussi a ajouter plusieurs élément a ma listview:parsing() ToLong -> La conversion de la chaîne "0|Coup de poing
1|Armure Incand" en type 'Long' n'est pas valide.
mais sa n'ajoute qu'a la premier colone l'item1
Code : Sélectionner tout - Visualiser dans une fenêtre à part listview1.items.add(item1,item2,item3)
merci de m'aider
![]()
Partager