type
TForm1 = class(TForm)
Button1: TButton;
ComboBox1: TComboBox;
procedure ComboBox1Change(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
MyStructure = Class
Id:string;
Value:string;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.ComboBox1Change(Sender: TObject);
var a:string;
begin
a:=(ComboBox1.Items.Objects[ComboBox1.ItemIndex] as MyStructure).Value;
showmessage(a);
end;