This wiki is out of date, use the continuation of this wiki instead

Asc

From FenixWiki

Revision as of 01:18, 28 May 2007 by Sandman (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


Contents

Definition

BYTE asc ( <STRING character> )

Returns the ASCII value of the first character of the string character.

Parameters

STRING character - The string of which the ASCIIvalue of the first character will be returned.

Returns

BYTE : The ASCII value of the first character of the string character.

Example

Program asciis;
Begin

    write(0,0, 0,0,asc("A"));
    write(0,0,10,0,asc("CAT"));

    Repeat
        frame;
    Until(key(_esc))

End

Used in example: write(), key()

Personal tools