Solved

how set enabled in one line>

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

776 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