No. Problem is, those uppercase characters are very keyboard-dependant. If you have a British keyboard, the uppercase 2 would be a double quote and not the @ sign. You'd also get other possible results with other kinds of keyboards. Not to mention a Japanese keyboard here.
Technically speaking, key's don't have an uppercase or lowercase value. They just have a value. Characters do have an uppercase value but only if they are letters. There is no uppercase 2. What you are looking for is getting the layout of the keyboard with the additional keymapping. If you have the Platform SDK from Microsoft (which you can download from free anyways, somewhere) then you can check the different layouts by searching for the word "keyboard" in this documentation. With kind regards, \/\//\ Wim. --- In [email protected], Vahan Yoghoudjian <[EMAIL PROTECTED]> wrote: > > I know how to convert from lowercase to uppercase characters > > ord(Key) - ord('a') + ord('A') will return the lowercase of the pressed key > // after making sure that Key is a lowercase character of course > > is there any relation where I can return the upper value of the numerical > keys. > > For example: if key 2 is pressed, I want to return @, if key 4 is pressed I > want to return $, etc... > > Thanks in advance > > Vahan > > > > [Non-text portions of this message have been removed] > ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

