Solved

How to get methods / properties / values of an object

Posted on 2004-08-31
2
211 Views
Last Modified: 2013-11-26
Looking for a way to get and list all the methods / properties / values of any given object ...

Example binding strings :

GetObject(“WinNT://MyDomain/Idaho,computer”)
GetObject(“WinNT://MyComputer/TestGroup,group”)
GetObject(“WinNT://MyDC/MyDomain/JSmith,user”)
GetObject(“LDAP://cn=Test2,cn=Users,dc=MyDomain,dc=com”)

A listing of the property types available in the WinNT bind string would be nice too (computer,group,user,LanManServe etc.)

Not a VB guru yet, so hope this isn't too confusing ... ask away if you're not sure ...
0
Comment
Question by:Gitcho
2 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 300 total points
ID: 11946065
0
 
LVL 17

Assisted Solution

by:zzzzzooc
zzzzzooc earned 200 total points
ID: 11956420
If you don't have the TypeLibs available to you, you can always check the type of the object and then search MSDN for it (usually documented).

For example...

Private Sub Form_Load()
    Dim objTest As Object
    'late-binding.. no way to know properties/methods (interface) ahead
    'of time...
    Set objTest = CreateObject("InternetExplorer.Application")
    'check it's TypeName.. for IE, it's "IWebBrowser2".. "I" is just for
    '"Interface" which defines the properties/methods...
    MsgBox TypeName(objTest)
    'now.. go to http://msdn.microsoft.com and search for "IWebBrowser2"...
    'you'll come across a link of:
    'http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/iwebbrowser2/iwebbrowser2.asp?frame=true
    'which documents mostly every property/method..
   
    'better "quit" the IE instance.. :-)
    Call objTest.Quit
End Sub
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question