Solved

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

Posted on 2008-09-29
4
195 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 250 total points
ID: 22596774
use bool

bool CoveredLoad = true;
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 250 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

752 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