PermaLink Notes 8 Lotusscript compile error: Empty parentheses not legal on03/13/2009 08:44 AM
LotusScript

One of my clients reported the following error when composing a document:


Empty parentheses not legal on


I created the database with Designer 6.5.5 because all of the users throughout the company use Notes 6.5.5.  However, there are a few users that are testing Notes 8 Standard.  For some reason, the Notes Lotusscript compiler didn't like the following Lotusscript function defined in the form (Globals) event:


Function isValid () As Boolean


According to the Domino Designer Help:


Empty parentheses not legal on:

You included empty parentheses in referring to a variable of type Variant or an undefined function or sub (which LotusScript interprets as a reference to an implicitly declared variable of type Variant).


This didn't make any sense to me, so I resaved the form in DD 8 and tried composing a document with the form again.  This resolved the error, but left me wondering how many other forms I'd need to resave to fix this issue when my client moves to Notes 8...


Comments :v

1. Jerry Carter03/13/2009 09:11:58 AM
Homepage: http://datatribesoftwerks.com


Which specific version of 8 did you see this in? I saw a few random errors like this in 8.0.1, usually where a Java core error bubbled up instead of being handled as a LS error, but those have become very rare with 8.5... haven't seen one yet.




2. Michael Sobczak03/13/2009 10:24:09 AM
Homepage: http://www.punkdbynotes.com


In both 8.0.1 and 8.0.2 Standard.




3. Mick Moignard03/13/2009 10:33:56 AM
Homepage: http://www.mickmoignard.com


What about the possibility that its mixed itself up with the NotesDocument IsValid property? That it got itself all horribly confused because it can't separate your function from its property and it's gotten all hot and bothered?

I'd suggest, long-term, that you rename your function to use a name that's not the same as a Lotuscript reserved word.




4. Richard Schwartz03/13/2009 12:22:25 PM
Homepage: http://www.poweroftheschwartz.com


Mick beat me to the suggestion. I was thinking along exactly the same lines.




5. Michael Sobczak03/13/2009 01:08:18 PM
Homepage: http://www.punkdbynotes.com


I hadn't realized that. I wonder if the LotusScript compiler in Notes 8 is doing more thorough checking than 6.5.5 ...




Credits
NuTechs Powered by Domino
Search
Calendar
February 2012
Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Monthly Archive
Get Real, Detroit!
Real Detroit Weekly
SWARM
Service
With
A
Rapid
Motion


-- old Rally's Hamburgers credo
Lotus Domino ND6 RSS News Feed RSS Comments Feed Podcast Feed Geo URL netcraft RSS Validator Lotus Geek Chris. A. Brandlehner Open Notes Picture Database OpenNTF CoComment Integrated BlogSphere
By Category
The BlogRoll
About
Contact Me
Contact me, Michael Sobczak, using this e-mail address:

my first initial my last name at Yahoo dot com
Recent Entries
No Recent Blogs
Powered by
Blogsphere