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

Asc

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:18, 28 May 2007 (edit)
Sandman (Talk | contribs)

← Previous diff
Current revision (00:11, 26 November 2007) (edit) (undo)
Sandman (Talk | contribs)
m
 
Line 5: Line 5:
'''BYTE''' asc ( <'''STRING''' character> ) '''BYTE''' asc ( <'''STRING''' character> )
-Returns the ASCII value of the first character of the string ''character''.+Returns the [[ascii|ASCII]] value of the first character of the string ''character''.
== Parameters == == Parameters ==
{| {|
-| '''STRING''' character || - The string of which the ASCIIvalue of the first character will be returned.+| '''STRING''' character || - The string of which the ASCII value of the first character will be returned.
|} |}
Line 30: Line 30:
</pre> </pre>
Used in example: [[write]](), [[key]]() Used in example: [[write]](), [[key]]()
 +
 +{{Funcbox
 + | category = Strings
 +}}

Current revision


Contents

[edit] Definition

BYTE asc ( <STRING character> )

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

[edit] Parameters

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

[edit] Returns

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

[edit] 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()


Strings Functions
Asc() • Atof() • Atoi() • Chr() • Find() • Ftoa() • Itoa() • Lcase() • Len() • Strrev() • Substr() • Ucase() •
Personal tools