# Server Patch - chr() and asc() functions - Ian

Ian Macintosh (ian@iman.internet.co.nz)
Wed, 17 May 1995 14:59:14 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    On Wed, 17 May 1995, Alex Stewart wrote:

    > > STR chr(NUM)
    > > This will return a string (length(string) = 1) that contains the
    > > character represented by the code NUM.
    >
    > This is generally a bad idea without proper limitations.  For example, if you
    > happen to do a chr(10) and stick it in a prop, your checkpoint and dump files
    > will end up corrupted foreverafter (or at least as long as that value stays in
    > the DB).

    Yeah, I just checked.  chr(10) seems to be the only one capable of
    causing problems.  chr(13) is ok, so correct that in my previous post
    will you?

    Is this valid on all systems?  Would some other system choke on chr(13)?

    Regards,

    Ian.

    +--------------------------------------------------------------------+
    | Ian Macintosh         | P.O. Box 24-036 | Anything really worth    |
    | General Manager       | Royal Oak       | doing, is worth doing    |
    | Sytek New Zealand Ltd | Auckland 1      | badly.     - Duncan Shaw |
    +--------------------------------------------------------------------+