Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Error in referencing a combobox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error in referencing a combobox

 Post Reply Post Reply
Author
Message
Cidtek View Drop Down
Newbie
Newbie
Avatar

Joined: 29 June 2006
Location: Canada
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cidtek Quote  Post ReplyReply Direct Link To This Post Topic: Error in referencing a combobox
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.188 seconds.