Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - Combo as Codejock Combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Combo as Codejock Combobox

 Post Reply Post Reply
Author
Message
MetallDesign View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2008
Location: Switzerland
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote MetallDesign Quote  Post ReplyReply Direct Link To This Post Topic: Combo as Codejock Combobox
    Posted: 19 September 2012 at 4:38am
Hello
 
How to declare a Codejock Combobox in Vb6? I have Errorcode 13,  Type MissMatch, see Code below...This Function runs in a Module normal with VB Standart Combobox...
 
Public Function Search_String_Combobox(Combo As ComboBox, lstrSearchTxt As String) As Integer
 
    Dim lintLoop    As Integer
    Dim lintLen     As Integer
   
    lintLen = Len(lstrSearchTxt)
    For lintLoop = 0 To Combo.ListCount
        If Left$(Combo.List(lintLoop), lintLen) = lstrSearchTxt Then
            Search_String_Combobox = lintLoop
            Exit Function
        End If
    Next lintLoop
    Search_String_Combobox = -1 'When Not found
    
End Function
 
Thanks for your Helps
 
Ramon
Back to Top
MetallDesign View Drop Down
Groupie
Groupie
Avatar

Joined: 23 September 2008
Location: Switzerland
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote MetallDesign Quote  Post ReplyReply Direct Link To This Post Posted: 19 September 2012 at 10:10am
i have got it
 
Public Function Search_String_Combobox(ByVal Combo As XtremeSuiteControls.ComboBox, lstrSearchTxt As String) As Integer
 
Thanks
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.