Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

VB2008.net


  • Please log in to reply
1 reply to this topic

#1 KermitD

KermitD

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Location:Stelle, Illinois
  • Local time:02:12 AM

Posted 01 September 2009 - 11:33 AM

I am in the process of moving and have boxed all of my reference sources. I used to know how to do this, but I'm getting old and haven't been coding for a while. I know the answer is simple and It frustrates me not to be able to come up with it. In the code line:

newChar = Chr(xchr)

Where xchr will be an integer in the ascii range. When xchar = 65 why does newChar = "nothing", instead of "A"?
What have I forgotten?

Thanks in advance
KermitD
KermitD
Choices have consequences.

BC AdBot (Login to Remove)

 


#2 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:02:12 AM

Posted 01 September 2009 - 02:54 PM

It should work. Are you compiling from command line or from VB.net IDE? The IDE would trap most of this kind errors.

Make sure you have declared both newChar and xchr. Also make sure you are not making any typos.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users