Print Page | Close Window

Error in referencing a combobox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9048
Printed Date: 01 February 2025 at 12:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Error in referencing a combobox
Posted By: Cidtek
Subject: Error in referencing a combobox
Date Posted: 09 December 2007 at 12:56am
What is the syntax for passing a combobox reference to a sub? It seems that it is passing the text property instead of a reference to itself.
 
SomeSub Combo1
 
where SomeSub has a parameter (MyCombo as ComboBox).
 
This gives a Type Mismatch error naturally since it is passing the Text Property.
 
Works just fine with Vb6 controls.



Replies:
Posted By: Oleg
Date Posted: 09 December 2007 at 4:19am

Sub SomeSub(Combo As XtremeSuiteControls.ComboBox)
Debug.Print Combo.Text
End Sub

 

Private Sub Form_Load()
SomeSub ComboBox1
End Sub



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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