Thread View: news.software.readers
4 messages
4 total messages
Started by OB1
Thu, 30 Oct 2003 18:13
[Dialog] result:=false doesn't prevent sending message
Author: OB1
Date: Thu, 30 Oct 2003 18:13
Date: Thu, 30 Oct 2003 18:13
8 lines
1520 bytes
1520 bytes
I use a script to insert custom headers when posting to particular groups. When I set result:=false in the OnBeforeSendingMessage function, it no longer prevents the message getting sent. It used to work in beta 28. Is this a bug, or has something changed about the function? -- OB1
Re: [Dialog] result:=false doesn't prevent sending message
Author: OB1
Date: Thu, 30 Oct 2003 21:17
Date: Thu, 30 Oct 2003 21:17
17 lines
1754 bytes
1754 bytes
On 30/10/03 , 19:13:30, OB1 wrote: After further testing it looks like evaluation of booleans is not working properly example: boolean:=true; if boolean=true then do this; 'do this' will not execute. i also checked it with if isemail then exit; and if not(isemail) then exit; neither would exit the function. -- OB1
Re: [Dialog] result:=false doesn't prevent sending message
Author: Marcus Mönnig
Date: Fri, 31 Oct 2003 10:44
Date: Fri, 31 Oct 2003 10:44
27 lines
2042 bytes
2042 bytes
*OB1*, 30 Okt. 03, 22:17:
> After further testing it looks like evaluation of booleans is not working
> properly
>
> example:
> boolean:=true;
> if boolean=true then do this;
> 'do this' will not execute.
I don't see this problem.
Program test5;
var b:boolean;
Begin
b:=true;
if b then writeln('true')
else writeln('false');
End.
This custom script works as one would expect.
Marcus
--
No replies in private e-mail, please, unless explicitly requested!
Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/
Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [Dialog] result:=false doesn't prevent sending message
Author: OB1
Date: Fri, 31 Oct 2003 20:15
Date: Fri, 31 Oct 2003 20:15
31 lines
2040 bytes
2040 bytes
On Fri, 31 Oct 2003 11:44:51 +0100, Marcus Mönnig wrote:
> *OB1*, 30 Okt. 03, 22:17:
>
>> After further testing it looks like evaluation of booleans is not working
>> properly
>>
>> example:
>> boolean:=true;
>> if boolean=true then do this;
>> 'do this' will not execute.
>
> I don't see this problem.
>
> Program test5;
> var b:boolean;
> Begin
> b:=true;
> if b then writeln('true')
> else writeln('false');
> End.
>
> This custom script works as one would expect.
>
> Marcus
OK now
uninstalled/reinstalled Dialog and it works again.
--
OB1
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