List of ASCII characters

Hello,

  I need a complete list of ASCII characters for all keystrokes. The one I really need is the Backspace key. Looked in help on delphi 3 but it only named three or four codes. I also looked on the web and found some list the shows all the code of letters and numbers but they did not give a complete list. Thats it.

Thanks,
MrError
MrErrorAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
RBertoraConnect With a Mentor Commented:
What you can do is drop a memo on a blank form

then in this event do the following:

procedure TForm1.Memo1KeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  showmessage(inttostr(key));
end;

you should see backspace is 8
which means you can use chr(8) or #8 to reproduce it
Rob ;-)
0
 
sburckCommented:
Backspace is chr(8)

A full table can be found at:

http://members.tripod.com/plangford/ascii.html
0
 
RBertoraCommented:
you will struggle to find tab, but that is number 9 any way.. also carridge return is 10.

Rob ;-)
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
intheCommented:
the qbasic help file has a complete listing of all ascii codes including the extended ones ..
if you have qbasic that is..
or look in windows.pas for list of the vk_keys (backspace is vk_back) or (08 in ascii)

0
 
sburckCommented:
BTW, Rob - carridge return is #13, linefeed is #10.
0
 
DrDelphiCommented:
I have the VK_Keys constants listed on my website also, if you need a quick reference:

http://www.drdelphi.com
0
 
RBertoraCommented:
Doh! :-)
0
 
MrErrorAuthor Commented:
To everyone,

  Thank you all for your information. I tell you experts-exchange is awesome because it has all these brilliant people willing to help out us newbies. I can only pick one person to give points to and I think its only fair to give it to the person who gave an answer that solved my question first RBertora... even though you were wrong on the carridge return. Doh

MrError
0
 
MrErrorAuthor Commented:
Thanx again

MrError
0
 
RBertoraCommented:
Are you sure youre source of info on CR is not wrong ;-)
Thanks for the good grade! & goodluck.
Rob;-)
0
All Courses

From novice to tech pro — start learning today.