473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Equivalent of Chr(nn) in c#?

in VB you can convert inocode values to a character eg Chr(65) becomes "A"

How do i do this in c#?

Thanks
Nov 16 '05 #1
5 10624
(char) 65;

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Brett Hargreaves" <br**************@btinternet.com> wrote in message
news:ci**********@titan.btinternet.com...
in VB you can convert inocode values to a character eg Chr(65) becomes "A"

How do i do this in c#?

Thanks

Nov 16 '05 #2
Use type casting: (char)65 returns 'A'

"Brett Hargreaves" <br**************@btinternet.com> wrote in message
news:ci**********@titan.btinternet.com...
in VB you can convert inocode values to a character eg Chr(65) becomes "A"

How do i do this in c#?

Thanks

Nov 16 '05 #3
Hi Brett,

You can cast it:

char ch = (char) 65;

Joe
--
Joe Mayo, Author/Instructor
Need C#/.NET training?
visit www.mayosoftware.com
C# Tutorial - www.csharp-station.com

"Brett Hargreaves" <br**************@btinternet.com> wrote in message
news:ci**********@titan.btinternet.com...
in VB you can convert inocode values to a character eg Chr(65) becomes "A"

How do i do this in c#?

Thanks

Nov 16 '05 #4

you can also use the function Convert.ToChar(
-----Original Message-----
in VB you can convert inocode values to a character eg Chr(65) becomes "A"
How do i do this in c#?

Thanks
.

Nov 16 '05 #5
"Brett Hargreaves" <br**************@btinternet.com> wrote:
in VB you can convert inocode values to a
character eg Chr(65) becomes "A"
How do i do this in c#?


char c = (char) 65;

P.
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Colin McNaught | last post by:
I'm sure this counts as a newbie question: Take the html expression <a name="thisname" href="newpage.html">GoToIt</a> Inside the <a> tag, 'this' can be used in javascript to refer to the url the...
24
by: Mohammd M. Hussain | last post by:
Hi, I am writing an XHTML 1.0 Strict Compatible web page. However, the validator complained about the <br> tag. I wonder whether there is another alternative for this. Thanks,
2
by: karteikarte | last post by:
hey, i just found this riddle somewhere in the net: <meta http-equiv="Pragma" content="no-cache"> <script language="JavaScript"> <!-- function nstie(){return false}function...
5
by: Josh Armstrong | last post by:
I would like to setup a form that will log the users logging in to a db. The form and the Db will currently log the users if they complete the logon and get in. It will then log the entry, but...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
1
by: Mentat | last post by:
In the description below ??? marks specific problem areas. Any help is appreciated. Required ======== A method to detect the width and height values of a <DIV... element. Since there are two...
20
by: Ajay Bathija | last post by:
Hi: I am new to this forum. If I am not through in my explanation then please let me know. I need help in figuring out how I can accomplish the following. I am using VB.net for the front...
15
by: ewarts | last post by:
How can I create a macro that will take the results from a query and export to a formatted excel sheet?
6
NeoPa
by: NeoPa | last post by:
Progress Indicator in Access Introduction Access has a bad habit of getting tied up with its processing and not giving a clue as to whether it has crashed or not (The operating system and tools...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.