|
|
|
|
|
|
|
|
|
|
|
|
|
|
PROGRAMMING POWER
Storing text in LotusScript
By Tony Patton
Here's a tip for storing a large amount of text in LotusScript.
There are many times when I need to store large amounts of text, usually multiple lines, in LotusScript code. One good example is printing HTML, where I store the necessary code in variables, using it as needed.
Enclosing the text in either curly braces {}, or the pipe symbol, provides an easy solution. They allow me to store large amounts of multi-line text and preserve all line feeds. Here's a small example where I use the technique to store the HTML for a footer.
Const FOOTER={
<!- Begin Footer ->
All rights reserved<BR>
<a href="copyright.html">
@2005</a>
Company Name
<!- End Footer ->
}
|
One great aspect of this approach is the preservation of new line characters, it improves the readability of your HTML code as well as your LotusScript code.
DominoPower Contributing Editor Tony Patton is a Domino enthusiast with plenty of experience in Domino, Java, XML, and any other hot buzzword. He has written two books (Practical LotusScript and Domino Development With Java) and is a long-suffering Philadelphia sports fan. Drop him a line at aspatton@bellsouth.net.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
PDF Conversion for Lotus Notes
Convert Lotus Notes documents to PDF for sharing, archiving or web printing.
- 1-step PDF: As easy as clicking a Lotus Notes toolbar icon
- Archive email folders or views as a self-contained PDF
- Convert any document collection into a PDF file
- Produce print-quality output from Web applications
- Client side or Server side conversion
- Doesn't require any DLL files
- LotusScript API for developers
Ready to learn more? |
-- Advertisement --
Good Practices... Better Practices... Teamstudio.
Implementing good practices in your Notes environment doesn't have to be complicated.
Teamstudio provides software and services for efficient Notes development and simple, secure administrator control. Our new website also provides users with a library of resources to help, including:
- Ready-to-implement policies for good practice development and deployment in Lotus Notes
- On-demand webinars on topics ranging from tips for better coding, to securing your applications, managing agents, and streamlining your application deployment process
- Free utilities for download to help you more more efficiently tackle several specific tasks in Notes development
Visit our library of white papers to help you take on difficult issues in your Notes environment.
Drop by our new website and take a look! |
|
|
|
|
|
|
|
|
|
|