G
Guest
I have Windows 98. Yes, I know it is out-dated. Is there a way to print a
cents sign, as in "it cost 5 cents" ?
cents sign, as in "it cost 5 cents" ?
I have Windows 98. Yes, I know it is out-dated. Is there a way to print a
cents sign, as in "it cost 5 cents" ?
That is because the ASCII representation is 162
To return the letter X for example, it would be <Alt> 088
So, Chr(162) will return ½
I stand corrected. Things have changed. I was not aware we were now using
ANSI code rather than ASCII codes.
That would be ANSI representation.
The ASCII is 155.
The fact that Asc("¢") returns 155 is something of a problem, I
guess.
I am going to come to your house and do something disgusting on your carpet
I believe Mr. Fenton is incorrect. I get the same results you did.
I stand corrected. Things have changed. I was not aware we were
now using ANSI code rather than ASCII codes.
In the original days of the BASIC language, it was ASCII codes
(that's where Asc came from).
I believe the original set (0 - 127) of ASCII and ANSI are the
same. There are some differences in the upper set.
Copied and pasted from the Immediate window (Access2003, fully
patched, WindowsXP, American English language settings, default
fonts):
?Asc("½")
162
?chr(162)
½
?chr(155)
You are correct about what the codes are. Where the confusion
lies is that in the early days of the BASIC language, the function
did use ASCII codes. That is why the name of the function is Asc
and not Ans. At what point Microsoft chose to change to ANSI, I
don't know, but it was a suprise to me.
Where some of the confusion came from is that
Alt 0162 returns ½
Alt 162 returns ¢
Alt 0155 returns ?
Alt 155 returns ½
So it appears that Alt and 4 disgits returns ANSI codes and Alt
and 3 digits returns ASCII codes.
You will note that if you use 3 and 4 digits on the lower 128,
with a few exceptions, they are the same.
All very interesting. Thanks for your input.
Interestingly, there is some translation problem between IE6 and
your newsreader. The characters I actually posted were not what
you sent back. They were in fact what you said were correct.