• Welcome to Valhalla Legends Archive.
 

Chr() Reference codes

Started by Topaz, August 02, 2005, 06:25 PM

Previous topic - Next topic

Topaz

I need a reference to a list of what all the Chr() refer to.

Yegg

What do you mean by that? A list of all possible values chr() can return? That's what it sounds like to me, correct me if I'm wrong.

MyndFyre

If that's the case, you could do something like:

(Have a text box called tb on your form)


Sub Form_Load()
  For i = 1 To 255
    tb.Text = tb.Text & vbCrLf & "Character" & i & ":  " & Chr(i)
  Next
End Sub


Note: I skipped 0 because I believe that Windows will stop writing text with the first NULL (Chr(0)).
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Topaz

That crossed my mind, thanks :-]

K

Start -> Run -> "charmap"

The info bar at the bottom will tell you what the hexadecimal code is for the character. Note that it starts at 0x21 '!', which is the first "printable" character.
You're welcome.

Archangel

Quote from: K on August 02, 2005, 08:17 PM
Start -> Run -> "charmap"

The info bar at the bottom will tell you what the hexadecimal code is for the character. Note that it starts at 0x21 '!', which is the first "printable" character.
You're welcome.

I didnt knew that :o, awesome. thnx.
I'm not an Addict.

l)ragon

#6
Quote from: MyndFyre on August 02, 2005, 06:45 PM
If that's the case, you could do something like:

(Have a text box called tb on your form)


Sub Form_Load()
  For i = 1 To 255
    tb.Text = tb.Text & vbCrLf & "Character" & i & ":  " & Chr(i)
  Next
End Sub


Note: I skipped 0 because I believe that Windows will stop writing text with the first NULL (Chr(0)).
Only does that in the .Net output windows
edit: thought you were (debug.print)ing heh
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*

Tontow

Quote from: Topaz on August 02, 2005, 06:25 PM
I need a reference to a list of what all the Chr() refer to.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbstartpage.asp look on the left and go additional information->Reference->Charater set