Solved

how set enabled in one line>

Posted on 2001-06-27
5
199 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

808 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