Recent

Author Topic: TCheckBox true/false  (Read 127 times)

BubikolRamios

  • Full Member
  • ***
  • Posts: 239
TCheckBox true/false
« 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.  
« Last Edit: July 02, 2022, 07:34:04 am by BubikolRamios »
lazarus-2.0.12-fpc-3.2.0-win32/win64

 

TinyPortal © 2005-2018