3 Replies - 540 Views - Last Post: 02 February 2018 - 10:00 AM Rate Topic: -----

#1 glda19   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 20-July 09

combobox selectitem selectindex

Posted 01 February 2018 - 11:45 AM

Hi

Selecteditem give a object back
Selectedindex give a index back.

What best to use with a combox
I want to use a select case of what is better to make the selection a after the user make a selection in the combobox

Why is by selececteditem the output lik this "item" and not item
Is This A Good Question/Topic? 0
  • +

Replies To: combobox selectitem selectindex

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14092
  • View blog
  • Posts: 56,460
  • Joined: 12-June 08

Re: combobox selectitem selectindex

Posted 01 February 2018 - 12:41 PM

I don't follow. Are you looking for the '.value'?
Was This Post Helpful? 0
  • +
  • -

#3 glda19   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 20-July 09

Re: combobox selectitem selectindex

Posted 02 February 2018 - 09:54 AM

what is het best to use
Selextitem
Or Selectitem

How can i get the text off selected item
and how to use in a select case
Why is selexteditem like this selection=cboHolidayCode.seleceteditem gives "item" Why en not item

So the select case selection

case "item1" and not item1 why ?
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14092
  • View blog
  • Posts: 56,460
  • Joined: 12-June 08

Re: combobox selectitem selectindex

Posted 02 February 2018 - 10:00 AM

Simply look at the documentation on what 'selected item' returns. It returns an object. Most likely tring to do a '.tostring' will just return a basic name.

Again.. if you want the text then the combobox's ".selected text" or ".selected value" is where you should be focusing.

https://msdn.microso...(v=vs.110).aspx
https://msdn.microso...(v=vs.110).aspx
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1