set checkbox value in bcb6
Hello, how do i set checkbox value in a runtime?
i try this code:
TfrReport *rep = MyFrame->MyRep;
TfrCheckBoxControl *tCheck = (TfrCheckBoxControl *)rep->FindObject("Check1");
tCheck->CheckBox->Checked = true;
but in a runtime, last line throws access violation exception, how do i do it right?
i try this code:
TfrReport *rep = MyFrame->MyRep;
TfrCheckBoxControl *tCheck = (TfrCheckBoxControl *)rep->FindObject("Check1");
tCheck->CheckBox->Checked = true;
but in a runtime, last line throws access violation exception, how do i do it right?