Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
Illegal Parenthesized reference

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notesninjas.com/#IllegalParRef or http://www.notesninjas.com/A555F9/nn.nsf/ByAlias/IllegalParRef


If you ever get this message when coding lotusscript using a newish script library, it can be annoying.





When saving a form or agent which used a script library I got this error:

Illegal Parenthesized reference at line 57

This is because the compiler cannot find my function which is in my lotusscript script library.

eg

set maildoc = ConstructMail(doc)

gives the error, I need to make sure

use "ScriptLibraryName"

which describes:

Public Function ConstructMail(doc As notesdocument) As notesdocument

is in the (Options) area of the form or button.

 

I find (and if this happens to you, please tell me. 'cos sometimes I think Notes is playing tricks on me) that I put the Use line in and Notes somehow removes it first time of saving.

Another tip is make sure the function is "Public" so it is accessible from outside the script library.

If the script library has changed or is new etc, it can be worth restarting notes to refresh the Cache.

 

 

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
man and boy by Tony Parsons
British book of the year 2000. Great book, hard to put down, but I nearly threw it away half way through. You'll know why when you read it.
See at: Amazon.co.uk | Amazon.com |