Lazarus

Programming => General => Topic started by: BubikolRamios on July 02, 2022, 07:30:49 am

Title: TCheckBox true/false
Post by: BubikolRamios on July 02, 2022, 07:30:49 am
EDIT: ehh, forget this, can't delete it.

It allways sets false although some check boxes are checked.
?

Code: Pascal  [Select][+][-]
  1.  for Cnt := 0 to PanelRegexModifiers.ControlCount -1 do
  2.  begin
  3.        if  PanelRegexModifiers.Controls[Cnt].ClassType = TCheckBox then
  4.        begin
  5.  
  6.           if  (PanelRegexModifiers.Controls[Cnt].Caption = 'S') and
  7.              ((PanelRegexModifiers.Controls[Cnt] as TCheckBox).Checked = true)
  8.          then
  9.            re.ModifierS := true
  10.          else
  11.            re.ModifierS := false;
  12.  
  13.          //....      
  14.        end;
  15.  
TinyPortal © 2005-2018