Set ListItem Value

Hello,

I want to set the "value" (HTML-value) of a TListItem.

How can I do this?

Thomas

procedure TWebframeSuchmaske.btnAddDatumClick(Sender: TObject);
var
  LItem: TListItem;
begin
  LItem := lcFilterliste.Items.Add;
  LItem.Text := '<input class="form-check-input me-1" type="checkbox">' +
                cbFeldDatum.Text + ' ' + cbVergleichDatum.Text + ' ' + edDatum.Text;

  // How to set the Value ??
end;

After adding the item, you can use something like:

weblistcontrol.Items[index].ListElement.setAttribute('value','100');

Sure, of course,
Not programmed for some weeks and I forgot everything again.
Thanks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.