%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
text Function argument.

Example
If text is empty text, the function gets 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