|
-
Oct 14th, 2001, 12:13 PM
#1
Thread Starter
Junior Member
Chr$(???)
Does anyone have the complete list of Chr$(commands)???
Im mainly looking for ESC
and Also im wondering why..... i get the text from AIM AOL Messenger and my program takes out the HTML Tags of the text and when i t sees <BR> it puts a CHR$(13).. isn't that enter..... cause in my text box it shows a box instead
can someone help!@?>
This is our world now, The world of the pop-trunk and the switch.
The beauty of my Broad :-)
We wage wars, murder, cheat, lie to our women and make them believe its for their own good. And we're the criminals.
My crime is but of pimpology.
I am a Pimp, and this is my manefesto!
-
Oct 14th, 2001, 12:21 PM
#2
PowerPoster
All Ascii codes are in MSDN under the title "Character Codes". If you want to find out a specific one, just put this in a form (and set the KeyPreview property to True)
VB Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
MsgBox KeyAscii
End Sub
Then simply open the form and press the button you want to know the code for.
-
Oct 14th, 2001, 12:33 PM
#3
Frenzied Member
For a new line use
instead of chr(13), it works better.
-
Oct 14th, 2001, 12:54 PM
#4
Thsi is a liost of all ascii number :
HERE !!!!!!!!!!!!!!!
-
Oct 14th, 2001, 03:27 PM
#5
Frenzied Member
*excuse to up post count*
If you want to display every character in VB then add this code to a form with a MultiLine textbox and a command buttin:
VB Code:
Private Sub Command1_Click()
Dim i As Integer
For i = 1 To 255
Text1 = Text1 & i & vbTab & Chr(i) & vbCrLf
Next
End Sub
Some characters don't have graphical representation, so they show up as |. Also, it missing Chr(0) because...thats the truncation character in wondows.
You just proved that sig advertisements work.
-
Oct 14th, 2001, 03:37 PM
#6
Originally posted by nishantp
Also, it missing Chr(0) because...thats the truncation character in wondows.
While Chr$(0) is usually used to signify the end of a string in windows, that isn't always the case, especially in VB. As far as VB is concerned, any string can have a null character (that's what it is) in the middle without a problem until you try to display it. It is still another character like the others, but it just has a little more meaning.
-
Oct 14th, 2001, 03:48 PM
#7
Frenzied Member
Originally posted by Tygur
While Chr$(0) is usually used to signify the end of a string in windows, that isn't always the case, especially in VB. As far as VB is concerned, any string can have a null character (that's what it is) in the middle without a problem until you try to display it. It is still another character like the others, but it just has a little more meaning.
Yes thats what i figured. VB handles Chr(0) fine, but the text boxes won't.
You just proved that sig advertisements work.
-
Oct 14th, 2001, 04:33 PM
#8
The link i post give you all that information more you can only go see in you MSDN help to have the chart.
-
Oct 14th, 2001, 07:15 PM
#9
Frenzied Member
ASCII in the help context
-
Oct 14th, 2001, 07:19 PM
#10
Member
Here's a quick QBasic program I wrote:
Code:
DIM i AS INTEGER
FOR i = 0 TO 255
PRINT "Chr$(";
PRINT i;
PRINT ") = " + CHR$(34) + CHR$(i) + CHR$(34)
NEXT i
Which outputs the ASCII codes:
Chr$( 0 ) = ""
Chr$( 1 ) = ""
Chr$( 2 ) = ""
Chr$( 3 ) = ""
Chr$( 4 ) = ""
Chr$( 5 ) = ""
Chr$( 6 ) = ""
Chr$( 7 ) = ""
Chr$( 8 ) = ""
Chr$( 9 ) = " "
Chr$( 10 ) = "
"
Chr$( 11 ) = ""
Chr$( 12 ) = ""
Chr$( 13 ) = "
"
Chr$( 14 ) = ""
Chr$( 15 ) = ""
Chr$( 16 ) = ""
Chr$( 17 ) = ""
Chr$( 18 ) = ""
Chr$( 19 ) = ""
Chr$( 20 ) = ""
Chr$( 21 ) = ""
Chr$( 22 ) = ""
Chr$( 23 ) = ""
Chr$( 24 ) = ""
Chr$( 25 ) = ""
Chr$( 26 ) = ""
Chr$( 27 ) = ""
Chr$( 28 ) = ""
Chr$( 29 ) = ""
Chr$( 30 ) = ""
Chr$( 31 ) = ""
Chr$( 32 ) = " "
Chr$( 33 ) = "!"
Chr$( 34 ) = """
Chr$( 35 ) = "#"
Chr$( 36 ) = "$"
Chr$( 37 ) = "%"
Chr$( 38 ) = "&"
Chr$( 39 ) = "'"
Chr$( 40 ) = "("
Chr$( 41 ) = ")"
Chr$( 42 ) = "*"
Chr$( 43 ) = "+"
Chr$( 44 ) = ","
Chr$( 45 ) = "-"
Chr$( 46 ) = "."
Chr$( 47 ) = "/"
Chr$( 48 ) = "0"
Chr$( 49 ) = "1"
Chr$( 50 ) = "2"
Chr$( 51 ) = "3"
Chr$( 52 ) = "4"
Chr$( 53 ) = "5"
Chr$( 54 ) = "6"
Chr$( 55 ) = "7"
Chr$( 56 ) = "8"
Chr$( 57 ) = "9"
Chr$( 58 ) = ":"
Chr$( 59 ) = ";"
Chr$( 60 ) = "<"
Chr$( 61 ) = "="
Chr$( 62 ) = ">"
Chr$( 63 ) = "?"
Chr$( 64 ) = "@"
Chr$( 65 ) = "A"
Chr$( 66 ) = "B"
Chr$( 67 ) = "C"
Chr$( 68 ) = "D"
Chr$( 69 ) = "E"
Chr$( 70 ) = "F"
Chr$( 71 ) = "G"
Chr$( 72 ) = "H"
Chr$( 73 ) = "I"
Chr$( 74 ) = "J"
Chr$( 75 ) = "K"
Chr$( 76 ) = "L"
Chr$( 77 ) = "M"
Chr$( 78 ) = "N"
Chr$( 79 ) = "O"
Chr$( 80 ) = "P"
Chr$( 81 ) = "Q"
Chr$( 82 ) = "R"
Chr$( 83 ) = "S"
Chr$( 84 ) = "T"
Chr$( 85 ) = "U"
Chr$( 86 ) = "V"
Chr$( 87 ) = "W"
Chr$( 88 ) = "X"
Chr$( 89 ) = "Y"
Chr$( 90 ) = "Z"
Chr$( 91 ) = "["
Chr$( 92 ) = "\"
Chr$( 93 ) = "]"
Chr$( 94 ) = "^"
Chr$( 95 ) = "_"
Chr$( 96 ) = "`"
Chr$( 97 ) = "a"
Chr$( 98 ) = "b"
Chr$( 99 ) = "c"
Chr$( 100 ) = "d"
Chr$( 101 ) = "e"
Chr$( 102 ) = "f"
Chr$( 103 ) = "g"
Chr$( 104 ) = "h"
Chr$( 105 ) = "i"
Chr$( 106 ) = "j"
Chr$( 107 ) = "k"
Chr$( 108 ) = "l"
Chr$( 109 ) = "m"
Chr$( 110 ) = "n"
Chr$( 111 ) = "o"
Chr$( 112 ) = "p"
Chr$( 113 ) = "q"
Chr$( 114 ) = "r"
Chr$( 115 ) = "s"
Chr$( 116 ) = "t"
Chr$( 117 ) = "u"
Chr$( 118 ) = "v"
Chr$( 119 ) = "w"
Chr$( 120 ) = "x"
Chr$( 121 ) = "y"
Chr$( 122 ) = "z"
Chr$( 123 ) = "{"
Chr$( 124 ) = "|"
Chr$( 125 ) = "}"
Chr$( 126 ) = "~"
Chr$( 127 ) = ""
Chr$( 128 ) = "€"
Chr$( 129 ) = ""
Chr$( 130 ) = "‚"
Chr$( 131 ) = "ƒ"
Chr$( 132 ) = "„"
Chr$( 133 ) = "…"
Chr$( 134 ) = "†"
Chr$( 135 ) = "‡"
Chr$( 136 ) = "ˆ"
Chr$( 137 ) = "‰"
Chr$( 138 ) = "Š"
Chr$( 139 ) = "‹"
Chr$( 140 ) = "Œ"
Chr$( 141 ) = ""
Chr$( 142 ) = "Ž"
Chr$( 143 ) = ""
Chr$( 144 ) = ""
Chr$( 145 ) = "‘"
Chr$( 146 ) = "’"
Chr$( 147 ) = "“"
Chr$( 148 ) = "”"
Chr$( 149 ) = "•"
Chr$( 150 ) = "–"
Chr$( 151 ) = "—"
Chr$( 152 ) = "˜"
Chr$( 153 ) = "™"
Chr$( 154 ) = "š"
Chr$( 155 ) = "›"
Chr$( 156 ) = "œ"
Chr$( 157 ) = ""
Chr$( 158 ) = "ž"
Chr$( 159 ) = "Ÿ"
Chr$( 160 ) = " "
Chr$( 161 ) = "¡"
Chr$( 162 ) = "¢"
Chr$( 163 ) = "£"
Chr$( 164 ) = "¤"
Chr$( 165 ) = "¥"
Chr$( 166 ) = "¦"
Chr$( 167 ) = "§"
Chr$( 168 ) = "¨"
Chr$( 169 ) = "©"
Chr$( 170 ) = "ª"
Chr$( 171 ) = "«"
Chr$( 172 ) = "¬"
Chr$( 173 ) = "*"
Chr$( 174 ) = "®"
Chr$( 175 ) = "¯"
Chr$( 176 ) = "°"
Chr$( 177 ) = "±"
Chr$( 178 ) = "²"
Chr$( 179 ) = "³"
Chr$( 180 ) = "´"
Chr$( 181 ) = "µ"
Chr$( 182 ) = "¶"
Chr$( 183 ) = "·"
Chr$( 184 ) = "¸"
Chr$( 185 ) = "¹"
Chr$( 186 ) = "º"
Chr$( 187 ) = "»"
Chr$( 188 ) = "¼"
Chr$( 189 ) = "½"
Chr$( 190 ) = "¾"
Chr$( 191 ) = "¿"
Chr$( 192 ) = "À"
Chr$( 193 ) = "Á"
Chr$( 194 ) = "Â"
Chr$( 195 ) = "Ã"
Chr$( 196 ) = "Ä"
Chr$( 197 ) = "Å"
Chr$( 198 ) = "Æ"
Chr$( 199 ) = "Ç"
Chr$( 200 ) = "È"
Chr$( 201 ) = "É"
Chr$( 202 ) = "Ê"
Chr$( 203 ) = "Ë"
Chr$( 204 ) = "Ì"
Chr$( 205 ) = "Í"
Chr$( 206 ) = "Î"
Chr$( 207 ) = "Ï"
Chr$( 208 ) = "Ð"
Chr$( 209 ) = "Ñ"
Chr$( 210 ) = "Ò"
Chr$( 211 ) = "Ó"
Chr$( 212 ) = "Ô"
Chr$( 213 ) = "Õ"
Chr$( 214 ) = "Ö"
Chr$( 215 ) = "×"
Chr$( 216 ) = "Ø"
Chr$( 217 ) = "Ù"
Chr$( 218 ) = "Ú"
Chr$( 219 ) = "Û"
Chr$( 220 ) = "Ü"
Chr$( 221 ) = "Ý"
Chr$( 222 ) = "Þ"
Chr$( 223 ) = "ß"
Chr$( 224 ) = "à"
Chr$( 225 ) = "á"
Chr$( 226 ) = "â"
Chr$( 227 ) = "ã"
Chr$( 228 ) = "ä"
Chr$( 229 ) = "å"
Chr$( 230 ) = "æ"
Chr$( 231 ) = "ç"
Chr$( 232 ) = "è"
Chr$( 233 ) = "é"
Chr$( 234 ) = "ê"
Chr$( 235 ) = "ë"
Chr$( 236 ) = "ì"
Chr$( 237 ) = "í"
Chr$( 238 ) = "î"
Chr$( 239 ) = "ï"
Chr$( 240 ) = "ð"
Chr$( 241 ) = "ñ"
Chr$( 242 ) = "ò"
Chr$( 243 ) = "ó"
Chr$( 244 ) = "ô"
Chr$( 245 ) = "õ"
Chr$( 246 ) = "ö"
Chr$( 247 ) = "÷"
Chr$( 248 ) = "ø"
Chr$( 249 ) = "ù"
Chr$( 250 ) = "ú"
Chr$( 251 ) = "û"
Chr$( 252 ) = "ü"
Chr$( 253 ) = "ý"
Chr$( 254 ) = "þ"
Chr$( 255 ) = "ÿ"
Note that 128 and up vary depending on the font.
-
Oct 14th, 2001, 07:22 PM
#11
PowerPoster
jesus christ man, he can find that out with a couple of clicks of the mouse
-
Oct 14th, 2001, 07:22 PM
#12
Member
I know, but Daok's link was only several hundred pages long.
-
Oct 14th, 2001, 07:38 PM
#13
-
Oct 14th, 2001, 07:45 PM
#14
Member
You can always use the vb____ set of constants...
-
Oct 14th, 2001, 08:21 PM
#15
Turtle is on crack damn
-
Oct 15th, 2001, 09:31 PM
#16
Frenzied Member
Originally posted by eiSecure
Yeah...over 200 posts in last 2 days.
DAMN! That's a lot!
Not to much if you know what you r talking about.
-
Oct 15th, 2001, 09:35 PM
#17
Frenzied Member
Originally posted by shragel
Not to much if you know what you r talking about.
Or if you don't have a life
You just proved that sig advertisements work.
-
Oct 15th, 2001, 09:57 PM
#18
Fanatic Member
Re: Chr$(???)
[i]...and Also im wondering why..... i get the text from AIM AOL Messenger and my program takes out the HTML Tags of the text and when i t sees <BR> it puts a CHR$(13).. isn't that enter..... cause in my text box it shows a box instead
can someone help!@?>  [/B]
My best guess is that AIM strips the html from the response of the WM_GETTEXT message (which is probably what you're doing)
If you use winsock to get the text (don't try this at home...) you'll get the full html.
I haven't written any apps to interact with AIM so I'm not completely sure that's what the problem is.
If I ever write an AIM program, it'll be a client as well.
-
Oct 16th, 2001, 07:40 AM
#19
Frenzied Member
chr(13) & chr(10). is a linefeed. you need both to have a new line. so just add chr(10)
-
Oct 16th, 2001, 10:33 AM
#20
To clarify what shragel said:
Instead of just putting Chr$(13), put Chr$(13) & Chr$(10). If you want to save typing, VB provides some constants you can use, too. They are vbCrLf and vbNewLine. You can uuse those instead if you want.
Chr(13) is a carriage return. Chr(10) is a line feed. Windows uses a combination of those two to make a new line instead of just Chr(13).
-
Oct 16th, 2001, 04:23 PM
#21
Frenzied Member
I was just wondering...whats the difference between VbCrLf and VbNewLine? Is there any?
You just proved that sig advertisements work.
-
Oct 16th, 2001, 04:25 PM
#22
Member
Originally posted by nishantp
I was just wondering...whats the difference between VbCrLf and VbNewLine? Is there any?
Code:
?vbcrlf = vbnewline
True
Apparently not.
-
Oct 16th, 2001, 04:34 PM
#23
Frenzied Member
Originally posted by filburt1
Code:
?vbcrlf = vbnewline
True
Apparently not.
Now why didnt i think of doing that?
You just proved that sig advertisements work.
-
Oct 16th, 2001, 04:38 PM
#24
Actually, there is a difference, but it's very minor. vbNewLine is supposed to be whatever is better for the platform your app is running on. But since VB only runs in windows, I don't see how that makes a difference.
-
Oct 16th, 2001, 04:46 PM
#25
Frenzied Member
Originally posted by Tygur
Actually, there is a difference, but it's very minor. vbNewLine is supposed to be whatever is better for the platform your app is running on. But since VB only runs in windows, I don't see how that makes a difference.
Do you mind telling us mere mortals how you learn all that stuff ? Most of us would have been satisfied with Arien's comparison. BTW - What do you mean better for the platform? In what way?
You just proved that sig advertisements work.
-
Oct 16th, 2001, 05:22 PM
#26
Originally posted by nishantp
Do you mind telling us mere mortals how you learn all that stuff ? Most of us would have been satisfied with Arien's comparison. BTW - What do you mean better for the platform? In what way?
I get all my info from the MSDN Library and from testing. This was from the MSDN Library:
http://msdn.microsoft.com/library/de...sconstants.asp
The better one is whichever one the platform uses to make a new line.
-
Oct 16th, 2001, 05:27 PM
#27
Hyperactive Member
can i post my results?
= chr(1)
= chr(2)
= chr(3)
= chr(4)
= chr(5)
= chr(6)
= chr(7)
= chr(8)
= chr(9)
= chr(10)
= chr(11)
= chr(12)
= chr(13)
= chr(14)
= chr(15)
= chr(16)
= chr(17)
= chr(18)
= chr(19)
= chr(20)
= chr(21)
= chr(22)
= chr(23)
= chr(24)
= chr(25)
= chr(26)
= chr(27)
= chr(28)
= chr(29)
= chr(30)
= chr(31)
= chr(32)
! = chr(33)
" = chr(34)
# = chr(35)
$ = chr(36)
% = chr(37)
& = chr(38)
' = chr(39)
( = chr(40)
) = chr(41)
* = chr(42)
+ = chr(43)
, = chr(44)
- = chr(45)
. = chr(46)
/ = chr(47)
0 = chr(48)
1 = chr(49)
2 = chr(50)
3 = chr(51)
4 = chr(52)
5 = chr(53)
6 = chr(54)
7 = chr(55)
8 = chr(56)
9 = chr(57)
: = chr(58)
; = chr(59)
< = chr(60)
= = chr(61)
> = chr(62)
? = chr(63)
@ = chr(64)
A = chr(65)
B = chr(66)
C = chr(67)
D = chr(68)
E = chr(69)
F = chr(70)
G = chr(71)
H = chr(72)
I = chr(73)
J = chr(74)
K = chr(75)
L = chr(76)
M = chr(77)
N = chr(78)
O = chr(79)
P = chr(80)
Q = chr(81)
R = chr(82)
S = chr(83)
T = chr(84)
U = chr(85)
V = chr(86)
W = chr(87)
X = chr(88)
Y = chr(89)
Z = chr(90)
[ = chr(91)
\ = chr(92)
] = chr(93)
^ = chr(94)
_ = chr(95)
` = chr(96)
a = chr(97)
b = chr(98)
c = chr(99)
d = chr(100)
e = chr(101)
f = chr(102)
g = chr(103)
h = chr(104)
i = chr(105)
j = chr(106)
k = chr(107)
l = chr(108)
m = chr(109)
n = chr(110)
o = chr(111)
p = chr(112)
q = chr(113)
r = chr(114)
s = chr(115)
t = chr(116)
u = chr(117)
v = chr(118)
w = chr(119)
x = chr(120)
y = chr(121)
z = chr(122)
{ = chr(123)
| = chr(124)
} = chr(125)
~ = chr(126)
= chr(127)
€ = chr(128)
= chr(129)
‚ = chr(130)
ƒ = chr(131)
„ = chr(132)
… = chr(133)
† = chr(134)
‡ = chr(135)
ˆ = chr(136)
‰ = chr(137)
Š = chr(138)
‹ = chr(139)
Œ = chr(140)
= chr(141)
Ž = chr(142)
= chr(143)
= chr(144)
‘ = chr(145)
’ = chr(146)
“ = chr(147)
” = chr(148)
• = chr(149)
– = chr(150)
— = chr(151)
˜ = chr(152)
™ = chr(153)
š = chr(154)
› = chr(155)
œ = chr(156)
= chr(157)
ž = chr(158)
Ÿ = chr(159)
= chr(160)
¡ = chr(161)
¢ = chr(162)
£ = chr(163)
¤ = chr(164)
¥ = chr(165)
¦ = chr(166)
§ = chr(167)
¨ = chr(168)
© = chr(169)
ª = chr(170)
« = chr(171)
¬ = chr(172)
* = chr(173)
® = chr(174)
¯ = chr(175)
° = chr(176)
± = chr(177)
² = chr(178)
³ = chr(179)
´ = chr(180)
µ = chr(181)
¶ = chr(182)
· = chr(183)
¸ = chr(184)
¹ = chr(185)
º = chr(186)
» = chr(187)
¼ = chr(188)
½ = chr(189)
¾ = chr(190)
¿ = chr(191)
À = chr(192)
Á = chr(193)
 = chr(194)
à = chr(195)
Ä = chr(196)
Å = chr(197)
Æ = chr(198)
Ç = chr(199)
È = chr(200)
É = chr(201)
Ê = chr(202)
Ë = chr(203)
Ì = chr(204)
Í = chr(205)
Î = chr(206)
Ï = chr(207)
Ð = chr(208)
Ñ = chr(209)
Ò = chr(210)
Ó = chr(211)
Ô = chr(212)
Õ = chr(213)
Ö = chr(214)
× = chr(215)
Ø = chr(216)
Ù = chr(217)
Ú = chr(218)
Û = chr(219)
Ü = chr(220)
Ý = chr(221)
Þ = chr(222)
ß = chr(223)
à = chr(224)
á = chr(225)
â = chr(226)
ã = chr(227)
ä = chr(228)
å = chr(229)
æ = chr(230)
ç = chr(231)
è = chr(232)
é = chr(233)
ê = chr(234)
ë = chr(235)
ì = chr(236)
í = chr(237)
î = chr(238)
ï = chr(239)
ð = chr(240)
ñ = chr(241)
ò = chr(242)
ó = chr(243)
ô = chr(244)
õ = chr(245)
ö = chr(246)
÷ = chr(247)
ø = chr(248)
ù = chr(249)
ú = chr(250)
û = chr(251)
ü = chr(252)
ý = chr(253)
þ = chr(254)
ÿ = chr(255)
-
Oct 16th, 2001, 06:24 PM
#28
FUBAR you do not need to copy Turtle
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|