Print Page | Close Window

How to make the reference of Combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=16021
Printed Date: 23 November 2024 at 5:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to make the reference of Combobox
Posted By: watsmyname
Subject: How to make the reference of Combobox
Date 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



Replies:
Posted By: Mr.Den
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net