Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #560

Re: A$= $ptr% Test

From Paul Sprangers <Paul@sprie.nl>
Subject Re: A$= $ptr% Test
Newsgroups comp.sys.acorn.programmer
Date 2011-07-14 14:14 +0200
Message-ID <51f2a80224Paul@sprie.nl> (permalink)
References <ecf590f251.cferris@cferris.freeuk.com> <xpzTp.30253$Ll1.2098@newsfe24.ams2> <786aa6f251.cferris@cferris.freeuk.com>
Organization None

Show all headers | View raw


In article <786aa6f251.cferris@cferris.freeuk.com>,
   <cferris@freeRemoveuk.com.invalid> wrote:


> WHILE (ptr%?i%>=32) AND (i%<255)
>   n$+=CHR$ (ptr%?i%)

Apart from skipping the control characters (0 - 31), you should perhaps
also filter out 127 (the delete-character).
Thus:

WHILE (ptr%?i%>=32) AND (ptr%?i% <> 127) AND (i%<255)
etc.

Normally, ASC127 doesn't slip easily into a string, but if there are
reasons for expecting rubbish, as you say, you better be sure.

Kind regards,
Paul Sprangers

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

A$= $ptr% Test cferris@freeRemoveuk.com.invalid - 2011-07-14 09:02 +0100
  Re: A$= $ptr% Test Steve Drain <steve@kappa.me.uk> - 2011-07-14 11:19 +0100
    Re: A$= $ptr% Test cferris@freeRemoveuk.com.invalid - 2011-07-14 12:57 +0100
      Re: A$= $ptr% Test Paul Sprangers <Paul@sprie.nl> - 2011-07-14 14:14 +0200
        Re: A$= $ptr% Test "Ste (news)" <steve@revi11.plus.com> - 2011-07-14 13:46 +0100
      Re: A$= $ptr% Test Gazza <usenet@garethlock.com> - 2011-08-14 04:54 -0700
        Re: A$= $ptr% Test Martin <News03@avisoft.f9.co.uk> - 2011-08-14 15:34 +0100
          Re: A$= $ptr% Test Gazza <usenet@garethlock.com> - 2011-08-14 08:39 -0700
            Re: A$= $ptr% Test Gazza <usenet@garethlock.com> - 2011-08-14 17:11 -0700
              Re: A$= $ptr% Test Steve Drain <steve@kappa.me.uk> - 2011-08-15 12:30 +0100
  Re: A$= $ptr% Test Martin Wuerthner <spamtrap@mw-software.com> - 2011-07-14 13:16 +0200
  Re: A$= $ptr% Test Martin <News03@avisoft.f9.co.uk> - 2011-07-14 15:32 +0100

csiph-web