Expected ";" error in event handler

C

Cillian

When I add the following

If e.Operation = “Delete†Then
e.ReturnStatus = False
End If

which I have copied from notepad I reveive the Expected ";" error

Does anyone know how to stop this??

Thanks
 
H

halkar

Possibly your form language is set to Jscript.
Pre SP1, Infopath used Jscript as default and changing it required
extracting and modifying the files. If you have SP1 installed, you can
change it from Tools->Options->Design
 
C

Cillian

Hi,

This didn't work, it was defaulted as VBScript, and I copied and pasted the
lines from notebook.
 
Top