Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Listing properties and methods in Activex Controls
Message
 
 
À
14/06/2000 17:04:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00380460
Message ID:
00380470
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform