🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #162038

Re: [Dialog] Script using zRas.ds Include File won't compile

#162038
From: Nevans
Date: Sat, 05 Feb 2005 04:28
57 lines
3153 bytes
On Fri, 4 Feb 2005 15:21:56 -0600, Nevans wrote in
<news:1mdz8f1zmfuu5$.dlg@ID-200090.user.uni-berlin.de>:

> Dialog 2.0.14.1 (beta 37)
> 
> I've been using Dialog for well over a year and am now trying to add
> code to both my OnStartup and OnTimer1 scripts to check for an active
> internet connection before the program tries to download anything from
> my subscribed newsgroups.  I'm following the instructions at 
> http://www.40tude.com/dialog/wiki/index.php/HandleDialupConnections 
> 
> and have added the line:
>  
> ($I zras.ds) 
> 
> plus corresponding code to my OnStartup script.  But when I compile the
> script, it looks like there is a problem in the zRas Include file
> because I get the following error:
> 
> Failed when compiling
> [Error] zRas.ds(27:26): Syntax error
> 
> Here is the line in question (which doesn't seem syntactically different
> to me than the line preceding it):
> 
>       szPhoneNumber: array[[0..128]] of Char;
> 
> I created the file zRas.ds by copying the include's code from 
> http://www.40tude.com/dialog/wiki/index.php/ScriptzRas 
> into Notepad and saving zRas.ds in Dialog's Scripting/Custom folder.
> 
> I hope one of you Dialog experts can help!
> 
> Thanks,
> Nevans

I'm really having fun talking to myself!

In the original version of zRas.ds include file mentioned above, it
looks like the problem is that a bunch of lines have double brackets [[
and ]] instead of single brackets [ and ].  I changed all double
brackets to single brackets (there were quite a few), compiled the two
scripts, and things are working for me with the "modified original"
zRas.ds include file.

I'm thinking that http://www.40tude.com/dialog/wiki/index.php/ScriptzRas
could (should?) be changed but I'm leary of saying that is the case.  I
am a mainframe programmer and do not know the language used in these
scripts.  Just because the one function I access from the include file
works does not mean that every other function will work properly.  They
are syntactically correct because my scripts compile.  But... are they
functionally correct?

What do you Dialog scripting experts think?

Thanks,
Nevans
Technical Details
Message-ID: <19lnrg58re2mi.dlg@ID-200090.user.uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <1mdz8f1zmfuu5$.dlg@ID-200090.user.uni-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <19lnrg58re2mi.dlg@ID-200090.user.uni-berlin.de>
Subject: Re: [Dialog] Script using zRas.ds Include File won't compile
Date: Fri, 4 Feb 2005 22:28:08 -0600
From: Nevans <nancyevans731@hotmail.com.invalid>
References: <1mdz8f1zmfuu5$.dlg@ID-200090.user.uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 57
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 9Kdl3RbCkgXweAVg3d5DpgfOgiN5WtL8/QQM6IIHYtL4nyKtsP
User-Agent: 40tude_Dialog/2.0.14.1