So I am trying to add a TListBox to my program.  Relevant code is below.

  TfrmFicMake = class(TForm)
    .
    .
    .
    lstVolumeList: TListBox;
    .
    .
    .
  end;

procedure TfrmFicMake.btnAddVolumeClick(Sender: TObject);
var
  index : integer;
begin
  frmCreateVolume.ShowModal;
  lstVolumeList.Clear;
  for index := 0 to (Length (Volumes) - 1) do
      lstVolumeList.AddItem (Volumes [index].VolumeName);
end;



When I try to compile this, I get:

mainform.pas(55,18) Error: identifier idents no member "AddItem"


Now, I am almost certain, based on having perused the documentation, that TListBox contains a method called AddItem. What am I doing wrong?

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to