Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C Sharp only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C Sharp
How set valid values in Char type?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
walkerpbus
New Member
Join Date:
Oct 2014
Posts:
4
#1
How set valid values in Char type?
Oct 10 '14, 07:43 PM
C# type setting a char? I have tried setting as characters, as integers but nothing seems to work?
last try: char mchar = 'X'; // Character literal
Last edited by
walkerpbus
;
Oct 10 '14, 07:46 PM
.
Reason:
add last try
iam_clint
Recognized Expert
Top Contributor
Join Date:
Jul 2006
Posts:
1207
#2
Oct 10 '14, 07:55 PM
So what's the question? Char mchar="x"; looks right what's the problem
Comment
Post
Cancel
walkerpbus
New Member
Join Date:
Oct 2014
Posts:
4
#3
Oct 10 '14, 08:25 PM
This is the error I got: Error 1 Constant value '30' cannot be converted to a 'char'
Comment
Post
Cancel
walkerpbus
New Member
Join Date:
Oct 2014
Posts:
4
#4
Oct 10 '14, 08:59 PM
How do I close this? How do I close this? How do I close this? (repeating to make minimum)
Comment
Post
Cancel
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#5
Oct 11 '14, 12:06 AM
No need to close it. If you resolved your issue, please let us know how you resolved it.
Comment
Post
Cancel
walkerpbus
New Member
Join Date:
Oct 2014
Posts:
4
#6
Oct 12 '14, 12:53 AM
I''m not sure, but I think all I needed to do was refresh the visual studio
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment