Chr Table

C

Chris

This may seem like an odd question but does anyone know
where I can get a list of what the chr codes translate to

e.g. Chr(65) = A
But I want all of them??

Thanks in advance
 
A

Adam

Hi Chris

You can easily generate one yourself with the following Word macro:

Public Sub ListChr()
Dim i As Integer
Dim ChrText As String
For i = 30 To 255
ChrText = "Chr(" & Str(i) & ") = " & Chr(i) & vbCrLf
Selection.InsertAfter ChrText
Next i
End Sub

This will create a list at the selection in a Word document. You can expand
the range of i if you like of course, but the codes less than 30 are mostly
strange things like tab stops, line feeds, and so on.

HTH

Adam
 
R

Ronald Dodge

Goto VB Editor
In the VB Editor, click on Help>Microsoft Visual Basic Help

A dialog box pops up provided you have the VBA help files loaded with
Access.

Click on the "Contents" tab

Double Click on Topic, "Visual Basic Language Reference"

Double Click on Sub-Topic, "Miscellaneous"

There's 2 pages in there, one for ASCII codes 0 - 127 and the other for
ASCII codes 128 - 255.

Between these 2 pages, it will give you a good majority of what each of the
ASCII codes are that you are looking for. However, there are some that it
doesn't give. If you need to know those, you can go into either Excel or
Word, and then press and hold the "Alt" key while you use the "NUMPAD" and
type in the number code of the ASCII code you want with out the leading
zeroes (0s), such as "Alt-3" to bring up a picture of a heart.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top