Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - How to make the reference of Combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to make the reference of Combobox

 Post Reply Post Reply
Author
Message
watsmyname View Drop Down
Newbie
Newbie


Joined: 16 January 2010
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote watsmyname Quote  Post ReplyReply Direct Link To This Post Topic: How to make the reference of Combobox
    Posted: 16 January 2010 at 1:16am
Hello,

I have a function like this

Private Sub loadListBox(sCombo As ComboBox, tableName As String, idField As String, nameField As String)
' my codes are here
End Sub

while i tried to call this function  like this loadListBox cmbogenre, "tblgenre", "genre_id", "genre_name"

it gives me "Type mismatch error", may be the reference is made to VB's default combobox, not xtremesuites' combobox. How to make reference to Xtreme Suites's Combobox instead of Vb's default ComboBox ??

Thanks
watsmyname
Back to Top
Mr.Den View Drop Down
Groupie
Groupie
Avatar

Joined: 26 August 2007
Status: Offline
Points: 50
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mr.Den Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2010 at 11:24am
Try:
 
Private Sub loadListBox(sCombo As XtremeSuiteControls.ComboBox, tableName As String, idField As String, nameField As String)
' my codes are here
End Sub
Product: Xtreme SuitePro (ActiveX) version 16.3.1

Platform: Windows 7 Professional (64bit) - SP 1

Language: Visual Basic 6.0 SP 6
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.125 seconds.