General information
Category:
COM/DCOM and OLE Automation
Title:
How do I pass a Variant?
I'm helping someone automate user login creation, and they want to add new members to an existing group.
The PutEx() function I need to call is defined as:
Method PutEx(lnControlCode As Long, bstrName As String, vProp As Variant) As Void
The example code gives vProp as [Array("cn=userid1, dc=domain, dc=com", "cn=userid2, dc=domain, dc=com)] to add userid1 and userid2 to previously selected group.
Various attempts to pass vProp with the string "Array" included have failed with OLE IDispatch exception code 0 from Active Directory: Unspecified Error.
How can I pass it what it is expecting from FoxPro?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only