Article View: news.software.readers
Article #162016Re: [Dialog] Script using zRas.ds Include File won't compile
From: Nevans
Date: Fri, 04 Feb 2005 21:27
Date: Fri, 04 Feb 2005 21:27
69 lines
2745 bytes
2745 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 guess I should have provided my OnStartup script:
program OnStartup;
uses Forms;
{$I zRas.ds}
var connection: LongWord;
procedure OnStartup;
begin
// check, if already connected
connection := RasGetConnection();
if connection = 0 then begin
// no connection, so script exits
exit;
end;
ADo('GetNewHeadersInSubscribedGroups'); //Gets new headers at startup
//NEWS
timer1.interval:=60000*47; //every 47 minutes
timer1.enabled:=true;
end;
begin
end.
Technical Details
Message-ID:
<yjfv2ov3ad82.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!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1mdz8f1zmfuu5$.dlg@ID-200090.user.uni-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <yjfv2ov3ad82.dlg@ID-200090.user.uni-berlin.de> Subject: Re: [Dialog] Script using zRas.ds Include File won't compile Date: Fri, 4 Feb 2005 15:27:44 -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!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 69 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net DXDGyU8IXt8r0YeRUCPLrQcPvzLe0A24GrpGCRT2fPqDFFs3HR User-Agent: 40tude_Dialog/2.0.14.1