Microsoft KB Archive/139389

= How to Read OLE Type Library Information in Visual FoxPro =

Article ID: 139389

Article Last Modified on 2/10/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q139389



SUMMARY
Visual FoxPro allows the use of OLE controls in your applications. These controls are available from a variety of sources. Often, it is necessary to determine the names of the properties, methods, and events available in an OLE control.



MORE INFORMATION
This information is available through the OLE control's type library, which was created by the .ocx developer. Visual FoxPro allows you to read this information programmatically by using the AMEMBERS function.

Steps to Determine Events, Methods, and Properties Exposed in an .Ocx File
 Create a new form. Add an OLE Container control to the form. On the Insert menu, click Control, and select the desired control. Save and run the form. Minimize the form.  In the Command window, type: =AMEMBERS(aType, formname.olecontrol1,1) _SCREEN.SHOW DISPLAY MEMORY LIKE aType 

The array containing the exposed properties and methods of the .ocx should be displayed.

Additional query words: VFoxWin

Keywords: KB139389

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.