Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #623
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Subject | Re: A$= $ptr% Test |
| Newsgroups | comp.sys.acorn.programmer |
| Date | 2011-08-14 15:34 +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> |
| Organization | None |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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