Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use a type library

Status
Not open for further replies.

cmptrnerd

IS-IT--Management
Aug 11, 2001
255
US
I have a saleslogix library and the object browser shows the methods and classes. What I want to know is if someone can direct me as to how to use it in my foxpro applications.

Mark
 

I might be best to contact the provider of the library. Not know the library, it would hard to guess how to use it.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
ReFox XI (www.mcrgsoftware.com)
 
I have the documentation of the classes and methods of the library. What i'm not sure is how to access the library via Foxpro.

Mark
 

Mark,

When you say "library", do you mean it is an ActiveX control? If so, you can either drop it on a form, or instantiate it programmatically.

To drop it on a form, open the form in the form designe. From the forms controls toolbar, drop an OLE Container Control. When you do, you will see the Insert Object dialogue. Scroll down until you see the object in question (assuming you recognise its name), and select it.

You can now add code to the form to access the properties and methods of the control.

If you want to instantiate the control programmatically (without a form), use CREATEOBJECT(). This assumes you know the control's class name. Once you've done that, you will again be able to access the properties and methods.

Hope this helps.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top