when including .dll class ( listed below ) in VB6 project, like Dim objConfigFile As New CGoConfig

Posted on 2006-05-01
Last Modified: 2010-05-01
ide recognizes methods and properties ok, but for some readons does not show their list after "."

not sure why ...

Option Explicit

Public strConfigFileName            As String
Public strConfigFileFieldDelimiter As String

Public Function strGetTag(strTagName As String) As String

    On Error GoTo Class_Initialize_Err
    Dim intPos        As String
    Dim strLine       As String
    Dim strTmpBuf As String
    Dim intFileNo    As Integer
    intFileNo = FreeFile
    Open strConfigFileName For Input As #intFileNo
    Do While Not EOF(intFileNo)   ' Loop until end of file.
          Line Input #1, strLine         ' Read line into variable.
          intPos = InStr(strLine, strTagName)
          If intPos > 0 Then
             strTmpBuf = Trim$(Mid(strLine, intPos + Len(strTagName)))
             If Left$(strTmpBuf, 1) = strConfigFileFieldDelimiter Then
                 strGetTag = Mid(strTmpBuf, 2)
                 Exit Function
             End If
         End If
    Close #intFileNo   ' Close file.
    strGetTag = strTagName & " - not found"
    Exit Function
    MsgBox ("Error in strTagName: " & Err.Number & " - " & Err.Description)
    strGetTag = "~~~"
End Function

Public Function strSetTag(strTag As String, strValue As String) As String

End Function

Question by:AlexF777
    1 Comment
    LVL 3

    Accepted Solution

    You have something that is not declared in your class or there is some other problem with your class.  Methods and Events for a class will not show if the entire class isn't working properly.  Try compiling the project and see what errors it gets inside the class, this should point you to the issue your looking for.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Introduction This article makes the case for using two modules in your VBA/VB6 applications to provide both case-sensitive and case-insensitive text comparison operations.  Recently, I solved an EE question using the LIKE function.  In order for th…
    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now