Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RunTask.SetVerb
Sets the verb, that specifies the action to be performed.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RunTask | 3.2 | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |
Deprecated
This function was deprecated. Use Shell functions instead.
MBS( "RunTask.SetVerb"; Verb ) More
Parameters
Parameter | Description | Example |
---|---|---|
Verb | The new verb. | "open" |
Result
Returns OK or error.
Description
Sets the verb, that specifies the action to be performed.The set of available verbs depends on the particular file or folder. Generally, the actions available from an object's shortcut menu are available verbs. This parameter can be "", in which case the default verb is used if available. If not, the "open" verb is used. If neither verb is available, the system uses the first verb listed in the registry. The following verbs are commonly used:
edit | Launches an editor and opens the document for editing. If lpFile is not a document file, the RunTask.Launch function will fail. |
explore | Explores the folder specified by lpFile. |
find | Initiates a search starting from the specified directory. |
open | Opens the file specified by the lpFile parameter. The file can be an executable file, a document file, or a folder. |
Prints the document file specified by lpFile. If File is not a document file, the RunTask.Launch function will fail. | |
properties | Displays the file or folder's properties. |
See also
Example Databases
This function checks for a license.
Created 18th August 2014, last changed 13th June 2020