Link to home
Start Free TrialLog in
Avatar of krypto2000
krypto2000

asked on

How to get a specified value into a ListView

Hello,
I have a listbox like that :

1 -  aaaa bbbb cccc dddd eeee
2 -  ffff eeee ssss uuuu wwww
3 -  nnnn qqqq pppp hhhh tttt

i want to get the value of 'uuuu'. I know where I can get all the value present in first line, but where can I get the values present in the second line or third line ???

Thanks.
Avatar of DaFox
DaFox

Hi krypto.

MyString := ListView.Items[i].SubItems[j]; ?

Markus
ASKER CERTIFIED SOLUTION
Avatar of ILE
ILE

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ILE, your shift key is broken ;-)

Markus
YEP BUT I CEN REPAIR IT :))

MEYBE WHEN I HAVE A TIME I WILL PRESS ON CAPS LOCK MEYBE...
Without trying to sound critical - what does this mean?

IF SO THEN 100% WORKING SOLUTION S DOWN
IN I IS THE LINE IN R IS THE RECORD
in i is the line form the listbox
and the r is the subrecord

in your example

if u try to find      u use  
 
  aaaa              getvalue(0,0)
  bbbb              getvalue(0,1)
  uuuu              getvalue(1,3)
  qqqq              getvalue(3,3)

if this is what u wont


 

krypto2000,

Do you mean you want to return an listindex and position for a string?

So, if you wanted to find UUU, the program would return

1 and 3 (which means list index 1 and position 3)?

Please clarify your question just to make sure we're on the right path.

Stuart.
krypto2000:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
krypto2000:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.