Launches Microsoft Word.
If Microsoft Word could be started, then "OK" is returned.
When Word is not found or could not be started, then an empty String is returned.
If an error occurred, then "ERROR" is returned.
Returns:
Type |
Value |
Description |
String |
empty String |
Microsoft Word was not found on the computer |
String |
ERROR |
In case of any error the string "ERROR" is returned |
String |
OK |
When Word was found and could be launched, then "OK" is returned as a String. |
Available in:
WindowMain |
WindowLink |
YES |
YES |
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 '%WordLaunch%'
Example XojoScript:
// Check if we have Word Installed
Dim v As String = WordLaunch
If v = "" Or v = "ERROR" Then
MsgBox "Microsoft Word could not be launched!"
Return
End If