🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #162027

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

#162027
From: Nevans
Date: Fri, 04 Feb 2005 23:59
51 lines
2792 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 found a solution via Thomas Barghahn's post in Message-ID:
<cl6c74$896$03$1@news.t-online.com> on newsgroup
de.comm.software.40tude-dialog from October 20, 2004.

I took Thomas's script zRasXDemo.ds from the above message and created
my own zRas.ds include file by removing the "script" portions from the
script.  My OnStartup and OnTimer1 scripts compiled successfully and
work.

Now, Dialog only tries to connect to newsservers when a dialup
connection is present.  When no dialup connection is present, nothing
happens.  Result:  no more needless "can't connect" error messages.
Yay!

Nevans
Technical Details
Message-ID: <7hzshkqolwjd.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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.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: <7hzshkqolwjd.dlg@ID-200090.user.uni-berlin.de>
Subject: Re: [Dialog] Script using zRas.ds Include File won't compile
Date: Fri, 4 Feb 2005 17:59:49 -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.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 51
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net e1ClFgBr/wGdcFCsBqxthw6pwR2a2ekAk9W0Gj22DtgSfwmzEy
User-Agent: 40tude_Dialog/2.0.14.1