Re: Attempting to read past end of strings

From: Bruce Roberts (ber_at_bounceitattcanada.xnet)
Date: 03/29/04

  • Next message: Richard: "Delphi 6 and XP"
    Date: Mon, 29 Mar 2004 15:07:15 -0500
    
    

    "John Tserkezis" <jt@techniciansyndrome.org.invalid> wrote in message
    news:4064bd72$0$30592$afc38c87@news.optusnet.com.au...

    > But that's the issue here. It *WAS* defined. Under TP, reading past
    the
    > 'end' of a string returns an empty character. It was an easy way to tell
    if
    > the index was part of the string (would return the character at index), or
    > nothing if was past the end.

    This isn't my recollection of TP. My memory is that the sequence

        s := '0123456789';
        s := 'abcd';
        s2 := s [10];

    would result in s2 = '9'.


  • Next message: Richard: "Delphi 6 and XP"

    Relevant Pages

    • Re: Attempting to read past end of strings
      ... > the 'end' of a string returns an empty character. ... My Turbo Pascal Macintosh manual says this regarding reading past ...
      (alt.comp.lang.borland-delphi)
    • Re: Regulgar Expression syntax help...
      ... > named above with an empty character (thus if a bang or question mark was ... > in a string, it would be removed from the string). ...
      (comp.lang.php)
    • Merry Christmas!
      ... dictionaries and every variant possibility has a separate "word" entry. ... The byte string of the "word", whose length is specified by a four ... match is found for a source byte sequence in the dictionary. ...
      (rec.arts.sf.written)
    • Merry Christmas! Linux RULES! New applications to develop!
      ... dictionaries and every variant possibility has a separate "word" ... Each entry in the dictionary contains: ... The byte string of the "word", whose length is specified by a four ... addresses whose entry is selected by the first byte of the sequence. ...
      (comp.os.linux.misc)
    • Re: user defined function that converts string to float
      ... > I need user defined function that converts string to float in c. ... initial, possibly empty, sequence of white-space characters (as ... point character, then an optional exponent part as defined in ... then a nonempty sequence of hexadecimal digits ...
      (comp.lang.c)