Error24Syntax error, '(' expected
Designations obj = new Designations();
obj.IsEditable=((chkEditable=checked)?true:false);
Error 24 Syntax error, '(' expected
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Aug 29, 2013, 11:19 PM EDT
try this
Designations obj = new Designations();
obj.IsEditable = ((chkEditable.Checked) ? true : false);
Posted Aug 29, 2013, 11:16 PM EDT
obj.IsEditable=((chkEditable==checked)?true:false);
VulpesRank #55 · 29.2K reputationPosted Aug 30, 2013, 12:16 AM EDT
obj.IsEditable = chkEditable.Checked;
or this, if it's some other variable:
obj.IsEditable= (chkEditable==checked);