%Asc function


Function
The function converts the first leftmost character of the specified text to a number (ASCII coding).


Declaration
INT %Asc(
   TEXT in text
 )
Parameters
textFunction argument.
Example
If the text is an empty text, the function returns an invalid value. Otherwise, it converts the first character to a number within the range of 0...255.
 


%Asc("Hello")    ; returns the value of 72
Napíšte komentár