1 Replies - 2340 Views - Last Post: 26 March 2012 - 07:31 AM Rate Topic: -----

#1 Criel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 128
  • Joined: 11-March 11

Public member 'Selected' on type 'String' not found.

Posted 26 March 2012 - 07:24 AM

Hello,

I'm having a bit of trouble figuring out this error and what it means. Here is the code that is throwing the error,

For Idx = 1 To cboCallType.Items.Count - 1
                [b]' If cboCallType.Items(Idx).Selected = True Then ' If Item is Selected[/b]             
 For I = 1 To cboCallType.Items.Count - 1 ' Set Index to look at the array



Public member 'Selected' on type 'String' not found. I'm assuming this error means you can't select a String in the combobox? I always thought you could, I'm just checking to see if one of the items were selected before moving on with the code, what other way is there to accomplish this and/or what does this error actually mean and how do I go about solving it?

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Public member 'Selected' on type 'String' not found.

#2 nK0de  Icon User is offline

  • Catch me As Exception
  • member icon

Reputation: 205
  • View blog
  • Posts: 823
  • Joined: 21-December 11

Re: Public member 'Selected' on type 'String' not found.

Posted 26 March 2012 - 07:31 AM

to select the string from a combobox, use the .SelectedText

To resolve your error, try .SelectedIndex
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1