|
Previous Top Next |
This templates makes it easy to prevent multiple instances of the program from executing at the same time.

| Unique Program String | This is a string that you create and is unique to this program. You could use the Core Class Demo to create a GUID if you want to use a string that you can be pretty safe will be unique. Just remember that once you assign it to the program you should never change it if you want to make 100% sure that your program will always be unique and never run more than one instance on any computer. |
| Window caption string | This string is used to find the running instance on the computer and then activate it. |
| Activate Running... | Check this if you want to activate the running instance of the program when the user tries to run it again. |
| Show Message | Check this if you want to show a message when a second instance is found. |
| Message Caption | Caption for the message to display. |
| Message Text | Text for the message to display. |
Note that you can use variables for any of the text entries by using ! in front of the name. Anything else will be interpreted as a literal string. You do not have to put the single quotes around the text, the template will do that automatically when generating the code.
The code is generated right after the CODE statement for the program.
See also: