• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

how set enabled in one line>

I am womdering how can I do the below in one line :

  if (a == B)
  {
    radioGroup1->Controls[2]->Enabled = true;
  }
  else
  {
    radioGroup1->Controls[2]->Enabled = false;
  }

In Delphi I can do

  radioGroup1->Controls[2]->Enabled = (a = b);

more points later, thanks, Tom.
0
boardtc
Asked:
boardtc
  • 3
1 Solution
 
proskigCommented:
radioGroup1->Controls[2]->Enabled = (a==b)
0
 
boardtcAuthor Commented:
...doh (it's in the dictionary now!)... thanks a lot, tom.
0
 
boardtcAuthor Commented:
I posted 35 points for you on the community support forum, cheers, Tom.
0
 
MoondancerCommented:
proskig:

Here is the question link for the 35 points, please comment here to then finalize this award.

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?qid=20142901

Moondancer
Community Support Moderator @ Experts Exchange
0
 
boardtcAuthor Commented:
hope i got it..wasn't sure...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now