🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Marko37 Mon, 15 Dec 2003 14:09
[Dialog] Yet another lame scripting question :) (and a suggestion)
#139339
Author: Marko37
Date: Mon, 15 Dec 2003 14:09
20 lines
2312 bytes
I'm interested mostly in event scripts which change incoming/outgoing
messages (OnBeforeSending and OnBeforeSaving), and I could use a couple
of hints on TStringlist variables? That is the message:tstringlist.
First, what functions/procedures are there xcept message.add,
message.insert? How to delete an entire line? For example I don't want
message.strings[15] and want to delete it and shift others up one level.
Why can't I compile a script that uses message.strings[i] as an ordinary
string variable (in procedures and functions)? I get "exception while
compiling" so I have to use additional variable, let's say s1:string :=
message.strings[i], do whatever I want with it, and in the end to do
message.strings[i]:=s1.
Any good online tutorial (or pdf document) to ObjectPascal, other the one
mentioned in Dialog help?

And to Marcus: another round of localization?

-- 
I prefer to remain anomalous.

email2: znepber@tnyro.rgs.ot.np.lh - rot to decode
Re: [Dialog] Yet another lame scripting question :) (and a suggestion)
#139383
Author: Alain GUERIN
Date: Tue, 16 Dec 2003 10:15
30 lines
2357 bytes
Hello,


On Mon, 15 Dec 2003 15:09:50 +0100, Marko37 wrote:

> Any good online tutorial (or pdf document) to ObjectPascal, other the one
> mentioned in Dialog help?
> 

I am afraid that the best way, until somebody write a tutorial, is the 
study of the scripts in Wiki.

FWIW, here are the (short) advises, I give to the newcomers in Dialog 
scripting:

In Dialog Help, you have the main information in the "scripting" chapter.

Syntaxe of scripts is a sub set of Pascal/Delphi language.

Look in the Delphi help file what are the properties and methods available 
and test them. The mains are here.

If you want to add an Ado() action, when in script writing window, open 
the script you want to modify and click on the 'Show button config' 
button. Then, select an action and drag and drop it into the script 
window.

Not sure that help you very much, but it could be a starter for others ;-)
-- 
A.G.
Re: [Dialog] Yet another lame scripting question :) (and a suggestion)
#139384
Author: Alain GUERIN
Date: Tue, 16 Dec 2003 10:23
30 lines
2428 bytes
Hello,


On Mon, 15 Dec 2003 15:09:50 +0100, Marko37 wrote:

> Any good online tutorial (or pdf document) to ObjectPascal, other the one
> mentioned in Dialog help?
> 

I am afraid that the best way, until somebody writes a tutorial, is the 
study of the scripts in Wiki.

FWIW, here are the (short) advises, I give to the newcomers in Dialog 
scripting:

In Dialog Help, you have the main information in the "scripting" chapter.

Syntaxe of scripts is a sub set of Pascal/Delphi language.

Look in the Delphi help file what are the properties and methods available 
and test them. The mains are here.

If you want to add an Ado() action, when in script writing window, open 
the script you want to modify and click on the 'Show button config' 
button. Then, select an action and drag and drop it into the script 
window.

Not sure that help you very much, but it could be a starter for others ;-)
-- 
A.G.
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