webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Using the activeX api in VB

    Posted Thu April 24, 2003 10:48 AM

    I want to declare a taminoNonXml variable in VB, but I want to be able to see the methods and properties. I am only able to do this if I put the activex component on a form but what if I don’t use a form.

    When I try the following which is in the documentation I get a type mismatch error.

    Dim tamNonXml As TaminoNonXml

    Private Sub Form_Load()
    Set tamNonXml = CreateObject “TaminoNonXml.TaminoNonXmlCtrl1”)
    End Sub


    I know I can get past that by declaring the variable tamnonxml as an object but then I can’t see the methods and properties.

    I know this is more of a nice to have than a problem but does anyone have a way of making it work?


    #webMethods-Tamino-XML-Server-APIs
    #API-Management
    #webMethods


  • 2.  RE: Using the activeX api in VB

    Posted Fri April 25, 2003 08:29 AM

    This should be easy if you know how! :slight_smile:

    All you need to do is make a reference to the OCX from your VB project. In VB6 you need to do “Project->References” and then scroll down the list to “Software AG - Tamino Non XML Interface” or “Software AG - Tamino DOM Interface” and tick the box.


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management


  • 3.  RE: Using the activeX api in VB

    Posted Fri April 25, 2003 08:41 AM

    It worked, I really feel silly now. I have however tried it before but couldn’t find it in the project reference section. I could only get it in the components tab and then I couldn’t use the new keyword.

    I don’t know VB that well and thought that perhaps ActiveX (ocx) work differently than dll’s.

    Thanks again


    #webMethods-Tamino-XML-Server-APIs
    #webMethods
    #API-Management