In my VCL form application I have added:
- Button
- OpenDialog
- Edit
- ListView
When I open a file with opendialog, how do i display the file size and format in ListView column?
Here is the code which am trying - please correct my mistake, or what function do I have to add to display in ListView?
//===============================
procedure TForm1.BntOpen1Click(Sender: TObject);
var
LI: TListItem;
begin
if OpenDialog1.Execute then
LI := ListView1.Items.Add;
LI.SubItems.Add(Format(OpenDialog1.FileName, [0]));
end;
//===========================
thanks