Contact | Privacy | Datenschutzerklärung | Impressum

chr

Format: chr (integer)

Purpose: Returns the ASCII character of integer which must be an integer with a value between 0 and 255.

Return Values: Returns a string of length 1 denoting the ASCII character of integer.

Example:

input:resulting output:
<? chr(48)>0
<? chr(49)>1
<? chr(65)>A
<? chr(97)>a

Note: Programmers should pay particular attention to the fact that Browsers treat ASCII characters from 0 through 32 as "white space" (i.e. non-printable characters) and will not display the normally expected results. For instance, in the examples below you will see that Browsers treat the ASCII space character chr(32) the same as the ASCII 0 value chr(0).

Example:

input:resulting output:
<? chr(0)>
<? chr(32)>

Also, the "carriage return" and "newline" values will not seem to have any effect on your outputted text unless you are in a pre environment.

Example:

input:resulting output:
Hello<? chr(13)><? chr(10)>WorldHello World
<pre>Hello<? chr(13)><? chr(10)>World</pre>
Hello
World

See Also: asc().


This page was dynamically generated by the web application development tool RADpage of H.E.I. See "Was ist AJAX? " (in German). In Germany H.E.I. provides Webdesign in Mannheim and Web Programming (Programmierung).
© 1996-2024 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
    heitml Functions
      ArAppend
      ArConcat
      ArSearch
      array
      asc
      caltime
      chr
      class
      clone
      contains
      ContainsCase
      copy
      copyfile
      crypt
      _dbcolumns
      _dbforeignkey
      _dbprimarykey
      _dbtables
      _dbtypes
      default
      deletefile
      difftime
      directory
      findex
      flush
      fname
      gmtime
      htmlbool
      http_content_type
      http_empty_document
      http_expires
      http_header
      http_last_modified
      http_location
      http_set_cookie
      http_request_header
      _includefilepreprocessed
      index
      IndexCase
      integer
      isbool
      isdecl
      isempty
      isinteger
      isnull
      isstring
      istuple
      isreal
      left
      len
      localtime
      MD5
      mkdir
      mktime
      movefile
      offstotabcol
      random
      readFileLines
      _readini
      _readodbcdrv
      _readodbcdsn
      real
      resize
      right
      _serverdocroot
      _shelltemp
      srandom
      splitstring
      stat
      strftime
      strptime
      subst
      substall
      substring
      tabcoltooffs
      tolower
      toupper
      trim
      trimleft
      trimright
      TuAppField
      TuAssField
      TuAssign
      TuSlice
      TuDelField
      TuFieldSort
      TuInsField
      TuMerge
      TuName
      TuProject
      utime
      _writeini
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tutorial
  New Features
  heitml 1
User Guide
Services
Privacy
Datenschutz
 
Contact / Impressum