Solved

how set enabled in one line>

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

737 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