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
Member List
Calendar
Today's Posts
Home
Forum
Topic
C Sharp
hex value
hex value
Collapse
This topic is closed.
X
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
RickN
#1
hex value
Nov 15 '05, 12:41 PM
I want to set a char value to hex 1D, what is the best way to do this?
Thanks,
RickN
Stu Banter
#2
Nov 15 '05, 12:41 PM
Re: hex value
Cast with
char c = (char) 0x1D; // use 0x for hex constants
or convert using system.Convert:
char c = Convert.ToChar (0x1D);
Best!,
Stu
"RickN" <rick@abasoftwa re.com> wrote in message
news:eZLfl5cjDH A.1096@TK2MSFTN GP11.phx.gbl...[color=blue]
> I want to set a char value to hex 1D, what is the best way to do this?
> Thanks,
> RickN
>
>[/color]
Comment
Post
Cancel
Mattias Sjögren
#3
Nov 15 '05, 12:42 PM
Re: hex value
[color=blue]
>I want to set a char value to hex 1D, what is the best way to do this?[/color]
char c = '\x1d';
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment