sfern
asked on
Help with ListView items
Hi there,
I would first like to say that i'm giving you all the points that i'm got left, so i understand if i don't get a response.
I have the following code in a ListView:
var
I, tmp: Integer;
for I:= 0 to ListView1.Items.Count - 1 do
begin
tmp:= StrToInt(ListView1.Items[I ].Caption) ;
case tmp of
0:begin //do something here end;
1:begin //do something here end;
2:begin //do something here end;
end;
end;
What i need to know it how do copy each field the it reads while looping to a Tmemo or TEdit ect...
So, if the first line contains whenever, the i need to copy the items or subitems somewhere else.
In other word to be able to copy them somewhere else.
I really need this, but i understand that i haven't got much points left, so i understand if i don't get help.
I would first like to say that i'm giving you all the points that i'm got left, so i understand if i don't get a response.
I have the following code in a ListView:
var
I, tmp: Integer;
for I:= 0 to ListView1.Items.Count - 1 do
begin
tmp:= StrToInt(ListView1.Items[I
case tmp of
0:begin //do something here end;
1:begin //do something here end;
2:begin //do something here end;
end;
end;
What i need to know it how do copy each field the it reads while looping to a Tmemo or TEdit ect...
So, if the first line contains whenever, the i need to copy the items or subitems somewhere else.
In other word to be able to copy them somewhere else.
I really need this, but i understand that i haven't got much points left, so i understand if i don't get help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help.
And sorry for not having more points left.
I really appriciate it.
Thanks again
SFern
And sorry for not having more points left.
I really appriciate it.
Thanks again
SFern
or.. for your TEdit:
Edit1.Caption := ListView1.Items[ i ].Caption;