Posts: 54
Threads: 30
Joined: Jul 2008
Reputation:
0
12-10-2009, 02:46 PM
Hi all
In my VB6 app, I have a list box where I must select a specific item. The item is always the second to last item. I think it is something with itemcount -1, but I am not sure how the syntax is.
Anyone ?
Posts: 36
Threads: 0
Joined: Dec 2009
Reputation:
0
12-10-2009, 02:59 PM
Hi
you can do it with itemcount-1
but i suggest you to select with item text,
.select "text"
using above statement you need not worry at what index your item is.
Thanks
Posts: 54
Threads: 30
Joined: Jul 2008
Reputation:
0
12-10-2009, 04:07 PM
Hi Nilesh
If i use .select "text" my script is not dynamic. The items change names for each run, but not position.
Posts: 84
Threads: 23
Joined: Sep 2009
Reputation:
0
12-12-2009, 10:54 PM
Hi Janriss,
Whether you try to lake the value with the help of Index property.
Thanks'
Mahesh