?
Solved

How do you define a variable as a bit or True in C#?

Posted on 2008-09-29
4
Medium Priority
?
198 Views
Last Modified: 2010-04-21
I need to define a variable as true but I am unsure what/how to assign the variable.  Here is how I am trying to do it now but obviously it is not right.  Can someone point me in the right direction?

bit CoveredLoad = true;

0
Comment
Question by:kwh3856
[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
4 Comments
 
LVL 16

Accepted Solution

by:
CuteBug earned 1000 total points
ID: 22596774
use bool

bool CoveredLoad = true;
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 1000 total points
ID: 22596775
bool CoveredLoad = true;
0
 

Author Closing Comment

by:kwh3856
ID: 31501194
Thanks for the quick response.

Thanks
Kenny
0
 
LVL 3

Expert Comment

by:R_Janssen
ID: 22596793
try Boolean (or bool for short).
example:
bool IsThisTrue = true;
 
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

719 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