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


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

Re: A$= $ptr% Test

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.shlink.de!news.iphh.net!iphh.net!news.osn.de!diablo2.news.osn.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date Sun, 14 Aug 2011 09:35:00 -0500
From Martin <News03@avisoft.f9.co.uk>
Subject Re: A$= $ptr% Test
Newsgroups comp.sys.acorn.programmer
Date Sun, 14 Aug 2011 15:34:46 +0100
Message-ID <5202abc059News03@avisoft.f9.co.uk> (permalink)
References <ecf590f251.cferris@cferris.freeuk.com> <xpzTp.30253$Ll1.2098@newsfe24.ams2> <786aa6f251.cferris@cferris.freeuk.com> <7c10654e-6e0d-41df-952a-d5185b831cae@t7g2000vbv.googlegroups.com>
User-Agent Pluto/3.04b (RISC-OS/5.16) NewsHound/v1.50-32
Organization None
Lines 32
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-V1ctL5T9dpeL0VHBZlqjuqN6Q7mqXEwR6IVlT5WNyDR4G3dYQmyDX6uPUWlAf8aHSLC6yAZmYU7z+FW!wBlWIOncxizJTVpbZYC0F5nKWMlLSCYOKMnlbGe3M4A1V8idlgIipEO9fdatwXJERg3I8oBtia94!iwk=
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1979
Xref x330-a1.tempe.blueboxinc.net comp.sys.acorn.programmer:623

Show key headers only | View raw


On 14 Aug, in article
<7c10654e-6e0d-41df-952a-d5185b831cae@t7g2000vbv.googlegroups.com>,
   Gazza <usenet@garethlock.com> wrote:

> Another routine where you can specify what the terminator you're
> looking for is...

> DEFFNstring_from_buffer(buff%,trm%)
>  LOCAL i%,out$:out$=""
>  FOR i%=0 TO 254
>   IF buff%?i%<>trm% THEN
>    IF buff%?i%>=32 AND buff%?i%<>127 THEN out$+=CHR$(buff%?i%)
>   ENDIF
>  NEXT
> =out$

> Form what I understand, this does exactly the same job in this context
> as the $ operator, but with the advantage that it will work with any
> terminator.

No, that is not correct. Your routine ONLY includes in the string any
codes above 32, excluding 127.

I believe =$var%  will include ANY character apart from 13, which
terminates the string.

Martin

-- 
Martin Avison 
Note that unfortunately this email address will become invalid
without notice if (when) any spam is received. 

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