converting letter to ascii
C#
// 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#:
- Title
- how to make character move unity
- Category
- C#
- Title
- dynamically add rows to datagridview c#
- Category
- C#
- Title
- cc# sort list with list if ids
- Category
- C#
- Title
- fahrenheit to celsius c#
- Category
- C#
- Title
- unity check if gameobject is active
- Category
- C#
- Title
- how to get array of children transform
- Category
- C#
- Title
- unity how to set an objects postion x,y,z
- Category
- C#
- Title
- how to get object to spawn in a curcle
- Category
- C#
- Title
- how to declare 2d array in c#
- Category
- C#
- Title
- c# input
- Category
- C#
- Title
- unity fall damage c#
- Category
- C#
- Title
- c# remove specific character from string
- Category
- C#
- Title
- while loop c#
- Category
- C#
- Title
- unity how to rotate something to point to something else
- Category
- C#
- Title
- linq foreach c#
- Category
- C#
- Title
- Unity C# instantiate prefab
- Category
- C#
- Title
- asp list box
- Category
- C#
- Title
- c# regex to find number between parenthesis
- Category
- C#
- Title
- c# convert to nullable datetime
- Category
- C#
- Title
- weakreference tryget c#
- Category
- C#
- Title
- C# get all files in directory
- Category
- C#
- Title
- never lose focus textbox c#
- Category
- C#
- Title
- c# MD5.Create returning nul
- Category
- C#
- Title
- Instantiate c#
- Category
- C#
- Title
- wpf get name of clicked element
- Category
- C#
- Title
- unity gameobjects with tag
- Category
- C#
- Title
- how to destroy a gameobject after some hits in unity 3d
- Category
- C#
- Title
- c# get current directory xamarin
- Category
- C#
- Title
- c# find duplicates in list of strings
- Category
- C#
- Title
- how to chagne rotation in unity
- Category
- C#
- Title
- c# console writeline color
- Category
- C#
- Title
- move towards target unity
- Category
- C#
- Title
- c# nullable generic
- Category
- C#
- Title
- c sharp how to read a text file
- Category
- C#
- Title
- try catch c#
- Category
- C#
- Title
- unity making homing rocket
- Category
- C#
- Title
- unity rotate object c#
- Category
- C#
- Title
- get enum value c#
- Category
- C#
- Title
- how to select time and date in datetimepicker in c#
- Category
- C#
- Title
- c# list to string join
- Category
- C#
- Title
- c# string to float
- Category
- C#
- Title
- C# get object property name
- Category
- C#
- Title
- c# get hwid
- Category
- C#
- Title
- instantiate object in circle
- Category
- C#
- Title
- mvc c# w3schools
- Category
- C#
- Title
- console application in c# ms crm
- Category
- C#
- Title
- unity making homing missile
- Category
- C#
- Title
- how to create and trigger a function unity animation events
- Category
- C#
- Title
- c# region tag
- Category
- C#
- Title
- iframe set html content c#
- Category
- C#
- Title
- c# how to exit program
- Category
- C#
- Title
- c# dictionaries
- Category
- C#
- Title
- call a function c#
- Category
- C#
- Title
- unity quaternion
- Category
- C#
- Title
- remove all array elements c#
- Category
- C#
- Title
- count the number of notes in a given amount c#
- Category
- C#
- Title
- autoresetevent
- Category
- C#
- Title
- calculate impact damage + unity
- Category
- C#
- Title
- c# remove first 5 characters from string
- Category
- C#
- Title
- Unity3d GPS code
- Category
- C#
- Title
- drag object unity 2d
- Category
- C#
- Title
- c# download file
- Category
- C#
- Title
- unity 2d top down movement
- Category
- C#
- Title
- c# escape characters
- Category
- C#
- Title
- debug.log unity
- Category
- C#
- Title
- unity get child
- Category
- C#
- Title
- c sharp add item to dictionary
- Category
- C#
- Title
- c# arraylist contains
- Category
- C#
- Title
- convert comma separated string to array c#
- Category
- C#
- Title
- Update data in db .net
- Category
- C#
- Title
- unity how to see what scen you are in
- Category
- C#
- Title
- asp.net textarea disable resize
- Category
- C#
- Title
- convert number of days into months c#
- Category
- C#
- Title
- change textbox location C#
- Category
- C#
- Title
- c# mongodb update multiple fields
- Category
- C#
- Title
- how to add a gameobject
- Category
- C#
- Title
- unity rotate around axis
- Category
- C#
- Title
- c# loop through repeater items
- Category
- C#
- Title
- .net core download image from url binary file
- Category
- C#
- Title
- exception handling c#
- Category
- C#
- Title
- iformfile blobclient
- Category
- C#
- Title
- decalre an int list mvc
- Category
- C#
- Title
- c# find process by name
- Category
- C#
- Title
- animations for pause menu
- Category
- C#
- Title
- enums c#
- Category
- C#
- Title
- C# string is all zeros
- Category
- C#
- Title
- c# ?
- Category
- C#
- Title
- button commandfield commandargument pass textbox
- Category
- C#
- Title
- math class C# exponents
- Category
- C#
- Title
- mongodb custom IIdGenerator
- Category
- C#
- Title
- non null array length
- Category
- C#
- Title
- unity object array
- Category
- C#
- Title
- wpf binding ancestor codebehind
- Category
- C#
- Title
- c# expandoobject indexer
- Category
- C#
- Title
- how to switch scenes unity
- Category
- C#
- Title
- unity how to add a bullet impact force
- Category
- C#
- Title
- c# null conditional
- Category
- C#
- Title
- c# update control from another thread
- Category
- C#
- Title
- The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located.
- Category
- C#
- Title
- c# keyvaluepair
- Category
- C#