tout d'abord je suis debutante en vb6 et j'essaye de faire un programme qui gère le parc informatique de notre societé (en arabe).
mon pb c que j'ai une listview et une commande "parametre" au dessus , mon code :
Private Sub Command1_Click() Commande = 1 'Form2.Show 0, Me ListView1.Top = 950 ListView1.ListItems.Clear ListView1.Icons = ImageList2 Set xxx = ListView1.ListItems.Add(, , "ÇáÑãÒ") xxx.Icon = 1 Set xxx = ListView1.ListItems.Add(, , "ÇáäæÚ") xxx.Icon = 2 Set xxx = ListView1.ListItems.Add(, , "ÇáãÕáÍÉ") xxx.Icon = 3 Set xxx = ListView1.ListItems.Add(, , "ÇáãÓÊÚãá") xxx.Icon = 4 End Sub
Private Sub ListView1_Click()
If Commande = 1 Then
If ListView1.SelectedItem.Index = 1 Then
marque.Show 1
End If
If ListView1.SelectedItem.Index = 2 Then
typ.Show
End If
If ListView1.SelectedItem.Index = 3 Then
service.Show
End If
If ListView1.SelectedItem.Index = 4 Then
utilisateur.Show
End If
End If
End Sub
a l'execution :erreur de compilation variable non defini ???
NB:j'ai trouver une application en vb6 dont laquel il y a une partie qui ressemble j'essaye de faire la mm chose mais sa marche pas??
