Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Returning the "Index Number" from a ListBox 1

Status
Not open for further replies.

HerbAndEdnaWeinstein

Technical User
Apr 30, 2003
104
US
Hi, I've got a ListBox that gets populated from a string array.

I'm trying to get the ListBox to "know" what item inside it has been clicked, so that this index number can correspond to the string array index number, and then i will pass this back to the host application, etc...

I'm assuming there is some kind of function or property that is inherent to ListBoxes, that will return this.

Thanks in Advance,
Herb Weinstein

PS: I have specified the "fmMultiSelectSingle" option for the ListBox.
 
No problem...I always get confused about which property to look at to get the index number cos I often use several different languages and it varies from language to language!

Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top