Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO ADSI
Message
 
 
À
27/03/2001 22:52:58
Timothy Enright
Coos Bay Public Schools
Coos Bay, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00488463
Message ID:
00489391
Vues:
8
Tim,
PMFJI, but some schema don't have MandatoryProperties and the For...Next will fail because it is not an object. Add a check to make sure it is an object. See bold below.

BTW, this assumes VFP but it looks like you have a combination of VFP (Local) and VB (For...Next).

>Mike,
>
>Thanks again for the help. In my efforts to discover the properties that are used with ADSI, I attempted to use this little snippet:
>
><BOF>
>LOCAL loUser, loSchema
>
>loUser= GETOBJECT("WinNT://myServer/myName,user")
>loSchema= GETOBJECT(loUser.schema)
>
<b>if type("loSchema.MandatoryProperties") = "O" then</b>
>FOR EACH p IN loSchema.MandatoryProperties
>	? "Mantitory: " + p
>NEXT
<b>endif</b>
>
>FOR EACH p IN loSchema.OptionalProperties
>	? "Optional: " + p
>NEXT
><EOF>
>
>Which resulted is this message:
>
>array dimensions are invalid
>
>Any ideas?
>
>...tim
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform