Article View: news.software.readers
Article #148480Re: [Dialog] Script library
From: Alain GUERIN
Date: Tue, 18 May 2004 10:11
Date: Tue, 18 May 2004 10:11
34 lines
2215 bytes
2215 bytes
Hello,
On Mon, 17 May 2004 18:05:43 +0100, Paul Moore wrote:
> I'm just starting to look at scripting with Dialog, and it occurs to me
> that it won't be long before I accumulate a number of "utility" type
> functions (look for a header with a certain value, split headers from body,
> etc).
> Is it possible to save such utilities somewhere, as a library, so that I
> can call them from other scripts or event handlers?
> Sorry if the answer to this is obvious - I'm not that familiar with Pascal
> programming.
You can use an include file.
For example, I have some routines used in different scripts in a file
called AGHeaderFunctions.ds in directory C:\Program Files\40tude
Dialog\Scripts\Custom\inc.
And I call it in my script with this statement:
{$include inc\AGHeaderFunctions}
HTH
A.G.
--
A.G.
Technical Details
Message-ID:
<1x5szpjs7bv1q$.dlg@alain-guerin.com>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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!fr.ip.ndsoftware.net!proxad.net!feeder2-1.proxad.net!news2-e.free.fr!not-for-mailReferences:
<l0k3ar395034$.1em7hiv68loxn$.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <1x5szpjs7bv1q$.dlg@alain-guerin.com> Subject: Re: [Dialog] Script library Date: Tue, 18 May 2004 12:11:20 +0200 From: Alain GUERIN <courriels40@alain-guerin.com> References: <l0k3ar395034$.1em7hiv68loxn$.dlg@40tude.net> 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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!fr.ip.ndsoftware.net!proxad.net!feeder2-1.proxad.net!news2-e.free.fr!not-for-mail Newsgroups: news.software.readers User-Agent: 40tude_Dialog/2.0.11.1 (2cdfde6a.252.268) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: news40@alain-guerin.com Organization: NA Archive: no X-Face: '*&f@caq/y%f)QY'BcSO`EQH}'>nCphQ%q>YfG1"zCmQAa]-, ^B1-<u0)r)}QS_wzU)5`a` %|NRB0OU/Q><ozTuEx.M+[fx'?9U\Ojwtt>FBPmKGeE=.(/%Gv4+w/T9UqY}e]~jQzpXe&"V84G%al +i$O, EHjhE.c[7qzp+C4VL< Mail-Copies-To: never X-No-Archive: yes Lines: 34 NNTP-Posting-Date: 18 May 2004 12:11:25 MEST NNTP-Posting-Host: 81.57.20.30 X-Trace: 1084875085 news2-e.free.fr 13011 81.57.20.30:2365 X-Complaints-To: abuse@proxad.net