Answer the question
In order to leave comments, you need to log in
An analogue of the string.charCodeAt(0) function from JavaScript in Delphi?
Please tell me if there is an analogue of the function string.charCodeAt(0) from Js in Delphi
Example '2'.charCodeAt(0) //=>> 50
Answer the question
In order to leave comments, you need to log in
var
myNum : Byte;
begin
myNum := Ord('A'); // myNum is set to 65
end;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question