Home > Back-end >  Consult the ListView control value problem
Consult the ListView control value problem

Time:05-20

Description: with Delphi10.3.3 create multi-platform application, use the ListView control that
Question: how do I get the user points line Item in the ListView in custom TEXT value of the project?

CodePudding user response:

Var
S: a string;
The begin
If ListView1. Selected & lt;> Nil then
S:=ListView1. Items [ListView1. Selected. Index]. The Text;
end;

CodePudding user response:

reference 1/f, play big shoot early nuclear response:
var
S: a string;
The begin
If ListView1. Selected & lt;> Nil then
S:=ListView1. Items [ListView1. Selected. Index]. The Text;
end;

The original poster should be think according to item, query or display data associated with the item,
Set up A dynamic array is simpler, when adding item [1], A: array of titemdatarecord; A [I]. Contact:=... ; A [1]. Telephone:=...
  • Related