Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listing properties and methods in Activex Controls
Message
 
 
To
14/06/2000 17:04:23
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00380460
Message ID:
00380470
Views:
22
>Does anyone know how to get a list of all the properties and methods of an object at runtime? I need to display these in a listbox using VB or VFP.
>
>Thanks to anyone that can help,
>
>Dave Moret

Check out the West Wind Type Library Parser in the files section here. This works in VFP.

You can also use the type library tool that comes with Visual Studio (TLBINF32.DLL). This will work in VFP and VB.
oTypeinfo = createobject("tli.tliapplication")
oTypelib = oTypeinfo.TypeLibInfoFromFile("mycomserver.dll")
for each oInterface in oTypeLib.Interfaces
   ? oInterface.Name
   for each oPEM in oInterface.Members
      ? oPEM.Name
   endfor
endfor
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