BleepingComputer.com: VB2008.net

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.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

VB2008.net a Type-conversion question

#1 User is offline   KermitD 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 81
  • Joined: 28-April 05
  • Location:Stelle, Illinois

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.

#2 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,814
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

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.
[url="http://www.avast.com/"]avast! free antivirus[/url]

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users