Solved

how set enabled in one line>

Posted on 2001-06-27
5
171 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
  • 3
5 Comments
 
LVL 5

Accepted Solution

by:
proskig earned 15 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now