#ascii(), #code(), #ord()

DESCRIPTION
    returns the ASCII value of the first character in a string
SYNOPSIS
    #ascii(s)
    #code(s)
    #ord(s)
ARGUMENTS
    s - a quoted string, or string expression
EXAMPLES
# pikt +C 'output $text(#ascii("A"))'
65
# pikt +C 'output $text(#ascii($char(65)))'
65
# pikt +C 'output $text(#code("Enigma"))'
69
        rule
                set #ordval = #ord($inlin)
SEE ALSO
    $char()

    String Functions
    Numerical Functions
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
Learn about the
piktc
program