Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ComboBox.additem, error?
#1
I am using code such as the following (all variables and such are declared)
Code:
frmBla.cmbBlarghh.AddItem(Index & ": " & bala & " " & bala2)

and I get no error. However, when I add the optional index,
Code:
frmBla.cmbBlarghh.AddItem(Index & ": " & bala & " " & bala2, index)

I get an error (in design-time, not run-time)...
Code:
Compile error:
Expected: =

I have no clue why it does this, any help?
Reply
#2
it prolly is wanting to know what the new index is. i would go back through the code to make sure you defined it as something. might try the search.
Reply
#3
even just putting a number (such as 0, 1, 17, 69) in there gives an error
Reply
#4
well is the last index even a conditional? other than that idk
Reply
#5
It says it is an optional thing.
Reply
#6
hmmm idk.
Reply
#7
use
frmBla.cmbBlarghh.AddItem Index & ": " & bala & " " & bala2, index
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)