?
Solved

Lotus Notes ver 6.5.1 - What exactly does "Recompile All Lotusscript" do?  Short explanation is all that is needed.

Posted on 2005-03-10
3
Medium Priority
?
438 Views
Last Modified: 2013-12-18
I do it, but do not know what it does......it completes successfully everytime....never any errors....I looked in Help and it wasn't any Help.....

1.  Why & When is it neccessary to re-compile All Lotusscript?
2.  What kind of errors would the compile detect?
3.  Where would I then see this errors?...not sure what the compiler generates.....


Thanks....
0
Comment
Question by:BeastDan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 200 total points
ID: 13511246
Do you know what compiling means? In most languages, it turns the original programmer-written code into something the computer can load and run.

In the case of some interretive languages, it "reduces" the programer code to a sort of compact version.  In Java, that's Java Byte Code -- the Java Virtual Machine does not know how to interpret the Java language, it only know how to interpret teh Java Byte Code that the Java compiler churns out.  So, programers take their Java source files, and have the compiler put out byte code.

LotusScript is similar.  Instead of byte code, there is LotusScript object code.  the LotusScript compiler reduces the LotusScript programing code, and puts it into object doe, which is also stored alongside the original code.

Normally, LS code gets compiled as you save the deisgn element taht contains it, e.g., as you save an agent, the code of the agent is compiled and stored in the agent (along with the original source code and everything else that makes up an agent, e.g., name, schedule).

If the code in your database gets "corrupt" somehow, yuo need to recompile it.  Using RECOMIPLE ALL is easier than manually opening and saving eachitem.

Also, if you use %Include disk files containing LotusScript, when you change the file, the code does NOT get automatically updated.  Rather than oepning the design elenmnt that %Include's yoru code, then saving it (which loads the file and comiles it), just recompile.

On eother reason to possibly use it:  Sometimes, when the LotusScript compiler program is updated, it can provide better object code than the older versions.  This allows you to take advantage of that.

You shoudl VERY RARELY need to use recompile.

As for output, a I recall, its only output is the object code which gets "silently" attached alongside the source code.  If there is a compile error, I believe it throws up a dialog box and stops.  You can easily test this by using a %Include in an agent in a small test database, saving the agent and seeing that it works, then introducing a syntax error in the %Inlcude file.  It should then fail recomilation (both via RECOMILE and bu opening and saving the agent).
0
 

Author Comment

by:BeastDan
ID: 13511425
Thank you very much....I've compiled Cobol/Rpg, but never Lotusscript.....your explanation was perfectly done!
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 13584532
But not such a short explanation ;)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question