🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261529

Re: Request help with 40tude dialog program syntax

#261529
From: Stijn De Jong
Date: Mon, 02 Jan 2017 14:28
42 lines
2849 bytes
Op Sun, 01 Jan 2017 20:45:40 +0000 (GMT), Rodney Pont schreef:
 
> Try:
> program OnBeforeSendingMessage;
> var
> Rmv_Hdrs : String;  
> Rmv_Hdrs:='foo';
> Rmv_Hdrs:='bar';   
> Then change Remove_Headers to Rmv_Hdrs in the RemoveHeaders procedure
> at line 19 in the jpg you linked to above.
> http://i.imgsafe.org/94013af980.jpg

Thanks Rodney for the added help, as I'm close to giving up since I should
have known that it's too difficult for a layperson like me to logically
figure out a scripting language.

I did, however, with help from an expert on the language, get past the
stumbler of the syntax, which is that a "begin" statement had to be used to
re-assign the variable.

http://i.imgsafe.org/99dc6c0dbe.jpg

Program setRemoveHeadersString;
var Remove_Headers:string;
Begin
  Remove_Headers := 'X-Scoring: ,X-Hamster-Info: ';
  Remove_Headers := 'X-Scoring: ';
  WriteLn(Remove_Headers);
 End.

I posted separately the current version, which has no syntax errors, but
which fails to do anything (not even what they did originally), where all I
essentially did was try to insert the Remove_Headers definition into an
if-then-else condition.

The script would be generally useful to those who have different
requirements for work versus for personal use of the Usenet, so my
dissillusionment will do others a dissservice. 

I may try to tackle it again in the future, but I think I'm out of my
league because I can't get the if-then-else to use the re-defined variable
(or even spit it out to the log file). 
Technical Details
Message-ID: <o4do2v$e4p$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
References: <o491jh$7jr$1@gioia.aioe.org> <o4926s$933$1@gioia.aioe.org> <nfcnzpzcvasbuvgzrhx.oj2tz62.pminews@ouse.infohit.me.uk> <o495cr$177$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj2xvl5.pminews@ouse.infohit.me.uk> <o49ed3$jpp$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj3ral0.pminews@ouse.infohit.me.uk> <o4ao8r$7gd$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj4cen1.pminews@ouse.infohit.me.uk> <o4bfko$ntb$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj4q842.pminews@ouse.infohit.me.uk>

Show Full Headers
Complete Article Headers
Message-ID: <o4do2v$e4p$1@news.mixmin.net>
Subject: Re: Request help with 40tude dialog program syntax
Date: Mon, 2 Jan 2017 15:28:29 +0100
From: Stijn De Jong <stijndekoning@nlnet.nl>
References: <o491jh$7jr$1@gioia.aioe.org> <o4926s$933$1@gioia.aioe.org> <nfcnzpzcvasbuvgzrhx.oj2tz62.pminews@ouse.infohit.me.uk> <o495cr$177$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj2xvl5.pminews@ouse.infohit.me.uk> <o49ed3$jpp$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj3ral0.pminews@ouse.infohit.me.uk> <o4ao8r$7gd$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj4cen1.pminews@ouse.infohit.me.uk> <o4bfko$ntb$1@news.mixmin.net> <nfcnzpzcvasbuvgzrhx.oj4q842.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
Newsgroups: alt.windows7.general,news.software.readers
Organization: Mixmin
Injection-Date: Mon, 2 Jan 2017 14:28:51 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="ca048ee22717e9eb6cbf3e09d8c73d1ae438aadd";
 logging-data="14489"; mail-complaints-to="abuse@mixmin.net"
X-Received-Body-CRC: 2447735474
X-Received-Bytes: 2774