Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Missing combobox.newIndex
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Missing combobox.newIndex

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

Joined: 27 December 2005
Location: Malaysia
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote cybeh Quote  Post ReplyReply Direct Link To This Post Topic: Missing combobox.newIndex
    Posted: 25 April 2007 at 10:14pm
Hi,

I use to do this in my code


cboTest.AddItem "ABC"
cboTest.ItemData(cboTest.NewIndex) = "1"


but, seems like i can't find the NewIndex in the codejock combobox.

Thanks.

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: 26 April 2007 at 12:36am
Please change it to
 
Dim Index as Long
Index = cboTest.AddItem ("ABC")
cboTest.ItemData(Index) = "1"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
MNovaro View Drop Down
Groupie
Groupie
Avatar

Joined: 20 June 2006
Status: Offline
Points: 71
Post Options Post Options   Thanks (0) Thanks(0)   Quote MNovaro Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2007 at 4:33am
I've got the same problem.
The solution suggested by Oleg is not working for me, since the AddItem is a Sub and not a Function: I get a "type mismatch" error when I try to use:

Instead, I solved this with the following code:

cmbFolder.AddItem "This"
cmbFolder.ItemData(cmbFolder.ListCount - 1) = -1

Anyhow, adding .NewIndex ot the CodeJock combo would be better, since it would let this to be compatible with the standard combo.
Thanks
Marco

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: 26 April 2007 at 6:40am
Thanks,
 
Indeed :(
 
NewIndex property added.
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.