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


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

Re: A$= $ptr% Test

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!upload-2.xsnews.nl!10.10.69.3.MISMATCH!frontend-F09-03.ams.news.kpn.nl
From Paul Sprangers <Paul@sprie.nl>
Subject Re: A$= $ptr% Test
Newsgroups comp.sys.acorn.programmer
Date Thu, 14 Jul 2011 14:14:38 +0200
Message-ID <51f2a80224Paul@sprie.nl> (permalink)
References <ecf590f251.cferris@cferris.freeuk.com> <xpzTp.30253$Ll1.2098@newsfe24.ams2> <786aa6f251.cferris@cferris.freeuk.com>
User-Agent Pluto/3.04e (RISC-OS/5.16) NewsHound/v1.52-32
Organization None
Lines 20
NNTP-Posting-Host 213.10.58.27
X-Trace 1310645682 news.kpn.nl 2554 213.10.58.27@kpn/213.10.58.27:56527
Xref x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:560

Show key headers only | 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