G
G
GrayL2017-03-07 21:42:52
JavaScript
GrayL, 2017-03-07 21:42:52

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

1 answer(s)
A
Alexander Pushkarev, 2017-03-07
@GrayL

var
   myNum  : Byte;
 begin
   myNum := Ord('A');   // myNum is set to 65
 end;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question