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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Symbols

Status
Not open for further replies.

Regany

Programmer
Aug 27, 2004
72
LV
How to insert mathematical symbols (like square root, volume at angles etc) in delphi text fields (label, memo etc)
 
Some of them you can get to by using Ascii character codes. For example, CHR(251) is the "Square Root" character: ?. You can add this to your text by holding down the Alt key and typing 251 on the number pad. You may be able to get other characters by using the MS "Character Map" application (in XP, found under Start|Accessories|System Tools) to copy and past the characters you want.

-Dell
 
i tried all charsets, but didnt found square root, and for some symbol were black cell, maybe i dont have right font? Where can i get one if the problem there..
 
Hmmm... this is interesting - the square-root character showed up in the edit window when I was typing, but came out as "?" in the response that actually displayed above. In the Character Map application, I can find it in the Times New Roman font, toward the bottom, along with a number of other math symbols.

-Dell
 
the process that translate the posting to the page doesn't recognize ASCII characters, they all come in as '?'.

Regany, when you are setting the caption or label text, do it in the program:

TextBox1.Caption := 'Something ' + CHR(251)

and the correct character should show up in the control.

leslie

Leslie
 
ok, i done that, and as the answer appears "something ?".... Leslie which charset you used? Because i tried all of them, but none was correct.
 
P.S. instead of ? there is letter form my language alphabet
 
i'm not choosing a char set, it's the ASCII code for it no matter what the font or character set. Like Chr(10) - line feed and Chr(13) - carriage return.

Check out for more information on ASCII. I don't know what else to tell you. What language is default on your machine?

Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top