LotusScript for Visual Basic Programmers - IBM Redbooks
LotusScript for Visual Basic Programmers - IBM Redbooks
LotusScript for Visual Basic Programmers - IBM Redbooks
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
When a syntax error is corrected, Notes will remove the error indication<br />
from the error box. Notes will not allow you to save a <strong>for</strong>m with<br />
<strong>LotusScript</strong> syntax errors, so you will have to fix all errors (which will<br />
result in an empty error box) be<strong>for</strong>e you will be able to save your <strong>for</strong>m. If<br />
you wish to save an application with errors in it, comment out the sections<br />
that contain errors, or copy the contents to the clipboard, remove the error,<br />
and save the application.<br />
Working with the Script Editor<br />
The script editor functions very much like a text editor. The standard text<br />
editor key conventions are used, such as:<br />
HOME places the cursor at the start of the current line.<br />
END places the cursor at the end of the current line.<br />
CTRL+HOME places the cursor at the start of the script.<br />
CTRL+RIGHT ARROW moves the cursor one word to the right.<br />
You can select text in the usual way (using the SHIFT and arrow keys, or<br />
by dragging the mouse pointer over the text to be selected). The<br />
clipboard-related menus and SmartIcons, such as Cut and Paste, are<br />
available when you are working in the script editor, as well as the<br />
corresponding accelerator keys, such at CTRL+C and CTRL+V. This means<br />
that you can cut and paste scripts, or script fragments, from other objects in<br />
Notes.<br />
Special Script Editor Features<br />
One feature already mentioned was the capability of looking up <strong>LotusScript</strong><br />
functions and objects in the browser. If you click on any entry in the<br />
browser, that entry becomes highlighted, and you can click the Paste button<br />
at the bottom of the browser to paste that line at the current cursor position<br />
in the script editor. You can also double-click the entry to copy it to the<br />
script editor.<br />
Note In Notes Release 4.5, additional features will be available, such as<br />
colorization of identifiers, the ability to export or import all the code, and<br />
selection of the font in which to display the script.<br />
Each time you press the ENTER key, or move off a line of <strong>LotusScript</strong>, the<br />
script editor checks that line <strong>for</strong> syntax errors, and also capitalizes the<br />
<strong>LotusScript</strong> reserved words, i.e., the words in the statement that are a<br />
component of the <strong>LotusScript</strong> basic language.<br />
38 <strong>LotusScript</strong> <strong>for</strong> <strong>Visual</strong> <strong>Basic</strong> <strong>Programmers</strong>