converting letter to ascii
// This Example is from delphi 10.3 comunity edition
// and it is a TButton on click event(Can be used with other events)
//converts letters Uppercase and lowercase to their corresponding ASCII values
procedure TForm1.btntoasciiClick(Sender: TObject);
var
cletter : char; //you can name your variables anything
Alphabet : set of char; //you like within reason
begin
cletter := edtlet.Text[1]; //edtlet was the TEdit i was using
Alphabet := ['A'..'Z','a'..'z'];
if cletter in Alphabet then
begin
edtnum.Text := IntToStr(Ord(cletter)); //I was using a TEdit as the output but you can use a memo
end else ShowMessage('<What you want to say>'); //or another form of text output
end;
Also in C#:
- how to remove space between string in c#
- unity add component
- converting letter to ascii
- .net core session
- increase variable C#
- loop over enum values
- unity create a child object
- c# new list object
- How to execute a script after the c# function executed
- visual studio clear text script
- c# rsa example
- decalre an int list mvc
- c# send email
- c# convert column name to number
- native-googlesignin configuration is null!?
- c# change material in code
- C# .net core convert to int round up
- how do I attach a player with a navMeshAgent
- datatable return column names
- unity how to check object position
- file picker uwp c#
- float to int c#
- c# string
- usermanager change password without current password