Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADSI Objects
Message
 
 
To
29/03/2001 15:07:34
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00488611
Message ID:
00490055
Views:
23
>There are only 2 parameters (according to the help), the first is the file name or moniker and the second is the class name.
>

The help must not be updated with VFP 7 topics. I thought it was (at least that's what I thought I saw in Beta 1).

>How do I found out what properties the providers support?
>
>
ouser = Getobject("WinNT://MyComputer/Myuser,user")
oschema = GetObject(ouser.Schema)

if type("oschema.MandatoryProperties") <> "U" then
   for each cProperty in oschema.MandatoryProperties
      ? cProperty
   endfor
endif

if type("oschema.OptionalProperties") <> "U" then
   for each cProperty in oschema.OptionalProperties
      ? cProperty
   endfor
endif
You can do this for each provider. I don't know of a place where they are individually documented, sorry.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform