Thread View: news.software.readers
3 messages
3 total messages
Started by Paul Moore
Mon, 17 May 2004 17:05
[Dialog] Script library
Author: Paul Moore
Date: Mon, 17 May 2004 17:05
Date: Mon, 17 May 2004 17:05
13 lines
1469 bytes
1469 bytes
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. Thanks, Paul.
Re: [Dialog] Script library
Author: 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.
Re: [Dialog] Script library
Author: Paul Moore
Date: Tue, 18 May 2004 18:02
Date: Tue, 18 May 2004 18:02
10 lines
1378 bytes
1378 bytes
On Tue, 18 May 2004 12:11:20 +0200, Alain GUERIN wrote: >> Is it possible to save such utilities somewhere, as a library, so that I >> can call them from other scripts or event handlers? > You can use an include file. That's exactly what I want. Thanks a lot. Paul
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads