關鍵字:delphi
delphi/images/2008345091.jpg">
圖5.3 根據ASCII碼獲得字母
procedure TForm1.Button1Click(Sender: TObject);
begin
if (((StrToInt(Edit1.Text))>=65)and((StrToInt(Edit1.Text))<=90))or
(((StrToInt(Edit1.Text))>=97)and((StrToInt(Edit1.Text))<=122)) then
Edit2.Text:=chr(strtoint(edit1.Text));
end;
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/