Lotus Scritps error----type mismatch

I have a field called ctxtSave and value is set to “0”.

And in the querysave, the code is :

Sub Querysave(Source As Notesuidocument, Continue As Variant)

If source.document.ctxtSave = “0” Then

Msgbox “Please use the Save Button”

continue = False

Exit Sub

End If

End Sub

The error message “Type Mismatch” always comes out. What is happening?

Subject: Lotus Scritps error----type mismatch.

notesDocument items are aælways returned as arrays. so change your code to:

If source.document.ctxtSave(0) = “0” Then

to address the first (and only?) element of the ctxtSave item.

Subject: RE: Lotus Scritps error----type mismatch.

Thank YOu!