StringSet establishes a set of up to 26 strings. Each string is referenced by a letter of the alphabet. You can use StringSet's Expand function to replace every StringSet reference within a string with its assigned string. In a string processed by Expand, a given string is referenced by a special character (one not normally occuring in your strings) followed by its assigned letter. Here is an example of how you might use StringSet.
| This piece of code is acting as a simple Mail Merge funtion. A file (Message.txt) containing a simple eMail message is being read, and processed once, for each person who is to receive the message. The message contains insertion points (StringSet references) for the eMail address, name, and phone number of the recipient. These insertion points are indicated, in the prototype message, as $A, $N, and $P. |
|
Type ReplType as 'define UDT to hold recipient data |