🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #261431

Ping Bernd Rose: How do you set and define a variable in 40Tude Dialog

#261431
From: Stijn De Jong
Date: Sun, 01 Jan 2017 18:02
34 lines
2055 bytes
In another thread, much to everyone's surprise and dismay, we found it 
impossible to figure out the syntax to simply set and define a variable in 
40Tude Dialog?
 http://i.imgsafe.org/94013af980.jpg

The thread is here but the question now is simpler than the original:
 Request help with 40tude dialog program syntax
 https://groups.google.com/forum/#!topic/news.software.readers/sr56Wrng4Ks

The new question is simpler in that all we ask is the syntax that allows us 
to do two very simple things:
1. How do you set a variable in 40Tude dialog, 
2. So that you can then assign that variable a value?

Very many syntactic attempts failed, so here is just one attempt:

program OnBeforeSendingMessage;
var
Remove_Headers : String;  
Remove_Headers:='foo';
Remove_Headers:='bar';  
const
    RemoveFromEmails = true;
    RemoveFromNews   = true;
procedure RemoveHeaders ( Message : TStringlist;
                          IsEmail : boolean
);

Failed when compiling
[Error] OnBeforeSendingMessage.ds(4:1): Duplicate identifier
'Remove_Headers'

Is it syntactically possible to set & then define a variable in 40Tude?
How?
Technical Details
Message-ID: <o4bg7v$t51$1@gioia.aioe.org>
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

Show Full Headers
Complete Article Headers
Message-ID: <o4bg7v$t51$1@gioia.aioe.org>
Subject: Ping Bernd Rose: How do you set and define a variable in 40Tude Dialog
Date: Sun, 1 Jan 2017 19:02:25 +0100
From: Stijn De Jong <stijndekoning@nlnet.nl>
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: news.software.readers,alt.os.linux
Organization: Aioe.org NNTP Server
Lines: 34
NNTP-Posting-Host: mi1Blu9NXhBVwwE9St822Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: 40tude_Dialog/2.0.15.41
X-Notice: Filtered by postfilter v. 0.8.2
X-Received-Body-CRC: 348215875
X-Received-Bytes: 1990