?
Solved

how set enabled in one line>

Posted on 2001-06-27
5
Medium Priority
?
217 Views
Last Modified: 2010-04-02
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
Comment
Question by:tomcorcoran
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 5

Accepted Solution

by:
proskig earned 60 total points
ID: 6230614
radioGroup1->Controls[2]->Enabled = (a==b)
0
 

Author Comment

by:tomcorcoran
ID: 6230657
...doh (it's in the dictionary now!)... thanks a lot, tom.
0
 

Author Comment

by:tomcorcoran
ID: 6234217
I posted 35 points for you on the community support forum, cheers, Tom.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6234889
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
 

Author Comment

by:tomcorcoran
ID: 6237163
hope i got it..wasn't sure...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question