🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261406

Re: Request help with 40tude dialog program syntax

#261406
From: Rodney Pont
Date: Sat, 31 Dec 2016 20:43
52 lines
2944 bytes
On Sat, 31 Dec 2016 21:20:09 +0100, Stijn De Jong wrote:

>I think there is a "rule" that I don't understand which doesn't allow me to 
>redefine the Remove_Headers variable (or constant, as it seems to be).
>
>For example, this works:
> const
> Remove_Headers='User-Agent: ,Message-ID: ';
>
>But this fails:
>https://i.imgsafe.org/811a9201c9.jpg
>
>Just redefining the variable fails with a "duplicate identifier" error:
> const 
> Remove_Headers='User-Agent: ,Message-ID: ';
> Remove_Headers='User-Agent: ,Mime-Version: '; 
>
>This also fails with a "duplicte identifier" error:
> const 
> Remove_Headers='User-Agent: ,Message-ID: ';
> const
> Remove_Headers='User-Agent: ,Mime-Version: ';
>
>If I remove the "const", it complains of a different error, so, the const 
>is apparently required. 
> https://i.imgsafe.org/811aae6f99.jpg
>
>All I'm asking, really, is how to re-define the variable "Remove_Headers".

For a start if you define it as a constant it's not a variable and
can't(shouldn't) be redefined. I don't recognise the syntax of this
scripting language so I'm guessing a bit(lot) :-)

It looks as if you define a string as

Remove_Headers : String
in the var section.

If you want to use that variable outside of a function don't define it
within a function call, you need to define it at the beginning of the
script so that it has global context. If it's defined within a function
call it only has context within that function and the value will not be
carried outside of it.

I can't tell you exactly what to do since I can't follow the code, I've
got CFS/ME and my short term memory isn't any good, I can follow a few
lines but no more, the earlier lines have just left me.

-- 
Faster, cheaper, quieter than HS2
and built in 5 years;
UKUltraspeed <http://www.500kmh.com/>
Technical Details
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2vg93.pminews@ouse.infohit.me.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <o491jh$7jr$1@gioia.aioe.org> <nfcnzpzcvasbuvgzrhx.oj2tg71.pminews@ouse.infohit.me.uk> <o493u0$u1j$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <nfcnzpzcvasbuvgzrhx.oj2vg93.pminews@ouse.infohit.me.uk>
Subject: Re: Request help with 40tude dialog program syntax
Date: Sat, 31 Dec 2016 20:43:21 +0000
From: "Rodney Pont" <mlist4@infohit.me.uk>
References: <o491jh$7jr$1@gioia.aioe.org> <nfcnzpzcvasbuvgzrhx.oj2tg71.pminews@ouse.infohit.me.uk> <o493u0$u1j$1@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: alt.windows7.general,news.software.readers
Lines: 54
Reply-To: "Rodney Pont" <mlist4@infohit.me.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 5HTGYsTSWubIYG7RM9xtxQOQcXK1Fpk8767ahCWxUGZQjdE9BJ
X-Orig-Path: ouse.infohit.me.uk!not-for-mail
Cancel-Lock: sha1:uAV0XfJ1xuq2eDEsAOY4AqlJNMk=
X-Newsreader: PMINews 2.00.1205 For OS/2
X-Received-Body-CRC: 1273913345
X-Received-Bytes: 2815