1 Reply Latest reply on Jun 26, 2008 12:32 PM by rxbanditboy1

    How can I select an item from a list component with a seperate button

      Hello Everyone,
      This is my first post here. I am trying to figure out how to select an item within a list component with a button. This button is calling a function. I have searched for the past 3 hours online and I can't find anything about it. I thought perhaps I could set the selectedItem parameter, but that is read only, and I believe it returns an object reference rather than something like a number so even if i could set it, it would be pointless. I also found a get focus button, thought that may lead me somewhere, but I think that is for setting which component has focus currently as far as typing in and things like that. I am lost.

      Basically I am looking for a way to type this myList.setSelected(5); where 5 is the 5th item in the list.

      Any help would be much appreciated.