Probleme Recherche une propriete passe en parametre dans une collection

Casdale Messages postés 13 Date d'inscription lundi 26 novembre 2007 Statut Membre Dernière intervention 26 mars 2008 - 18 mars 2008 à 11:55
Casdale Messages postés 13 Date d'inscription lundi 26 novembre 2007 Statut Membre Dernière intervention 26 mars 2008 - 19 mars 2008 à 08:31
code :

    Set objWMIService = GetObject("winmgmts:\" & ip &variable(0))
    Set colItems = objWMIService.ExecQuery(variable(1),,48)
     
            For Each objItem in colItems
                  'document.write variable(3)
                  test=objItem.variable(3)
                document.writeln test    
            Next

Voila je n'arrive pas a passe la propriete en parrametre lorsque j affiche variable(3) j'ai bien la valeur mais lorsque je recherche dans la collection il plante a la compilation car il cherche la propriete variable au lieu de m'interpreter ma variable

comment faire ??

1 réponse

Casdale Messages postés 13 Date d'inscription lundi 26 novembre 2007 Statut Membre Dernière intervention 26 mars 2008
19 mars 2008 à 08:31
Besoin d aide svp je suis en stage et j'ai besoin de cette solution pour avancer dans mon projet
0
Rejoignez-nous