Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvCardList
Inserting a card programmatically

Make sure to first setup the card template with the CardTemplate property. Set the items for the template in a newly created card with:
var
  ac: TAdvCard;
begin
  ac := AdvCardList1.Cards.Add;
  ac.Caption := 'The employee';
  ac.ItemList[0].AsString := 'My Name';
  ac.ItemList[1].AsString := 'My Company';
  ac.ItemList[2].AsInteger := 1025;
end