Article View: news.software.readers
Article #261416Re: Request help with 40tude dialog program syntax
From: Stijn De Jong
Date: Sat, 31 Dec 2016 23:18
Date: Sat, 31 Dec 2016 23:18
56 lines
2602 bytes
2602 bytes
Op Sat, 31 Dec 2016 21:35:45 +0000 (GMT), Rodney Pont schreef: > var > Remove_Headers : String; > Try adding the var section as above. If that says it's a duplicate the > Remove_Headers has been defined elsewhere, likely as a const, so try to > find where and change it to a string. I see what you're getting at, which is to define the string as a variable instead of as a constant. Given that syntax is my only problem, this definition should work as the first 2 lines of the program after the "program" line, right? program OnBeforeSendingMessage; var Remove_Headers : 'User-Agent: ,Date: '; Unfortunately, that fails with the error below: http://i.imgsafe.org/8398770bfe.jpg "(Error) OnBeforeSendingMessage.ds(3.18): Identifier expected The actual syntax goal would be solved if I can do this: program OnBeforeSendingMessage; var Remove_Headers : 'User-Agent: ,Date: '; Remove_Headers : 'User-Agent: '; Remove_Headers : 'Date: '; function OnBeforeSendingMessage():boolean; begin end; begin end. I tried exactly that above, which is as simple as I can make the program. It failed with the same error: http://i.imgsafe.org/83b4808676.jpg The simple script fails with a "duplicate identifier": http://i.imgsafe.org/83c1060a72.jpg program OnBeforeSendingMessage; const Remove_Headers = 'User-Agent: ,Date: '; Remove_Headers = 'User-Agent: '; Remove_Headers = 'Date: '; function OnBeforeSendingMessage():boolean; begin end; begin end.
Technical Details
Message-ID:
<o49ed3$jpp$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-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <o49ed3$jpp$1@news.mixmin.net> Subject: Re: Request help with 40tude dialog program syntax Date: Sun, 1 Jan 2017 00:18:50 +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> 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 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 31 Dec 2016 23:19:00 -0000 (UTC) Injection-Info: news.mixmin.net; posting-host="9fb37b91fb7cf5fe2e9162f1c248483ef2e4eb75"; logging-data="20281"; mail-complaints-to="abuse@mixmin.net" X-Received-Body-CRC: 3012427976 X-Received-Bytes: 2433