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

Alt-<ASCII code> in TEdit?

Status
Not open for further replies.

EMoyer

Programmer
Apr 19, 2000
1
US
If I have an edit field on a form, and the edit field is set to the
OEM_CHARSET, then if I programmatically set the text to a char like
CHAR(228), the character displays as I would expect (an uppercase
sigma), but if the user of my program tries to enter this character by
holding the Alt key and typing the number 228 (or 0228, either way), the character displays in the edit field as something else. Problem happens with other charsets too.

How can I fix the program so that the user can enter high characters
correctly from the keyboard? I have thought about writing event
handlers to trap the Alt key, etc., but I am wondering if there is an
easier way.

Thanks. -Eric
 
That works fine for me. Alt+228 is different from Alt+0228 though; 0228 works, 228 doesn't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top