|  |  | | |
| 25 |
 | LotusScript |
| |
| 1 |
|
 | Checking Free Disk Space |
| |
| | | This LotusScript routine demonstrates how to determine the free disk space using a Windows API. |  |
| 1 |
|
 | Checking if task is running |
| |
| | | This function checks if a task is running, and returns True or False. The task name can be a partial name of the task. |  |
| 1 |
|
 | Converting Hex values to numbers |
| |
| | | Here's quick tip how to convert Hex values (strings) to numbers: |  |
| 1 |
|
 | Copy Notes Documents as pictures to Word |
| |
| | | Using BitBlt operations you can easily copy selected documents from a view as seperate Word documents.
Make sure you have a field called "Subject" in each document, or modify the call to the CopyScreenRectToWord parameters accordingly.
By default the size of the region is set to 600x600, starting from the corner of the Notes Document content, and you can change this size as needed. |  |
| 2 |
|
 | Creating Directory Path |
| |
| | | This sub creates a complete path to a subdirectory, if it doesn't exist. |  |
| | | This sub creates a complete path to a subdirectory, if it doesn't exist. (By Sam) |  |
| 1 |
|
 | CSV Import |
| |
| | | Importing Tab, or any other delimited text files. |  |
| 1 |
|
 | Disabling the user to close a document |
| |
| | | Sometimes it is not wanted that a user can exit a document, without using a certain button. Put this code in the Form's Queryclose event to avoid unexpected exiting from a document: |  |
| 1 |
|
 | Letting user change internet password via button. |
| |
| | | This example prompts the user for a new internet password and updates his internet password in the user's person document on his home server. |  |
| 1 |
|
 | Opening random document from a view |
| |
| | | This example demonstrates how to get a random document from a view. After you have the document handle you can get a field from that document and show it on another document. |  |
| 1 |
|
 | Passing parameters to an web agent |
| |
| | | If you want to pass one or several parameters to an web agent, you can use this example. |  |
| 1 |
|
 | Reading Windows registry keys from LotusScript |
| |
| | | Here is how to read registry key values using the windows API |  |
| 1 |
|
 | Rebuild View Index |
| |
| | | This example shows how to rebuild a view index, which works the same way as pressing Shift-F9 from the Notes Client.
Based on a code snippet from Rod Whiteley on the R4/5 Forum, I came out with this: |  |
| 1 |
|
 | Refreshing all views in database |
| |
| | | After an agent has updated or created new documents in a database, it's a good idea to let the agent refresh all views of the database, so that the next user who accesses this database doesn't have to wait for a long time when the views are refreshed. |  |
| 1 |
|
 | Round function does not always round correctly, here is a new Round function which works correcly in all cases |
| |
| | | Round function of Lotus Notes 5-9 does not always round up where it should, therefore this function |  |
| 1 |
|
 | SendKeys / PressKeys |
| |
| | | Since the SendKeys does not work in Notes, you can use this replacement for the same purpose. |  |
| 1 |
|
 | Setting computed fields in read mode on a document |
| |
| | | It's quite common that documents have to show computed values. |  |
| 1 |
|
 | Setting user preferences |
| |
| | | Some options from the User preferences (Large Fonts, Monochrome) have been forgotten from the Menus in R5. With LotusScript you can access those missing Menu options, and control also the existing options. |  |
| 1 |
|
 | Signing desing elements with LotusScript |
| |
| | | This agent signs all design elements of a database by resaving each design document: |  |
| 1 |
|
 | String manipulations |
| |
| | | Replace substring in a string |  |
| 1 |
|
 | The beginning |
| |
| | | Many LotusScript Agents start with the following lines: |  |
| 1 |
|
 | The beginning (UI) |
| |
| | | Many LotusScript Agents for the User Interface frontend start with the following lines when launched from a button: |  |
| 1 |
|
 | Updating a field on all responses of a document |
| |
| | | If you want that a field updates on all response documents (including all responses to responses), when you edit the field on the main document and save the document, then you can use this LotusScript routine in the main document's Form's QuerySave method: |  |
| 1 |
|
 | Using arrays beyond the limits |
| |
| | | Normally it is not possible to allocate more than 32767 elements in a linear array. If you use a matrix array you can allocate an linear array which is only limited by the amount of physical memory of your machine. The maximum linear array size using a matrix array is 1.073.676.289 elements, and since the smallest element size is 2 bytes (for Integer elements), you would need 2GB of RAM before the matrix array is at the limits. |  |
| 1 |
|
 | Waiting for an program lauched by Shell to finish |
| |
| | | This example shows how to wait for a program to finish when it was launched with the Shell statement from Lotus Script. |  |
| 1 |
 | Notes Database Design |
| |
| 1 |
|
 | Creating own database icons |
| |
| | | Did you know that you can edit any notes database icon with any paint program ? |  |
| 1 |
 | Server Administration |
| |
| 1 |
|
 | Speeding up Domino Administrator when reading directory of databases |
| |
| | | This little tip can make the opening of Domino Administrator remarkably faster. |  |
| 27 |
|  |