Help Me: WebQuerysaveAgent

I have a problem:

In My Webquerysave Agent i put this instruction:

Dim session As New NotesSession

Dim db As NotesDatabase

Set db = session.CurrentDatabase

Dim webDoc As NotesDocument

Dim Request List As String

Dim QS As String

Dim varPost As String

Set webDoc = session.DocumentContext

'Print “

” + webDoc.Aula(0) + “

'varPost = webDoc.Request_Content(0)

'Call ExplodeQueryString(varPost, Request)

Dim ok As String

ok=“1”

If ok= “1” Then

Print""

Else

'Print""

'continue = False

'End

End If

if ok=“1” there’s no problem, if ok=“2” i wish not save the document but i don’t know how. I try with CONTINUE= FALSE and with END but don’t seems correct.

thank you in advance for help

Subject: Help Me: WebQuerysaveAgent

Continue is a parameter of the QuerySave subroutine of a Notes form only. There is no direct equivalent.

To keep a document from being saved from the web, set the document’s SaveOptions item to “0”. This requires, that the field SaveOptions is actually on the form (!) and that the database option to use JavaScript when generating pages is checked.

Also note, that there is no need to redirect the user via client site JavaScript. Simply print the target URL and include it in square brackets.

Subject: RE: Help Me: WebQuerysaveAgent

Thank’s so much!! ;D