Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO ADSI
Message
De
28/03/2001 16:59:35
 
 
À
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:
00489662
Vues:
8
>LOCAL loUser, loSchema
>
>loUser= GETOBJECT("WinNT://myServer/myName,user")
>loSchema= GETOBJECT(loUser.schema)
>
>FOR EACH p IN loSchema.MandatoryProperties
>	? "Mantitory: " + p
>NEXT
>
>FOR EACH p IN loSchema.OptionalProperties
>	? "Optional: " + p
>NEXT
If there are no mandatory or optional properties assigned for this object, you'll get the described error. You need to check the type of the property before trying to iterate it.

If you can get it, you should check out my article in the Feb issue of FPA for details on how to handle this stuff.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform