Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / May 2008

Tip: Looking for answers? Try searching our database.

Chr() vs ChrW() and Const ...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe Duchtel - 13 May 2008 15:07 GMT
Hello -

I was wondering why I can do a ...
Public Const A As Char = Chr(36)
... but not a ...
Public Const B As Char = Chr(165)?

It seems like 0-127 are okay with the Chr().  Is this because values >
127 depend on the currently active code page and hence are dynamic?

I also had a case where a Chr(146) would match a character in a string
but a ChrW(146) would not.  I would expect both of these calls to
return the same character.  Could the reason be how I compare
strings?  I think I used the equal operator instead of .Equals().

How do the Chr() and ChrW() functions work differently?

Thanks,
Joe
Martin H. - 13 May 2008 16:47 GMT
Hello Joe,

if you move the cursor to Chr or ChrW and press F1 you will find the
online help on your screen which covers exactly that subject (in the
"Remarks" section).

Best regards,

Martin

Am 13.05.2008 22:07, schrieb Joe Duchtel:
> Hello -
>
[quoted text clipped - 15 lines]
> Thanks,
> Joe
Joe Duchtel - 13 May 2008 18:59 GMT
Hello -

I tried the Chr,ChrW Functions Visual Basic Language Reference and was
just a little bit confused.  I guess I just have to mull it a little
more ...

Thanks!
Joe

> Hello Joe,
>
[quoted text clipped - 29 lines]
>
> - Show quoted text -

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.