Load a textfile from the
templates folder and return its contents.
This function retrieves the
contents of a textfile which is stored as a template.
To add or remove template
files, select New Template Manager from
menu Script
Parameters:
Name |
Type |
Description |
FileName |
String |
Name
of the file to be retrieved from templates, like: MailTextD.txt |
Returns:
Type |
Value |
Description |
String |
contents
of textfile |
The contents
of a textfile. |
Available in:
WindowMain |
WindowLink |
YES |
YES |
Used in:
Hint: You can
find references to XojoScripts which make use of this function by sending the
following SQL statement to the database:
Select id,GUID, ScriptName,ScriptCode from
im_scripts where ScriptCode Like '%GetFileText%'
Example XojoScript:
// Define filename for textfile in templates folder
Dim
bodyTextFile As String
= "MailTextD.txt"
// Retrieve its
contents
Dim
contents As String
= GetFileText(bodyTextFile)
MsgBox(contents)