Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ASCII code 2

Status
Not open for further replies.

InsideEdge

Instructor
Apr 5, 2005
35
US
Hi, I’m trying to use the ASCII code in Visual Basic 6. I have a list of the codes and I am trying to get a smile face to appear in my RichTextBox. The ACII code is 001 and it corresponds to the character of the smile face so I use Chr(001). Visual basic changes the Chr(001) to Chr(1) and I don’t see anything but a little empty rectangular box. Is there any way that I can get my smile face to show with some other code?
 
yep - it sure does - just like wingdings, webdings and the like provide alternative character images for the relative codes when used - but it's not part of the standard ASCII character set - which was the point being contended if I'm not mistaken.

ECS reference:


A smile is worth a thousand kind words. So smile, it's easy! :)
 
Then, is it more accurate to say that the smiley faces are DOS characters? I've seen a number of charts that call them ASCII characters, and I have on from Que in front of me that has the smiley faces listed in their special appendix labeled ASCII Character Set.

Lee
 
LOL - why do I get the feeling this whole thread was a set up for Sheco's response!!!!
 
makes sense, if you put HTML ASCII " &#9786 " and " &#9787 " in a html document and save it, they display as smiley faces.
 
So what is the official name, HTML Decimal Unicode. ?
 
This whole post has confused me somewhat, I'll have to google for some background on ASCII, Thanks, Strongm.
 
Gee let's (not) dredge up the old 6-bit character sets we used to use while we're at it. ;-)
 
BillyRayPreacherSon eluded that the operating system plays a huge role in displaying ASCII characters and I am inclined to agree. My smile face worked with Times New Roman on other systems like Windows 2000, but not with Windows XP SP2. If you open Microsoft Word and go to Insert Symbols, then select Wingdings from the font dropdown list, the smile face is available along with the ASCII code that can be used for it—74. The thing is it seems silly to change fonts for a single character but I guess that’s what I’m going to have to do. This brings me to my next question….

Does anyone know how to change a font for one single character so that I can display it as a wingding and thus the smile face?

You guys are a great help,

Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top